| | |
| | | public ReturnDto<ExpandoObject> EditModel([FromBody] dynamic model) |
| | | { |
| | | Guid? guid = model.Guid; //到货单主键 |
| | | string shDh = model.PaperBillNo; //送货单号 |
| | | //string shDh = model.PaperBillNo; //送货单号 |
| | | string shDh = model.bcsl; |
| | | string bz = model.Remark; //备注 |
| | | string gysId = model.SuppId; //供应商 |
| | | string orgId = model.OrgId; //收料组织 |
| | | |
| | | // string depot = model.Depot;//仓库 |
| | | |
| | | var _sb = new StringBuilder(); |
| | | var _split = "|"; |
| | | foreach (var m in model.list) |
| | |
| | | new("@inBz", bz), |
| | | new("@inGysId", gysId), |
| | | new("@OrgId", orgId), |
| | | // new("@inDepot",depot), |
| | | new("@inEdtUserGuid", _userGuid), |
| | | new("@inLineList", _sb.ToString()) |
| | | }; |
| | |
| | | new("@inEdtUserGuid", _userGuid), |
| | | new("@inOrderGuid", _guid), |
| | | new("@inFieldValue", 1), |
| | | new("@inFieldName", ""), |
| | | new("@in1", ""), |
| | | new("@in2", "") |
| | | }; |
| | |
| | | foreach (var parameter in parameters) |
| | | cmd.Parameters.Add(parameter); |
| | | cmd.ExecuteNonQuery(); |
| | | |
| | | |
| | | m.outMsg = parameters[0].Value.ToString(); |
| | | m.outSum = int.Parse(parameters[1].Value.ToString()); |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |