// // Page class constructor // public cVehiculosPicoYPlacaHoras_grid(AspNetMaker9_ControlVehicular APage) { m_ParentPage = APage; m_Page = this; m_PageID = "grid"; m_PageObjName = "VehiculosPicoYPlacaHoras_grid"; m_PageObjTypeName = "cVehiculosPicoYPlacaHoras_grid"; // Initialize language object if (Language == null) Language = new cLanguage(this); // Initialize table object if (VehiculosPicoYPlacaHoras == null) VehiculosPicoYPlacaHoras = new cVehiculosPicoYPlacaHoras(this); if (Usuarios == null) Usuarios = new cUsuarios(this); if (VehiculosAutorizados == null) VehiculosAutorizados = new cVehiculosAutorizados(this); // Table m_TableName = "VehiculosPicoYPlacaHoras"; m_Table = VehiculosPicoYPlacaHoras; MasterTable = CurrentTable; //MasterTableType = CurrentTableType; CurrentTable = VehiculosPicoYPlacaHoras; //CurrentTableType = VehiculosPicoYPlacaHoras.GetType(); VehiculosPicoYPlacaHoras.LoadDetailParms(); if (ew_NotEmpty(ew_Get("confirmpage"))) ConfirmPage = ew_ConvertToBool(ew_Get("confirmpage")); if (VehiculosPicoYPlacaHoras.CurrentMasterTable == "VehiculosAutorizados") { VehiculosPicoYPlacaHoras.IdVehiculoAutorizado.FldIsDetailKey = true; if (ew_NotEmpty(ew_Get("IdVehiculoAutorizado"))) { VehiculosPicoYPlacaHoras.IdVehiculoAutorizado.CurrentValue = ew_Get("IdVehiculoAutorizado"); VehiculosPicoYPlacaHoras.IdVehiculoAutorizado.SessionValue = VehiculosPicoYPlacaHoras.IdVehiculoAutorizado.CurrentValue; } } // Initialize URLs // Connect to database if (Conn == null) Conn = new cConnection(); // Initialize list options ListOptions = new cListOptions(); }
// Set up detail parms based on QueryString public void SetUpDetailParms() { bool bValidDetail = false; string sDetailTblVar = ""; // Get the keys for master table if (HttpContext.Current.Request.QueryString[EW_TABLE_SHOW_DETAIL] != null) { sDetailTblVar = ew_Get(EW_TABLE_SHOW_DETAIL); VehiculosAutorizados.CurrentDetailTable = sDetailTblVar; } else { sDetailTblVar = VehiculosAutorizados.CurrentDetailTable; } if (ew_NotEmpty(sDetailTblVar)) { if (sDetailTblVar == "VehiculosPicoYPlacaHoras") { if (VehiculosPicoYPlacaHoras == null) VehiculosPicoYPlacaHoras = new cVehiculosPicoYPlacaHoras(this); if (VehiculosPicoYPlacaHoras.DetailAdd) { if (CopyRecord) VehiculosPicoYPlacaHoras.CurrentMode = "copy"; else VehiculosPicoYPlacaHoras.CurrentMode = "add"; VehiculosPicoYPlacaHoras.CurrentAction = "gridadd"; // Save current master table to detail table VehiculosPicoYPlacaHoras.CurrentMasterTable = VehiculosAutorizados.TableVar; VehiculosPicoYPlacaHoras.StartRecordNumber = 1; VehiculosPicoYPlacaHoras.IdVehiculoAutorizado.FldIsDetailKey = true; VehiculosPicoYPlacaHoras.IdVehiculoAutorizado.CurrentValue = VehiculosAutorizados.IdVehiculoAutorizado.CurrentValue; VehiculosPicoYPlacaHoras.IdVehiculoAutorizado.SessionValue = VehiculosPicoYPlacaHoras.IdVehiculoAutorizado.CurrentValue; } } } }
// // Page main processing // public void Page_Main() { // Open connection to the database Conn = new cConnection(); // Initialize table object if (VehiculosPicoYPlacaHoras == null) VehiculosPicoYPlacaHoras = new cVehiculosPicoYPlacaHoras(this); if (Usuarios == null) Usuarios = new cUsuarios(this); if (VehiculosAutorizados == null) VehiculosAutorizados = new cVehiculosAutorizados(this); if (Security == null) Security = new cAdvancedSecurity(this); if (!Security.IsLoggedIn()) Security.AutoLogin(); if (!Security.IsLoggedIn()) { ew_Write(Language.Phrase("NoPermission")); ew_End(); } // Table Permission loading event Security.TablePermission_Loading(); Security.LoadCurrentUserLevel("VehiculosPicoYPlacaHoras"); // Table Permission loaded event Security.TablePermission_Loaded(); if (!Security.IsLoggedIn()) { Security.SaveLastUrl(); ew_Write(Language.Phrase("NoPermission")); ew_End(); } if (!Security.CanList) { ew_Write(Language.Phrase("NoPermission")); ew_End(); } // UserID_Loading event Security.UserID_Loading(); if (Security.IsLoggedIn()) Security.LoadUserID(); // UserID_Loaded event Security.UserID_Loaded(); }
// // Page class constructor // public cVehiculosAutorizados_add(AspNetMaker9_ControlVehicular APage) { m_ParentPage = APage; m_Page = this; m_PageID = "add"; m_PageObjName = "VehiculosAutorizados_add"; m_PageObjTypeName = "cVehiculosAutorizados_add"; // Initialize language object if (Language == null) Language = new cLanguage(this); // Initialize table object if (VehiculosAutorizados == null) VehiculosAutorizados = new cVehiculosAutorizados(this); if (Personas == null) Personas = new cPersonas(this); if (Usuarios == null) Usuarios = new cUsuarios(this); if (VehiculosPicoYPlacaHoras_grid == null) VehiculosPicoYPlacaHoras_grid = new cVehiculosPicoYPlacaHoras_grid(ParentPage); if (VehiculosPicoYPlacaHoras == null) VehiculosPicoYPlacaHoras = new cVehiculosPicoYPlacaHoras(this); // Table m_TableName = "VehiculosAutorizados"; m_Table = VehiculosAutorizados; CurrentTable = VehiculosAutorizados; //CurrentTableType = VehiculosAutorizados.GetType(); // Initialize URLs // Connect to database if (Conn == null) Conn = new cConnection(); }
// // Page class constructor // public cVehiculosPicoYPlacaHoras_list(AspNetMaker9_ControlVehicular APage) { m_ParentPage = APage; m_Page = this; m_PageID = "list"; m_PageObjName = "VehiculosPicoYPlacaHoras_list"; m_PageObjTypeName = "cVehiculosPicoYPlacaHoras_list"; // Initialize language object if (Language == null) Language = new cLanguage(this); // Initialize table object if (VehiculosPicoYPlacaHoras == null) VehiculosPicoYPlacaHoras = new cVehiculosPicoYPlacaHoras(this); if (Usuarios == null) Usuarios = new cUsuarios(this); if (VehiculosAutorizados == null) VehiculosAutorizados = new cVehiculosAutorizados(this); // Table m_TableName = "VehiculosPicoYPlacaHoras"; m_Table = VehiculosPicoYPlacaHoras; CurrentTable = VehiculosPicoYPlacaHoras; //CurrentTableType = VehiculosPicoYPlacaHoras.GetType(); // Initialize URLs ExportPrintUrl = PageUrl + "export=print"; ExportExcelUrl = PageUrl + "export=excel"; ExportWordUrl = PageUrl + "export=word"; ExportHtmlUrl = PageUrl + "export=html"; ExportXmlUrl = PageUrl + "export=xml"; ExportCsvUrl = PageUrl + "export=csv"; ExportPdfUrl = PageUrl + "export=pdf"; AddUrl = "VehiculosPicoYPlacaHorasadd.aspx"; InlineAddUrl = PageUrl + "a=add"; GridAddUrl = PageUrl + "a=gridadd"; GridEditUrl = PageUrl + "a=gridedit"; MultiDeleteUrl = "VehiculosPicoYPlacaHorasdelete.aspx"; MultiUpdateUrl = "VehiculosPicoYPlacaHorasupdate.aspx"; // Connect to database if (Conn == null) Conn = new cConnection(); // Initialize list options ListOptions = new cListOptions(); // Export options ExportOptions = new cListOptions(); ExportOptions.Tag = "span"; ExportOptions.Separator = " "; }