public ActionResult CHECK_INFO()
        {
            token = appClass.CRM_Gettoken();
            Session["location"] = 209;
            Sonluk.UI.Model.S5.SY_CHECKPOINTService.FIVES_SY_CHECKPOINT   checkpointModel = new Sonluk.UI.Model.S5.SY_CHECKPOINTService.FIVES_SY_CHECKPOINT();
            Sonluk.UI.Model.S5.SY_CHECKPOINTService.FIVES_SY_CHECKPOINT[] checkpointRes   = fivesmodels.SY_CHECKPOINT.Read(checkpointModel, token);
            ViewBag.CheckPointArr = checkpointRes;
            HR_SY_DEPT        deptModel = new HR_SY_DEPT();
            HR_SY_DEPT_SELECT deptRes   = hrmodels.SY_DEPT.SELECT(deptModel, token);

            ViewBag.DeptArr = deptRes.HR_SY_DEPT_LIST;
            FIVES_SY_DICT JCLXmodel = new FIVES_SY_DICT();

            JCLXmodel.TYPEID = 2;
            FIVES_SY_DICT[] JCLXRes = fivesmodels.SY_DICT.Read(JCLXmodel, token);
            ViewBag.JCLXArr = JCLXRes;
            string              datastring = "{\"DEPID\":\"0\",\"STAFFNAME\":\"\",\"STAFFNO\":\"\"}";
            MES_SY_STAFF        model      = Newtonsoft.Json.JsonConvert.DeserializeObject <MES_SY_STAFF>(datastring);
            MES_SY_STAFF_SELECT rst_MES_SY_STAFF_SELECT = mesModels.SY_STAFF.SELECT(model, token);

            ViewBag.STAFFArr = rst_MES_SY_STAFF_SELECT.MES_SY_STAFF;


            JCLXmodel.TYPEID = 1;

            ViewBag.DFArr = fivesmodels.SY_DICT.Read(JCLXmodel, token);
            return(View());
        }
        public ActionResult UPDATE_INFO()
        {
            token = appClass.CRM_Gettoken();
            Session["location"] = 214;
            Sonluk.UI.Model.S5.SY_CHECKPOINTService.FIVES_SY_CHECKPOINT   checkpointModel = new Sonluk.UI.Model.S5.SY_CHECKPOINTService.FIVES_SY_CHECKPOINT();
            Sonluk.UI.Model.S5.SY_CHECKPOINTService.FIVES_SY_CHECKPOINT[] checkpointRes   = fivesmodels.SY_CHECKPOINT.Read(checkpointModel, token);
            ViewBag.CheckPointArr = checkpointRes;


            FIVES_STAFF_DEP DEPmodel = new FIVES_STAFF_DEP();

            DEPmodel.STAFFID = appClass.CRM_GetStaffid();
            FIVES_STAFF_DEP[] DEPdata = fivesmodels.STAFF_DEP.Read(DEPmodel, token);
            DEPdata         = DEPdata.DistinctBy(p => p.DEPTID).ToArray();
            ViewBag.DeptArr = DEPdata;


            string              datastring = "{\"DEPID\":\"0\",\"STAFFNAME\":\"\",\"STAFFNO\":\"\"}";
            MES_SY_STAFF        model      = Newtonsoft.Json.JsonConvert.DeserializeObject <MES_SY_STAFF>(datastring);
            MES_SY_STAFF_SELECT rst_MES_SY_STAFF_SELECT = mesModels.SY_STAFF.SELECT(model, token);

            ViewBag.STAFFArr = rst_MES_SY_STAFF_SELECT.MES_SY_STAFF;


            Sonluk.UI.Model.S5.SY_DICTService.FIVES_SY_DICT MODEL = new Sonluk.UI.Model.S5.SY_DICTService.FIVES_SY_DICT();
            MODEL.TYPEID = 9;
            Sonluk.UI.Model.S5.SY_DICTService.FIVES_SY_DICT[] SHOWNAME = fivesmodels.SY_DICT.Read(MODEL, token);
            ViewBag.SHOWNAME = SHOWNAME;

            FIVES_SY_DICT JCLXmodel = new FIVES_SY_DICT();

            JCLXmodel.TYPEID = 1;

            ViewBag.DFArr = fivesmodels.SY_DICT.Read(JCLXmodel, token);
            return(View());
        }
Beispiel #3
0
 public MES_SY_STAFF_SELECT SELECT(MES_SY_STAFF model, string ptoken)
 {
     return(client.SELECT(model, ptoken));
 }