Ejemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string selecttedrdb = Request.QueryString["selectedvalue"].ToString();

        if (selecttedrdb == "0")
        {
            if (Request.QueryString["PomID"] != null)
            {
                pomid = Request.QueryString["PomID"].ToString();

                companyid = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
                Bill_Sys_ReportBO _objReport = new Bill_Sys_ReportBO();
                DataSet           dsBillView = _objReport.GetBillDetails(pomid, companyid);
                grdPaymentTransaction.DataSource = dsBillView;
                grdPaymentTransaction.DataBind();
                //ModalPopupExtender1.Show();
            }
        }
        else
        {
            if (Request.QueryString["PomID"] != null)
            {
                pomid     = Request.QueryString["PomID"].ToString();
                companyid = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
                Bill_Sys_ReportBO _objReport = new Bill_Sys_ReportBO();
                DataSet           dsBillView = _objReport.GetBillDetailsOther(pomid, companyid);
                grdPaymentTransaction.DataSource = dsBillView;
                grdPaymentTransaction.DataBind();
                //ModalPopupExtender1.Show();
            }
        }
    }