当前位置: 首页>>代码示例>>C#>>正文


C# RadToolBarEventArgs类代码示例

本文整理汇总了C#中RadToolBarEventArgs的典型用法代码示例。如果您正苦于以下问题:C# RadToolBarEventArgs类的具体用法?C# RadToolBarEventArgs怎么用?C# RadToolBarEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


RadToolBarEventArgs类属于命名空间,在下文中一共展示了RadToolBarEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: RadToolBar1_ButtonClick

        protected void RadToolBar1_ButtonClick(object sender, RadToolBarEventArgs e)
        {
            var toolBarButton = e.Item as RadToolBarButton;
            string commandName = toolBarButton.CommandName;

            switch (commandName)
            {
                case "commit":
                    if (CommitDiscountedAccount())
                    {
                        Response.Redirect(string.Format("Default.aspx?tabid={0}&mid={1}", TabId, ModuleId));
                    }
                    break;
                case "preview":
                    Response.Redirect(EditUrl("", "", "SavingAccReviewList"));
                    break;
                case "authorize":
                    SavingAccountDAO.ApproveDiscountedAccount(tbDepositCode.Text, UserInfo.Username);
                    Response.Redirect(string.Format("Default.aspx?tabid={0}&mid={1}", TabId, ModuleId));
                    break;
                case "reverse":
                    SavingAccountDAO.ReverseDiscountedAccount(tbDepositCode.Text, UserInfo.Username);
                    Response.Redirect(string.Format("Default.aspx?tabid={0}&mid={1}", TabId, ModuleId));
                    break;
                case "print":
                    PrintSavingAccDocument();
                    break;
            }
        }
开发者ID:nguyenppt,项目名称:biscorebanksys,代码行数:29,代码来源:Discounted.ascx.cs

示例2: RadToolBar1_ButtonClick

        protected void RadToolBar1_ButtonClick(object sender, RadToolBarEventArgs e)
        {
            //if (hdfDisable.Value == "0") return;

            var toolBarButton = e.Item as RadToolBarButton;
            string commandName = toolBarButton.CommandName;
            if (commandName == "commit")
            {
                BankProject.Controls.Commont.SetEmptyFormControls(this.Controls);
                rcbCreditAccount.Items.Clear();
                rcbCreditAccount.Text = "";
                FirstLoad();
            }

            if(commandName=="Preview")
            {
                Response.Redirect(EditUrl("chitiet"));
            }

            if (commandName == "authorize" || commandName == "reverse")
            {
                BankProject.Controls.Commont.SetEmptyFormControls(this.Controls);
                BankProject.Controls.Commont.SetTatusFormControls(this.Controls, true);
                FirstLoad();
                LoadToolBar(false);
            }
        }
开发者ID:nguyenppt,项目名称:tfinance0115,代码行数:27,代码来源:OutwardTransferByCash.ascx.cs

示例3: RadToolBar1_ButtonClick

        protected void RadToolBar1_ButtonClick(object sender, RadToolBarEventArgs e)
        {
            var toolbarbutton = e.Item as RadToolBarButton;
            var CommandName = toolbarbutton.CommandName;
            if (CommandName == "commit")
            {
                rcbDebitAccount.Focus();
                txtID.Text = TriTT.B_BMACODE_GetNewID_3par("TRS_CRED_CARD_PAYM", refix_BMACODE(), "/");
                txtDebitAmtLCY.Text = "";
                txtDealRate.Text = "";
                tbCreditCardNum.Text = "";
                txtNarrative.Text = "";
                cmbDebitCurrency.SelectedValue = "";
                rdpValueDate.SelectedDate = DateTime.Now;
                cmbCreditCurrency.SelectedValue = "";
                rdpValueDate2.SelectedDate = DateTime.Now;
                cmbCreditAccount.SelectedValue = "";
                rcbDebitAccount.SelectedValue = "";

            }
            if (CommandName == "Preview")
            {
                Response.Redirect(EditUrl("TransferForCreditCardPayment_PL"));
            }
            if (CommandName == "authorize" || CommandName == "reverse")
            {

                BankProject.Controls.Commont.SetTatusFormControls(this.Controls, true);
                LoadToolBar(false);
                AfterProc();
            }
        }
开发者ID:nguyenppt,项目名称:tfinance0115,代码行数:32,代码来源:TransferForCreditCardPayment.ascx.cs

示例4: OnRadToolBarClick

        protected void OnRadToolBarClick(object sender, RadToolBarEventArgs e)
        {
            var toolBarButton = e.Item as RadToolBarButton;
            string commandName = toolBarButton.CommandName;
            switch (commandName)
            {
                case "Preview":
                    string urlFTAccountClose = this.EditUrl("BlockAccountList");
                    this.Response.Redirect(urlFTAccountClose);
                    break;

                case "Commit":
                    BankProject.DataProvider.Database.BOPENACCOUNT_BLOCK_Update(txtId.Text, txtAmount.Value.HasValue ? txtAmount.Value.Value : 0,dtpFromDate.SelectedDate
                                                                                , dptToDate.SelectedDate,txtDescription.Text);

                    firstload();
                    break;

                case "Authorize":
                    DataProvider.Database.BOPENACCOUNT_BLOCK_UpdateStatus("AUT", txtId.Text, this.UserId.ToString());
                    firstload();
                    break;

                case "Reverse":
                    DataProvider.Database.BOPENACCOUNT_BLOCK_UpdateStatus("REV", txtId.Text, this.UserId.ToString());
                    firstload();
                    break;
            }
        }
开发者ID:nguyenppt,项目名称:tfinance0115,代码行数:29,代码来源:BlockAccount.ascx.cs

示例5: RadToolBar1_ButtonClick

        protected void RadToolBar1_ButtonClick(object sender, RadToolBarEventArgs e)
        {
            var toolBarButton = e.Item as RadToolBarButton;
            string commandName = toolBarButton.CommandName;
            if (commandName == "commit")
            {
                Id++;
                BankProject.Controls.Commont.SetEmptyFormControls(this.Controls);
                txtTellerId.Text = this.UserInfo.Username;
                tbTellerIDCR.Text = this.UserInfo.Username;
                rcbCurrencyPaid.SelectedValue = "VND";
                this.txtId.Text = "TT/09161/0" + Id.ToString();
                RadToolBar1.FindItemByValue("btPreview").Enabled = true;
            }

            if (commandName == "Preview")
            {
                Response.Redirect(EditUrl("chitiet"));
            }

            if (commandName == "authorize" || commandName == "reverse")
            {
                Id++;
                BankProject.Controls.Commont.SetEmptyFormControls(this.Controls);
                BankProject.Controls.Commont.SetTatusFormControls(this.Controls, true);
                LoadToolBar(false);
                txtTellerId.Text = this.UserInfo.Username.ToString();
                this.txtId.Text = "TT/09161/0" + Id.ToString();
            }
        }
开发者ID:nguyenppt,项目名称:1pubcreditnew,代码行数:30,代码来源:ForeignExchange.ascx.cs

示例6: click

    protected void click(object sender, RadToolBarEventArgs e)
    {
        if (RadToolBar1.FindButtonByCommandName("logout").Text == "Login")
        {

            Response.Redirect(ResolveUrl("~/Login.aspx"));

        }
        else if (RadToolBar1.FindButtonByCommandName("logout").Text == "Log Out")
        {
            if (e.Item == RadToolBar1.FindButtonByCommandName("logout"))
            {
                Session["UserId"] = null;
                Response.Cookies["RFriend_Email"].Value = null;
                Response.Cookies["RFriend_UID"].Value = null;
                Response.Cookies["RFriend_PWD"].Value = null;
                Session.Abandon();
               
                System.Web.Security.FormsAuthentication.SignOut();
                Response.Redirect(ResolveUrl("~/Login.aspx"));
            }

            
            

        }


    }
开发者ID:vaibhavgeek,项目名称:friendyoke,代码行数:29,代码来源:Header.ascx.cs

示例7: RadToolBar1_ButtonClick

        protected void RadToolBar1_ButtonClick(object sender, RadToolBarEventArgs e)
        {
            var toolBarButton = e.Item as RadToolBarButton;
            string commandName = toolBarButton.CommandName;
            if (commandName == "commit")
            {
                Id++;
                BankProject.Controls.Commont.SetEmptyFormControls(this.Controls);
                txtTellerIDCR.Text = this.UserInfo.Username;
                this.txtId.Text = "TT/09161/0" + Id.ToString();
                //this.cmbCustomerAccount.SelectedIndex = 0;
                //this.txtAmtFCY.Text = string.Empty;
                //this.txtAmtLCY.Text = string.Empty;
                //this.txtNarrative.Text = string.Empty;

                //this.cmbCurrencyPaid.SelectedIndex = 0;
                //this.txtDealRate.Text = string.Empty;
                //this.cmbWaiveCharges.SelectedIndex = 0;
            }

            if(commandName=="preview")
            {
                Response.Redirect(EditUrl("chitiet"));
            }
        }
开发者ID:nguyenppt,项目名称:1pubcreditnew,代码行数:25,代码来源:WUXoomPayment.ascx.cs

示例8: RadToolBar1_ButtonClick

        protected void RadToolBar1_ButtonClick(object sender, RadToolBarEventArgs e)
        {
            var toolBarButton = e.Item as RadToolBarButton;
            string commandName = toolBarButton.CommandName;
            switch (commandName)
            {
                case "search":
                    radGridReview.DataSource = SavingAccountDAO.GetPeriodicArrearByStatus(Entity.AuthoriseStatus.AUT.ToString(),
                                                tbRefId.Text,rcbCategory.SelectedValue,rcbCurrentcy.SelectedValue,rcbProductLine.SelectedValue,
                                                tbPrincipalFrom.Value.HasValue?tbPrincipalFrom.Value.Value:0,
                                                tbPrincipalTo.Value.HasValue ? tbPrincipalTo.Value.Value : 0, rcbCustomerID.SelectedValue,
                                                rcbtype.SelectedValue);
                    radGridReview.Rebind();
                    break;
                case "preview":
                    if (rcbtype.SelectedValue == "Arrear")
                    {
                        Response.Redirect("Default.aspx?tabid=145&ctl=SavingAccReviewList&mid=800&From=Arrear");
                    }
                    else
                    {
                        Response.Redirect("Default.aspx?tabid=146&ctl=SavingAccReviewList&mid=803&From=Periodic");
                    }

                    break;
                default:
                    ClearControl();
                    radGridReview.DataSource = new DataTable();
                    radGridReview.Rebind();
                    break;
            }
        }
开发者ID:nguyenppt,项目名称:tfinance0115,代码行数:32,代码来源:PreClosure.ascx.cs

示例9: OnRadToolBarClick

        protected void OnRadToolBarClick(object sender, RadToolBarEventArgs e)
        {
            //if (hdfDisable.Value == "0") return;

            var toolBarButton = e.Item as RadToolBarButton;
            string commandName = toolBarButton.CommandName;
            switch (commandName)
            {
                case "Preview":
                    string urlReviewCloseAccountList = this.EditUrl("ReviewCloseAccountList");
                    this.Response.Redirect(urlReviewCloseAccountList);
                    break;

                case "Commit":
                    BankProject.DataProvider.Database.BOPENACCOUNT_CLOSE_Update(txtId.Text, cmbCloseOnline.SelectedValue, cmbCloseMode.SelectedValue, lblStandingOrders.Text,
                                                     lblUnclearedEntries.Text, lblChequesOS.Text, lblBankCards.Text, lblCCChgsOS.Text,
                                                     lblTotalCreditInterest.Value.HasValue ? lblTotalCreditInterest.Value.Value : 0, 0, 0, 0, lblDebitDate.SelectedDate
                                                     , cmbCreditCurrency.SelectedValue, cmbAccountPaid.SelectedValue, lblCreditAmount.Value.HasValue ? lblCreditAmount.Value.Value : 0, txtNarrative.Text);

                    firstload();
                    break;

                case "Authorize":
                    DataProvider.Database.BOPENACCOUNT_CLOSE_UpdateStatus("AUT", txtId.Text, this.UserId.ToString());
                    firstload();
                    break;

                case "Reverse":
                    DataProvider.Database.BOPENACCOUNT_CLOSE_UpdateStatus("REV", txtId.Text, this.UserId.ToString());
                    firstload();
                    break;
            }
        }
开发者ID:nguyenppt,项目名称:tfinance0115,代码行数:33,代码来源:CloseAccount.ascx.cs

示例10: OnRadToolBarClick

        protected void OnRadToolBarClick(object sender, RadToolBarEventArgs e)
        {
            var toolBarButton = e.Item as RadToolBarButton;
            string commandName = toolBarButton.CommandName;
            switch (commandName)
            {
                case "Preview":
                    string urlFTAccountClose = this.EditUrl("UnBlockAccountPreviewList");
                    this.Response.Redirect(urlFTAccountClose);
                    break;

                case "Commit":
                   DataProvider.Database.BOPENACCOUNT_UnBLOCK_UpdateStatus("UNA", txtId.Text, this.UserId.ToString());
                   firstload();
                    break;

                case "Authorize":
                   DataProvider.Database.BOPENACCOUNT_UnBLOCK_UpdateStatus("AUT", txtId.Text, this.UserId.ToString());
                    firstload();
                    break;

                case "Reverse":
                    DataProvider.Database.BOPENACCOUNT_UnBLOCK_UpdateStatus("REV", txtId.Text, this.UserId.ToString());
                    firstload();
                    break;
            }
        }
开发者ID:nguyenppt,项目名称:tfinance0115,代码行数:27,代码来源:UnBlockAccount.ascx.cs

示例11: OnRadToolBarClick

        protected void OnRadToolBarClick(object sender, RadToolBarEventArgs e)
        {
            if (hdfDisable.Value == "0") return;
            var ToolBarButton = e.Item as RadToolBarButton;
            var commandname = ToolBarButton.CommandName;
            switch (commandname)
            {
                case "commit":
                    BankProject.Controls.Commont.SetEmptyFormControls(this.Controls);
                    Default_Setting();
                    rcbDebitAccount.Items.Clear();
                    rcbDebitAccount.Text = "";
                    break;
                case "Preview":
                    LoadToolBar(true);
                    BankProject.Controls.Commont.SetTatusFormControls(this.Controls, false);
                    Response.Redirect(EditUrl("TransferByAccount_PL"));
                    break;
                case "reverse":
                case "authorize":
                    Default_Setting();
                    BankProject.Controls.Commont.SetTatusFormControls(this.Controls, true);
                    LoadToolBar(false);

                    break;
            }
        }
开发者ID:nguyenppt,项目名称:tfinance0115,代码行数:27,代码来源:TransferByAccount.ascx.cs

示例12: rtbToolBar_ButtonClick

 protected void rtbToolBar_ButtonClick(object sender, RadToolBarEventArgs e)
 {
     switch (((RadToolBarButton)e.Item).CommandName)
     {
         case "btnNovo":
             btnNovo_Click();
             break;
         case "btnModificar":
             btnModificar_Click();
             break;
         case "btnExcluir":
             btnExclui_Click();
             break;
         case "btnSalvar":
             btnSalva_Click();
             break;
         case "btnCancelar":
             btnCancela_Click();
             break;
         case "btnSim":
             btnSim_Click();
             break;
         case "btnNao":
             btnNao_Click();
             break;
     }
 }
开发者ID:ViniciusConsultor,项目名称:petsys,代码行数:27,代码来源:cdPastas.aspx.cs

