SVN r903
SVN-Revision: r903
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user