コード例 #1
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            POS.Control.Office2010White office2010White2 = new POS.Control.Office2010White();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
            POS.Control.Office2010Green office2010Green2 = new POS.Control.Office2010Green();
            POS.Control.Office2010Red office2010Red2 = new POS.Control.Office2010Red();
            this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
            this.Search = new System.Windows.Forms.GroupBox();
            this.btnSearch = new POS.Control.BaseButton();
            this.txtClosePeriodBy = new POS.Control.BaseTextBox();
            this.txtPeriodName = new POS.Control.BaseTextBox();
            this.txtOpenPeriodBy = new POS.Control.BaseTextBox();
            this.txtPeriodDesc = new POS.Control.BaseTextBox();
            this.txtPeriodCode = new POS.Control.BaseTextBox();
            this.label4 = new System.Windows.Forms.Label();
            this.label3 = new System.Windows.Forms.Label();
            this.label2 = new System.Windows.Forms.Label();
            this.label1 = new System.Windows.Forms.Label();
            this.lblPeriodCode = new System.Windows.Forms.Label();
            this.grdWorkPeriod = new System.Windows.Forms.DataGridView();
            this.period_code = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.period_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.period_description = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.open_period_by = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.open_period_date = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.close_period_by = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.close_period_date = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
            this.btnStartPeriod = new POS.Control.BaseButton();
            this.btnEndPeriod = new POS.Control.BaseButton();
            this.panel1 = new System.Windows.Forms.Panel();
            this.txtCurrentOpenPeriodDate = new POS.Control.BaseTextBox();
            this.label10 = new System.Windows.Forms.Label();
            this.txtCurrentOpenPeriodBy = new POS.Control.BaseTextBox();
            this.label9 = new System.Windows.Forms.Label();
            this.txtCurrentPeriodName = new POS.Control.BaseTextBox();
            this.label8 = new System.Windows.Forms.Label();
            this.txtCurrentPeriodCode = new POS.Control.BaseTextBox();
            this.label7 = new System.Windows.Forms.Label();
            this.txtTimeOfWorkPeriod = new POS.Control.BaseTextBox();
            this.label6 = new System.Windows.Forms.Label();
            this.txtDateOfWorkPeriod = new POS.Control.BaseTextBox();
            this.label5 = new System.Windows.Forms.Label();
            this.tableLayoutPanel1.SuspendLayout();
            this.Search.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.grdWorkPeriod)).BeginInit();
            this.flowLayoutPanel1.SuspendLayout();
            this.panel1.SuspendLayout();
            this.SuspendLayout();
            // 
            // tableLayoutPanel1
            // 
            this.tableLayoutPanel1.ColumnCount = 2;
            this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 75F));
            this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
            this.tableLayoutPanel1.Controls.Add(this.Search, 0, 0);
            this.tableLayoutPanel1.Controls.Add(this.grdWorkPeriod, 0, 1);
            this.tableLayoutPanel1.Controls.Add(this.flowLayoutPanel1, 1, 0);
            this.tableLayoutPanel1.Controls.Add(this.panel1, 1, 1);
            this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
            this.tableLayoutPanel1.Name = "tableLayoutPanel1";
            this.tableLayoutPanel1.RowCount = 2;
            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 194F));
            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.tableLayoutPanel1.Size = new System.Drawing.Size(1008, 730);
            this.tableLayoutPanel1.TabIndex = 0;
            // 
            // Search
            // 
            this.Search.Controls.Add(this.btnSearch);
            this.Search.Controls.Add(this.txtClosePeriodBy);
            this.Search.Controls.Add(this.txtPeriodName);
            this.Search.Controls.Add(this.txtOpenPeriodBy);
            this.Search.Controls.Add(this.txtPeriodDesc);
            this.Search.Controls.Add(this.txtPeriodCode);
            this.Search.Controls.Add(this.label4);
            this.Search.Controls.Add(this.label3);
            this.Search.Controls.Add(this.label2);
            this.Search.Controls.Add(this.label1);
            this.Search.Controls.Add(this.lblPeriodCode);
            this.Search.Dock = System.Windows.Forms.DockStyle.Fill;
            this.Search.Location = new System.Drawing.Point(3, 3);
            this.Search.Name = "Search";
            this.Search.Size = new System.Drawing.Size(750, 188);
            this.Search.TabIndex = 0;
            this.Search.TabStop = false;
            this.Search.Text = "Search";
            // 
            // btnSearch
            // 
            this.btnSearch.CommandArg = null;
            this.btnSearch.Location = new System.Drawing.Point(331, 141);
            this.btnSearch.Name = "btnSearch";
            this.btnSearch.Size = new System.Drawing.Size(94, 23);
            this.btnSearch.TabIndex = 10;
            this.btnSearch.Text = "Search";
            this.btnSearch.Theme = POS.Control.Theme.MSOffice2010_WHITE;
            this.btnSearch.UseVisualStyleBackColor = true;
            this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
            // 
            // txtClosePeriodBy
            // 
            this.txtClosePeriodBy.Location = new System.Drawing.Point(511, 98);
            this.txtClosePeriodBy.Name = "txtClosePeriodBy";
            this.txtClosePeriodBy.Size = new System.Drawing.Size(188, 20);
            this.txtClosePeriodBy.TabIndex = 9;
            // 
            // txtPeriodName
            // 
            this.txtPeriodName.Location = new System.Drawing.Point(511, 33);
            this.txtPeriodName.Name = "txtPeriodName";
            this.txtPeriodName.Size = new System.Drawing.Size(188, 20);
            this.txtPeriodName.TabIndex = 8;
            // 
            // txtOpenPeriodBy
            // 
            this.txtOpenPeriodBy.Location = new System.Drawing.Point(141, 102);
            this.txtOpenPeriodBy.Name = "txtOpenPeriodBy";
            this.txtOpenPeriodBy.Size = new System.Drawing.Size(188, 20);
            this.txtOpenPeriodBy.TabIndex = 7;
            // 
            // txtPeriodDesc
            // 
            this.txtPeriodDesc.Location = new System.Drawing.Point(141, 68);
            this.txtPeriodDesc.Name = "txtPeriodDesc";
            this.txtPeriodDesc.Size = new System.Drawing.Size(188, 20);
            this.txtPeriodDesc.TabIndex = 6;
            // 
            // txtPeriodCode
            // 
            this.txtPeriodCode.Location = new System.Drawing.Point(141, 36);
            this.txtPeriodCode.Name = "txtPeriodCode";
            this.txtPeriodCode.Size = new System.Drawing.Size(188, 20);
            this.txtPeriodCode.TabIndex = 5;
            // 
            // label4
            // 
            this.label4.AutoSize = true;
            this.label4.Location = new System.Drawing.Point(408, 105);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(81, 13);
            this.label4.TabIndex = 4;
            this.label4.Text = "Close Period By";
            // 
            // label3
            // 
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(41, 105);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(81, 13);
            this.label3.TabIndex = 3;
            this.label3.Text = "Open Period By";
            // 
            // label2
            // 
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(408, 36);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(68, 13);
            this.label2.TabIndex = 2;
            this.label2.Text = "Period Name";
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(41, 68);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(65, 13);
            this.label1.TabIndex = 1;
            this.label1.Text = "Period Desc";
            // 
            // lblPeriodCode
            // 
            this.lblPeriodCode.AutoSize = true;
            this.lblPeriodCode.Location = new System.Drawing.Point(41, 36);
            this.lblPeriodCode.Name = "lblPeriodCode";
            this.lblPeriodCode.Size = new System.Drawing.Size(65, 13);
            this.lblPeriodCode.TabIndex = 0;
            this.lblPeriodCode.Text = "Period Code";
            // 
            // grdWorkPeriod
            // 
            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
            dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Control;
            dataGridViewCellStyle3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.WindowText;
            dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight;
            dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
            dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
            this.grdWorkPeriod.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle3;
            this.grdWorkPeriod.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.grdWorkPeriod.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
            this.period_code,
            this.period_name,
            this.period_description,
            this.open_period_by,
            this.open_period_date,
            this.close_period_by,
            this.close_period_date});
            this.grdWorkPeriod.Dock = System.Windows.Forms.DockStyle.Fill;
            this.grdWorkPeriod.Location = new System.Drawing.Point(3, 197);
            this.grdWorkPeriod.Name = "grdWorkPeriod";
            this.grdWorkPeriod.Size = new System.Drawing.Size(750, 530);
            this.grdWorkPeriod.TabIndex = 1;
            // 
            // period_code
            // 
            this.period_code.DataPropertyName = "period_code";
            this.period_code.Frozen = true;
            this.period_code.HeaderText = "Period Code";
            this.period_code.Name = "period_code";
            this.period_code.ReadOnly = true;
            // 
            // period_name
            // 
            this.period_name.DataPropertyName = "period_name";
            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
            dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
            this.period_name.DefaultCellStyle = dataGridViewCellStyle4;
            this.period_name.Frozen = true;
            this.period_name.HeaderText = "Period Name";
            this.period_name.Name = "period_name";
            this.period_name.ReadOnly = true;
            // 
            // period_description
            // 
            this.period_description.DataPropertyName = "period_description";
            this.period_description.HeaderText = "Description";
            this.period_description.Name = "period_description";
            this.period_description.ReadOnly = true;
            // 
            // open_period_by
            // 
            this.open_period_by.DataPropertyName = "open_period_by";
            this.open_period_by.HeaderText = "Open By";
            this.open_period_by.Name = "open_period_by";
            this.open_period_by.ReadOnly = true;
            // 
            // open_period_date
            // 
            this.open_period_date.DataPropertyName = "open_period_date";
            this.open_period_date.HeaderText = "Open Date";
            this.open_period_date.Name = "open_period_date";
            this.open_period_date.ReadOnly = true;
            // 
            // close_period_by
            // 
            this.close_period_by.DataPropertyName = "close_period_by";
            this.close_period_by.HeaderText = "Close By";
            this.close_period_by.Name = "close_period_by";
            this.close_period_by.ReadOnly = true;
            // 
            // close_period_date
            // 
            this.close_period_date.DataPropertyName = "close_period_date";
            this.close_period_date.HeaderText = "Close Date";
            this.close_period_date.Name = "close_period_date";
            this.close_period_date.ReadOnly = true;
            // 
            // flowLayoutPanel1
            // 
            this.flowLayoutPanel1.Controls.Add(this.btnStartPeriod);
            this.flowLayoutPanel1.Controls.Add(this.btnEndPeriod);
            this.flowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.flowLayoutPanel1.Location = new System.Drawing.Point(759, 3);
            this.flowLayoutPanel1.Name = "flowLayoutPanel1";
            this.flowLayoutPanel1.Size = new System.Drawing.Size(246, 188);
            this.flowLayoutPanel1.TabIndex = 3;
            // 
            // btnStartPeriod
            // 
          
            this.btnStartPeriod.CommandArg = null;
            this.btnStartPeriod.Dock = System.Windows.Forms.DockStyle.Top;
            this.btnStartPeriod.Location = new System.Drawing.Point(3, 5);
            this.btnStartPeriod.Margin = new System.Windows.Forms.Padding(3, 5, 3, 3);
            this.btnStartPeriod.Name = "btnStartPeriod";
            this.btnStartPeriod.Size = new System.Drawing.Size(243, 82);
            this.btnStartPeriod.TabIndex = 2;
            this.btnStartPeriod.Text = "Start Work Period";
            this.btnStartPeriod.Theme = POS.Control.Theme.MSOffice2010_Green;
            this.btnStartPeriod.UseVisualStyleBackColor = true;
            // 
            // btnEndPeriod
            // 
           
            this.btnEndPeriod.CommandArg = null;
            this.btnEndPeriod.Dock = System.Windows.Forms.DockStyle.Top;
            this.btnEndPeriod.Location = new System.Drawing.Point(3, 105);
            this.btnEndPeriod.Margin = new System.Windows.Forms.Padding(3, 15, 3, 3);
            this.btnEndPeriod.Name = "btnEndPeriod";
            this.btnEndPeriod.Size = new System.Drawing.Size(243, 82);
            this.btnEndPeriod.TabIndex = 3;
            this.btnEndPeriod.Text = "End Work Period";
            this.btnEndPeriod.Theme = POS.Control.Theme.MSOffice2010_RED;
            this.btnEndPeriod.UseVisualStyleBackColor = true;
            // 
            // panel1
            // 
            this.panel1.Controls.Add(this.txtCurrentOpenPeriodDate);
            this.panel1.Controls.Add(this.label10);
            this.panel1.Controls.Add(this.txtCurrentOpenPeriodBy);
            this.panel1.Controls.Add(this.label9);
            this.panel1.Controls.Add(this.txtCurrentPeriodName);
            this.panel1.Controls.Add(this.label8);
            this.panel1.Controls.Add(this.txtCurrentPeriodCode);
            this.panel1.Controls.Add(this.label7);
            this.panel1.Controls.Add(this.txtTimeOfWorkPeriod);
            this.panel1.Controls.Add(this.label6);
            this.panel1.Controls.Add(this.txtDateOfWorkPeriod);
            this.panel1.Controls.Add(this.label5);
            this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.panel1.Location = new System.Drawing.Point(759, 197);
            this.panel1.Name = "panel1";
            this.panel1.Size = new System.Drawing.Size(246, 530);
            this.panel1.TabIndex = 4;
            // 
            // txtCurrentOpenPeriodDate
            // 
            this.txtCurrentOpenPeriodDate.Location = new System.Drawing.Point(99, 226);
            this.txtCurrentOpenPeriodDate.Name = "txtCurrentOpenPeriodDate";
            this.txtCurrentOpenPeriodDate.Size = new System.Drawing.Size(141, 20);
            this.txtCurrentOpenPeriodDate.TabIndex = 11;
            // 
            // label10
            // 
            this.label10.AutoSize = true;
            this.label10.Location = new System.Drawing.Point(3, 229);
            this.label10.Name = "label10";
            this.label10.Size = new System.Drawing.Size(92, 13);
            this.label10.TabIndex = 10;
            this.label10.Text = "Open Period Date";
            // 
            // txtCurrentOpenPeriodBy
            // 
            this.txtCurrentOpenPeriodBy.Location = new System.Drawing.Point(99, 195);
            this.txtCurrentOpenPeriodBy.Name = "txtCurrentOpenPeriodBy";
            this.txtCurrentOpenPeriodBy.Size = new System.Drawing.Size(141, 20);
            this.txtCurrentOpenPeriodBy.TabIndex = 9;
            // 
            // label9
            // 
            this.label9.AutoSize = true;
            this.label9.Location = new System.Drawing.Point(3, 198);
            this.label9.Name = "label9";
            this.label9.Size = new System.Drawing.Size(81, 13);
            this.label9.TabIndex = 8;
            this.label9.Text = "Open Period By";
            // 
            // txtCurrentPeriodName
            // 
            this.txtCurrentPeriodName.Location = new System.Drawing.Point(99, 162);
            this.txtCurrentPeriodName.Name = "txtCurrentPeriodName";
            this.txtCurrentPeriodName.Size = new System.Drawing.Size(141, 20);
            this.txtCurrentPeriodName.TabIndex = 7;
            // 
            // label8
            // 
            this.label8.AutoSize = true;
            this.label8.Location = new System.Drawing.Point(3, 165);
            this.label8.Name = "label8";
            this.label8.Size = new System.Drawing.Size(68, 13);
            this.label8.TabIndex = 6;
            this.label8.Text = "Period Name";
            // 
            // txtCurrentPeriodCode
            // 
            this.txtCurrentPeriodCode.Location = new System.Drawing.Point(99, 130);
            this.txtCurrentPeriodCode.Name = "txtCurrentPeriodCode";
            this.txtCurrentPeriodCode.Size = new System.Drawing.Size(141, 20);
            this.txtCurrentPeriodCode.TabIndex = 5;
            // 
            // label7
            // 
            this.label7.AutoSize = true;
            this.label7.Location = new System.Drawing.Point(3, 133);
            this.label7.Name = "label7";
            this.label7.Size = new System.Drawing.Size(65, 13);
            this.label7.TabIndex = 4;
            this.label7.Text = "Period Code";
            // 
            // txtTimeOfWorkPeriod
            // 
            this.txtTimeOfWorkPeriod.Location = new System.Drawing.Point(3, 83);
            this.txtTimeOfWorkPeriod.Name = "txtTimeOfWorkPeriod";
            this.txtTimeOfWorkPeriod.Size = new System.Drawing.Size(130, 20);
            this.txtTimeOfWorkPeriod.TabIndex = 3;
            // 
            // label6
            // 
            this.label6.AutoSize = true;
            this.label6.Location = new System.Drawing.Point(3, 67);
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size(104, 13);
            this.label6.TabIndex = 2;
            this.label6.Text = "Time of Work Period";
            // 
            // txtDateOfWorkPeriod
            // 
            this.txtDateOfWorkPeriod.Location = new System.Drawing.Point(3, 27);
            this.txtDateOfWorkPeriod.Name = "txtDateOfWorkPeriod";
            this.txtDateOfWorkPeriod.Size = new System.Drawing.Size(130, 20);
            this.txtDateOfWorkPeriod.TabIndex = 1;
            // 
            // label5
            // 
            this.label5.AutoSize = true;
            this.label5.Location = new System.Drawing.Point(3, 10);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(104, 13);
            this.label5.TabIndex = 0;
            this.label5.Text = "Date of Work Period";
            // 
            // WorkPeriodSetup
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(1008, 730);
            this.Controls.Add(this.tableLayoutPanel1);
            this.Name = "WorkPeriodSetup";
            this.Text = "WorkPeriod";
            this.Shown += new System.EventHandler(this.loadData);
            this.tableLayoutPanel1.ResumeLayout(false);
            this.Search.ResumeLayout(false);
            this.Search.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.grdWorkPeriod)).EndInit();
            this.flowLayoutPanel1.ResumeLayout(false);
            this.panel1.ResumeLayout(false);
            this.panel1.PerformLayout();
            this.ResumeLayout(false);

        }
