private void btnComfirm_Click(object sender, EventArgs e)
        {
            string strSelBatchNo = this.cmbBatchNo.Text;

            if (string.IsNullOrEmpty(strSelBatchNo))
            {
                CommFunc.MsgInfo("Please select the Batch No.!");
                return;
            }

            if (string.IsNullOrEmpty(this.mtxtChequeNo.Text))
            {
                CommFunc.MsgInfo("Please set the Cheque No.!");
                return;
            }

            Dictionary<string, string> pDicTxNoAndChequeNo = new Dictionary<string, string>();

            int startChequeNo = Convert.ToInt32(this.mtxtChequeNo.Text);

            DataTable dtBatchDetail = DalRules.GetBatchTxNo(strSelBatchNo);
            foreach (DataRow dr in dtBatchDetail.Rows)
            {
                pDicTxNoAndChequeNo.Add(dr["TX_ref_no"].ToString(), startChequeNo.ToString());
                startChequeNo++;
            }

            string strRes = DalRules.UpdateAssignChequeNo(strSelBatchNo, pDicTxNoAndChequeNo, GlobalParam.Inst.gsUserID);
            if (string.IsNullOrEmpty(strRes))
            {
                string strTitle = "Assign Cheque No. Report";
                string strRptPath = "RptRDLC\\AssignChequeRpt.rdlc";
                Dictionary<string, DataTable> dicDSNameWithData = new Dictionary<string, DataTable>();
                dicDSNameWithData.Add("dsMain", DalRules.GetAssignChequeNoRpt(strSelBatchNo));
                Dictionary<string, string> dicParam = new Dictionary<string, string>();
                dicParam.Add("BatchNo", strSelBatchNo);
                dicParam.Add("IsReAssign", "0");

                using (var dlg = new frmRptViewer(strTitle, strRptPath, dicDSNameWithData, dicParam))
                {
                    dlg.ShowDialog(this);
                }

                this.InitData();
            }
            else
                CommFunc.MsgErr(strRes);
        }
        private void btnRePrint_Click(object sender, EventArgs e)
        {
            string strSelBatchNo = this.cmbBatchNo.Text;

            if (string.IsNullOrEmpty(strSelBatchNo))
            {
                CommFunc.MsgInfo("Please select the Batch No.!");
                return;
            }

            string strTitle = "Assign Cheque No. Report";
            string strRptPath = "RptRDLC\\AssignChequeRpt.rdlc";
            Dictionary<string, DataTable> dicDSNameWithData = new Dictionary<string, DataTable>();
            dicDSNameWithData.Add("dsMain", DalRules.GetAssignChequeNoRpt(strSelBatchNo));
            Dictionary<string, string> dicParam = new Dictionary<string, string>();
            dicParam.Add("BatchNo", strSelBatchNo);
            dicParam.Add("IsReAssign", "0");

            using (var dlg = new frmRptViewer(strTitle, strRptPath, dicDSNameWithData, dicParam))
            {
                dlg.ShowDialog(this);
            }
        }
        private void btnReport_Click(object sender, EventArgs e)
        {
            string strTitle = "Import Data Report";
            string strRptPath = "RptRDLC\\ImportDataRpt.rdlc";
            Dictionary<string, DataTable> dicDSNameWithData = new Dictionary<string, DataTable>();
            dicDSNameWithData.Add("dsMain", DalRules.GetRawBatchInfo());

            using (var dlg = new frmRptViewer(strTitle, strRptPath, dicDSNameWithData))
            {
                dlg.ShowDialog(this);
            }
        }