| | |
| | | new SqlParameter("@PaperWeightId",trueModel.PaperWeightId), |
| | | new SqlParameter("@tanPrice",trueModel.TanPrice??0), |
| | | new SqlParameter("@ReceiveMoney",decimal.Parse("0")), |
| | | new SqlParameter("@Commodityid",trueModel.Commodityid) |
| | | new SqlParameter("@Commodityid",trueModel.Commodityid), |
| | | new SqlParameter("@orderId",trueModel.orderId.HasValue?trueModel.orderId.Value:0), |
| | | new SqlParameter("@DocumentName",string.IsNullOrEmpty(trueModel.DocumentName)?"":trueModel.DocumentName) |
| | | }; |
| | | try |
| | | { |
| | |
| | | { |
| | | return false; |
| | | } |
| | | |
| | | SqlParameter SuppliersId = null; |
| | | if (trueModel.SuppliersId.HasValue) |
| | | { |
| | | SuppliersId = new SqlParameter("@SuppliersId", trueModel.SuppliersId); |
| | | } |
| | | else |
| | | { |
| | | SuppliersId = new SqlParameter("@SuppliersId", DBNull.Value); |
| | | } |
| | | IList<SqlParameter> sqlParms = new List<SqlParameter>() |
| | | { |
| | | new SqlParameter("@Keyid",trueModel.Keyid), |
| | | new SqlParameter("@FirmId",trueModel.FirmId), |
| | | new SqlParameter("@SuppliersId",trueModel.SuppliersId), |
| | | SuppliersId, |
| | | new SqlParameter("@GoodsId",trueModel.GoodsId), |
| | | new SqlParameter("@ClearingStatusId",trueModel.ClearingStatusId), |
| | | new SqlParameter("@Price",trueModel.Price), |
| | |
| | | new SqlParameter("@PaperWeightId",trueModel.PaperWeightId), |
| | | new SqlParameter("@tanPrice",trueModel.TanPrice??0), |
| | | new SqlParameter("@ReceiveMoney",trueModel.ReceiveMoney), |
| | | new SqlParameter("@Commodityid",trueModel.Commodityid) |
| | | new SqlParameter("@Commodityid",trueModel.Commodityid), |
| | | new SqlParameter("@WarehouseName",string.IsNullOrEmpty(trueModel.WarehouseName)?"":trueModel.WarehouseName), |
| | | }; |
| | | try |
| | | { |