Ejemplo n.º 1
0
        public string Select_MSG_SENDWAY(string cxdata)
        {
            token = appClass.CRM_Gettoken();
            MSG_MSG_SENDWAY model = Newtonsoft.Json.JsonConvert.DeserializeObject <MSG_MSG_SENDWAY>(cxdata);

            MSG_MSG_SENDWAY[] data = msgModels.MSG_SENDWAY.ReadByParam(model, token);
            return(Newtonsoft.Json.JsonConvert.SerializeObject(data));
        }
Ejemplo n.º 2
0
        public string Update_MSG_SENDWAY(string data)
        {
            token = appClass.CRM_Gettoken();
            MSG_MSG_SENDWAY model = Newtonsoft.Json.JsonConvert.DeserializeObject <MSG_MSG_SENDWAY>(data);
            int             id    = msgModels.MSG_SENDWAY.Update(model, token);

            if (id > 0)
            {
                webmsg.KEY = 1;
                webmsg.MSG = "修改成功";
            }
            else
            {
                webmsg.KEY = 0;
                webmsg.MSG = "修改失败";
            }
            return(Newtonsoft.Json.JsonConvert.SerializeObject(webmsg));
        }
Ejemplo n.º 3
0
        public string Create_MSG_SENDWAY(string data)
        {
            token = appClass.CRM_Gettoken();
            MSG_MSG_SENDWAY model = Newtonsoft.Json.JsonConvert.DeserializeObject <MSG_MSG_SENDWAY>(data);

            model.ISACTIVE = 10;
            model.CJR      = appClass.CRM_GetStaffid();
            int id = msgModels.MSG_SENDWAY.Create(model, token);

            if (id > 0)
            {
                webmsg.KEY = 1;
                webmsg.MSG = "新增成功";
            }
            else
            {
                webmsg.KEY = 0;
                webmsg.MSG = "新增失败";
            }
            return(Newtonsoft.Json.JsonConvert.SerializeObject(webmsg));
        }
Ejemplo n.º 4
0
 public MSG_MSG_SENDWAY[] ReadByParam(MSG_MSG_SENDWAY model, string ptoken)
 {
     return(client.ReadByParam(model, ptoken));
 }
Ejemplo n.º 5
0
 public int Update(MSG_MSG_SENDWAY model, string ptoken)
 {
     return(client.Update(model, ptoken));
 }