Beispiel #1
0
        //查询检查结果
        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);
            }
        }
Beispiel #2
0
        //修改检查结果
        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));
        }
Beispiel #3
0
        //创建检查结果
        public int inspectionResultCreate(String orderId)
        {
            InspectionResultDB inspectionResultDb = new InspectionResultDB();

            return(inspectionResultDb.inspectionResultCreate(orderId));
        }