예제 #1
0
        public string get_bfjh_ry(string dept, string gh, string yglx, string xm)
        {
            string           rst   = "";
            CRM_BF_STAFFList yg_in = new CRM_BF_STAFFList();

            yg_in.DEPID     = Convert.ToInt32(dept);
            yg_in.STAFFNO   = gh;
            yg_in.STAFFLX   = Convert.ToInt32(yglx);
            yg_in.STAFFNAME = xm;
            CRM_BF_STAFFList[] yg_info = crmModels.BF_BF.Report_STAFF(yg_in, Session["token"].ToString());
            for (int i = 0; i < yg_info.Length; i++)
            {
                if (yg_info[i].STAFFLX == 1)
                {
                    yg_info[i].STAFFLXDES = "驻外业务员";
                }
                else if (yg_info[i].STAFFLX == 2)
                {
                    yg_info[i].STAFFLXDES = "办公室人员";
                }
                else if (yg_info[i].STAFFLX == 3)
                {
                    yg_info[i].STAFFLXDES = "直营卖场促销员";
                }
                else if (yg_info[i].STAFFLX == 4)
                {
                    yg_info[i].STAFFLXDES = "客户业务员";
                }
            }
            rst = Newtonsoft.Json.JsonConvert.SerializeObject(yg_info);
            return(rst);
        }
예제 #2
0
        //public CRM_BF_BFJHList[] Read_BFJH(CRM_BF_BFJH model, string ptoken)
        //{


        //    return client.Report_BFJH(model,ptoken);

        //}


        public CRM_BF_STAFFList[] Report_STAFF(CRM_BF_STAFFList model, string ptoken)
        {
            return(client.Report_STAFF(model, ptoken));
        }