Exemple #1
0
        public string Data_Select(string data)          //查询人员列表
        {
            token = appclass.CRM_Gettoken();
            Sonluk.UI.Model.CRM.HG_STAFFService.CRM_Report_STAFFModel report_model = JsonConvert.DeserializeObject <Sonluk.UI.Model.CRM.HG_STAFFService.CRM_Report_STAFFModel>(data);
            report_model.STAFFID = appclass.CRM_GetStaffid();
            Sonluk.UI.Model.CRM.HG_STAFFService.CRM_HG_STAFFList[] list = crmModels.HG_STAFF.Report(report_model, "staff", token);
            string s = Newtonsoft.Json.JsonConvert.SerializeObject(list);

            return(s);
        }
        public string Data_Select(string data)          //查询人员列表
        {
            if (Session["token"] != null)
            {
                token = Session["token"].ToString();
            }
            Sonluk.UI.Model.CRM.HG_STAFFService.CRM_Report_STAFFModel report_model = JsonConvert.DeserializeObject <Sonluk.UI.Model.CRM.HG_STAFFService.CRM_Report_STAFFModel>(data);
            Sonluk.UI.Model.CRM.HG_STAFFService.CRM_HG_STAFFList[]    list         = crmModels.HG_STAFF.Report(report_model, "staff", token);
            string s = Newtonsoft.Json.JsonConvert.SerializeObject(list);

            return(s);
        }