Esempio n. 1
0
 protected void cmdProductCode_Click(object sender, System.Web.UI.ImageClickEventArgs e)
 {
     cboProductSubGroup_SelectedIndexChanged(null, System.EventArgs.Empty);
 }
Esempio n. 2
0
 protected void imgSaveBack_Click(object sender, System.Web.UI.ImageClickEventArgs e)
 {
     SaveRecord();
     Response.Redirect(lblReferrer.Text);
 }
Esempio n. 3
0
 protected void cmdSearch_Click(object sender, System.Web.UI.ImageClickEventArgs e)
 {
     LoadList();
 }
Esempio n. 4
0
 protected void imgPrint_Click(object sender, System.Web.UI.ImageClickEventArgs e)
 {
     PrintClosingInventorySheet();
 }
Esempio n. 5
0
 protected void idEdit_Click(object sender, System.Web.UI.ImageClickEventArgs e)
 {
     Update();
 }
Esempio n. 6
0
 protected void ImageButton1_Click(object sender, System.Web.UI.ImageClickEventArgs e)
 {
     gotoPageNumber++;
     ViewState["GotoPageNumber"] = gotoPageNumber;
     OnBubbleClick(e);
 }
Esempio n. 7
0
 protected void ibtnFirst_Click(object sender, System.Web.UI.ImageClickEventArgs e)
 {
     gotoPageNumber = 0;
     ViewState["GotoPageNumber"] = gotoPageNumber;
     OnBubbleClick(e);
 }
Esempio n. 8
0
 protected void ibtnRibbonEdit_Click(object sender, System.Web.UI.ImageClickEventArgs e)
 {
     Response.Redirect(string.Format("{0}/{1}?View=Edit&id={2}&userid={2}&IsDlg=1&Filter={3}", SPContext.Current.Web.Url, Pages.UserItem.PAGE_URL, ItemID, Filter), false);
 }
Esempio n. 9
0
 protected void ibtnRibbonCancel_Click(object sender, System.Web.UI.ImageClickEventArgs e)
 {
     Response.Redirect(string.Format("{0}/{1}?Filter={2}", SPContext.Current.Web.Url, Pages.Users.PAGE_URL, Filter), false);
 }
Esempio n. 10
0
 protected void imgCreateBarCode3_Click(object sender, System.Web.UI.ImageClickEventArgs e)
 {
     txtBarcode3.Text = CreateBarCode();
 }
Esempio n. 11
0
 protected void imgPrint_Click(object sender, System.Web.UI.ImageClickEventArgs e)
 {
     PrintCreditMemo();
 }
 protected void btnGo_Click(object sender, System.Web.UI.ImageClickEventArgs e)
 {
     RunSearch();
 }
Esempio n. 13
0
 private void DeleteButton2_Click(object sender, System.Web.UI.ImageClickEventArgs e)
 {
     Delete(this, new System.EventArgs());
 }
Esempio n. 14
0
        protected void btnLogin_Click(object sender, System.Web.UI.ImageClickEventArgs e)
        {
            if ((Session["PassErrorCountAdmin"] != null) && (Session["PassErrorCountAdmin"].ToString() != ""))
            {
                int PassErroeCount = Convert.ToInt32(Session["PassErrorCountAdmin"]);
                if (PassErroeCount > 3)
                {
                    txtUsername.Disabled = true;
                    txtPass.Disabled     = true;
                    btnLogin.Enabled     = false;
                    this.lblMsg.Text     = "对不起,你错误登录了三次,系统登录锁定!";
                    return;
                }
            }

            #region 检查验证码
            if ((Session["CheckCode"] != null) || (Session["CheckCode"].ToString() != ""))
            {
                if (Session["CheckCode"].ToString().ToLower() != this.CheckCode.Value.ToLower())
                {
                    this.lblMsg.Text     = "所填写的验证码与所给的不符 !";
                    Session["CheckCode"] = null;
                    return;
                }
                else
                {
                    Session["CheckCode"] = null;
                }
            }
            else
            {
                Response.Redirect("login.aspx");
            }
            #endregion

            string userName = LTP.Common.PageValidate.InputText(txtUsername.Value.Trim(), 30);
            string Password = LTP.Common.PageValidate.InputText(txtPass.Value.Trim(), 30);

            //验证登录信息,如果验证通过则返回当前用户对象的安全上下文信息
            AccountsPrincipal newUser = AccountsPrincipal.ValidateLogin(userName, Password);
            if (newUser == null)//登录信息不对
            {
                this.lblMsg.Text = "登陆失败: " + userName;
                if ((Session["PassErrorCountAdmin"] != null) && (Session["PassErrorCountAdmin"].ToString() != ""))
                {
                    int PassErroeCount = Convert.ToInt32(Session["PassErrorCountAdmin"]);
                    Session["PassErrorCountAdmin"] = PassErroeCount + 1;
                }
                else
                {
                    Session["PassErrorCountAdmin"] = 1;
                }
            }
            else
            {
                //根据用户对象的上下文得到用户对象信息,用于得到其他信息
                User currentUser = new LTP.Accounts.Bus.User(newUser);
                //if (currentUser.UserType != "AA")
                //{
                //    this.lblMsg.Text = "你非管理员用户,你没有权限登录后台系统!";
                //    return;
                //}

                //把当前用户对象实例赋给Context.User,这样做将会把完整的用户信息加载到ASP.NET提供的验证体系中
                Context.User = newUser;
                //验证当前用户密码
                if (((SiteIdentity)User.Identity).TestPassword(Password) == 0)
                {
                    this.lblMsg.Text = "你的密码无效!";
                    if ((Session["PassErrorCountAdmin"] != null) && (Session["PassErrorCountAdmin"].ToString() != ""))
                    {
                        int PassErroeCount = Convert.ToInt32(Session["PassErrorCountAdmin"]);
                        Session["PassErrorCountAdmin"] = PassErroeCount + 1;
                    }
                    else
                    {
                        Session["PassErrorCountAdmin"] = 1;
                    }
                }
                else
                {
                    //保存当前用户对象信息
                    FormsAuthentication.SetAuthCookie(userName, false);
                    Session["UserInfo"] = currentUser;
                    Session["Style"]    = currentUser.Style;
                    if (Session["returnPage"] != null)
                    {
                        string returnpage = Session["returnPage"].ToString();
                        Session["returnPage"] = null;
                        Response.Redirect(returnpage);
                    }
                    else
                    {
                        Response.Redirect("Main.htm");
                    }
                }
            }
        }
Esempio n. 15
0
 protected void btnCancel_Click(object sender, System.Web.UI.ImageClickEventArgs e)
 {
     Response.Redirect("default.aspx");
 }
Esempio n. 16
0
 protected void exit_Click(object sender, System.Web.UI.ImageClickEventArgs e)
 {
     Response.Redirect("/portal/v7/default.aspx");
 }
Esempio n. 17
0
 private void Rate2_Click(object sender, System.Web.UI.ImageClickEventArgs e)
 {
     DataProvider.Instance().Topics_AddRating(TopicId, UserId, 2, string.Empty, Request.UserHostAddress.ToString());
 }
        protected void btnContinue2_Click(object sender, System.Web.UI.ImageClickEventArgs e)
        {
            var eventObj = LoadEventObject();

            if (!eventObj.IsValid(BusinessRulesValidationMode.INSERT))
            {
                var    masterPage = (IControlRoomMaster)Master;
                string message    = String.Format(SRPResources.ApplicationError1, "<ul>");
                foreach (BusinessRulesValidationMessage m in eventObj.ErrorCodes)
                {
                    message = string.Format(String.Format("{0}<li>{{0}}</li>", message), m.ErrorMessage);
                }
                message = string.Format("{0}</ul>", message);
                masterPage.PageError = message;
            }
            else
            {
                if (rblBadge.SelectedIndex == 0)
                {
                    // No Badge Awarded

                    eventObj.Insert();
                    var st = new SessionTools(Session);
                    st.RemoveCache(Cache, CacheKey.EventsActive);
                    st.RemoveCache(Cache, CacheKey.AllEvents);
                    Session["EID"] = eventObj.EID;
                    Response.Redirect("EventAddEdit.aspx?M=K");
                }
                if (rblBadge.SelectedIndex == 1)
                {
                    // Existing Badge Awarded
                    eventObj.BadgeID = int.Parse(BadgeID.SelectedValue);
                    eventObj.Insert();
                    var st = new SessionTools(Session);
                    st.RemoveCache(Cache, CacheKey.EventsActive);
                    st.RemoveCache(Cache, CacheKey.AllEvents);
                    Session["EID"] = eventObj.EID;
                    Response.Redirect("EventAddEdit.aspx?M=K");
                }
                if (rblBadge.SelectedIndex == 2)
                {
                    // Start creation of new badge
                    eventObj.Insert();
                    var st = new SessionTools(Session);
                    st.RemoveCache(Cache, CacheKey.EventsActive);
                    st.RemoveCache(Cache, CacheKey.AllEvents);
                    lblPK.Text = eventObj.EID.ToString();

                    pnlBadgeMore.Visible = true;
                    pnlReward.Visible    = false;

                    foreach (GridViewRow row in gvBranch.Rows)
                    {
                        Label idLabel = row.FindControl("CID") as Label;
                        if (idLabel != null && idLabel.Text == BranchId.SelectedValue)
                        {
                            var check = row.FindControl("isMember") as CheckBox;
                            if (check != null)
                            {
                                check.Checked = true;
                            }
                        }
                    }

                    btnContinue3_Click(sender, e);
                }
                new SessionTools(Session).RemoveCache(Cache, CacheKey.EventsActive);
            }
        }
Esempio n. 19
0
 protected void btnLast_Click1(object sender, System.Web.UI.ImageClickEventArgs e)
 {
     gotoPageNumber = Convert.ToInt32(ViewState["TotalPages"].ToString()) - 1;
     ViewState["GotoPageNumber"] = gotoPageNumber;
     OnBubbleClick(e);
 }
 protected void btnPrevious3_Click(object sender, System.Web.UI.ImageClickEventArgs e)
 {
     DeleteTemporaryEvent();
     pnlBadgeMore.Visible = false;
     pnlReward.Visible    = true;
 }
 protected virtual new void OnClick(System.Web.UI.ImageClickEventArgs e)
 {
 }
 protected void btnCancel4_Click(object sender, System.Web.UI.ImageClickEventArgs e)
 {
     DeleteTemporaryEventAndBadge();
     CancelWizard();
 }
Esempio n. 23
0
        protected void imgAdd_Click(object sender, System.Web.UI.ImageClickEventArgs e)
        {
            string stParam = "?task=" + Common.Encrypt("add", Session.SessionID) + "&groupid=" + Common.Encrypt(lblGroupID.Text, Session.SessionID);

            Response.Redirect("Default.aspx" + stParam);
        }
 protected void btnCancel2_Click(object sender, System.Web.UI.ImageClickEventArgs e)
 {
     CancelWizard();
 }
Esempio n. 25
0
 protected void idBack_Click(object sender, System.Web.UI.ImageClickEventArgs e)
 {
     Response.Redirect(Constants.ROOT_DIRECTORY + "/MasterFiles/_ProductGroup/Default.aspx?task=" + Common.Encrypt("list", Session.SessionID));
 }
 protected void btnPrevious2_Click(object sender, System.Web.UI.ImageClickEventArgs e)
 {
     pnlEvent.Visible  = true;
     pnlReward.Visible = false;
 }
Esempio n. 27
0
 protected void imgCancel_Click(object sender, System.Web.UI.ImageClickEventArgs e)
 {
     Response.Redirect(lblReferrer.Text);
 }
Esempio n. 28
0
 // Search & Auto Post Back Handlers
 protected void btnGo_Click(object sender, System.Web.UI.ImageClickEventArgs e)
 {
     FindOrders(1);
 }
Esempio n. 29
0
 protected void imgCancel_Click(object sender, System.Web.UI.ImageClickEventArgs e)
 {
     Response.Redirect("Default.aspx?task=" + Common.Encrypt("list", Session.SessionID));
 }
Esempio n. 30
0
 protected void imgSubGroupCodeSearch_Click(object sender, System.Web.UI.ImageClickEventArgs e)
 {
     cboProductGroup_SelectedIndexChanged(null, null);
 }