コード例 #2
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     POS.Control.Office2010White office2010White1 = new POS.Control.Office2010White();
     this.txtCode        = new POS.Control.BaseTextBox();
     this.txtName        = new POS.Control.BaseTextBox();
     this.txtDescription = new POS.Control.BaseTextBox();
     this.btnSave        = new POS.Control.BaseButton();
     this.label1         = new System.Windows.Forms.Label();
     this.label2         = new System.Windows.Forms.Label();
     this.label3         = new System.Windows.Forms.Label();
     this.btnCancel      = new POS.Control.BaseButton();
     this.SuspendLayout();
     //
     // txtCode
     //
     this.txtCode.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                 | System.Windows.Forms.AnchorStyles.Right)));
     this.txtCode.Location = new System.Drawing.Point(78, 5);
     this.txtCode.Name     = "txtCode";
     this.txtCode.Size     = new System.Drawing.Size(212, 20);
     this.txtCode.TabIndex = 1;
     //
     // txtName
     //
     this.txtName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                 | System.Windows.Forms.AnchorStyles.Right)));
     this.txtName.Location = new System.Drawing.Point(78, 33);
     this.txtName.Name     = "txtName";
     this.txtName.Size     = new System.Drawing.Size(212, 20);
     this.txtName.TabIndex = 2;
     //
     // txtDescription
     //
     this.txtDescription.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                         | System.Windows.Forms.AnchorStyles.Left)
                                                                        | System.Windows.Forms.AnchorStyles.Right)));
     this.txtDescription.Location  = new System.Drawing.Point(78, 60);
     this.txtDescription.Multiline = true;
     this.txtDescription.Name      = "txtDescription";
     this.txtDescription.Size      = new System.Drawing.Size(213, 137);
     this.txtDescription.TabIndex  = 3;
     //
     // btnSave
     //
     this.btnSave.Location = new System.Drawing.Point(78, 203);
     this.btnSave.Name     = "btnSave";
     this.btnSave.Size     = new System.Drawing.Size(76, 23);
     this.btnSave.TabIndex = 4;
     this.btnSave.Text     = "Save";
     this.btnSave.Theme    = POS.Control.Theme.MSOffice2010_WHITE;
     this.btnSave.UseVisualStyleBackColor = true;
     this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(12, 9);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(32, 13);
     this.label1.TabIndex = 5;
     this.label1.Text     = "Code";
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Location = new System.Drawing.Point(12, 37);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(35, 13);
     this.label2.TabIndex = 6;
     this.label2.Text     = "Name";
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Location = new System.Drawing.Point(12, 64);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(60, 13);
     this.label3.TabIndex = 7;
     this.label3.Text     = "Description";
     //
     // btnCancel
     //
     this.btnCancel.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.btnCancel.Location = new System.Drawing.Point(165, 203);
     this.btnCancel.Name     = "btnCancel";
     this.btnCancel.Size     = new System.Drawing.Size(83, 23);
     this.btnCancel.TabIndex = 8;
     this.btnCancel.Text     = "Cancel";
     this.btnCancel.Theme    = POS.Control.Theme.MSOffice2010_WHITE;
     this.btnCancel.UseVisualStyleBackColor = true;
     this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
     //
     // AddEditSystemConfigGroup
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(303, 232);
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.btnSave);
     this.Controls.Add(this.txtDescription);
     this.Controls.Add(this.txtName);
     this.Controls.Add(this.txtCode);
     this.Name  = "AddEditSystemConfigGroup";
     this.Text  = "Add/Edit System Config Group";
     this.Load += new System.EventHandler(this.AddEditSystemConfigGroup_Load);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #3
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            POS.Control.Office2010White office2010White1 = new POS.Control.Office2010White();
            this.txtCode = new POS.Control.BaseTextBox();
            this.txtName = new POS.Control.BaseTextBox();
            this.txtDescription = new POS.Control.BaseTextBox();
            this.btnSave = new POS.Control.BaseButton();
            this.label1 = new System.Windows.Forms.Label();
            this.label2 = new System.Windows.Forms.Label();
            this.label3 = new System.Windows.Forms.Label();
            this.btnCancel = new POS.Control.BaseButton();
            this.SuspendLayout();
            // 
            // txtCode
            // 
            this.txtCode.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtCode.Location = new System.Drawing.Point(78, 5);
            this.txtCode.Name = "txtCode";
            this.txtCode.Size = new System.Drawing.Size(212, 20);
            this.txtCode.TabIndex = 1;
            // 
            // txtName
            // 
            this.txtName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtName.Location = new System.Drawing.Point(78, 33);
            this.txtName.Name = "txtName";
            this.txtName.Size = new System.Drawing.Size(212, 20);
            this.txtName.TabIndex = 2;
            // 
            // txtDescription
            // 
            this.txtDescription.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtDescription.Location = new System.Drawing.Point(78, 60);
            this.txtDescription.Multiline = true;
            this.txtDescription.Name = "txtDescription";
            this.txtDescription.Size = new System.Drawing.Size(213, 137);
            this.txtDescription.TabIndex = 3;
            // 
            // btnSave
            // 
            this.btnSave.Location = new System.Drawing.Point(78, 203);
            this.btnSave.Name = "btnSave";
            this.btnSave.Size = new System.Drawing.Size(76, 23);
            this.btnSave.TabIndex = 4;
            this.btnSave.Text = "Save";
            this.btnSave.Theme = POS.Control.Theme.MSOffice2010_WHITE;
            this.btnSave.UseVisualStyleBackColor = true;
            this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(12, 9);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(32, 13);
            this.label1.TabIndex = 5;
            this.label1.Text = "Code";
            // 
            // label2
            // 
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(12, 37);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(35, 13);
            this.label2.TabIndex = 6;
            this.label2.Text = "Name";
            // 
            // label3
            // 
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(12, 64);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(60, 13);
            this.label3.TabIndex = 7;
            this.label3.Text = "Description";
            // 
            // btnCancel
            // 
            this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.btnCancel.Location = new System.Drawing.Point(165, 203);
            this.btnCancel.Name = "btnCancel";
            this.btnCancel.Size = new System.Drawing.Size(83, 23);
            this.btnCancel.TabIndex = 8;
            this.btnCancel.Text = "Cancel";
            this.btnCancel.Theme = POS.Control.Theme.MSOffice2010_WHITE;
            this.btnCancel.UseVisualStyleBackColor = true;
            this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
            // 
            // AddEditSystemConfigGroup
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(303, 232);
            this.Controls.Add(this.btnCancel);
            this.Controls.Add(this.label3);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.label1);
            this.Controls.Add(this.btnSave);
            this.Controls.Add(this.txtDescription);
            this.Controls.Add(this.txtName);
            this.Controls.Add(this.txtCode);
            this.Name = "AddEditSystemConfigGroup";
            this.Text = "Add/Edit System Config Group";
            this.Load += new System.EventHandler(this.AddEditSystemConfigGroup_Load);
            this.ResumeLayout(false);
            this.PerformLayout();

        }
コード例 #4
0
        private void InitializeComponent()
        {
            POS.Control.Office2010White office2010White3 = new POS.Control.Office2010White();
            POS.Control.Office2010White office2010White4 = new POS.Control.Office2010White();
            this.lblError       = new System.Windows.Forms.Label();
            this.btnSeeMore     = new POS.Control.BaseButton();
            this.lblDescription = new System.Windows.Forms.Label();
            this.pnlErroeDetail = new System.Windows.Forms.Panel();
            this.panel1         = new System.Windows.Forms.Panel();
            this.spMessage      = new System.Windows.Forms.SplitContainer();
            this.pictureBox1    = new System.Windows.Forms.PictureBox();
            this.panel2         = new System.Windows.Forms.Panel();
            this.btnClose       = new POS.Control.BaseButton();
            this.pnlErroeDetail.SuspendLayout();
            this.panel1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.spMessage)).BeginInit();
            this.spMessage.Panel1.SuspendLayout();
            this.spMessage.Panel2.SuspendLayout();
            this.spMessage.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
            this.panel2.SuspendLayout();
            this.SuspendLayout();
            //
            // lblError
            //
            this.lblError.Dock     = System.Windows.Forms.DockStyle.Fill;
            this.lblError.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(222)));
            this.lblError.Location = new System.Drawing.Point(0, 0);
            this.lblError.Name     = "lblError";
            this.lblError.Padding  = new System.Windows.Forms.Padding(10, 20, 10, 0);
            this.lblError.Size     = new System.Drawing.Size(455, 93);
            this.lblError.TabIndex = 0;
            this.lblError.Tag      = "";
            this.lblError.Text     = "Message";
            //
            // btnSeeMore
            //

            this.btnSeeMore.Location = new System.Drawing.Point(394, 3);
            this.btnSeeMore.Name     = "btnSeeMore";
            this.btnSeeMore.Size     = new System.Drawing.Size(75, 23);
            this.btnSeeMore.TabIndex = 1;
            this.btnSeeMore.Text     = "View Detail";
            this.btnSeeMore.Theme    = POS.Control.Theme.MSOffice2010_WHITE;
            this.btnSeeMore.UseVisualStyleBackColor = true;
            this.btnSeeMore.Click += new System.EventHandler(this.btnSeeMore_Click);
            //
            // lblDescription
            //
            this.lblDescription.Dock     = System.Windows.Forms.DockStyle.Top;
            this.lblDescription.Location = new System.Drawing.Point(0, 0);
            this.lblDescription.Margin   = new System.Windows.Forms.Padding(10, 0, 10, 0);
            this.lblDescription.Name     = "lblDescription";
            this.lblDescription.Padding  = new System.Windows.Forms.Padding(10, 10, 10, 0);
            this.lblDescription.Size     = new System.Drawing.Size(534, 138);
            this.lblDescription.TabIndex = 2;
            this.lblDescription.Text     = "Erroe Message Detail";
            this.lblDescription.Visible  = false;
            //
            // pnlErroeDetail
            //
            this.pnlErroeDetail.AutoScroll  = true;
            this.pnlErroeDetail.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.pnlErroeDetail.Controls.Add(this.lblDescription);
            this.pnlErroeDetail.Dock     = System.Windows.Forms.DockStyle.Bottom;
            this.pnlErroeDetail.Location = new System.Drawing.Point(0, -15);
            this.pnlErroeDetail.Name     = "pnlErroeDetail";
            this.pnlErroeDetail.Size     = new System.Drawing.Size(553, 139);
            this.pnlErroeDetail.TabIndex = 3;
            this.pnlErroeDetail.Visible  = false;
            //
            // panel1
            //
            this.panel1.Controls.Add(this.spMessage);
            this.panel1.Dock     = System.Windows.Forms.DockStyle.Top;
            this.panel1.Location = new System.Drawing.Point(0, 0);
            this.panel1.Name     = "panel1";
            this.panel1.Size     = new System.Drawing.Size(553, 93);
            this.panel1.TabIndex = 4;
            //
            // spMessage
            //
            this.spMessage.Dock            = System.Windows.Forms.DockStyle.Fill;
            this.spMessage.FixedPanel      = System.Windows.Forms.FixedPanel.Panel1;
            this.spMessage.IsSplitterFixed = true;
            this.spMessage.Location        = new System.Drawing.Point(0, 0);
            this.spMessage.Name            = "spMessage";
            //
            // spMessage.Panel1
            //
            this.spMessage.Panel1.Controls.Add(this.pictureBox1);
            //
            // spMessage.Panel2
            //
            this.spMessage.Panel2.Controls.Add(this.lblError);
            this.spMessage.Size             = new System.Drawing.Size(553, 93);
            this.spMessage.SplitterDistance = 94;
            this.spMessage.TabIndex         = 2;
            this.spMessage.TabStop          = false;
            //
            // pictureBox1
            //
            this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
            this.pictureBox1.Dock         = System.Windows.Forms.DockStyle.Top;
            this.pictureBox1.ErrorImage   = null;
            this.pictureBox1.Image        = global::POS.Control.Properties.Resources.error;
            this.pictureBox1.InitialImage = null;
            this.pictureBox1.Location     = new System.Drawing.Point(0, 0);
            this.pictureBox1.Name         = "pictureBox1";
            this.pictureBox1.Padding      = new System.Windows.Forms.Padding(0, 10, 0, 0);
            this.pictureBox1.Size         = new System.Drawing.Size(94, 93);
            this.pictureBox1.SizeMode     = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
            this.pictureBox1.TabIndex     = 0;
            this.pictureBox1.TabStop      = false;
            //
            // panel2
            //
            this.panel2.Controls.Add(this.btnClose);
            this.panel2.Controls.Add(this.btnSeeMore);
            this.panel2.Dock     = System.Windows.Forms.DockStyle.Top;
            this.panel2.Location = new System.Drawing.Point(0, 93);
            this.panel2.Name     = "panel2";
            this.panel2.Size     = new System.Drawing.Size(553, 30);
            this.panel2.TabIndex = 5;
            //
            // btnClose
            //

            this.btnClose.Location = new System.Drawing.Point(475, 3);
            this.btnClose.Name     = "btnClose";
            this.btnClose.Size     = new System.Drawing.Size(75, 23);
            this.btnClose.TabIndex = 2;
            this.btnClose.Text     = "Close";
            this.btnClose.Theme    = POS.Control.Theme.MSOffice2010_WHITE;
            this.btnClose.UseVisualStyleBackColor = true;
            this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
            //
            // CoreMessageBox
            //
            this.ClientSize = new System.Drawing.Size(553, 124);
            this.Controls.Add(this.panel2);
            this.Controls.Add(this.panel1);
            this.Controls.Add(this.pnlErroeDetail);
            this.MaximizeBox   = false;
            this.MinimizeBox   = false;
            this.Name          = "CoreMessageBox";
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.pnlErroeDetail.ResumeLayout(false);
            this.panel1.ResumeLayout(false);
            this.spMessage.Panel1.ResumeLayout(false);
            this.spMessage.Panel2.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.spMessage)).EndInit();
            this.spMessage.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
            this.panel2.ResumeLayout(false);
            this.ResumeLayout(false);
        }
