protected void findButton_Click(object sender, EventArgs e) { displayRegInfo(); UnitSale saleObj = new UnitSale(); UnitHolderRegistration regObj = new UnitHolderRegistration(); regObj.FundCode = fundCodeTextBox.Text; regObj.BranchCode = branchCodeTextBox.Text; saleNumberTextBox.Text = unitSaleBLObj.getNextSaleNo(regObj, userObj).ToString(); saleObj.SaleNo = opendMFDAO.GetMaxSaleNo(regObj) - 1; }
protected void findButton_Click(object sender, EventArgs e) { displayRegInfo(); UnitSale saleObj = new UnitSale(); UnitHolderRegistration regObj = new UnitHolderRegistration(); regObj.FundCode = fundCodeTextBox.Text; regObj.BranchCode = branchCodeTextBox.Text; saleNumberTextBox.Text = unitSaleBLObj.getNextSaleNo(regObj, userObj).ToString(); // MoneyReceiptNoTextBox.Text = unitSaleBLObj.getNextMoneReceiptNo(regObj, userObj).ToString(); saleObj.SaleNo = opendMFDAO.GetMaxSaleNo(regObj) - 1; saleDateTextBox.Text = opendMFDAO.getLastSaleDate(regObj, saleObj).ToString("dd-MMM-yyyy"); saleRateTextBox.Text = opendMFDAO.getLastSaleRate(regObj, saleObj).ToString(); }