示例#1
0
        private void DoFiltering()
        {
            Table table = this.table;       // The Table control on a form - already initialised
            table.Clear();
            table.BeginUpdate();
            table.EnableWordWrap = true;    // If false, then Cell.WordWrap is ignored
            table.EnableFilters = true;
            table.HeaderFilterClick += Table_HeaderFilterClick;

            NumberColumn col0 = new NumberColumn("#", 20);
            NumberColumn col1 = new NumberColumn("Height", 50);
            TextColumn col2 = new TextColumn("Name", 80);
            _filter = col2.Filter as TextColumnFilter;
            col2.Filterable = true;

            TextColumn col3 = new TextColumn("Surname", 80);
            col3.Filterable = true;
            DateTimeColumn col4 = new DateTimeColumn("Birthday", 120);
            TextColumn col5 = new TextColumn("Comments", 100);

            table.ColumnModel = new ColumnModel(new Column[] { col0, col1, col2, col3, col4, col5 });

            TableModel model = new TableModel();

            AddRow(model, 1, 1.52, "Mark", "Hobbs", "23/1/1978", "likes apples");
            AddRow(model, 2, 1.76, "Dave", "Duke", "2/5/1977", "keeps fish");
            AddRow(model, 3, 1.64, "Holly", "Prench", "14/8/1979", "singer");
            AddRow(model, 4, 1.53, "Mark", "Hobbs", "23/1/1984", "plays football");
            AddRow(model, 4, 1.53, "Mark", "Prench", "23/1/1984", "shoots arrows");
            AddRow(model, 5, 1.64, "Dave", "Hobbs", "19/1/1980", "vegetarian");

            this.table.TableModel = model;

            this.table.EndUpdate();
        }
示例#2
0
文件: Demo.cs 项目: adarmus/XPTable
        private void DoSorting(bool withMulti)
        {
            Table table = this.table;       // The Table control on a form - already initialised
            table.Clear();
            table.BeginUpdate();
            table.EnableWordWrap = true;    // If false, then Cell.WordWrap is ignored

            NumberColumn col0 = new NumberColumn("#", 20);
            NumberColumn col1 = new NumberColumn("Height", 50);
            TextColumn col2 = new TextColumn("Name", 80);
            TextColumn col3 = new TextColumn("Surname", 80);
            DateTimeColumn col4 = new DateTimeColumn("Birthday", 120);
            TextColumn col5 = new TextColumn("Comments", 100);

            table.ColumnModel = new ColumnModel(new Column[] { col0, col1, col2, col3, col4, col5 });

            if (withMulti)
            {
                // Surname, Name, Height (descending)
                SortColumnCollection sort = new SortColumnCollection();
                sort.Add(new SortColumn(3, SortOrder.Ascending));   // Surname
                sort.Add(new SortColumn(2, SortOrder.Ascending));   // Name
                sort.Add(new SortColumn(1, SortOrder.Descending));  // Height
                table.ColumnModel.SecondarySortOrders = sort;
            }

            TableModel model = new TableModel();

            AddSortingRow(model, 1, 1.52, "Mark", "Hobbs", "23/1/1978", "likes apples");
            AddSortingRow(model, 2, 1.76, "Dave", "Duke", "2/5/1977", "keeps fish");
            AddSortingRow(model, 3, 1.64, "Holly", "Prench", "14/8/1979", "singer");
            AddSortingRow(model, 4, 1.53, "Mark", "Hobbs", "23/1/1984", "plays football");
            AddSortingRow(model, 5, 1.64, "Dave", "Hobbs", "19/1/1980", "vegetarian");

            this.table.TableModel = model;

            this.table.EndUpdate();
        }
示例#3
0
        private void ChooseKeszletek_Load(object sender, EventArgs e)
        {
            //1. oszlop

            ImageColumn imageColumn = new ImageColumn("", 1);
            imageColumn.Editable = false;

            TextColumn textColumn = new TextColumn("Raktár", 110);
            textColumn.Editable = false;

            NumberColumn ertekColumn = new NumberColumn("Mennyiség", 50);
            ertekColumn.Editable = false;

            _ColumnModel = new ColumnModel(new Column[] {imageColumn, textColumn,
                                                                      ertekColumn});
            tblKeszletek.ColumnModel = _ColumnModel;
            tblKeszletek.TableModel = getTableModel();

            tblKeszletek.Font = DEFS.f2;
            tblKeszletek.TableModel.RowHeight = 40;

            txtAthozMenny.Text = needMenny.ToString();
        }
示例#4
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);
 }
示例#5
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(frmLunch));
     this.btnClose = new System.Windows.Forms.Button();
     this.departmentTreeView = new EVSoft.HRMS.Controls.DepartmentTreeView();
     this.columnModel1 = new XPTable.Models.ColumnModel();
     this.chSTT = new XPTable.Models.NumberColumn();
     this.chDepartmentName = new XPTable.Models.TextColumn();
     this.chCardID = new XPTable.Models.TextColumn();
     this.chEmployeeName = new XPTable.Models.TextColumn();
     this.chLunchMoney = new XPTable.Models.TextColumn();
     this.tableModel1 = new XPTable.Models.TableModel();
     this.btnSet = new System.Windows.Forms.Button();
     this.dtpWorkingDay = new System.Windows.Forms.DateTimePicker();
     this.cboLunchMoney = new System.Windows.Forms.LookupComboBox();
     this.btnSlectAll = new System.Windows.Forms.Button();
     this.btnClearAll = new System.Windows.Forms.Button();
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.lblLunchMoney = new System.Windows.Forms.Label();
     this.lblHaveLunch = new System.Windows.Forms.Label();
     this.lblTotalEmployee = new System.Windows.Forms.Label();
     this.lvwLunch = new XPTable.Models.Table();
     this.contextMenu1 = new System.Windows.Forms.ContextMenu();
     this.mnuSet = new System.Windows.Forms.MenuItem();
     this.menuXoa = new System.Windows.Forms.MenuItem();
     this.groupBox2 = new System.Windows.Forms.GroupBox();
     this.groupBox3 = new System.Windows.Forms.GroupBox();
     this.groupBox4 = new System.Windows.Forms.GroupBox();
     this.btn_LoadPrevious = new System.Windows.Forms.Button();
     this.btnSearch = new System.Windows.Forms.Button();
     this.txtSearch = new System.Windows.Forms.TextBox();
     this.btImportEmployeeToLunch = new System.Windows.Forms.Button();
     this.button1 = new System.Windows.Forms.Button();
     this.bntXoa = new System.Windows.Forms.Button();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.lvwLunch)).BeginInit();
     this.groupBox2.SuspendLayout();
     this.groupBox3.SuspendLayout();
     this.groupBox4.SuspendLayout();
     this.SuspendLayout();
     //
     // btnClose
     //
     this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnClose.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnClose.Location = new System.Drawing.Point(716, 480);
     this.btnClose.Name = "btnClose";
     this.btnClose.Size = new System.Drawing.Size(75, 23);
     this.btnClose.TabIndex = 5;
     this.btnClose.Text = "&Đóng";
     this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
     //
     // 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(8, 16);
     this.departmentTreeView.Name = "departmentTreeView";
     this.departmentTreeView.SelectedImageIndex = 0;
     this.departmentTreeView.Size = new System.Drawing.Size(200, 384);
     this.departmentTreeView.TabIndex = 3;
     this.departmentTreeView.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.departmentTreeView_AfterSelect);
     //
     // columnModel1
     //
     this.columnModel1.Columns.AddRange(new XPTable.Models.Column[] {
     this.chSTT,
     this.chDepartmentName,
     this.chCardID,
     this.chEmployeeName,
     this.chLunchMoney});
     //
     // chSTT
     //
     this.chSTT.Editable = false;
     this.chSTT.Text = "STT";
     this.chSTT.Width = 40;
     //
     // chDepartmentName
     //
     this.chDepartmentName.Editable = false;
     this.chDepartmentName.Text = "Bộ phận";
     this.chDepartmentName.Width = 100;
     //
     // chCardID
     //
     this.chCardID.Editable = false;
     this.chCardID.Text = "Mã thẻ";
     this.chCardID.Width = 60;
     //
     // chEmployeeName
     //
     this.chEmployeeName.Editable = false;
     this.chEmployeeName.Text = "Tên nhân viên";
     this.chEmployeeName.Width = 130;
     //
     // chLunchMoney
     //
     this.chLunchMoney.Editable = false;
     this.chLunchMoney.Text = "Mức ăn trưa";
     this.chLunchMoney.Width = 110;
     //
     // btnSet
     //
     this.btnSet.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnSet.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnSet.Location = new System.Drawing.Point(473, 480);
     this.btnSet.Name = "btnSet";
     this.btnSet.Size = new System.Drawing.Size(75, 23);
     this.btnSet.TabIndex = 2;
     this.btnSet.Text = "&Thiết lập";
     this.btnSet.Click += new System.EventHandler(this.btnSetLunch_Click);
     //
     // dtpWorkingDay
     //
     this.dtpWorkingDay.CustomFormat = "dd/MM/yyyy    ";
     this.dtpWorkingDay.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
     this.dtpWorkingDay.Location = new System.Drawing.Point(8, 16);
     this.dtpWorkingDay.Name = "dtpWorkingDay";
     this.dtpWorkingDay.Size = new System.Drawing.Size(200, 20);
     this.dtpWorkingDay.TabIndex = 74;
     this.dtpWorkingDay.ValueChanged += new System.EventHandler(this.dtpWorkingDay_ValueChanged);
     //
     // cboLunchMoney
     //
     this.cboLunchMoney.AllowTypeAllSymbols = true;
     this.cboLunchMoney.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.cboLunchMoney.Items.AddRange(new object[] {
     "Chưa thiết lập",
     "15000",
     "16000",
     "25000"});
     this.cboLunchMoney.Location = new System.Drawing.Point(8, 16);
     this.cboLunchMoney.Name = "cboLunchMoney";
     this.cboLunchMoney.Size = new System.Drawing.Size(548, 21);
     this.cboLunchMoney.TabIndex = 76;
     //
     // btnSlectAll
     //
     this.btnSlectAll.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.btnSlectAll.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnSlectAll.Location = new System.Drawing.Point(8, 376);
     this.btnSlectAll.Name = "btnSlectAll";
     this.btnSlectAll.Size = new System.Drawing.Size(75, 23);
     this.btnSlectAll.TabIndex = 5;
     this.btnSlectAll.Text = "Chọn tất";
     this.btnSlectAll.Click += new System.EventHandler(this.btnSelectAll_Click);
     //
     // btnClearAll
     //
     this.btnClearAll.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.btnClearAll.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnClearAll.Location = new System.Drawing.Point(88, 377);
     this.btnClearAll.Name = "btnClearAll";
     this.btnClearAll.Size = new System.Drawing.Size(75, 23);
     this.btnClearAll.TabIndex = 6;
     this.btnClearAll.Text = "Bỏ chọn";
     this.btnClearAll.Click += new System.EventHandler(this.btnClearAll_Click);
     //
     // 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.lblLunchMoney);
     this.groupBox1.Controls.Add(this.lblHaveLunch);
     this.groupBox1.Controls.Add(this.lblTotalEmployee);
     this.groupBox1.Controls.Add(this.btnSlectAll);
     this.groupBox1.Controls.Add(this.btnClearAll);
     this.groupBox1.Controls.Add(this.lvwLunch);
     this.groupBox1.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.groupBox1.Location = new System.Drawing.Point(232, 64);
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.Size = new System.Drawing.Size(564, 408);
     this.groupBox1.TabIndex = 79;
     this.groupBox1.TabStop = false;
     this.groupBox1.Text = "Danh sách đăng ký ăn trưa";
     //
     // lblLunchMoney
     //
     this.lblLunchMoney.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.lblLunchMoney.Location = new System.Drawing.Point(448, 376);
     this.lblLunchMoney.Name = "lblLunchMoney";
     this.lblLunchMoney.Size = new System.Drawing.Size(104, 23);
     this.lblLunchMoney.TabIndex = 81;
     this.lblLunchMoney.Text = "Số tiền: 0";
     this.lblLunchMoney.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // lblHaveLunch
     //
     this.lblHaveLunch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.lblHaveLunch.Location = new System.Drawing.Point(344, 376);
     this.lblHaveLunch.Name = "lblHaveLunch";
     this.lblHaveLunch.Size = new System.Drawing.Size(104, 23);
     this.lblHaveLunch.TabIndex = 80;
     this.lblHaveLunch.Text = "Số ăn trưa: 0";
     this.lblHaveLunch.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // 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(208, 376);
     this.lblTotalEmployee.Name = "lblTotalEmployee";
     this.lblTotalEmployee.Size = new System.Drawing.Size(128, 23);
     this.lblTotalEmployee.TabIndex = 79;
     this.lblTotalEmployee.Text = "Số nhân viên: 0";
     this.lblTotalEmployee.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // lvwLunch
     //
     this.lvwLunch.AlternatingRowColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(237)))), ((int)(((byte)(245)))));
     this.lvwLunch.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.lvwLunch.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(242)))), ((int)(((byte)(249)))));
     this.lvwLunch.ColumnModel = this.columnModel1;
     this.lvwLunch.ContextMenu = this.contextMenu1;
     this.lvwLunch.EnableToolTips = true;
     this.lvwLunch.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     this.lvwLunch.FullRowSelect = true;
     this.lvwLunch.GridColor = System.Drawing.SystemColors.ControlDark;
     this.lvwLunch.GridLines = XPTable.Models.GridLines.Both;
     this.lvwLunch.GridLineStyle = XPTable.Models.GridLineStyle.Dot;
     this.lvwLunch.HeaderFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.lvwLunch.Location = new System.Drawing.Point(8, 16);
     this.lvwLunch.MultiSelect = true;
     this.lvwLunch.Name = "lvwLunch";
     this.lvwLunch.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(169)))), ((int)(((byte)(183)))), ((int)(((byte)(201)))));
     this.lvwLunch.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     this.lvwLunch.SelectionStyle = XPTable.Models.SelectionStyle.Grid;
     this.lvwLunch.Size = new System.Drawing.Size(544, 352);
     this.lvwLunch.SortedColumnBackColor = System.Drawing.Color.Transparent;
     this.lvwLunch.TabIndex = 11;
     this.lvwLunch.TableModel = this.tableModel1;
     this.lvwLunch.UnfocusedSelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(210)))), ((int)(((byte)(221)))));
     this.lvwLunch.UnfocusedSelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     //
     // contextMenu1
     //
     this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
     this.mnuSet,
     this.menuXoa});
     //
     // mnuSet
     //
     this.mnuSet.Index = 0;
     this.mnuSet.Text = "&Thiết lập...";
     this.mnuSet.Click += new System.EventHandler(this.btnSetLunch_Click);
     //
     // menuXoa
     //
     this.menuXoa.Index = 1;
     this.menuXoa.Text = "&Xóa thiết lập";
     this.menuXoa.Click += new System.EventHandler(this.bntXoa_Click);
     //
     // groupBox2
     //
     this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                 | System.Windows.Forms.AnchorStyles.Left)));
     this.groupBox2.Controls.Add(this.departmentTreeView);
     this.groupBox2.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.groupBox2.Location = new System.Drawing.Point(8, 64);
     this.groupBox2.Name = "groupBox2";
     this.groupBox2.Size = new System.Drawing.Size(216, 408);
     this.groupBox2.TabIndex = 80;
     this.groupBox2.TabStop = false;
     this.groupBox2.Text = "Danh sách phòng ban";
     //
     // groupBox3
     //
     this.groupBox3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox3.Controls.Add(this.cboLunchMoney);
     this.groupBox3.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.groupBox3.Location = new System.Drawing.Point(232, 8);
     this.groupBox3.Name = "groupBox3";
     this.groupBox3.Size = new System.Drawing.Size(564, 48);
     this.groupBox3.TabIndex = 81;
     this.groupBox3.TabStop = false;
     this.groupBox3.Text = "Mức ăn trưa";
     //
     // groupBox4
     //
     this.groupBox4.Controls.Add(this.dtpWorkingDay);
     this.groupBox4.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.groupBox4.Location = new System.Drawing.Point(8, 8);
     this.groupBox4.Name = "groupBox4";
     this.groupBox4.Size = new System.Drawing.Size(216, 48);
     this.groupBox4.TabIndex = 82;
     this.groupBox4.TabStop = false;
     this.groupBox4.Text = "Ngày";
     //
     // btn_LoadPrevious
     //
     this.btn_LoadPrevious.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btn_LoadPrevious.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btn_LoadPrevious.Location = new System.Drawing.Point(635, 480);
     this.btn_LoadPrevious.Name = "btn_LoadPrevious";
     this.btn_LoadPrevious.Size = new System.Drawing.Size(75, 23);
     this.btn_LoadPrevious.TabIndex = 4;
     this.btn_LoadPrevious.Text = "&Sao chép ...";
     this.btn_LoadPrevious.Click += new System.EventHandler(this.CopyFromPreviousLunch_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(142, 481);
     this.btnSearch.Name = "btnSearch";
     this.btnSearch.Size = new System.Drawing.Size(74, 23);
     this.btnSearch.TabIndex = 0;
     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, 481);
     this.txtSearch.Name = "txtSearch";
     this.txtSearch.Size = new System.Drawing.Size(128, 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);
     //
     // btImportEmployeeToLunch
     //
     this.btImportEmployeeToLunch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btImportEmployeeToLunch.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btImportEmployeeToLunch.Location = new System.Drawing.Point(554, 480);
     this.btImportEmployeeToLunch.Name = "btImportEmployeeToLunch";
     this.btImportEmployeeToLunch.Size = new System.Drawing.Size(75, 23);
     this.btImportEmployeeToLunch.TabIndex = 3;
     this.btImportEmployeeToLunch.Text = "&Import...";
     this.btImportEmployeeToLunch.Click += new System.EventHandler(this.btImportEmployeeToLunch_Click);
     //
     // button1
     //
     this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.button1.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.button1.Location = new System.Drawing.Point(280, 480);
     this.button1.Name = "button1";
     this.button1.Size = new System.Drawing.Size(106, 23);
     this.button1.TabIndex = 0;
     this.button1.Text = "&Tự Động Thiết Lập...";
     this.button1.Click += new System.EventHandler(this.button1_Click);
     //
     // bntXoa
     //
     this.bntXoa.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.bntXoa.Enabled = false;
     this.bntXoa.Location = new System.Drawing.Point(392, 480);
     this.bntXoa.Name = "bntXoa";
     this.bntXoa.Size = new System.Drawing.Size(75, 23);
     this.bntXoa.TabIndex = 1;
     this.bntXoa.Text = "Xóa thiết lập";
     this.bntXoa.UseVisualStyleBackColor = true;
     this.bntXoa.Click += new System.EventHandler(this.bntXoa_Click);
     //
     // frmLunch
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize = new System.Drawing.Size(804, 510);
     this.Controls.Add(this.bntXoa);
     this.Controls.Add(this.button1);
     this.Controls.Add(this.btnSearch);
     this.Controls.Add(this.txtSearch);
     this.Controls.Add(this.btn_LoadPrevious);
     this.Controls.Add(this.groupBox4);
     this.Controls.Add(this.btnSet);
     this.Controls.Add(this.groupBox3);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.btnClose);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.btImportEmployeeToLunch);
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name = "frmLunch";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "Thiết lập ăn trưa";
     this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
     this.Load += new System.EventHandler(this.frmLunch_Load);
     this.groupBox1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.lvwLunch)).EndInit();
     this.groupBox2.ResumeLayout(false);
     this.groupBox3.ResumeLayout(false);
     this.groupBox4.ResumeLayout(false);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
示例#6
0
        private void setColumnModelSum()
        {
            //1. oszlop
            ImageColumn imageColumn = new ImageColumn("", 30);
            imageColumn.Editable = false;

            NumberColumn numberColumn = new NumberColumn("db", 28);
            numberColumn.Editable = false;

            TextColumn textColumn = new TextColumn("név", 110);
            textColumn.Editable = false;

            NumberColumn ertekColumn = new NumberColumn("érték", 50);
            ertekColumn.Editable = false;

            DateTimeColumn datetimeColumn = new DateTimeColumn("idő", 70);
            datetimeColumn.DateTimeFormat = DateTimePickerFormat.Time;
            datetimeColumn.Editable = false;
            datetimeColumn.ShowDropDownButton = false;

            _ColumnModelSum = new ColumnModel(new Column[] {
                                                                      numberColumn,
                                                                      textColumn,
                                                                      ertekColumn
            });
        }
示例#7
0
        /// <summary>
        /// Hiển thị danh sách nhân viên trong công ty/phòng ban
        /// </summary>
        private void PopulateEmployeeListView()
        {
            lvwEmployee.BeginUpdate();
            lvwEmployee.TableModel.Rows.Clear();

            lvwEmployeeBarcode.BeginUpdate();
            lvwEmployeeBarcode.TableModel.Rows.Clear();

            int STT = 0;
            string strBarCode;
            foreach (DataRow dr in dsEmployee.Tables[0].Rows)
            {

                Cell DepartmentName = new Cell();
                DepartmentName = new Cell(dr["DepartmentName"].ToString());
                Cell DepartmentNameBC = new Cell(Utils.RemoveSign4VietnameseString(dr["DepartmentName"].ToString()));
                Cell CardID = new Cell(dr["CardID"].ToString());
                Cell BarCode = new Cell("");
                Cell BarCodeNew = new Cell("");
                if (dr["BarCode"] != DBNull.Value)
                {
                    BarCode = new Cell(dr["BarCode"].ToString());
                    //Ma BarCode bo so check code
                    strBarCode = dr["BarCode"].ToString();
                    if (strBarCode.Length > 0)
                        BarCodeNew = new Cell(strBarCode.Substring(0, strBarCode.Length - 1));
                }
                Cell EmployeeID = new Cell(dr["EmployeeID"].ToString());
                Cell EmployeeName = new Cell(dr["EmployeeName"].ToString());
                Cell EmployeeNameBC = new Cell(Utils.RemoveSign4VietnameseString(dr["EmployeeName"].ToString()));

                Cell Gender = new Cell(Int32.Parse(dr["Gender"].ToString()) == 0 ? "Nam" : "Nữ");
                Cell DateOfBirth = new Cell(DateTime.Parse(dr["DateOfBirth"].ToString()).ToString("dd/MM/yyyy"));
                Cell IdentityCard = new Cell(dr["IdentityCard"].ToString());
                Cell Issue = new Cell(DateTime.Parse(dr["Issue"].ToString()).ToString("dd/MM/yyyy"));//Ngày cấp CMND
                Cell AllocationPlace = new Cell(dr["AllocationPlace"].ToString());//Nơi cấp CMND
                Cell InsuranceID = new Cell(dr["InsuranceID"].ToString());
                Cell Address = new Cell(dr["Address"].ToString());//Địa chỉ thường trú
                Cell TemporaryAddress = new Cell(dr["TemporaryAddress"].ToString());//Địa chỉ tạm trú
                Cell Phone = new Cell(dr["Phone"].ToString());
                string professionalLevel = ConvertProfessionalLevel2String(int.Parse(dr["ProfessionalLevel"].ToString()));
                Cell ProfessionalLevel = new Cell(professionalLevel);
                Cell Commune = new Cell(dr["Commune"].ToString());
                Cell District = new Cell(dr["District"].ToString());
                Cell Province = new Cell(dr["Province"].ToString());
                Cell Position = new Cell(dr["PositionName"].ToString());
                Cell TaxID = new Cell(dr["TaxID"].ToString());
                Cell FamilyConditionNumber = new Cell("");
                if (dr["FamilyConditionNumber"] != DBNull.Value)
                {
                    FamilyConditionNumber = new Cell(Int32.Parse(dr["FamilyConditionNumber"].ToString()));
                }

                Cell StartTrial = new Cell("");
                if (dr["StartTrial"] != DBNull.Value)
                {
                    StartTrial = new Cell(DateTime.Parse(dr["StartTrial"].ToString()).ToString("dd/MM/yyyy"));
                }
                int Start_month = 0;
                int Stop_month = 0;
                int Start_year = 0;
                int Stop_year = 0;
                int totalMonth = 0;
                int totalYear = 0;
                Cell StartDate = new Cell("");

                if (dr["StartDate"] != DBNull.Value)
                {
                    StartDate = new Cell(DateTime.Parse(dr["StartDate"].ToString()).ToString("dd/MM/yyyy"));
                    Start_month = DateTime.Parse(dr["StartDate"].ToString()).Month;
                    Start_year = DateTime.Parse(dr["StartDate"].ToString()).Year;
                }
                Cell BasicSalary = new Cell("");
                if (dr["BasicSalary"] != DBNull.Value)
                {
                    BasicSalary = new Cell(double.Parse(dr["BasicSalary"].ToString()));
                }

                Cell LunchAllowance = new Cell("");
                if (dr["LunchAllowance"] != DBNull.Value)
                {
                    LunchAllowance = new Cell(double.Parse(dr["LunchAllowance"].ToString()));
                }

                Cell DangerousAllowance = new Cell("");
                if (dr["DangerousAllowance"] != DBNull.Value)
                {
                    DangerousAllowance = new Cell(double.Parse(dr["DangerousAllowance"].ToString()));
                }

                Cell ResponsibleAllowance = new Cell("");
                if (dr["ResponsibleAllowance"] != DBNull.Value)
                {
                    ResponsibleAllowance = new Cell(double.Parse(dr["ResponsibleAllowance"].ToString()));
                }

                Cell HarmfulAllowance = new Cell("");
                if (dr["HarmfulAllowance"] != DBNull.Value)
                {
                    HarmfulAllowance = new Cell(double.Parse(dr["HarmfulAllowance"].ToString()));
                }

                Cell IntimateAllowance = new Cell("");
                if (dr["IntimateAllowance"] != DBNull.Value)
                {
                    IntimateAllowance = new Cell(double.Parse(dr["IntimateAllowance"].ToString()));
                }

                Cell IntimateAllowanceFixed = new Cell("");
                if (dr["IntimateAllowanceFixed"] != DBNull.Value)
                {
                    IntimateAllowanceFixed = new Cell("", Convert.ToBoolean(dr["IntimateAllowanceFixed"]));
                }

                Cell StopDate = new Cell("");

                if (dr["StopDate"] != DBNull.Value)
                {
                    StopDate = new Cell(DateTime.Parse(dr["StopDate"].ToString()).ToString("dd/MM/yyyy"));
                    Stop_month = DateTime.Parse(dr["StopDate"].ToString()).Month;
                    Stop_year = DateTime.Parse(dr["StopDate"].ToString()).Year;
                }
                if ((Start_year != 0) && (Start_month != 0))
                {
                    if (delete == 1)
                    {
                        totalMonth = Stop_month - Start_month;
                        totalYear = Stop_year - Start_year;
                        if (totalMonth < 0)
                        {
                            totalMonth = totalMonth + 12;
                            totalYear = totalYear - 1;
                        }
                    }
                    else
                    {
                        totalMonth = DateTime.Now.Month - Start_month;
                        totalYear = DateTime.Now.Year - Start_year;
                        if (totalMonth < 0)
                        {
                            if (totalYear == 0)//Nhân viên thử việc
                            {
                                totalMonth = 0;
                                totalYear = 0;
                            }
                            else if (totalYear >= 1)
                            {
                                totalMonth = totalMonth + 12;
                                totalYear = totalYear - 1;
                            }

                        }
                    }
                }
                else
                {
                    totalMonth = 0;
                    totalYear = 0;
                }
                Cell Total_Month = new Cell(totalMonth.ToString());
                Cell Total_Year = new Cell(totalYear.ToString());

                string kinhnghiem = "";
                if ((totalYear == 0) && (totalMonth == 0)) ;
                else if ((totalYear == 0) && (totalMonth < 6))
                    kinhnghiem = "I";
                else if (((totalYear == 0) && (totalMonth >= 6)) || ((totalYear == 1) && (totalMonth == 0)))
                    kinhnghiem = "II";
                else kinhnghiem = "III";
                Cell Kinhnghiem = new Cell(kinhnghiem.ToString());

                Cell ImageFilePath = new Cell("");
                if (dr["Picture"] != DBNull.Value)
                {
                    string PictureFileName = dr["Picture"].ToString();
                    if (PictureFileName.Equals(""))
                    {
                        ImageFilePath = new Cell(Application.StartupPath + @"\IMAGES\noimage3.jpg");
                    }
                    else
                    {
                        string PictureFilePath = WorkingContext.Setting.PicturePath + '\\' + dr["Picture"].ToString();
                        try
                        {
                            ImageFilePath = new Cell(PictureFilePath);
                        }
                        catch
                        {
                            ImageFilePath = new Cell(Application.StartupPath + @"\IMAGES\noimage3.jpg");
                        }
                    }
                }
                else
                {
                    ImageFilePath = new Cell(Application.StartupPath + "/IMAGES/noimage3.jpg");
                }

                Row row = new Row(new Cell[] { new Cell(STT + 1), DepartmentName, CardID, BarCode, EmployeeName, Gender, DateOfBirth, IdentityCard, Issue, AllocationPlace, InsuranceID, Phone, ProfessionalLevel, Address, TemporaryAddress, Commune, District, Province, Position, StartTrial, StartDate, StopDate, BasicSalary, LunchAllowance, DangerousAllowance, ResponsibleAllowance, HarmfulAllowance, IntimateAllowance, IntimateAllowanceFixed, Total_Year, Total_Month, Kinhnghiem });
                row.Tag = STT;
                lvwEmployee.TableModel.Rows.Add(row);

                STT++;
            }
            lvwEmployee.EndUpdate();
            lvwEmployeeBarcode.EndUpdate();

            string str = WorkingContext.LangManager.GetString("frmliste_text1");
            lblEmployee.Text = "Tổng số nhân viên trong danh sách: " + dsEmployee.Tables[0].Rows.Count;
            lblEmployee.Text = str + dsEmployee.Tables[0].Rows.Count;
            t = dsEmployee.Tables[0].Rows.Count;
            if (checkEmployeeDeleted == false)
            {
                btnRestore.Visible = false;
                btnAdd.Visible = true;
                btnDelete.Visible = true;
                btnPermanentDelete.Visible = false;
            }
            else
            {
                btnRestore.Visible = true;
                btnAdd.Visible = false;
                btnDelete.Visible = false;
                btnPermanentDelete.Visible = true;
            }
        }
        /// <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);
        }
示例#9
0
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     this.btnClose = new System.Windows.Forms.Button();
     this.btnUpdate = new System.Windows.Forms.Button();
     this.btnHelp = new System.Windows.Forms.Button();
     this.monthCalendar1 = new Pabo.Calendar.MonthCalendar();
     this.groupBox4 = new System.Windows.Forms.GroupBox();
     this.groupBox5 = new System.Windows.Forms.GroupBox();
     this.departmentTreeView = new EVSoft.HRMS.Controls.DepartmentTreeView();
     this.btnCancel = new System.Windows.Forms.Button();
     this.cboShift = new System.Windows.Forms.LookupComboBox();
     this.groupBox2 = new System.Windows.Forms.GroupBox();
     this.rbtOverTime = new System.Windows.Forms.RadioButton();
     this.rbtHoliday = new System.Windows.Forms.RadioButton();
     this.lblShift = new System.Windows.Forms.Label();
     this.rbtWorkingDay = new System.Windows.Forms.RadioButton();
     this.rbtNonWorkingDay = new System.Windows.Forms.RadioButton();
     this.lblWorkingDay = new System.Windows.Forms.Label();
     this.lblNonWorkingDay = new System.Windows.Forms.Label();
     this.lblNonWorkingDayLegend = new System.Windows.Forms.Label();
     this.lblWorkingDayLegend = new System.Windows.Forms.Label();
     this.groupBox3 = new System.Windows.Forms.GroupBox();
     this.lblOverTime = new System.Windows.Forms.Label();
     this.lblOverTimeLegend = new System.Windows.Forms.Label();
     this.label2 = new System.Windows.Forms.Label();
     this.lblHolidayLegend = new System.Windows.Forms.Label();
     this.lvwListEmployee = new XPTable.Models.Table();
     this.columnModel1 = new XPTable.Models.ColumnModel();
     this.cSTT = new XPTable.Models.NumberColumn();
     this.cCardID = new XPTable.Models.TextColumn();
     this.cEmployeeName = new XPTable.Models.TextColumn();
     this.tableModel1 = new XPTable.Models.TableModel();
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.btnSelectAll = new System.Windows.Forms.Button();
     this.btnSelectNone = new System.Windows.Forms.Button();
     this.groupBox4.SuspendLayout();
     this.groupBox5.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.groupBox3.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.lvwListEmployee)).BeginInit();
     this.groupBox1.SuspendLayout();
     this.SuspendLayout();
     //
     // btnClose
     //
     this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnClose.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnClose.Location = new System.Drawing.Point(792, 568);
     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);
     //
     // 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(632, 568);
     this.btnUpdate.Name = "btnUpdate";
     this.btnUpdate.Size = new System.Drawing.Size(75, 23);
     this.btnUpdate.TabIndex = 6;
     this.btnUpdate.Text = "Cập nhật";
     this.btnUpdate.Click += new System.EventHandler(this.btnUpdate_Click);
     //
     // btnHelp
     //
     this.btnHelp.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.btnHelp.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnHelp.Location = new System.Drawing.Point(8, 568);
     this.btnHelp.Name = "btnHelp";
     this.btnHelp.Size = new System.Drawing.Size(75, 23);
     this.btnHelp.TabIndex = 8;
     this.btnHelp.Text = "Trợ giúp";
     this.btnHelp.Click += new System.EventHandler(this.btnHelp_Click);
     //
     // monthCalendar1
     //
     this.monthCalendar1.ActiveMonth.Month = 6;
     this.monthCalendar1.ActiveMonth.RaiseEvent = true;
     this.monthCalendar1.ActiveMonth.Year = 2006;
     this.monthCalendar1.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.monthCalendar1.BorderColor = System.Drawing.SystemColors.ActiveBorder;
     this.monthCalendar1.Culture = new System.Globalization.CultureInfo("");
     this.monthCalendar1.Footer.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold);
     this.monthCalendar1.Header.BackColor = System.Drawing.SystemColors.ActiveCaption;
     this.monthCalendar1.Header.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold);
     this.monthCalendar1.Header.TextColor = System.Drawing.Color.White;
     this.monthCalendar1.ImageList = null;
     this.monthCalendar1.Location = new System.Drawing.Point(8, 16);
     this.monthCalendar1.MaxDate = new System.DateTime(2020, 11, 9, 0, 0, 0, 0);
     this.monthCalendar1.MinDate = new System.DateTime(1995, 11, 9, 19, 19, 39, 781);
     this.monthCalendar1.Month.Colors.Background = System.Drawing.Color.GhostWhite;
     this.monthCalendar1.Month.Colors.FocusBackground = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(122)))), ((int)(((byte)(255)))));
     this.monthCalendar1.Month.Colors.FocusBorder = System.Drawing.SystemColors.ActiveCaption;
     this.monthCalendar1.Month.Colors.FocusDate = System.Drawing.Color.Black;
     this.monthCalendar1.Month.Colors.FocusText = System.Drawing.Color.Black;
     this.monthCalendar1.Month.Colors.SelectedBackground = System.Drawing.SystemColors.ActiveCaption;
     this.monthCalendar1.Month.Colors.SelectedBorder = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(69)))), ((int)(((byte)(185)))));
     this.monthCalendar1.Month.Colors.SelectedDate = System.Drawing.Color.Black;
     this.monthCalendar1.Month.Colors.SelectedText = System.Drawing.Color.Black;
     this.monthCalendar1.Month.Colors.WeekendBackground = System.Drawing.Color.MistyRose;
     this.monthCalendar1.Month.Colors.WeekendDate = System.Drawing.Color.DarkRed;
     this.monthCalendar1.Month.DateFont = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
     this.monthCalendar1.Month.TextFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
     this.monthCalendar1.Name = "monthCalendar1";
     this.monthCalendar1.SelectionMode = Pabo.Calendar.mcSelectionMode.MultiExtended;
     this.monthCalendar1.SelectTrailingDates = false;
     this.monthCalendar1.ShowTrailingDates = false;
     this.monthCalendar1.Size = new System.Drawing.Size(552, 456);
     this.monthCalendar1.TabIndex = 67;
     this.monthCalendar1.WeekDays.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
     this.monthCalendar1.WeekDays.TextColor = System.Drawing.SystemColors.ActiveCaption;
     this.monthCalendar1.WeekNumbers.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
     this.monthCalendar1.WeekNumbers.TextColor = System.Drawing.SystemColors.ActiveCaption;
     this.monthCalendar1.DaySelected += new Pabo.Calendar.DaySelectedEventHandler(this.monthCalendar1_DaySelected);
     this.monthCalendar1.MonthChanged += new Pabo.Calendar.MonthChangedEventHandler(this.monthCalendar1_MonthChanged);
     //
     // groupBox4
     //
     this.groupBox4.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.groupBox4.Controls.Add(this.monthCalendar1);
     this.groupBox4.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.groupBox4.Location = new System.Drawing.Point(296, 80);
     this.groupBox4.Name = "groupBox4";
     this.groupBox4.Size = new System.Drawing.Size(568, 480);
     this.groupBox4.TabIndex = 75;
     this.groupBox4.TabStop = false;
     this.groupBox4.Text = "Lịch làm việc";
     //
     // groupBox5
     //
     this.groupBox5.Controls.Add(this.departmentTreeView);
     this.groupBox5.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.groupBox5.Location = new System.Drawing.Point(8, 8);
     this.groupBox5.Name = "groupBox5";
     this.groupBox5.Size = new System.Drawing.Size(280, 240);
     this.groupBox5.TabIndex = 76;
     this.groupBox5.TabStop = false;
     this.groupBox5.Text = "Danh sách phòng ban";
     //
     // 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(8, 16);
     this.departmentTreeView.Name = "departmentTreeView";
     this.departmentTreeView.SelectedImageIndex = 0;
     this.departmentTreeView.Size = new System.Drawing.Size(264, 216);
     this.departmentTreeView.TabIndex = 4;
     this.departmentTreeView.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.departmentTreeView_AfterSelect);
     //
     // btnCancel
     //
     this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnCancel.Location = new System.Drawing.Point(712, 568);
     this.btnCancel.Name = "btnCancel";
     this.btnCancel.Size = new System.Drawing.Size(75, 23);
     this.btnCancel.TabIndex = 77;
     this.btnCancel.Text = "Bỏ qua";
     this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
     //
     // cboShift
     //
     this.cboShift.AllowTypeAllSymbols = false;
     this.cboShift.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.cboShift.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cboShift.DropDownWidth = 200;
     this.cboShift.ItemHeight = 13;
     this.cboShift.Location = new System.Drawing.Point(184, 16);
     this.cboShift.Name = "cboShift";
     this.cboShift.Size = new System.Drawing.Size(152, 21);
     this.cboShift.TabIndex = 0;
     this.cboShift.SelectedIndexChanged += new System.EventHandler(this.cboShift_SelectedIndexChanged);
     //
     // groupBox2
     //
     this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox2.Controls.Add(this.rbtOverTime);
     this.groupBox2.Controls.Add(this.rbtHoliday);
     this.groupBox2.Controls.Add(this.lblShift);
     this.groupBox2.Controls.Add(this.rbtWorkingDay);
     this.groupBox2.Controls.Add(this.rbtNonWorkingDay);
     this.groupBox2.Controls.Add(this.cboShift);
     this.groupBox2.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.groupBox2.Location = new System.Drawing.Point(296, 8);
     this.groupBox2.Name = "groupBox2";
     this.groupBox2.Size = new System.Drawing.Size(344, 72);
     this.groupBox2.TabIndex = 79;
     this.groupBox2.TabStop = false;
     this.groupBox2.Text = "Thiết lập ngày";
     //
     // rbtOverTime
     //
     this.rbtOverTime.Location = new System.Drawing.Point(16, 40);
     this.rbtOverTime.Name = "rbtOverTime";
     this.rbtOverTime.Size = new System.Drawing.Size(112, 24);
     this.rbtOverTime.TabIndex = 76;
     this.rbtOverTime.Text = "Làm thêm (HS1)";
     this.rbtOverTime.CheckedChanged += new System.EventHandler(this.rbtOverTime_CheckedChanged);
     //
     // rbtHoliday
     //
     this.rbtHoliday.Location = new System.Drawing.Point(240, 40);
     this.rbtHoliday.Name = "rbtHoliday";
     this.rbtHoliday.Size = new System.Drawing.Size(96, 24);
     this.rbtHoliday.TabIndex = 75;
     this.rbtHoliday.Text = "Ngày lễ (HS3)";
     this.rbtHoliday.CheckedChanged += new System.EventHandler(this.rbtHoliday_CheckedChanged);
     //
     // lblShift
     //
     this.lblShift.Location = new System.Drawing.Point(128, 16);
     this.lblShift.Name = "lblShift";
     this.lblShift.Size = new System.Drawing.Size(56, 23);
     this.lblShift.TabIndex = 72;
     this.lblShift.Text = "Chọn ca:";
     this.lblShift.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // rbtWorkingDay
     //
     this.rbtWorkingDay.Location = new System.Drawing.Point(16, 16);
     this.rbtWorkingDay.Name = "rbtWorkingDay";
     this.rbtWorkingDay.Size = new System.Drawing.Size(112, 24);
     this.rbtWorkingDay.TabIndex = 70;
     this.rbtWorkingDay.Text = "Ngày làm việc";
     this.rbtWorkingDay.CheckedChanged += new System.EventHandler(this.rbtWorkingDay_CheckedChanged);
     //
     // rbtNonWorkingDay
     //
     this.rbtNonWorkingDay.Location = new System.Drawing.Point(128, 40);
     this.rbtNonWorkingDay.Name = "rbtNonWorkingDay";
     this.rbtNonWorkingDay.Size = new System.Drawing.Size(112, 24);
     this.rbtNonWorkingDay.TabIndex = 71;
     this.rbtNonWorkingDay.Text = "Ngày nghỉ (HS2)";
     this.rbtNonWorkingDay.CheckedChanged += new System.EventHandler(this.rbtNonWorkingDay_CheckedChanged);
     //
     // lblWorkingDay
     //
     this.lblWorkingDay.Location = new System.Drawing.Point(40, 16);
     this.lblWorkingDay.Name = "lblWorkingDay";
     this.lblWorkingDay.Size = new System.Drawing.Size(80, 23);
     this.lblWorkingDay.TabIndex = 0;
     this.lblWorkingDay.Text = "Ngày làm việc";
     this.lblWorkingDay.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // lblNonWorkingDay
     //
     this.lblNonWorkingDay.Location = new System.Drawing.Point(40, 40);
     this.lblNonWorkingDay.Name = "lblNonWorkingDay";
     this.lblNonWorkingDay.Size = new System.Drawing.Size(80, 23);
     this.lblNonWorkingDay.TabIndex = 1;
     this.lblNonWorkingDay.Text = "Ngày nghỉ";
     this.lblNonWorkingDay.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // lblNonWorkingDayLegend
     //
     this.lblNonWorkingDayLegend.BackColor = System.Drawing.Color.MistyRose;
     this.lblNonWorkingDayLegend.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.lblNonWorkingDayLegend.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
     this.lblNonWorkingDayLegend.ForeColor = System.Drawing.Color.DarkRed;
     this.lblNonWorkingDayLegend.Location = new System.Drawing.Point(8, 40);
     this.lblNonWorkingDayLegend.Name = "lblNonWorkingDayLegend";
     this.lblNonWorkingDayLegend.Size = new System.Drawing.Size(32, 23);
     this.lblNonWorkingDayLegend.TabIndex = 4;
     this.lblNonWorkingDayLegend.Text = "15";
     this.lblNonWorkingDayLegend.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // lblWorkingDayLegend
     //
     this.lblWorkingDayLegend.BackColor = System.Drawing.Color.PaleTurquoise;
     this.lblWorkingDayLegend.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.lblWorkingDayLegend.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
     this.lblWorkingDayLegend.ForeColor = System.Drawing.Color.Navy;
     this.lblWorkingDayLegend.Location = new System.Drawing.Point(8, 16);
     this.lblWorkingDayLegend.Name = "lblWorkingDayLegend";
     this.lblWorkingDayLegend.Size = new System.Drawing.Size(32, 23);
     this.lblWorkingDayLegend.TabIndex = 3;
     this.lblWorkingDayLegend.Text = "1";
     this.lblWorkingDayLegend.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // groupBox3
     //
     this.groupBox3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox3.Controls.Add(this.lblOverTime);
     this.groupBox3.Controls.Add(this.lblOverTimeLegend);
     this.groupBox3.Controls.Add(this.label2);
     this.groupBox3.Controls.Add(this.lblHolidayLegend);
     this.groupBox3.Controls.Add(this.lblNonWorkingDay);
     this.groupBox3.Controls.Add(this.lblNonWorkingDayLegend);
     this.groupBox3.Controls.Add(this.lblWorkingDay);
     this.groupBox3.Controls.Add(this.lblWorkingDayLegend);
     this.groupBox3.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.groupBox3.Location = new System.Drawing.Point(648, 8);
     this.groupBox3.Name = "groupBox3";
     this.groupBox3.Size = new System.Drawing.Size(216, 72);
     this.groupBox3.TabIndex = 79;
     this.groupBox3.TabStop = false;
     this.groupBox3.Text = "Quy ước mầu";
     //
     // lblOverTime
     //
     this.lblOverTime.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.lblOverTime.Location = new System.Drawing.Point(152, 16);
     this.lblOverTime.Name = "lblOverTime";
     this.lblOverTime.Size = new System.Drawing.Size(56, 23);
     this.lblOverTime.TabIndex = 7;
     this.lblOverTime.Text = "Làm thêm";
     this.lblOverTime.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // lblOverTimeLegend
     //
     this.lblOverTimeLegend.BackColor = System.Drawing.Color.CornflowerBlue;
     this.lblOverTimeLegend.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.lblOverTimeLegend.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
     this.lblOverTimeLegend.ForeColor = System.Drawing.Color.DarkBlue;
     this.lblOverTimeLegend.Location = new System.Drawing.Point(120, 16);
     this.lblOverTimeLegend.Name = "lblOverTimeLegend";
     this.lblOverTimeLegend.Size = new System.Drawing.Size(32, 23);
     this.lblOverTimeLegend.TabIndex = 8;
     this.lblOverTimeLegend.Text = "7";
     this.lblOverTimeLegend.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // label2
     //
     this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.label2.Location = new System.Drawing.Point(152, 40);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(56, 23);
     this.label2.TabIndex = 5;
     this.label2.Text = "Ngày lễ";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // lblHolidayLegend
     //
     this.lblHolidayLegend.BackColor = System.Drawing.Color.Salmon;
     this.lblHolidayLegend.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.lblHolidayLegend.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
     this.lblHolidayLegend.ForeColor = System.Drawing.Color.Maroon;
     this.lblHolidayLegend.Location = new System.Drawing.Point(120, 40);
     this.lblHolidayLegend.Name = "lblHolidayLegend";
     this.lblHolidayLegend.Size = new System.Drawing.Size(32, 23);
     this.lblHolidayLegend.TabIndex = 6;
     this.lblHolidayLegend.Text = "31";
     this.lblHolidayLegend.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // lvwListEmployee
     //
     this.lvwListEmployee.AlternatingRowColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(237)))), ((int)(((byte)(245)))));
     this.lvwListEmployee.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.lvwListEmployee.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(242)))), ((int)(((byte)(249)))));
     this.lvwListEmployee.ColumnModel = this.columnModel1;
     this.lvwListEmployee.EnableToolTips = true;
     this.lvwListEmployee.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     this.lvwListEmployee.FullRowSelect = true;
     this.lvwListEmployee.GridColor = System.Drawing.SystemColors.ControlDark;
     this.lvwListEmployee.GridLines = XPTable.Models.GridLines.Both;
     this.lvwListEmployee.GridLineStyle = XPTable.Models.GridLineStyle.Dot;
     this.lvwListEmployee.HeaderFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.lvwListEmployee.Location = new System.Drawing.Point(8, 16);
     this.lvwListEmployee.MultiSelect = true;
     this.lvwListEmployee.Name = "lvwListEmployee";
     this.lvwListEmployee.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(169)))), ((int)(((byte)(183)))), ((int)(((byte)(201)))));
     this.lvwListEmployee.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     this.lvwListEmployee.SelectionStyle = XPTable.Models.SelectionStyle.Grid;
     this.lvwListEmployee.Size = new System.Drawing.Size(264, 280);
     this.lvwListEmployee.SortedColumnBackColor = System.Drawing.Color.Transparent;
     this.lvwListEmployee.TabIndex = 80;
     this.lvwListEmployee.TableModel = this.tableModel1;
     this.lvwListEmployee.UnfocusedSelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(210)))), ((int)(((byte)(221)))));
     this.lvwListEmployee.UnfocusedSelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     this.lvwListEmployee.Click += new System.EventHandler(this.lvwListEmployee_Click);
     this.lvwListEmployee.SelectionChanged += new XPTable.Events.SelectionEventHandler(this.lvwListEmployee_SelectionChanged);
     //
     // columnModel1
     //
     this.columnModel1.Columns.AddRange(new XPTable.Models.Column[] {
     this.cSTT,
     this.cCardID,
     this.cEmployeeName});
     //
     // cSTT
     //
     this.cSTT.Text = "STT";
     this.cSTT.Width = 45;
     //
     // cCardID
     //
     this.cCardID.Text = "Mã thẻ";
     //
     // cEmployeeName
     //
     this.cEmployeeName.Text = "Tên nhânviên";
     this.cEmployeeName.Width = 120;
     //
     // groupBox1
     //
     this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                 | System.Windows.Forms.AnchorStyles.Left)));
     this.groupBox1.Controls.Add(this.lvwListEmployee);
     this.groupBox1.Location = new System.Drawing.Point(8, 256);
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.Size = new System.Drawing.Size(280, 304);
     this.groupBox1.TabIndex = 81;
     this.groupBox1.TabStop = false;
     this.groupBox1.Text = "Danh sách nhân viên";
     //
     // btnSelectAll
     //
     this.btnSelectAll.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.btnSelectAll.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnSelectAll.Location = new System.Drawing.Point(88, 568);
     this.btnSelectAll.Name = "btnSelectAll";
     this.btnSelectAll.Size = new System.Drawing.Size(75, 23);
     this.btnSelectAll.TabIndex = 82;
     this.btnSelectAll.Text = "Chọn tất";
     this.btnSelectAll.Click += new System.EventHandler(this.btnSelectAll_Click);
     //
     // btnSelectNone
     //
     this.btnSelectNone.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.btnSelectNone.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnSelectNone.Location = new System.Drawing.Point(168, 568);
     this.btnSelectNone.Name = "btnSelectNone";
     this.btnSelectNone.Size = new System.Drawing.Size(75, 23);
     this.btnSelectNone.TabIndex = 83;
     this.btnSelectNone.Text = "Bỏ chọn";
     this.btnSelectNone.Click += new System.EventHandler(this.btnSelectNone_Click);
     //
     // frmRegWorkingTime
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize = new System.Drawing.Size(872, 598);
     this.Controls.Add(this.btnSelectNone);
     this.Controls.Add(this.btnSelectAll);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.groupBox5);
     this.Controls.Add(this.groupBox4);
     this.Controls.Add(this.btnHelp);
     this.Controls.Add(this.btnClose);
     this.Controls.Add(this.btnUpdate);
     this.Controls.Add(this.groupBox3);
     this.Name = "frmRegWorkingTime";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "Đăng ký lịch làm việc";
     this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
     this.Load += new System.EventHandler(this.frmRegWorkingTime_Load);
     this.groupBox4.ResumeLayout(false);
     this.groupBox5.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     this.groupBox3.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.lvwListEmployee)).EndInit();
     this.groupBox1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
