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


C# ClsBAL.getDepositrequestsforseach方法代码示例

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


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

示例1: BindDepositRequests

    protected void BindDepositRequests()
    {
        //if (txtdate.Text == "")
        //{
        //    txtdate.Text = "1/1/1900";
        //}
        //if (txtrefno.Text == "")
        //{
        //    txtrefno.Text = "1/1/1900";
        //}
        //if (ddlagentname.SelectedItem.Text == "Please Select")
        //{
        //    ddlagentname.SelectedItem.Text = "";
        //}
        //if (ddldeposittype.SelectedItem.Text == "Please Select")
        //{
        //    ddldeposittype.SelectedItem.Text = "";
        //}

        ClsBAL obj = new ClsBAL();
        obj.FromDate = Convert.ToDateTime("1/1/1900");
        obj.ToDate = Convert.ToDateTime("1/1/1900");
        obj.name = Session["UserName"].ToString();
        obj.type = "";
        DataSet ds = obj.getDepositrequestsforseach();
        if (ds != null)
        {
            if (ds.Tables.Count > 0)
            {
                if (ds.Tables[0].Rows.Count > 0)
                {

                    GridView1.DataSource = GetTopNRows(ds.Tables[0], 5);
                    GridView1.DataBind();
                    ViewState["gv"] = ds;

                    GridView1.Visible = true;
                }
                else
                {
                    //trpaging.Visible = false;
                    //lblerrormsg.Text = "No Data Found";
                    //lblerrormsg.ForeColor = System.Drawing.Color.Red;
                    //lblerrormsg.Visible = true;
                    GridView1.Visible = false;
                }
            }
            else
            {
                //trpaging.Visible = false;
                //lblerrormsg.Text = "No Data Found";
                //lblerrormsg.ForeColor = System.Drawing.Color.Red;
                //lblerrormsg.Visible = true;
                GridView1.Visible = false;
            }
        }
        else
        {
            //trpaging.Visible = false;
            //lblerrormsg.Text = "No Data Found";
            //lblerrormsg.ForeColor = System.Drawing.Color.Red;
            //lblerrormsg.Visible = true;
            gvDeposits.Visible = false;
        }
        //if (txtdate.Text == "1/1/1900")
        //{
        //    txtdate.Text = "";
        //}
        //if (txtrefno.Text == "1/1/1900")
        //{
        //    txtrefno.Text = "";
        //}
        //if (ddlagentname.SelectedItem.Text == "")
        //{
        //    ddlagentname.SelectedItem.Text = "Please Select";
        //}
        //if (ddldeposittype.SelectedItem.Text == "")
        //{
        //    ddldeposittype.SelectedItem.Text = "Please Select";
        //}
    }
开发者ID:srisai339,项目名称:LoveJourney_Working,代码行数:81,代码来源:Deposits.aspx.cs

示例2: gvDeposits_Sorting

    protected void gvDeposits_Sorting(object sender, GridViewSortEventArgs e)
    {
        try
        {
            try
            {
                string strExpression = e.SortExpression;
                string strDirection = ViewState["SortDirection"].ToString();
                objBAL = new ClsBAL();
                if (txtdate.Text == "")
                {
                    txtdate.Text = "1/1/1900";
                }
                if (txtrefno.Text == "")
                {
                    txtrefno.Text = "1/1/1900";
                }
                objBAL.FromDate = Convert.ToDateTime(txtdate.Text);
                objBAL.ToDate = Convert.ToDateTime(txtrefno.Text);
                DataSet ds = objBAL.getDepositrequestsforseach();
                DataTable dt = ds.Tables[0];
                DataView dv = new DataView(dt);
                dv.Sort = strExpression + strDirection;
                gvDeposits.DataSource = dv;
                gvDeposits.DataBind();
                if (strDirection == " ASC") { ViewState["SortDirection"] = " DESC"; } else { ViewState["SortDirection"] = " ASC"; }

                if (txtdate.Text == "1/1/1900")
                {
                    txtdate.Text = "";
                }
                if (txtrefno.Text == "1/1/1900")
                {
                    txtrefno.Text = "";
                }

            }
            catch (Exception ex)
            {
                lblMsg.InnerHtml = ex.Message;
                throw;
            }
        }
        catch (Exception ex)
        {
            lblMsg.InnerHtml = ex.Message;
            throw;
        }
    }
开发者ID:srisai339,项目名称:LoveJourney_Working,代码行数:49,代码来源:frmSalesReport.aspx.cs

示例3: BindDepositRequests

    void BindDepositRequests()
    {
        if (txtdate.Text == "")
        {
            txtdate.Text = "1/1/1900";
        }
        if (txtrefno.Text == "")
        {
            txtrefno.Text = "1/1/1900";
        }
        //if(ddlagentname.SelectedItem.Text == "Please Select")
        //{
        //    ddlagentname.SelectedItem.Text = "";
        //}
        if (ddldeposittype.SelectedItem.Text == "Please Select")
        {
            ddldeposittype.SelectedItem.Text = "";
        }

        ClsBAL obj = new ClsBAL();
        obj.FromDate =Convert.ToDateTime(txtdate.Text);
        obj.ToDate = Convert.ToDateTime(txtrefno.Text);
        obj.name = ddlagentname.Text;
        obj.type = ddldeposittype.SelectedItem.Text;
        DataSet ds = obj.getDepositrequestsforseach();
        if (ds != null)
        {
            if (ds.Tables.Count > 0)
            {
                if (ds.Tables[0].Rows.Count > 0)
                {
                    gvDeposits.DataSource = ds;
                    gvDeposits.DataBind();
                    ViewState["gv"] = ds;
                    trpaging.Visible = true;
                    lblerrormsg.Visible = false;
                    gvDeposits.Visible = true;
                    btnUpdateStatus.Visible = true;
                }
                else
                {
                    btnUpdateStatus.Visible = false;
                    trpaging.Visible = false;
                    lblerrormsg.Text = "No Data Found";
                    lblerrormsg.ForeColor = System.Drawing.Color.Red;
                    lblerrormsg.Visible = true;
                    gvDeposits.Visible = false;
                }
            }
            else
            {
                btnUpdateStatus.Visible = false;
                trpaging.Visible = false;
                lblerrormsg.Text = "No Data Found";
                lblerrormsg.ForeColor = System.Drawing.Color.Red;
                lblerrormsg.Visible = true;
                gvDeposits.Visible = false;
            }
        }
        else
        {
            btnUpdateStatus.Visible = false;
            trpaging.Visible = false;
            lblerrormsg.Text = "No Data Found";
            lblerrormsg.ForeColor = System.Drawing.Color.Red;
            lblerrormsg.Visible = true;
            gvDeposits.Visible = false;
        }
        if (txtdate.Text == "1/1/1900")
        {
            txtdate.Text = "";
        }
        if (txtrefno.Text == "1/1/1900")
        {
            txtrefno.Text = "";
        }
        //if (ddlagentname.SelectedItem.Text == "")
        //{
        //    ddlagentname.SelectedItem.Text = "Please Select";
        //}
        if (ddldeposittype.SelectedItem.Text == "")
        {
            ddldeposittype.SelectedItem.Text = "Please Select";
        }
    }
开发者ID:srisai339,项目名称:LoveJourney_Working,代码行数:85,代码来源:FundTransferReport.aspx.cs


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