public string Data_Select_FeeByZDFID(int ZDFID) { if (Session["token"] != null) { token = Session["token"].ToString(); } CRM_HD_ZDF data = crmModels.HD_ZDF.ReadByZDFID(ZDFID, token); CRM_HD_ZDFList list = new CRM_HD_ZDFList(); list.ZDFID = data.ZDFID; list.SQRID = data.SQRID; list.SQBMID = data.SQBMID; list.SQSJ = data.SQSJ; list.ZDRQ = data.ZDRQ; list.KHID = data.KHID; list.KHNAME = data.KHNAME; list.KHMX = data.KHMX; list.JDRS = data.JDRS; list.PKRS = data.PKRS; list.ZDLY = data.ZDLY; list.YJJE = data.YJJE; list.ISACTIVE = data.ISACTIVE; list.STAFFNAME = crmModels.HG_STAFF.ReadBySTAFFID(data.SQRID, token).STAFFNAME; return(Newtonsoft.Json.JsonConvert.SerializeObject(list)); }
public string Data_Submit_Fee(string _basic, string _list, int ZDFID) { if (Session["token"] != null) { token = Session["token"].ToString(); } CRM_OA_BASIC basic = JsonConvert.DeserializeObject <CRM_OA_BASIC>(_basic); basic.TemplateCode = crmModels.SYS_CS.Read(13, token)[0].CS.ToString(); CRM_OA_ZDF list = JsonConvert.DeserializeObject <CRM_OA_ZDF>(_list); //list.DEP = crmModels.HG_DEPT.ReadByDEPID(DEP, token).DEPNAME; MessageInfo info = crmModels.CRM_OA.Launch(basic, list, token); //提交 if (info.Key != "0" && info.Key != "-1") { CRM_HD_ZDF data = crmModels.HD_ZDF.ReadByZDFID(ZDFID, token); data.ISACTIVE = 2; crmModels.HD_ZDF.Update(data, token); CRM_OA_TRANSMIT model = new CRM_OA_TRANSMIT(); model.OAID = info.Key; model.OACSBH = ZDFID; model.OACSLB = 990; model.OAZT = 1; model.CJSJ = DateTime.Now.ToString("yyyy-MM-dd"); crmModels.OA_TRANSMIT.Create(model, token); } return(Newtonsoft.Json.JsonConvert.SerializeObject(info)); }
public int Data_Update_Fee(string data) { if (Session["token"] != null) { token = Session["token"].ToString(); } CRM_HD_ZDF model = Newtonsoft.Json.JsonConvert.DeserializeObject <CRM_HD_ZDF>(data); int i = crmModels.HD_ZDF.Update(model, token); return(i); }
public int Data_Insert_Fee(string data) { if (Session["token"] != null) { token = Session["token"].ToString(); } CRM_HD_ZDF model = Newtonsoft.Json.JsonConvert.DeserializeObject <CRM_HD_ZDF>(data); model.SQSJ = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); int i = crmModels.HD_ZDF.Create(model, token); return(i); }
public int Update(CRM_HD_ZDF model, string ptoken) { return(client.Update(model, ptoken)); }