| | |
| | | |
| | | break; |
| | | case "2": |
| | | case "4": |
| | | if (InsertOrUpdate(db, entity)) return 1; |
| | | |
| | | break; |
| | |
| | | .SetColumns(s => s.IsNg == status) |
| | | .Where(s => s.DepotId == depotId).ExecuteCommand(); |
| | | |
| | | if (result > 0) |
| | | // if (result > 0) |
| | | return true; |
| | | |
| | | throw new NotImplementedException(status == "A" ? "启用失败" : "禁用失败"); |
| | |
| | | CreateOrg = Convert.ToDecimal(depots.FCreateOrgId), |
| | | UseOrg = Convert.ToDecimal(depots.FUseOrgId), |
| | | CreateDate = DateTime.Now, |
| | | FZYC= depots.FZYC, |
| | | FGYC= depots.FGYC, |
| | | FZMC= depots.FZMC, |
| | | CGYMC= depots.FCGYMC, |
| | | Company = "1000", |
| | | Factory = "1000" |
| | | Factory = "1000", |
| | | Type=depots.Type, |
| | | }; |
| | | } |
| | | |
| | |
| | | throw new NotImplementedException("删除失败"); |
| | | break; |
| | | case "2": |
| | | case "4": |
| | | if (!InsertOrUpdateBatch(db, |
| | | depotsGroup.Value)) // 批量插入或更新仓库 |
| | | throw new NotImplementedException("同步失败"); |