Ejemplo n.º 1
0
        protected void btnAuothOpen_Click(object sender, ImageClickEventArgs e)
        {
            try
            {
                DataRow orderDate = SellersBLL.GetSelerOrderDate(Users.Nick);
                if (orderDate != null)
                {
                    if (orderDate["OrderVersion"].Equals("体验版"))
                    {
                        Response.Redirect("http://crm.new9channel.com/version/versionTip.aspx");
                        return;
                    }

                    if (AppCusBLL.CheckAppCusIsExit(Users.Nick))
                    {
                        ITopClient           client = TBManager.GetClient();
                        TmcUserCancelRequest req    = new TmcUserCancelRequest();
                        req.Nick = Users.Nick;
                        TmcUserCancelResponse response = client.Execute(req);
                        if (response.IsSuccess)
                        {
                            AppCusBLL.DeleteSellerNifty(Users.Nick);
                            btnAuothOpen.ImageUrl = "~/Images/rate/closed.png";
                        }
                        else
                        {
                            lberror.Text = response.ErrMsg;
                        }
                    }
                    else
                    {
                        ITopClient            client   = TBManager.GetClient();
                        TmcUserPermitRequest  req      = new TmcUserPermitRequest();
                        TmcUserPermitResponse response = client.Execute(req, Users.SessionKey);
                        AppCustomer           appCus   = null;
                        if (response.IsSuccess)
                        {
                            appCus         = new AppCustomer();
                            appCus.Status  = "1";
                            appCus.Nick    = Users.Nick;
                            appCus.Created = DateTime.Now.ToShortDateString();
                            AppCusBLL.AddAppCus(appCus);
                            btnAuothOpen.ImageUrl = "~/Images/rate/2open.png";
                        }
                        else
                        {
                            lberror.Text = response.ErrMsg;
                        }
                    }
                    btnAuothOpen.Width  = Unit.Pixel(80);
                    btnAuothOpen.Height = Unit.Pixel(25);
                }
            }
            catch (Exception ex)
            {
                ExceptionReporter.WriteLog(ex, ExceptionPostion.TBApply_Web_UI);
            }
        }
Ejemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            this.MaintainScrollPositionOnPostBack = true;
            if (!Page.IsPostBack)
            {
                //初始化短信发送条件配置
                MsgSendConfig o = new MsgSendConfig();
                o.SellerNick = Users.Nick;

                if (!MemberNotifyBLL.CheckMsgConfigIsExit(o))
                {
                    o.BuyerLevel = 0;
                    o.Amount     = "0";

                    o.UnPayType         = "0";
                    o.PayType           = "0";
                    o.ShippingType      = "0";
                    o.DelayShippingType = "0";
                    o.ArrivedType       = "0";
                    o.SignType          = "0";
                    o.ReturnGoodsType   = "0";

                    o.UnpayMsg               = rdounpayTemp1.Text.Trim();
                    o.PayMsg                 = rdoPayType1.Text.Trim();
                    o.ShippingNofityMsg      = rdoShippingCont1.Text.Trim();
                    o.DelayShippingNofityMsg = rdoDelayShipping.Text.Trim();
                    o.ArrivedNofityMsg       = RadioButton4.Text.Trim();
                    o.SignNofityMsg          = rdoSign1.Text.Trim();
                    o.ReturnGoodsMsg         = "";
                    o.ShopName               = SellersBLL.GetSignName(Users.Nick);
                    MemberNotifyBLL.AddMsgConfig(o);
                }
                else
                {
                    InitAutoControl(o);
                }

                if (AppCusBLL.CheckAppCusIsExit(Users.Nick))
                {
                    btnAuothOpen.ImageUrl = "~/Images/rate/2open.png";
                }
                lbShopSignPre.Text = "【" + SellersBLL.GetSignName(Users.Nick) + "】";
            }
            lbMsg.Text             = "";
            lberror2.Text          = "";
            lberror.Text           = "";
            lbSignMsg.Text         = "";
            versionControl.Visible = false;
            if (!Utility.CheckCanSendEmail())
            {
                msgReminder.Visible = true;
            }
            else
            {
                msgReminder.Visible = false;
            }
            msgAcountCheck.Visible = false;
        }
Ejemplo n.º 3
0
 private void CloseMsgService()
 {
     if (AppCusBLL.CheckAppCusIsExit(Users.Nick))
     {
         ITopClient           client = TBManager.GetClient();
         TmcUserCancelRequest req    = new TmcUserCancelRequest();
         req.Nick = Users.Nick;
         TmcUserCancelResponse response = client.Execute(req);
         if (response.IsSuccess)
         {
             AppCusBLL.DeleteSellerNifty(Users.Nick);
         }
     }
 }
Ejemplo n.º 4
0
 public static void StartNotify()
 {
     if (!AppCusBLL.CheckAppCusIsExit(Users.Nick))
     {
         ITopClient            client   = TBManager.GetClient();
         TmcUserPermitRequest  req      = new TmcUserPermitRequest();
         TmcUserPermitResponse response = client.Execute(req, Users.SessionKey);
         AppCustomer           appCus   = null;
         if (response.IsSuccess)
         {
             appCus         = new AppCustomer();
             appCus.Status  = "1";
             appCus.Nick    = Users.Nick;
             appCus.Created = DateTime.Now.ToShortDateString();
             AppCusBLL.AddAppCus(appCus);
         }
     }
 }