private void InitComponent()
        {
            sCFm          = new C1SplitContainer();
            scFmLeft      = new C1SplitterPanel();
            scFmRight     = new C1SplitterPanel();
            pnLeft        = new Panel();
            pnRight       = new Panel();
            pnRightTop    = new Panel();
            pnRightBotton = new Panel();

            sCFm.SuspendLayout();
            scFmLeft.SuspendLayout();
            scFmRight.SuspendLayout();
            pnLeft.SuspendLayout();
            pnRight.SuspendLayout();
            pnRightTop.SuspendLayout();
            pnRightBotton.SuspendLayout();

            pnLeft.Dock        = DockStyle.Fill;
            pnRight.Dock       = DockStyle.Fill;
            pnRightTop.Dock    = DockStyle.Top;
            pnRightBotton.Dock = DockStyle.Fill;
            //pnRightTop.BackColor = Color.Red;

            sCFm.AutoSizeElement = C1.Framework.AutoSizeElement.Both;
            sCFm.Name            = "sCFm";
            sCFm.Dock            = System.Windows.Forms.DockStyle.Fill;
            //sCOrdDiag.Panels.Add(pnOrdDiagVal);
            sCFm.Panels.Add(scFmLeft);
            sCFm.Panels.Add(scFmRight);

            sCFm.HeaderHeight     = 20;
            scFmLeft.Collapsible  = true;
            scFmLeft.Dock         = C1.Win.C1SplitContainer.PanelDockStyle.Left;
            scFmLeft.Location     = new System.Drawing.Point(0, 21);
            scFmLeft.Name         = "scFmLeft";
            scFmRight.Collapsible = true;
            scFmRight.Dock        = C1.Win.C1SplitContainer.PanelDockStyle.Right;
            scFmRight.Location    = new System.Drawing.Point(0, 21);
            scFmRight.Name        = "scFmRight";

            scFmLeft.Controls.Add(pnLeft);
            scFmRight.Controls.Add(pnRight);
            pnRight.Controls.Add(pnRightBotton);
            pnRight.Controls.Add(pnRightTop);

            setConponent();

            sCFm.ResumeLayout(false);
            scFmLeft.ResumeLayout(false);
            scFmRight.ResumeLayout(false);
            pnLeft.ResumeLayout(false);
            pnRight.ResumeLayout(false);
            pnRightTop.ResumeLayout(false);
            pnRightBotton.ResumeLayout(false);

            pnRightTop.PerformLayout();
            pnRightBotton.PerformLayout();
            pnLeft.PerformLayout();
            pnRight.PerformLayout();
            sCFm.PerformLayout();
            scFmLeft.PerformLayout();
            scFmRight.PerformLayout();

            this.Controls.Add(sCFm);
        }
Example #2
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;
        }
Example #3
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();
        }