物料信息批号管理这个字段类型改为传入nywt时转为传入0123
| | |
| | | Ffinishreceiptoverrate = |
| | | Convert.ToDecimal(item.FFinishReceiptOverRate), |
| | | Fissuetype = item.FIssueType, |
| | | Fisbatchmanage = Convert.ToInt32(item.FIsBatchManage), |
| | | //批号管理 |
| | | Fisbatchmanage = item.FIsBatchManage switch |
| | | { |
| | | var v when string.Equals(v, "N", StringComparison.OrdinalIgnoreCase) => 0, |
| | | var v when string.Equals(v, "Y", StringComparison.OrdinalIgnoreCase) => 1, |
| | | var v when string.Equals(v, "W", StringComparison.OrdinalIgnoreCase) => 2, |
| | | var v when string.Equals(v, "T", StringComparison.OrdinalIgnoreCase) => 3, |
| | | _ => int.TryParse(item.FIsBatchManage, out var val) ? val : 0 |
| | | }, |
| | | Fpurchaserid = item.FPurchaserId, |
| | | Fpurchaseunitid = item.FPurchaseUnitId, |
| | | Storeunit = item.FStoreUnitID, |