private void fillText() { objEnt = new clsEntTADetails(); if (iTADetailsID != null) { // objEnt = objTADetails.readerForTADetails(int.Parse(iTADetailsID),txtPortfolioNumber.Text); objEnt = objTADetails.readerForPortfolioDetails(int.Parse(iTADetailsID), txtCreditID.Text); } else { // objEnt = objTADetails.readerForTADetails(0, txtPortfolioNumber.Text); objEnt = objTADetails.readerForPortfolioDetails(0, txtCreditID.Text); } if (objEnt.iCreditID != null) { lblPortfolioID.Text = objEnt.iPortfolioID.ToString(); txtPortfolioName.Text = objEnt.vsPortfolioName; txtPortfolioNumber.Text = objEnt.vsPortfolioNumber; txtPortfolioAmount.Text = Math.Round(Convert.ToDecimal(objEnt.cAmount), 2).ToString(); txtClosingDate.Text = objEnt.dtClosingDate; txtReviseClosingDate.Text = objEnt.dtRevisedClosingDate; txtPortfolioFileNo.Text = objEnt.vsDEAFileNo; ddlWSSector.SelectedValue = objEnt.iDocCatFAID.ToString(); ddlSector.SelectedValue = objEnt.iDocCatID.ToString(); txtCreditID.Text = objEnt.iCreditID.ToString(); ddlPipeline.SelectedValue = objEnt.iPipelineID.ToString(); ddlWBAgency.SelectedValue = objEnt.iFundingAgencyID.ToString(); ddlStatus.SelectedValue = objEnt.iStatusID.ToString(); txtSigningDate.Text = objEnt.SignindDate; txtApprovalDate.Text = objEnt.ApprovalDate; txtNegotiationDate.Text = objEnt.NegotiationDate; ddlIDType.SelectedValue = objEnt.IDType.ToString(); ddlTTl.SelectedValue = objEnt.TTlID.ToString(); //string projectID = objEnt.ProjectID.ToString(); //drpProjectNameNumber.SelectedValue = projectID; btnSubmit.Visible = false; btnUpdate.Visible = true; } }
protected void txtTaNumber_TextChanged(object sender, EventArgs e) { //commented by me discuss with bhavana why use textchagned method //objTADetails = new TADetails(); //objEnt = new clsEntTADetails(); //objEnt = objTADetails.readerForTADetails(0, txtPortfolioNumber.Text); //fillText(); objTADetails = new TADetails(); objEnt = new clsEntTADetails(); objEnt = objTADetails.readerForPortfolioDetails(0, txtPortfolioNumber.Text); fillText(); }