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


C# ClsBAL.UpdateDepositRequest方法代码示例

本文整理汇总了C#中BAL.ClsBAL.UpdateDepositRequest方法的典型用法代码示例。如果您正苦于以下问题:C# ClsBAL.UpdateDepositRequest方法的具体用法?C# ClsBAL.UpdateDepositRequest怎么用?C# ClsBAL.UpdateDepositRequest使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BAL.ClsBAL的用法示例。


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

示例1: btnUpdateStatus_Click

    protected void btnUpdateStatus_Click(object sender, EventArgs e)
    {
        foreach (GridViewRow row in gvDeposits.Rows)
        {
            Label lblDepositedRequestId = (Label)row.FindControl("lblDepositRequestId");
            Label lblAgentId = (Label)row.FindControl("lblAgentId");
            Label lblAmount = (Label)row.FindControl("lblAmount");
            Label lblDepositType = (Label)row.FindControl("lblDepositType");
            Label lblTransactionNumber = (Label)row.FindControl("lblTransactionNumber");
            Label lblDetails = (Label)row.FindControl("lblDetails");
            Label lblDepositBank = (Label)row.FindControl("lblDepositBank");
            Label lblChequeDrawnBank = (Label)row.FindControl("lblChequeDrawnBank");
            Label lblChequeIssueDate = (Label)row.FindControl("lblChequeIssueDate");
            Label lblChequeNo = (Label)row.FindControl("lblChequeNo");
            Label lblStatus = (Label)row.FindControl("lblStatus");
            DropDownList ddlStatus = (DropDownList)row.FindControl("ddlStatus");
            ClsBAL obj = new ClsBAL();
            DateTime? dtime = null;
            if (lblStatus.Text == "Requested")
            {
                if (lblChequeIssueDate.Text != "")
                {
                    dtime = Convert.ToDateTime(lblChequeIssueDate.Text);
                }
                lblMsg.InnerText = obj.UpdateDepositRequest(Convert.ToInt32(lblAgentId.Text), Convert.ToDouble(lblAmount.Text),
                               lblTransactionNumber.Text, lblDepositType.Text, lblDepositBank.Text, lblChequeDrawnBank.Text, dtime,
                             lblChequeNo.Text, Convert.ToInt32(Session["UserID"].ToString()), Convert.ToInt32(lblDepositedRequestId.Text), lblDetails.Text, ddlStatus.SelectedValue.ToString());
                if (lblMsg.InnerText.ToString() == "Amount has been deposited.")
                {
                    lblMsg.InnerText = lblMsg.InnerText.ToString();
                }

            }

        }
    }
开发者ID:srisai339,项目名称:LoveJourney_Working,代码行数:36,代码来源:frmAgentsDeposits.aspx.cs

示例2: btnUpdateStatus_Click

    protected void btnUpdateStatus_Click(object sender, EventArgs e)
    {
        foreach (GridViewRow row in gvDeposits.Rows)
        {
            Label lblDepositedRequestId = (Label)row.FindControl("lblDepositRequestId");
            Label lblAgentId = (Label)row.FindControl("lblAgentId");
            Label lblAgentname = (Label)row.FindControl("lblAgentname");
            Label lblemailId = (Label)row.FindControl("lblemailId");

            Label lblAmount = (Label)row.FindControl("lblAmount");
            Label lblDepositType = (Label)row.FindControl("lblDepositType");
            Label lblTransactionNumber = (Label)row.FindControl("lblTransactionNumber");
            Label lblDetails = (Label)row.FindControl("lblDetails");
            Label lblDepositBank = (Label)row.FindControl("lblDepositBank");
            Label lblChequeDrawnBank = (Label)row.FindControl("lblChequeDrawnBank");
            Label lblChequeIssueDate = (Label)row.FindControl("lblChequeIssueDate");
            Label lblChequeNo = (Label)row.FindControl("lblChequeNo");
            Label lblStatus = (Label)row.FindControl("lblStatus");
            DropDownList ddlStatus = (DropDownList)row.FindControl("ddlStatus");
            ClsBAL obj = new ClsBAL();
            DateTime? dtime = null;
            if (lblStatus.Text == "Requested")
            {
                if (lblChequeIssueDate.Text != "")
                {
                    dtime = Convert.ToDateTime(lblChequeIssueDate.Text);
                }
                lblMsg.InnerText = obj.UpdateDepositRequest(Convert.ToInt32(lblAgentId.Text), Convert.ToDouble(lblAmount.Text),
                               lblTransactionNumber.Text, lblDepositType.Text, lblDepositBank.Text, lblChequeDrawnBank.Text, dtime,
                             lblChequeNo.Text, Convert.ToInt32(Session["UserID"].ToString()), Convert.ToInt32(lblDepositedRequestId.Text), lblDetails.Text, ddlStatus.SelectedValue.ToString());

                //System.Data.DataSet ds = objBal.GetAgentById(Convert.ToInt32(lblAgentId.Text));

                //DeductAgentBalance(Convert.ToInt32(lblAgentId.Text), Convert.ToDouble(0.00),
                //                   Convert.ToInt32(ds.Tables[0].Rows[0]["UserId"].ToString()), lblDepositType.Text, Convert.ToDouble(lblAmount.Text.ToString()),
                //                   Convert.ToDouble(0.00), Convert.ToInt32(0.00));

                if (lblMsg.InnerText.ToString() == "Amount has been deposited.")
                {
                    lblMsg.InnerText = lblMsg.InnerText.ToString();
                    BindDepositRequests();

                    #region
                    string Body = "Hello <b>" + lblAgentname.Text + "</b>," +
                        "<br /><br />Let us welcome you  with lovejourney.in " +
                        "Following are your Added Balance details. <br/> <br/>" +
                        "Email ID :<b><b>" + lblemailId.Text.Trim() + "</b><br />" +
                        "Added Amount:<b><b>" + lblAmount.Text + "</b><br />" +

                        "<br /><br />We thank you for registering with  lovejourney.in and please " +
                        "do not hesitate<br /> to write to us at <a href='mailto:[email protected]'>Mail </a><b> " +
                        "should you have any questions. <br /><br />Best Regards, <br />Administrator<br /> <a href='http://lovejourney.in'> lovejourney.in</a>" +
                        "<br /><br />";
                    MailSender.SendEmail(lblemailId.Text.Trim(), "[email protected]", "[email protected]", "lovejourney-Deposit", Body);
                    #endregion

                }
                //lblStatus.Visible = false;
                //ddlStatus.Visible = true;
            }
            //else
            //{
            //    lblStatus.Visible = true;
            //    ddlStatus.Visible = false;
            //}
        }
    }
开发者ID:srisai339,项目名称:LoveJourney_Working,代码行数:67,代码来源:DMRReport.aspx.cs


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