コード例 #1
0
        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");
            }
        }
コード例 #2
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);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
        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);
        }
コード例 #5
0
        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);
        }
コード例 #6
0
 public int Update_BFJH(CRM_BF_BFJH model, string ptoken)
 {
     return(client.Update_BFJH(model, ptoken));
 }