public void ShowCustShareBalanceReport()
        {
            _branchId = GlobalVariableBO._branchId;
            SummeryReportBAL        summeryReportBal   = new SummeryReportBAL();
            DataTable               dtCustsharebalance = new DataTable();
            crCustTodayShareBalance crCustShareBalance = new crCustTodayShareBalance();
            CustShareBalanceViewer  custShareBalance   = new CustShareBalanceViewer();

            dtCustsharebalance = summeryReportBal.GetCustShareBalance();

            _filterdColumnName = dtCustsharebalance.Columns[0].ToString();
            RecordLevelFilteringBAL obj = new RecordLevelFilteringBAL(dtCustsharebalance, _filterdColumnName, ResourceName.Todays_Summery_Report_Share_Balance);

            dtCustsharebalance = obj.GetRecordLevelFilteredData();

            crCustShareBalance.SetDataSource(dtCustsharebalance);

            GetCommonInfo();
            ///// Load Company Name
            ((TextObject)crCustShareBalance.ReportDefinition.Sections[2].ReportObjects["txtCompanyName"]).Text = _CommpanyName;

            ///// Load Branch Name
            ((TextObject)crCustShareBalance.ReportDefinition.Sections[2].ReportObjects["txtBranchName"]).Text = "Branch Name:" + _branchName + "," + _branchAddress + ". Phone:" + _branchContactNumber;
            ((TextObject)crCustShareBalance.ReportDefinition.Sections[2].ReportObjects["txtPrintDate"]).Text  = GlobalVariableBO._currentServerDate.ToString("dd-MMM-yyyy");

            custShareBalance.crvCustShareBalanceReportViewer.ReportSource = crCustShareBalance;
            custShareBalance.Show();
        }
        private void btn_TodayCustShareBalance_Click(object sender, EventArgs e)
        {
            try
            {
                if (txt_Reason.Text == string.Empty)
                {
                    MessageBox.Show("You Should Writed Down The Reason");
                    return;
                }

                _branchId = GlobalVariableBO._branchId;
                Admin_Alternative_Report_Bal summeryReportBal = new Admin_Alternative_Report_Bal();
                DataTable dtCustsharebalance = new DataTable();
                crCustTodayShareBalance crCustShareBalance = new crCustTodayShareBalance();
                CustShareBalanceViewer  custShareBalance   = new CustShareBalanceViewer();
                dtCustsharebalance = summeryReportBal.GetCustShareBalance(dtp_TodayBalanceDate.Value);

                _filterdColumnName = dtCustsharebalance.Columns[0].ToString();
                RecordLevelFilteringBAL obj = new RecordLevelFilteringBAL(dtCustsharebalance, _filterdColumnName, ResourceName.Todays_Summery_Report_Share_Balance);
                dtCustsharebalance = obj.GetRecordLevelFilteredData();

                crCustShareBalance.SetDataSource(dtCustsharebalance);

                GetCommonInfo();
                ReportName = "TodayCustomerShareBalance";
                ///// Load Company Name
                ((TextObject)crCustShareBalance.ReportDefinition.Sections[2].ReportObjects["txtCompanyName"]).Text = _CommpanyName;

                ///// Load Branch Name
                ((TextObject)crCustShareBalance.ReportDefinition.Sections[2].ReportObjects["txtBranchName"]).Text = "Branch Name:" + _branchName + "," + _branchAddress + ". Phone:" + _branchContactNumber;
                ((TextObject)crCustShareBalance.ReportDefinition.Sections[2].ReportObjects["txtPrintDate"]).Text  = dtp_TodayBalanceDate.Value.ToString("dd-MMM-yyyy");;

                custShareBalance.crvCustShareBalanceReportViewer.ReportSource = crCustShareBalance;
                custShareBalance.Show();
                InsertLog();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }