| | |
| | | { |
| | | Guid? guid = model.guid; //主键 |
| | | string djlx = model.djlx;//单据类型 |
| | | string salesId = model.salesId;//销售单号 |
| | | string inRemark = model.inRemark;//备注 |
| | | string ckId = model.ckId; |
| | | string FIsLink = model.FIsLink; |
| | | string fIsLink = model.fIsLink; |
| | | string fHasLinkSource=model.fHasLinkSource; |
| | | //下面是无源的 |
| | | string salesOrg = model.salesOrg; |
| | | string inventoryOrg = model.inventoryOrg; |
| | | string returnCustomer = model.returnCustomer; |
| | | string salesDept = model.salesDept; |
| | | var _sb = new StringBuilder(); |
| | | var _split = "|"; |
| | | foreach (var m in model.list) |
| | |
| | | + m.Bz + _split |
| | | + m.Thlx + _split |
| | | + m.Thrq + _split |
| | | + m.ItemId + _split |
| | | + (CheckGuid(_guid) ? _guid : Guid.Empty.ToString()); |
| | | if (_sb.Length > 0) |
| | | _sb.Append("~"); |
| | |
| | | new("@outNo", SqlDbType.NVarChar, 300), |
| | | new("@inOrderGuid",UtilityHelper.CheckGuid(guid)? guid : DBNull.Value), |
| | | new("@djlx", djlx), |
| | | new("@salesId", salesId), |
| | | new("@inRemark", inRemark), |
| | | new("@ckId", ckId), |
| | | new("@inEdtUserGuid", _userGuid), |
| | | new("@FIsLink", FIsLink), |
| | | new("@fIsLink", fIsLink), |
| | | new("@fHasLinkSource", fHasLinkSource), |
| | | new("@salesOrg", salesOrg), |
| | | new("@inventoryOrg", inventoryOrg), |
| | | new("@returnCustomer", returnCustomer), |
| | | new("@salesDept", salesDept), |
| | | new("@inLineList", _sb.ToString()) |
| | | }; |
| | | parameters[0].Direction = ParameterDirection.Output; |
| | |
| | | catch (Exception ex) |
| | | { |
| | | LogHelper.Debug(ToString(), |
| | | "prc_salesDeliver_edt error:" + ex.Message); |
| | | "prc_salesReturn_edt error:" + ex.Message); |
| | | mObj.outMsg = ex.Message; |
| | | mObj.outSum = -1; |
| | | } |