示例#10
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmListPunish));
     this.cWorkingDay = new XPTable.Models.TextColumn();
     this.cReason = new XPTable.Models.TextColumn();
     this.cCardName = new XPTable.Models.TextColumn();
     this.cCardID = new XPTable.Models.TextColumn();
     this.cEmployeeName = new XPTable.Models.TextColumn();
     this.cDepartmentName = new XPTable.Models.TextColumn();
     this.dtpToDate = new System.Windows.Forms.DateTimePicker();
     this.dtpFromDate = new System.Windows.Forms.DateTimePicker();
     this.btnAdd = new System.Windows.Forms.Button();
     this.dgsCardID = new System.Windows.Forms.DataGridTextBoxColumn();
     this.tableModel1 = new XPTable.Models.TableModel();
     this.btnView = new System.Windows.Forms.Button();
     this.dgsEmployeeName = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dtgStartRest = new System.Windows.Forms.DataGridTextBoxColumn();
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.lvwListPunish = new XPTable.Models.Table();
     this.columnModel1 = new XPTable.Models.ColumnModel();
     this.cSTT = new XPTable.Models.NumberColumn();
     this.cboDepartment = new System.Windows.Forms.ComboBox();
     this.btnDelete = new System.Windows.Forms.Button();
     this.dgsDepartment = new System.Windows.Forms.DataGridTextBoxColumn();
     this.label3 = new System.Windows.Forms.Label();
     this.label2 = new System.Windows.Forms.Label();
     this.btnModify = new System.Windows.Forms.Button();
     this.label1 = new System.Windows.Forms.Label();
     this.dgsEndRest = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dtgDayName = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dgsRestReason = new System.Windows.Forms.DataGridTextBoxColumn();
     this.btnClose = new System.Windows.Forms.Button();
     this.groupBox2 = new System.Windows.Forms.GroupBox();
     this.btnExcel = new System.Windows.Forms.Button();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.lvwListPunish)).BeginInit();
     this.groupBox2.SuspendLayout();
     this.SuspendLayout();
     //
     // cWorkingDay
     //
     this.cWorkingDay.Editable = false;
     this.cWorkingDay.Text = "Ngày làm việc";
     this.cWorkingDay.Width = 90;
     //
     // cReason
     //
     this.cReason.Editable = false;
     this.cReason.Text = "Lý do phạt";
     this.cReason.Width = 170;
     //
     // cCardName
     //
     this.cCardName.Editable = false;
     this.cCardName.Text = "Hình thức phạt";
     this.cCardName.Width = 110;
     //
     // cCardID
     //
     this.cCardID.Editable = false;
     this.cCardID.Text = "Mã thẻ";
     this.cCardID.Width = 60;
     //
     // cEmployeeName
     //
     this.cEmployeeName.Editable = false;
     this.cEmployeeName.Text = "Tên nhân viên";
     this.cEmployeeName.Width = 130;
     //
     // cDepartmentName
     //
     this.cDepartmentName.Editable = false;
     this.cDepartmentName.Text = "Tên bộ phận";
     this.cDepartmentName.Width = 100;
     //
     // dtpToDate
     //
     this.dtpToDate.CustomFormat = "dd/MM/yyyy   ";
     this.dtpToDate.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
     this.dtpToDate.Location = new System.Drawing.Point(224, 16);
     this.dtpToDate.Name = "dtpToDate";
     this.dtpToDate.Size = new System.Drawing.Size(88, 20);
     this.dtpToDate.TabIndex = 15;
     this.dtpToDate.CloseUp += new System.EventHandler(this.dtpToDate_CloseUp);
     //
     // dtpFromDate
     //
     this.dtpFromDate.CustomFormat = "dd/MM/yyyy    ";
     this.dtpFromDate.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
     this.dtpFromDate.Location = new System.Drawing.Point(64, 16);
     this.dtpFromDate.Name = "dtpFromDate";
     this.dtpFromDate.Size = new System.Drawing.Size(88, 20);
     this.dtpFromDate.TabIndex = 13;
     this.dtpFromDate.CloseUp += new System.EventHandler(this.dtpFromDate_CloseUp);
     //
     // 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(464, 480);
     this.btnAdd.Name = "btnAdd";
     this.btnAdd.TabIndex = 19;
     this.btnAdd.Text = "Thêm &mới";
     this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
     //
     // dgsCardID
     //
     this.dgsCardID.Format = "";
     this.dgsCardID.FormatInfo = null;
     this.dgsCardID.HeaderText = "Mã nhân viên";
     this.dgsCardID.MappingName = "CardID";
     this.dgsCardID.Width = 75;
     //
     // btnView
     //
     this.btnView.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.btnView.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnView.Location = new System.Drawing.Point(4, 480);
     this.btnView.Name = "btnView";
     this.btnView.TabIndex = 20;
     this.btnView.Text = "Xem";
     this.btnView.Click += new System.EventHandler(this.btnView_Click);
     //
     // dgsEmployeeName
     //
     this.dgsEmployeeName.Format = "";
     this.dgsEmployeeName.FormatInfo = null;
     this.dgsEmployeeName.HeaderText = "Tên nhân viên";
     this.dgsEmployeeName.MappingName = "EmployeeName";
     this.dgsEmployeeName.Width = 120;
     //
     // dtgStartRest
     //
     this.dtgStartRest.Format = "dd/MM/yyyy    ";
     this.dtgStartRest.FormatInfo = null;
     this.dtgStartRest.HeaderText = "Bắt đầu";
     this.dtgStartRest.MappingName = "StartRest";
     this.dtgStartRest.Width = 75;
     //
     // 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.lvwListPunish);
     this.groupBox1.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.groupBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(163)));
     this.groupBox1.Location = new System.Drawing.Point(8, 48);
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.Size = new System.Drawing.Size(768, 424);
     this.groupBox1.TabIndex = 18;
     this.groupBox1.TabStop = false;
     this.groupBox1.Text = "Danh sách nhân viên bị phạt";
     //
     // lvwListPunish
     //
     this.lvwListPunish.AlternatingRowColor = System.Drawing.Color.FromArgb(((System.Byte)(230)), ((System.Byte)(237)), ((System.Byte)(245)));
     this.lvwListPunish.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.lvwListPunish.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(237)), ((System.Byte)(242)), ((System.Byte)(249)));
     this.lvwListPunish.ColumnModel = this.columnModel1;
     this.lvwListPunish.EnableToolTips = true;
     this.lvwListPunish.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
     this.lvwListPunish.FullRowSelect = true;
     this.lvwListPunish.GridColor = System.Drawing.SystemColors.ControlDark;
     this.lvwListPunish.GridLines = XPTable.Models.GridLines.Both;
     this.lvwListPunish.GridLineStyle = XPTable.Models.GridLineStyle.Dot;
     this.lvwListPunish.HeaderFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.lvwListPunish.Location = new System.Drawing.Point(8, 16);
     this.lvwListPunish.Name = "lvwListPunish";
     this.lvwListPunish.NoItemsText = WorkingContext.LangManager.GetString("XPtable");
     this.lvwListPunish.SelectionBackColor = System.Drawing.Color.FromArgb(((System.Byte)(169)), ((System.Byte)(183)), ((System.Byte)(201)));
     this.lvwListPunish.SelectionForeColor = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
     this.lvwListPunish.SelectionStyle = XPTable.Models.SelectionStyle.Grid;
     this.lvwListPunish.Size = new System.Drawing.Size(752, 392);
     this.lvwListPunish.SortedColumnBackColor = System.Drawing.Color.Transparent;
     this.lvwListPunish.TabIndex = 11;
     this.lvwListPunish.TableModel = this.tableModel1;
     this.lvwListPunish.UnfocusedSelectionBackColor = System.Drawing.Color.FromArgb(((System.Byte)(201)), ((System.Byte)(210)), ((System.Byte)(221)));
     this.lvwListPunish.UnfocusedSelectionForeColor = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
     this.lvwListPunish.SelectionChanged += new XPTable.Events.SelectionEventHandler(this.lvwListPunish_SelectionChanged);
     this.lvwListPunish.MouseDown += new System.Windows.Forms.MouseEventHandler(this.lvwListPunish_MouseDown);
     //
     // columnModel1
     //
     this.columnModel1.Columns.AddRange(new XPTable.Models.Column[] {
                                                                        this.cSTT,
                                                                        this.cDepartmentName,
                                                                        this.cCardID,
                                                                        this.cEmployeeName,
                                                                        this.cCardName,
                                                                        this.cWorkingDay,
                                                                        this.cReason});
     //
     // cSTT
     //
     this.cSTT.Editable = false;
     this.cSTT.Maximum = new System.Decimal(new int[] {
                                                          10000,
                                                          0,
                                                          0,
                                                          0});
     this.cSTT.Text = "STT";
     this.cSTT.Width = 40;
     //
     // cboDepartment
     //
     this.cboDepartment.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.cboDepartment.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cboDepartment.Location = new System.Drawing.Point(584, 16);
     this.cboDepartment.Name = "cboDepartment";
     this.cboDepartment.Size = new System.Drawing.Size(176, 21);
     this.cboDepartment.TabIndex = 17;
     //
     // 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(624, 480);
     this.btnDelete.Name = "btnDelete";
     this.btnDelete.TabIndex = 23;
     this.btnDelete.Text = "&Xóa";
     this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
     //
     // dgsDepartment
     //
     this.dgsDepartment.Format = "";
     this.dgsDepartment.FormatInfo = null;
     this.dgsDepartment.HeaderText = "Phòng";
     this.dgsDepartment.MappingName = "DepartmentName";
     this.dgsDepartment.Width = 80;
     //
     // label3
     //
     this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.label3.Location = new System.Drawing.Point(504, 16);
     this.label3.Name = "label3";
     this.label3.Size = new System.Drawing.Size(72, 23);
     this.label3.TabIndex = 16;
     this.label3.Text = "Tên bộ phận";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(160, 16);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(64, 23);
     this.label2.TabIndex = 14;
     this.label2.Text = "Đến ngày";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // btnModify
     //
     this.btnModify.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnModify.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnModify.Location = new System.Drawing.Point(544, 480);
     this.btnModify.Name = "btnModify";
     this.btnModify.TabIndex = 22;
     this.btnModify.Text = "&Sửa";
     this.btnModify.Click += new System.EventHandler(this.btnModify_Click);
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(8, 16);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(56, 23);
     this.label1.TabIndex = 12;
     this.label1.Text = "Từ ngày";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // dgsEndRest
     //
     this.dgsEndRest.Format = "dd/MM/yyyy    ";
     this.dgsEndRest.FormatInfo = null;
     this.dgsEndRest.HeaderText = "Kết thúc";
     this.dgsEndRest.MappingName = "EndRest";
     this.dgsEndRest.Width = 75;
     //
     // dtgDayName
     //
     this.dtgDayName.Format = "";
     this.dtgDayName.FormatInfo = null;
     this.dtgDayName.HeaderText = "Kiểu ngày";
     this.dtgDayName.MappingName = "DayName";
     this.dtgDayName.Width = 90;
     //
     // dgsRestReason
     //
     this.dgsRestReason.Format = "";
     this.dgsRestReason.FormatInfo = null;
     this.dgsRestReason.HeaderText = "Lý do nghỉ";
     this.dgsRestReason.MappingName = "RestReason";
     this.dgsRestReason.Width = 120;
     //
     // 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, 480);
     this.btnClose.Name = "btnClose";
     this.btnClose.TabIndex = 21;
     this.btnClose.Text = "&Đóng";
     this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
     //
     // groupBox2
     //
     this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
         | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox2.Controls.Add(this.cboDepartment);
     this.groupBox2.Controls.Add(this.label3);
     this.groupBox2.Controls.Add(this.dtpFromDate);
     this.groupBox2.Controls.Add(this.label2);
     this.groupBox2.Controls.Add(this.dtpToDate);
     this.groupBox2.Controls.Add(this.label1);
     this.groupBox2.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.groupBox2.Location = new System.Drawing.Point(8, 0);
     this.groupBox2.Name = "groupBox2";
     this.groupBox2.Size = new System.Drawing.Size(768, 48);
     this.groupBox2.TabIndex = 24;
     this.groupBox2.TabStop = false;
     //
     // 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(352, 480);
     this.btnExcel.Name = "btnExcel";
     this.btnExcel.Size = new System.Drawing.Size(104, 24);
     this.btnExcel.TabIndex = 25;
     this.btnExcel.Text = "Xuất &Excel";
     this.btnExcel.Click += new System.EventHandler(this.btnExcel_Click);
     //
     // frmListPunish
     //
     this.AcceptButton = this.btnView;
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton = this.btnClose;
     this.ClientSize = new System.Drawing.Size(784, 510);
     this.Controls.Add(this.btnExcel);
     this.Controls.Add(this.btnAdd);
     this.Controls.Add(this.btnView);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.btnDelete);
     this.Controls.Add(this.btnModify);
     this.Controls.Add(this.btnClose);
     this.Controls.Add(this.groupBox2);
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name = "frmListPunish";
     this.Text = "Danh sách nhân viên bị phạt";
     this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
     this.Load += new System.EventHandler(this.frmLishPunish_Load);
     this.groupBox1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.lvwListPunish)).EndInit();
     this.groupBox2.ResumeLayout(false);
     this.ResumeLayout(false);
 }
示例#11
0
        public ColumnModel getColumnModel()
        {
            //1. oszlop
            ImageColumn imageColumn = new ImageColumn("", 30);
            imageColumn.Editable = false;

            TextColumn textColumn = new TextColumn("név", 110);
            textColumn.Editable = false;

            NumberColumn ertekColumn = new NumberColumn("érték", 50);
            ertekColumn.Editable = false;

            DateTimeColumn datetimeColumn = new DateTimeColumn("idő", 70);
            datetimeColumn.DateTimeFormat = DateTimePickerFormat.Time;
            datetimeColumn.Editable = false;
            datetimeColumn.ShowDropDownButton = false;

            return(new ColumnModel(new Column[] {imageColumn,
                                              datetimeColumn,
                                              textColumn,
                                              ertekColumn
                                              }));
        }
示例#12
0
 private void InitializeComponent()
 {
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.lvwOverTime = new XPTable.Models.Table();
     this.columnModel1 = new XPTable.Models.ColumnModel();
     this.cSTT = new XPTable.Models.NumberColumn();
     this.chDepartment = new XPTable.Models.TextColumn();
     this.chCardID = new XPTable.Models.TextColumn();
     this.chEmployeeName = new XPTable.Models.TextColumn();
     this.chStartOverTime = new XPTable.Models.TextColumn();
     this.chLength = new XPTable.Models.TextColumn();
     this.chWorkingDay = new XPTable.Models.TextColumn();
     this.cDinnerAmount = new XPTable.Models.NumberColumn();
     this.chWorkOverTimeInfo = new XPTable.Models.TextColumn();
     this.tableModel1 = new XPTable.Models.TableModel();
     this.btnDelete = new System.Windows.Forms.Button();
     this.btnClose = new System.Windows.Forms.Button();
     this.btnView = new System.Windows.Forms.Button();
     this.btnUpdate = new System.Windows.Forms.Button();
     this.btnAdd = new System.Windows.Forms.Button();
     this.label1 = new System.Windows.Forms.Label();
     this.dtpWorkingDay = new System.Windows.Forms.DateTimePicker();
     this.lblDepartment = new System.Windows.Forms.Label();
     this.cboDepartment = new System.Windows.Forms.ComboBox();
     this.groupBox2 = new System.Windows.Forms.GroupBox();
     this.btnExcel = new System.Windows.Forms.Button();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.lvwOverTime)).BeginInit();
     this.groupBox2.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.lvwOverTime);
     this.groupBox1.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.groupBox1.Location = new System.Drawing.Point(8, 48);
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.Size = new System.Drawing.Size(696, 432);
     this.groupBox1.TabIndex = 1;
     this.groupBox1.TabStop = false;
     this.groupBox1.Text = "Danh sách";
     //
     // lvwOverTime
     //
     this.lvwOverTime.AlternatingRowColor = System.Drawing.Color.FromArgb(((System.Byte)(230)), ((System.Byte)(237)), ((System.Byte)(245)));
     this.lvwOverTime.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.lvwOverTime.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(237)), ((System.Byte)(242)), ((System.Byte)(249)));
     this.lvwOverTime.ColumnModel = this.columnModel1;
     this.lvwOverTime.EnableToolTips = true;
     this.lvwOverTime.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
     this.lvwOverTime.FullRowSelect = true;
     this.lvwOverTime.GridColor = System.Drawing.SystemColors.ControlDark;
     this.lvwOverTime.GridLines = XPTable.Models.GridLines.Both;
     this.lvwOverTime.GridLineStyle = XPTable.Models.GridLineStyle.Dot;
     this.lvwOverTime.HeaderFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.lvwOverTime.Location = new System.Drawing.Point(8, 16);
     this.lvwOverTime.MultiSelect = true;
     this.lvwOverTime.Name = "lvwOverTime";
     this.lvwOverTime.NoItemsText = WorkingContext.LangManager.GetString("XPtable");
     this.lvwOverTime.SelectionBackColor = System.Drawing.Color.FromArgb(((System.Byte)(169)), ((System.Byte)(183)), ((System.Byte)(201)));
     this.lvwOverTime.SelectionForeColor = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
     this.lvwOverTime.SelectionStyle = XPTable.Models.SelectionStyle.Grid;
     this.lvwOverTime.Size = new System.Drawing.Size(680, 408);
     this.lvwOverTime.SortedColumnBackColor = System.Drawing.Color.Transparent;
     this.lvwOverTime.TabIndex = 12;
     this.lvwOverTime.TableModel = this.tableModel1;
     this.lvwOverTime.UnfocusedSelectionBackColor = System.Drawing.Color.FromArgb(((System.Byte)(201)), ((System.Byte)(210)), ((System.Byte)(221)));
     this.lvwOverTime.UnfocusedSelectionForeColor = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
     this.lvwOverTime.SelectionChanged += new XPTable.Events.SelectionEventHandler(this.lvwOverTime_SelectionChanged);
     this.lvwOverTime.MouseDown += new System.Windows.Forms.MouseEventHandler(this.lvwOverTime_MouseDown);
     //
     // columnModel1
     //
     this.columnModel1.Columns.AddRange(new XPTable.Models.Column[] {
                                                                        this.cSTT,
                                                                        this.chDepartment,
                                                                        this.chCardID,
                                                                        this.chEmployeeName,
                                                                        this.chStartOverTime,
                                                                        this.chLength,
                                                                        this.chWorkingDay,
                                                                        this.cDinnerAmount,
                                                                        this.chWorkOverTimeInfo});
     //
     // cSTT
     //
     this.cSTT.Editable = false;
     this.cSTT.Maximum = new System.Decimal(new int[] {
                                                          10000,
                                                          0,
                                                          0,
                                                          0});
     this.cSTT.Text = "STT";
     this.cSTT.Width = 40;
     //
     // chDepartment
     //
     this.chDepartment.Editable = false;
     this.chDepartment.Text = "Bộ phận";
     this.chDepartment.Width = 100;
     //
     // chCardID
     //
     this.chCardID.Editable = false;
     this.chCardID.Text = "Mã thẻ";
     this.chCardID.Width = 55;
     //
     // chEmployeeName
     //
     this.chEmployeeName.Editable = false;
     this.chEmployeeName.Text = "Tên nhân viên";
     this.chEmployeeName.Width = 130;
     //
     // chStartOverTime
     //
     this.chStartOverTime.Editable = false;
     this.chStartOverTime.Text = "Bắt đầu";
     this.chStartOverTime.Width = 70;
     //
     // chLength
     //
     this.chLength.Editable = false;
     this.chLength.Text = "Thời gian";
     this.chLength.Width = 70;
     //
     // chWorkingDay
     //
     this.chWorkingDay.Editable = false;
     this.chWorkingDay.Text = "Ngày làm thêm";
     this.chWorkingDay.Width = 100;
     //
     // cDinnerAmount
     //
     this.cDinnerAmount.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.cDinnerAmount.Editable = false;
     this.cDinnerAmount.Format = "#,##0;(#,##0);-";
     this.cDinnerAmount.Maximum = new System.Decimal(new int[] {
                                                                   100000,
                                                                   0,
                                                                   0,
                                                                   0});
     this.cDinnerAmount.Text = "Ăn thêm";
     //
     // chWorkOverTimeInfo
     //
     this.chWorkOverTimeInfo.Editable = false;
     this.chWorkOverTimeInfo.Text = "Thông tin làm thêm";
     this.chWorkOverTimeInfo.Width = 150;
     //
     // 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(552, 488);
     this.btnDelete.Name = "btnDelete";
     this.btnDelete.TabIndex = 5;
     this.btnDelete.Text = "Xóa";
     this.btnDelete.Click += new System.EventHandler(this.btnDelete_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(632, 488);
     this.btnClose.Name = "btnClose";
     this.btnClose.TabIndex = 4;
     this.btnClose.Text = "Đóng";
     this.btnClose.Click += new System.EventHandler(this.button4_Click);
     //
     // btnView
     //
     this.btnView.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.btnView.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnView.Location = new System.Drawing.Point(8, 488);
     this.btnView.Name = "btnView";
     this.btnView.TabIndex = 3;
     this.btnView.Text = "Xem";
     this.btnView.Click += new System.EventHandler(this.btnView_Click);
     //
     // 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(472, 488);
     this.btnUpdate.Name = "btnUpdate";
     this.btnUpdate.TabIndex = 2;
     this.btnUpdate.Text = "Sửa";
     this.btnUpdate.Click += new System.EventHandler(this.btnUpdate_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(392, 488);
     this.btnAdd.Name = "btnAdd";
     this.btnAdd.TabIndex = 1;
     this.btnAdd.Text = "Thêm ";
     this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(8, 16);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(88, 24);
     this.label1.TabIndex = 2;
     this.label1.Text = "Ngày làm thêm";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // dtpWorkingDay
     //
     this.dtpWorkingDay.CustomFormat = "dd/MM/yyyy    ";
     this.dtpWorkingDay.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
     this.dtpWorkingDay.Location = new System.Drawing.Point(96, 16);
     this.dtpWorkingDay.Name = "dtpWorkingDay";
     this.dtpWorkingDay.Size = new System.Drawing.Size(88, 20);
     this.dtpWorkingDay.TabIndex = 3;
     //
     // lblDepartment
     //
     this.lblDepartment.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.lblDepartment.Location = new System.Drawing.Point(400, 16);
     this.lblDepartment.Name = "lblDepartment";
     this.lblDepartment.Size = new System.Drawing.Size(64, 23);
     this.lblDepartment.TabIndex = 6;
     this.lblDepartment.Text = "Bộ phận";
     this.lblDepartment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // cboDepartment
     //
     this.cboDepartment.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.cboDepartment.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cboDepartment.Location = new System.Drawing.Point(464, 16);
     this.cboDepartment.Name = "cboDepartment";
     this.cboDepartment.Size = new System.Drawing.Size(224, 21);
     this.cboDepartment.TabIndex = 7;
     //
     // groupBox2
     //
     this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
         | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox2.Controls.Add(this.label1);
     this.groupBox2.Controls.Add(this.dtpWorkingDay);
     this.groupBox2.Controls.Add(this.lblDepartment);
     this.groupBox2.Controls.Add(this.cboDepartment);
     this.groupBox2.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.groupBox2.Location = new System.Drawing.Point(8, 0);
     this.groupBox2.Name = "groupBox2";
     this.groupBox2.Size = new System.Drawing.Size(696, 48);
     this.groupBox2.TabIndex = 8;
     this.groupBox2.TabStop = false;
     //
     // 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(264, 488);
     this.btnExcel.Name = "btnExcel";
     this.btnExcel.Size = new System.Drawing.Size(120, 23);
     this.btnExcel.TabIndex = 9;
     this.btnExcel.Text = "Xuất Excel";
     this.btnExcel.Click += new System.EventHandler(this.ExportExcel_Click);
     //
     // frmListRegOverTime
     //
     this.AcceptButton = this.btnView;
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton = this.btnClose;
     this.ClientSize = new System.Drawing.Size(712, 518);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.btnAdd);
     this.Controls.Add(this.btnUpdate);
     this.Controls.Add(this.btnView);
     this.Controls.Add(this.btnExcel);
     this.Controls.Add(this.btnDelete);
     this.Controls.Add(this.btnClose);
     this.Name = "frmListRegOverTime";
     this.Text = "Danh sách nhân viên làm thêm giờ";
     this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
     this.Load += new System.EventHandler(this.frmListRegOverTime_Load);
     this.groupBox1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.lvwOverTime)).EndInit();
     this.groupBox2.ResumeLayout(false);
     this.ResumeLayout(false);
 }
示例#13
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;
        }
示例#14
0
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmRegOverTime));
     this.btnClose = new System.Windows.Forms.Button();
     this.btnSave = new System.Windows.Forms.Button();
     this.txtWorkOverTimeInfo = new System.Windows.Forms.TextBox();
     this.label5 = new System.Windows.Forms.Label();
     this.label3 = new System.Windows.Forms.Label();
     this.label2 = new System.Windows.Forms.Label();
     this.dtpDayWorking = new System.Windows.Forms.DateTimePicker();
     this.dtpStartTimeOver = new System.Windows.Forms.DateTimePicker();
     this.departmentTreeView = new EVSoft.HRMS.Controls.DepartmentTreeView();
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.groupBox2 = new System.Windows.Forms.GroupBox();
     this.txtEmployeeName = new System.Windows.Forms.TextBox();
     this.cboEmployeeName = new MTGCComboBox();
     this.label6 = new System.Windows.Forms.Label();
     this.cboDinnnerAmount = new System.Windows.Forms.ComboBox();
     this.label1 = new System.Windows.Forms.Label();
     this.ckHaveDinner = new System.Windows.Forms.CheckBox();
     this.lblLength = new System.Windows.Forms.Label();
     this.dtpLength = new System.Windows.Forms.DateTimePicker();
     this.lvwListEmployee = new XPTable.Models.Table();
     this.columnModel1 = new XPTable.Models.ColumnModel();
     this.cSTT = new XPTable.Models.NumberColumn();
     this.cCardID = new XPTable.Models.TextColumn();
     this.cEmployeeName = new XPTable.Models.TextColumn();
     this.tableModel1 = new XPTable.Models.TableModel();
     this.groupBox4 = new System.Windows.Forms.GroupBox();
     this.btnSelectAll = new System.Windows.Forms.Button();
     this.btnClearAll = new System.Windows.Forms.Button();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.lvwListEmployee)).BeginInit();
     this.groupBox4.SuspendLayout();
     this.SuspendLayout();
     //
     // 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(520, 504);
     this.btnClose.Name = "btnClose";
     this.btnClose.Size = new System.Drawing.Size(75, 23);
     this.btnClose.TabIndex = 59;
     this.btnClose.Text = "Đóng";
     this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
     //
     // btnSave
     //
     this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnSave.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnSave.Location = new System.Drawing.Point(440, 504);
     this.btnSave.Name = "btnSave";
     this.btnSave.Size = new System.Drawing.Size(75, 23);
     this.btnSave.TabIndex = 58;
     this.btnSave.Text = "Ghi";
     this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
     //
     // txtWorkOverTimeInfo
     //
     this.txtWorkOverTimeInfo.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.txtWorkOverTimeInfo.Location = new System.Drawing.Point(8, 144);
     this.txtWorkOverTimeInfo.Multiline = true;
     this.txtWorkOverTimeInfo.Name = "txtWorkOverTimeInfo";
     this.txtWorkOverTimeInfo.Size = new System.Drawing.Size(312, 336);
     this.txtWorkOverTimeInfo.TabIndex = 55;
     //
     // label5
     //
     this.label5.Location = new System.Drawing.Point(8, 128);
     this.label5.Name = "label5";
     this.label5.Size = new System.Drawing.Size(104, 18);
     this.label5.TabIndex = 54;
     this.label5.Text = "Nội dung công việc";
     this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(8, 72);
     this.label3.Name = "label3";
     this.label3.Size = new System.Drawing.Size(80, 23);
     this.label3.TabIndex = 52;
     this.label3.Text = "Bắt đầu";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(8, 48);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(80, 23);
     this.label2.TabIndex = 51;
     this.label2.Text = "Ngày làm ";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // dtpDayWorking
     //
     this.dtpDayWorking.CustomFormat = "dd/MM/yyyy    ";
     this.dtpDayWorking.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
     this.dtpDayWorking.Location = new System.Drawing.Point(88, 48);
     this.dtpDayWorking.Name = "dtpDayWorking";
     this.dtpDayWorking.Size = new System.Drawing.Size(232, 20);
     this.dtpDayWorking.TabIndex = 56;
     //
     // dtpStartTimeOver
     //
     this.dtpStartTimeOver.CustomFormat = "HH:mm";
     this.dtpStartTimeOver.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
     this.dtpStartTimeOver.Location = new System.Drawing.Point(88, 72);
     this.dtpStartTimeOver.Name = "dtpStartTimeOver";
     this.dtpStartTimeOver.ShowUpDown = true;
     this.dtpStartTimeOver.Size = new System.Drawing.Size(56, 20);
     this.dtpStartTimeOver.TabIndex = 75;
     this.dtpStartTimeOver.Value = new System.DateTime(2005, 9, 30, 17, 0, 0, 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.DepartmentDataSet = null;
     this.departmentTreeView.ImageIndex = 0;
     this.departmentTreeView.Location = new System.Drawing.Point(8, 16);
     this.departmentTreeView.Name = "departmentTreeView";
     this.departmentTreeView.SelectedImageIndex = 0;
     this.departmentTreeView.Size = new System.Drawing.Size(240, 152);
     this.departmentTreeView.TabIndex = 76;
     this.departmentTreeView.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.departmentTreeView_AfterSelect);
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.departmentTreeView);
     this.groupBox1.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.groupBox1.Location = new System.Drawing.Point(8, 8);
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.Size = new System.Drawing.Size(256, 176);
     this.groupBox1.TabIndex = 77;
     this.groupBox1.TabStop = false;
     this.groupBox1.Text = "Danh sách bộ phận";
     //
     // groupBox2
     //
     this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox2.Controls.Add(this.txtEmployeeName);
     this.groupBox2.Controls.Add(this.cboEmployeeName);
     this.groupBox2.Controls.Add(this.label6);
     this.groupBox2.Controls.Add(this.cboDinnnerAmount);
     this.groupBox2.Controls.Add(this.label1);
     this.groupBox2.Controls.Add(this.ckHaveDinner);
     this.groupBox2.Controls.Add(this.lblLength);
     this.groupBox2.Controls.Add(this.dtpLength);
     this.groupBox2.Controls.Add(this.label3);
     this.groupBox2.Controls.Add(this.label2);
     this.groupBox2.Controls.Add(this.dtpDayWorking);
     this.groupBox2.Controls.Add(this.dtpStartTimeOver);
     this.groupBox2.Controls.Add(this.txtWorkOverTimeInfo);
     this.groupBox2.Controls.Add(this.label5);
     this.groupBox2.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.groupBox2.Location = new System.Drawing.Point(272, 8);
     this.groupBox2.Name = "groupBox2";
     this.groupBox2.Size = new System.Drawing.Size(328, 488);
     this.groupBox2.TabIndex = 78;
     this.groupBox2.TabStop = false;
     this.groupBox2.Text = "Thông tin làm thêm giờ";
     //
     // txtEmployeeName
     //
     this.txtEmployeeName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.txtEmployeeName.Location = new System.Drawing.Point(152, 24);
     this.txtEmployeeName.Name = "txtEmployeeName";
     this.txtEmployeeName.ReadOnly = true;
     this.txtEmployeeName.Size = new System.Drawing.Size(168, 20);
     this.txtEmployeeName.TabIndex = 85;
     this.txtEmployeeName.TextChanged += new System.EventHandler(this.txtEmployeeName_TextChanged);
     //
     // cboEmployeeName
     //
     this.cboEmployeeName.BorderStyle = MTGCComboBox.TipiBordi.Fixed3D;
     this.cboEmployeeName.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal;
     this.cboEmployeeName.ColumnNum = 3;
     this.cboEmployeeName.ColumnWidth = "0;60;121";
     this.cboEmployeeName.DisplayMember = "Text";
     this.cboEmployeeName.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
     this.cboEmployeeName.DropDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(193)))), ((int)(((byte)(210)))), ((int)(((byte)(238)))));
     this.cboEmployeeName.DropDownForeColor = System.Drawing.Color.Black;
     this.cboEmployeeName.DropDownStyle = MTGCComboBox.CustomDropDownStyle.DropDownList;
     this.cboEmployeeName.DropDownWidth = 201;
     this.cboEmployeeName.Enabled = false;
     this.cboEmployeeName.GridLineColor = System.Drawing.Color.LightGray;
     this.cboEmployeeName.GridLineHorizontal = true;
     this.cboEmployeeName.GridLineVertical = true;
     this.cboEmployeeName.LoadingType = MTGCComboBox.CaricamentoCombo.ComboBoxItem;
     this.cboEmployeeName.Location = new System.Drawing.Point(88, 24);
     this.cboEmployeeName.ManagingFastMouseMoving = true;
     this.cboEmployeeName.ManagingFastMouseMovingInterval = 30;
     this.cboEmployeeName.Name = "cboEmployeeName";
     this.cboEmployeeName.Size = new System.Drawing.Size(64, 21);
     this.cboEmployeeName.TabIndex = 84;
     this.cboEmployeeName.SelectedIndexChanged += new System.EventHandler(this.cboEmployeeName_SelectedIndexChanged);
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(8, 24);
     this.label6.Name = "label6";
     this.label6.Size = new System.Drawing.Size(80, 23);
     this.label6.TabIndex = 83;
     this.label6.Text = "Tên nhân viên";
     this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // cboDinnnerAmount
     //
     this.cboDinnnerAmount.Items.AddRange(new object[] {
     "15000",
     "16000",
     "25000"});
     this.cboDinnnerAmount.Location = new System.Drawing.Point(264, 96);
     this.cboDinnnerAmount.Name = "cboDinnnerAmount";
     this.cboDinnnerAmount.Size = new System.Drawing.Size(56, 21);
     this.cboDinnnerAmount.TabIndex = 82;
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(176, 96);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(80, 23);
     this.label1.TabIndex = 81;
     this.label1.Text = "PC tiền ăn";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // ckHaveDinner
     //
     this.ckHaveDinner.Location = new System.Drawing.Point(8, 96);
     this.ckHaveDinner.Name = "ckHaveDinner";
     this.ckHaveDinner.Size = new System.Drawing.Size(152, 24);
     this.ckHaveDinner.TabIndex = 79;
     this.ckHaveDinner.Text = "Hưởng suất ăn thêm";
     this.ckHaveDinner.CheckedChanged += new System.EventHandler(this.ckHaveDinner_CheckedChanged);
     //
     // lblLength
     //
     this.lblLength.Location = new System.Drawing.Point(176, 72);
     this.lblLength.Name = "lblLength";
     this.lblLength.Size = new System.Drawing.Size(80, 23);
     this.lblLength.TabIndex = 77;
     this.lblLength.Text = "Thời gian";
     this.lblLength.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // dtpLength
     //
     this.dtpLength.CustomFormat = "HH:mm";
     this.dtpLength.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
     this.dtpLength.Location = new System.Drawing.Point(264, 72);
     this.dtpLength.Name = "dtpLength";
     this.dtpLength.ShowUpDown = true;
     this.dtpLength.Size = new System.Drawing.Size(56, 20);
     this.dtpLength.TabIndex = 78;
     this.dtpLength.Value = new System.DateTime(2005, 12, 3, 3, 30, 0, 0);
     //
     // lvwListEmployee
     //
     this.lvwListEmployee.AlternatingRowColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(237)))), ((int)(((byte)(245)))));
     this.lvwListEmployee.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.lvwListEmployee.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(242)))), ((int)(((byte)(249)))));
     this.lvwListEmployee.ColumnModel = this.columnModel1;
     this.lvwListEmployee.EnableToolTips = true;
     this.lvwListEmployee.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     this.lvwListEmployee.FullRowSelect = true;
     this.lvwListEmployee.GridColor = System.Drawing.SystemColors.ControlDark;
     this.lvwListEmployee.GridLines = XPTable.Models.GridLines.Both;
     this.lvwListEmployee.GridLineStyle = XPTable.Models.GridLineStyle.Dot;
     this.lvwListEmployee.HeaderFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.lvwListEmployee.Location = new System.Drawing.Point(8, 16);
     this.lvwListEmployee.MultiSelect = true;
     this.lvwListEmployee.Name = "lvwListEmployee";
     this.lvwListEmployee.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(169)))), ((int)(((byte)(183)))), ((int)(((byte)(201)))));
     this.lvwListEmployee.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     this.lvwListEmployee.SelectionStyle = XPTable.Models.SelectionStyle.Grid;
     this.lvwListEmployee.Size = new System.Drawing.Size(240, 288);
     this.lvwListEmployee.SortedColumnBackColor = System.Drawing.Color.Transparent;
     this.lvwListEmployee.TabIndex = 81;
     this.lvwListEmployee.TableModel = this.tableModel1;
     this.lvwListEmployee.UnfocusedSelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(210)))), ((int)(((byte)(221)))));
     this.lvwListEmployee.UnfocusedSelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     //
     // columnModel1
     //
     this.columnModel1.Columns.AddRange(new XPTable.Models.Column[] {
     this.cSTT,
     this.cCardID,
     this.cEmployeeName});
     //
     // cSTT
     //
     this.cSTT.Text = "STT";
     this.cSTT.Width = 42;
     //
     // cCardID
     //
     this.cCardID.Text = "Mã thẻ";
     this.cCardID.Width = 66;
     //
     // cEmployeeName
     //
     this.cEmployeeName.Text = "Tên nhân viên";
     this.cEmployeeName.Width = 120;
     //
     // groupBox4
     //
     this.groupBox4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                 | System.Windows.Forms.AnchorStyles.Left)));
     this.groupBox4.Controls.Add(this.lvwListEmployee);
     this.groupBox4.Location = new System.Drawing.Point(8, 184);
     this.groupBox4.Name = "groupBox4";
     this.groupBox4.Size = new System.Drawing.Size(256, 312);
     this.groupBox4.TabIndex = 82;
     this.groupBox4.TabStop = false;
     //
     // btnSelectAll
     //
     this.btnSelectAll.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.btnSelectAll.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnSelectAll.Location = new System.Drawing.Point(16, 504);
     this.btnSelectAll.Name = "btnSelectAll";
     this.btnSelectAll.Size = new System.Drawing.Size(75, 23);
     this.btnSelectAll.TabIndex = 83;
     this.btnSelectAll.Text = "Chọn tất";
     this.btnSelectAll.Click += new System.EventHandler(this.btnSelectAll_Click);
     //
     // btnClearAll
     //
     this.btnClearAll.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.btnClearAll.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnClearAll.Location = new System.Drawing.Point(96, 504);
     this.btnClearAll.Name = "btnClearAll";
     this.btnClearAll.Size = new System.Drawing.Size(75, 23);
     this.btnClearAll.TabIndex = 84;
     this.btnClearAll.Text = "Bỏ chọn";
     this.btnClearAll.Click += new System.EventHandler(this.btnClearAll_Click);
     //
     // frmRegOverTime
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize = new System.Drawing.Size(602, 536);
     this.Controls.Add(this.btnClearAll);
     this.Controls.Add(this.btnSelectAll);
     this.Controls.Add(this.groupBox4);
     this.Controls.Add(this.btnClose);
     this.Controls.Add(this.btnSave);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.groupBox2);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "frmRegOverTime";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text = "Đăng ký làm thêm giờ";
     this.Load += new System.EventHandler(this.frmRegOverTime_Load);
     this.groupBox1.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     this.groupBox2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.lvwListEmployee)).EndInit();
     this.groupBox4.ResumeLayout(false);
     this.ResumeLayout(false);
 }
示例#15
0
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmListRegRestEmployee));
     this.label1 = new System.Windows.Forms.Label();
     this.dtpStartRest = new System.Windows.Forms.DateTimePicker();
     this.dtpEndRest = new System.Windows.Forms.DateTimePicker();
     this.label2 = new System.Windows.Forms.Label();
     this.label3 = new System.Windows.Forms.Label();
     this.cboDepartment = new System.Windows.Forms.ComboBox();
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.lvwRestEmployee = 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.cEmployeeName = new XPTable.Models.TextColumn();
     this.cDayName = new XPTable.Models.TextColumn();
     this.cStartDate = new XPTable.Models.TextColumn();
     this.cEndDate = new XPTable.Models.TextColumn();
     this.txtThoiGianNghi = new XPTable.Models.TextColumn();
     this.cRestReason = new XPTable.Models.TextColumn();
     this.tableModel1 = new XPTable.Models.TableModel();
     this.btnDelete = new System.Windows.Forms.Button();
     this.btnModify = new System.Windows.Forms.Button();
     this.btnClose = new System.Windows.Forms.Button();
     this.btnAdd = new System.Windows.Forms.Button();
     this.dgsEmployeeName = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dgsCardID = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dgsDepartment = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dtgDayName = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dgsRestReason = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dtgStartRest = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dgsEndRest = new System.Windows.Forms.DataGridTextBoxColumn();
     this.groupBox2 = new System.Windows.Forms.GroupBox();
     this.btnExcel = new System.Windows.Forms.Button();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.lvwRestEmployee)).BeginInit();
     this.groupBox2.SuspendLayout();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(8, 16);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(48, 23);
     this.label1.TabIndex = 0;
     this.label1.Text = "Từ ngày";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // dtpStartRest
     //
     this.dtpStartRest.CustomFormat = "dd/MM/yyyy    ";
     this.dtpStartRest.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
     this.dtpStartRest.Location = new System.Drawing.Point(56, 16);
     this.dtpStartRest.Name = "dtpStartRest";
     this.dtpStartRest.Size = new System.Drawing.Size(112, 20);
     this.dtpStartRest.TabIndex = 1;
     this.dtpStartRest.CloseUp += new System.EventHandler(this.dtpStartRest_CloseUp);
     //
     // dtpEndRest
     //
     this.dtpEndRest.CustomFormat = "dd/MM/yyyy   ";
     this.dtpEndRest.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
     this.dtpEndRest.Location = new System.Drawing.Point(240, 16);
     this.dtpEndRest.Name = "dtpEndRest";
     this.dtpEndRest.Size = new System.Drawing.Size(112, 20);
     this.dtpEndRest.TabIndex = 3;
     this.dtpEndRest.CloseUp += new System.EventHandler(this.dtpEndRest_CloseUp);
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(184, 16);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(64, 23);
     this.label2.TabIndex = 2;
     this.label2.Text = "Đến ngày";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // label3
     //
     this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.label3.Location = new System.Drawing.Point(492, 16);
     this.label3.Name = "label3";
     this.label3.Size = new System.Drawing.Size(80, 23);
     this.label3.TabIndex = 4;
     this.label3.Text = "Tên bộ phận";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // cboDepartment
     //
     this.cboDepartment.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.cboDepartment.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cboDepartment.Location = new System.Drawing.Point(572, 16);
     this.cboDepartment.Name = "cboDepartment";
     this.cboDepartment.Size = new System.Drawing.Size(208, 21);
     this.cboDepartment.TabIndex = 5;
     //
     // 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.lvwRestEmployee);
     this.groupBox1.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.groupBox1.Location = new System.Drawing.Point(8, 48);
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.Size = new System.Drawing.Size(788, 492);
     this.groupBox1.TabIndex = 6;
     this.groupBox1.TabStop = false;
     this.groupBox1.Text = "Danh sách nhân viên nghỉ";
     //
     // lvwRestEmployee
     //
     this.lvwRestEmployee.AlternatingRowColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(237)))), ((int)(((byte)(245)))));
     this.lvwRestEmployee.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.lvwRestEmployee.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(242)))), ((int)(((byte)(249)))));
     this.lvwRestEmployee.ColumnModel = this.columnModel1;
     this.lvwRestEmployee.EnableToolTips = true;
     this.lvwRestEmployee.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     this.lvwRestEmployee.FullRowSelect = true;
     this.lvwRestEmployee.GridColor = System.Drawing.SystemColors.ControlDark;
     this.lvwRestEmployee.GridLines = XPTable.Models.GridLines.Both;
     this.lvwRestEmployee.GridLineStyle = XPTable.Models.GridLineStyle.Dot;
     this.lvwRestEmployee.HeaderFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.lvwRestEmployee.Location = new System.Drawing.Point(8, 16);
     this.lvwRestEmployee.Name = "lvwRestEmployee";
     this.lvwRestEmployee.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(169)))), ((int)(((byte)(183)))), ((int)(((byte)(201)))));
     this.lvwRestEmployee.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     this.lvwRestEmployee.SelectionStyle = XPTable.Models.SelectionStyle.Grid;
     this.lvwRestEmployee.Size = new System.Drawing.Size(772, 460);
     this.lvwRestEmployee.SortedColumnBackColor = System.Drawing.Color.Transparent;
     this.lvwRestEmployee.TabIndex = 11;
     this.lvwRestEmployee.TableModel = this.tableModel1;
     this.lvwRestEmployee.UnfocusedSelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(210)))), ((int)(((byte)(221)))));
     this.lvwRestEmployee.UnfocusedSelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     this.lvwRestEmployee.MouseDown += new System.Windows.Forms.MouseEventHandler(this.lvwRestEmployee_MouseDown);
     this.lvwRestEmployee.SelectionChanged += new XPTable.Events.SelectionEventHandler(this.lvwRestEmployee_SelectionChanged);
     //
     // columnModel1
     //
     this.columnModel1.Columns.AddRange(new XPTable.Models.Column[] {
     this.cSTT,
     this.cDepartmentName,
     this.cCardID,
     this.cEmployeeName,
     this.cDayName,
     this.cStartDate,
     this.cEndDate,
     this.txtThoiGianNghi,
     this.cRestReason});
     //
     // cSTT
     //
     this.cSTT.Editable = false;
     this.cSTT.Maximum = new decimal(new int[] {
     10000,
     0,
     0,
     0});
     this.cSTT.Text = "STT";
     this.cSTT.Width = 40;
     //
     // cDepartmentName
     //
     this.cDepartmentName.Editable = false;
     this.cDepartmentName.Text = "Tên bộ phận";
     this.cDepartmentName.Width = 100;
     //
     // cCardID
     //
     this.cCardID.Editable = false;
     this.cCardID.Text = "Mã thẻ";
     this.cCardID.Width = 60;
     //
     // cEmployeeName
     //
     this.cEmployeeName.Editable = false;
     this.cEmployeeName.Text = "Tên nhân viên";
     this.cEmployeeName.Width = 130;
     //
     // cDayName
     //
     this.cDayName.Editable = false;
     this.cDayName.Text = "Kiểu ngày nghỉ";
     this.cDayName.Width = 110;
     //
     // cStartDate
     //
     this.cStartDate.Editable = false;
     this.cStartDate.Text = "Ngày bắt đầu";
     this.cStartDate.Width = 90;
     //
     // cEndDate
     //
     this.cEndDate.Editable = false;
     this.cEndDate.Text = "Ngày kết thúc";
     this.cEndDate.Width = 90;
     //
     // txtThoiGianNghi
     //
     this.txtThoiGianNghi.Editable = false;
     this.txtThoiGianNghi.Text = "Thời gian nghỉ";
     this.txtThoiGianNghi.Width = 100;
     //
     // cRestReason
     //
     this.cRestReason.Editable = false;
     this.cRestReason.Text = "Lý do nghỉ";
     this.cRestReason.Width = 150;
     //
     // 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(636, 548);
     this.btnDelete.Name = "btnDelete";
     this.btnDelete.Size = new System.Drawing.Size(75, 23);
     this.btnDelete.TabIndex = 11;
     this.btnDelete.Text = "Xóa";
     this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
     //
     // btnModify
     //
     this.btnModify.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnModify.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnModify.Location = new System.Drawing.Point(556, 548);
     this.btnModify.Name = "btnModify";
     this.btnModify.Size = new System.Drawing.Size(75, 23);
     this.btnModify.TabIndex = 10;
     this.btnModify.Text = "Sửa";
     this.btnModify.Click += new System.EventHandler(this.btnModify_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(716, 548);
     this.btnClose.Name = "btnClose";
     this.btnClose.Size = new System.Drawing.Size(75, 23);
     this.btnClose.TabIndex = 9;
     this.btnClose.Text = "Đóng";
     this.btnClose.Click += new System.EventHandler(this.btnClose_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(476, 548);
     this.btnAdd.Name = "btnAdd";
     this.btnAdd.Size = new System.Drawing.Size(75, 23);
     this.btnAdd.TabIndex = 7;
     this.btnAdd.Text = "Thêm";
     this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
     //
     // dgsEmployeeName
     //
     //this.dgsEmployeeName.Format = global::EVSoft.HRMS.Common.Lang.LangResource_vi_VN.string1;
     this.dgsEmployeeName.FormatInfo = null;
     this.dgsEmployeeName.HeaderText = "Tên nhân viên";
     this.dgsEmployeeName.MappingName = "EmployeeName";
     this.dgsEmployeeName.Width = 120;
     //
     // dgsCardID
     //
     //this.dgsCardID.Format = global::EVSoft.HRMS.Common.Lang.LangResource_vi_VN.string1;
     this.dgsCardID.FormatInfo = null;
     this.dgsCardID.HeaderText = "Mã nhân viên";
     this.dgsCardID.MappingName = "CardID";
     this.dgsCardID.Width = 75;
     //
     // dgsDepartment
     //
     //this.dgsDepartment.Format = global::EVSoft.HRMS.Common.Lang.LangResource_vi_VN.string1;
     this.dgsDepartment.FormatInfo = null;
     this.dgsDepartment.HeaderText = "Phòng";
     this.dgsDepartment.MappingName = "DepartmentName";
     this.dgsDepartment.Width = 80;
     //
     // dtgDayName
     //
     //this.dtgDayName.Format = global::EVSoft.HRMS.Common.Lang.LangResource_vi_VN.string1;
     this.dtgDayName.FormatInfo = null;
     this.dtgDayName.HeaderText = "Kiểu ngày";
     this.dtgDayName.MappingName = "DayName";
     this.dtgDayName.Width = 90;
     //
     // dgsRestReason
     //
     //this.dgsRestReason.Format = global::EVSoft.HRMS.Common.Lang.LangResource_vi_VN.string1;
     this.dgsRestReason.FormatInfo = null;
     this.dgsRestReason.HeaderText = "Lý do nghỉ";
     this.dgsRestReason.MappingName = "RestReason";
     this.dgsRestReason.Width = 120;
     //
     // dtgStartRest
     //
     this.dtgStartRest.Format = "dd/MM/yyyy    ";
     this.dtgStartRest.FormatInfo = null;
     this.dtgStartRest.HeaderText = "Bắt đầu";
     this.dtgStartRest.MappingName = "StartRest";
     this.dtgStartRest.Width = 75;
     //
     // dgsEndRest
     //
     this.dgsEndRest.Format = "dd/MM/yyyy    ";
     this.dgsEndRest.FormatInfo = null;
     this.dgsEndRest.HeaderText = "Kết thúc";
     this.dgsEndRest.MappingName = "EndRest";
     this.dgsEndRest.Width = 75;
     //
     // groupBox2
     //
     this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox2.Controls.Add(this.label1);
     this.groupBox2.Controls.Add(this.dtpStartRest);
     this.groupBox2.Controls.Add(this.dtpEndRest);
     this.groupBox2.Controls.Add(this.label2);
     this.groupBox2.Controls.Add(this.label3);
     this.groupBox2.Controls.Add(this.cboDepartment);
     this.groupBox2.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.groupBox2.Location = new System.Drawing.Point(8, 0);
     this.groupBox2.Name = "groupBox2";
     this.groupBox2.Size = new System.Drawing.Size(788, 48);
     this.groupBox2.TabIndex = 12;
     this.groupBox2.TabStop = false;
     //
     // 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(352, 548);
     this.btnExcel.Name = "btnExcel";
     this.btnExcel.Size = new System.Drawing.Size(112, 23);
     this.btnExcel.TabIndex = 13;
     this.btnExcel.Text = "Xuất Excel";
     this.btnExcel.Click += new System.EventHandler(this.btnExcel_Click);
     //
     // frmListRegRestEmployee
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton = this.btnClose;
     this.ClientSize = new System.Drawing.Size(804, 578);
     this.Controls.Add(this.btnExcel);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.btnDelete);
     this.Controls.Add(this.btnModify);
     this.Controls.Add(this.btnAdd);
     this.Controls.Add(this.btnClose);
     this.Controls.Add(this.groupBox2);
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name = "frmListRegRestEmployee";
     this.Text = "Danh sách nhân viên nghỉ";
     this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
     this.Load += new System.EventHandler(this.frmListRegRestEmployee_Load);
     this.groupBox1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.lvwRestEmployee)).EndInit();
     this.groupBox2.ResumeLayout(false);
     this.ResumeLayout(false);
 }
示例#16
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmChangeTimeInOut));
     this.btnModify = new System.Windows.Forms.Button();
     this.btnDelete = new System.Windows.Forms.Button();
     this.btnClose = new System.Windows.Forms.Button();
     this.btnHelp = new System.Windows.Forms.Button();
     this.btnAdd = new System.Windows.Forms.Button();
     this.departmentTreeView = new EVSoft.HRMS.Controls.DepartmentTreeView();
     this.lvwTimeInOut = new XPTable.Models.Table();
     this.columnModel1 = new XPTable.Models.ColumnModel();
     this.cSTT = new XPTable.Models.NumberColumn();
     this.chWorkingDay = new XPTable.Models.TextColumn();
     this.chTimeIn = new XPTable.Models.TextColumn();
     this.chTimeOut = new XPTable.Models.TextColumn();
     this.tableModel1 = new XPTable.Models.TableModel();
     this.cboEmployee = new MTGCComboBox();
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.groupBox2 = new System.Windows.Forms.GroupBox();
     this.label1 = new System.Windows.Forms.Label();
     this.txtEmployeeName = new System.Windows.Forms.TextBox();
     ((System.ComponentModel.ISupportInitialize)(this.lvwTimeInOut)).BeginInit();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.SuspendLayout();
     //
     // btnModify
     //
     this.btnModify.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnModify.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnModify.Location = new System.Drawing.Point(288, 344);
     this.btnModify.Name = "btnModify";
     this.btnModify.TabIndex = 5;
     this.btnModify.Text = "&Sửa";
     this.btnModify.Click += new System.EventHandler(this.btnModify_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(368, 344);
     this.btnDelete.Name = "btnDelete";
     this.btnDelete.TabIndex = 6;
     this.btnDelete.Text = "&Xóa";
     this.btnDelete.Click += new System.EventHandler(this.btnDelete_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(448, 344);
     this.btnClose.Name = "btnClose";
     this.btnClose.TabIndex = 7;
     this.btnClose.Text = "&Đóng";
     this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
     //
     // btnHelp
     //
     this.btnHelp.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.btnHelp.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnHelp.Location = new System.Drawing.Point(8, 344);
     this.btnHelp.Name = "btnHelp";
     this.btnHelp.TabIndex = 9;
     this.btnHelp.Text = "Trợ giúp";
     //
     // 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(208, 344);
     this.btnAdd.Name = "btnAdd";
     this.btnAdd.TabIndex = 4;
     this.btnAdd.Text = "&Thêm";
     this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
     //
     // 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.DepartmentDataSet = null;
     this.departmentTreeView.Location = new System.Drawing.Point(8, 16);
     this.departmentTreeView.Name = "departmentTreeView";
     this.departmentTreeView.Size = new System.Drawing.Size(176, 300);
     this.departmentTreeView.TabIndex = 8;
     this.departmentTreeView.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.departmentTreeView_AfterSelect);
     //
     // lvwTimeInOut
     //
     this.lvwTimeInOut.AlternatingRowColor = System.Drawing.Color.FromArgb(((System.Byte)(230)), ((System.Byte)(237)), ((System.Byte)(245)));
     this.lvwTimeInOut.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.lvwTimeInOut.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(237)), ((System.Byte)(242)), ((System.Byte)(249)));
     this.lvwTimeInOut.ColumnModel = this.columnModel1;
     this.lvwTimeInOut.EnableToolTips = true;
     this.lvwTimeInOut.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
     this.lvwTimeInOut.FullRowSelect = true;
     this.lvwTimeInOut.GridColor = System.Drawing.SystemColors.ControlDark;
     this.lvwTimeInOut.GridLines = XPTable.Models.GridLines.Both;
     this.lvwTimeInOut.GridLineStyle = XPTable.Models.GridLineStyle.Dot;
     this.lvwTimeInOut.HeaderFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.lvwTimeInOut.Location = new System.Drawing.Point(8, 16);
     this.lvwTimeInOut.Name = "lvwTimeInOut";
     this.lvwTimeInOut.NoItemsText = WorkingContext.LangManager.GetString("XPtable");
     this.lvwTimeInOut.SelectionBackColor = System.Drawing.Color.FromArgb(((System.Byte)(169)), ((System.Byte)(183)), ((System.Byte)(201)));
     this.lvwTimeInOut.SelectionForeColor = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
     this.lvwTimeInOut.SelectionStyle = XPTable.Models.SelectionStyle.Grid;
     this.lvwTimeInOut.Size = new System.Drawing.Size(296, 272);
     this.lvwTimeInOut.SortedColumnBackColor = System.Drawing.Color.Transparent;
     this.lvwTimeInOut.TabIndex = 3;
     this.lvwTimeInOut.TableModel = this.tableModel1;
     this.lvwTimeInOut.UnfocusedSelectionBackColor = System.Drawing.Color.FromArgb(((System.Byte)(201)), ((System.Byte)(210)), ((System.Byte)(221)));
     this.lvwTimeInOut.UnfocusedSelectionForeColor = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
     this.lvwTimeInOut.SelectionChanged += new XPTable.Events.SelectionEventHandler(this.lvwTimeInOut_SelectionChanged);
     this.lvwTimeInOut.MouseDown += new System.Windows.Forms.MouseEventHandler(this.lvwTimeInOut_MouseDown);
     //
     // columnModel1
     //
     this.columnModel1.Columns.AddRange(new XPTable.Models.Column[] {
                                                                        this.cSTT,
                                                                        this.chWorkingDay,
                                                                        this.chTimeIn,
                                                                        this.chTimeOut});
     //
     // cSTT
     //
     this.cSTT.Editable = false;
     this.cSTT.Text = "STT";
     this.cSTT.Width = 35;
     //
     // chWorkingDay
     //
     this.chWorkingDay.Editable = false;
     this.chWorkingDay.Text = "Ngày làm việc";
     this.chWorkingDay.Width = 100;
     //
     // chTimeIn
     //
     this.chTimeIn.Editable = false;
     this.chTimeIn.Text = "Giờ vào";
     this.chTimeIn.Width = 70;
     //
     // chTimeOut
     //
     this.chTimeOut.Editable = false;
     this.chTimeOut.Text = "Giờ ra";
     //
     // cboEmployee
     //
     this.cboEmployee.BorderStyle = MTGCComboBox.TipiBordi.Fixed3D;
     this.cboEmployee.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal;
     this.cboEmployee.ColumnNum = 3;
     this.cboEmployee.ColumnWidth = "0;45;115";
     this.cboEmployee.DisplayMember = "Text";
     this.cboEmployee.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
     this.cboEmployee.DropDownBackColor = System.Drawing.Color.FromArgb(((System.Byte)(193)), ((System.Byte)(210)), ((System.Byte)(238)));
     this.cboEmployee.DropDownForeColor = System.Drawing.Color.Black;
     this.cboEmployee.DropDownStyle = MTGCComboBox.CustomDropDownStyle.DropDownList;
     this.cboEmployee.DropDownWidth = 180;
     this.cboEmployee.GridLineColor = System.Drawing.Color.LightGray;
     this.cboEmployee.GridLineHorizontal = true;
     this.cboEmployee.GridLineVertical = true;
     this.cboEmployee.LoadingType = MTGCComboBox.CaricamentoCombo.ComboBoxItem;
     this.cboEmployee.Location = new System.Drawing.Point(272, 8);
     this.cboEmployee.ManagingFastMouseMoving = true;
     this.cboEmployee.ManagingFastMouseMovingInterval = 30;
     this.cboEmployee.Name = "cboEmployee";
     this.cboEmployee.Size = new System.Drawing.Size(64, 21);
     this.cboEmployee.TabIndex = 1;
     this.cboEmployee.SelectedIndexChanged += new System.EventHandler(this.cboEmployee_SelectedIndexChanged);
     //
     // groupBox1
     //
     this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
         | System.Windows.Forms.AnchorStyles.Left)));
     this.groupBox1.Controls.Add(this.departmentTreeView);
     this.groupBox1.Location = new System.Drawing.Point(8, 8);
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.Size = new System.Drawing.Size(192, 328);
     this.groupBox1.TabIndex = 100;
     this.groupBox1.TabStop = false;
     this.groupBox1.Text = "Danh sách phòng ban";
     //
     // groupBox2
     //
     this.groupBox2.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.groupBox2.Controls.Add(this.lvwTimeInOut);
     this.groupBox2.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.groupBox2.Location = new System.Drawing.Point(208, 40);
     this.groupBox2.Name = "groupBox2";
     this.groupBox2.Size = new System.Drawing.Size(312, 296);
     this.groupBox2.TabIndex = 101;
     this.groupBox2.TabStop = false;
     this.groupBox2.Text = "Thông tin vào ra";
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(208, 8);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(64, 23);
     this.label1.TabIndex = 102;
     this.label1.Text = "Nhân viên";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // txtEmployeeName
     //
     this.txtEmployeeName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
         | System.Windows.Forms.AnchorStyles.Right)));
     this.txtEmployeeName.Location = new System.Drawing.Point(336, 8);
     this.txtEmployeeName.Name = "txtEmployeeName";
     this.txtEmployeeName.ReadOnly = true;
     this.txtEmployeeName.Size = new System.Drawing.Size(184, 20);
     this.txtEmployeeName.TabIndex = 2;
     this.txtEmployeeName.Text = "";
     //
     // frmChangeTimeInOut
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton = this.btnClose;
     this.ClientSize = new System.Drawing.Size(530, 376);
     this.Controls.Add(this.txtEmployeeName);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.btnAdd);
     this.Controls.Add(this.btnHelp);
     this.Controls.Add(this.btnClose);
     this.Controls.Add(this.btnDelete);
     this.Controls.Add(this.btnModify);
     this.Controls.Add(this.cboEmployee);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox = false;
     this.Name = "frmChangeTimeInOut";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "Quản lý thời gian vào ra";
     this.Load += new System.EventHandler(this.frmChangeTimeInOut_Load);
     ((System.ComponentModel.ISupportInitialize)(this.lvwTimeInOut)).EndInit();
     this.groupBox1.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     this.ResumeLayout(false);
 }
示例#17
0
        /// <summary>
        /// Creates a numeric column
        /// </summary>
        private static NumberColumn CreateNumberColumn(string header, int width, string toolTipText = null)
        {
            var col = new NumberColumn(header, width)
                {
                    Editable = false,
                    Alignment = ColumnAlignment.Right,
                    Format = "#,0"
                };

            if (!string.IsNullOrWhiteSpace(toolTipText))
            {
                col.ToolTipText = toolTipText;
            }

            return col;
        }
示例#18
0
        /// <summary>
        /// Hiển thị dữ liệu bảng chấm công lên form
        /// </summary>
        private void PopulateRestSheetData()
        {
            restsheetDO = new RestSheetDO();

            dsRestSheet = restsheetDO.GetDepartmentRestSheet(CurrentYear, DepartmentID);
            dataRows = dsRestSheet.Tables[0].Select(dataFilter, dataSort);

            // Load TimeSheet data to table
            lvwRestSheet.BeginUpdate();
            lvwRestSheet.TableModel.Rows.Clear();

            int STT = 0;
            foreach (DataRow dr in dataRows)
            {
                string CardID = dr["CardID"].ToString();
                string EmployeeName = dr["EmployeeName"].ToString();
                string DepartmentName = dr["DepartmentName"].ToString();

                Cell[] RestSheet = new Cell[24];
                RestSheet[0] = new Cell((STT + 1).ToString());
                RestSheet[1] = new Cell(DepartmentName);
                RestSheet[2] = new Cell(CardID);
                RestSheet[3] = new Cell(EmployeeName);

                for (int i = 1; i <= 12; i++)
                {
                    string monthname = "month" + i;
                    RestSheet[i + 3] = new Cell(dr[monthname].ToString());
                }
                string tong = dr["TotalRest"].ToString();
                RestSheet[16] = new Cell(tong);
                RestSheet[17] = new Cell();
                if (dr["StartDate"] != DBNull.Value)
                {
                    RestSheet[17] = new Cell(DateTime.Parse(dr["StartDate"].ToString()).ToString("dd/MM/yyyy"));
                }
                string RestAllow = dr["TotalRestAllow"].ToString();
                RestSheet[18] = new Cell(RestAllow);

                string RestRemain = dr["TotalRestRemain"].ToString();
                RestSheet[19] = new Cell(RestRemain);

                double BasicSalary = 0;
                if (dr["BasicSalary"] != DBNull.Value)
                {
                    BasicSalary = double.Parse(dr["BasicSalary"].ToString());
                }
                RestSheet[20] = new Cell(BasicSalary);

                double HarmfulAllowance = 0;
                double ResponsibleAllowance = 0;
                double DangerousAllowance = 0;

                if (dr["HarmfulAllowance"] != DBNull.Value)
                {
                    HarmfulAllowance = double.Parse(dr["HarmfulAllowance"].ToString());
                }
                if (dr["ResponsibleAllowance"] != DBNull.Value)
                {
                    ResponsibleAllowance = double.Parse(dr["ResponsibleAllowance"].ToString());
                }
                if (dr["DangerousAllowance"] != DBNull.Value)
                {
                    DangerousAllowance = double.Parse(dr["DangerousAllowance"].ToString());
                }

                RestSheet[21] = new Cell((HarmfulAllowance + ResponsibleAllowance + DangerousAllowance));

                double toMoney = 0;
                if (dr["toMoney"] != DBNull.Value)
                {
                    toMoney = double.Parse(dr["toMoney"].ToString());
                }
                RestSheet[22] = new Cell(toMoney);
                RestSheet[23] = new Cell();

                Row row = new Row(RestSheet);
                row.Tag = STT;
                lvwRestSheet.TableModel.Rows.Add(row);
                STT++;
            }
            lvwRestSheet.EndUpdate();
            string str1 = WorkingContext.LangManager.GetString("frmRestSheet_lblTotalE");
            //lblTotalEmployee.Text = "Tổng số nhân viên: " + dataRows.Length  ;
            SoNV = dataRows.Length;
            lblTotalEmployee.Text = str1 + dataRows.Length;
        }
示例#19
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     XPTable.Models.Row row1 = new XPTable.Models.Row();
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmListLeaveSchedule));
     this.cboDepartment = new System.Windows.Forms.ComboBox();
     this.label1 = new System.Windows.Forms.Label();
     this.dtpTo = new System.Windows.Forms.DateTimePicker();
     this.dtpFrom = new System.Windows.Forms.DateTimePicker();
     this.label3 = new System.Windows.Forms.Label();
     this.label2 = new System.Windows.Forms.Label();
     this.dtgcCardID = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dtgcEmployeeName = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dtgcDepartment = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dtgcLeaveLocation = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dtgcWorkInfo = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dtgcStartLeave = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dtgcEndLeave = new System.Windows.Forms.DataGridTextBoxColumn();
     this.tableModel1 = new XPTable.Models.TableModel();
     this.columnModel1 = new XPTable.Models.ColumnModel();
     this.cSTT = new XPTable.Models.NumberColumn();
     this.chDepartment = new XPTable.Models.TextColumn();
     this.chCardID = new XPTable.Models.TextColumn();
     this.chEmployeeName = new XPTable.Models.TextColumn();
     this.chStartLeave = new XPTable.Models.TextColumn();
     this.EndLeave = new XPTable.Models.TextColumn();
     this.chLeaveLocation = new XPTable.Models.TextColumn();
     this.chWorkInfo = new XPTable.Models.TextColumn();
     this.lvwLeaveSchedule = new XPTable.Models.Table();
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.groupBox2 = new System.Windows.Forms.GroupBox();
     this.btnEdit = new System.Windows.Forms.Button();
     this.btnDelete = new System.Windows.Forms.Button();
     this.btnAdd = new System.Windows.Forms.Button();
     this.btnView = new System.Windows.Forms.Button();
     this.btnClose = new System.Windows.Forms.Button();
     this.btnExcel = new System.Windows.Forms.Button();
     ((System.ComponentModel.ISupportInitialize)(this.lvwLeaveSchedule)).BeginInit();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.SuspendLayout();
     //
     // cboDepartment
     //
     this.cboDepartment.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.cboDepartment.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cboDepartment.Location = new System.Drawing.Point(472, 16);
     this.cboDepartment.Name = "cboDepartment";
     this.cboDepartment.Size = new System.Drawing.Size(224, 21);
     this.cboDepartment.TabIndex = 24;
     //
     // label1
     //
     this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.label1.Location = new System.Drawing.Point(408, 16);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(64, 23);
     this.label1.TabIndex = 23;
     this.label1.Text = "Bộ phận";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // dtpTo
     //
     this.dtpTo.CustomFormat = "dd/MM/yyyy    ";
     this.dtpTo.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
     this.dtpTo.Location = new System.Drawing.Point(224, 16);
     this.dtpTo.Name = "dtpTo";
     this.dtpTo.Size = new System.Drawing.Size(88, 20);
     this.dtpTo.TabIndex = 20;
     this.dtpTo.CloseUp += new System.EventHandler(this.dtpTo_CloseUp);
     //
     // dtpFrom
     //
     this.dtpFrom.CustomFormat = "dd/MM/yyyy    ";
     this.dtpFrom.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
     this.dtpFrom.Location = new System.Drawing.Point(64, 16);
     this.dtpFrom.Name = "dtpFrom";
     this.dtpFrom.Size = new System.Drawing.Size(88, 20);
     this.dtpFrom.TabIndex = 19;
     this.dtpFrom.CloseUp += new System.EventHandler(this.dtpFrom_CloseUp);
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(160, 16);
     this.label3.Name = "label3";
     this.label3.Size = new System.Drawing.Size(64, 24);
     this.label3.TabIndex = 22;
     this.label3.Text = "Đến ngày";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(8, 16);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(56, 24);
     this.label2.TabIndex = 21;
     this.label2.Text = "Từ ngày";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // dtgcCardID
     //
     this.dtgcCardID.Format = "";
     this.dtgcCardID.FormatInfo = null;
     this.dtgcCardID.HeaderText = "Mã thẻ";
     this.dtgcCardID.MappingName = "CardID";
     this.dtgcCardID.Width = 75;
     //
     // dtgcEmployeeName
     //
     this.dtgcEmployeeName.Format = "";
     this.dtgcEmployeeName.FormatInfo = null;
     this.dtgcEmployeeName.HeaderText = "Tên nhân viên";
     this.dtgcEmployeeName.MappingName = "EmployeeName";
     this.dtgcEmployeeName.Width = 120;
     //
     // dtgcDepartment
     //
     this.dtgcDepartment.Format = "";
     this.dtgcDepartment.FormatInfo = null;
     this.dtgcDepartment.HeaderText = "Phòng";
     this.dtgcDepartment.MappingName = "DepartmentName";
     this.dtgcDepartment.Width = 80;
     //
     // dtgcLeaveLocation
     //
     this.dtgcLeaveLocation.Format = "";
     this.dtgcLeaveLocation.FormatInfo = null;
     this.dtgcLeaveLocation.HeaderText = "Nơi công tác";
     this.dtgcLeaveLocation.MappingName = "LeaveLocation";
     this.dtgcLeaveLocation.Width = 75;
     //
     // dtgcWorkInfo
     //
     this.dtgcWorkInfo.Format = "";
     this.dtgcWorkInfo.FormatInfo = null;
     this.dtgcWorkInfo.HeaderText = "Công việc";
     this.dtgcWorkInfo.MappingName = "WorkInfo";
     this.dtgcWorkInfo.Width = 150;
     //
     // dtgcStartLeave
     //
     this.dtgcStartLeave.Format = "";
     this.dtgcStartLeave.FormatInfo = null;
     this.dtgcStartLeave.HeaderText = "Ngày đi";
     this.dtgcStartLeave.MappingName = "StartLeave";
     this.dtgcStartLeave.Width = 75;
     //
     // dtgcEndLeave
     //
     this.dtgcEndLeave.Format = "";
     this.dtgcEndLeave.FormatInfo = null;
     this.dtgcEndLeave.HeaderText = "Ngày về";
     this.dtgcEndLeave.MappingName = "EndLeave";
     this.dtgcEndLeave.Width = 75;
     //
     // tableModel1
     //
     this.tableModel1.Rows.AddRange(new XPTable.Models.Row[] {
                                                                 row1});
     //
     // columnModel1
     //
     this.columnModel1.Columns.AddRange(new XPTable.Models.Column[] {
                                                                        this.cSTT,
                                                                        this.chDepartment,
                                                                        this.chCardID,
                                                                        this.chEmployeeName,
                                                                        this.chStartLeave,
                                                                        this.EndLeave,
                                                                        this.chLeaveLocation,
                                                                        this.chWorkInfo});
     //
     // cSTT
     //
     this.cSTT.Editable = false;
     this.cSTT.Text = "STT";
     this.cSTT.Width = 40;
     //
     // chDepartment
     //
     this.chDepartment.Editable = false;
     this.chDepartment.Text = "Bộ phận";
     this.chDepartment.Width = 100;
     //
     // chCardID
     //
     this.chCardID.Editable = false;
     this.chCardID.Text = "Mã thẻ";
     this.chCardID.Width = 60;
     //
     // chEmployeeName
     //
     this.chEmployeeName.Editable = false;
     this.chEmployeeName.Text = "Tên nhân viên";
     this.chEmployeeName.Width = 130;
     //
     // chStartLeave
     //
     this.chStartLeave.Editable = false;
     this.chStartLeave.Text = "Bắt đầu";
     //
     // EndLeave
     //
     this.EndLeave.Editable = false;
     this.EndLeave.Text = "Kết thúc";
     //
     // chLeaveLocation
     //
     this.chLeaveLocation.Editable = false;
     this.chLeaveLocation.Text = "Nơi công tác";
     this.chLeaveLocation.Width = 90;
     //
     // chWorkInfo
     //
     this.chWorkInfo.Editable = false;
     this.chWorkInfo.Text = "Nội dung công việc";
     this.chWorkInfo.Width = 140;
     //
     // lvwLeaveSchedule
     //
     this.lvwLeaveSchedule.AlternatingRowColor = System.Drawing.Color.FromArgb(((System.Byte)(230)), ((System.Byte)(237)), ((System.Byte)(245)));
     this.lvwLeaveSchedule.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.lvwLeaveSchedule.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(237)), ((System.Byte)(242)), ((System.Byte)(249)));
     this.lvwLeaveSchedule.ColumnModel = this.columnModel1;
     this.lvwLeaveSchedule.EnableToolTips = true;
     this.lvwLeaveSchedule.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
     this.lvwLeaveSchedule.FullRowSelect = true;
     this.lvwLeaveSchedule.GridColor = System.Drawing.SystemColors.ControlDark;
     this.lvwLeaveSchedule.GridLines = XPTable.Models.GridLines.Both;
     this.lvwLeaveSchedule.GridLineStyle = XPTable.Models.GridLineStyle.Dot;
     this.lvwLeaveSchedule.HeaderFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.lvwLeaveSchedule.Location = new System.Drawing.Point(8, 16);
     this.lvwLeaveSchedule.Name = "lvwLeaveSchedule";
     this.lvwLeaveSchedule.NoItemsText = WorkingContext.LangManager.GetString("XPtable");
     this.lvwLeaveSchedule.SelectionBackColor = System.Drawing.Color.FromArgb(((System.Byte)(169)), ((System.Byte)(183)), ((System.Byte)(201)));
     this.lvwLeaveSchedule.SelectionForeColor = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
     this.lvwLeaveSchedule.SelectionStyle = XPTable.Models.SelectionStyle.Grid;
     this.lvwLeaveSchedule.Size = new System.Drawing.Size(688, 400);
     this.lvwLeaveSchedule.SortedColumnBackColor = System.Drawing.Color.Transparent;
     this.lvwLeaveSchedule.TabIndex = 30;
     this.lvwLeaveSchedule.TableModel = this.tableModel1;
     this.lvwLeaveSchedule.UnfocusedSelectionBackColor = System.Drawing.Color.FromArgb(((System.Byte)(201)), ((System.Byte)(210)), ((System.Byte)(221)));
     this.lvwLeaveSchedule.UnfocusedSelectionForeColor = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
     this.lvwLeaveSchedule.SelectionChanged += new XPTable.Events.SelectionEventHandler(this.lvwLeaveSchedule_SelectionChanged);
     this.lvwLeaveSchedule.MouseDown += new System.Windows.Forms.MouseEventHandler(this.lvwLeaveSchedule_MouseDown);
     //
     // 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.lvwLeaveSchedule);
     this.groupBox1.Location = new System.Drawing.Point(8, 48);
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.Size = new System.Drawing.Size(704, 424);
     this.groupBox1.TabIndex = 31;
     this.groupBox1.TabStop = false;
     //
     // groupBox2
     //
     this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
         | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox2.Controls.Add(this.dtpTo);
     this.groupBox2.Controls.Add(this.dtpFrom);
     this.groupBox2.Controls.Add(this.label3);
     this.groupBox2.Controls.Add(this.label2);
     this.groupBox2.Controls.Add(this.label1);
     this.groupBox2.Controls.Add(this.cboDepartment);
     this.groupBox2.Location = new System.Drawing.Point(8, 0);
     this.groupBox2.Name = "groupBox2";
     this.groupBox2.Size = new System.Drawing.Size(704, 48);
     this.groupBox2.TabIndex = 32;
     this.groupBox2.TabStop = false;
     //
     // 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(472, 480);
     this.btnEdit.Name = "btnEdit";
     this.btnEdit.TabIndex = 36;
     this.btnEdit.Text = "Sửa";
     this.btnEdit.Click += new System.EventHandler(this.btnEdit_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(552, 480);
     this.btnDelete.Name = "btnDelete";
     this.btnDelete.TabIndex = 37;
     this.btnDelete.Text = "Xóa";
     this.btnDelete.Click += new System.EventHandler(this.btnDelete_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(392, 480);
     this.btnAdd.Name = "btnAdd";
     this.btnAdd.TabIndex = 35;
     this.btnAdd.Text = "Thêm";
     this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
     //
     // btnView
     //
     this.btnView.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.btnView.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnView.Location = new System.Drawing.Point(8, 480);
     this.btnView.Name = "btnView";
     this.btnView.TabIndex = 33;
     this.btnView.Text = "Xem";
     this.btnView.Click += new System.EventHandler(this.btnView_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(632, 480);
     this.btnClose.Name = "btnClose";
     this.btnClose.TabIndex = 34;
     this.btnClose.Text = "Đóng";
     this.btnClose.Click += new System.EventHandler(this.btnClose_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(272, 480);
     this.btnExcel.Name = "btnExcel";
     this.btnExcel.Size = new System.Drawing.Size(112, 23);
     this.btnExcel.TabIndex = 38;
     this.btnExcel.Text = "Xuất Excel";
     this.btnExcel.Click += new System.EventHandler(this.btnExcel_Click);
     //
     // frmListLeaveSchedule
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize = new System.Drawing.Size(720, 510);
     this.Controls.Add(this.btnExcel);
     this.Controls.Add(this.btnEdit);
     this.Controls.Add(this.btnDelete);
     this.Controls.Add(this.btnAdd);
     this.Controls.Add(this.btnView);
     this.Controls.Add(this.btnClose);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name = "frmListLeaveSchedule";
     this.Text = "Danh sách nhân viên đi công tác";
     this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
     this.Load += new System.EventHandler(this.ListLeaveSchedule_Load);
     ((System.ComponentModel.ISupportInitialize)(this.lvwLeaveSchedule)).EndInit();
     this.groupBox1.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     this.ResumeLayout(false);
 }
示例#20
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmListPunish));
     this.cWorkingDay     = new XPTable.Models.TextColumn();
     this.cReason         = new XPTable.Models.TextColumn();
     this.cCardName       = new XPTable.Models.TextColumn();
     this.cCardID         = new XPTable.Models.TextColumn();
     this.cEmployeeName   = new XPTable.Models.TextColumn();
     this.cDepartmentName = new XPTable.Models.TextColumn();
     this.dtpToDate       = new System.Windows.Forms.DateTimePicker();
     this.dtpFromDate     = new System.Windows.Forms.DateTimePicker();
     this.btnAdd          = new System.Windows.Forms.Button();
     this.dgsCardID       = new System.Windows.Forms.DataGridTextBoxColumn();
     this.tableModel1     = new XPTable.Models.TableModel();
     this.btnView         = new System.Windows.Forms.Button();
     this.dgsEmployeeName = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dtgStartRest    = new System.Windows.Forms.DataGridTextBoxColumn();
     this.groupBox1       = new System.Windows.Forms.GroupBox();
     this.lvwListPunish   = new XPTable.Models.Table();
     this.columnModel1    = new XPTable.Models.ColumnModel();
     this.cSTT            = new XPTable.Models.NumberColumn();
     this.cboDepartment   = new System.Windows.Forms.ComboBox();
     this.btnDelete       = new System.Windows.Forms.Button();
     this.dgsDepartment   = new System.Windows.Forms.DataGridTextBoxColumn();
     this.label3          = new System.Windows.Forms.Label();
     this.label2          = new System.Windows.Forms.Label();
     this.btnModify       = new System.Windows.Forms.Button();
     this.label1          = new System.Windows.Forms.Label();
     this.dgsEndRest      = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dtgDayName      = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dgsRestReason   = new System.Windows.Forms.DataGridTextBoxColumn();
     this.btnClose        = new System.Windows.Forms.Button();
     this.groupBox2       = new System.Windows.Forms.GroupBox();
     this.btnExcel        = new System.Windows.Forms.Button();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.lvwListPunish)).BeginInit();
     this.groupBox2.SuspendLayout();
     this.SuspendLayout();
     //
     // cWorkingDay
     //
     this.cWorkingDay.Editable = false;
     this.cWorkingDay.Text     = "Ngày làm việc";
     this.cWorkingDay.Width    = 90;
     //
     // cReason
     //
     this.cReason.Editable = false;
     this.cReason.Text     = "Lý do phạt";
     this.cReason.Width    = 170;
     //
     // cCardName
     //
     this.cCardName.Editable = false;
     this.cCardName.Text     = "Hình thức phạt";
     this.cCardName.Width    = 110;
     //
     // cCardID
     //
     this.cCardID.Editable = false;
     this.cCardID.Text     = "Mã thẻ";
     this.cCardID.Width    = 60;
     //
     // cEmployeeName
     //
     this.cEmployeeName.Editable = false;
     this.cEmployeeName.Text     = "Tên nhân viên";
     this.cEmployeeName.Width    = 130;
     //
     // cDepartmentName
     //
     this.cDepartmentName.Editable = false;
     this.cDepartmentName.Text     = "Tên bộ phận";
     this.cDepartmentName.Width    = 100;
     //
     // dtpToDate
     //
     this.dtpToDate.CustomFormat = "dd/MM/yyyy   ";
     this.dtpToDate.Format       = System.Windows.Forms.DateTimePickerFormat.Custom;
     this.dtpToDate.Location     = new System.Drawing.Point(224, 16);
     this.dtpToDate.Name         = "dtpToDate";
     this.dtpToDate.Size         = new System.Drawing.Size(88, 20);
     this.dtpToDate.TabIndex     = 15;
     this.dtpToDate.CloseUp     += new System.EventHandler(this.dtpToDate_CloseUp);
     //
     // dtpFromDate
     //
     this.dtpFromDate.CustomFormat = "dd/MM/yyyy    ";
     this.dtpFromDate.Format       = System.Windows.Forms.DateTimePickerFormat.Custom;
     this.dtpFromDate.Location     = new System.Drawing.Point(64, 16);
     this.dtpFromDate.Name         = "dtpFromDate";
     this.dtpFromDate.Size         = new System.Drawing.Size(88, 20);
     this.dtpFromDate.TabIndex     = 13;
     this.dtpFromDate.CloseUp     += new System.EventHandler(this.dtpFromDate_CloseUp);
     //
     // 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(464, 480);
     this.btnAdd.Name      = "btnAdd";
     this.btnAdd.TabIndex  = 19;
     this.btnAdd.Text      = "Thêm &mới";
     this.btnAdd.Click    += new System.EventHandler(this.btnAdd_Click);
     //
     // dgsCardID
     //
     this.dgsCardID.Format      = "";
     this.dgsCardID.FormatInfo  = null;
     this.dgsCardID.HeaderText  = "Mã nhân viên";
     this.dgsCardID.MappingName = "CardID";
     this.dgsCardID.Width       = 75;
     //
     // btnView
     //
     this.btnView.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.btnView.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnView.Location  = new System.Drawing.Point(4, 480);
     this.btnView.Name      = "btnView";
     this.btnView.TabIndex  = 20;
     this.btnView.Text      = "Xem";
     this.btnView.Click    += new System.EventHandler(this.btnView_Click);
     //
     // dgsEmployeeName
     //
     this.dgsEmployeeName.Format      = "";
     this.dgsEmployeeName.FormatInfo  = null;
     this.dgsEmployeeName.HeaderText  = "Tên nhân viên";
     this.dgsEmployeeName.MappingName = "EmployeeName";
     this.dgsEmployeeName.Width       = 120;
     //
     // dtgStartRest
     //
     this.dtgStartRest.Format      = "dd/MM/yyyy    ";
     this.dtgStartRest.FormatInfo  = null;
     this.dtgStartRest.HeaderText  = "Bắt đầu";
     this.dtgStartRest.MappingName = "StartRest";
     this.dtgStartRest.Width       = 75;
     //
     // 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.lvwListPunish);
     this.groupBox1.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.groupBox1.Font      = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(163)));
     this.groupBox1.Location  = new System.Drawing.Point(8, 48);
     this.groupBox1.Name      = "groupBox1";
     this.groupBox1.Size      = new System.Drawing.Size(768, 424);
     this.groupBox1.TabIndex  = 18;
     this.groupBox1.TabStop   = false;
     this.groupBox1.Text      = "Danh sách nhân viên bị phạt";
     //
     // lvwListPunish
     //
     this.lvwListPunish.AlternatingRowColor = System.Drawing.Color.FromArgb(((System.Byte)(230)), ((System.Byte)(237)), ((System.Byte)(245)));
     this.lvwListPunish.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.lvwListPunish.BackColor                   = System.Drawing.Color.FromArgb(((System.Byte)(237)), ((System.Byte)(242)), ((System.Byte)(249)));
     this.lvwListPunish.ColumnModel                 = this.columnModel1;
     this.lvwListPunish.EnableToolTips              = true;
     this.lvwListPunish.ForeColor                   = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
     this.lvwListPunish.FullRowSelect               = true;
     this.lvwListPunish.GridColor                   = System.Drawing.SystemColors.ControlDark;
     this.lvwListPunish.GridLines                   = XPTable.Models.GridLines.Both;
     this.lvwListPunish.GridLineStyle               = XPTable.Models.GridLineStyle.Dot;
     this.lvwListPunish.HeaderFont                  = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.lvwListPunish.Location                    = new System.Drawing.Point(8, 16);
     this.lvwListPunish.Name                        = "lvwListPunish";
     this.lvwListPunish.NoItemsText                 = WorkingContext.LangManager.GetString("XPtable");
     this.lvwListPunish.SelectionBackColor          = System.Drawing.Color.FromArgb(((System.Byte)(169)), ((System.Byte)(183)), ((System.Byte)(201)));
     this.lvwListPunish.SelectionForeColor          = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
     this.lvwListPunish.SelectionStyle              = XPTable.Models.SelectionStyle.Grid;
     this.lvwListPunish.Size                        = new System.Drawing.Size(752, 392);
     this.lvwListPunish.SortedColumnBackColor       = System.Drawing.Color.Transparent;
     this.lvwListPunish.TabIndex                    = 11;
     this.lvwListPunish.TableModel                  = this.tableModel1;
     this.lvwListPunish.UnfocusedSelectionBackColor = System.Drawing.Color.FromArgb(((System.Byte)(201)), ((System.Byte)(210)), ((System.Byte)(221)));
     this.lvwListPunish.UnfocusedSelectionForeColor = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
     this.lvwListPunish.SelectionChanged           += new XPTable.Events.SelectionEventHandler(this.lvwListPunish_SelectionChanged);
     this.lvwListPunish.MouseDown                  += new System.Windows.Forms.MouseEventHandler(this.lvwListPunish_MouseDown);
     //
     // columnModel1
     //
     this.columnModel1.Columns.AddRange(new XPTable.Models.Column[] {
         this.cSTT,
         this.cDepartmentName,
         this.cCardID,
         this.cEmployeeName,
         this.cCardName,
         this.cWorkingDay,
         this.cReason
     });
     //
     // cSTT
     //
     this.cSTT.Editable = false;
     this.cSTT.Maximum  = new System.Decimal(new int[] {
         10000,
         0,
         0,
         0
     });
     this.cSTT.Text  = "STT";
     this.cSTT.Width = 40;
     //
     // cboDepartment
     //
     this.cboDepartment.Anchor        = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.cboDepartment.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cboDepartment.Location      = new System.Drawing.Point(584, 16);
     this.cboDepartment.Name          = "cboDepartment";
     this.cboDepartment.Size          = new System.Drawing.Size(176, 21);
     this.cboDepartment.TabIndex      = 17;
     //
     // 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(624, 480);
     this.btnDelete.Name      = "btnDelete";
     this.btnDelete.TabIndex  = 23;
     this.btnDelete.Text      = "&Xóa";
     this.btnDelete.Click    += new System.EventHandler(this.btnDelete_Click);
     //
     // dgsDepartment
     //
     this.dgsDepartment.Format      = "";
     this.dgsDepartment.FormatInfo  = null;
     this.dgsDepartment.HeaderText  = "Phòng";
     this.dgsDepartment.MappingName = "DepartmentName";
     this.dgsDepartment.Width       = 80;
     //
     // label3
     //
     this.label3.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.label3.Location  = new System.Drawing.Point(504, 16);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(72, 23);
     this.label3.TabIndex  = 16;
     this.label3.Text      = "Tên bộ phận";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // label2
     //
     this.label2.Location  = new System.Drawing.Point(160, 16);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(64, 23);
     this.label2.TabIndex  = 14;
     this.label2.Text      = "Đến ngày";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // btnModify
     //
     this.btnModify.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnModify.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnModify.Location  = new System.Drawing.Point(544, 480);
     this.btnModify.Name      = "btnModify";
     this.btnModify.TabIndex  = 22;
     this.btnModify.Text      = "&Sửa";
     this.btnModify.Click    += new System.EventHandler(this.btnModify_Click);
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(8, 16);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(56, 23);
     this.label1.TabIndex  = 12;
     this.label1.Text      = "Từ ngày";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // dgsEndRest
     //
     this.dgsEndRest.Format      = "dd/MM/yyyy    ";
     this.dgsEndRest.FormatInfo  = null;
     this.dgsEndRest.HeaderText  = "Kết thúc";
     this.dgsEndRest.MappingName = "EndRest";
     this.dgsEndRest.Width       = 75;
     //
     // dtgDayName
     //
     this.dtgDayName.Format      = "";
     this.dtgDayName.FormatInfo  = null;
     this.dtgDayName.HeaderText  = "Kiểu ngày";
     this.dtgDayName.MappingName = "DayName";
     this.dtgDayName.Width       = 90;
     //
     // dgsRestReason
     //
     this.dgsRestReason.Format      = "";
     this.dgsRestReason.FormatInfo  = null;
     this.dgsRestReason.HeaderText  = "Lý do nghỉ";
     this.dgsRestReason.MappingName = "RestReason";
     this.dgsRestReason.Width       = 120;
     //
     // 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, 480);
     this.btnClose.Name         = "btnClose";
     this.btnClose.TabIndex     = 21;
     this.btnClose.Text         = "&Đóng";
     this.btnClose.Click       += new System.EventHandler(this.btnClose_Click);
     //
     // groupBox2
     //
     this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox2.Controls.Add(this.cboDepartment);
     this.groupBox2.Controls.Add(this.label3);
     this.groupBox2.Controls.Add(this.dtpFromDate);
     this.groupBox2.Controls.Add(this.label2);
     this.groupBox2.Controls.Add(this.dtpToDate);
     this.groupBox2.Controls.Add(this.label1);
     this.groupBox2.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.groupBox2.Location  = new System.Drawing.Point(8, 0);
     this.groupBox2.Name      = "groupBox2";
     this.groupBox2.Size      = new System.Drawing.Size(768, 48);
     this.groupBox2.TabIndex  = 24;
     this.groupBox2.TabStop   = false;
     //
     // 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(352, 480);
     this.btnExcel.Name      = "btnExcel";
     this.btnExcel.Size      = new System.Drawing.Size(104, 24);
     this.btnExcel.TabIndex  = 25;
     this.btnExcel.Text      = "Xuất &Excel";
     this.btnExcel.Click    += new System.EventHandler(this.btnExcel_Click);
     //
     // frmListPunish
     //
     this.AcceptButton      = this.btnView;
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton      = this.btnClose;
     this.ClientSize        = new System.Drawing.Size(784, 510);
     this.Controls.Add(this.btnExcel);
     this.Controls.Add(this.btnAdd);
     this.Controls.Add(this.btnView);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.btnDelete);
     this.Controls.Add(this.btnModify);
     this.Controls.Add(this.btnClose);
     this.Controls.Add(this.groupBox2);
     this.Icon        = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name        = "frmListPunish";
     this.Text        = "Danh sách nhân viên bị phạt";
     this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
     this.Load       += new System.EventHandler(this.frmLishPunish_Load);
     this.groupBox1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.lvwListPunish)).EndInit();
     this.groupBox2.ResumeLayout(false);
     this.ResumeLayout(false);
 }
示例#21
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.btnClose = new System.Windows.Forms.Button();
     this.btnEdit = new System.Windows.Forms.Button();
     this.btnGennerateSocial = new System.Windows.Forms.Button();
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.btnSearch = new System.Windows.Forms.Button();
     this.txtSearch = new System.Windows.Forms.TextBox();
     this.lvwSocialInsuranceSheet = new XPTable.Models.Table();
     this.columnModel1 = new XPTable.Models.ColumnModel();
     this.cSTT = new XPTable.Models.TextColumn();
     this.cDepartment = new XPTable.Models.TextColumn();
     this.cCardID = new XPTable.Models.TextColumn();
     this.cEmployeeName = new XPTable.Models.TextColumn();
     this.cSocialNumber = new XPTable.Models.TextColumn();
     this.cBasicSalary = new XPTable.Models.NumberColumn();
     this.cSocialPeriod = new XPTable.Models.NumberColumn();
     this.cRestDayInTerm = new XPTable.Models.NumberColumn();
     this.cRestDayInYear = new XPTable.Models.NumberColumn();
     this.cMoneyAllowance = new XPTable.Models.NumberColumn();
     this.cRestDayApproved = new XPTable.Models.NumberColumn();
     this.cMoneyAllowanceApproved = new XPTable.Models.NumberColumn();
     this.cNote = new XPTable.Models.TextColumn();
     this.tableModel1 = new XPTable.Models.TableModel();
     this.btnDelete = new System.Windows.Forms.Button();
     this.btnExportExcel = new System.Windows.Forms.Button();
     this.btnToReport = new System.Windows.Forms.Button();
     this.groupBox2 = new System.Windows.Forms.GroupBox();
     this.dtpToDate = new System.Windows.Forms.DateTimePicker();
     this.label2 = new System.Windows.Forms.Label();
     this.dtpFromDate = new System.Windows.Forms.DateTimePicker();
     this.label1 = new System.Windows.Forms.Label();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.lvwSocialInsuranceSheet)).BeginInit();
     this.groupBox2.SuspendLayout();
     this.SuspendLayout();
     //
     // 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, 536);
     this.btnClose.Name = "btnClose";
     this.btnClose.TabIndex = 0;
     this.btnClose.Text = "Đóng";
     this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
     //
     // 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(344, 536);
     this.btnEdit.Name = "btnEdit";
     this.btnEdit.TabIndex = 1;
     this.btnEdit.Text = "Cập nhật";
     this.btnEdit.Click += new System.EventHandler(this.btnEdit_Click);
     //
     // btnGennerateSocial
     //
     this.btnGennerateSocial.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.btnGennerateSocial.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnGennerateSocial.Location = new System.Drawing.Point(8, 536);
     this.btnGennerateSocial.Name = "btnGennerateSocial";
     this.btnGennerateSocial.Size = new System.Drawing.Size(208, 23);
     this.btnGennerateSocial.TabIndex = 2;
     this.btnGennerateSocial.Text = "Sinh bảng BHYT- BHXH";
     this.btnGennerateSocial.Click += new System.EventHandler(this.btnGennerateSocial_Click);
     //
     // 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.lvwSocialInsuranceSheet);
     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(788, 472);
     this.groupBox1.TabIndex = 3;
     this.groupBox1.TabStop = false;
     this.groupBox1.Text = "Danh sách lao độ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, 440);
     this.btnSearch.Name = "btnSearch";
     this.btnSearch.Size = new System.Drawing.Size(72, 24);
     this.btnSearch.TabIndex = 14;
     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, 440);
     this.txtSearch.Name = "txtSearch";
     this.txtSearch.Size = new System.Drawing.Size(128, 20);
     this.txtSearch.TabIndex = 13;
     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);
     //
     // lvwSocialInsuranceSheet
     //
     this.lvwSocialInsuranceSheet.AlternatingRowColor = System.Drawing.Color.FromArgb(((System.Byte)(230)), ((System.Byte)(237)), ((System.Byte)(245)));
     this.lvwSocialInsuranceSheet.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.lvwSocialInsuranceSheet.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(237)), ((System.Byte)(242)), ((System.Byte)(249)));
     this.lvwSocialInsuranceSheet.ColumnModel = this.columnModel1;
     this.lvwSocialInsuranceSheet.EditStartAction = XPTable.Editors.EditStartAction.SingleClick;
     this.lvwSocialInsuranceSheet.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
     this.lvwSocialInsuranceSheet.FullRowSelect = true;
     this.lvwSocialInsuranceSheet.GridColor = System.Drawing.SystemColors.ControlDark;
     this.lvwSocialInsuranceSheet.GridLines = XPTable.Models.GridLines.Both;
     this.lvwSocialInsuranceSheet.GridLineStyle = XPTable.Models.GridLineStyle.Dot;
     this.lvwSocialInsuranceSheet.Location = new System.Drawing.Point(8, 16);
     this.lvwSocialInsuranceSheet.Name = "lvwSocialInsuranceSheet";
     this.lvwSocialInsuranceSheet.NoItemsText = WorkingContext.LangManager.GetString("XPtable");
     this.lvwSocialInsuranceSheet.SelectionBackColor = System.Drawing.Color.FromArgb(((System.Byte)(169)), ((System.Byte)(183)), ((System.Byte)(201)));
     this.lvwSocialInsuranceSheet.SelectionForeColor = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
     this.lvwSocialInsuranceSheet.SelectionStyle = XPTable.Models.SelectionStyle.Grid;
     this.lvwSocialInsuranceSheet.Size = new System.Drawing.Size(772, 416);
     this.lvwSocialInsuranceSheet.SortedColumnBackColor = System.Drawing.Color.Transparent;
     this.lvwSocialInsuranceSheet.TabIndex = 12;
     this.lvwSocialInsuranceSheet.TableModel = this.tableModel1;
     this.lvwSocialInsuranceSheet.Text = "table1";
     this.lvwSocialInsuranceSheet.UnfocusedSelectionBackColor = System.Drawing.Color.FromArgb(((System.Byte)(201)), ((System.Byte)(210)), ((System.Byte)(221)));
     this.lvwSocialInsuranceSheet.UnfocusedSelectionForeColor = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
     this.lvwSocialInsuranceSheet.EditingStopped += new XPTable.Events.CellEditEventHandler(this.lvwSocialInsuranceSheet_EditingStopped);
     this.lvwSocialInsuranceSheet.SelectionChanged += new XPTable.Events.SelectionEventHandler(this.lvwSocialInsuranceSheet_SelectionChanged);
     //
     // columnModel1
     //
     this.columnModel1.Columns.AddRange(new XPTable.Models.Column[] {
                                                                        this.cSTT,
                                                                        this.cDepartment,
                                                                        this.cCardID,
                                                                        this.cEmployeeName,
                                                                        this.cSocialNumber,
                                                                        this.cBasicSalary,
                                                                        this.cSocialPeriod,
                                                                        this.cRestDayInTerm,
                                                                        this.cRestDayInYear,
                                                                        this.cMoneyAllowance,
                                                                        this.cRestDayApproved,
                                                                        this.cMoneyAllowanceApproved,
                                                                        this.cNote});
     //
     // cSTT
     //
     this.cSTT.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.cSTT.Editable = false;
     this.cSTT.Text = "STT";
     this.cSTT.Width = 43;
     //
     // cDepartment
     //
     this.cDepartment.Editable = false;
     this.cDepartment.Text = "Bộ phận";
     this.cDepartment.Width = 114;
     //
     // cCardID
     //
     this.cCardID.Editable = false;
     this.cCardID.Text = "Mã thẻ";
     this.cCardID.Width = 63;
     //
     // cEmployeeName
     //
     this.cEmployeeName.Editable = false;
     this.cEmployeeName.Text = "Tên nhân viên";
     this.cEmployeeName.Width = 126;
     //
     // cSocialNumber
     //
     this.cSocialNumber.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.cSocialNumber.Editable = false;
     this.cSocialNumber.Text = "Số sổ BHXH";
     //
     // cBasicSalary
     //
     this.cBasicSalary.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.cBasicSalary.Editable = false;
     this.cBasicSalary.Format = "#,##0;(#,##0);0";
     this.cBasicSalary.Maximum = new System.Decimal(new int[] {
                                                                  99999999,
                                                                  0,
                                                                  0,
                                                                  0});
     this.cBasicSalary.Text = "Lương cơ bản";
     this.cBasicSalary.Width = 99;
     //
     // cSocialPeriod
     //
     this.cSocialPeriod.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.cSocialPeriod.Maximum = new System.Decimal(new int[] {
                                                                   1000,
                                                                   0,
                                                                   0,
                                                                   0});
     this.cSocialPeriod.Text = "Thời gian đóng BHXH";
     //
     // cRestDayInTerm
     //
     this.cRestDayInTerm.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.cRestDayInTerm.Maximum = new System.Decimal(new int[] {
                                                                    365,
                                                                    0,
                                                                    0,
                                                                    0});
     this.cRestDayInTerm.Text = "Số ngày nghỉ trong kỳ";
     this.cRestDayInTerm.Width = 115;
     //
     // cRestDayInYear
     //
     this.cRestDayInYear.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.cRestDayInYear.Maximum = new System.Decimal(new int[] {
                                                                    365,
                                                                    0,
                                                                    0,
                                                                    0});
     this.cRestDayInYear.Text = "Lũy kế từ đầu năm";
     this.cRestDayInYear.Width = 105;
     //
     // cMoneyAllowance
     //
     this.cMoneyAllowance.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.cMoneyAllowance.Editable = false;
     this.cMoneyAllowance.Format = "#,##0;(#,##0);0";
     this.cMoneyAllowance.Increment = new System.Decimal(new int[] {
                                                                       100,
                                                                       0,
                                                                       0,
                                                                       0});
     this.cMoneyAllowance.Maximum = new System.Decimal(new int[] {
                                                                     99999999,
                                                                     0,
                                                                     0,
                                                                     0});
     this.cMoneyAllowance.Text = "Tiền trợ cấp";
     //
     // cRestDayApproved
     //
     this.cRestDayApproved.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.cRestDayApproved.Maximum = new System.Decimal(new int[] {
                                                                      1000,
                                                                      0,
                                                                      0,
                                                                      0});
     this.cRestDayApproved.Text = "Số ngày được xét";
     //
     // cMoneyAllowanceApproved
     //
     this.cMoneyAllowanceApproved.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.cMoneyAllowanceApproved.Editable = false;
     this.cMoneyAllowanceApproved.Format = "#,##0;(#,##0);0";
     this.cMoneyAllowanceApproved.Increment = new System.Decimal(new int[] {
                                                                               100,
                                                                               0,
                                                                               0,
                                                                               0});
     this.cMoneyAllowanceApproved.Maximum = new System.Decimal(new int[] {
                                                                             100000000,
                                                                             0,
                                                                             0,
                                                                             0});
     this.cMoneyAllowanceApproved.Text = "Số tiền được xét";
     this.cMoneyAllowanceApproved.Width = 94;
     //
     // cNote
     //
     this.cNote.Editable = false;
     this.cNote.Text = "Ghi chú";
     this.cNote.Width = 115;
     //
     // 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, 536);
     this.btnDelete.Name = "btnDelete";
     this.btnDelete.TabIndex = 4;
     this.btnDelete.Text = "Xóa";
     this.btnDelete.Click += new System.EventHandler(this.btnDelete_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(520, 536);
     this.btnExportExcel.Name = "btnExportExcel";
     this.btnExportExcel.Size = new System.Drawing.Size(112, 23);
     this.btnExportExcel.TabIndex = 5;
     this.btnExportExcel.Text = "Xuất Excel";
     this.btnExportExcel.Click += new System.EventHandler(this.btnExportExcel_Click);
     //
     // btnToReport
     //
     this.btnToReport.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnToReport.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnToReport.Location = new System.Drawing.Point(644, 536);
     this.btnToReport.Name = "btnToReport";
     this.btnToReport.TabIndex = 6;
     this.btnToReport.Text = "Xuất báo cáo";
     this.btnToReport.Click += new System.EventHandler(this.btnToReport_Click);
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.dtpToDate);
     this.groupBox2.Controls.Add(this.label2);
     this.groupBox2.Controls.Add(this.dtpFromDate);
     this.groupBox2.Controls.Add(this.label1);
     this.groupBox2.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.groupBox2.Location = new System.Drawing.Point(8, 8);
     this.groupBox2.Name = "groupBox2";
     this.groupBox2.Size = new System.Drawing.Size(312, 48);
     this.groupBox2.TabIndex = 7;
     this.groupBox2.TabStop = false;
     this.groupBox2.Text = "Thời gian";
     //
     // dtpToDate
     //
     this.dtpToDate.Anchor = System.Windows.Forms.AnchorStyles.Right;
     this.dtpToDate.CustomFormat = "dd/MM/yyyy";
     this.dtpToDate.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
     this.dtpToDate.Location = new System.Drawing.Point(216, 16);
     this.dtpToDate.Name = "dtpToDate";
     this.dtpToDate.Size = new System.Drawing.Size(88, 20);
     this.dtpToDate.TabIndex = 3;
     //
     // label2
     //
     this.label2.Anchor = System.Windows.Forms.AnchorStyles.Right;
     this.label2.Location = new System.Drawing.Point(160, 16);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(56, 23);
     this.label2.TabIndex = 2;
     this.label2.Text = "Đến ngày";
     //
     // dtpFromDate
     //
     this.dtpFromDate.Anchor = System.Windows.Forms.AnchorStyles.Left;
     this.dtpFromDate.CustomFormat = "dd/MM/yyyy";
     this.dtpFromDate.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
     this.dtpFromDate.Location = new System.Drawing.Point(64, 16);
     this.dtpFromDate.Name = "dtpFromDate";
     this.dtpFromDate.Size = new System.Drawing.Size(88, 20);
     this.dtpFromDate.TabIndex = 1;
     //
     // label1
     //
     this.label1.Anchor = System.Windows.Forms.AnchorStyles.Left;
     this.label1.Location = new System.Drawing.Point(8, 16);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(48, 23);
     this.label1.TabIndex = 0;
     this.label1.Text = "Từ ngày";
     //
     // frmSocialSheet
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton = this.btnClose;
     this.ClientSize = new System.Drawing.Size(804, 566);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.btnToReport);
     this.Controls.Add(this.btnExportExcel);
     this.Controls.Add(this.btnDelete);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.btnGennerateSocial);
     this.Controls.Add(this.btnEdit);
     this.Controls.Add(this.btnClose);
     this.Name = "frmSocialSheet";
     this.Text = "Quản lý bảo hiểm xã hội";
     this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
     this.Load += new System.EventHandler(this.frmSocialSheet_Load);
     this.groupBox1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.lvwSocialInsuranceSheet)).EndInit();
     this.groupBox2.ResumeLayout(false);
     this.ResumeLayout(false);
 }
示例#22
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(frmListSalary));
     this.btnRefresh = new System.Windows.Forms.Button();
     this.btnExportExcel = new System.Windows.Forms.Button();
     this.grbDepartment = new System.Windows.Forms.GroupBox();
     this.cboDepartment = new MTGCComboBox();
     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.groupBox1 = new System.Windows.Forms.GroupBox();
     this.lbSumTL = new System.Windows.Forms.Label();
     this.lbSumBH = new System.Windows.Forms.Label();
     this.lbSumLT = new System.Windows.Forms.Label();
     this.lbSumKTK = new System.Windows.Forms.Label();
     this.lbSumBHXH = new System.Windows.Forms.Label();
     this.lbSumLCBBH = new System.Windows.Forms.Label();
     this.lbSumLCB = new System.Windows.Forms.Label();
     this.panel1 = new System.Windows.Forms.Panel();
     this.lvwSalary = 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.cBasicSalary = new XPTable.Models.NumberColumn();
     this.cHarmfulAllowance = new XPTable.Models.NumberColumn();
     this.cResponsibleAllowance = new XPTable.Models.NumberColumn();
     this.cDangerousAllowance = new XPTable.Models.NumberColumn();
     this.cLunchAllowance = new XPTable.Models.NumberColumn();
     this.cIntimateAllowance = new XPTable.Models.NumberColumn();
     this.cJapaneseAllowance = new XPTable.Models.NumberColumn();
     this.clGTGC = new XPTable.Models.NumberColumn();
     this.cTotalTimeSheet = new XPTable.Models.NumberColumn();
     this.cSumMoney = new XPTable.Models.NumberColumn();
     this.cOverTime1 = new XPTable.Models.TextColumn();
     this.cOverTime2 = new XPTable.Models.TextColumn();
     this.cOverTime3 = new XPTable.Models.TextColumn();
     this.cOverTime4 = new XPTable.Models.TextColumn();
     this.cOverTimeMoney = new XPTable.Models.NumberColumn();
     this.cOtherAddition = new XPTable.Models.NumberColumn();
     this.cInsurance = new XPTable.Models.NumberColumn();
     this.cPersonalIncomeTax = new XPTable.Models.NumberColumn();
     this.cTotalPaidLunch = new XPTable.Models.NumberColumn();
     this.cOtherDeduction = new XPTable.Models.NumberColumn();
     this.cSalaryBLD = new XPTable.Models.NumberColumn();
     this.cRealSalary = new XPTable.Models.NumberColumn();
     this.tableModel1 = new XPTable.Models.TableModel();
     this.lblTotalEmployee = new System.Windows.Forms.Label();
     this.btnSearch = new System.Windows.Forms.Button();
     this.txtSearch = new System.Windows.Forms.TextBox();
     this.btnClose = new System.Windows.Forms.Button();
     this.btnGenerate = new System.Windows.Forms.Button();
     this.btnUpdate = new System.Windows.Forms.Button();
     this.btnDelete = new System.Windows.Forms.Button();
     this.grbDepartment.SuspendLayout();
     this.grbMonth.SuspendLayout();
     this.groupBox1.SuspendLayout();
     this.panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.lvwSalary)).BeginInit();
     this.SuspendLayout();
     //
     // 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(604, 484);
     this.btnRefresh.Name = "btnRefresh";
     this.btnRefresh.Size = new System.Drawing.Size(80, 23);
     this.btnRefresh.TabIndex = 37;
     this.btnRefresh.Text = "&Nạp lại";
     this.btnRefresh.Click += new System.EventHandler(this.btnRefresh_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(300, 484);
     this.btnExportExcel.Name = "btnExportExcel";
     this.btnExportExcel.Size = new System.Drawing.Size(128, 23);
     this.btnExportExcel.TabIndex = 34;
     this.btnExportExcel.Text = "&Xuất Excel";
     this.btnExportExcel.Click += new System.EventHandler(this.btnExportExcel_Click);
     //
     // 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(548, 8);
     this.grbDepartment.Name = "grbDepartment";
     this.grbDepartment.Size = new System.Drawing.Size(216, 48);
     this.grbDepartment.TabIndex = 36;
     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);
     //
     // 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 = 35;
     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);
     //
     // 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.lbSumTL);
     this.groupBox1.Controls.Add(this.lbSumBH);
     this.groupBox1.Controls.Add(this.lbSumLT);
     this.groupBox1.Controls.Add(this.lbSumKTK);
     this.groupBox1.Controls.Add(this.lbSumBHXH);
     this.groupBox1.Controls.Add(this.lbSumLCBBH);
     this.groupBox1.Controls.Add(this.lbSumLCB);
     this.groupBox1.Controls.Add(this.panel1);
     this.groupBox1.Controls.Add(this.lblTotalEmployee);
     this.groupBox1.Controls.Add(this.btnSearch);
     this.groupBox1.Controls.Add(this.txtSearch);
     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, 412);
     this.groupBox1.TabIndex = 32;
     this.groupBox1.TabStop = false;
     this.groupBox1.Text = "Bảng lương chi tiết tháng";
     //
     // lbSumTL
     //
     this.lbSumTL.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.lbSumTL.Location = new System.Drawing.Point(532, 388);
     this.lbSumTL.Name = "lbSumTL";
     this.lbSumTL.Size = new System.Drawing.Size(144, 16);
     this.lbSumTL.TabIndex = 22;
     this.lbSumTL.Text = "Tổng TL:";
     this.lbSumTL.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // lbSumBH
     //
     this.lbSumBH.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.lbSumBH.Location = new System.Drawing.Point(532, 388);
     this.lbSumBH.Name = "lbSumBH";
     this.lbSumBH.Size = new System.Drawing.Size(104, 16);
     this.lbSumBH.TabIndex = 19;
     this.lbSumBH.Text = "Tổng BH:";
     this.lbSumBH.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // lbSumLT
     //
     this.lbSumLT.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.lbSumLT.Location = new System.Drawing.Point(420, 388);
     this.lbSumLT.Name = "lbSumLT";
     this.lbSumLT.Size = new System.Drawing.Size(112, 16);
     this.lbSumLT.TabIndex = 18;
     this.lbSumLT.Text = "Tổng LT:";
     this.lbSumLT.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // lbSumKTK
     //
     this.lbSumKTK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.lbSumKTK.Location = new System.Drawing.Point(292, 388);
     this.lbSumKTK.Name = "lbSumKTK";
     this.lbSumKTK.Size = new System.Drawing.Size(128, 16);
     this.lbSumKTK.TabIndex = 17;
     this.lbSumKTK.Text = "Tổng KTK:";
     this.lbSumKTK.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // lbSumBHXH
     //
     this.lbSumBHXH.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.lbSumBHXH.Location = new System.Drawing.Point(180, 388);
     this.lbSumBHXH.Name = "lbSumBHXH";
     this.lbSumBHXH.Size = new System.Drawing.Size(112, 16);
     this.lbSumBHXH.TabIndex = 16;
     this.lbSumBHXH.Text = "Tổng BH:";
     this.lbSumBHXH.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // lbSumLCBBH
     //
     this.lbSumLCBBH.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.lbSumLCBBH.Location = new System.Drawing.Point(85, 380);
     this.lbSumLCBBH.Name = "lbSumLCBBH";
     this.lbSumLCBBH.Size = new System.Drawing.Size(95, 27);
     this.lbSumLCBBH.TabIndex = 15;
     this.lbSumLCBBH.Text = "Tổng LCB(BH):";
     this.lbSumLCBBH.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // lbSumLCB
     //
     this.lbSumLCB.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.lbSumLCB.Location = new System.Drawing.Point(-31, 386);
     this.lbSumLCB.Name = "lbSumLCB";
     this.lbSumLCB.Size = new System.Drawing.Size(79, 21);
     this.lbSumLCB.TabIndex = 14;
     this.lbSumLCB.Text = "Tổng LCB:";
     this.lbSumLCB.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // panel1
     //
     this.panel1.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.panel1.Controls.Add(this.lvwSalary);
     this.panel1.Location = new System.Drawing.Point(8, 16);
     this.panel1.Name = "panel1";
     this.panel1.Size = new System.Drawing.Size(752, 356);
     this.panel1.TabIndex = 13;
     //
     // lvwSalary
     //
     this.lvwSalary.AlternatingRowColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(237)))), ((int)(((byte)(245)))));
     this.lvwSalary.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.lvwSalary.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(242)))), ((int)(((byte)(249)))));
     this.lvwSalary.ColumnModel = this.columnModel1;
     this.lvwSalary.EditStartAction = XPTable.Editors.EditStartAction.SingleClick;
     this.lvwSalary.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     this.lvwSalary.FullRowSelect = true;
     this.lvwSalary.GridColor = System.Drawing.SystemColors.ControlDark;
     this.lvwSalary.GridLines = XPTable.Models.GridLines.Both;
     this.lvwSalary.GridLineStyle = XPTable.Models.GridLineStyle.Dot;
     this.lvwSalary.HeaderFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
     this.lvwSalary.Location = new System.Drawing.Point(0, 0);
     this.lvwSalary.Name = "lvwSalary";
     this.lvwSalary.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(169)))), ((int)(((byte)(183)))), ((int)(((byte)(201)))));
     this.lvwSalary.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     this.lvwSalary.SelectionStyle = XPTable.Models.SelectionStyle.Grid;
     this.lvwSalary.Size = new System.Drawing.Size(752, 356);
     this.lvwSalary.SortedColumnBackColor = System.Drawing.Color.Transparent;
     this.lvwSalary.TabIndex = 10;
     this.lvwSalary.TableModel = this.tableModel1;
     this.lvwSalary.UnfocusedSelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(210)))), ((int)(((byte)(221)))));
     this.lvwSalary.UnfocusedSelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     this.lvwSalary.EditingStopped += new XPTable.Events.CellEditEventHandler(this.lvwSalary_EditingStopped);
     this.lvwSalary.Click += new System.EventHandler(this.lvwSalary_Click);
     this.lvwSalary.SelectionChanged += new XPTable.Events.SelectionEventHandler(this.lvwSalary_SelectionChanged);
     //
     // columnModel1
     //
     this.columnModel1.Columns.AddRange(new XPTable.Models.Column[] {
     this.cSTT,
     this.cDepartment,
     this.cCardID,
     this.cEmployeeName,
     this.cBasicSalary,
     this.cHarmfulAllowance,
     this.cResponsibleAllowance,
     this.cDangerousAllowance,
     this.cLunchAllowance,
     this.cIntimateAllowance,
     this.cJapaneseAllowance,
     this.clGTGC,
     this.cTotalTimeSheet,
     this.cSumMoney,
     this.cOverTime1,
     this.cOverTime2,
     this.cOverTime3,
     this.cOverTime4,
     this.cOverTimeMoney,
     this.cOtherAddition,
     this.cInsurance,
     this.cPersonalIncomeTax,
     this.cTotalPaidLunch,
     this.cOtherDeduction,
     this.cSalaryBLD,
     this.cRealSalary});
     //
     // 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;
     //
     // 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 CB";
     this.cBasicSalary.Width = 70;
     //
     // cHarmfulAllowance
     //
     this.cHarmfulAllowance.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.cHarmfulAllowance.Editable = false;
     this.cHarmfulAllowance.Format = "#,##0;(#,##0);0";
     this.cHarmfulAllowance.Increment = new decimal(new int[] {
     100,
     0,
     0,
     0});
     this.cHarmfulAllowance.Maximum = new decimal(new int[] {
     10000000,
     0,
     0,
     0});
     this.cHarmfulAllowance.Text = "Chức vụ";
     //
     // cResponsibleAllowance
     //
     this.cResponsibleAllowance.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.cResponsibleAllowance.Editable = false;
     this.cResponsibleAllowance.Format = "#,##0;(#,##0);0";
     this.cResponsibleAllowance.Increment = new decimal(new int[] {
     100,
     0,
     0,
     0});
     this.cResponsibleAllowance.Maximum = new decimal(new int[] {
     10000000,
     0,
     0,
     0});
     this.cResponsibleAllowance.Text = "Nghề nghiệp";
     //
     // cDangerousAllowance
     //
     this.cDangerousAllowance.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.cDangerousAllowance.Editable = false;
     this.cDangerousAllowance.Format = "#,##0;(#,##0);0";
     this.cDangerousAllowance.Increment = new decimal(new int[] {
     100,
     0,
     0,
     0});
     this.cDangerousAllowance.Maximum = new decimal(new int[] {
     10000000,
     0,
     0,
     0});
     this.cDangerousAllowance.Text = "Công việc";
     //
     // cLunchAllowance
     //
     this.cLunchAllowance.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.cLunchAllowance.Editable = false;
     this.cLunchAllowance.Format = "#,##0;(#,##0);-";
     this.cLunchAllowance.Increment = new decimal(new int[] {
     100,
     0,
     0,
     0});
     this.cLunchAllowance.Maximum = new decimal(new int[] {
     10000000,
     0,
     0,
     0});
     this.cLunchAllowance.Text = "Ăn trưa";
     //
     // cIntimateAllowance
     //
     this.cIntimateAllowance.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.cIntimateAllowance.Format = "#,##0;(#,##0);0";
     this.cIntimateAllowance.Increment = new decimal(new int[] {
     100,
     0,
     0,
     0});
     this.cIntimateAllowance.Maximum = new decimal(new int[] {
     100000000,
     0,
     0,
     0});
     this.cIntimateAllowance.Text = "Đi lại";
     //
     // cJapaneseAllowance
     //
     this.cJapaneseAllowance.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.cJapaneseAllowance.Editable = false;
     this.cJapaneseAllowance.Format = "#,##0;(#,##0);0";
     this.cJapaneseAllowance.Increment = new decimal(new int[] {
     100,
     0,
     0,
     0});
     this.cJapaneseAllowance.Maximum = new decimal(new int[] {
     100000000,
     0,
     0,
     0});
     this.cJapaneseAllowance.Text = "PC Tiếng nhật";
     this.cJapaneseAllowance.Width = 90;
     //
     // clGTGC
     //
     this.clGTGC.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.clGTGC.Editable = false;
     this.clGTGC.Maximum = new decimal(new int[] {
     10000,
     0,
     0,
     0});
     this.clGTGC.Text = "GTGC";
     this.clGTGC.Width = 50;
     //
     // cTotalTimeSheet
     //
     this.cTotalTimeSheet.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.cTotalTimeSheet.Text = "Số công";
     //
     // cSumMoney
     //
     this.cSumMoney.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.cSumMoney.Format = "#,##0;(#,##0);0";
     this.cSumMoney.Increment = new decimal(new int[] {
     100,
     0,
     0,
     0});
     this.cSumMoney.Maximum = new decimal(new int[] {
     10000000,
     0,
     0,
     0});
     this.cSumMoney.Text = "Số tiền đồng";
     //
     // cOverTime1
     //
     this.cOverTime1.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.cOverTime1.Editable = false;
     this.cOverTime1.Text = "LTHS1";
     this.cOverTime1.Width = 45;
     //
     // cOverTime2
     //
     this.cOverTime2.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.cOverTime2.Editable = false;
     this.cOverTime2.Text = "HS1.5";
     this.cOverTime2.Width = 45;
     //
     // cOverTime3
     //
     this.cOverTime3.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.cOverTime3.Editable = false;
     this.cOverTime3.Text = "HS2";
     this.cOverTime3.Width = 45;
     //
     // cOverTime4
     //
     this.cOverTime4.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.cOverTime4.Editable = false;
     this.cOverTime4.Text = "HS3";
     this.cOverTime4.Width = 45;
     //
     // cOverTimeMoney
     //
     this.cOverTimeMoney.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.cOverTimeMoney.Format = "#,##0;(#,##0);0";
     this.cOverTimeMoney.Increment = new decimal(new int[] {
     100,
     0,
     0,
     0});
     this.cOverTimeMoney.Maximum = new decimal(new int[] {
     10000000,
     0,
     0,
     0});
     this.cOverTimeMoney.Text = "Cộng LT";
     this.cOverTimeMoney.Width = 60;
     //
     // cOtherAddition
     //
     this.cOtherAddition.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.cOtherAddition.Format = "#,##0;(#,##0);-";
     this.cOtherAddition.Increment = new decimal(new int[] {
     100,
     0,
     0,
     0});
     this.cOtherAddition.Maximum = new decimal(new int[] {
     10000000,
     0,
     0,
     0});
     this.cOtherAddition.Text = "Cộng khác";
     this.cOtherAddition.Width = 65;
     //
     // cInsurance
     //
     this.cInsurance.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.cInsurance.Format = "#,##0;(#,##0);-";
     this.cInsurance.Increment = new decimal(new int[] {
     100,
     0,
     0,
     0});
     this.cInsurance.Maximum = new decimal(new int[] {
     10000000,
     0,
     0,
     0});
     this.cInsurance.Text = "Bảo hiểm";
     this.cInsurance.Width = 60;
     //
     // cPersonalIncomeTax
     //
     this.cPersonalIncomeTax.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.cPersonalIncomeTax.Format = "#,##0;(#,##0);-";
     this.cPersonalIncomeTax.Increment = new decimal(new int[] {
     100,
     0,
     0,
     0});
     this.cPersonalIncomeTax.Maximum = new decimal(new int[] {
     10000000,
     0,
     0,
     0});
     this.cPersonalIncomeTax.Text = "Thuế TN";
     this.cPersonalIncomeTax.Width = 60;
     //
     // cTotalPaidLunch
     //
     this.cTotalPaidLunch.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.cTotalPaidLunch.Format = "#,##0;(#,##0);-";
     this.cTotalPaidLunch.Increment = new decimal(new int[] {
     100,
     0,
     0,
     0});
     this.cTotalPaidLunch.Maximum = new decimal(new int[] {
     1000000,
     0,
     0,
     0});
     this.cTotalPaidLunch.Text = "K.trừ AT";
     this.cTotalPaidLunch.Width = 60;
     //
     // cOtherDeduction
     //
     this.cOtherDeduction.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.cOtherDeduction.Format = "#,##0;(#,##0);-";
     this.cOtherDeduction.Increment = new decimal(new int[] {
     100,
     0,
     0,
     0});
     this.cOtherDeduction.Maximum = new decimal(new int[] {
     10000000,
     0,
     0,
     0});
     this.cOtherDeduction.Text = "K.trừ khác";
     this.cOtherDeduction.Width = 62;
     //
     // cSalaryBLD
     //
     this.cSalaryBLD.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.cSalaryBLD.Format = "#,##0;(#,##0);0";
     this.cSalaryBLD.Increment = new decimal(new int[] {
     100,
     0,
     0,
     0});
     this.cSalaryBLD.Maximum = new decimal(new int[] {
     100000000,
     0,
     0,
     0});
     this.cSalaryBLD.Text = "Chưa KTrừ";
     this.cSalaryBLD.Width = 70;
     //
     // cRealSalary
     //
     this.cRealSalary.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.cRealSalary.Format = "#,##0;(#,##0);0";
     this.cRealSalary.Increment = new decimal(new int[] {
     100,
     0,
     0,
     0});
     this.cRealSalary.Maximum = new decimal(new int[] {
     100000000,
     0,
     0,
     0});
     this.cRealSalary.Text = "Thực lĩnh";
     this.cRealSalary.Width = 70;
     //
     // 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(676, 388);
     this.lblTotalEmployee.Name = "lblTotalEmployee";
     this.lblTotalEmployee.Size = new System.Drawing.Size(80, 16);
     this.lblTotalEmployee.TabIndex = 12;
     this.lblTotalEmployee.Text = "Tổng NV: 335";
     this.lblTotalEmployee.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // 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, 380);
     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, 380);
     this.txtSearch.Name = "txtSearch";
     this.txtSearch.Size = new System.Drawing.Size(120, 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);
     //
     // 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(692, 484);
     this.btnClose.Name = "btnClose";
     this.btnClose.Size = new System.Drawing.Size(75, 23);
     this.btnClose.TabIndex = 38;
     this.btnClose.Text = "&Đóng";
     this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
     //
     // 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, 484);
     this.btnGenerate.Name = "btnGenerate";
     this.btnGenerate.Size = new System.Drawing.Size(136, 23);
     this.btnGenerate.TabIndex = 39;
     this.btnGenerate.Text = "&Sinh bảng lương";
     this.btnGenerate.Click += new System.EventHandler(this.btnGenerate_Click);
     //
     // 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(436, 484);
     this.btnUpdate.Name = "btnUpdate";
     this.btnUpdate.Size = new System.Drawing.Size(75, 23);
     this.btnUpdate.TabIndex = 33;
     this.btnUpdate.Text = "&Cập nhật";
     this.btnUpdate.Click += new System.EventHandler(this.btnUpdate_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(516, 484);
     this.btnDelete.Name = "btnDelete";
     this.btnDelete.Size = new System.Drawing.Size(80, 23);
     this.btnDelete.TabIndex = 35;
     this.btnDelete.Text = "&Xóa";
     this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
     //
     // frmListSalary
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton = this.btnClose;
     this.ClientSize = new System.Drawing.Size(772, 514);
     this.Controls.Add(this.btnDelete);
     this.Controls.Add(this.btnUpdate);
     this.Controls.Add(this.btnRefresh);
     this.Controls.Add(this.btnExportExcel);
     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 = "frmListSalary";
     this.Text = "Thống kê lương nhân viên";
     this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
     this.Load += new System.EventHandler(this.frmListSalary_Load);
     this.grbDepartment.ResumeLayout(false);
     this.grbMonth.ResumeLayout(false);
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     this.panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.lvwSalary)).EndInit();
     this.ResumeLayout(false);
 }
示例#23
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);
 }
示例#24
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(frmListLunch));
     this.btnExportExcel = new System.Windows.Forms.Button();
     this.btnSetLunch = new System.Windows.Forms.Button();
     this.btnRefresh = new System.Windows.Forms.Button();
     this.grbDepartment = new System.Windows.Forms.GroupBox();
     this.cboDepartment = new MTGCComboBox();
     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.groupBox1 = new System.Windows.Forms.GroupBox();
     this.label3 = new System.Windows.Forms.Label();
     this.btnSearch = new System.Windows.Forms.Button();
     this.txtSearch = new System.Windows.Forms.TextBox();
     this.lblTotalEmployee = new System.Windows.Forms.Label();
     this.lvwLunchList = 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.cNVPT = new XPTable.Models.TextColumn();
     this.cTCNT = new XPTable.Models.TextColumn();
     this.cTCNN = new XPTable.Models.TextColumn();
     this.cTTC = new XPTable.Models.TextColumn();
     this.tableModel1 = new XPTable.Models.TableModel();
     this.btnClose = new System.Windows.Forms.Button();
     this.btnGenerateLunchList = new System.Windows.Forms.Button();
     this.btnUpdate = new System.Windows.Forms.Button();
     this.btnDelete = new System.Windows.Forms.Button();
     this.grbDepartment.SuspendLayout();
     this.grbMonth.SuspendLayout();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.lvwLunchList)).BeginInit();
     this.SuspendLayout();
     //
     // 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(536, 548);
     this.btnExportExcel.Name = "btnExportExcel";
     this.btnExportExcel.Size = new System.Drawing.Size(104, 23);
     this.btnExportExcel.TabIndex = 39;
     this.btnExportExcel.Text = "&Xuất Excel";
     this.btnExportExcel.Click += new System.EventHandler(this.btnExportExcel_Click);
     //
     // btnSetLunch
     //
     this.btnSetLunch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnSetLunch.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnSetLunch.Location = new System.Drawing.Point(272, 548);
     this.btnSetLunch.Name = "btnSetLunch";
     this.btnSetLunch.Size = new System.Drawing.Size(96, 23);
     this.btnSetLunch.TabIndex = 38;
     this.btnSetLunch.Text = "Thiết lập ăn trưa";
     this.btnSetLunch.Click += new System.EventHandler(this.btnSetLunch_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(644, 548);
     this.btnRefresh.Name = "btnRefresh";
     this.btnRefresh.Size = new System.Drawing.Size(75, 23);
     this.btnRefresh.TabIndex = 37;
     this.btnRefresh.Text = "&Nạp lại";
     this.btnRefresh.Click += new System.EventHandler(this.btnRefresh_Click);
     //
     // 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(532, 0);
     this.grbDepartment.Name = "grbDepartment";
     this.grbDepartment.Size = new System.Drawing.Size(264, 48);
     this.grbDepartment.TabIndex = 36;
     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)));
     this.cboDepartment.BorderStyle = MTGCComboBox.TipiBordi.Fixed3D;
     this.cboDepartment.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal;
     this.cboDepartment.ColumnNum = 2;
     this.cboDepartment.ColumnWidth = "50;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 = 270;
     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(248, 21);
     this.cboDepartment.TabIndex = 0;
     this.cboDepartment.SelectedIndexChanged += new System.EventHandler(this.cboDepartment_SelectedIndexChanged);
     //
     // 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, 0);
     this.grbMonth.Name = "grbMonth";
     this.grbMonth.Size = new System.Drawing.Size(200, 48);
     this.grbMonth.TabIndex = 35;
     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"});
     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);
     //
     // 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.label3);
     this.groupBox1.Controls.Add(this.btnSearch);
     this.groupBox1.Controls.Add(this.txtSearch);
     this.groupBox1.Controls.Add(this.lblTotalEmployee);
     this.groupBox1.Controls.Add(this.lvwLunchList);
     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(788, 492);
     this.groupBox1.TabIndex = 32;
     this.groupBox1.TabStop = false;
     this.groupBox1.Text = "Danh sách ăn trưa tháng";
     //
     // label3
     //
     this.label3.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
     this.label3.Location = new System.Drawing.Point(208, 456);
     this.label3.Name = "label3";
     this.label3.Size = new System.Drawing.Size(448, 32);
     this.label3.TabIndex = 18;
     this.label3.Text = "TổngAT: Tổng ăn trưa - Trợ cấpAT: Trợ cấp ăn trưa  - Trợ cấpLT: Trợ cấp làm thêm " +
         "- TổngTC:  Tổng trợ cấp  ";
     //
     // 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, 456);
     this.btnSearch.Name = "btnSearch";
     this.btnSearch.Size = new System.Drawing.Size(64, 23);
     this.btnSearch.TabIndex = 17;
     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, 456);
     this.txtSearch.Name = "txtSearch";
     this.txtSearch.Size = new System.Drawing.Size(128, 20);
     this.txtSearch.TabIndex = 16;
     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.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblTotalEmployee.Location = new System.Drawing.Point(636, 456);
     this.lblTotalEmployee.Name = "lblTotalEmployee";
     this.lblTotalEmployee.Size = new System.Drawing.Size(144, 23);
     this.lblTotalEmployee.TabIndex = 15;
     this.lblTotalEmployee.Text = "Tổng số nhân viên: 999";
     this.lblTotalEmployee.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // lvwLunchList
     //
     this.lvwLunchList.AlternatingRowColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(237)))), ((int)(((byte)(245)))));
     this.lvwLunchList.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.lvwLunchList.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(242)))), ((int)(((byte)(249)))));
     this.lvwLunchList.ColumnModel = this.columnModel1;
     this.lvwLunchList.EditStartAction = XPTable.Editors.EditStartAction.SingleClick;
     this.lvwLunchList.EnableToolTips = true;
     this.lvwLunchList.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     this.lvwLunchList.FullRowSelect = true;
     this.lvwLunchList.GridColor = System.Drawing.SystemColors.ControlDark;
     this.lvwLunchList.GridLines = XPTable.Models.GridLines.Both;
     this.lvwLunchList.GridLineStyle = XPTable.Models.GridLineStyle.Dot;
     this.lvwLunchList.HeaderFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
     this.lvwLunchList.Location = new System.Drawing.Point(8, 16);
     this.lvwLunchList.Name = "lvwLunchList";
     this.lvwLunchList.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(169)))), ((int)(((byte)(183)))), ((int)(((byte)(201)))));
     this.lvwLunchList.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     this.lvwLunchList.SelectionStyle = XPTable.Models.SelectionStyle.Grid;
     this.lvwLunchList.Size = new System.Drawing.Size(772, 432);
     this.lvwLunchList.SortedColumnBackColor = System.Drawing.Color.Transparent;
     this.lvwLunchList.TabIndex = 11;
     this.lvwLunchList.TableModel = this.tableModel1;
     this.lvwLunchList.UnfocusedSelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(210)))), ((int)(((byte)(221)))));
     this.lvwLunchList.UnfocusedSelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     this.lvwLunchList.EditingStopped += new XPTable.Events.CellEditEventHandler(this.lvwLunchList_EditingStopped);
     this.lvwLunchList.SelectionChanged += new XPTable.Events.SelectionEventHandler(this.lvwLunchList_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.cNVPT,
     this.cTCNT,
     this.cTCNN,
     this.cTTC});
     //
     // 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 = "Phòng";
     this.cDepartment.Width = 100;
     //
     // cCardID
     //
     this.cCardID.Editable = false;
     this.cCardID.Text = "Mã thẻ";
     this.cCardID.Width = 55;
     //
     // cEmployeeName
     //
     this.cEmployeeName.Editable = false;
     this.cEmployeeName.Text = "Tên nhân viên";
     this.cEmployeeName.Width = 120;
     //
     // c1
     //
     this.c1.Text = "1";
     this.c1.Width = 24;
     //
     // c2
     //
     this.c2.Text = "2";
     this.c2.Width = 24;
     //
     // c3
     //
     this.c3.Text = "3";
     this.c3.Width = 24;
     //
     // c4
     //
     this.c4.Text = "4";
     this.c4.Width = 24;
     //
     // c5
     //
     this.c5.Text = "5";
     this.c5.Width = 24;
     //
     // c6
     //
     this.c6.Text = "6";
     this.c6.Width = 24;
     //
     // c7
     //
     this.c7.Text = "7";
     this.c7.Width = 24;
     //
     // c8
     //
     this.c8.Text = "8";
     this.c8.Width = 24;
     //
     // c9
     //
     this.c9.Text = "9";
     this.c9.Width = 24;
     //
     // c10
     //
     this.c10.Text = "10";
     this.c10.Width = 24;
     //
     // c11
     //
     this.c11.Text = "11";
     this.c11.Width = 24;
     //
     // c12
     //
     this.c12.Text = "12";
     this.c12.Width = 24;
     //
     // c13
     //
     this.c13.Text = "13";
     this.c13.Width = 24;
     //
     // c14
     //
     this.c14.Text = "14";
     this.c14.Width = 24;
     //
     // c15
     //
     this.c15.Text = "15";
     this.c15.Width = 24;
     //
     // c16
     //
     this.c16.Text = "16";
     this.c16.Width = 24;
     //
     // c17
     //
     this.c17.Text = "17";
     this.c17.Width = 24;
     //
     // c18
     //
     this.c18.Text = "18";
     this.c18.Width = 24;
     //
     // c19
     //
     this.c19.Text = "19";
     this.c19.Width = 24;
     //
     // c20
     //
     this.c20.Text = "20";
     this.c20.Width = 24;
     //
     // c21
     //
     this.c21.Text = "21";
     this.c21.Width = 24;
     //
     // c22
     //
     this.c22.Text = "22";
     this.c22.Width = 24;
     //
     // c23
     //
     this.c23.Text = "23";
     this.c23.Width = 24;
     //
     // c24
     //
     this.c24.Text = "24";
     this.c24.Width = 24;
     //
     // c25
     //
     this.c25.Text = "25";
     this.c25.Width = 24;
     //
     // c26
     //
     this.c26.Text = "26";
     this.c26.Width = 24;
     //
     // c27
     //
     this.c27.Text = "27";
     this.c27.Width = 24;
     //
     // c28
     //
     this.c28.Text = "28";
     this.c28.Width = 24;
     //
     // c29
     //
     this.c29.Text = "29";
     this.c29.Width = 24;
     //
     // c30
     //
     this.c30.Text = "30";
     this.c30.Width = 24;
     //
     // c31
     //
     this.c31.Text = "31";
     this.c31.Width = 24;
     //
     // cNVPT
     //
     this.cNVPT.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.cNVPT.Editable = false;
     this.cNVPT.Text = "TổngAT";
     this.cNVPT.Width = 70;
     //
     // cTCNT
     //
     this.cTCNT.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.cTCNT.Editable = false;
     this.cTCNT.Text = "Trợ cấpAT";
     this.cTCNT.Width = 70;
     //
     // cTCNN
     //
     this.cTCNN.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.cTCNN.Editable = false;
     this.cTCNN.Text = "Trợ cấpLT";
     this.cTCNN.Width = 70;
     //
     // cTTC
     //
     this.cTTC.Alignment = XPTable.Models.ColumnAlignment.Right;
     this.cTTC.Editable = false;
     this.cTTC.Text = "TổngTC";
     this.cTTC.Width = 70;
     //
     // 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, 548);
     this.btnClose.Name = "btnClose";
     this.btnClose.Size = new System.Drawing.Size(75, 23);
     this.btnClose.TabIndex = 33;
     this.btnClose.Text = "&Đóng";
     this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
     //
     // btnGenerateLunchList
     //
     this.btnGenerateLunchList.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.btnGenerateLunchList.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnGenerateLunchList.Location = new System.Drawing.Point(8, 548);
     this.btnGenerateLunchList.Name = "btnGenerateLunchList";
     this.btnGenerateLunchList.Size = new System.Drawing.Size(120, 23);
     this.btnGenerateLunchList.TabIndex = 34;
     this.btnGenerateLunchList.Text = "&Sinh bảng ăn trưa";
     this.btnGenerateLunchList.Click += new System.EventHandler(this.btnGenerateLunchList_Click);
     //
     // 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(376, 548);
     this.btnUpdate.Name = "btnUpdate";
     this.btnUpdate.Size = new System.Drawing.Size(75, 23);
     this.btnUpdate.TabIndex = 40;
     this.btnUpdate.Text = "&Cập nhật";
     this.btnUpdate.Click += new System.EventHandler(this.btnUpdate_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(456, 548);
     this.btnDelete.Name = "btnDelete";
     this.btnDelete.Size = new System.Drawing.Size(75, 23);
     this.btnDelete.TabIndex = 41;
     this.btnDelete.Text = "Xóa";
     this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
     //
     // frmListLunch
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize = new System.Drawing.Size(804, 574);
     this.Controls.Add(this.btnDelete);
     this.Controls.Add(this.btnUpdate);
     this.Controls.Add(this.btnExportExcel);
     this.Controls.Add(this.btnSetLunch);
     this.Controls.Add(this.btnRefresh);
     this.Controls.Add(this.grbDepartment);
     this.Controls.Add(this.grbMonth);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.btnClose);
     this.Controls.Add(this.btnGenerateLunchList);
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name = "frmListLunch";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "Tổng kết ăn trưa";
     this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
     this.Load += new System.EventHandler(this.frmListLunch_Load);
     this.grbDepartment.ResumeLayout(false);
     this.grbMonth.ResumeLayout(false);
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.lvwLunchList)).EndInit();
     this.ResumeLayout(false);
 }
示例#25
0
        public ColumnModel getColumnModelInfo()
        {
            //1. oszlop
            //ImageColumn imageColumn = new ImageColumn("", 30);
            //imageColumn.Editable = false;

            NumberColumn numberColumn = new NumberColumn("db", 40);
            numberColumn.Editable = false;

            TextColumn ertekColumn = new TextColumn("érték", 150);
            ertekColumn.Editable = false;
            ertekColumn.Alignment = ColumnAlignment.Right;
            return (new ColumnModel(new Column[] {numberColumn, ertekColumn} ));
        }
示例#26
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmChangeTimeInOut));
     this.btnModify          = new System.Windows.Forms.Button();
     this.btnDelete          = new System.Windows.Forms.Button();
     this.btnClose           = new System.Windows.Forms.Button();
     this.btnHelp            = new System.Windows.Forms.Button();
     this.btnAdd             = new System.Windows.Forms.Button();
     this.departmentTreeView = new EVSoft.HRMS.Controls.DepartmentTreeView();
     this.lvwTimeInOut       = new XPTable.Models.Table();
     this.columnModel1       = new XPTable.Models.ColumnModel();
     this.cSTT            = new XPTable.Models.NumberColumn();
     this.chWorkingDay    = new XPTable.Models.TextColumn();
     this.chTimeIn        = new XPTable.Models.TextColumn();
     this.chTimeOut       = new XPTable.Models.TextColumn();
     this.tableModel1     = new XPTable.Models.TableModel();
     this.cboEmployee     = new MTGCComboBox();
     this.groupBox1       = new System.Windows.Forms.GroupBox();
     this.groupBox2       = new System.Windows.Forms.GroupBox();
     this.label1          = new System.Windows.Forms.Label();
     this.txtEmployeeName = new System.Windows.Forms.TextBox();
     ((System.ComponentModel.ISupportInitialize)(this.lvwTimeInOut)).BeginInit();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.SuspendLayout();
     //
     // btnModify
     //
     this.btnModify.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnModify.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnModify.Location  = new System.Drawing.Point(288, 344);
     this.btnModify.Name      = "btnModify";
     this.btnModify.TabIndex  = 5;
     this.btnModify.Text      = "&Sửa";
     this.btnModify.Click    += new System.EventHandler(this.btnModify_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(368, 344);
     this.btnDelete.Name      = "btnDelete";
     this.btnDelete.TabIndex  = 6;
     this.btnDelete.Text      = "&Xóa";
     this.btnDelete.Click    += new System.EventHandler(this.btnDelete_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(448, 344);
     this.btnClose.Name         = "btnClose";
     this.btnClose.TabIndex     = 7;
     this.btnClose.Text         = "&Đóng";
     this.btnClose.Click       += new System.EventHandler(this.btnClose_Click);
     //
     // btnHelp
     //
     this.btnHelp.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.btnHelp.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnHelp.Location  = new System.Drawing.Point(8, 344);
     this.btnHelp.Name      = "btnHelp";
     this.btnHelp.TabIndex  = 9;
     this.btnHelp.Text      = "Trợ giúp";
     //
     // 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(208, 344);
     this.btnAdd.Name      = "btnAdd";
     this.btnAdd.TabIndex  = 4;
     this.btnAdd.Text      = "&Thêm";
     this.btnAdd.Click    += new System.EventHandler(this.btnAdd_Click);
     //
     // 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.DepartmentDataSet = null;
     this.departmentTreeView.Location          = new System.Drawing.Point(8, 16);
     this.departmentTreeView.Name         = "departmentTreeView";
     this.departmentTreeView.Size         = new System.Drawing.Size(176, 300);
     this.departmentTreeView.TabIndex     = 8;
     this.departmentTreeView.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.departmentTreeView_AfterSelect);
     //
     // lvwTimeInOut
     //
     this.lvwTimeInOut.AlternatingRowColor = System.Drawing.Color.FromArgb(((System.Byte)(230)), ((System.Byte)(237)), ((System.Byte)(245)));
     this.lvwTimeInOut.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.lvwTimeInOut.BackColor                   = System.Drawing.Color.FromArgb(((System.Byte)(237)), ((System.Byte)(242)), ((System.Byte)(249)));
     this.lvwTimeInOut.ColumnModel                 = this.columnModel1;
     this.lvwTimeInOut.EnableToolTips              = true;
     this.lvwTimeInOut.ForeColor                   = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
     this.lvwTimeInOut.FullRowSelect               = true;
     this.lvwTimeInOut.GridColor                   = System.Drawing.SystemColors.ControlDark;
     this.lvwTimeInOut.GridLines                   = XPTable.Models.GridLines.Both;
     this.lvwTimeInOut.GridLineStyle               = XPTable.Models.GridLineStyle.Dot;
     this.lvwTimeInOut.HeaderFont                  = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.lvwTimeInOut.Location                    = new System.Drawing.Point(8, 16);
     this.lvwTimeInOut.Name                        = "lvwTimeInOut";
     this.lvwTimeInOut.NoItemsText                 = WorkingContext.LangManager.GetString("XPtable");
     this.lvwTimeInOut.SelectionBackColor          = System.Drawing.Color.FromArgb(((System.Byte)(169)), ((System.Byte)(183)), ((System.Byte)(201)));
     this.lvwTimeInOut.SelectionForeColor          = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
     this.lvwTimeInOut.SelectionStyle              = XPTable.Models.SelectionStyle.Grid;
     this.lvwTimeInOut.Size                        = new System.Drawing.Size(296, 272);
     this.lvwTimeInOut.SortedColumnBackColor       = System.Drawing.Color.Transparent;
     this.lvwTimeInOut.TabIndex                    = 3;
     this.lvwTimeInOut.TableModel                  = this.tableModel1;
     this.lvwTimeInOut.UnfocusedSelectionBackColor = System.Drawing.Color.FromArgb(((System.Byte)(201)), ((System.Byte)(210)), ((System.Byte)(221)));
     this.lvwTimeInOut.UnfocusedSelectionForeColor = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
     this.lvwTimeInOut.SelectionChanged           += new XPTable.Events.SelectionEventHandler(this.lvwTimeInOut_SelectionChanged);
     this.lvwTimeInOut.MouseDown                  += new System.Windows.Forms.MouseEventHandler(this.lvwTimeInOut_MouseDown);
     //
     // columnModel1
     //
     this.columnModel1.Columns.AddRange(new XPTable.Models.Column[] {
         this.cSTT,
         this.chWorkingDay,
         this.chTimeIn,
         this.chTimeOut
     });
     //
     // cSTT
     //
     this.cSTT.Editable = false;
     this.cSTT.Text     = "STT";
     this.cSTT.Width    = 35;
     //
     // chWorkingDay
     //
     this.chWorkingDay.Editable = false;
     this.chWorkingDay.Text     = "Ngày làm việc";
     this.chWorkingDay.Width    = 100;
     //
     // chTimeIn
     //
     this.chTimeIn.Editable = false;
     this.chTimeIn.Text     = "Giờ vào";
     this.chTimeIn.Width    = 70;
     //
     // chTimeOut
     //
     this.chTimeOut.Editable = false;
     this.chTimeOut.Text     = "Giờ ra";
     //
     // cboEmployee
     //
     this.cboEmployee.BorderStyle                     = MTGCComboBox.TipiBordi.Fixed3D;
     this.cboEmployee.CharacterCasing                 = System.Windows.Forms.CharacterCasing.Normal;
     this.cboEmployee.ColumnNum                       = 3;
     this.cboEmployee.ColumnWidth                     = "0;45;115";
     this.cboEmployee.DisplayMember                   = "Text";
     this.cboEmployee.DrawMode                        = System.Windows.Forms.DrawMode.OwnerDrawFixed;
     this.cboEmployee.DropDownBackColor               = System.Drawing.Color.FromArgb(((System.Byte)(193)), ((System.Byte)(210)), ((System.Byte)(238)));
     this.cboEmployee.DropDownForeColor               = System.Drawing.Color.Black;
     this.cboEmployee.DropDownStyle                   = MTGCComboBox.CustomDropDownStyle.DropDownList;
     this.cboEmployee.DropDownWidth                   = 180;
     this.cboEmployee.GridLineColor                   = System.Drawing.Color.LightGray;
     this.cboEmployee.GridLineHorizontal              = true;
     this.cboEmployee.GridLineVertical                = true;
     this.cboEmployee.LoadingType                     = MTGCComboBox.CaricamentoCombo.ComboBoxItem;
     this.cboEmployee.Location                        = new System.Drawing.Point(272, 8);
     this.cboEmployee.ManagingFastMouseMoving         = true;
     this.cboEmployee.ManagingFastMouseMovingInterval = 30;
     this.cboEmployee.Name                  = "cboEmployee";
     this.cboEmployee.Size                  = new System.Drawing.Size(64, 21);
     this.cboEmployee.TabIndex              = 1;
     this.cboEmployee.SelectedIndexChanged += new System.EventHandler(this.cboEmployee_SelectedIndexChanged);
     //
     // groupBox1
     //
     this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                   | System.Windows.Forms.AnchorStyles.Left)));
     this.groupBox1.Controls.Add(this.departmentTreeView);
     this.groupBox1.Location = new System.Drawing.Point(8, 8);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(192, 328);
     this.groupBox1.TabIndex = 100;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Danh sách phòng ban";
     //
     // groupBox2
     //
     this.groupBox2.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.groupBox2.Controls.Add(this.lvwTimeInOut);
     this.groupBox2.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.groupBox2.Location  = new System.Drawing.Point(208, 40);
     this.groupBox2.Name      = "groupBox2";
     this.groupBox2.Size      = new System.Drawing.Size(312, 296);
     this.groupBox2.TabIndex  = 101;
     this.groupBox2.TabStop   = false;
     this.groupBox2.Text      = "Thông tin vào ra";
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(208, 8);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(64, 23);
     this.label1.TabIndex  = 102;
     this.label1.Text      = "Nhân viên";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // txtEmployeeName
     //
     this.txtEmployeeName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                         | System.Windows.Forms.AnchorStyles.Right)));
     this.txtEmployeeName.Location = new System.Drawing.Point(336, 8);
     this.txtEmployeeName.Name     = "txtEmployeeName";
     this.txtEmployeeName.ReadOnly = true;
     this.txtEmployeeName.Size     = new System.Drawing.Size(184, 20);
     this.txtEmployeeName.TabIndex = 2;
     this.txtEmployeeName.Text     = "";
     //
     // frmChangeTimeInOut
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton      = this.btnClose;
     this.ClientSize        = new System.Drawing.Size(530, 376);
     this.Controls.Add(this.txtEmployeeName);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.btnAdd);
     this.Controls.Add(this.btnHelp);
     this.Controls.Add(this.btnClose);
     this.Controls.Add(this.btnDelete);
     this.Controls.Add(this.btnModify);
     this.Controls.Add(this.cboEmployee);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox     = false;
     this.Name            = "frmChangeTimeInOut";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "Quản lý thời gian vào ra";
     this.Load           += new System.EventHandler(this.frmChangeTimeInOut_Load);
     ((System.ComponentModel.ISupportInitialize)(this.lvwTimeInOut)).EndInit();
     this.groupBox1.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     this.ResumeLayout(false);
 }