SVN r1240
SVN-Revision: r1240
This commit is contained in:
@@ -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,8 +7146,14 @@ 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();
|
||||
details = unionModel.GridDetailControlObj.GridControl.DataSource as DataTable;
|
||||
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)
|
||||
{
|
||||
@@ -9199,7 +9206,14 @@ 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)
|
||||
{
|
||||
@@ -9996,7 +10010,7 @@ namespace Lskj.PubBill
|
||||
string condition = CondItem["condition"] + "";
|
||||
if (!string.IsNullOrWhiteSpace(condition))
|
||||
{
|
||||
|
||||
|
||||
if (detailTable != null && detailTable.Rows.Count > 0)
|
||||
{
|
||||
condition = this.ControlObj.ReplaceParentControlValue(condition);
|
||||
@@ -10005,4 +10019,4 @@ namespace Lskj.PubBill
|
||||
if (!ValidateCond(condition, item))
|
||||
{
|
||||
MessageUtil.Show(string.IsNullOrWhiteSpace(CondItem["hintmsg"] + "") ? "条件验证失败" : CondItem["hintmsg"] + "");
|
||||
r
|
||||
|
||||
Reference in New Issue
Block a user