Ejemplo n.º 1
0
        private void initConfig()
        {
            pageLoad = true;
            fEdit    = new Font(ic.iniC.grdViewFontName, ic.grdViewFontSize, FontStyle.Regular);
            fEditB   = new Font(ic.iniC.grdViewFontName, ic.grdViewFontSize, FontStyle.Bold);

            //C1ThemeController.ApplicationTheme = ic.iniC.themeApplication;
            theme1.Theme = ic.iniC.themeApplication;
            theme1.SetTheme(sB, "BeigeOne");
            //theme1.SetTheme(tC, "Office2010Blue");
            sB1.Text = "";
            bg       = txtSearch.BackColor;
            fc       = txtSearch.ForeColor;
            ff       = txtSearch.Font;

            stt = new C1SuperTooltip();
            sep = new C1SuperErrorProvider();

            tabReport          = new C1DockingTabPage();
            tabReport.Location = new System.Drawing.Point(1, 24);
            //tabScan.Name = "c1DockingTabPage1";
            tabReport.Size     = new System.Drawing.Size(667, 175);
            tabReport.TabIndex = 0;
            tabReport.Text     = "Report";
            tabReport.Name     = "tabReport";
            tC.Controls.Add(tabReport);
            sCRpt               = new C1.Win.C1SplitContainer.C1SplitContainer();
            scRptLeft           = new C1.Win.C1SplitContainer.C1SplitterPanel();
            scRptRight          = new C1.Win.C1SplitContainer.C1SplitterPanel();
            sCRptReport         = new C1.Win.C1SplitContainer.C1SplitContainer();
            scRptReportName     = new C1.Win.C1SplitContainer.C1SplitterPanel();
            scRptReportCriteria = new C1.Win.C1SplitContainer.C1SplitterPanel();
            sCRpt.SuspendLayout();
            scRptRight.SuspendLayout();
            scRptLeft.SuspendLayout();
            sCRptReport.SuspendLayout();
            scRptReportName.SuspendLayout();
            scRptReportCriteria.SuspendLayout();

            scRptLeft.Collapsible = true;
            scRptLeft.Dock        = C1.Win.C1SplitContainer.PanelDockStyle.Left;
            scRptLeft.Location    = new System.Drawing.Point(0, 21);
            scRptLeft.Name        = "scRptLeft";
            scRptLeft.Controls.Add(sCRptReport);
            scRptLeft.ClientSize  = new Size(20, 80);
            scRptLeft.Collapsible = true;
            scRptLeft.SizeRatio   = 15;

            scRptRight.Collapsible = false;
            scRptRight.Dock        = C1.Win.C1SplitContainer.PanelDockStyle.Right;
            scRptRight.Location    = new System.Drawing.Point(0, 21);
            scRptRight.Name        = "scRptRight";
            //scRptRight.Controls.Add(day0View);

            sCRpt.AutoSizeElement = C1.Framework.AutoSizeElement.Both;
            sCRpt.Name            = "sCRpt";
            sCRpt.Dock            = System.Windows.Forms.DockStyle.Fill;
            sCRpt.Panels.Add(scRptLeft);
            sCRpt.Panels.Add(scRptRight);
            tabReport.Controls.Add(sCRpt);

            scRptReportCriteria.Collapsible = true;
            scRptReportCriteria.Dock        = C1.Win.C1SplitContainer.PanelDockStyle.Bottom;
            scRptReportCriteria.Location    = new System.Drawing.Point(0, 21);
            scRptReportCriteria.Name        = "scRptReportCriteria";
            //scRptLeft.Controls.Add(pnEmailDay0);
            scRptReportCriteria.ClientSize  = new Size(20, 80);
            scRptReportCriteria.Collapsible = true;
            scRptReportCriteria.SizeRatio   = 25;

            scRptReportName.Collapsible = false;
            scRptReportName.Dock        = C1.Win.C1SplitContainer.PanelDockStyle.Top;
            scRptReportName.Location    = new System.Drawing.Point(0, 21);
            scRptReportName.Name        = "scRptReportName";

            sCRptReport.AutoSizeElement = C1.Framework.AutoSizeElement.Both;
            sCRptReport.Name            = "sCRptReport";
            sCRptReport.Dock            = System.Windows.Forms.DockStyle.Fill;
            sCRptReport.Panels.Add(scRptReportCriteria);
            sCRptReport.Panels.Add(scRptReportName);


            scRptLeft.ResumeLayout(false);
            scRptRight.ResumeLayout(false);
            sCRpt.ResumeLayout(false);
            scRptReportCriteria.ResumeLayout(false);
            scRptReportName.ResumeLayout(false);
            sCRptReport.ResumeLayout(false);
            scRptLeft.PerformLayout();
            scRptRight.PerformLayout();
            sCRpt.PerformLayout();
            scRptReportCriteria.PerformLayout();
            scRptReportName.PerformLayout();
            sCRptReport.PerformLayout();

            //txtDateStart.Value = System.DateTime.Now.Year + "-" + System.DateTime.Now.ToString("MM-dd");
            txtDateStart.Value = "";
            cboVisitBsp.SelectedItemChanged += CboVisitBsp_SelectedItemChanged;
            ic.ivfDB.bspDB.setCboBsp(cboVisitBsp, ic.iniC.service_point_id);

            //btnNew.Click += BtnNew_Click;
            txtSearch.KeyUp += TxtSearch_KeyUp;
            //txtDateStart.ValueChanged += TxtDateStart_ValueChanged;
            txtDateStart.DropDownClosed += TxtDateStart_DropDownClosed;
            tC.SelectedTabChanged       += TC_SelectedTabChanged;
            btnSearch.Click             += BtnSearch_Click;

            initGrfQue();

            initGrfFinish();

            initGrfSearch();
            initGrfRptName();
            initGrfRpt();

            int timerlab = 0;

            int.TryParse(ic.iniC.timerlabreqaccept, out timerlab);
            timer          = new Timer();
            timer.Interval = timerlab * 1000;
            timer.Tick    += Timer_Tick;
            timer.Enabled  = true;
            timer.Start();

            pageLoad = false;
        }
Ejemplo n.º 2
0
        private void initCompoment()
        {
            int  gapLine = 20, gapX = 20;
            Size size = new Size();
            int  scrW = Screen.PrimaryScreen.Bounds.Width;

            sC      = new C1SplitContainer();
            scLeft  = new C1.Win.C1SplitContainer.C1SplitterPanel();
            scRight = new C1.Win.C1SplitContainer.C1SplitterPanel();
            panel1  = new Panel();

            sC.SuspendLayout();
            scLeft.SuspendLayout();
            scRight.SuspendLayout();
            panel1.SuspendLayout();
            this.SuspendLayout();

            sC.Dock     = System.Windows.Forms.DockStyle.Fill;
            sC.Location = new System.Drawing.Point(0, 0);
            sC.Name     = "splitContainer1";
            sC.Size     = new System.Drawing.Size(800, 450);
            sC.TabIndex = 0;

            scLeft.Collapsible = true;
            scLeft.Height      = 86;
            scLeft.Location    = new System.Drawing.Point(0, 21);
            scLeft.Name        = "scLeft";
            scLeft.Size        = new System.Drawing.Size(298, 58);
            scLeft.TabIndex    = 0;
            scLeft.Text        = "Customer List";
            scLeft.Dock        = PanelDockStyle.Left;
            scRight.Height     = 85;
            scRight.Location   = new System.Drawing.Point(0, 111);
            scRight.Name       = "scRight";
            scRight.Dock       = PanelDockStyle.Right;
            scRight.Size       = new System.Drawing.Size(298, 64);
            scRight.TabIndex   = 1;
            scRight.Text       = "Customer Add/Edit";

            panel1.Dock = System.Windows.Forms.DockStyle.Fill;
            panel1.Name = "panel1";

            setControlComponent();
            sC.Panels.Add(scLeft);
            sC.Panels.Add(scRight);
            scRight.Controls.Add(panel1);
            this.Controls.Add(sC);

            panel1.ResumeLayout(false);
            sC.ResumeLayout(false);
            scLeft.ResumeLayout(false);
            scRight.ResumeLayout(false);

            this.ResumeLayout(false);

            panel1.PerformLayout();
            sC.PerformLayout();
            scLeft.PerformLayout();
            scRight.PerformLayout();


            this.PerformLayout();
        }