Пример #1
0
        public static int ShowDialog(string text, string caption)
        {
            Form prompt = new Form();

            prompt.Width  = 500;
            prompt.Height = 500;
            prompt.Text   = caption;
            Label textLabel = new Label()
            {
                Left = 50, Top = 20, Text = text
            };
            NumericUpDown inputBox = new NumericUpDown()
            {
                Left = 50, Top = 50, Width = 400
            };

            System.Windows.Forms.Button confirmation = new System.Windows.Forms.Button()
            {
                Text = "Ok", Left = 350, Width = 100, Top = 70
            };
            confirmation.Click += (sender, e) => { prompt.Close(); };
            prompt.Controls.Add(confirmation);
            prompt.Controls.Add(textLabel);
            prompt.Controls.Add(inputBox);
            prompt.ShowDialog();
            return((int)inputBox.Value);
        }
Пример #2
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmRestSheet));
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.lvwRestSheet = new XPTable.Models.Table();
     this.columnModel1 = new XPTable.Models.ColumnModel();
     this.clSTT = new XPTable.Models.TextColumn();
     this.clDeparmaent = new XPTable.Models.TextColumn();
     this.clCardID = new XPTable.Models.TextColumn();
     this.clEmployeeName = new XPTable.Models.TextColumn();
     this.clMonth1 = new XPTable.Models.TextColumn();
     this.clMonth2 = new XPTable.Models.TextColumn();
     this.clMonth3 = new XPTable.Models.TextColumn();
     this.clMonth4 = new XPTable.Models.TextColumn();
     this.clMonth5 = new XPTable.Models.TextColumn();
     this.clMonth6 = new XPTable.Models.TextColumn();
     this.clMonth7 = new XPTable.Models.TextColumn();
     this.clMonth8 = new XPTable.Models.TextColumn();
     this.clMonth9 = new XPTable.Models.TextColumn();
     this.clMonth10 = new XPTable.Models.TextColumn();
     this.clMonth11 = new XPTable.Models.TextColumn();
     this.clMonth12 = new XPTable.Models.TextColumn();
     this.clTotalRest = new XPTable.Models.TextColumn();
     this.clStartDate = new XPTable.Models.TextColumn();
     this.clTotalRestAllow = new XPTable.Models.TextColumn();
     this.clTotalRestRemain = new XPTable.Models.TextColumn();
     this.cBasicSalary = new XPTable.Models.NumberColumn();
     this.cPhucap = new XPTable.Models.NumberColumn();
     this.toMoney = new XPTable.Models.NumberColumn();
     this.tableModel1 = new XPTable.Models.TableModel();
     this.btnSearch = new System.Windows.Forms.Button();
     this.txtSearch = new System.Windows.Forms.TextBox();
     this.lblTotalEmployee = new System.Windows.Forms.Label();
     this.cSTT = new XPTable.Models.NumberColumn();
     this.btnGenerate = new System.Windows.Forms.Button();
     this.btnClose = new System.Windows.Forms.Button();
     this.grbMonth = new System.Windows.Forms.GroupBox();
     this.label2 = new System.Windows.Forms.Label();
     this.cboYear = new System.Windows.Forms.LookupComboBox();
     this.grbDepartment = new System.Windows.Forms.GroupBox();
     this.cboDepartment = new MTGCComboBox();
     this.btnUpdate = new System.Windows.Forms.Button();
     this.btnExportExcel = new System.Windows.Forms.Button();
     this.btnRefresh = new System.Windows.Forms.Button();
     this.btnDelete = new System.Windows.Forms.Button();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.lvwRestSheet)).BeginInit();
     this.grbMonth.SuspendLayout();
     this.grbDepartment.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.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.groupBox1.Controls.Add(this.lvwRestSheet);
     this.groupBox1.Controls.Add(this.btnSearch);
     this.groupBox1.Controls.Add(this.txtSearch);
     this.groupBox1.Controls.Add(this.lblTotalEmployee);
     this.groupBox1.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.groupBox1.Location = new System.Drawing.Point(8, 56);
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.Size = new System.Drawing.Size(776, 400);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop = false;
     this.groupBox1.Text = "Bảng thanh toán tiền phép chi tiết";
     //
     // lvwRestSheet
     //
     this.lvwRestSheet.AlternatingRowColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(237)))), ((int)(((byte)(245)))));
     this.lvwRestSheet.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.lvwRestSheet.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(242)))), ((int)(((byte)(249)))));
     this.lvwRestSheet.ColumnModel = this.columnModel1;
     this.lvwRestSheet.EditStartAction = XPTable.Editors.EditStartAction.SingleClick;
     this.lvwRestSheet.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     this.lvwRestSheet.FullRowSelect = true;
     this.lvwRestSheet.GridColor = System.Drawing.SystemColors.ControlDark;
     this.lvwRestSheet.GridLines = XPTable.Models.GridLines.Both;
     this.lvwRestSheet.GridLineStyle = XPTable.Models.GridLineStyle.Dot;
     this.lvwRestSheet.Location = new System.Drawing.Point(8, 16);
     this.lvwRestSheet.Name = "lvwRestSheet";
     this.lvwRestSheet.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(169)))), ((int)(((byte)(183)))), ((int)(((byte)(201)))));
     this.lvwRestSheet.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     this.lvwRestSheet.SelectionStyle = XPTable.Models.SelectionStyle.Grid;
     this.lvwRestSheet.Size = new System.Drawing.Size(760, 344);
     this.lvwRestSheet.SortedColumnBackColor = System.Drawing.Color.Transparent;
     this.lvwRestSheet.TabIndex = 11;
     this.lvwRestSheet.TableModel = this.tableModel1;
     this.lvwRestSheet.Text = "table1";
     this.lvwRestSheet.UnfocusedSelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(210)))), ((int)(((byte)(221)))));
     this.lvwRestSheet.UnfocusedSelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     this.lvwRestSheet.EditingStopped += new XPTable.Events.CellEditEventHandler(this.lvwRestSheet_EditingStopped_1);
     this.lvwRestSheet.SelectionChanged += new XPTable.Events.SelectionEventHandler(this.lvwRestSheet_SelectionChanged);
     //
     // columnModel1
     //
     this.columnModel1.Columns.AddRange(new XPTable.Models.Column[] {
     this.clSTT,
     this.clDeparmaent,
     this.clCardID,
     this.clEmployeeName,
     this.clMonth1,
     this.clMonth2,
     this.clMonth3,
     this.clMonth4,
     this.clMonth5,
     this.clMonth6,
     this.clMonth7,
     this.clMonth8,
     this.clMonth9,
     this.clMonth10,
     this.clMonth11,
     this.clMonth12,
     this.clTotalRest,
     this.clStartDate,
     this.clTotalRestAllow,
     this.clTotalRestRemain,
     this.cBasicSalary,
     this.cPhucap,
     this.toMoney});
     //
     // clSTT
     //
     this.clSTT.Editable = false;
     this.clSTT.Text = "STT";
     this.clSTT.Width = 40;
     //
     // clDeparmaent
     //
     this.clDeparmaent.Editable = false;
     this.clDeparmaent.Text = "Phòng";
     this.clDeparmaent.Width = 120;
     //
     // clCardID
     //
     this.clCardID.Editable = false;
     this.clCardID.Text = "Mã thẻ";
     this.clCardID.Width = 60;
     //
     // clEmployeeName
     //
     this.clEmployeeName.Editable = false;
     this.clEmployeeName.Text = "Họ tên";
     this.clEmployeeName.Width = 160;
     //
     // clMonth1
     //
     this.clMonth1.Text = "1";
     this.clMonth1.Width = 28;
     //
     // clMonth2
     //
     this.clMonth2.Text = "2";
     this.clMonth2.Width = 28;
     //
     // clMonth3
     //
     this.clMonth3.Text = "3";
     this.clMonth3.Width = 28;
     //
     // clMonth4
     //
     this.clMonth4.Text = "4";
     this.clMonth4.Width = 28;
     //
     // clMonth5
     //
     this.clMonth5.Text = "5";
     this.clMonth5.Width = 28;
     //
     // clMonth6
     //
     this.clMonth6.Text = "6";
     this.clMonth6.Width = 28;
     //
     // clMonth7
     //
     this.clMonth7.Text = "7";
     this.clMonth7.Width = 28;
     //
     // clMonth8
     //
     this.clMonth8.Text = "8";
     this.clMonth8.Width = 28;
     //
     // clMonth9
     //
     this.clMonth9.Text = "9";
     this.clMonth9.Width = 28;
     //
     // clMonth10
     //
     this.clMonth10.Text = "10";
     this.clMonth10.Width = 28;
     //
     // clMonth11
     //
     this.clMonth11.Text = "11";
     this.clMonth11.Width = 28;
     //
     // clMonth12
     //
     this.clMonth12.Text = "12";
     this.clMonth12.Width = 28;
     //
     // clTotalRest
     //
     this.clTotalRest.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.clTotalRest.Editable = false;
     this.clTotalRest.Text = "Tổng";
     this.clTotalRest.Width = 40;
     //
     // clStartDate
     //
     this.clStartDate.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.clStartDate.Editable = false;
     this.clStartDate.Text = "NKHĐ";
     this.clStartDate.Width = 86;
     //
     // clTotalRestAllow
     //
     this.clTotalRestAllow.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.clTotalRestAllow.Editable = false;
     this.clTotalRestAllow.Text = "NPĐH";
     this.clTotalRestAllow.Width = 40;
     //
     // clTotalRestRemain
     //
     this.clTotalRestRemain.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.clTotalRestRemain.Editable = false;
     this.clTotalRestRemain.Text = "SNCL";
     this.clTotalRestRemain.Width = 40;
     //
     // cBasicSalary
     //
     this.cBasicSalary.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.cBasicSalary.Editable = false;
     this.cBasicSalary.Format = "#,##0;(#,##0);0";
     this.cBasicSalary.Maximum = new decimal(new int[] {
     100000000,
     0,
     0,
     0});
     this.cBasicSalary.Text = "Lương cơ bản";
     this.cBasicSalary.Width = 111;
     //
     // cPhucap
     //
     this.cPhucap.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.cPhucap.Editable = false;
     this.cPhucap.Format = "#,##0;(#,##0);0";
     this.cPhucap.Maximum = new decimal(new int[] {
     10000000,
     0,
     0,
     0});
     this.cPhucap.Text = "Phụ cấp";
     this.cPhucap.Width = 85;
     //
     // toMoney
     //
     this.toMoney.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.toMoney.Editable = false;
     this.toMoney.Format = "#,##0;(#,##0);0";
     this.toMoney.Text = "Thành tiền";
     this.toMoney.Width = 90;
     //
     // btnSearch
     //
     this.btnSearch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.btnSearch.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnSearch.Location = new System.Drawing.Point(136, 368);
     this.btnSearch.Name = "btnSearch";
     this.btnSearch.Size = new System.Drawing.Size(64, 23);
     this.btnSearch.TabIndex = 11;
     this.btnSearch.Text = "&Tìm kiếm";
     this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
     //
     // txtSearch
     //
     this.txtSearch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.txtSearch.Location = new System.Drawing.Point(8, 368);
     this.txtSearch.Name = "txtSearch";
     this.txtSearch.Size = new System.Drawing.Size(128, 20);
     this.txtSearch.TabIndex = 10;
     this.txtSearch.Text = "Nhập chuỗi tìm kiếm";
     this.txtSearch.MouseDown += new System.Windows.Forms.MouseEventHandler(this.txtSearch_MouseDown);
     this.txtSearch.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtSearch_KeyPress);
     //
     // lblTotalEmployee
     //
     this.lblTotalEmployee.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.lblTotalEmployee.Location = new System.Drawing.Point(624, 374);
     this.lblTotalEmployee.Name = "lblTotalEmployee";
     this.lblTotalEmployee.Size = new System.Drawing.Size(144, 23);
     this.lblTotalEmployee.TabIndex = 12;
     this.lblTotalEmployee.Text = "Tổng số nhân viên: 343";
     this.lblTotalEmployee.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // cSTT
     //
     this.cSTT.Editable = false;
     this.cSTT.Maximum = new decimal(new int[] {
     10000,
     0,
     0,
     0});
     this.cSTT.Text = "STT";
     this.cSTT.Width = 28;
     //
     // btnGenerate
     //
     this.btnGenerate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.btnGenerate.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnGenerate.Location = new System.Drawing.Point(8, 464);
     this.btnGenerate.Name = "btnGenerate";
     this.btnGenerate.Size = new System.Drawing.Size(184, 23);
     this.btnGenerate.TabIndex = 9;
     this.btnGenerate.Text = "&Sinh bảng thanh toán";
     this.btnGenerate.Click += new System.EventHandler(this.btnGenerate_Click);
     //
     // btnClose
     //
     this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnClose.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnClose.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnClose.Location = new System.Drawing.Point(704, 464);
     this.btnClose.Name = "btnClose";
     this.btnClose.Size = new System.Drawing.Size(75, 23);
     this.btnClose.TabIndex = 8;
     this.btnClose.Text = "&Đóng";
     this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
     //
     // grbMonth
     //
     this.grbMonth.Controls.Add(this.label2);
     this.grbMonth.Controls.Add(this.cboYear);
     this.grbMonth.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.grbMonth.Location = new System.Drawing.Point(8, 8);
     this.grbMonth.Name = "grbMonth";
     this.grbMonth.Size = new System.Drawing.Size(136, 48);
     this.grbMonth.TabIndex = 26;
     this.grbMonth.TabStop = false;
     this.grbMonth.Text = "Thời gian";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(16, 16);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(32, 23);
     this.label2.TabIndex = 3;
     this.label2.Text = "Năm";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // cboYear
     //
     this.cboYear.AllowTypeAllSymbols = false;
     this.cboYear.Items.AddRange(new object[] {
     "2006",
     "2007",
     "2008",
     "2009",
     "2010",
     "2011",
     "2012",
     "2013",
     "2014",
     "2015"});
     this.cboYear.Location = new System.Drawing.Point(56, 16);
     this.cboYear.Name = "cboYear";
     this.cboYear.Size = new System.Drawing.Size(72, 21);
     this.cboYear.TabIndex = 1;
     this.cboYear.SelectedIndexChanged += new System.EventHandler(this.cboYear_SelectedIndexChanged);
     //
     // grbDepartment
     //
     this.grbDepartment.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.grbDepartment.Controls.Add(this.cboDepartment);
     this.grbDepartment.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.grbDepartment.Location = new System.Drawing.Point(568, 8);
     this.grbDepartment.Name = "grbDepartment";
     this.grbDepartment.Size = new System.Drawing.Size(216, 48);
     this.grbDepartment.TabIndex = 27;
     this.grbDepartment.TabStop = false;
     this.grbDepartment.Text = "Bộ phận";
     //
     // cboDepartment
     //
     this.cboDepartment.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.cboDepartment.BorderStyle = MTGCComboBox.TipiBordi.Fixed3D;
     this.cboDepartment.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal;
     this.cboDepartment.ColumnNum = 2;
     this.cboDepartment.ColumnWidth = "0;200";
     this.cboDepartment.DisplayMember = "Text";
     this.cboDepartment.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
     this.cboDepartment.DropDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(193)))), ((int)(((byte)(210)))), ((int)(((byte)(238)))));
     this.cboDepartment.DropDownForeColor = System.Drawing.Color.Black;
     this.cboDepartment.DropDownStyle = MTGCComboBox.CustomDropDownStyle.DropDownList;
     this.cboDepartment.DropDownWidth = 200;
     this.cboDepartment.GridLineColor = System.Drawing.Color.LightGray;
     this.cboDepartment.GridLineHorizontal = true;
     this.cboDepartment.GridLineVertical = true;
     this.cboDepartment.LoadingType = MTGCComboBox.CaricamentoCombo.ComboBoxItem;
     this.cboDepartment.Location = new System.Drawing.Point(8, 16);
     this.cboDepartment.ManagingFastMouseMoving = true;
     this.cboDepartment.ManagingFastMouseMovingInterval = 30;
     this.cboDepartment.Name = "cboDepartment";
     this.cboDepartment.Size = new System.Drawing.Size(200, 21);
     this.cboDepartment.TabIndex = 0;
     this.cboDepartment.SelectedIndexChanged += new System.EventHandler(this.cboDepartment_SelectedIndexChanged);
     //
     // btnUpdate
     //
     this.btnUpdate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnUpdate.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnUpdate.Location = new System.Drawing.Point(328, 464);
     this.btnUpdate.Name = "btnUpdate";
     this.btnUpdate.Size = new System.Drawing.Size(80, 23);
     this.btnUpdate.TabIndex = 5;
     this.btnUpdate.Text = "&Câp nhật";
     this.btnUpdate.Click += new System.EventHandler(this.btnUpdate_Click);
     //
     // btnExportExcel
     //
     this.btnExportExcel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnExportExcel.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnExportExcel.Location = new System.Drawing.Point(496, 464);
     this.btnExportExcel.Name = "btnExportExcel";
     this.btnExportExcel.Size = new System.Drawing.Size(112, 23);
     this.btnExportExcel.TabIndex = 6;
     this.btnExportExcel.Text = "&Xuất Excel";
     this.btnExportExcel.Click += new System.EventHandler(this.btnExportExcel_Click);
     //
     // btnRefresh
     //
     this.btnRefresh.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnRefresh.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnRefresh.Location = new System.Drawing.Point(616, 464);
     this.btnRefresh.Name = "btnRefresh";
     this.btnRefresh.Size = new System.Drawing.Size(80, 23);
     this.btnRefresh.TabIndex = 7;
     this.btnRefresh.Text = "&Nạp lại";
     this.btnRefresh.Click += new System.EventHandler(this.btnRefresh_Click);
     //
     // btnDelete
     //
     this.btnDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnDelete.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnDelete.Location = new System.Drawing.Point(416, 464);
     this.btnDelete.Name = "btnDelete";
     this.btnDelete.Size = new System.Drawing.Size(75, 23);
     this.btnDelete.TabIndex = 28;
     this.btnDelete.Text = "Xóa";
     this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
     //
     // frmRestSheet
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton = this.btnClose;
     this.ClientSize = new System.Drawing.Size(792, 494);
     this.Controls.Add(this.btnDelete);
     this.Controls.Add(this.btnRefresh);
     this.Controls.Add(this.btnExportExcel);
     this.Controls.Add(this.btnUpdate);
     this.Controls.Add(this.grbDepartment);
     this.Controls.Add(this.grbMonth);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.btnClose);
     this.Controls.Add(this.btnGenerate);
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name = "frmRestSheet";
     this.Text = "Bảng thanh toán tiền phép chi tiết";
     this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
     this.Load += new System.EventHandler(this.frmRestSheet_Load_1);
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.lvwRestSheet)).EndInit();
     this.grbMonth.ResumeLayout(false);
     this.grbDepartment.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Пример #3
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmTimeSheet));
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.btnSearch = new System.Windows.Forms.Button();
     this.txtSearch = new System.Windows.Forms.TextBox();
     this.lblTotalEmployee = new System.Windows.Forms.Label();
     this.lvwTimeSheet = new XPTable.Models.Table();
     this.columnModel1 = new XPTable.Models.ColumnModel();
     this.cSTT = new XPTable.Models.NumberColumn();
     this.cDepartment = new XPTable.Models.TextColumn();
     this.cCardID = new XPTable.Models.TextColumn();
     this.cEmployeeName = new XPTable.Models.TextColumn();
     this.c1 = new XPTable.Models.TextColumn();
     this.c2 = new XPTable.Models.TextColumn();
     this.c3 = new XPTable.Models.TextColumn();
     this.c4 = new XPTable.Models.TextColumn();
     this.c5 = new XPTable.Models.TextColumn();
     this.c6 = new XPTable.Models.TextColumn();
     this.c7 = new XPTable.Models.TextColumn();
     this.c8 = new XPTable.Models.TextColumn();
     this.c9 = new XPTable.Models.TextColumn();
     this.c10 = new XPTable.Models.TextColumn();
     this.c11 = new XPTable.Models.TextColumn();
     this.c12 = new XPTable.Models.TextColumn();
     this.c13 = new XPTable.Models.TextColumn();
     this.c14 = new XPTable.Models.TextColumn();
     this.c15 = new XPTable.Models.TextColumn();
     this.c16 = new XPTable.Models.TextColumn();
     this.c17 = new XPTable.Models.TextColumn();
     this.c18 = new XPTable.Models.TextColumn();
     this.c19 = new XPTable.Models.TextColumn();
     this.c20 = new XPTable.Models.TextColumn();
     this.c21 = new XPTable.Models.TextColumn();
     this.c22 = new XPTable.Models.TextColumn();
     this.c23 = new XPTable.Models.TextColumn();
     this.c24 = new XPTable.Models.TextColumn();
     this.c25 = new XPTable.Models.TextColumn();
     this.c26 = new XPTable.Models.TextColumn();
     this.c27 = new XPTable.Models.TextColumn();
     this.c28 = new XPTable.Models.TextColumn();
     this.c29 = new XPTable.Models.TextColumn();
     this.c30 = new XPTable.Models.TextColumn();
     this.c31 = new XPTable.Models.TextColumn();
     this.cTotal = new XPTable.Models.TextColumn();
     this.tableModel1 = new XPTable.Models.TableModel();
     this.btnGenerateTimeSheet = new System.Windows.Forms.Button();
     this.btnClose = new System.Windows.Forms.Button();
     this.grbMonth = new System.Windows.Forms.GroupBox();
     this.label2 = new System.Windows.Forms.Label();
     this.label1 = new System.Windows.Forms.Label();
     this.cboYear = new System.Windows.Forms.LookupComboBox();
     this.cboMonth = new System.Windows.Forms.LookupComboBox();
     this.grbDepartment = new System.Windows.Forms.GroupBox();
     this.cboDepartment = new MTGCComboBox();
     this.btnUpdate = new System.Windows.Forms.Button();
     this.btnExportExcel = new System.Windows.Forms.Button();
     this.btnRefresh = new System.Windows.Forms.Button();
     this.btnDelete = new System.Windows.Forms.Button();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.lvwTimeSheet)).BeginInit();
     this.grbMonth.SuspendLayout();
     this.grbDepartment.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.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.groupBox1.Controls.Add(this.btnSearch);
     this.groupBox1.Controls.Add(this.txtSearch);
     this.groupBox1.Controls.Add(this.lblTotalEmployee);
     this.groupBox1.Controls.Add(this.lvwTimeSheet);
     this.groupBox1.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.groupBox1.Location = new System.Drawing.Point(8, 64);
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.Size = new System.Drawing.Size(788, 408);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop = false;
     this.groupBox1.Text = "Bảng chấm công chi tiết tháng";
     //
     // btnSearch
     //
     this.btnSearch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.btnSearch.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnSearch.Location = new System.Drawing.Point(136, 376);
     this.btnSearch.Name = "btnSearch";
     this.btnSearch.Size = new System.Drawing.Size(64, 23);
     this.btnSearch.TabIndex = 11;
     this.btnSearch.Text = "&Tìm kiếm";
     this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
     //
     // txtSearch
     //
     this.txtSearch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.txtSearch.Location = new System.Drawing.Point(8, 376);
     this.txtSearch.Name = "txtSearch";
     this.txtSearch.Size = new System.Drawing.Size(128, 20);
     this.txtSearch.TabIndex = 10;
     this.txtSearch.Text = "Nhập chuỗi tìm kiếm";
     this.txtSearch.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtSearch_KeyPress);
     this.txtSearch.MouseDown += new System.Windows.Forms.MouseEventHandler(this.txtSearch_MouseDown);
     //
     // lblTotalEmployee
     //
     this.lblTotalEmployee.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.lblTotalEmployee.Location = new System.Drawing.Point(636, 382);
     this.lblTotalEmployee.Name = "lblTotalEmployee";
     this.lblTotalEmployee.Size = new System.Drawing.Size(144, 23);
     this.lblTotalEmployee.TabIndex = 12;
     this.lblTotalEmployee.Text = "Tổng số nhân viên: 343";
     this.lblTotalEmployee.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // lvwTimeSheet
     //
     this.lvwTimeSheet.AlternatingRowColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(237)))), ((int)(((byte)(245)))));
     this.lvwTimeSheet.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.lvwTimeSheet.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(252)))), ((int)(((byte)(255)))));
     this.lvwTimeSheet.ColumnModel = this.columnModel1;
     this.lvwTimeSheet.EditStartAction = XPTable.Editors.EditStartAction.SingleClick;
     this.lvwTimeSheet.EnableToolTips = true;
     this.lvwTimeSheet.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     this.lvwTimeSheet.FullRowSelect = true;
     this.lvwTimeSheet.GridColor = System.Drawing.SystemColors.ControlDark;
     this.lvwTimeSheet.GridLines = XPTable.Models.GridLines.Both;
     this.lvwTimeSheet.GridLineStyle = XPTable.Models.GridLineStyle.Dot;
     this.lvwTimeSheet.HeaderFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
     this.lvwTimeSheet.Location = new System.Drawing.Point(0, 19);
     this.lvwTimeSheet.Name = "lvwTimeSheet";
     this.lvwTimeSheet.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(169)))), ((int)(((byte)(183)))), ((int)(((byte)(201)))));
     this.lvwTimeSheet.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     this.lvwTimeSheet.SelectionStyle = XPTable.Models.SelectionStyle.Grid;
     this.lvwTimeSheet.Size = new System.Drawing.Size(772, 360);
     this.lvwTimeSheet.SortedColumnBackColor = System.Drawing.Color.Transparent;
     this.lvwTimeSheet.TabIndex = 11;
     this.lvwTimeSheet.TableModel = this.tableModel1;
     this.lvwTimeSheet.UnfocusedSelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(210)))), ((int)(((byte)(221)))));
     this.lvwTimeSheet.UnfocusedSelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     this.lvwTimeSheet.EditingStopped += new XPTable.Events.CellEditEventHandler(this.lvwTimeSheet_EditingStopped);
     this.lvwTimeSheet.SelectionChanged += new XPTable.Events.SelectionEventHandler(this.lvwTimeSheet_SelectionChanged);
     //
     // columnModel1
     //
     this.columnModel1.Columns.AddRange(new XPTable.Models.Column[] {
     this.cSTT,
     this.cDepartment,
     this.cCardID,
     this.cEmployeeName,
     this.c1,
     this.c2,
     this.c3,
     this.c4,
     this.c5,
     this.c6,
     this.c7,
     this.c8,
     this.c9,
     this.c10,
     this.c11,
     this.c12,
     this.c13,
     this.c14,
     this.c15,
     this.c16,
     this.c17,
     this.c18,
     this.c19,
     this.c20,
     this.c21,
     this.c22,
     this.c23,
     this.c24,
     this.c25,
     this.c26,
     this.c27,
     this.c28,
     this.c29,
     this.c30,
     this.c31,
     this.cTotal});
     //
     // cSTT
     //
     this.cSTT.Editable = false;
     this.cSTT.Maximum = new decimal(new int[] {
     10000,
     0,
     0,
     0});
     this.cSTT.Text = "STT";
     this.cSTT.Width = 40;
     //
     // cDepartment
     //
     this.cDepartment.Editable = false;
     this.cDepartment.Text = "Bộ phận";
     this.cDepartment.Width = 90;
     //
     // cCardID
     //
     this.cCardID.Editable = false;
     this.cCardID.Text = "Mã thẻ";
     this.cCardID.Width = 50;
     //
     // cEmployeeName
     //
     this.cEmployeeName.Editable = false;
     this.cEmployeeName.Text = "Họ và tên";
     this.cEmployeeName.Width = 140;
     //
     // c1
     //
     this.c1.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.c1.Sortable = false;
     this.c1.Text = "1";
     this.c1.Width = 28;
     //
     // c2
     //
     this.c2.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.c2.Sortable = false;
     this.c2.Text = "2";
     this.c2.Width = 28;
     //
     // c3
     //
     this.c3.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.c3.Sortable = false;
     this.c3.Text = "3";
     this.c3.Width = 28;
     //
     // c4
     //
     this.c4.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.c4.Sortable = false;
     this.c4.Text = "4";
     this.c4.Width = 28;
     //
     // c5
     //
     this.c5.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.c5.Sortable = false;
     this.c5.Text = "5";
     this.c5.Width = 28;
     //
     // c6
     //
     this.c6.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.c6.Sortable = false;
     this.c6.Text = "6";
     this.c6.Width = 28;
     //
     // c7
     //
     this.c7.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.c7.Sortable = false;
     this.c7.Text = "7";
     this.c7.Width = 28;
     //
     // c8
     //
     this.c8.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.c8.Sortable = false;
     this.c8.Text = "8";
     this.c8.Width = 28;
     //
     // c9
     //
     this.c9.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.c9.Sortable = false;
     this.c9.Text = "9";
     this.c9.Width = 28;
     //
     // c10
     //
     this.c10.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.c10.Sortable = false;
     this.c10.Text = "10";
     this.c10.Width = 28;
     //
     // c11
     //
     this.c11.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.c11.Sortable = false;
     this.c11.Text = "11";
     this.c11.Width = 28;
     //
     // c12
     //
     this.c12.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.c12.Sortable = false;
     this.c12.Text = "12";
     this.c12.Width = 28;
     //
     // c13
     //
     this.c13.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.c13.Sortable = false;
     this.c13.Text = "13";
     this.c13.Width = 28;
     //
     // c14
     //
     this.c14.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.c14.Sortable = false;
     this.c14.Text = "14";
     this.c14.Width = 28;
     //
     // c15
     //
     this.c15.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.c15.Sortable = false;
     this.c15.Text = "15";
     this.c15.Width = 28;
     //
     // c16
     //
     this.c16.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.c16.Sortable = false;
     this.c16.Text = "16";
     this.c16.Width = 28;
     //
     // c17
     //
     this.c17.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.c17.Sortable = false;
     this.c17.Text = "17";
     this.c17.Width = 28;
     //
     // c18
     //
     this.c18.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.c18.Sortable = false;
     this.c18.Text = "18";
     this.c18.Width = 28;
     //
     // c19
     //
     this.c19.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.c19.Sortable = false;
     this.c19.Text = "19";
     this.c19.Width = 28;
     //
     // c20
     //
     this.c20.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.c20.Sortable = false;
     this.c20.Text = "20";
     this.c20.Width = 28;
     //
     // c21
     //
     this.c21.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.c21.Sortable = false;
     this.c21.Text = "21";
     this.c21.Width = 28;
     //
     // c22
     //
     this.c22.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.c22.Sortable = false;
     this.c22.Text = "22";
     this.c22.Width = 28;
     //
     // c23
     //
     this.c23.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.c23.Sortable = false;
     this.c23.Text = "23";
     this.c23.Width = 28;
     //
     // c24
     //
     this.c24.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.c24.Sortable = false;
     this.c24.Text = "24";
     this.c24.Width = 28;
     //
     // c25
     //
     this.c25.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.c25.Sortable = false;
     this.c25.Text = "25";
     this.c25.Width = 28;
     //
     // c26
     //
     this.c26.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.c26.Sortable = false;
     this.c26.Text = "26";
     this.c26.Width = 28;
     //
     // c27
     //
     this.c27.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.c27.Sortable = false;
     this.c27.Text = "27";
     this.c27.Width = 28;
     //
     // c28
     //
     this.c28.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.c28.Sortable = false;
     this.c28.Text = "28";
     this.c28.Width = 28;
     //
     // c29
     //
     this.c29.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.c29.Sortable = false;
     this.c29.Text = "29";
     this.c29.Width = 28;
     //
     // c30
     //
     this.c30.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.c30.Sortable = false;
     this.c30.Text = "30";
     this.c30.Width = 28;
     //
     // c31
     //
     this.c31.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.c31.Sortable = false;
     this.c31.Text = "31";
     this.c31.Width = 28;
     //
     // cTotal
     //
     this.cTotal.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.cTotal.Editable = false;
     this.cTotal.Sortable = false;
     this.cTotal.Text = "Tổng";
     this.cTotal.Width = 45;
     //
     // btnGenerateTimeSheet
     //
     this.btnGenerateTimeSheet.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.btnGenerateTimeSheet.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnGenerateTimeSheet.Location = new System.Drawing.Point(8, 480);
     this.btnGenerateTimeSheet.Name = "btnGenerateTimeSheet";
     this.btnGenerateTimeSheet.Size = new System.Drawing.Size(160, 23);
     this.btnGenerateTimeSheet.TabIndex = 9;
     this.btnGenerateTimeSheet.Text = "&Sinh bảng chấm công";
     this.btnGenerateTimeSheet.Click += new System.EventHandler(this.btnGenerateTimeSheet_Click);
     //
     // btnClose
     //
     this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnClose.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnClose.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnClose.Location = new System.Drawing.Point(724, 480);
     this.btnClose.Name = "btnClose";
     this.btnClose.Size = new System.Drawing.Size(75, 23);
     this.btnClose.TabIndex = 8;
     this.btnClose.Text = "&Đóng";
     this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
     //
     // grbMonth
     //
     this.grbMonth.Controls.Add(this.label2);
     this.grbMonth.Controls.Add(this.label1);
     this.grbMonth.Controls.Add(this.cboYear);
     this.grbMonth.Controls.Add(this.cboMonth);
     this.grbMonth.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.grbMonth.Location = new System.Drawing.Point(8, 8);
     this.grbMonth.Name = "grbMonth";
     this.grbMonth.Size = new System.Drawing.Size(200, 48);
     this.grbMonth.TabIndex = 26;
     this.grbMonth.TabStop = false;
     this.grbMonth.Text = "Thời gian";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(104, 16);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(32, 23);
     this.label2.TabIndex = 3;
     this.label2.Text = "Năm";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(8, 16);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(40, 23);
     this.label1.TabIndex = 2;
     this.label1.Text = "Tháng";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // cboYear
     //
     this.cboYear.AllowTypeAllSymbols = false;
     this.cboYear.Items.AddRange(new object[] {
     "2006",
     "2007",
     "2008",
     "2009",
     "2010",
     "2011",
     "2012",
     "2013",
     "2014",
     "2015"});
     this.cboYear.Location = new System.Drawing.Point(136, 16);
     this.cboYear.Name = "cboYear";
     this.cboYear.Size = new System.Drawing.Size(56, 21);
     this.cboYear.TabIndex = 1;
     this.cboYear.SelectedIndexChanged += new System.EventHandler(this.cboYear_SelectedIndexChanged);
     //
     // cboMonth
     //
     this.cboMonth.AllowTypeAllSymbols = false;
     this.cboMonth.Items.AddRange(new object[] {
     "1",
     "2",
     "3",
     "4",
     "5",
     "6",
     "7",
     "8",
     "9",
     "10",
     "11",
     "12"});
     this.cboMonth.Location = new System.Drawing.Point(48, 16);
     this.cboMonth.Name = "cboMonth";
     this.cboMonth.Size = new System.Drawing.Size(48, 21);
     this.cboMonth.TabIndex = 0;
     this.cboMonth.SelectedIndexChanged += new System.EventHandler(this.cboMonth_SelectedIndexChanged);
     //
     // grbDepartment
     //
     this.grbDepartment.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.grbDepartment.Controls.Add(this.cboDepartment);
     this.grbDepartment.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.grbDepartment.Location = new System.Drawing.Point(576, 0);
     this.grbDepartment.Name = "grbDepartment";
     this.grbDepartment.Size = new System.Drawing.Size(216, 48);
     this.grbDepartment.TabIndex = 27;
     this.grbDepartment.TabStop = false;
     this.grbDepartment.Text = "Bộ phận";
     //
     // cboDepartment
     //
     this.cboDepartment.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.cboDepartment.BorderStyle = MTGCComboBox.TipiBordi.Fixed3D;
     this.cboDepartment.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal;
     this.cboDepartment.ColumnNum = 2;
     this.cboDepartment.ColumnWidth = "0;200";
     this.cboDepartment.DisplayMember = "Text";
     this.cboDepartment.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
     this.cboDepartment.DropDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(193)))), ((int)(((byte)(210)))), ((int)(((byte)(238)))));
     this.cboDepartment.DropDownForeColor = System.Drawing.Color.Black;
     this.cboDepartment.DropDownStyle = MTGCComboBox.CustomDropDownStyle.DropDownList;
     this.cboDepartment.DropDownWidth = 200;
     this.cboDepartment.GridLineColor = System.Drawing.Color.LightGray;
     this.cboDepartment.GridLineHorizontal = true;
     this.cboDepartment.GridLineVertical = true;
     this.cboDepartment.LoadingType = MTGCComboBox.CaricamentoCombo.ComboBoxItem;
     this.cboDepartment.Location = new System.Drawing.Point(8, 16);
     this.cboDepartment.ManagingFastMouseMoving = true;
     this.cboDepartment.ManagingFastMouseMovingInterval = 30;
     this.cboDepartment.Name = "cboDepartment";
     this.cboDepartment.Size = new System.Drawing.Size(200, 21);
     this.cboDepartment.TabIndex = 0;
     this.cboDepartment.SelectedIndexChanged += new System.EventHandler(this.cboDepartment_SelectedIndexChanged);
     //
     // btnUpdate
     //
     this.btnUpdate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnUpdate.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnUpdate.Location = new System.Drawing.Point(344, 480);
     this.btnUpdate.Name = "btnUpdate";
     this.btnUpdate.Size = new System.Drawing.Size(80, 23);
     this.btnUpdate.TabIndex = 5;
     this.btnUpdate.Text = "&Cập nhật";
     this.btnUpdate.Click += new System.EventHandler(this.btnUpdate_Click);
     //
     // btnExportExcel
     //
     this.btnExportExcel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnExportExcel.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnExportExcel.Location = new System.Drawing.Point(512, 480);
     this.btnExportExcel.Name = "btnExportExcel";
     this.btnExportExcel.Size = new System.Drawing.Size(112, 23);
     this.btnExportExcel.TabIndex = 6;
     this.btnExportExcel.Text = "&Xuất Excel";
     this.btnExportExcel.Click += new System.EventHandler(this.btnExportExcel_Click);
     //
     // btnRefresh
     //
     this.btnRefresh.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnRefresh.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnRefresh.Location = new System.Drawing.Point(636, 480);
     this.btnRefresh.Name = "btnRefresh";
     this.btnRefresh.Size = new System.Drawing.Size(80, 23);
     this.btnRefresh.TabIndex = 7;
     this.btnRefresh.Text = "&Nạp lại";
     this.btnRefresh.Click += new System.EventHandler(this.btnRefresh_Click);
     //
     // btnDelete
     //
     this.btnDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnDelete.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnDelete.Location = new System.Drawing.Point(432, 480);
     this.btnDelete.Name = "btnDelete";
     this.btnDelete.Size = new System.Drawing.Size(72, 24);
     this.btnDelete.TabIndex = 28;
     this.btnDelete.Text = "Xóa";
     this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
     //
     // frmTimeSheet
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton = this.btnClose;
     this.ClientSize = new System.Drawing.Size(804, 510);
     this.Controls.Add(this.btnDelete);
     this.Controls.Add(this.btnRefresh);
     this.Controls.Add(this.btnExportExcel);
     this.Controls.Add(this.btnUpdate);
     this.Controls.Add(this.grbDepartment);
     this.Controls.Add(this.grbMonth);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.btnClose);
     this.Controls.Add(this.btnGenerateTimeSheet);
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name = "frmTimeSheet";
     this.Text = "Bảng chấm công chi tiết tháng";
     this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
     this.Load += new System.EventHandler(this.frmTimeSheet_Load);
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.lvwTimeSheet)).EndInit();
     this.grbMonth.ResumeLayout(false);
     this.grbDepartment.ResumeLayout(false);
     this.ResumeLayout(false);
 }