コード例 #5
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            POS.Control.Office2010White office2010White2 = new POS.Control.Office2010White();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
            POS.Control.Office2010Green office2010Green2 = new POS.Control.Office2010Green();
            POS.Control.Office2010Red   office2010Red2   = new POS.Control.Office2010Red();
            this.tableLayoutPanel1        = new System.Windows.Forms.TableLayoutPanel();
            this.Search                   = new System.Windows.Forms.GroupBox();
            this.btnSearch                = new POS.Control.BaseButton();
            this.txtClosePeriodBy         = new POS.Control.BaseTextBox();
            this.txtPeriodName            = new POS.Control.BaseTextBox();
            this.txtOpenPeriodBy          = new POS.Control.BaseTextBox();
            this.txtPeriodDesc            = new POS.Control.BaseTextBox();
            this.txtPeriodCode            = new POS.Control.BaseTextBox();
            this.label4                   = new System.Windows.Forms.Label();
            this.label3                   = new System.Windows.Forms.Label();
            this.label2                   = new System.Windows.Forms.Label();
            this.label1                   = new System.Windows.Forms.Label();
            this.lblPeriodCode            = new System.Windows.Forms.Label();
            this.grdWorkPeriod            = new System.Windows.Forms.DataGridView();
            this.period_code              = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.period_name              = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.period_description       = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.open_period_by           = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.open_period_date         = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.close_period_by          = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.close_period_date        = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.flowLayoutPanel1         = new System.Windows.Forms.FlowLayoutPanel();
            this.btnStartPeriod           = new POS.Control.BaseButton();
            this.btnEndPeriod             = new POS.Control.BaseButton();
            this.panel1                   = new System.Windows.Forms.Panel();
            this.txtCurrentOpenPeriodDate = new POS.Control.BaseTextBox();
            this.label10                  = new System.Windows.Forms.Label();
            this.txtCurrentOpenPeriodBy   = new POS.Control.BaseTextBox();
            this.label9                   = new System.Windows.Forms.Label();
            this.txtCurrentPeriodName     = new POS.Control.BaseTextBox();
            this.label8                   = new System.Windows.Forms.Label();
            this.txtCurrentPeriodCode     = new POS.Control.BaseTextBox();
            this.label7                   = new System.Windows.Forms.Label();
            this.txtTimeOfWorkPeriod      = new POS.Control.BaseTextBox();
            this.label6                   = new System.Windows.Forms.Label();
            this.txtDateOfWorkPeriod      = new POS.Control.BaseTextBox();
            this.label5                   = new System.Windows.Forms.Label();
            this.tableLayoutPanel1.SuspendLayout();
            this.Search.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.grdWorkPeriod)).BeginInit();
            this.flowLayoutPanel1.SuspendLayout();
            this.panel1.SuspendLayout();
            this.SuspendLayout();
            //
            // tableLayoutPanel1
            //
            this.tableLayoutPanel1.ColumnCount = 2;
            this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 75F));
            this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
            this.tableLayoutPanel1.Controls.Add(this.Search, 0, 0);
            this.tableLayoutPanel1.Controls.Add(this.grdWorkPeriod, 0, 1);
            this.tableLayoutPanel1.Controls.Add(this.flowLayoutPanel1, 1, 0);
            this.tableLayoutPanel1.Controls.Add(this.panel1, 1, 1);
            this.tableLayoutPanel1.Dock     = System.Windows.Forms.DockStyle.Fill;
            this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
            this.tableLayoutPanel1.Name     = "tableLayoutPanel1";
            this.tableLayoutPanel1.RowCount = 2;
            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 194F));
            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.tableLayoutPanel1.Size     = new System.Drawing.Size(1008, 730);
            this.tableLayoutPanel1.TabIndex = 0;
            //
            // Search
            //
            this.Search.Controls.Add(this.btnSearch);
            this.Search.Controls.Add(this.txtClosePeriodBy);
            this.Search.Controls.Add(this.txtPeriodName);
            this.Search.Controls.Add(this.txtOpenPeriodBy);
            this.Search.Controls.Add(this.txtPeriodDesc);
            this.Search.Controls.Add(this.txtPeriodCode);
            this.Search.Controls.Add(this.label4);
            this.Search.Controls.Add(this.label3);
            this.Search.Controls.Add(this.label2);
            this.Search.Controls.Add(this.label1);
            this.Search.Controls.Add(this.lblPeriodCode);
            this.Search.Dock     = System.Windows.Forms.DockStyle.Fill;
            this.Search.Location = new System.Drawing.Point(3, 3);
            this.Search.Name     = "Search";
            this.Search.Size     = new System.Drawing.Size(750, 188);
            this.Search.TabIndex = 0;
            this.Search.TabStop  = false;
            this.Search.Text     = "Search";
            //
            // btnSearch
            //
            this.btnSearch.CommandArg = null;
            this.btnSearch.Location   = new System.Drawing.Point(331, 141);
            this.btnSearch.Name       = "btnSearch";
            this.btnSearch.Size       = new System.Drawing.Size(94, 23);
            this.btnSearch.TabIndex   = 10;
            this.btnSearch.Text       = "Search";
            this.btnSearch.Theme      = POS.Control.Theme.MSOffice2010_WHITE;
            this.btnSearch.UseVisualStyleBackColor = true;
            this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
            //
            // txtClosePeriodBy
            //
            this.txtClosePeriodBy.Location = new System.Drawing.Point(511, 98);
            this.txtClosePeriodBy.Name     = "txtClosePeriodBy";
            this.txtClosePeriodBy.Size     = new System.Drawing.Size(188, 20);
            this.txtClosePeriodBy.TabIndex = 9;
            //
            // txtPeriodName
            //
            this.txtPeriodName.Location = new System.Drawing.Point(511, 33);
            this.txtPeriodName.Name     = "txtPeriodName";
            this.txtPeriodName.Size     = new System.Drawing.Size(188, 20);
            this.txtPeriodName.TabIndex = 8;
            //
            // txtOpenPeriodBy
            //
            this.txtOpenPeriodBy.Location = new System.Drawing.Point(141, 102);
            this.txtOpenPeriodBy.Name     = "txtOpenPeriodBy";
            this.txtOpenPeriodBy.Size     = new System.Drawing.Size(188, 20);
            this.txtOpenPeriodBy.TabIndex = 7;
            //
            // txtPeriodDesc
            //
            this.txtPeriodDesc.Location = new System.Drawing.Point(141, 68);
            this.txtPeriodDesc.Name     = "txtPeriodDesc";
            this.txtPeriodDesc.Size     = new System.Drawing.Size(188, 20);
            this.txtPeriodDesc.TabIndex = 6;
            //
            // txtPeriodCode
            //
            this.txtPeriodCode.Location = new System.Drawing.Point(141, 36);
            this.txtPeriodCode.Name     = "txtPeriodCode";
            this.txtPeriodCode.Size     = new System.Drawing.Size(188, 20);
            this.txtPeriodCode.TabIndex = 5;
            //
            // label4
            //
            this.label4.AutoSize = true;
            this.label4.Location = new System.Drawing.Point(408, 105);
            this.label4.Name     = "label4";
            this.label4.Size     = new System.Drawing.Size(81, 13);
            this.label4.TabIndex = 4;
            this.label4.Text     = "Close Period By";
            //
            // label3
            //
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(41, 105);
            this.label3.Name     = "label3";
            this.label3.Size     = new System.Drawing.Size(81, 13);
            this.label3.TabIndex = 3;
            this.label3.Text     = "Open Period By";
            //
            // label2
            //
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(408, 36);
            this.label2.Name     = "label2";
            this.label2.Size     = new System.Drawing.Size(68, 13);
            this.label2.TabIndex = 2;
            this.label2.Text     = "Period Name";
            //
            // label1
            //
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(41, 68);
            this.label1.Name     = "label1";
            this.label1.Size     = new System.Drawing.Size(65, 13);
            this.label1.TabIndex = 1;
            this.label1.Text     = "Period Desc";
            //
            // lblPeriodCode
            //
            this.lblPeriodCode.AutoSize = true;
            this.lblPeriodCode.Location = new System.Drawing.Point(41, 36);
            this.lblPeriodCode.Name     = "lblPeriodCode";
            this.lblPeriodCode.Size     = new System.Drawing.Size(65, 13);
            this.lblPeriodCode.TabIndex = 0;
            this.lblPeriodCode.Text     = "Period Code";
            //
            // grdWorkPeriod
            //
            dataGridViewCellStyle3.Alignment                 = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
            dataGridViewCellStyle3.BackColor                 = System.Drawing.SystemColors.Control;
            dataGridViewCellStyle3.Font                      = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            dataGridViewCellStyle3.ForeColor                 = System.Drawing.SystemColors.WindowText;
            dataGridViewCellStyle3.SelectionBackColor        = System.Drawing.SystemColors.Highlight;
            dataGridViewCellStyle3.SelectionForeColor        = System.Drawing.SystemColors.HighlightText;
            dataGridViewCellStyle3.WrapMode                  = System.Windows.Forms.DataGridViewTriState.True;
            this.grdWorkPeriod.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle3;
            this.grdWorkPeriod.ColumnHeadersHeightSizeMode   = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.grdWorkPeriod.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
                this.period_code,
                this.period_name,
                this.period_description,
                this.open_period_by,
                this.open_period_date,
                this.close_period_by,
                this.close_period_date
            });
            this.grdWorkPeriod.Dock     = System.Windows.Forms.DockStyle.Fill;
            this.grdWorkPeriod.Location = new System.Drawing.Point(3, 197);
            this.grdWorkPeriod.Name     = "grdWorkPeriod";
            this.grdWorkPeriod.Size     = new System.Drawing.Size(750, 530);
            this.grdWorkPeriod.TabIndex = 1;
            //
            // period_code
            //
            this.period_code.DataPropertyName = "period_code";
            this.period_code.Frozen           = true;
            this.period_code.HeaderText       = "Period Code";
            this.period_code.Name             = "period_code";
            this.period_code.ReadOnly         = true;
            //
            // period_name
            //
            this.period_name.DataPropertyName = "period_name";
            dataGridViewCellStyle4.Alignment  = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
            dataGridViewCellStyle4.WrapMode   = System.Windows.Forms.DataGridViewTriState.True;
            this.period_name.DefaultCellStyle = dataGridViewCellStyle4;
            this.period_name.Frozen           = true;
            this.period_name.HeaderText       = "Period Name";
            this.period_name.Name             = "period_name";
            this.period_name.ReadOnly         = true;
            //
            // period_description
            //
            this.period_description.DataPropertyName = "period_description";
            this.period_description.HeaderText       = "Description";
            this.period_description.Name             = "period_description";
            this.period_description.ReadOnly         = true;
            //
            // open_period_by
            //
            this.open_period_by.DataPropertyName = "open_period_by";
            this.open_period_by.HeaderText       = "Open By";
            this.open_period_by.Name             = "open_period_by";
            this.open_period_by.ReadOnly         = true;
            //
            // open_period_date
            //
            this.open_period_date.DataPropertyName = "open_period_date";
            this.open_period_date.HeaderText       = "Open Date";
            this.open_period_date.Name             = "open_period_date";
            this.open_period_date.ReadOnly         = true;
            //
            // close_period_by
            //
            this.close_period_by.DataPropertyName = "close_period_by";
            this.close_period_by.HeaderText       = "Close By";
            this.close_period_by.Name             = "close_period_by";
            this.close_period_by.ReadOnly         = true;
            //
            // close_period_date
            //
            this.close_period_date.DataPropertyName = "close_period_date";
            this.close_period_date.HeaderText       = "Close Date";
            this.close_period_date.Name             = "close_period_date";
            this.close_period_date.ReadOnly         = true;
            //
            // flowLayoutPanel1
            //
            this.flowLayoutPanel1.Controls.Add(this.btnStartPeriod);
            this.flowLayoutPanel1.Controls.Add(this.btnEndPeriod);
            this.flowLayoutPanel1.Dock     = System.Windows.Forms.DockStyle.Fill;
            this.flowLayoutPanel1.Location = new System.Drawing.Point(759, 3);
            this.flowLayoutPanel1.Name     = "flowLayoutPanel1";
            this.flowLayoutPanel1.Size     = new System.Drawing.Size(246, 188);
            this.flowLayoutPanel1.TabIndex = 3;
            //
            // btnStartPeriod
            //

            this.btnStartPeriod.CommandArg = null;
            this.btnStartPeriod.Dock       = System.Windows.Forms.DockStyle.Top;
            this.btnStartPeriod.Location   = new System.Drawing.Point(3, 5);
            this.btnStartPeriod.Margin     = new System.Windows.Forms.Padding(3, 5, 3, 3);
            this.btnStartPeriod.Name       = "btnStartPeriod";
            this.btnStartPeriod.Size       = new System.Drawing.Size(243, 82);
            this.btnStartPeriod.TabIndex   = 2;
            this.btnStartPeriod.Text       = "Start Work Period";
            this.btnStartPeriod.Theme      = POS.Control.Theme.MSOffice2010_Green;
            this.btnStartPeriod.UseVisualStyleBackColor = true;
            //
            // btnEndPeriod
            //

            this.btnEndPeriod.CommandArg = null;
            this.btnEndPeriod.Dock       = System.Windows.Forms.DockStyle.Top;
            this.btnEndPeriod.Location   = new System.Drawing.Point(3, 105);
            this.btnEndPeriod.Margin     = new System.Windows.Forms.Padding(3, 15, 3, 3);
            this.btnEndPeriod.Name       = "btnEndPeriod";
            this.btnEndPeriod.Size       = new System.Drawing.Size(243, 82);
            this.btnEndPeriod.TabIndex   = 3;
            this.btnEndPeriod.Text       = "End Work Period";
            this.btnEndPeriod.Theme      = POS.Control.Theme.MSOffice2010_RED;
            this.btnEndPeriod.UseVisualStyleBackColor = true;
            //
            // panel1
            //
            this.panel1.Controls.Add(this.txtCurrentOpenPeriodDate);
            this.panel1.Controls.Add(this.label10);
            this.panel1.Controls.Add(this.txtCurrentOpenPeriodBy);
            this.panel1.Controls.Add(this.label9);
            this.panel1.Controls.Add(this.txtCurrentPeriodName);
            this.panel1.Controls.Add(this.label8);
            this.panel1.Controls.Add(this.txtCurrentPeriodCode);
            this.panel1.Controls.Add(this.label7);
            this.panel1.Controls.Add(this.txtTimeOfWorkPeriod);
            this.panel1.Controls.Add(this.label6);
            this.panel1.Controls.Add(this.txtDateOfWorkPeriod);
            this.panel1.Controls.Add(this.label5);
            this.panel1.Dock     = System.Windows.Forms.DockStyle.Fill;
            this.panel1.Location = new System.Drawing.Point(759, 197);
            this.panel1.Name     = "panel1";
            this.panel1.Size     = new System.Drawing.Size(246, 530);
            this.panel1.TabIndex = 4;
            //
            // txtCurrentOpenPeriodDate
            //
            this.txtCurrentOpenPeriodDate.Location = new System.Drawing.Point(99, 226);
            this.txtCurrentOpenPeriodDate.Name     = "txtCurrentOpenPeriodDate";
            this.txtCurrentOpenPeriodDate.Size     = new System.Drawing.Size(141, 20);
            this.txtCurrentOpenPeriodDate.TabIndex = 11;
            //
            // label10
            //
            this.label10.AutoSize = true;
            this.label10.Location = new System.Drawing.Point(3, 229);
            this.label10.Name     = "label10";
            this.label10.Size     = new System.Drawing.Size(92, 13);
            this.label10.TabIndex = 10;
            this.label10.Text     = "Open Period Date";
            //
            // txtCurrentOpenPeriodBy
            //
            this.txtCurrentOpenPeriodBy.Location = new System.Drawing.Point(99, 195);
            this.txtCurrentOpenPeriodBy.Name     = "txtCurrentOpenPeriodBy";
            this.txtCurrentOpenPeriodBy.Size     = new System.Drawing.Size(141, 20);
            this.txtCurrentOpenPeriodBy.TabIndex = 9;
            //
            // label9
            //
            this.label9.AutoSize = true;
            this.label9.Location = new System.Drawing.Point(3, 198);
            this.label9.Name     = "label9";
            this.label9.Size     = new System.Drawing.Size(81, 13);
            this.label9.TabIndex = 8;
            this.label9.Text     = "Open Period By";
            //
            // txtCurrentPeriodName
            //
            this.txtCurrentPeriodName.Location = new System.Drawing.Point(99, 162);
            this.txtCurrentPeriodName.Name     = "txtCurrentPeriodName";
            this.txtCurrentPeriodName.Size     = new System.Drawing.Size(141, 20);
            this.txtCurrentPeriodName.TabIndex = 7;
            //
            // label8
            //
            this.label8.AutoSize = true;
            this.label8.Location = new System.Drawing.Point(3, 165);
            this.label8.Name     = "label8";
            this.label8.Size     = new System.Drawing.Size(68, 13);
            this.label8.TabIndex = 6;
            this.label8.Text     = "Period Name";
            //
            // txtCurrentPeriodCode
            //
            this.txtCurrentPeriodCode.Location = new System.Drawing.Point(99, 130);
            this.txtCurrentPeriodCode.Name     = "txtCurrentPeriodCode";
            this.txtCurrentPeriodCode.Size     = new System.Drawing.Size(141, 20);
            this.txtCurrentPeriodCode.TabIndex = 5;
            //
            // label7
            //
            this.label7.AutoSize = true;
            this.label7.Location = new System.Drawing.Point(3, 133);
            this.label7.Name     = "label7";
            this.label7.Size     = new System.Drawing.Size(65, 13);
            this.label7.TabIndex = 4;
            this.label7.Text     = "Period Code";
            //
            // txtTimeOfWorkPeriod
            //
            this.txtTimeOfWorkPeriod.Location = new System.Drawing.Point(3, 83);
            this.txtTimeOfWorkPeriod.Name     = "txtTimeOfWorkPeriod";
            this.txtTimeOfWorkPeriod.Size     = new System.Drawing.Size(130, 20);
            this.txtTimeOfWorkPeriod.TabIndex = 3;
            //
            // label6
            //
            this.label6.AutoSize = true;
            this.label6.Location = new System.Drawing.Point(3, 67);
            this.label6.Name     = "label6";
            this.label6.Size     = new System.Drawing.Size(104, 13);
            this.label6.TabIndex = 2;
            this.label6.Text     = "Time of Work Period";
            //
            // txtDateOfWorkPeriod
            //
            this.txtDateOfWorkPeriod.Location = new System.Drawing.Point(3, 27);
            this.txtDateOfWorkPeriod.Name     = "txtDateOfWorkPeriod";
            this.txtDateOfWorkPeriod.Size     = new System.Drawing.Size(130, 20);
            this.txtDateOfWorkPeriod.TabIndex = 1;
            //
            // label5
            //
            this.label5.AutoSize = true;
            this.label5.Location = new System.Drawing.Point(3, 10);
            this.label5.Name     = "label5";
            this.label5.Size     = new System.Drawing.Size(104, 13);
            this.label5.TabIndex = 0;
            this.label5.Text     = "Date of Work Period";
            //
            // WorkPeriodSetup
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize          = new System.Drawing.Size(1008, 730);
            this.Controls.Add(this.tableLayoutPanel1);
            this.Name   = "WorkPeriodSetup";
            this.Text   = "WorkPeriod";
            this.Shown += new System.EventHandler(this.loadData);
            this.tableLayoutPanel1.ResumeLayout(false);
            this.Search.ResumeLayout(false);
            this.Search.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.grdWorkPeriod)).EndInit();
            this.flowLayoutPanel1.ResumeLayout(false);
            this.panel1.ResumeLayout(false);
            this.panel1.PerformLayout();
            this.ResumeLayout(false);
        }
コード例 #6
0
        private void InitializeComponent()
        {
            POS.Control.Office2010White office2010White3 = new POS.Control.Office2010White();
            POS.Control.Office2010White office2010White4 = new POS.Control.Office2010White();
            this.lblError = new System.Windows.Forms.Label();
            this.btnSeeMore = new POS.Control.BaseButton();
            this.lblDescription = new System.Windows.Forms.Label();
            this.pnlErroeDetail = new System.Windows.Forms.Panel();
            this.panel1 = new System.Windows.Forms.Panel();
            this.spMessage = new System.Windows.Forms.SplitContainer();
            this.pictureBox1 = new System.Windows.Forms.PictureBox();
            this.panel2 = new System.Windows.Forms.Panel();
            this.btnClose = new POS.Control.BaseButton();
            this.pnlErroeDetail.SuspendLayout();
            this.panel1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.spMessage)).BeginInit();
            this.spMessage.Panel1.SuspendLayout();
            this.spMessage.Panel2.SuspendLayout();
            this.spMessage.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
            this.panel2.SuspendLayout();
            this.SuspendLayout();
            // 
            // lblError
            // 
            this.lblError.Dock = System.Windows.Forms.DockStyle.Fill;
            this.lblError.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(222)));
            this.lblError.Location = new System.Drawing.Point(0, 0);
            this.lblError.Name = "lblError";
            this.lblError.Padding = new System.Windows.Forms.Padding(10, 20, 10, 0);
            this.lblError.Size = new System.Drawing.Size(455, 93);
            this.lblError.TabIndex = 0;
            this.lblError.Tag = "";
            this.lblError.Text = "Message";
            // 
            // btnSeeMore
            // 
           
            this.btnSeeMore.Location = new System.Drawing.Point(394, 3);
            this.btnSeeMore.Name = "btnSeeMore";
            this.btnSeeMore.Size = new System.Drawing.Size(75, 23);
            this.btnSeeMore.TabIndex = 1;
            this.btnSeeMore.Text = "View Detail";
            this.btnSeeMore.Theme = POS.Control.Theme.MSOffice2010_WHITE;
            this.btnSeeMore.UseVisualStyleBackColor = true;
            this.btnSeeMore.Click += new System.EventHandler(this.btnSeeMore_Click);
            // 
            // lblDescription
            // 
            this.lblDescription.Dock = System.Windows.Forms.DockStyle.Top;
            this.lblDescription.Location = new System.Drawing.Point(0, 0);
            this.lblDescription.Margin = new System.Windows.Forms.Padding(10, 0, 10, 0);
            this.lblDescription.Name = "lblDescription";
            this.lblDescription.Padding = new System.Windows.Forms.Padding(10, 10, 10, 0);
            this.lblDescription.Size = new System.Drawing.Size(534, 138);
            this.lblDescription.TabIndex = 2;
            this.lblDescription.Text = "Erroe Message Detail";
            this.lblDescription.Visible = false;
            // 
            // pnlErroeDetail
            // 
            this.pnlErroeDetail.AutoScroll = true;
            this.pnlErroeDetail.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.pnlErroeDetail.Controls.Add(this.lblDescription);
            this.pnlErroeDetail.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.pnlErroeDetail.Location = new System.Drawing.Point(0, -15);
            this.pnlErroeDetail.Name = "pnlErroeDetail";
            this.pnlErroeDetail.Size = new System.Drawing.Size(553, 139);
            this.pnlErroeDetail.TabIndex = 3;
            this.pnlErroeDetail.Visible = false;
            // 
            // panel1
            // 
            this.panel1.Controls.Add(this.spMessage);
            this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
            this.panel1.Location = new System.Drawing.Point(0, 0);
            this.panel1.Name = "panel1";
            this.panel1.Size = new System.Drawing.Size(553, 93);
            this.panel1.TabIndex = 4;
            // 
            // spMessage
            // 
            this.spMessage.Dock = System.Windows.Forms.DockStyle.Fill;
            this.spMessage.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
            this.spMessage.IsSplitterFixed = true;
            this.spMessage.Location = new System.Drawing.Point(0, 0);
            this.spMessage.Name = "spMessage";
            // 
            // spMessage.Panel1
            // 
            this.spMessage.Panel1.Controls.Add(this.pictureBox1);
            // 
            // spMessage.Panel2
            // 
            this.spMessage.Panel2.Controls.Add(this.lblError);
            this.spMessage.Size = new System.Drawing.Size(553, 93);
            this.spMessage.SplitterDistance = 94;
            this.spMessage.TabIndex = 2;
            this.spMessage.TabStop = false;
            // 
            // pictureBox1
            // 
            this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
            this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Top;
            this.pictureBox1.ErrorImage = null;
            this.pictureBox1.Image = global::POS.Control.Properties.Resources.error;
            this.pictureBox1.InitialImage = null;
            this.pictureBox1.Location = new System.Drawing.Point(0, 0);
            this.pictureBox1.Name = "pictureBox1";
            this.pictureBox1.Padding = new System.Windows.Forms.Padding(0, 10, 0, 0);
            this.pictureBox1.Size = new System.Drawing.Size(94, 93);
            this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
            this.pictureBox1.TabIndex = 0;
            this.pictureBox1.TabStop = false;
            // 
            // panel2
            // 
            this.panel2.Controls.Add(this.btnClose);
            this.panel2.Controls.Add(this.btnSeeMore);
            this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
            this.panel2.Location = new System.Drawing.Point(0, 93);
            this.panel2.Name = "panel2";
            this.panel2.Size = new System.Drawing.Size(553, 30);
            this.panel2.TabIndex = 5;
            // 
            // btnClose
            // 
            
            this.btnClose.Location = new System.Drawing.Point(475, 3);
            this.btnClose.Name = "btnClose";
            this.btnClose.Size = new System.Drawing.Size(75, 23);
            this.btnClose.TabIndex = 2;
            this.btnClose.Text = "Close";
            this.btnClose.Theme = POS.Control.Theme.MSOffice2010_WHITE;
            this.btnClose.UseVisualStyleBackColor = true;
            this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
            // 
            // CoreMessageBox
            // 
            this.ClientSize = new System.Drawing.Size(553, 124);
            this.Controls.Add(this.panel2);
            this.Controls.Add(this.panel1);
            this.Controls.Add(this.pnlErroeDetail);
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "CoreMessageBox";
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.pnlErroeDetail.ResumeLayout(false);
            this.panel1.ResumeLayout(false);
            this.spMessage.Panel1.ResumeLayout(false);
            this.spMessage.Panel2.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.spMessage)).EndInit();
            this.spMessage.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
            this.panel2.ResumeLayout(false);
            this.ResumeLayout(false);

        }