Beispiel #1
0
        public int Data_Update(string data)            //修改客户信息
        {
            token = appclass.CRM_Gettoken();
            Sonluk.UI.Model.CRM.HG_STAFFService.CRM_HG_STAFF model = JsonConvert.DeserializeObject <Sonluk.UI.Model.CRM.HG_STAFFService.CRM_HG_STAFF>(data);
            int count = crmModels.HG_STAFF.Update(model, token);

            return(count);
        }
Beispiel #2
0
        public string Data_Select_ByID(int id)           //打开编辑页面时加载客户基本信息
        {
            token = appclass.CRM_Gettoken();
            //Sonluk.UI.Model.CRM.HG_STAFFService.CRM_HG_STAFFList[] list = crmModels.HG_STAFF.Read(id, token);
            Sonluk.UI.Model.CRM.HG_STAFFService.CRM_HG_STAFF model = crmModels.HG_STAFF.ReadBySTAFFID(id, token);
            string s = Newtonsoft.Json.JsonConvert.SerializeObject(model);

            return(s);
        }
        public int Data_Update(string data)            //修改客户信息
        {
            if (Session["token"] != null)
            {
                token = Session["token"].ToString();
            }
            Sonluk.UI.Model.CRM.HG_STAFFService.CRM_HG_STAFF model = JsonConvert.DeserializeObject <Sonluk.UI.Model.CRM.HG_STAFFService.CRM_HG_STAFF>(data);
            int count = crmModels.HG_STAFF.Update(model, token);

            return(count);
        }
        public string Data_Select_ByID(int id)           //打开编辑页面时加载客户基本信息
        {
            if (Session["token"] != null)
            {
                token = Session["token"].ToString();
            }
            //Sonluk.UI.Model.CRM.HG_STAFFService.CRM_HG_STAFFList[] list = crmModels.HG_STAFF.Read(id, token);
            Sonluk.UI.Model.CRM.HG_STAFFService.CRM_HG_STAFF model = crmModels.HG_STAFF.ReadBySTAFFID(id, token);
            string s = Newtonsoft.Json.JsonConvert.SerializeObject(model);

            return(s);
        }