private void txtSearchAccNo_CashPaid_Click(object sender, EventArgs e) { frmCustomerSearchNew obj = new frmCustomerSearchNew(); obj.ShowDialog(); this.txtAccountHolder_CashPaid.Text = bllUtility.ReturnSearchedAccountHolderInfo.returnSearchedAccountHolderInfo.AccHolderName; //test code rasel this.txtAccountNo_CashPaid.Text = bllUtility.ReturnSearchedAccountHolderInfo.returnSearchedAccountHolderInfo.AccountNo; //clearing global search object. bllUtility.ReturnSearchedAccountHolderInfo.returnSearchedAccountHolderInfo = null; }
private void btn_search_account_Click(object sender, EventArgs e) { //frmCustomerSearchNew obj = new frmCustomerSearchNew(); //obj.ShowDialog(); //this.txtAccountHolderSearch.Text = bllUtility.ReturnSearchedAccountHolderInfo.returnSearchedAccountHolderInfo.AccHolderName; //test code rasel //this.txtAccountNoSearch.Text = bllUtility.ReturnSearchedAccountHolderInfo.returnSearchedAccountHolderInfo.AccountNo; ////cmb_zone.EditValue = bllUtility.ReturnSearchedAccountHolderInfo.returnSearchedAccountHolderInfo.ZoneID.ToString(); ////clearing global search object. //bllUtility.ReturnSearchedAccountHolderInfo.returnSearchedAccountHolderInfo = null; frmCustomerSearchNew obj = new frmCustomerSearchNew(); obj.ShowDialog(); this.txtAccountHolderSearch.Text = bllUtility.ReturnSearchedAccountHolderInfo.returnSearchedAccountHolderInfo.AccHolderName; //test code rasel this.txtAccountNoSearch.Text = bllUtility.ReturnSearchedAccountHolderInfo.returnSearchedAccountHolderInfo.AccountNo; //clearing global search object. bllUtility.ReturnSearchedAccountHolderInfo.returnSearchedAccountHolderInfo = null; }
private void btnAccountNoSearch_Click(object sender, EventArgs e) { //frmCustomerSearch obj = new frmCustomerSearch(0); //obj.ShowDialog(); //this.txtAccountName.Text = bllUtility.ReturnSearchedAccountHolderInfo.returnSearchedAccountHolderInfo.AccHolderName; //test code rasel //this.txtAccountNo.Text = bllUtility.ReturnSearchedAccountHolderInfo.returnSearchedAccountHolderInfo.AccountNo; ////clearing global search object. //bllUtility.ReturnSearchedAccountHolderInfo.returnSearchedAccountHolderInfo = null; frmCustomerSearchNew obj = new frmCustomerSearchNew(); obj.ShowDialog(); this.txtAccountName.Text = bllUtility.ReturnSearchedAccountHolderInfo.returnSearchedAccountHolderInfo.AccHolderName; //test code rasel this.txtAccountNo.Text = bllUtility.ReturnSearchedAccountHolderInfo.returnSearchedAccountHolderInfo.AccountNo; //clearing global search object. bllUtility.ReturnSearchedAccountHolderInfo.returnSearchedAccountHolderInfo = null; if (txtAccountNo.Text == "") { return; } else { Cursor = Cursors.WaitCursor; DataTable dt = bllUtility.GetDataBySP("[rpt_account_last_closing_statement] '','" + txtAccountNo.Text + "'"); if (dt.Rows.Count > 0) { lblClosingBalance.Text = dt.Rows[0]["Banance"].ToString(); } else { lblClosingBalance.Text = "0"; } Cursor = Cursors.Default; } }