Ejemplo n.º 1
0
 private void newOptionMenuToolStripMenuItem_Click(object sender, EventArgs e)
 {
     cListOptions ListOptions = new cListOptions(GlobalInfo);
     FormForGlobalInfoOptions WindowForOptions = new FormForGlobalInfoOptions(ListOptions);
     WindowForOptions.ShowDialog();
 }
        //
        //  Page class constructor
        //
        public cUserLevels_view(AspNetMaker9_ControlVehicular APage)
        {
            m_ParentPage = APage;
            m_Page = this;
            m_PageID = "view";
            m_PageObjName = "UserLevels_view";
            m_PageObjTypeName = "cUserLevels_view";

            // Initialize language object
            if (Language == null)
                Language = new cLanguage(this);

            // Initialize table object
            if (UserLevels == null)
                UserLevels = new cUserLevels(this);
            if (Usuarios == null)
                Usuarios = new cUsuarios(this);

            // Table
            m_TableName = "UserLevels";
            m_Table = UserLevels;
            CurrentTable = UserLevels;

            //CurrentTableType = UserLevels.GetType();
            // Initialize URLs

            string KeyUrl = "";
            if (ew_NotEmpty(ew_Get("UserLevelID"))) {
                RecKey["UserLevelID"] = ew_Get("UserLevelID");
                KeyUrl += "&UserLevelID=" + ew_UrlEncode(RecKey["UserLevelID"]);
            }
            ExportPrintUrl = PageUrl + "export=print" + KeyUrl;
            ExportHtmlUrl = PageUrl + "export=html" + KeyUrl;
            ExportExcelUrl = PageUrl + "export=excel" + KeyUrl;
            ExportWordUrl = PageUrl + "export=word" + KeyUrl;
            ExportXmlUrl = PageUrl + "export=xml" + KeyUrl;
            ExportCsvUrl = PageUrl + "export=csv" + KeyUrl;
            ExportPdfUrl = PageUrl + "export=pdf" + KeyUrl;

            // Connect to database
            if (Conn == null)
                Conn = new cConnection();

            // Export options
            ExportOptions = new cListOptions();
            ExportOptions.Tag = "span";
            ExportOptions.Separator = "  ";
        }
        //
        //  Page class constructor
        //
        public cHistoricoVehiculos_list(AspNetMaker9_ControlVehicular APage)
        {
            m_ParentPage = APage;
            m_Page = this;
            m_PageID = "list";
            m_PageObjName = "HistoricoVehiculos_list";
            m_PageObjTypeName = "cHistoricoVehiculos_list";

            // Initialize language object
            if (Language == null)
                Language = new cLanguage(this);

            // Initialize table object
            if (HistoricoVehiculos == null)
                HistoricoVehiculos = new cHistoricoVehiculos(this);
            if (Usuarios == null)
                Usuarios = new cUsuarios(this);

            // Table
            m_TableName = "HistoricoVehiculos";
            m_Table = HistoricoVehiculos;
            CurrentTable = HistoricoVehiculos;

            //CurrentTableType = HistoricoVehiculos.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 = "HistoricoVehiculosadd.aspx";
            InlineAddUrl = PageUrl + "a=add";
            GridAddUrl = PageUrl + "a=gridadd";
            GridEditUrl = PageUrl + "a=gridedit";
            MultiDeleteUrl = "HistoricoVehiculosdelete.aspx";
            MultiUpdateUrl = "HistoricoVehiculosupdate.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 = "  ";
        }
        //
        //  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();
        }
Ejemplo n.º 5
0
        //
        //  Page class constructor
        //
        public cPersonas_grid(AspNetMaker9_ControlVehicular APage)
        {
            m_ParentPage = APage;
            m_Page = this;
            m_PageID = "grid";
            m_PageObjName = "Personas_grid";
            m_PageObjTypeName = "cPersonas_grid";

            // Initialize language object
            if (Language == null)
                Language = new cLanguage(this);

            // Initialize table object
            if (Personas == null)
                Personas = new cPersonas(this);
            if (Areas == null)
                Areas = new cAreas(this);
            if (Usuarios == null)
                Usuarios = new cUsuarios(this);

            // Table
            m_TableName = "Personas";
            m_Table = Personas;
            MasterTable = CurrentTable;

            //MasterTableType = CurrentTableType;
            CurrentTable = Personas;

            //CurrentTableType = Personas.GetType();
            Personas.LoadDetailParms();
            if (ew_NotEmpty(ew_Get("confirmpage")))
                ConfirmPage = ew_ConvertToBool(ew_Get("confirmpage"));
            if (Personas.CurrentMasterTable == "Areas") {
                Personas.IdArea.FldIsDetailKey = true;
                if (ew_NotEmpty(ew_Get("IdArea"))) {
                    Personas.IdArea.CurrentValue = ew_Get("IdArea");
                    Personas.IdArea.SessionValue = Personas.IdArea.CurrentValue;
                }
            }

            // Initialize URLs
            // Connect to database

            if (Conn == null)
                Conn = new cConnection();

            // Initialize list options
            ListOptions = new cListOptions();
        }
        private void colorsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            cListOptions ListOptions = new cListOptions(GlobalInfo);

            FormForGlobalInfoOptions WindowForOptions = new FormForGlobalInfoOptions(ListOptions);
            WindowForOptions.SelectOption("Cellular Phenotypes");
            if (WindowForOptions.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                // WindowForOptions.Close();
                ReDraw();

            }

            this.ReFreshMainGraph();
            this.RedrawHistoHorizontal(true);
            //ReDraw();
        }
Ejemplo n.º 7
0
        public FormForGlobalInfoOptions(cListOptions ListOptions)
        {
            InitializeComponent();

            this.ListOptions = ListOptions;
        }