| | |
| | | } |
| | | |
| | | // 更新仓库状态的方法 |
| | | private bool UpdateDepotStatus(SqlSugarScope db, decimal depotId, |
| | | private bool UpdateDepotStatus(SqlSugarScope db, long depotId, |
| | | string status) |
| | | { |
| | | var result = db.Updateable<MesDepots>() |
| | |
| | | { |
| | | return new MesDepots |
| | | { |
| | | Guid = depots.Id, |
| | | DepotCode = depots.FNumber, |
| | | DepotName = depots.FName, |
| | | DepotId = Convert.ToDecimal(depots.Id), |
| | | DepotId = string.IsNullOrEmpty(depots.Id) |
| | | ? DateTimeOffset.UtcNow.ToUnixTimeSeconds() |
| | | : long.Parse(depots.Id), |
| | | IsFkc = depots.FAllowMinusQty, |
| | | CreateBy = depots.FPrincipal, |
| | | Depottype = depots.FStockProperty, |
| | | IsNg = depots.FForbidStatus, |
| | | Zuid = depots.FGroup, |
| | | FSubsidiary = depots.FUseOrgId, |
| | | Fumbrella = depots.FCreateOrgId, |
| | | CreateDate = DateTime.Now, |
| | | LastupdateDate = DateTime.Now, |
| | | SupplierId = depots.FSUPPLIERID, |
| | | Company = "1000", |
| | | Factory = "1000", |
| | | FCustomerId = depots.FCustomerId, |
| | | FDocumentStatus = depots.FDocumentStatus, |
| | | FStockStatusType = depots.FStockStatusType |
| | | |
| | | DocumentStatus = depots.FDocumentStatus, |
| | | |
| | | UseOrg = string.IsNullOrEmpty(depots.FUseOrgId) |
| | | ? 1 |
| | | : long.Parse(depots.FUseOrgId), |
| | | CreateOrg = string.IsNullOrEmpty(depots.FCreateOrgId) |
| | | ? 1 |
| | | : long.Parse(depots.FCreateOrgId), |
| | | CreateDate = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), |
| | | LastupdateDate = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), |
| | | Company = "1000", |
| | | Factory = "1000" |
| | | }; |
| | | } |
| | | |