ISF增加购买Bond需求开发:【AddOrUpdate接口】(ISF申报新增与修改)添加【BondOwnCode字段】(是否自有Bond)

master
zhangxiaofeng 1 year ago
parent ba0179334d
commit 6d79bc83cc

@ -103,5 +103,12 @@ namespace djy.Model.Isf
/// 最新通知 /// 最新通知
/// </summary> /// </summary>
public string NewNotice { get; set; } public string NewNotice { get; set; }
/// <summary>
/// bond是否自有<see cref="InFoType"/> =2ISF10需提供
/// <br>值是1或者2或者3</br>
/// <br>1表示“自有BOND”2表示“使用CargoEDI的BOND”3表示“使用大简云的Bond”</br>
/// </summary>
[MaxLength(20)]
public string BondOwnCode { get; set; }
} }
} }

@ -98,6 +98,14 @@ namespace djy.Model.IsfDto
/// 最新通知 /// 最新通知
/// </summary> /// </summary>
public string NewNotice { get; set; } public string NewNotice { get; set; }
/// <summary>
/// bond是否自有<see cref="InFoType"/> =2ISF10需提供
/// <br>值是1或者2或者3</br>
/// <br>1表示“自有BOND”2表示“使用CargoEDI的BOND”3表示“使用大简云的Bond”</br>
/// </summary>
public string BondOwnCode { get; set; }
public List<ISF_Company> companyList { get; set; } public List<ISF_Company> companyList { get; set; }
public List<ISF_MasterHistory> HistoryDto { get; set; } public List<ISF_MasterHistory> HistoryDto { get; set; }

@ -163,6 +163,7 @@ namespace djy.Service.Isf
master.BlTypeName = dto.BlTypeName; master.BlTypeName = dto.BlTypeName;
master.NewNotice = "修改"; master.NewNotice = "修改";
master.LastUpdate = DateTime.Now; master.LastUpdate = DateTime.Now;
master.BondOwnCode = dto.BondOwnCode;
DbBus.Get(DbList.AMSCenter).Update<ISF_Master>().SetSource(master).ExecuteAffrows(); DbBus.Get(DbList.AMSCenter).Update<ISF_Master>().SetSource(master).ExecuteAffrows();
DbBus.Get(DbList.AMSCenter).Delete<ISF_Company>().Where(w => w.PID == master.GID).ExecuteAffrows(); DbBus.Get(DbList.AMSCenter).Delete<ISF_Company>().Where(w => w.PID == master.GID).ExecuteAffrows();
//ISF_MasterHistory history = new ISF_MasterHistory(); //ISF_MasterHistory history = new ISF_MasterHistory();

Loading…
Cancel
Save