Ejemplo n.º 1
0
        public Get_OutSetPlanSections SetPlanSections(string data)
        {
            Get_OutSetPlanSections json = new Get_OutSetPlanSections();

            try
            {
                Get_InSetPlanSections input = Newtonsoft.Json.JsonConvert.DeserializeObject <Get_InSetPlanSections>(data);
                DBWriteCardSection    db    = new DBWriteCardSection();
                db.SetPlanSections(input.TrainPlanGUID, input.SectionArray, input.DutyUserGUID, input.DutyUserNumber, input.DutyUserName);
                json.result    = "0";
                json.resultStr = "返回成功";
            }
            catch (Exception ex)
            {
                json.result    = "1";
                json.resultStr = "提交失败:" + ex.Message;
            }
            return(json);
        }
Ejemplo n.º 2
0
        public Get_OutGetPlanSelectedSections GetPlanSelectedSections(string data)
        {
            Get_OutGetPlanSelectedSections json = new Get_OutGetPlanSelectedSections();

            try
            {
                Get_InGetPlanSelectedSections input = Newtonsoft.Json.JsonConvert.DeserializeObject <Get_InGetPlanSelectedSections>(data);
                DBWriteCardSection            db    = new DBWriteCardSection();
                GetPlanSelectedSectionsResult RE    = new GetPlanSelectedSectionsResult();
                RE.SectionArray = db.GetPlanSelectedSections(input.TrainPlanGUID);
                json.data       = RE;
                json.result     = "0";
                json.resultStr  = "返回成功";
            }
            catch (Exception ex)
            {
                json.result    = "1";
                json.resultStr = "提交失败:" + ex.Message;
            }
            return(json);
        }