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)); }
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)); }
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)); }
public MSG_MSG_SENDWAY[] ReadByParam(MSG_MSG_SENDWAY model, string ptoken) { return(client.ReadByParam(model, ptoken)); }
public int Update(MSG_MSG_SENDWAY model, string ptoken) { return(client.Update(model, ptoken)); }