示例#1
0
        /// <summary>
        /// 根据手机号得到crm的会员信息
        /// </summary>
        /// <param name="mobile"></param>
        /// <returns></returns>
        public CrmMemberResDTO GetCrmMemberDto(string mobile)
        {
            dt_Dyn_DispMemQuick_req w = new dt_Dyn_DispMemQuick_req
            {
                DATA_SOURCE   = AppConfig.DATA_SOURCE,
                LOYALTY_BRAND = AppConfig.LOYALTY_BRAND, //忠诚度品牌
                SOURCE_SYSTEM = AppConfig.SOURCE_SYSTEM, //来源系统
                VGROUP        = AppConfig.VGROUP,        //销售组织
                ACCOUNT_ID    = mobile                   //2002652891
            };
            dt_Dyn_DispMemQuick_res dt = WebHmjApiHelp.DispMemQuick(w);

            if (dt.I_ZCRMT316 == null || dt.I_ZCRMT316.Length <= 0)
            {
                return(null);
            }

            if (dt.I_ZCRMT316.Length > 1)
            {
                return(null);
            }

            dt_Dyn_DispMemQuick_resITEM newmeber = dt.I_ZCRMT316[0];

            return(new CrmMemberResDTO()
            {
                ZZAFLD000004 = newmeber.ZZAFLD000004,
                BIRTHDAY = newmeber.BIRTHDT,
                GENDER = newmeber.XSEX == "2" ? "1" : "0",
                NAME_FIRST = newmeber.NAME_FIRST,
                NAME_LAST = newmeber.NAME_LAST,
                REG_DATE = newmeber.REG_DATE,
                ACCOUNT_ID = newmeber.ACCOUNT_ID
            });
        }
示例#2
0
文件: HmjTest.cs 项目: Thn123/hmj
        /// <summary>
        /// 会员快速查询
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button3_Click(object sender, EventArgs e)
        {
            dt_Dyn_DispMemQuick_req w2 = new dt_Dyn_DispMemQuick_req();

            w2.BP = "MCHM000000137";

            w2.DATA_SOURCE   = AppConfig.DATA_SOURCE;
            w2.LOYALTY_BRAND = AppConfig.LOYALTY_BRAND; //忠诚度品牌
            w2.SOURCE_SYSTEM = AppConfig.SOURCE_SYSTEM; //来源系统
            w2.VGROUP        = AppConfig.VGROUP;        //销售组织

            dt_Dyn_DispMemQuick_res dt2 = WebHmjApiHelp.DispMemQuick(w2, true);
        }