public string add_todo_xj(string KHID, string BFSJ, string CRMID, string KHMC, string KHLX, string BFLX) { if (Session["STAFFID"] != null) { int STAFFID = Convert.ToInt32(Session["STAFFID"].ToString()); string rst = ""; CRM_BF_BFJH bfjhcs = new CRM_BF_BFJH(); bfjhcs.BFLX = 5; //bfjhcs.KHID = Convert.ToInt32(KHID); //bfjhcs.BFRYID = STAFFID; //bfjhcs.BFSJ = BFSJ; bfjhcs.ISACTIVE = 1; rst = crmModels.BF_BF.Create_BFJH(bfjhcs, Session["token"].ToString()).ToString(); CRM_BF_BFDJ bfdj_in = new CRM_BF_BFDJ(); bfdj_in.BFJHID = Convert.ToInt32(rst); bfdj_in.BFRYID = STAFFID; bfdj_in.BFKH = Convert.ToInt32(KHID); bfdj_in.BFLX = Convert.ToInt32(BFLX); bfdj_in.CRMID = CRMID; bfdj_in.KHMC = KHMC; bfdj_in.KHLX = Convert.ToInt32(KHLX); bfdj_in.JHBFKSSJ = BFSJ; bfdj_in.JHBFJSSJ = BFSJ; //bfdj_in.BFPC = 0; bfdj_in.ISACTIVE = 1; rst = crmModels.BF_BF.Create_BFDJ(bfdj_in, Session["token"].ToString()).ToString(); return(rst); } else { return("0"); } }
public string add_assign_zdbf(string KHID, string BFRYID, string BFSJ, string CRMID, string KHMC, string KHLX) { string rst = ""; CRM_BF_BFJH bfjhcs = new CRM_BF_BFJH(); bfjhcs.BFLX = 4; //bfjhcs.KHID = Convert.ToInt32(KHID); //bfjhcs.BFRYID = Convert.ToInt32(BFRYID); //bfjhcs.BFSJ = BFSJ; bfjhcs.ISACTIVE = 1; rst = crmModels.BF_BF.Create_BFJH(bfjhcs, Session["token"].ToString()).ToString(); CRM_BF_BFDJ bfdj_in = new CRM_BF_BFDJ(); bfdj_in.BFJHID = Convert.ToInt32(rst); bfdj_in.BFRYID = Convert.ToInt32(BFRYID); bfdj_in.BFKH = Convert.ToInt32(KHID); bfdj_in.BFLX = 2; bfdj_in.CRMID = CRMID; bfdj_in.KHMC = KHMC; bfdj_in.KHLX = Convert.ToInt32(KHLX); bfdj_in.JHBFKSSJ = BFSJ; bfdj_in.JHBFJSSJ = BFSJ; //bfdj_in.BFPC = 0; bfdj_in.ISACTIVE = 1; rst = crmModels.BF_BF.Create_BFDJ(bfdj_in, Session["token"].ToString()).ToString(); return(rst); }
public int Data_Update_Plan(string data) { token = appClass.CRM_Gettoken(); CRM_BF_BFJH model = Newtonsoft.Json.JsonConvert.DeserializeObject <CRM_BF_BFJH>(data); int i = crmModels.BF_BF.Update_BFJH(model, token); return(i); }
public string Data_Select_PlanByBFJHID(int BFJHID) { token = appClass.CRM_Gettoken(); CRM_BF_BFJH data = crmModels.BF_BF.Read_BFJDByID(BFJHID, token); string s = Newtonsoft.Json.JsonConvert.SerializeObject(data); return(s); }
public int Data_Insert_Plan(string data) { token = appClass.CRM_Gettoken(); CRM_BF_BFJH model = Newtonsoft.Json.JsonConvert.DeserializeObject <CRM_BF_BFJH>(data); model.STAFFID = Convert.ToInt32(Session["STAFFID"]); model.CJSJ = DateTime.Now.ToString(); int i = crmModels.BF_BF.Create_BFJH(model, token); return(i); }
public int Update_BFJH(CRM_BF_BFJH model, string ptoken) { return(client.Update_BFJH(model, ptoken)); }