示例13: OnRadToolBarClick

        protected void OnRadToolBarClick(object sender, RadToolBarEventArgs e)
        {
            var toolBarButton = e.Item as RadToolBarButton;
            string commandName = toolBarButton.CommandName;
            if (commandName == "Commit")
            {
                string Category = cmbCategory.Text != "" ? cmbCategory.Text.Split('-')[1].Trim() : "";
                string AccountOfficer = cmbAccountOfficer.Text != "" ? cmbAccountOfficer.Text.Split('-')[1].Trim() : "";
                string ProductLine = cmbProductLine.Text != "" ? cmbProductLine.Text.Split('-')[1].Trim() : "";
                string ChargeCode = cmbChargeCode.Text != "" ? cmbChargeCode.Text.Split('-')[1].Trim() : "";
                string RestrictTxn = cmbRestrictTxn.Text != "" ? cmbRestrictTxn.Text : "";
                string RelationCode = cmbRelationCode.Text != "" ? cmbRelationCode.Text.Split('-')[1].Trim() : "";

                DataProvider.Database.BOPENACCOUNT_Insert(txtId.Text, cmbCustomerId.SelectedValue, lbCustomerType.Text, lbCustomerName.Text, cmbCategory.SelectedValue,
                    Category, cmbCurrency.SelectedValue, txtAccountTitle.Text, txtShortTitle.Text, tbIntCaptoAC.Text,
                    cmbAccountOfficer.SelectedValue, AccountOfficer, cmbProductLine.SelectedValue, ProductLine, cmbChargeCode.SelectedValue,
                    ChargeCode, cmbRestrictTxn.SelectedValue, RestrictTxn, cmbIDJoinHolder.SelectedValue, lbJoinHolderName.Text,
                    cmbRelationCode.SelectedValue, RelationCode, txtJoinNotes.Text, "",
                    "", "", "", "", "", this.UserId.ToString(), "",txtDocID.Text,lbCategoryType.Text);

                Response.Redirect(string.Format("Default.aspx?tabid={0}", this.TabId.ToString()));

                //BankProject.Controls.Commont.SetEmptyFormControls(this.Controls);

                //string SoTT = BankProject.DataProvider.Database.B_BMACODE_GetNewSoTT("BOPENACCOUNT").Tables[0].Rows[0]["SoTT"].ToString();
                //this.txtId.Text = "07." + SoTT.PadLeft(9, '0') + ".5";
                //this.txtId.Text = "06." + ("0000000000" + SoTT).Substring(("0000000000" + SoTT).Length - 10);
            }

            if (commandName == "Preview")
            {
                Response.Redirect(EditUrl("chitiet"));
            }

            if (commandName == "Authorize")
            {
                DataProvider.Database.BOPENACCOUNT_UpdateStatus("AUT", txtId.Text, this.UserId.ToString());
                BankProject.Controls.Commont.SetEmptyFormControls(this.Controls);
                BankProject.Controls.Commont.SetTatusFormControls(this.Controls, true);
                this.LoadToolBar(false);
                string SoTT = BankProject.DataProvider.Database.B_BMACODE_GetNewSoTT("BOPENACCOUNT").Tables[0].Rows[0]["SoTT"].ToString();
                this.txtId.Text = "07." + SoTT.PadLeft(9, '0') + ".5";
                //this.txtId.Text = "06." + ("0000000000" + SoTT).Substring(("0000000000" + SoTT).Length - 10);
            }

            if (commandName == "Reverse")
            {
                DataProvider.Database.BOPENACCOUNT_UpdateStatus("REV", txtId.Text, this.UserId.ToString());
                BankProject.Controls.Commont.SetEmptyFormControls(this.Controls);
                BankProject.Controls.Commont.SetTatusFormControls(this.Controls, true);
                this.LoadToolBar(false);
                string SoTT = BankProject.DataProvider.Database.B_BMACODE_GetNewSoTT("BOPENACCOUNT").Tables[0].Rows[0]["SoTT"].ToString();
                this.txtId.Text = "07." + SoTT.PadLeft(9, '0') + ".5";
                //this.txtId.Text = "06." + ("0000000000" + SoTT).Substring(("0000000000" + SoTT).Length - 10);
            }

            if (commandName == "print")
                PrintDocument();
        }
