}//END loadSelectionLists method /// ======================================================================================= /// <summary> /// This method loads the navigational page identifiers list for all static, entities and record layouts /// </summary> // --------------------------------------------------------------------------------- public void LoadPageIdentifiers( ) { this.LogInitMethod("LoadPageIdentifiers method"); if (EuAdapter.AdapterObjects.PageIdentifiers == null) { EuAdapter.AdapterObjects.PageIdentifiers = new List <EvOption> ( ); } if (EuAdapter.AdapterObjects.PageIdentifiers.Count > 0) { return; } // // Initialise the methods variables and objects. // EuAdapter.AdapterObjects.PageIdentifiers = new List <EvOption> ( ); EuAdapter.AdapterObjects.PageIdentifiers.Add(new EvOption( )); // // add the static page identifiers. // #region static page identifiers. //this.LogInit ( "Generating the Static PageId list" ); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Home_Page)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Access_Denied)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Alert_View)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Alert_Page)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Ancillary_Record_View)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Ancillary_Record_Page)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Application_Event)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Application_Event_View)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Application_Profile)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Database_Version)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Email_User_Page)); //this._AdapterObjects.PageIdentifiers.Add ( EvStatics.getOption ( Evado.Digital.Model.EdStaticPageIds.Data_Dictionary_View ) ); //this._AdapterObjects.PageIdentifiers.Add ( EvStatics.getOption ( Evado.Digital.Model.EdStaticPageIds.Data_Dictionary_Page ) ); //this._AdapterObjects.PageIdentifiers.Add ( EvStatics.getOption ( Evado.Digital.Model.EdStaticPageIds.Data_Dictionary_Upload ) ); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Form_Draft_Page)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Form_Properties_Page)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Form_Properties_Section_Page)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Form_Field_Page)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Form_Template_Upload)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Form_Template_Download)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Email_Templates_Page)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Entity_Page)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Entity_Admin_Page)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Entity_Export_Page)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Entity_Layout_View)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Entity_Layout_Page)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Entity_Filter_View)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Entity_View)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Login_Page)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Menu_View)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Menu_Page)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Operational_Report_Page)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Operational_Report_List)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Organisation_Page)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Organisation_View)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Page_Layout_View)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Page_Layout_Page)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Page_Layout_Upload)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Report_Saved_View)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Report_Template_Page)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Report_Template_Column_Selection_Page)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Report_Template_View)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Report_Template_Upload)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Report_Template_Download)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Record_Admin_Page)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Record_Page)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Records_View)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Record_Layout_View)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Record_Layout_Page)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Selection_List_Upload)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Selection_List_Page)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.Selection_List_View)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.User_DownLoad_Page)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.User_Profile_Page)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.My_User_Profile_Update_Page)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.User_Profile_Password_Page)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.User_Upload_Page)); EuAdapter.AdapterObjects.PageIdentifiers.Add(EvStatics.getOption(Evado.Digital.Model.EdStaticPageIds.User_View)); #endregion this.LogInit("Generating the PageLayout PageId list"); // // dynamic page identifiers for Entities by LayoutId // foreach (EdPageLayout pageLayout in EuAdapter.AdapterObjects.AllPageLayouts) { if (pageLayout.State != EdPageLayout.States.Issued) { continue; } String pageId = EuAdapter.CONST_PAGE_ID_PREFIX + pageLayout.PageId; String pageLabel = pageId.Replace("_", " "); this.LogInit("{0} = {1} - {2} > UserType {3} ", pageId, pageLayout.PageId, pageLayout.Title, pageLayout.UserTypes); EuAdapter.AdapterObjects.PageIdentifiers.Add(new EvOption(pageId, pageId + " - " + pageLayout.Title)); }//END page list iteration //this.LogInit ( "Generating the Entities PageId list" ); // // dynamic page identifiers for Entities by LayoutId // foreach (EdRecord entityLayout in EuAdapter.AdapterObjects.AllEntityLayouts) { if (entityLayout.State != EdRecordObjectStates.Form_Issued) { this.LogInit("NOT ISSUED: {0} - {1} > ParentType {2} ", entityLayout.LayoutId, entityLayout.Title, entityLayout.Design.ParentType); continue; } String pageId = EuAdapter.CONST_ENTITY_PREFIX + entityLayout.LayoutId; String pageLabel = pageId.Replace("_", " "); this.LogInit("{0} = {1} - {2} > ParentType {3} ", pageId, entityLayout.LayoutId, entityLayout.Title, entityLayout.Design.ParentType); EuAdapter.AdapterObjects.PageIdentifiers.Add(new EvOption(pageId, pageLabel)); pageId = EuAdapter.CONST_ENTITY_PREFIX + entityLayout.LayoutId + EuAdapter.CONST_AUTHOR_PAGE_ID_SUFFIX; pageLabel = pageId.Replace("_", " "); this.LogInit("{0} = {1} - {2} > ParentType {3} ", pageId, entityLayout.LayoutId, entityLayout.Title, entityLayout.Design.ParentType); EuAdapter.AdapterObjects.PageIdentifiers.Add(new EvOption(pageId, pageLabel)); pageId = EuAdapter.CONST_ENTITY_PREFIX + entityLayout.LayoutId + EuAdapter.CONST_ENTITY_FILTERED_LIST_SUFFIX; pageLabel = pageId.Replace("_", " "); this.LogInit("{0} = {1} - {2} > ParentType {3} ", pageId, entityLayout.LayoutId, entityLayout.Title, entityLayout.Design.ParentType); EuAdapter.AdapterObjects.PageIdentifiers.Add(new EvOption(pageId, pageLabel)); // // add the page identifier for child entities. // switch (entityLayout.Design.ParentType) { case EdRecord.ParentTypeList.Organisation_Default: { pageId = EuAdapter.CONST_ENTITY_PREFIX + entityLayout.LayoutId + EuAdapter.CONST_ORG_PARENT_PAGE_ID_SUFFIX2; pageLabel = pageId.Replace("_", " "); this.LogInit("{0} = {1} - {2} > ParentType {3} ", pageId, entityLayout.LayoutId, entityLayout.Title, entityLayout.Design.ParentType); EuAdapter.AdapterObjects.PageIdentifiers.Add(new EvOption(pageId, pageLabel)); break; } case EdRecord.ParentTypeList.Organisation: { pageId = EuAdapter.CONST_ENTITY_PREFIX + entityLayout.LayoutId + EuAdapter.CONST_ORG_PARENT_PAGE_ID_SUFFIX; pageLabel = pageId.Replace("_", " "); this.LogInit("{0} = {1} - {2} > ParentType {3} ", pageId, entityLayout.LayoutId, entityLayout.Title, entityLayout.Design.ParentType); EuAdapter.AdapterObjects.PageIdentifiers.Add(new EvOption(pageId, pageLabel)); break; } case EdRecord.ParentTypeList.User_Default: { pageId = EuAdapter.CONST_ENTITY_PREFIX + entityLayout.LayoutId + EuAdapter.CONST_USER_PARENT_PAGE_ID_SUFFIX2; pageLabel = pageId.Replace("_", " "); this.LogInit("{0} = {1} - {2} > ParentType {3} ", pageId, entityLayout.LayoutId, entityLayout.Title, entityLayout.Design.ParentType); EuAdapter.AdapterObjects.PageIdentifiers.Add(new EvOption(pageId, pageLabel)); break; } case EdRecord.ParentTypeList.User: { pageId = EuAdapter.CONST_ENTITY_PREFIX + entityLayout.LayoutId + EuAdapter.CONST_USER_PARENT_PAGE_ID_SUFFIX; pageLabel = pageId.Replace("_", " "); this.LogInit("{0} = {1} - {2} > ParentType {3} ", pageId, entityLayout.LayoutId, entityLayout.Title, entityLayout.Design.ParentType); EuAdapter.AdapterObjects.PageIdentifiers.Add(new EvOption(pageId, pageLabel)); break; } case EdRecord.ParentTypeList.Entity: { pageId = EuAdapter.CONST_ENTITY_PREFIX + entityLayout.LayoutId + EuAdapter.CONST_ENTITY_PARENT_PAGE_ID_SUFFIX; pageLabel = pageId.Replace("_", " "); this.LogInit("{0} = {1} - {2} > ParentType {3} ", pageId, entityLayout.LayoutId, entityLayout.Title, entityLayout.Design.ParentType); EuAdapter.AdapterObjects.PageIdentifiers.Add(new EvOption(pageId, pageLabel)); break; } } //END switch statement. } //END Entity list iteration //this.LogInit ( "Generating the Records PageId list" ); // // dynamic page identifiers for Entities by LayoutId // foreach (EdRecord recordLayouts in EuAdapter.AdapterObjects.AllRecordLayouts) { if (recordLayouts.State != EdRecordObjectStates.Form_Issued) { continue; } String pageId = EuAdapter.CONST_RECORD_PREFIX + recordLayouts.LayoutId; String pageLabel = pageId.Replace("_", " "); this.LogInit("{0} = {1} - {2} > ParentType {3} ", pageId, recordLayouts.LayoutId, recordLayouts.Title, recordLayouts.Design.ParentType); EuAdapter.AdapterObjects.PageIdentifiers.Add(new EvOption(pageId, pageLabel)); // // add the page identifier for child entities. // switch (recordLayouts.Design.ParentType) { case EdRecord.ParentTypeList.Organisation: { pageId = EuAdapter.CONST_RECORD_PREFIX + recordLayouts.LayoutId + EuAdapter.CONST_ORG_PARENT_PAGE_ID_SUFFIX; pageLabel = pageId.Replace("_", " "); this.LogInit("{0} = {1} - {2} > ParentType {3} ", pageId, recordLayouts.LayoutId, recordLayouts.Title, recordLayouts.Design.ParentType); EuAdapter.AdapterObjects.PageIdentifiers.Add(new EvOption(pageId, pageLabel)); break; } case EdRecord.ParentTypeList.User: { pageId = EuAdapter.CONST_RECORD_PREFIX + recordLayouts.LayoutId + EuAdapter.CONST_USER_PARENT_PAGE_ID_SUFFIX; pageLabel = pageId.Replace("_", " "); this.LogInit("{0} = {1} - {2} > ParentType {3} ", pageId, recordLayouts.LayoutId, recordLayouts.Title, recordLayouts.Design.ParentType); EuAdapter.AdapterObjects.PageIdentifiers.Add(new EvOption(pageId, pageLabel)); break; } case EdRecord.ParentTypeList.Entity: { pageId = EuAdapter.CONST_RECORD_PREFIX + recordLayouts.LayoutId + EuAdapter.CONST_ENTITY_PARENT_PAGE_ID_SUFFIX; pageLabel = pageId.Replace("_", " "); this.LogInit("{0} = {1} - {2} > ParentType {3} ", pageId, recordLayouts.LayoutId, recordLayouts.Title, recordLayouts.Design.ParentType); EuAdapter.AdapterObjects.PageIdentifiers.Add(new EvOption(pageId, pageLabel)); break; } } //END switch statement. } //END Record list iteration this.LogInit("PageIdentifiers.Count: " + EuAdapter.AdapterObjects.PageIdentifiers.Count); this.LogInitMethodEnd("LoadPageIdentifiers method"); }//END LoadPageIdentifiers method