protected void viewStakeholdersForApproval() { OrganizationInfo organizationInfo = new OrganizationInfo(OrganizationID, true); int status = OrganizationInfo.getStewardshipStatusByOrganizationId(OrganizationID, standardstewardshipIds, organizationInfo.OrganizationTypeId); OrganizationStatus s = (OrganizationStatus)status; if (status == 1) { imgBtnPending.Visible = false; } else if (status == 2) { imgbtnApprove.Visible = false; } else if (status == 3) { imgbtnReject.Visible = false; } else if (status == 4) { imgbtnDelete.Visible = false; } lblStatusNotes.Text = (OrganizationInfo.getLatestNotesStatusByOrganizationId(OrganizationID)); lblStatus.Text = s.ToString(); ltrBusinessName.Text = organizationInfo.LegalName; txtBusinessName.Text = organizationInfo.LegalName; ltrDBAName.Text = organizationInfo.DBAName; txtDBAName.Text = organizationInfo.DBAName; ltrFirstName.Text = organizationInfo.FirstName; txtFirstName.Text = organizationInfo.FirstName; ltrLastName.Text = organizationInfo.LastName; txtLastName.Text = organizationInfo.LastName; ltrprimaryEmail.Text = organizationInfo.Email; txtPrimaryEmail.Text = organizationInfo.Email; ltrPhoneNumber.Text = organizationInfo.BusinessNumber; txtPhoneNumber.Text = organizationInfo.BusinessNumber; ltrPhoneExtension.Text = organizationInfo.BusinessExtension; txtPhoneExtension.Text = organizationInfo.BusinessExtension; ltrCellPhoneNumber.Text = organizationInfo.CellNumber; txtCellPhoneNumber.Text = organizationInfo.CellNumber; ltrCellPhoneExtension.Text = organizationInfo.CellExtension; txtCellPhoneExtension.Text = organizationInfo.CellExtension; ltrZipCode.Text = organizationInfo.ZipCode; txtZipCode.Text = organizationInfo.ZipCode; txtZipCode.Enabled = false; hdnBusinessZipCodeId.Value = Conversion.ParseString(organizationInfo.ZipCodeID); ltrState.Text = organizationInfo.StateName; ltrCountry.Text = organizationInfo.CountryName; ddlCountry.SelectedValue = Conversion.ParseString(organizationInfo.CountryID); ddlState.SelectedValue = Conversion.ParseString(organizationInfo.StateID); ltrCity.Text = organizationInfo.City; txtCity.Text = organizationInfo.City; txtCity.Enabled = false; ltrOrganization.Text = organizationInfo.OrganizationType; txtOrganization.Text = organizationInfo.OrganizationType; ltrContactTitle.Text = organizationInfo.ContactTitleName; txtContactTitle.Text = organizationInfo.ContactTitleName; ddlCountry.Enabled = false; ltrBusinessType.Text = organizationInfo.OrganizationSubType; txtBusinessType.Text = organizationInfo.OrganizationSubType; ltrwebsite.Text = organizationInfo.Website; txtWebsite.Text = organizationInfo.Website; ltrBusinessAddress1.Text = organizationInfo.BusinessAddress; txtBusinessAddress1.Text = organizationInfo.BusinessAddress; ltrBusinessAddress2.Text = organizationInfo.AlternativeAddress; txtBusinessAddress2.Text = organizationInfo.AlternativeAddress; ltrBusinessPhoneType.Text = organizationInfo.BusinessPhoneType; txtBusinessPhoneType.Text = organizationInfo.BusinessPhoneType; lrtBusinessTextMessage.Text = (organizationInfo.AcceptTextMessages) ? "Yes" : "No"; if (organizationInfo.AcceptTextMessages) { ddlbusinesstextmsgs.SelectedValue = "1"; } else { ddlbusinesstextmsgs.SelectedValue = "2"; } ltrAddress.Text = organizationInfo.Address; txtAddress.Text = organizationInfo.Address; ltrBillingContact.Text = organizationInfo.BillingContact; txtBillingContact.Text = organizationInfo.BillingContact; ltrFax.Text = organizationInfo.Fax; txtFax.Text = organizationInfo.Fax; ltrCountryAbbreviation.Text = organizationInfo.Abbreviation; txtCountryAbbreviation.Text = organizationInfo.Abbreviation; ltrCellTextMessage.Text = (organizationInfo.CellAcceptTextMessages) ? "Yes" : "No"; if (organizationInfo.CellAcceptTextMessages) { dddlcelltextmsgs.SelectedValue = "1"; } else { dddlcelltextmsgs.SelectedValue = "2"; } ltrCellPhoneType.Text = organizationInfo.CellPhoneType; txtCellPhoneType.Text = organizationInfo.CellPhoneType; ltrBillingMailAddress.Text = organizationInfo.BillMailAddress; txtBillingMailAddress.Text = organizationInfo.BillMailAddress; }
protected void viewStakeholdersForApproval() { // txtZipCode.Enabled = false; txtCity.Enabled = false; ddlCountry.Enabled = false; OrganizationStatus s; standardstewardshipIds = System.Configuration.ConfigurationManager.AppSettings["StewardshipStandardIDs"]; OrganizationInfo o = new OrganizationInfo(OrganizationID); s = (OrganizationStatus)(OrganizationInfo.getStewardshipStatusByOrganizationId(OrganizationID, standardstewardshipIds, o.OrganizationTypeId)); lblStatus.Text = s.ToString(); lblStatusNotes.Text = (OrganizationInfo.getLatestNotesStatusByOrganizationId(OrganizationID)); lblStatus.Text = s.ToString(); OrganizationInfo organizationInfo = new OrganizationInfo(OrganizationID, true); ltrBusinessName.Text = organizationInfo.LegalName; txtBusinessName.Text = organizationInfo.LegalName; ltrDBAName.Text = organizationInfo.DBAName; txtDBAName.Text = organizationInfo.DBAName; ltrFirstName.Text = organizationInfo.FirstName; txtFirstName.Text = organizationInfo.FirstName; ltrLastName.Text = organizationInfo.LastName; txtLastName.Text = organizationInfo.LastName; ltrprimaryEmail.Text = organizationInfo.Email; txtPrimaryEmail.Text = organizationInfo.Email; ltrPhoneNumber.Text = organizationInfo.BusinessNumber; txtPhoneNumber.Text = organizationInfo.BusinessNumber; ltrPhoneExtension.Text = organizationInfo.BusinessExtension; txtPhoneExtension.Text = organizationInfo.BusinessExtension; ltrCellPhoneNumber.Text = organizationInfo.CellNumber; txtCellPhoneNumber.Text = organizationInfo.CellNumber; // ltrCellPhoneExtension.Text = organizationInfo.CellExtension; // txtCellPhoneExtension.Text = organizationInfo.CellExtension; ltrZipCode.Text = organizationInfo.ZipCode; txtZipCode.Text = organizationInfo.ZipCode; hdnBusinessZipCodeId.Value = Conversion.ParseString(organizationInfo.ZipCodeID); ltrState.Text = organizationInfo.StateName; ltrCountry.Text = organizationInfo.CountryName; ddlCountry.SelectedValue = Conversion.ParseString(organizationInfo.CountryID); ddlState.SelectedValue = Conversion.ParseString(organizationInfo.StateID); ltrCity.Text = organizationInfo.City; txtCity.Text = organizationInfo.City; ltrOrganization.Text = organizationInfo.Description; txtOrganization.Text = organizationInfo.Description; ltrContactTitle.Text = organizationInfo.ContactTitleName; txtContactTitle.Text = organizationInfo.ContactTitleName; // ltrBusinessType.Text = organizationInfo.BusinesType; // txtBusinessType.Text = organizationInfo.BusinesType; ltrwebsite.Text = organizationInfo.Website; txtWebsite.Text = organizationInfo.Website; ltrBusinessAddress1.Text = organizationInfo.BusinessAddress; txtBusinessAddress1.Text = organizationInfo.BusinessAddress; ltrBusinessAddress2.Text = organizationInfo.AlternativeAddress; txtBusinessAddress2.Text = organizationInfo.AlternativeAddress; ltrBusinessPhoneType.Text = organizationInfo.BusinessPhoneType; txtBusinessPhoneType.Text = organizationInfo.BusinessPhoneType; lrtBusinessTextMessage.Text = (organizationInfo.AcceptTextMessages) ? "Yes" : "No"; if (organizationInfo.AcceptTextMessages) { ddlbusinesstextmsgs.SelectedValue = "1"; } else { ddlbusinesstextmsgs.SelectedValue = "2"; } // ltrAddress.Text = organizationInfo.Address; // txtAddress.Text = organizationInfo.Address; // ltrBillingContact.Text = organizationInfo.BillingContact; // txtBillingContact.Text = organizationInfo.BillingContact; //ltrFax.Text = organizationInfo.Fax; // txtFax.Text = organizationInfo.Fax; ltrCountryAbbreviation.Text = organizationInfo.Abbreviation; txtCountryAbbreviation.Text = organizationInfo.Abbreviation; ltrCellTextMessage.Text = (organizationInfo.CellAcceptTextMessages) ?"Yes" : "No"; if (organizationInfo.CellAcceptTextMessages) { dddlcelltextmsgs.SelectedValue = "1"; } else { dddlcelltextmsgs.SelectedValue = "2"; } ltrCellPhoneType.Text = organizationInfo.CellPhoneType; txtCellPhoneType.Text = organizationInfo.CellPhoneType; // ltrBillingMailAddress.Text = organizationInfo.BillMailAddress; // txtBillingMailAddress.Text = organizationInfo.BillMailAddress; }