| | |
| | | if (locCntrRel == null) { |
| | | var newLocCntrRel = new TN_Loc_Container { |
| | | S_LOC_CODE = locCntrCg.LocCode, |
| | | S_CNTR_CODE = locCntrCg.CntrCode, |
| | | S_CNTR_TYPE = locCntrCg.CntrType ?? "" |
| | | S_CNTR_CODE = locCntrCg.CntrCode |
| | | }; |
| | | |
| | | loc.N_CURRENT_NUM = 1; |
| | |
| | | return $"Error reading CSV file: {ex.Message}"; |
| | | } |
| | | } |
| | | |
| | | public static string SetTaskWeight(SetTaskWeightInfo model) { |
| | | var db = DbHelper.GetDbClient(); |
| | | |
| | | try { |
| | | if (db.Updateable<TN_Task>().SetColumns(it => it.F_WEIGHT == model.Weight).Where(it => it.S_CODE == model.TaskNo) |
| | | .ExecuteCommand() <= 0 ) { |
| | | return "修改失败"; |
| | | } |
| | | return "修改成功"; |
| | | |
| | | } |
| | | catch (Exception ex) { |
| | | |
| | | return ex.Message; |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |