示例#1
0
        /// <summary>
        /// Returns the type of column that is appropriate for the given property of the data source.
        /// Numbers, DateTime, Color and Boolean columns are mapped to NumberColumn, DateTimeColumn, ColorColumn and CheckBoxColumn respectively. The default
        /// is just a TextColumn.
        /// </summary>
        /// <param name="prop"></param>
        /// <param name="index"></param>
        /// <returns></returns>
        public virtual Column GetColumn(PropertyDescriptor prop, int index)
        {
            Column column;
            var    propertyType = prop.PropertyType;

            switch (propertyType.Name)
            {
            case nameof(Int32):
            case nameof(Double):
            case nameof(Single):
            case nameof(Int16):
            case nameof(Int64):
            case nameof(Decimal):
                var fieldMin = propertyType.GetField("MinValue");
                var fieldMax = propertyType.GetField("MaxValue");
                column = new DoubleColumn(prop.Name)
                {
                    Minimum = (double)fieldMin.GetValue(propertyType),
                    Maximum = (double)fieldMax.GetValue(propertyType),
                };
                break;

            case "DateTime":
                column = new DateTimeColumn(prop.Name);
                break;

            case "Color":
                column = new ColorColumn(prop.Name);
                break;

            case "Boolean":
                column = new CheckBoxColumn(prop.Name);
                break;

            default:
                column = new TextColumn(prop.Name);
                break;
            }

            return(column);
        }
示例#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(frmListShift));
     this.groupBox1         = new System.Windows.Forms.GroupBox();
     this.lvwShift          = new XPTable.Models.Table();
     this.columnModel1      = new XPTable.Models.ColumnModel();
     this.cSTT              = new XPTable.Models.TextColumn();
     this.clShiftName       = new XPTable.Models.TextColumn();
     this.chkBreakShift     = new XPTable.Models.CheckBoxColumn();
     this.clDeltaLateTime   = new XPTable.Models.TextColumn();
     this.clCheckIn1        = new XPTable.Models.TextColumn();
     this.clCheckOut1       = new XPTable.Models.TextColumn();
     this.clCheckIn2        = new XPTable.Models.TextColumn();
     this.clCheckOut2       = new XPTable.Models.TextColumn();
     this.clDeltaAllowCheck = new XPTable.Models.TextColumn();
     this.clDescription     = new XPTable.Models.TextColumn();
     this.tableModel1       = new XPTable.Models.TableModel();
     this.btnEditShift      = new System.Windows.Forms.Button();
     this.btnClose          = new System.Windows.Forms.Button();
     this.btnAddShift       = new System.Windows.Forms.Button();
     this.btnDelete         = new System.Windows.Forms.Button();
     this.columnModel2      = new XPTable.Models.ColumnModel();
     this.textColumn1       = new XPTable.Models.TextColumn();
     this.textColumn2       = new XPTable.Models.TextColumn();
     this.textColumn3       = new XPTable.Models.TextColumn();
     this.textColumn4       = new XPTable.Models.TextColumn();
     this.textColumn5       = new XPTable.Models.TextColumn();
     this.tableModel2       = new XPTable.Models.TableModel();
     this.splitContainer1   = new System.Windows.Forms.SplitContainer();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.lvwShift)).BeginInit();
     this.splitContainer1.Panel1.SuspendLayout();
     this.splitContainer1.Panel2.SuspendLayout();
     this.splitContainer1.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.lvwShift);
     this.groupBox1.Dock      = System.Windows.Forms.DockStyle.Fill;
     this.groupBox1.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.groupBox1.Location  = new System.Drawing.Point(0, 0);
     this.groupBox1.Name      = "groupBox1";
     this.groupBox1.Size      = new System.Drawing.Size(784, 497);
     this.groupBox1.TabIndex  = 0;
     this.groupBox1.TabStop   = false;
     this.groupBox1.Text      = "Danh sách ca";
     //
     // lvwShift
     //
     this.lvwShift.AlternatingRowColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(237)))), ((int)(((byte)(245)))));
     this.lvwShift.BackColor           = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(242)))), ((int)(((byte)(249)))));
     this.lvwShift.ColumnModel         = this.columnModel1;
     this.lvwShift.Dock                        = System.Windows.Forms.DockStyle.Fill;
     this.lvwShift.EnableToolTips              = true;
     this.lvwShift.ForeColor                   = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     this.lvwShift.FullRowSelect               = true;
     this.lvwShift.GridColor                   = System.Drawing.SystemColors.ControlDark;
     this.lvwShift.GridLines                   = XPTable.Models.GridLines.Both;
     this.lvwShift.GridLineStyle               = XPTable.Models.GridLineStyle.Dot;
     this.lvwShift.HeaderFont                  = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.lvwShift.Location                    = new System.Drawing.Point(3, 16);
     this.lvwShift.Name                        = "lvwShift";
     this.lvwShift.SelectionBackColor          = System.Drawing.Color.FromArgb(((int)(((byte)(169)))), ((int)(((byte)(183)))), ((int)(((byte)(201)))));
     this.lvwShift.SelectionForeColor          = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     this.lvwShift.SelectionStyle              = XPTable.Models.SelectionStyle.Grid;
     this.lvwShift.Size                        = new System.Drawing.Size(778, 478);
     this.lvwShift.SortedColumnBackColor       = System.Drawing.Color.Transparent;
     this.lvwShift.TabIndex                    = 0;
     this.lvwShift.TableModel                  = this.tableModel1;
     this.lvwShift.UnfocusedSelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(210)))), ((int)(((byte)(221)))));
     this.lvwShift.UnfocusedSelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     this.lvwShift.SelectionChanged           += new XPTable.Events.SelectionEventHandler(this.lvwShift_SelectionChanged);
     this.lvwShift.DoubleClick                += new System.EventHandler(this.btnEditShift_Click);
     this.lvwShift.MouseDown                  += new System.Windows.Forms.MouseEventHandler(this.lvwShift_MouseDown);
     //
     // columnModel1
     //
     this.columnModel1.Columns.AddRange(new XPTable.Models.Column[] {
         this.cSTT,
         this.clShiftName,
         this.chkBreakShift,
         this.clDeltaLateTime,
         this.clCheckIn1,
         this.clCheckOut1,
         this.clCheckIn2,
         this.clCheckOut2,
         this.clDeltaAllowCheck,
         this.clDescription
     });
     //
     // cSTT
     //
     this.cSTT.Editable = false;
     this.cSTT.Text     = "STT";
     this.cSTT.Width    = 40;
     //
     // clShiftName
     //
     this.clShiftName.Editable = false;
     this.clShiftName.Text     = "Tên ca";
     this.clShiftName.Width    = 100;
     //
     // chkBreakShift
     //
     this.chkBreakShift.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.chkBreakShift.Editable  = false;
     this.chkBreakShift.Text      = "Ca gãy";
     this.chkBreakShift.Width     = 50;
     //
     // clDeltaLateTime
     //
     this.clDeltaLateTime.Editable = false;
     this.clDeltaLateTime.Text     = "Đi muộn";
     this.clDeltaLateTime.Width    = 70;
     //
     // clCheckIn1
     //
     this.clCheckIn1.Editable = false;
     this.clCheckIn1.Text     = "Giờ vào 1";
     this.clCheckIn1.Width    = 70;
     //
     // clCheckOut1
     //
     this.clCheckOut1.Editable = false;
     this.clCheckOut1.Text     = "Giờ ra 1";
     this.clCheckOut1.Width    = 70;
     //
     // clCheckIn2
     //
     this.clCheckIn2.Editable = false;
     this.clCheckIn2.Text     = "Giờ vào 2";
     this.clCheckIn2.Width    = 70;
     //
     // clCheckOut2
     //
     this.clCheckOut2.Editable = false;
     this.clCheckOut2.Text     = "Giờ ra 2";
     this.clCheckOut2.Width    = 70;
     //
     // clDeltaAllowCheck
     //
     this.clDeltaAllowCheck.Editable = false;
     this.clDeltaAllowCheck.Text     = "Chấp nhận quẹt thẻ";
     this.clDeltaAllowCheck.Width    = 125;
     //
     // clDescription
     //
     this.clDescription.Editable = false;
     this.clDescription.Text     = "Mô tả";
     this.clDescription.Width    = 150;
     //
     // btnEditShift
     //
     this.btnEditShift.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnEditShift.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnEditShift.Location  = new System.Drawing.Point(528, 21);
     this.btnEditShift.Name      = "btnEditShift";
     this.btnEditShift.Size      = new System.Drawing.Size(75, 23);
     this.btnEditShift.TabIndex  = 1;
     this.btnEditShift.Text      = "&Sửa";
     this.btnEditShift.Click    += new System.EventHandler(this.btnEditShift_Click);
     //
     // btnClose
     //
     this.btnClose.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | 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(694, 20);
     this.btnClose.Name         = "btnClose";
     this.btnClose.Size         = new System.Drawing.Size(75, 25);
     this.btnClose.TabIndex     = 3;
     this.btnClose.Text         = "&Đóng";
     this.btnClose.Click       += new System.EventHandler(this.btnClose_Click);
     //
     // btnAddShift
     //
     this.btnAddShift.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnAddShift.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnAddShift.Location  = new System.Drawing.Point(445, 21);
     this.btnAddShift.Name      = "btnAddShift";
     this.btnAddShift.Size      = new System.Drawing.Size(75, 23);
     this.btnAddShift.TabIndex  = 0;
     this.btnAddShift.Text      = "&Thêm";
     this.btnAddShift.Click    += new System.EventHandler(this.btnAddShift_Click);
     //
     // btnDelete
     //
     this.btnDelete.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnDelete.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnDelete.Location  = new System.Drawing.Point(611, 21);
     this.btnDelete.Name      = "btnDelete";
     this.btnDelete.Size      = new System.Drawing.Size(75, 23);
     this.btnDelete.TabIndex  = 2;
     this.btnDelete.Text      = "&Xóa";
     this.btnDelete.Click    += new System.EventHandler(this.btnDelete_Click);
     //
     // columnModel2
     //
     this.columnModel2.Columns.AddRange(new XPTable.Models.Column[] {
         this.textColumn1,
         this.textColumn2,
         this.textColumn3,
         this.textColumn4,
         this.textColumn5
     });
     //
     // textColumn1
     //
     this.textColumn1.Editable = false;
     this.textColumn1.Text     = "STT";
     this.textColumn1.Width    = 40;
     //
     // textColumn2
     //
     this.textColumn2.Editable = false;
     this.textColumn2.Text     = "Tên ca";
     this.textColumn2.Width    = 120;
     //
     // textColumn3
     //
     this.textColumn3.Editable = false;
     this.textColumn3.Text     = "Giờ đầu ca";
     this.textColumn3.Width    = 80;
     //
     // textColumn4
     //
     this.textColumn4.Editable = false;
     this.textColumn4.Text     = "Giờ kết thúc";
     this.textColumn4.Width    = 80;
     //
     // textColumn5
     //
     this.textColumn5.Editable = false;
     this.textColumn5.Text     = "Miêu tả";
     this.textColumn5.Width    = 220;
     //
     // splitContainer1
     //
     this.splitContainer1.Dock            = System.Windows.Forms.DockStyle.Fill;
     this.splitContainer1.FixedPanel      = System.Windows.Forms.FixedPanel.Panel2;
     this.splitContainer1.IsSplitterFixed = true;
     this.splitContainer1.Location        = new System.Drawing.Point(0, 0);
     this.splitContainer1.Name            = "splitContainer1";
     this.splitContainer1.Orientation     = System.Windows.Forms.Orientation.Horizontal;
     //
     // splitContainer1.Panel1
     //
     this.splitContainer1.Panel1.Controls.Add(this.groupBox1);
     //
     // splitContainer1.Panel2
     //
     this.splitContainer1.Panel2.Controls.Add(this.btnEditShift);
     this.splitContainer1.Panel2.Controls.Add(this.btnClose);
     this.splitContainer1.Panel2.Controls.Add(this.btnAddShift);
     this.splitContainer1.Panel2.Controls.Add(this.btnDelete);
     this.splitContainer1.Size             = new System.Drawing.Size(784, 561);
     this.splitContainer1.SplitterDistance = 497;
     this.splitContainer1.TabIndex         = 0;
     //
     // frmListShift
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(784, 561);
     this.Controls.Add(this.splitContainer1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name            = "frmListShift";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text            = "Danh sách ca";
     this.WindowState     = System.Windows.Forms.FormWindowState.Maximized;
     this.Load           += new System.EventHandler(this.frmListShift_Load);
     this.groupBox1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.lvwShift)).EndInit();
     this.splitContainer1.Panel1.ResumeLayout(false);
     this.splitContainer1.Panel2.ResumeLayout(false);
     this.splitContainer1.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()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmListEmployees));
     this.pnDepartment = new System.Windows.Forms.Panel();
     this.departmentTreeView = new EVSoft.HRMS.Controls.DepartmentTreeView();
     this.btnDeletedEmployee = new System.Windows.Forms.Button();
     this.lblDepartment = new System.Windows.Forms.Label();
     this.pnEmployee = new System.Windows.Forms.Panel();
     this.lvwEmployeeBarcode = new XPTable.Models.Table();
     this.columnModel2 = new XPTable.Models.ColumnModel();
     this.clSTT = new XPTable.Models.NumberColumn();
     this.clBarcode = new XPTable.Models.TextColumn();
     this.clEmployeeID = new XPTable.Models.TextColumn();
     this.clEmployeeName = new XPTable.Models.TextColumn();
     this.clDepartment = new XPTable.Models.TextColumn();
     this.clStartDate = new XPTable.Models.TextColumn();
     this.clImagePath = new XPTable.Models.TextColumn();
     this.tableModel2 = new XPTable.Models.TableModel();
     this.lvwEmployee = new XPTable.Models.Table();
     this.columnModel1 = new XPTable.Models.ColumnModel();
     this.cSTT = new XPTable.Models.NumberColumn();
     this.cDepartmentName = new XPTable.Models.TextColumn();
     this.cCardID = new XPTable.Models.TextColumn();
     this.cBarCode = new XPTable.Models.TextColumn();
     this.cEmployeeName = new XPTable.Models.TextColumn();
     this.cGender = new XPTable.Models.TextColumn();
     this.cDateOfBirth = new XPTable.Models.TextColumn();
     this.cIdentityCard = new XPTable.Models.TextColumn();
     this.cIssue = new XPTable.Models.TextColumn();
     this.cAllocationPlace = new XPTable.Models.TextColumn();
     this.cInsurance = new XPTable.Models.TextColumn();
     this.cPhone = new XPTable.Models.TextColumn();
     this.cTrinhdo = new XPTable.Models.TextColumn();
     this.cAddress = new XPTable.Models.TextColumn();
     this.cTemporaryAddress = new XPTable.Models.TextColumn();
     this.cCommune = new XPTable.Models.TextColumn();
     this.cDistrict = new XPTable.Models.TextColumn();
     this.cProvince = new XPTable.Models.TextColumn();
     this.cPosition = new XPTable.Models.TextColumn();
     this.cStartTrial = new XPTable.Models.TextColumn();
     this.cStartDate = new XPTable.Models.TextColumn();
     this.cStopDate = new XPTable.Models.TextColumn();
     this.cBasicSalary = new XPTable.Models.NumberColumn();
     this.LunchAllowance = new XPTable.Models.NumberColumn();
     this.DangerousAllowance = new XPTable.Models.NumberColumn();
     this.ResponsibleAllowance = new XPTable.Models.NumberColumn();
     this.HarmfulAllowance = new XPTable.Models.NumberColumn();
     this.IntimateAllowance = new XPTable.Models.NumberColumn();
     this.bIntimateAllowanceFixed = new XPTable.Models.CheckBoxColumn();
     this.cTotalYear = new XPTable.Models.TextColumn();
     this.cTotalMonth = new XPTable.Models.TextColumn();
     this.txtKinhNghiem = new XPTable.Models.TextColumn();
     this.tableModel1 = new XPTable.Models.TableModel();
     this.lblEmployee = new System.Windows.Forms.Label();
     this.pnButtons = new System.Windows.Forms.Panel();
     this.btnEdit = new System.Windows.Forms.Button();
     this.btnClose = new System.Windows.Forms.Button();
     this.btnSearch = new System.Windows.Forms.Button();
     this.txtSearch = new System.Windows.Forms.TextBox();
     this.btnUpdateBarCode = new System.Windows.Forms.Button();
     this.btnExcelBarCode = new System.Windows.Forms.Button();
     this.btnExcel = new System.Windows.Forms.Button();
     this.btnPermanentDelete = new System.Windows.Forms.Button();
     this.btnAdd = new System.Windows.Forms.Button();
     this.btnRestore = new System.Windows.Forms.Button();
     this.btnDelete = new System.Windows.Forms.Button();
     this.imageList1 = new System.Windows.Forms.ImageList(this.components);
     this.splitter1 = new System.Windows.Forms.Splitter();
     this.pnDepartment.SuspendLayout();
     this.pnEmployee.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.lvwEmployeeBarcode)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.lvwEmployee)).BeginInit();
     this.pnButtons.SuspendLayout();
     this.SuspendLayout();
     //
     // pnDepartment
     //
     this.pnDepartment.Controls.Add(this.departmentTreeView);
     this.pnDepartment.Controls.Add(this.btnDeletedEmployee);
     this.pnDepartment.Controls.Add(this.lblDepartment);
     this.pnDepartment.Dock = System.Windows.Forms.DockStyle.Left;
     this.pnDepartment.Location = new System.Drawing.Point(0, 0);
     this.pnDepartment.Name = "pnDepartment";
     this.pnDepartment.Size = new System.Drawing.Size(200, 550);
     this.pnDepartment.TabIndex = 0;
     //
     // departmentTreeView
     //
     this.departmentTreeView.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.departmentTreeView.BackColor = System.Drawing.Color.GhostWhite;
     this.departmentTreeView.DepartmentDataSet = null;
     this.departmentTreeView.ImageIndex = 0;
     this.departmentTreeView.Location = new System.Drawing.Point(0, 24);
     this.departmentTreeView.Name = "departmentTreeView";
     this.departmentTreeView.SelectedImageIndex = 0;
     this.departmentTreeView.Size = new System.Drawing.Size(200, 504);
     this.departmentTreeView.TabIndex = 5;
     this.departmentTreeView.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.departmentTreeView_AfterSelect);
     //
     // btnDeletedEmployee
     //
     this.btnDeletedEmployee.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.btnDeletedEmployee.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnDeletedEmployee.Location = new System.Drawing.Point(0, 527);
     this.btnDeletedEmployee.Name = "btnDeletedEmployee";
     this.btnDeletedEmployee.Size = new System.Drawing.Size(200, 23);
     this.btnDeletedEmployee.TabIndex = 7;
     this.btnDeletedEmployee.Text = "Danh sách nhân viên đã nghỉ việc";
     this.btnDeletedEmployee.Click += new System.EventHandler(this.btnDeletedEmployee_Click);
     //
     // lblDepartment
     //
     this.lblDepartment.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.lblDepartment.Dock = System.Windows.Forms.DockStyle.Top;
     this.lblDepartment.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
     this.lblDepartment.Location = new System.Drawing.Point(0, 0);
     this.lblDepartment.Name = "lblDepartment";
     this.lblDepartment.Size = new System.Drawing.Size(200, 24);
     this.lblDepartment.TabIndex = 1;
     this.lblDepartment.Text = "Danh sách các đơn vị";
     this.lblDepartment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // pnEmployee
     //
     this.pnEmployee.Controls.Add(this.lvwEmployeeBarcode);
     this.pnEmployee.Controls.Add(this.lvwEmployee);
     this.pnEmployee.Controls.Add(this.lblEmployee);
     this.pnEmployee.Controls.Add(this.pnButtons);
     this.pnEmployee.Dock = System.Windows.Forms.DockStyle.Fill;
     this.pnEmployee.Location = new System.Drawing.Point(200, 0);
     this.pnEmployee.Name = "pnEmployee";
     this.pnEmployee.Size = new System.Drawing.Size(820, 550);
     this.pnEmployee.TabIndex = 4;
     //
     // lvwEmployeeBarcode
     //
     this.lvwEmployeeBarcode.AlternatingRowColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(237)))), ((int)(((byte)(245)))));
     this.lvwEmployeeBarcode.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(242)))), ((int)(((byte)(249)))));
     this.lvwEmployeeBarcode.ColumnModel = this.columnModel2;
     this.lvwEmployeeBarcode.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     this.lvwEmployeeBarcode.Location = new System.Drawing.Point(990, 261);
     this.lvwEmployeeBarcode.Name = "lvwEmployeeBarcode";
     this.lvwEmployeeBarcode.Size = new System.Drawing.Size(150, 150);
     this.lvwEmployeeBarcode.TabIndex = 0;
     this.lvwEmployeeBarcode.TableModel = this.tableModel2;
     this.lvwEmployeeBarcode.Text = "table1";
     this.lvwEmployeeBarcode.Visible = false;
     //
     // columnModel2
     //
     this.columnModel2.Columns.AddRange(new XPTable.Models.Column[] {
     this.clSTT,
     this.clBarcode,
     this.clEmployeeID,
     this.clEmployeeName,
     this.clDepartment,
     this.clStartDate,
     this.clImagePath});
     //
     // clSTT
     //
     this.clSTT.Maximum = new decimal(new int[] {
     10000,
     0,
     0,
     0});
     this.clSTT.Text = "STT";
     this.clSTT.Width = 40;
     //
     // clBarcode
     //
     this.clBarcode.Text = "Mã vạch";
     this.clBarcode.Width = 100;
     //
     // clEmployeeID
     //
     this.clEmployeeID.Text = "Mã nhân viên";
     //
     // clEmployeeName
     //
     this.clEmployeeName.Text = "Họ tên";
     this.clEmployeeName.Width = 150;
     //
     // clDepartment
     //
     this.clDepartment.Text = "Bộ phận";
     //
     // clStartDate
     //
     this.clStartDate.Text = "Ngày vào công ty";
     //
     // clImagePath
     //
     this.clImagePath.Text = "Hình ảnh";
     //
     // lvwEmployee
     //
     this.lvwEmployee.AlternatingRowColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(237)))), ((int)(((byte)(245)))));
     this.lvwEmployee.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.lvwEmployee.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(242)))), ((int)(((byte)(249)))));
     this.lvwEmployee.ColumnModel = this.columnModel1;
     this.lvwEmployee.EnableHeaderContextMenu = false;
     this.lvwEmployee.EnableToolTips = true;
     this.lvwEmployee.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     this.lvwEmployee.FullRowSelect = true;
     this.lvwEmployee.GridColor = System.Drawing.SystemColors.ButtonShadow;
     this.lvwEmployee.GridLines = XPTable.Models.GridLines.Both;
     this.lvwEmployee.GridLineStyle = XPTable.Models.GridLineStyle.Dot;
     this.lvwEmployee.HeaderFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.lvwEmployee.Location = new System.Drawing.Point(3, 22);
     this.lvwEmployee.Name = "lvwEmployee";
     this.lvwEmployee.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(169)))), ((int)(((byte)(183)))), ((int)(((byte)(201)))));
     this.lvwEmployee.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     this.lvwEmployee.SelectionStyle = XPTable.Models.SelectionStyle.Grid;
     this.lvwEmployee.Size = new System.Drawing.Size(812, 488);
     this.lvwEmployee.SortedColumnBackColor = System.Drawing.Color.Transparent;
     this.lvwEmployee.TabIndex = 10;
     this.lvwEmployee.TableModel = this.tableModel1;
     this.lvwEmployee.UnfocusedSelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(210)))), ((int)(((byte)(221)))));
     this.lvwEmployee.UnfocusedSelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     this.lvwEmployee.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.lvwEmployee_KeyPress);
     this.lvwEmployee.MouseDown += new System.Windows.Forms.MouseEventHandler(this.lvwEmployee_MouseDown);
     this.lvwEmployee.SelectionChanged += new XPTable.Events.SelectionEventHandler(this.lvwEmployee_SelectionChanged);
     this.lvwEmployee.DoubleClick += new System.EventHandler(this.btnEdit_Click);
     //
     // columnModel1
     //
     this.columnModel1.Columns.AddRange(new XPTable.Models.Column[] {
     this.cSTT,
     this.cDepartmentName,
     this.cCardID,
     this.cBarCode,
     this.cEmployeeName,
     this.cGender,
     this.cDateOfBirth,
     this.cIdentityCard,
     this.cIssue,
     this.cAllocationPlace,
     this.cInsurance,
     this.cPhone,
     this.cTrinhdo,
     this.cAddress,
     this.cTemporaryAddress,
     this.cCommune,
     this.cDistrict,
     this.cProvince,
     this.cPosition,
     this.cStartTrial,
     this.cStartDate,
     this.cStopDate,
     this.cBasicSalary,
     this.LunchAllowance,
     this.DangerousAllowance,
     this.ResponsibleAllowance,
     this.HarmfulAllowance,
     this.IntimateAllowance,
     this.bIntimateAllowanceFixed,
     this.cTotalYear,
     this.cTotalMonth,
     this.txtKinhNghiem});
     //
     // cSTT
     //
     this.cSTT.Editable = false;
     this.cSTT.Maximum = new decimal(new int[] {
     10000,
     0,
     0,
     0});
     this.cSTT.Text = "STT";
     this.cSTT.UpDownAlign = System.Windows.Forms.LeftRightAlignment.Left;
     this.cSTT.Width = 40;
     //
     // cDepartmentName
     //
     this.cDepartmentName.Editable = false;
     this.cDepartmentName.Text = "Bộ phận";
     this.cDepartmentName.Width = 90;
     //
     // cCardID
     //
     this.cCardID.Editable = false;
     this.cCardID.Text = "Mã thẻ";
     this.cCardID.Width = 50;
     //
     // cBarCode
     //
     this.cBarCode.Text = "Mã vạch";
     this.cBarCode.Width = 100;
     //
     // cEmployeeName
     //
     this.cEmployeeName.Editable = false;
     this.cEmployeeName.Text = "Tên nhân viên";
     this.cEmployeeName.Width = 130;
     //
     // cGender
     //
     this.cGender.Editable = false;
     this.cGender.Text = "Giới tính";
     this.cGender.Width = 60;
     //
     // cDateOfBirth
     //
     this.cDateOfBirth.Editable = false;
     this.cDateOfBirth.Text = "Ngày sinh";
     //
     // cIdentityCard
     //
     this.cIdentityCard.Editable = false;
     this.cIdentityCard.Text = "Số CMND";
     //
     // cIssue
     //
     this.cIssue.Editable = false;
     this.cIssue.Text = "Ngày cấp";
     //
     // cAllocationPlace
     //
     this.cAllocationPlace.Editable = false;
     this.cAllocationPlace.Text = "Nơi cấp";
     //
     // cInsurance
     //
     this.cInsurance.Text = "Số sổ BHXH";
     //
     // cPhone
     //
     this.cPhone.Editable = false;
     this.cPhone.Text = "Điện thoại";
     //
     // cTrinhdo
     //
     this.cTrinhdo.Editable = false;
     this.cTrinhdo.Text = "Trình độ";
     this.cTrinhdo.Width = 58;
     //
     // cAddress
     //
     this.cAddress.Editable = false;
     this.cAddress.Text = "Địa chỉ thường trú";
     this.cAddress.Width = 120;
     //
     // cTemporaryAddress
     //
     this.cTemporaryAddress.Editable = false;
     this.cTemporaryAddress.Text = "Địa chỉ tạm trú";
     this.cTemporaryAddress.Width = 120;
     //
     // cCommune
     //
     this.cCommune.Editable = false;
     this.cCommune.Text = "Phường/xã";
     this.cCommune.Width = 80;
     //
     // cDistrict
     //
     this.cDistrict.Editable = false;
     this.cDistrict.Text = "Quận/huyện";
     this.cDistrict.Width = 80;
     //
     // cProvince
     //
     this.cProvince.Text = "Tỉnh/T.phố";
     this.cProvince.Width = 80;
     //
     // cPosition
     //
     this.cPosition.Editable = false;
     this.cPosition.Text = "Chức vụ";
     this.cPosition.Width = 62;
     //
     // cStartTrial
     //
     this.cStartTrial.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.cStartTrial.Editable = false;
     this.cStartTrial.Text = "Ngày thử việc";
     this.cStartTrial.Width = 91;
     //
     // cStartDate
     //
     this.cStartDate.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.cStartDate.Text = "Ngày chính thức";
     this.cStartDate.Width = 98;
     //
     // cStopDate
     //
     this.cStopDate.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.cStopDate.Editable = false;
     this.cStopDate.Text = "Thôi việc";
     this.cStopDate.Visible = false;
     this.cStopDate.Width = 98;
     //
     // cBasicSalary
     //
     this.cBasicSalary.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.cBasicSalary.Editable = false;
     this.cBasicSalary.Format = "#,##0;(#,##0);-";
     this.cBasicSalary.Increment = new decimal(new int[] {
     1000,
     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 = 84;
     //
     // LunchAllowance
     //
     this.LunchAllowance.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.LunchAllowance.Editable = false;
     this.LunchAllowance.Format = "#,##0;(#,##0);-";
     this.LunchAllowance.Increment = new decimal(new int[] {
     1000,
     0,
     0,
     0});
     this.LunchAllowance.Maximum = new decimal(new int[] {
     100000000,
     0,
     0,
     0});
     this.LunchAllowance.Text = "PC ăn trưa";
     this.LunchAllowance.Width = 84;
     //
     // DangerousAllowance
     //
     this.DangerousAllowance.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.DangerousAllowance.Editable = false;
     this.DangerousAllowance.Format = "#,##0;(#,##0);-";
     this.DangerousAllowance.Increment = new decimal(new int[] {
     1000,
     0,
     0,
     0});
     this.DangerousAllowance.Maximum = new decimal(new int[] {
     100000000,
     0,
     0,
     0});
     this.DangerousAllowance.Text = "PC công việc";
     this.DangerousAllowance.Width = 84;
     //
     // ResponsibleAllowance
     //
     this.ResponsibleAllowance.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.ResponsibleAllowance.Editable = false;
     this.ResponsibleAllowance.Format = "#,##0;(#,##0);-";
     this.ResponsibleAllowance.Increment = new decimal(new int[] {
     1000,
     0,
     0,
     0});
     this.ResponsibleAllowance.Maximum = new decimal(new int[] {
     100000000,
     0,
     0,
     0});
     this.ResponsibleAllowance.Text = "PC trách nhiệm";
     this.ResponsibleAllowance.Width = 84;
     //
     // HarmfulAllowance
     //
     this.HarmfulAllowance.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.HarmfulAllowance.Editable = false;
     this.HarmfulAllowance.Format = "#,##0;(#,##0);-";
     this.HarmfulAllowance.Increment = new decimal(new int[] {
     1000,
     0,
     0,
     0});
     this.HarmfulAllowance.Maximum = new decimal(new int[] {
     100000000,
     0,
     0,
     0});
     this.HarmfulAllowance.Text = "PC Độc hại";
     this.HarmfulAllowance.Width = 84;
     //
     // IntimateAllowance
     //
     this.IntimateAllowance.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.IntimateAllowance.Editable = false;
     this.IntimateAllowance.Format = "#,##0;(#,##0);-";
     this.IntimateAllowance.Increment = new decimal(new int[] {
     1000,
     0,
     0,
     0});
     this.IntimateAllowance.Maximum = new decimal(new int[] {
     100000000,
     0,
     0,
     0});
     this.IntimateAllowance.Text = "PC đi lại";
     this.IntimateAllowance.Width = 84;
     //
     // bIntimateAllowanceFixed
     //
     this.bIntimateAllowanceFixed.Editable = false;
     this.bIntimateAllowanceFixed.Text = "PC ĐL cố định";
     //
     // cTotalYear
     //
     this.cTotalYear.Text = "Số năm";
     //
     // cTotalMonth
     //
     this.cTotalMonth.Text = "Số tháng";
     //
     // lblEmployee
     //
     this.lblEmployee.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.lblEmployee.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.lblEmployee.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
     this.lblEmployee.Location = new System.Drawing.Point(8, 0);
     this.lblEmployee.Name = "lblEmployee";
     this.lblEmployee.Size = new System.Drawing.Size(812, 24);
     this.lblEmployee.TabIndex = 6;
     this.lblEmployee.Text = "Tổng số nhân viên trong danh sách: 999";
     this.lblEmployee.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // pnButtons
     //
     this.pnButtons.Controls.Add(this.btnEdit);
     this.pnButtons.Controls.Add(this.btnClose);
     this.pnButtons.Controls.Add(this.btnSearch);
     this.pnButtons.Controls.Add(this.txtSearch);
     this.pnButtons.Controls.Add(this.btnUpdateBarCode);
     this.pnButtons.Controls.Add(this.btnExcelBarCode);
     this.pnButtons.Controls.Add(this.btnExcel);
     this.pnButtons.Controls.Add(this.btnPermanentDelete);
     this.pnButtons.Controls.Add(this.btnAdd);
     this.pnButtons.Controls.Add(this.btnRestore);
     this.pnButtons.Controls.Add(this.btnDelete);
     this.pnButtons.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.pnButtons.Location = new System.Drawing.Point(0, 510);
     this.pnButtons.Name = "pnButtons";
     this.pnButtons.Size = new System.Drawing.Size(820, 40);
     this.pnButtons.TabIndex = 4;
     //
     // btnEdit
     //
     this.btnEdit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnEdit.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnEdit.Location = new System.Drawing.Point(580, 8);
     this.btnEdit.Name = "btnEdit";
     this.btnEdit.Size = new System.Drawing.Size(75, 23);
     this.btnEdit.TabIndex = 5;
     this.btnEdit.Text = "&Sửa";
     this.btnEdit.Click += new System.EventHandler(this.btnEdit_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(740, 8);
     this.btnClose.Name = "btnClose";
     this.btnClose.Size = new System.Drawing.Size(75, 23);
     this.btnClose.TabIndex = 7;
     this.btnClose.Text = "&Đóng";
     this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
     //
     // 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(128, 8);
     this.btnSearch.Name = "btnSearch";
     this.btnSearch.Size = new System.Drawing.Size(64, 23);
     this.btnSearch.TabIndex = 1;
     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(16, 8);
     this.txtSearch.Name = "txtSearch";
     this.txtSearch.Size = new System.Drawing.Size(112, 20);
     this.txtSearch.TabIndex = 0;
     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);
     //
     // btnUpdateBarCode
     //
     this.btnUpdateBarCode.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnUpdateBarCode.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnUpdateBarCode.Location = new System.Drawing.Point(131, 8);
     this.btnUpdateBarCode.Name = "btnUpdateBarCode";
     this.btnUpdateBarCode.Size = new System.Drawing.Size(104, 23);
     this.btnUpdateBarCode.TabIndex = 2;
     this.btnUpdateBarCode.Text = "Cập nhật mã vạch";
     this.btnUpdateBarCode.Visible = false;
     this.btnUpdateBarCode.Click += new System.EventHandler(this.btnUpdateBarCode_Click);
     //
     // btnExcelBarCode
     //
     this.btnExcelBarCode.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnExcelBarCode.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnExcelBarCode.Location = new System.Drawing.Point(244, 8);
     this.btnExcelBarCode.Name = "btnExcelBarCode";
     this.btnExcelBarCode.Size = new System.Drawing.Size(136, 23);
     this.btnExcelBarCode.TabIndex = 3;
     this.btnExcelBarCode.Text = "Xuất Excel hỗ trợ mã vạch";
     this.btnExcelBarCode.Click += new System.EventHandler(this.btnExcelBarCode_Click);
     //
     // btnExcel
     //
     this.btnExcel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnExcel.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnExcel.Location = new System.Drawing.Point(388, 8);
     this.btnExcel.Name = "btnExcel";
     this.btnExcel.Size = new System.Drawing.Size(104, 23);
     this.btnExcel.TabIndex = 3;
     this.btnExcel.Text = "Xuất &Excel";
     this.btnExcel.Click += new System.EventHandler(this.btnExcel_Click);
     //
     // btnPermanentDelete
     //
     this.btnPermanentDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnPermanentDelete.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnPermanentDelete.Location = new System.Drawing.Point(660, 8);
     this.btnPermanentDelete.Name = "btnPermanentDelete";
     this.btnPermanentDelete.Size = new System.Drawing.Size(75, 23);
     this.btnPermanentDelete.TabIndex = 6;
     this.btnPermanentDelete.Text = "&Xóa";
     this.btnPermanentDelete.Click += new System.EventHandler(this.btnPermanentDelete_Click);
     //
     // btnAdd
     //
     this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnAdd.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnAdd.Location = new System.Drawing.Point(500, 8);
     this.btnAdd.Name = "btnAdd";
     this.btnAdd.Size = new System.Drawing.Size(75, 23);
     this.btnAdd.TabIndex = 4;
     this.btnAdd.Text = "Thêm &mới";
     this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
     //
     // btnRestore
     //
     this.btnRestore.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnRestore.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnRestore.Location = new System.Drawing.Point(500, 9);
     this.btnRestore.Name = "btnRestore";
     this.btnRestore.Size = new System.Drawing.Size(75, 23);
     this.btnRestore.TabIndex = 8;
     this.btnRestore.Text = "&Khôi phục";
     this.btnRestore.Click += new System.EventHandler(this.btnRestore_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(660, 8);
     this.btnDelete.Name = "btnDelete";
     this.btnDelete.Size = new System.Drawing.Size(75, 23);
     this.btnDelete.TabIndex = 5;
     this.btnDelete.Text = "&Thôi việc";
     this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
     //
     // imageList1
     //
     this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
     this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
     this.imageList1.Images.SetKeyName(0, "");
     //
     // splitter1
     //
     this.splitter1.Location = new System.Drawing.Point(200, 0);
     this.splitter1.Name = "splitter1";
     this.splitter1.Size = new System.Drawing.Size(8, 550);
     this.splitter1.TabIndex = 0;
     this.splitter1.TabStop = false;
     //
     // frmListEmployees
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize = new System.Drawing.Size(1020, 550);
     this.Controls.Add(this.splitter1);
     this.Controls.Add(this.pnEmployee);
     this.Controls.Add(this.pnDepartment);
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name = "frmListEmployees";
     this.Text = "Danh sách nhân viên";
     this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
     this.Load += new System.EventHandler(this.frmListEmployees_Load);
     this.pnDepartment.ResumeLayout(false);
     this.pnEmployee.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.lvwEmployeeBarcode)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.lvwEmployee)).EndInit();
     this.pnButtons.ResumeLayout(false);
     this.pnButtons.PerformLayout();
     this.ResumeLayout(false);
 }
        /// <summary>
        /// Returns the type of column that is appropriate for the given property of the data source.
        /// Numbers, DateTime, Color and Boolean columns are mapped to NumberColumn, DateTimeColumn, ColorColumn and CheckBoxColumn respectively. The default
        /// is just a TextColumn.
        /// </summary>
        /// <param name="prop"></param>
        /// <param name="index"></param>
        /// <returns></returns>
        public virtual Column GetColumn(PropertyDescriptor prop, int index)
        {
            NumberColumn numCol = null;
            Column       column = null;

            switch (prop.PropertyType.Name)
            {
            case "Int32":
                numCol         = new NumberColumn(prop.Name);
                numCol.Maximum = Int32.MaxValue;
                numCol.Minimum = Int32.MinValue;
                column         = numCol;
                break;

            case "Double":
                numCol         = new NumberColumn(prop.Name);
                numCol.Maximum = Decimal.MaxValue;
                numCol.Minimum = Decimal.MinValue;
                column         = numCol;
                break;

            case "Float":
                numCol         = new NumberColumn(prop.Name);
                numCol.Maximum = Convert.ToDecimal(float.MaxValue);
                numCol.Minimum = Convert.ToDecimal(float.MinValue);
                column         = numCol;
                break;

            case "Int16":
                numCol         = new NumberColumn(prop.Name);
                numCol.Maximum = Int16.MaxValue;
                numCol.Minimum = Int16.MinValue;
                column         = numCol;
                break;

            case "Int64":
                numCol         = new NumberColumn(prop.Name);
                numCol.Maximum = Int64.MaxValue;
                numCol.Minimum = Int64.MinValue;
                column         = numCol;
                break;

            case "Decimal":
                numCol         = new NumberColumn(prop.Name);
                numCol.Maximum = Decimal.MaxValue;
                numCol.Minimum = Decimal.MinValue;
                column         = numCol;
                break;

            case "DateTime":
                column = new DateTimeColumn(prop.Name);
                break;

            case "Color":
                column = new ColorColumn(prop.Name);
                break;

            case "Boolean":
                column = new CheckBoxColumn(prop.Name);
                break;

            default:
                column = new TextColumn(prop.Name);
                break;
            }
            return(column);
        }
示例#5
0
        /// <summary>
        /// Returns the type of column that is appropriate for the given property of the data source.
        /// Numbers, DateTime, Color and Boolean columns are mapped to NumberColumn, DateTimeColumn, ColorColumn and CheckBoxColumn respectively. The default
        /// is just a TextColumn.
        /// </summary>
        /// <param name="prop"></param>
        /// <param name="index"></param>
        /// <returns></returns>
        public virtual Column GetColumn(PropertyDescriptor prop, int index)
        {
            NumberColumn numCol = null;
            Column column = null;
            switch (prop.PropertyType.Name)
            {
                case "Int32":
                    numCol = new NumberColumn(prop.Name);
                    numCol.Maximum = Int32.MaxValue;
                    numCol.Minimum = Int32.MinValue;
                    column = numCol;
                    break;
                case "Double":
                    numCol = new NumberColumn(prop.Name);
                    numCol.Maximum = Decimal.MaxValue;
                    numCol.Minimum = Decimal.MinValue;
                    column = numCol;
                    break;
                case "Float":
                    numCol = new NumberColumn(prop.Name);
                    numCol.Maximum = Convert.ToDecimal(float.MaxValue);
                    numCol.Minimum = Convert.ToDecimal(float.MinValue);
                    column = numCol;
                    break;
                case "Int16":
                    numCol = new NumberColumn(prop.Name);
                    numCol.Maximum = Int16.MaxValue;
                    numCol.Minimum = Int16.MinValue;
                    column = numCol;
                    break;
                case "Int64":
                    numCol = new NumberColumn(prop.Name);
                    numCol.Maximum = Int64.MaxValue;
                    numCol.Minimum = Int64.MinValue;
                    column = numCol;
                    break;
                case "Decimal":
                    numCol = new NumberColumn(prop.Name);
                    numCol.Maximum = Decimal.MaxValue;
                    numCol.Minimum = Decimal.MinValue;
                    column = numCol;
                    break;

                case "DateTime":
                    column = new DateTimeColumn(prop.Name);
                    break;

                case "Color":
                    column = new ColorColumn(prop.Name);
                    break;

                case "Boolean":
                    column = new CheckBoxColumn(prop.Name);
                    break;

                default:
                    column = new TextColumn(prop.Name);
                    break;
            }
            return column;
        }
示例#6
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(frmListShift));
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.lvwShift = new XPTable.Models.Table();
     this.columnModel1 = new XPTable.Models.ColumnModel();
     this.cSTT = new XPTable.Models.TextColumn();
     this.clShiftName = new XPTable.Models.TextColumn();
     this.chkBreakShift = new XPTable.Models.CheckBoxColumn();
     this.clDeltaLateTime = new XPTable.Models.TextColumn();
     this.clCheckIn1 = new XPTable.Models.TextColumn();
     this.clCheckOut1 = new XPTable.Models.TextColumn();
     this.clCheckIn2 = new XPTable.Models.TextColumn();
     this.clCheckOut2 = new XPTable.Models.TextColumn();
     this.clDeltaAllowCheck = new XPTable.Models.TextColumn();
     this.clDescription = new XPTable.Models.TextColumn();
     this.tableModel1 = new XPTable.Models.TableModel();
     this.btnEditShift = new System.Windows.Forms.Button();
     this.btnClose = new System.Windows.Forms.Button();
     this.btnAddShift = new System.Windows.Forms.Button();
     this.btnDelete = new System.Windows.Forms.Button();
     this.columnModel2 = new XPTable.Models.ColumnModel();
     this.textColumn1 = new XPTable.Models.TextColumn();
     this.textColumn2 = new XPTable.Models.TextColumn();
     this.textColumn3 = new XPTable.Models.TextColumn();
     this.textColumn4 = new XPTable.Models.TextColumn();
     this.textColumn5 = new XPTable.Models.TextColumn();
     this.tableModel2 = new XPTable.Models.TableModel();
     this.splitContainer1 = new System.Windows.Forms.SplitContainer();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.lvwShift)).BeginInit();
     this.splitContainer1.Panel1.SuspendLayout();
     this.splitContainer1.Panel2.SuspendLayout();
     this.splitContainer1.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.lvwShift);
     this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.groupBox1.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.groupBox1.Location = new System.Drawing.Point(0, 0);
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.Size = new System.Drawing.Size(784, 497);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop = false;
     this.groupBox1.Text = "Danh sách ca";
     //
     // lvwShift
     //
     this.lvwShift.AlternatingRowColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(237)))), ((int)(((byte)(245)))));
     this.lvwShift.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(242)))), ((int)(((byte)(249)))));
     this.lvwShift.ColumnModel = this.columnModel1;
     this.lvwShift.Dock = System.Windows.Forms.DockStyle.Fill;
     this.lvwShift.EnableToolTips = true;
     this.lvwShift.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     this.lvwShift.FullRowSelect = true;
     this.lvwShift.GridColor = System.Drawing.SystemColors.ControlDark;
     this.lvwShift.GridLines = XPTable.Models.GridLines.Both;
     this.lvwShift.GridLineStyle = XPTable.Models.GridLineStyle.Dot;
     this.lvwShift.HeaderFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.lvwShift.Location = new System.Drawing.Point(3, 16);
     this.lvwShift.Name = "lvwShift";
     this.lvwShift.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(169)))), ((int)(((byte)(183)))), ((int)(((byte)(201)))));
     this.lvwShift.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     this.lvwShift.SelectionStyle = XPTable.Models.SelectionStyle.Grid;
     this.lvwShift.Size = new System.Drawing.Size(778, 478);
     this.lvwShift.SortedColumnBackColor = System.Drawing.Color.Transparent;
     this.lvwShift.TabIndex = 0;
     this.lvwShift.TableModel = this.tableModel1;
     this.lvwShift.UnfocusedSelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(210)))), ((int)(((byte)(221)))));
     this.lvwShift.UnfocusedSelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     this.lvwShift.SelectionChanged += new XPTable.Events.SelectionEventHandler(this.lvwShift_SelectionChanged);
     this.lvwShift.DoubleClick += new System.EventHandler(this.btnEditShift_Click);
     this.lvwShift.MouseDown += new System.Windows.Forms.MouseEventHandler(this.lvwShift_MouseDown);
     //
     // columnModel1
     //
     this.columnModel1.Columns.AddRange(new XPTable.Models.Column[] {
     this.cSTT,
     this.clShiftName,
     this.chkBreakShift,
     this.clDeltaLateTime,
     this.clCheckIn1,
     this.clCheckOut1,
     this.clCheckIn2,
     this.clCheckOut2,
     this.clDeltaAllowCheck,
     this.clDescription});
     //
     // cSTT
     //
     this.cSTT.Editable = false;
     this.cSTT.Text = "STT";
     this.cSTT.Width = 40;
     //
     // clShiftName
     //
     this.clShiftName.Editable = false;
     this.clShiftName.Text = "Tên ca";
     this.clShiftName.Width = 100;
     //
     // chkBreakShift
     //
     this.chkBreakShift.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.chkBreakShift.Editable = false;
     this.chkBreakShift.Text = "Ca gãy";
     this.chkBreakShift.Width = 50;
     //
     // clDeltaLateTime
     //
     this.clDeltaLateTime.Editable = false;
     this.clDeltaLateTime.Text = "Đi muộn";
     this.clDeltaLateTime.Width = 70;
     //
     // clCheckIn1
     //
     this.clCheckIn1.Editable = false;
     this.clCheckIn1.Text = "Giờ vào 1";
     this.clCheckIn1.Width = 70;
     //
     // clCheckOut1
     //
     this.clCheckOut1.Editable = false;
     this.clCheckOut1.Text = "Giờ ra 1";
     this.clCheckOut1.Width = 70;
     //
     // clCheckIn2
     //
     this.clCheckIn2.Editable = false;
     this.clCheckIn2.Text = "Giờ vào 2";
     this.clCheckIn2.Width = 70;
     //
     // clCheckOut2
     //
     this.clCheckOut2.Editable = false;
     this.clCheckOut2.Text = "Giờ ra 2";
     this.clCheckOut2.Width = 70;
     //
     // clDeltaAllowCheck
     //
     this.clDeltaAllowCheck.Editable = false;
     this.clDeltaAllowCheck.Text = "Chấp nhận quẹt thẻ";
     this.clDeltaAllowCheck.Width = 125;
     //
     // clDescription
     //
     this.clDescription.Editable = false;
     this.clDescription.Text = "Mô tả";
     this.clDescription.Width = 150;
     //
     // btnEditShift
     //
     this.btnEditShift.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnEditShift.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnEditShift.Location = new System.Drawing.Point(528, 21);
     this.btnEditShift.Name = "btnEditShift";
     this.btnEditShift.Size = new System.Drawing.Size(75, 23);
     this.btnEditShift.TabIndex = 1;
     this.btnEditShift.Text = "&Sửa";
     this.btnEditShift.Click += new System.EventHandler(this.btnEditShift_Click);
     //
     // btnClose
     //
     this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | 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(694, 20);
     this.btnClose.Name = "btnClose";
     this.btnClose.Size = new System.Drawing.Size(75, 25);
     this.btnClose.TabIndex = 3;
     this.btnClose.Text = "&Đóng";
     this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
     //
     // btnAddShift
     //
     this.btnAddShift.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnAddShift.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnAddShift.Location = new System.Drawing.Point(445, 21);
     this.btnAddShift.Name = "btnAddShift";
     this.btnAddShift.Size = new System.Drawing.Size(75, 23);
     this.btnAddShift.TabIndex = 0;
     this.btnAddShift.Text = "&Thêm";
     this.btnAddShift.Click += new System.EventHandler(this.btnAddShift_Click);
     //
     // btnDelete
     //
     this.btnDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnDelete.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnDelete.Location = new System.Drawing.Point(611, 21);
     this.btnDelete.Name = "btnDelete";
     this.btnDelete.Size = new System.Drawing.Size(75, 23);
     this.btnDelete.TabIndex = 2;
     this.btnDelete.Text = "&Xóa";
     this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
     //
     // columnModel2
     //
     this.columnModel2.Columns.AddRange(new XPTable.Models.Column[] {
     this.textColumn1,
     this.textColumn2,
     this.textColumn3,
     this.textColumn4,
     this.textColumn5});
     //
     // textColumn1
     //
     this.textColumn1.Editable = false;
     this.textColumn1.Text = "STT";
     this.textColumn1.Width = 40;
     //
     // textColumn2
     //
     this.textColumn2.Editable = false;
     this.textColumn2.Text = "Tên ca";
     this.textColumn2.Width = 120;
     //
     // textColumn3
     //
     this.textColumn3.Editable = false;
     this.textColumn3.Text = "Giờ đầu ca";
     this.textColumn3.Width = 80;
     //
     // textColumn4
     //
     this.textColumn4.Editable = false;
     this.textColumn4.Text = "Giờ kết thúc";
     this.textColumn4.Width = 80;
     //
     // textColumn5
     //
     this.textColumn5.Editable = false;
     this.textColumn5.Text = "Miêu tả";
     this.textColumn5.Width = 220;
     //
     // splitContainer1
     //
     this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel2;
     this.splitContainer1.IsSplitterFixed = true;
     this.splitContainer1.Location = new System.Drawing.Point(0, 0);
     this.splitContainer1.Name = "splitContainer1";
     this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
     //
     // splitContainer1.Panel1
     //
     this.splitContainer1.Panel1.Controls.Add(this.groupBox1);
     //
     // splitContainer1.Panel2
     //
     this.splitContainer1.Panel2.Controls.Add(this.btnEditShift);
     this.splitContainer1.Panel2.Controls.Add(this.btnClose);
     this.splitContainer1.Panel2.Controls.Add(this.btnAddShift);
     this.splitContainer1.Panel2.Controls.Add(this.btnDelete);
     this.splitContainer1.Size = new System.Drawing.Size(784, 561);
     this.splitContainer1.SplitterDistance = 497;
     this.splitContainer1.TabIndex = 0;
     //
     // frmListShift
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize = new System.Drawing.Size(784, 561);
     this.Controls.Add(this.splitContainer1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name = "frmListShift";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text = "Danh sách ca";
     this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
     this.Load += new System.EventHandler(this.frmListShift_Load);
     this.groupBox1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.lvwShift)).EndInit();
     this.splitContainer1.Panel1.ResumeLayout(false);
     this.splitContainer1.Panel2.ResumeLayout(false);
     this.splitContainer1.ResumeLayout(false);
     this.ResumeLayout(false);
 }