SVN-Revision: r903
This commit is contained in:
wyf
2025-08-05 08:45:26 +00:00
parent becff23d95
commit 02bf3984bf
3 changed files with 269 additions and 149 deletions
+12 -1
View File
@@ -537,12 +537,23 @@ namespace Lskj.PubBomImport
this.SetBillStatus(null);
this.ControlObj.ResetControlValue(billModel.ManuallyTriggerCorrelation, true);
}
public void AddOrUpdateBill(DataRow rowItem, DataTable newSource)
public void AddOrUpdateBill(DataRow rowItem, DataTable newSource, string billSaveMode = "")
{
string masterSql = rowItem == null ? billModel.MasterSql.Replace("{" + billModel.PrimaryKey + "}", this.lblOrderNo.Text) : ReplaceHelper.ReplaceRowParam(rowItem, billModel.MasterSql);
// 加载单据信息
DataRow mainRow = BillImpl.GetDataRowResult(masterSql);
this.SetBillStatus(mainRow);
if (!string.IsNullOrEmpty(billSaveMode))
{
if (billSaveMode.Equals("1"))
{
billModel.SaveState = true;
}
else if (billSaveMode.Equals("2"))
{
billModel.SaveState = false;
}
}
if (!billModel.SaveState)
{
this.InitializeHeader(rowItem);