protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { bioTextBox.ToolbarSet = "BHL"; BHLProvider bp = new BHLProvider(); CustomGenericList <Creator> creators = bp.CreatorSelectAll(); Creator emptyCreator = new Creator(); emptyCreator.CreatorID = -1; emptyCreator.CreatorName = ""; creators.Insert(0, emptyCreator); ddlAuthors.DataSource = creators; ddlAuthors.DataTextField = "CreatorName"; ddlAuthors.DataValueField = "CreatorId"; ddlAuthors.DataBind(); string idString = Request.QueryString["id"]; int id = 0; if (idString != null && int.TryParse(idString, out id)) { ddlAuthors.SelectedValue = idString; populateForm(); } } errorControl.Visible = false; }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { BHLProvider bp = new BHLProvider(); CustomGenericList <Institution> institutions = bp.InstituationSelectAll(); Institution emptyInstitution = new Institution(); emptyInstitution.InstitutionName = "(select institution)"; emptyInstitution.InstitutionCode = ""; institutions.Insert(0, emptyInstitution); listInstitutions.DataSource = institutions; listInstitutions.DataBind(); } else { spanTitle.Visible = chkTitle.Checked; spanSubject.Visible = chkSubject.Checked; spanAssociation.Visible = chkAssociation.Checked; spanCreator.Visible = chkCreator.Checked; spanItem.Visible = chkItem.Checked; } Page.SetFocus(listInstitutions); Page.Title = "BHL Admin - Character Encoding Problems"; }
private void fillCombos() { BHLProvider bp = new BHLProvider(); CustomGenericList <Institution> institutions = bp.InstituationSelectAll(); Institution emptyInstitution = new Institution(); emptyInstitution.InstitutionCode = ""; emptyInstitution.InstitutionName = ""; institutions.Insert(0, emptyInstitution); ddlInst.DataSource = institutions; ddlInst.DataTextField = "InstitutionName"; ddlInst.DataValueField = "InstitutionCode"; ddlInst.DataBind(); CustomGenericList <Language> languages = bp.LanguageSelectAll(); Language emptyLanguage = new Language(); emptyLanguage.LanguageCode = ""; emptyLanguage.LanguageName = ""; languages.Insert(0, emptyLanguage); ddlLang.DataSource = languages; ddlLang.DataTextField = "LanguageName"; ddlLang.DataValueField = "LanguageCode"; ddlLang.DataBind(); CustomGenericList <Vault> vaults = bp.VaultSelectAll(); Vault emptyVault = new Vault(); emptyVault.VaultID = 0; emptyVault.Description = ""; vaults.Insert(0, emptyVault); ddlVault.DataSource = vaults; ddlVault.DataTextField = "Description"; ddlVault.DataValueField = "VaultID"; ddlVault.DataBind(); CustomGenericList <ItemStatus> itemStatuses = bp.ItemStatusSelectAll(); ddlItemStatus.DataSource = itemStatuses; ddlItemStatus.DataTextField = "ItemStatusName"; ddlItemStatus.DataValueField = "ItemStatusID"; ddlItemStatus.DataBind(); }
private void fillLanguages() { BHLProvider bp = new BHLProvider(); CustomGenericList<Language> languages = bp.LanguageSelectAll(); Language emptyLanguage = new Language(); emptyLanguage.LanguageCode = ""; emptyLanguage.LanguageName = ""; languages.Insert( 0, emptyLanguage ); ddlLanguages.DataSource = languages; ddlLanguages.DataTextField = "LanguageName"; ddlLanguages.DataValueField = "LanguageCode"; ddlLanguages.DataBind(); }
private void fillInstitutions() { BHLProvider bp = new BHLProvider(); CustomGenericList <Institution> institutions = bp.InstituationSelectAll(); Institution emptyInstitution = new Institution(); emptyInstitution.InstitutionCode = ""; emptyInstitution.InstitutionName = ""; institutions.Insert(0, emptyInstitution); ddlInstitutions.DataSource = institutions; ddlInstitutions.DataTextField = "InstitutionName"; ddlInstitutions.DataValueField = "InstitutionCode"; ddlInstitutions.DataBind(); }
private void fillPageTypeCombo() { CustomGenericList <PageType> pageTypes = bhlProvider.PageTypeSelectAll(); PageType emptyPageType = new PageType(); emptyPageType.PageTypeName = ""; pageTypes.Insert(0, emptyPageType); pageTypeCombo.DataTextField = "PageTypeName"; pageTypeCombo.DataValueField = "PageTypeID"; pageTypeCombo.DataSource = pageTypes; pageTypeCombo.DataBind(); PageTypeComboClientId = pageTypeCombo.ClientID; }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { BHLProvider bp = new BHLProvider(); CustomGenericList <Vault> vaults = bp.VaultSelectAll(); Vault emptyVault = new Vault(); vaults.Insert(0, emptyVault); ddlVaults.DataSource = vaults; ddlVaults.DataTextField = "Description"; ddlVaults.DataValueField = "VaultID"; ddlVaults.DataBind(); } errorControl.Visible = false; }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { BHLProvider bp = new BHLProvider(); CustomGenericList <Institution> institutions = bp.InstituationSelectAll(); Institution emptyInstitution = new Institution(); emptyInstitution.InstitutionName = "(select institution)"; emptyInstitution.InstitutionCode = ""; institutions.Insert(0, emptyInstitution); listInstitutions.DataSource = institutions; listInstitutions.DataBind(); } Page.SetFocus(listInstitutions); Page.Title = "BHL Admin - Title Import History"; }
private void fillLocations() { BHLProvider bp = new BHLProvider(); CustomGenericList <Location> locations = bp.LocationSelectAll(); Location emptyLocation = new Location(); emptyLocation.LocationName = String.Empty; emptyLocation.Latitude = String.Empty; emptyLocation.Longitude = String.Empty; emptyLocation.NextAttemptDate = DateTime.Now; emptyLocation.IncludeInUI = true; locations.Insert(0, emptyLocation); ddlLocations.DataSource = locations; ddlLocations.DataTextField = "LocationName"; ddlLocations.DataValueField = "LocationName"; ddlLocations.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { BHLProvider bp = new BHLProvider(); CustomGenericList <ItemStatus> itemStatuses = bp.ItemStatusSelectAll(); itemStatuses.Sort(); ItemStatus emptyItemStatus = new ItemStatus(); emptyItemStatus.ItemStatusID = -1; emptyItemStatus.ItemStatusName = ""; itemStatuses.Insert(0, emptyItemStatus); ddlItemStatuses.DataSource = itemStatuses; ddlItemStatuses.DataTextField = "ItemStatusName"; ddlItemStatuses.DataValueField = "ItemStatusID"; ddlItemStatuses.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { BHLProvider bp = new BHLProvider(); CustomGenericList <PageType> pageTypes = bp.PageTypeSelectAll(); pageTypes.Sort(); PageType emptyPageType = new PageType(); emptyPageType.PageTypeID = -1; emptyPageType.PageTypeName = ""; pageTypes.Insert(0, emptyPageType); ddlPageTypes.DataSource = pageTypes; ddlPageTypes.DataTextField = "PageTypeName"; ddlPageTypes.DataValueField = "PageTypeID"; ddlPageTypes.DataBind(); } errorControl.Visible = false; }
private void fillCombos() { BHLProvider bp = new BHLProvider(); CustomGenericList <TitleAssociationType> types = bp.TitleAssociationTypeSelectAll(); foreach (TitleAssociationType type in types) { type.TitleAssociationName = type.TitleAssociationName + " (MARC " + (type.MARCTag + " " + type.MARCIndicator2).Trim() + ")"; } TitleAssociationType emptyType = new TitleAssociationType(); emptyType.TitleAssociationTypeID = 0; emptyType.TitleAssociationName = ""; types.Insert(0, emptyType); ddlType.DataSource = types; ddlType.DataTextField = "TitleAssociationName"; ddlType.DataValueField = "TitleAssociationTypeID"; ddlType.DataBind(); }