SVN r1240

SVN-Revision: r1240
This commit is contained in:
cyf
2026-06-26 09:37:02 +00:00
parent 155d88f3ce
commit 68cc9cc7b1
+18 -4
View File
@@ -1828,6 +1828,7 @@ namespace Lskj.PubBill
{
this.tb_buttom.OnDetailSaveGridCallBack += Tab_OnDetailSaveGridCallBack;
}
this.tb_buttom.BillDetailRightGridCallBack += Tab_OnDetailSaveGridCallBack;//OnMrpBtnClickCallback
if (this.BillModel.RefreshSelectedDetail)
{
//配置了只刷新当前页签后,切换页签时刷新
@@ -4448,6 +4449,7 @@ namespace Lskj.PubBill
}
else if (!string.IsNullOrEmpty(model.DefaultValue))
{
if (string.IsNullOrEmpty(newRow[col.FieldName] + "") || this.BillModel.DragFixedDefault)
{
newRow[col.FieldName] = fieldValue;
@@ -5543,8 +5545,7 @@ namespace Lskj.PubBill
// 继续执行保存
if (string.IsNullOrWhiteSpace(tipMsg)) tipMsg = "保存单据临时表失败";
if (MessageUtil.Show(tipMsg, MessageBoxButtons.YesNo) == DialogResult.Yes)
this.BillSave(1, canTipMsg);
saveResult = true;
saveResult = this.BillSave(1, canTipMsg);
break;
default:
// 保存失败
@@ -7145,9 +7146,15 @@ namespace Lskj.PubBill
DataTable details = BillImpl.GetDataTableResult(ReplaceHelper.ReplaceRowParam(rowItem, unionModel.ModelObj.DetailSql));
if (unionModel.ModelObj.sourceDetailType != "1" && unionModel.GridDetailControlObj.GridView != null && rowIndex == FocuseIndex)
{
//details = unionModel.GridDetailControlObj.GridView.GetGridViewFilteredAndSortedDataToDataTable();
if (SystemInfo.Instance.SourceFilteringMobile)
{
details = unionModel.GridDetailControlObj.GridView.GetGridViewFilteredAndSortedDataToDataTable();
}
else
{
details = unionModel.GridDetailControlObj.GridControl.DataSource as DataTable;
}
}
else if (unionModel.ModelObj.sourceDetailType == "1" && unionModel.TreeGridDetailControlObj.TreeListObj != null && rowIndex == FocuseIndex)
{
details = unionModel.TreeGridDetailControlObj.TreeListObj.DataSource as DataTable;
@@ -9198,9 +9205,16 @@ namespace Lskj.PubBill
this.RefreshSourceDetail(tabPage.Tag as BillSourceUnionModel);
DataTable details = BillImpl.GetDataTableResult(ReplaceHelper.ReplaceRowParam(rowItem, unionModel.ModelObj.DetailSql));
if (unionModel.ModelObj.sourceDetailType != "1" && unionModel.GridDetailControlObj.GridView != null && rowIndex == FocuseIndex)
{
if (SystemInfo.Instance.SourceFilteringMobile)
{
details = unionModel.GridDetailControlObj.GridView.GetGridViewFilteredAndSortedDataToDataTable();
}
else
{
details = unionModel.GridDetailControlObj.GridControl.DataSource as DataTable;
}
}
else if (unionModel.ModelObj.sourceDetailType == "1" && unionModel.TreeGridDetailControlObj.TreeListObj != null && rowIndex == FocuseIndex)
{
details = unionModel.TreeGridDetailControlObj.TreeListObj.DataSource as DataTable;
@@ -10005,4 +10019,4 @@ namespace Lskj.PubBill
if (!ValidateCond(condition, item))
{
MessageUtil.Show(string.IsNullOrWhiteSpace(CondItem["hintmsg"] + "") ? "条件验证失败" : CondItem["hintmsg"] + "");
r