コード例 #1
0
        public string DUTY_DELETE(string datastring)
        {
            string        token            = AppClass.GetSession("token").ToString();
            HR_SY_DUTY    model_HR_SY_DUTY = Newtonsoft.Json.JsonConvert.DeserializeObject <HR_SY_DUTY>(datastring);
            MES_RETURN_UI rst = hrmodels.SY_DUTY.DELETE(model_HR_SY_DUTY, token);

            return(Newtonsoft.Json.JsonConvert.SerializeObject(rst));
        }
コード例 #2
0
        public MES_RETURN_UI DELETE(HR_SY_DUTY model, string ptoken)
        {
            MES_RETURN    mr   = client.DELETE(model, ptoken);
            MES_RETURN_UI mrui = new MES_RETURN_UI();

            mrui.TYPE    = mr.TYPE;
            mrui.MESSAGE = mr.MESSAGE;
            return(mrui);
        }
コード例 #3
0
        public string DUTY_UPDATE(string datastring)
        {
            string     token            = AppClass.GetSession("token").ToString();
            int        STAFFID          = Convert.ToInt32(AppClass.GetSession("STAFFID"));
            HR_SY_DUTY model_HR_SY_DUTY = Newtonsoft.Json.JsonConvert.DeserializeObject <HR_SY_DUTY>(datastring);

            model_HR_SY_DUTY.XGR = STAFFID;
            MES_RETURN_UI rst = hrmodels.SY_DUTY.UPDATE(model_HR_SY_DUTY, token);

            return(Newtonsoft.Json.JsonConvert.SerializeObject(rst));
        }
コード例 #4
0
 public HR_SY_DUTY_SELECT SELECT(HR_SY_DUTY model, string ptoken)
 {
     return(client.SELECT(model, ptoken));
 }