开发者ID:nguyenppt,项目名称:tfinance0115,代码行数:59,代码来源:OpenCustomerAccount.ascx.cs

示例14: RadToolBar1_ButtonClick

        protected void RadToolBar1_ButtonClick(object sender, RadToolBarEventArgs e)
        {
            var toolBarButton = e.Item as RadToolBarButton;
            string commandName = toolBarButton.CommandName;
            if (commandName == "print" || commandName == "commit")
            {
                //if (hdfDisable.Value == "0") return;

                bd.Database.ProvisionTransfer_DC_Insert(tbDepositCode.Text,tbLCNo.Text,rcbOrderedby.SelectedValue, "", rcbDebitAccount.Text,
                    rcbDebitCurrency.SelectedValue, tbDebitAmout.Text, rdpDebitDDate.SelectedDate.ToString(), rcbCreditAccount.Text, lblCreditCurrency.Text, "",
                    tbCreditAmount.Text, rdpCreditDate.SelectedDate.ToString(), "", rcbType.SelectedValue, rcbType.SelectedItem.Text, this.UserId.ToString(), txtAddRemarks1.Text, txtAddRemarks2.Text);

                RadToolBar1.FindItemByValue("btPreview").Enabled = true;
                bd.Database.ProvisionTransfer_DC_UpdateStatus("UNA", tbDepositCode.Text, this.UserId.ToString());

                BankProject.Controls.Commont.SetEmptyFormControls(this.Controls);
                clearComboBox();
                FirstLoad();
            }
            else if (commandName == "Preview")
            {
                Response.Redirect(EditUrl("chitiet"));
            }
            else if (commandName == "authorize")
            {
                DataProvider.Database.ProvisionTransfer_DC_UpdateStatus("AUT", tbDepositCode.Text, this.UserId.ToString());
                RadToolBar1.FindItemByValue("btPreview").Enabled = true;
                RadToolBar1.FindItemByValue("btCommitData").Enabled = true;
                RadToolBar1.FindItemByValue("btSearch").Enabled = false;

                RadToolBar1.FindItemByValue("btAuthorize").Enabled = false;
                RadToolBar1.FindItemByValue("btReverse").Enabled = false;
                BankProject.Controls.Commont.SetEmptyFormControls(this.Controls);
                BankProject.Controls.Commont.SetTatusFormControls(this.Controls, true);
                clearComboBox();
                FirstLoad();
            }
            else if (commandName == "reverse")
            {
                DataProvider.Database.ProvisionTransfer_DC_UpdateStatus("REV", tbDepositCode.Text, this.UserId.ToString());
                RadToolBar1.FindItemByValue("btPreview").Enabled = true;
                RadToolBar1.FindItemByValue("btCommitData").Enabled = true;
                RadToolBar1.FindItemByValue("btSearch").Enabled = false;

                RadToolBar1.FindItemByValue("btAuthorize").Enabled = false;
                RadToolBar1.FindItemByValue("btReverse").Enabled = false;

                //BankProject.Controls.Commont.SetEmptyFormControls(this.Controls);
                BankProject.Controls.Commont.SetTatusFormControls(this.Controls, true);
                //clearComboBox();
                //FirstLoad();
            }
            else if (commandName == "search")
            {
                LoadData(tbDepositCode.Text);
            }
            hdfDisable.Value = "0";
        }
开发者ID:nguyenppt,项目名称:biscorebanksys,代码行数:58,代码来源:ProvisionTransfer_DC.ascx.cs

示例15: RadToolBar1_OnButtonClick

 protected void RadToolBar1_OnButtonClick(object sender, RadToolBarEventArgs e)
 {
     var toolbarButton = e.Item as RadToolBarButton;
     var CommandName = toolbarButton.CommandName;
     if (CommandName == "search")
     {
         Search();
     }
 }
开发者ID:nguyenppt,项目名称:1pubcreditnew,代码行数:9,代码来源:AmendLoanContract.ascx.cs


注:本文中的RadToolBarEventArgs类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。