//查询检查结果 public DataTable inspectionResultQuery(String orderId) { InspectionResultDB inspectionResultDb = new InspectionResultDB(); DataSet ds = inspectionResultDb.inspectionResultQuery(orderId); if (ds.Tables[0].Rows.Count > 0) { return(ds.Tables[0]); } else { return(null); } }
//修改检查结果 public int inspectionResultUpdate(List <int> inspectionResultStatue, List <String> inspectionResultComment, String orderId) { InspectionResultDB inspectionResultDb = new InspectionResultDB(); if (inspectionResultStatue.Count < 8) { for (int i = inspectionResultStatue.Count; i < 8; i++) { inspectionResultStatue.Add(0); inspectionResultComment.Add(null); } } return(inspectionResultDb.inspectionResultUpdate(inspectionResultStatue, inspectionResultComment, orderId)); }
//创建检查结果 public int inspectionResultCreate(String orderId) { InspectionResultDB inspectionResultDb = new InspectionResultDB(); return(inspectionResultDb.inspectionResultCreate(orderId)); }