Exemplo n.º 1
0
        /// <summary>
        /// 修改手机号
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button7_Click(object sender, EventArgs e)
        {
            dt_Dyn_UpdateMemberShip_req updates = new dt_Dyn_UpdateMemberShip_req();
            ZCRMT322_Dyn z = new ZCRMT322_Dyn();

            z.DATA_SOURCE = AppConfig.DATA_SOURCE;

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

            z.MOB_NUMBER     = "18954152811";
            z.ACCOUNT_ID     = "13681885237";
            z.PARTNER        = "MCHM000000036";
            updates.ZCRMT316 = new ZCRMT322_Dyn[] { z };

            dt_Dyn_UpdateMemberShip_res ups = WebHmjApiHelp.UpdateMemberShip(updates, true);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 绑定成功修改状态
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button6_Click(object sender, EventArgs e)
        {
            dt_Dyn_UpdateMemberShip_req updates = new dt_Dyn_UpdateMemberShip_req();
            ZCRMT322_Dyn z = new ZCRMT322_Dyn();

            z.DATA_SOURCE = AppConfig.DATA_SOURCE;

            z.LOYALTY_BRAND      = AppConfig.LOYALTY_BRAND; //忠诚度品牌
            z.SOURCE_SYSTEM      = AppConfig.SOURCE_SYSTEM; //来源系统
            z.VGROUP             = AppConfig.VGROUP;        //销售组织
            z.WECHATNAME         = "昵称";
            z.WECHATFOLLOWSTATUS = "1";
            z.OPENID             = "sdjflajslkfd";
            z.ACCOUNT_ID         = "18952435467";
            z.PARTNER            = "MCHM000000003";
            updates.ZCRMT316     = new ZCRMT322_Dyn[] { z };

            dt_Dyn_UpdateMemberShip_res ups = WebHmjApiHelp.UpdateMemberShip(updates, true);
        }
Exemplo n.º 3
0
        /// <summary>
        /// 完善信息
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button11_Click(object sender, EventArgs e)
        {
            dt_Dyn_UpdateMemberShip_req updates = new dt_Dyn_UpdateMemberShip_req();
            ZCRMT322_Dyn z = new ZCRMT322_Dyn();

            //大宝生日
            z.KID_BIRTHDAY = "1992-12-23";
            //二宝生日
            z.KID_BIRTHDAY2 = "1992-12-10";
            //从事行业
            z.ZC019 = "4";
            //收入范围
            z.ZC004 = "06";
            //何处了解华美家
            z.INFO_WANTED = "001,002";
            //婚姻状况
            z.ZC016 = "01";
            //品牌编号
            z.BRAND_PREF = "01,02,03";
            //皮肤特征
            z.ZA003 = "01";
            //皮肤问题
            z.ZA004 = "02,03";
            //品牌 编号
            z.BRAND_PREF = "";
            //品类编号
            z.CLASS_PREF = "";


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

            z.ACCOUNT_ID     = "18952435467";
            z.PARTNER        = "MCHM000000003";
            updates.ZCRMT316 = new ZCRMT322_Dyn[] { z };

            dt_Dyn_UpdateMemberShip_res ups = WebHmjApiHelp.UpdateMemberShip(updates, true);
        }
Exemplo n.º 4
0
        /// <summary>
        /// 修改会员详细信息
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button5_Click(object sender, EventArgs e)
        {
            dt_Dyn_UpdateMemberShip_req updates = new dt_Dyn_UpdateMemberShip_req();
            ZCRMT322_Dyn z = new ZCRMT322_Dyn();

            z.DATA_SOURCE = AppConfig.DATA_SOURCE;

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

            z.NAME_LAST  = "苗*";
            z.NAME_FIRST = "玉凯*";
            z.NAME1_TEXT = "苗+玉凯";
            z.XSEX       = "2";
            z.PSTREET    = "修改的地址";

            z.ACCOUNT_ID     = "18952435467";
            z.PARTNER        = "MCHM000000003";
            updates.ZCRMT316 = new ZCRMT322_Dyn[] { z };

            dt_Dyn_UpdateMemberShip_res ups = WebHmjApiHelp.UpdateMemberShip(updates, true);
        }
Exemplo n.º 5
0
        /// <summary>
        /// 修改会员扩展信息
        /// </summary>
        /// <param name="request"></param>
        private string UpdateMemberExtend(MemberExtendDTO request, string mobile, ref string flg)
        {
            dt_Dyn_UpdateMemberShip_req updates = new dt_Dyn_UpdateMemberShip_req();
            ZCRMT322_Dyn z = new ZCRMT322_Dyn
            {
                //大宝生日
                KID_BIRTHDAY = request.KID_BIRTHDAY,
                //二宝生日
                KID_BIRTHDAY2 = request.KID_BIRTHDAY2,
                //从事行业
                ZC019 = request.ZC019,
                //收入范围
                ZC004         = request.ZC004,
                ZC016         = request.ZC016,           //婚姻状况
                BRAND_PREF    = request.BRAND_PREF,      //"01,02,03";//品牌编号
                ZA003         = request.ZA003,           //"01";//皮肤特征
                ZA004         = request.ZA004,           //"02,03";//皮肤问题
                CLASS_PREF    = request.CLASS_PREF,      //品类编号
                DATA_SOURCE   = AppConfig.DATA_SOURCE,
                LOYALTY_BRAND = AppConfig.LOYALTY_BRAND, //忠诚度品牌
                SOURCE_SYSTEM = AppConfig.SOURCE_SYSTEM, //来源系统
                VGROUP        = AppConfig.VGROUP,        //销售组织
                REGION        = request.REGION,          //省编号
                TRANSPZONE    = request.TRANSPZONE,      //市编号
                INFO_WANTED   = request.INFO_WANTED,     //"001,002";//何处了解华美家
                ACCOUNT_ID    = mobile,                  //"18952435467";
                PARTNER       = request.PARTNER          // "MCHM000000003";
            };

            updates.ZCRMT316 = new ZCRMT322_Dyn[] { z };

            dt_Dyn_UpdateMemberShip_res ups = WebHmjApiHelp.UpdateMemberShip(updates);

            flg = ups.WV_RETURN;

            #region 完善资料送积分 2018.03.29 23:59:59停止使用
            //if (flg == "Y")
            //{
            //    bool bo = _hmjMember.SendPoint(request);
            //    if (bo)
            //    {
            //        #region 微信模板消息 2018.03.29 23:59:59停止使用
            //        //接口查询会员主数据,用于模板消息中的内容填充
            //        //dt_Dyn_DispMember_req w = new dt_Dyn_DispMember_req();
            //        //w.DATA_SOURCE = AppConfig.DATA_SOURCE;
            //        //w.LOYALTY_BRAND = AppConfig.LOYALTY_BRAND;//忠诚度品牌
            //        //w.SOURCE_SYSTEM = AppConfig.SOURCE_SYSTEM;//来源系统
            //        //w.VGROUP = AppConfig.VGROUP; //销售组织
            //        //w.PARTNER = request.PARTNER;//会员唯一标示
            //        //dt_Dyn_DispMember_res dt = WebHmjApiHelp.DispMember(w);
            //        //if (dt.ZCRMT316 == null || dt.ZCRMT316.Length <= 0)
            //        //{
            //        //    return null;
            //        //}
            //        //if (dt.ZCRMT316.Length > 1)
            //        //{
            //        //    return null;
            //        //}
            //        //ZCRMT302_Dyn newmeber = dt.ZCRMT316[0];

            //        //var openid = request.OPENID;
            //        //var tempId = "nJqLvWytZJ2IUBdOapJ3RQcJjD3Zvt0UYdvQ1A-5IQ8";
            //        //var redirect_url = AppConfig.HmjWebApp + "assets/hmjweixin/html/hytq.html";
            //        //var p1 = "恭喜您完善资料成功!";
            //        //var p2 = DateTime.Now.ToString("yyyy年MM月dd日");
            //        //var p3 = AppConfig.MemberSend.Split('|')[0];
            //        //var p4 = "完善资料成功";
            //        //var p5 = newmeber.ZCCUR_POINT.ToString();
            //        //var p6 = "今后您可获得更多积分、享受更多优惠。了解更多会员权益,点击查看 >";
            //        //_hmjMember.SendTmpPublicFunc(true, openid, tempId, redirect_url,
            //        //    p1, p2, p3, p4, p5, p6);
            //        #endregion
            //    }
            //}
            #endregion

            return(ups.WV_MESSAGE);
        }