示例#1
0
文件: Demo.cs 项目: antiduh/XPTable
        private void DoColspan()
        {
            Table table = this.table;       // The Table control on a form - already initialised
            table.SelectionStyle = SelectionStyle.Grid;
            table.BeginUpdate();
            table.EnableWordWrap = true;    // If false, then Cell.WordWrap is ignored

            table.GridLines = GridLines.Rows;

            TextColumn col1 = new TextColumn("col A", 100);
            TextColumn col2 = new TextColumn("col B", 100);
            TextColumn col3 = new TextColumn("col C", 100);
            table.ColumnModel = new ColumnModel(new Column[] { col1, col2, col3 });

            TableModel model = new TableModel();

            Row row;
            Cell cell;

            // Add all 3 cells for row 1
            row = new Row();
            row.Cells.Add(new Cell("Short 1a"));
            //row1.Cells.Add(new Cell("Short 1"));
            cell = new Cell("This is long text that will just be truncated");
            row.Cells.Add(cell);
            row.Cells.Add(new Cell("Short 1c"));
            model.Rows.Add(row);

            // Add only 2 cells for row 2
            row = new Row();
            row.Cells.Add(new Cell("Short 2a"));
            cell = new Cell("This is text that will go over to the next column");
            cell.ColSpan = 2;          // The row height will be increased so we can see all the text
            row.Cells.Add(cell);
            // We don't add the next cell
            model.Rows.Add(row);

            // Add all 3 cells for row 3
            row = new Row();
            row.Cells.Add(new Cell("Short 3"));
            //row1.Cells.Add(new Cell("Short 1"));
            cell = new Cell("This is a cell with some really long text that wraps more than the other text");
            cell.WordWrap = true;          // The row height will be increased so we can see all the text
            row.Cells.Add(cell);
            row.Cells.Add(new Cell("Short 3c"));
            model.Rows.Add(row);

            // Add only 2 cells for row 4
            row = new Row();
            row.Cells.Add(new Cell("Short 4"));
            cell = new Cell("This is a cell with some really long text that wraps more than the other text");
            cell.WordWrap = true;         // Colspan and Wordwrap!!
            cell.ColSpan = 2;
            row.Cells.Add(cell);
            model.Rows.Add(row);

            this.table.TableModel = model;

            this.table.EndUpdate();
        }
示例#2
0
        public ParticipantsListUserControl()
        {
            InitializeComponent();

            UpdateWindowState();

            Tools.FormatXPTable(tableParticipants);

            XPTable.Models.Column newColumn = new XPTable.Models.TextColumn();

            tableParticipants.TableModel           = new XPTable.Models.TableModel();
            tableParticipants.TableModel.RowHeight = 20;
            XPTable.Models.ColumnModel model = new XPTable.Models.ColumnModel();

            model.Columns.Add(new XPTable.Models.TextColumn(StringTable.Role, 100));
            model.Columns.Add(new XPTable.Models.TextColumn(StringTable.Name, 150));
            model.Columns.Add(new XPTable.Models.NumberColumn(StringTable.TrackNumber, 50));
            model.Columns.Add(new XPTable.Models.TextColumn(StringTable.Comment, 150));

            model.Columns[0].Editable = false;
            model.Columns[1].Editable = false;
            model.Columns[2].Editable = false;
            model.Columns[3].Editable = false;

            tableParticipants.ColumnModel = model;
        }
示例#3
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();
        }
示例#4
0
文件: Demo.cs 项目: antiduh/XPTable
        private void DoWrap()
        {
            Table table = this.table;       // The Table control on a form - already initialised

            table.BeginUpdate();
            table.EnableWordWrap = true;    // If false, then Cell.WordWrap is ignored
            table.SelectionStyle = SelectionStyle.Grid;
            table.GridLines = GridLines.Rows;

            TextColumn col1 = new TextColumn("col A", 100);
            TextColumn col2 = new TextColumn("col B", 100);
            table.ColumnModel = new ColumnModel(new Column[] { col1, col2 });

            TableModel model = new TableModel();

            Row row;
            Cell cell;

            row = new Row();
            row.Cells.Add(new Cell("Short 1"));
            //row1.Cells.Add(new Cell("Short 1"));
            cell = new Cell("This is a cell with quite long text");
            cell.WordWrap = true;          // The row height will be increased so we can see all the text
            row.Cells.Add(cell);
            model.Rows.Add(row);

            row = new Row();
            row.Cells.Add(new Cell("Short 2"));
            cell = new Cell("This is long text that will just be truncated");
            cell.WordWrap = false;         // Not needed - it is false by default
            row.Cells.Add(cell);
            model.Rows.Add(row);

            row = new Row();
            row.Cells.Add(new Cell("Short 3"));
            //row1.Cells.Add(new Cell("Short 1"));
            cell = new Cell("This is a cell with some really long text that wraps more than the other text");
            cell.WordWrap = true;          // The row height will be increased so we can see all the text
            row.Cells.Add(cell);
            model.Rows.Add(row);

            row = new Row();
            row.Cells.Add(new Cell("Short "));
            cell = new Cell("This is long text that will just be truncated");
            cell.WordWrap = false;         // Not needed - it is false by default
            row.Cells.Add(cell);
            model.Rows.Add(row);

            this.table.TableModel = model;

            this.table.EndUpdate();
        }
示例#5
0
        private void buttonExecuteSql_Click(object sender, EventArgs e)
        {
            DataTable dt;

            if (!IsSelectStatement(textBoxSql.Text))
            {
                MessageBox.Show(StringTable.OnlySelectStatements, Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }

            try
            {
                dt = dataBase.ExecuteFreeSql(textBoxSql.Text);
            }
            catch (Exception ex)
            {
                string msg = string.Format(StringTable.ErrorFreeSql, ex.Message);
                MessageBox.Show(msg, Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }

            tableResult.TableModel  = new TableModel();
            tableResult.ColumnModel = new ColumnModel();

            foreach (DataColumn dc in dt.Columns)
            {
                TextColumn newColumn = new XPTable.Models.TextColumn(dc.Caption);
                newColumn.Editable = false;
                tableResult.ColumnModel.Columns.Add(newColumn);
            }

            foreach (DataRow dr in dt.Rows)
            {
                Row row = new Row();
                for (int i = 0; i < dr.ItemArray.Length; i++)
                {
                    object value = dr.ItemArray[i];

                    if (value != null)
                    {
                        row.Cells.Add(new Cell(value.ToString()));
                    }
                    else
                    {
                        row.Cells.Add(new Cell(""));
                    }
                }
                tableResult.TableModel.Rows.Add(row);
            }
        }
示例#6
0
        private void DoControl()
        {
            Table table = this.table;						// The Table control on a form - already initialised
            table.SelectionStyle = SelectionStyle.Grid;
            table.BeginUpdate();
            table.EnableWordWrap = true;					// If false, then Cell.WordWrap is ignored
            table.GridLines = GridLines.None;

            TextColumn col1 = new TextColumn("From", 200);

            ControlColumn col2 = new ControlColumn(30);
            col2.Alignment = ColumnAlignment.Right;
            SpinnerFactory fact = new SpinnerFactory();
            //fact.ClickEventHandler = new EventHandler(circle_Click);
            col2.ControlFactory = fact;
            col2.ControlSize = new Size(25, 25);
            col2.Alignment = ColumnAlignment.Center;

            ControlColumn col3 = new ControlColumn(100);
            col3.Alignment = ColumnAlignment.Right;
            col3.ControlFactory = new TextBoxFactory();

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

            TableModel model = new TableModel();
            model.RowHeight = 25;       // Change the height of all rows so the control can be seen
            Row row;

            row = new Row();
            row.Cells.Add(new Cell("Text"));
            row.Cells.Add(new Cell(Color.Red));     // The .Data property is picked up as the colour in the SpinnerFactory
            row.Cells.Add(new Cell("Apples"));      // The .Text property is picked up in the text in the TextboxFactory
            model.Rows.Add(row);

            row = new Row();
            row.Cells.Add(new Cell("More"));
            row.Cells.Add(new Cell());
            row.Cells.Add(new Cell("Pears"));

            model.Rows.Add(row);

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

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

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

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

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

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

            return(column);
        }
示例#8
0
        /// <summary>
        /// Initializes a new instance of the ColumnModel class with an array of strings
        /// representing TextColumns
        /// </summary>
        /// <param name="columns">An array of strings that represent the Columns of
        /// the ColumnModel</param>
        public ColumnModel(string[] columns)
        {
            if (columns == null)
            {
                throw new ArgumentNullException("columns", "string[] cannot be null");
            }

            this.Init();

            if (columns.Length > 0)
            {
                Column[] cols = new Column[columns.Length];

                for (int i = 0; i < columns.Length; i++)
                {
                    cols[i] = new TextColumn(columns[i]);
                }

                this.Columns.AddRange(cols);
            }
        }
示例#9
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();
        }
示例#10
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();
        }
示例#11
0
		[DebuggerStepThrough()]private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmPP3750));
			this.ToolTip1 = new System.Windows.Forms.ToolTip(this.components);
			this.btnClose = new System.Windows.Forms.Button();
			this.btnReceive = new System.Windows.Forms.Button();
			this.grbMessage = new System.Windows.Forms.GroupBox();
			this.xptMessage = 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.cName = new XPTable.Models.TextColumn();
			this.cWorkingDay = new XPTable.Models.TextColumn();
			this.cTimeIn = new XPTable.Models.TextColumn();
			this.cPic = new XPTable.Models.ImageColumn();
			this.tableModel1 = new XPTable.Models.TableModel();
			this.btnClear = new System.Windows.Forms.Button();
			this.btnConfig = new System.Windows.Forms.Button();
			this.aTimer = new System.Windows.Forms.Timer(this.components);
			this.contextMenu1 = new System.Windows.Forms.ContextMenu();
			this.mnuShow = new System.Windows.Forms.MenuItem();
			this.mnuHide = new System.Windows.Forms.MenuItem();
			this.menuItem3 = new System.Windows.Forms.MenuItem();
			this.mnuStart = new System.Windows.Forms.MenuItem();
			this.mnuStop = new System.Windows.Forms.MenuItem();
			this.menuItem6 = new System.Windows.Forms.MenuItem();
			this.mnuExit = new System.Windows.Forms.MenuItem();
			this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);
			this.imageList1 = new System.Windows.Forms.ImageList(this.components);
			this.button1 = new System.Windows.Forms.Button();
			this.grbMessage.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.xptMessage)).BeginInit();
			this.SuspendLayout();
			// 
			// btnClose
			// 
			this.btnClose.AccessibleDescription = resources.GetString("btnClose.AccessibleDescription");
			this.btnClose.AccessibleName = resources.GetString("btnClose.AccessibleName");
			this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnClose.Anchor")));
			this.btnClose.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnClose.BackgroundImage")));
			this.btnClose.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnClose.Dock")));
			this.btnClose.Enabled = ((bool)(resources.GetObject("btnClose.Enabled")));
			this.btnClose.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnClose.FlatStyle")));
			this.btnClose.Font = ((System.Drawing.Font)(resources.GetObject("btnClose.Font")));
			this.btnClose.ForeColor = System.Drawing.SystemColors.ControlText;
			this.btnClose.Image = ((System.Drawing.Image)(resources.GetObject("btnClose.Image")));
			this.btnClose.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnClose.ImageAlign")));
			this.btnClose.ImageIndex = ((int)(resources.GetObject("btnClose.ImageIndex")));
			this.btnClose.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnClose.ImeMode")));
			this.btnClose.Location = ((System.Drawing.Point)(resources.GetObject("btnClose.Location")));
			this.btnClose.Name = "btnClose";
			this.btnClose.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnClose.RightToLeft")));
			this.btnClose.Size = ((System.Drawing.Size)(resources.GetObject("btnClose.Size")));
			this.btnClose.TabIndex = ((int)(resources.GetObject("btnClose.TabIndex")));
			this.btnClose.Text = resources.GetString("btnClose.Text");
			this.btnClose.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnClose.TextAlign")));
			this.ToolTip1.SetToolTip(this.btnClose, resources.GetString("btnClose.ToolTip"));
			this.btnClose.Visible = ((bool)(resources.GetObject("btnClose.Visible")));
			this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
			// 
			// btnReceive
			// 
			this.btnReceive.AccessibleDescription = resources.GetString("btnReceive.AccessibleDescription");
			this.btnReceive.AccessibleName = resources.GetString("btnReceive.AccessibleName");
			this.btnReceive.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnReceive.Anchor")));
			this.btnReceive.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnReceive.BackgroundImage")));
			this.btnReceive.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnReceive.Dock")));
			this.btnReceive.Enabled = ((bool)(resources.GetObject("btnReceive.Enabled")));
			this.btnReceive.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnReceive.FlatStyle")));
			this.btnReceive.Font = ((System.Drawing.Font)(resources.GetObject("btnReceive.Font")));
			this.btnReceive.ForeColor = System.Drawing.SystemColors.ControlText;
			this.btnReceive.Image = ((System.Drawing.Image)(resources.GetObject("btnReceive.Image")));
			this.btnReceive.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnReceive.ImageAlign")));
			this.btnReceive.ImageIndex = ((int)(resources.GetObject("btnReceive.ImageIndex")));
			this.btnReceive.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnReceive.ImeMode")));
			this.btnReceive.Location = ((System.Drawing.Point)(resources.GetObject("btnReceive.Location")));
			this.btnReceive.Name = "btnReceive";
			this.btnReceive.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnReceive.RightToLeft")));
			this.btnReceive.Size = ((System.Drawing.Size)(resources.GetObject("btnReceive.Size")));
			this.btnReceive.TabIndex = ((int)(resources.GetObject("btnReceive.TabIndex")));
			this.btnReceive.Text = resources.GetString("btnReceive.Text");
			this.btnReceive.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnReceive.TextAlign")));
			this.ToolTip1.SetToolTip(this.btnReceive, resources.GetString("btnReceive.ToolTip"));
			this.btnReceive.Visible = ((bool)(resources.GetObject("btnReceive.Visible")));
			this.btnReceive.Click += new System.EventHandler(this.btnReceive_Click);
			// 
			// grbMessage
			// 
			this.grbMessage.AccessibleDescription = resources.GetString("grbMessage.AccessibleDescription");
			this.grbMessage.AccessibleName = resources.GetString("grbMessage.AccessibleName");
			this.grbMessage.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("grbMessage.Anchor")));
			this.grbMessage.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("grbMessage.BackgroundImage")));
			this.grbMessage.Controls.Add(this.xptMessage);
			this.grbMessage.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("grbMessage.Dock")));
			this.grbMessage.Enabled = ((bool)(resources.GetObject("grbMessage.Enabled")));
			this.grbMessage.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.grbMessage.Font = ((System.Drawing.Font)(resources.GetObject("grbMessage.Font")));
			this.grbMessage.ForeColor = System.Drawing.Color.Black;
			this.grbMessage.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("grbMessage.ImeMode")));
			this.grbMessage.Location = ((System.Drawing.Point)(resources.GetObject("grbMessage.Location")));
			this.grbMessage.Name = "grbMessage";
			this.grbMessage.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("grbMessage.RightToLeft")));
			this.grbMessage.Size = ((System.Drawing.Size)(resources.GetObject("grbMessage.Size")));
			this.grbMessage.TabIndex = ((int)(resources.GetObject("grbMessage.TabIndex")));
			this.grbMessage.TabStop = false;
			this.grbMessage.Text = resources.GetString("grbMessage.Text");
			this.ToolTip1.SetToolTip(this.grbMessage, resources.GetString("grbMessage.ToolTip"));
			this.grbMessage.Visible = ((bool)(resources.GetObject("grbMessage.Visible")));
			// 
			// xptMessage
			// 
			this.xptMessage.AccessibleDescription = resources.GetString("xptMessage.AccessibleDescription");
			this.xptMessage.AccessibleName = resources.GetString("xptMessage.AccessibleName");
			this.xptMessage.AlternatingRowColor = System.Drawing.Color.Azure;
			this.xptMessage.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("xptMessage.Anchor")));
			this.xptMessage.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("xptMessage.BackgroundImage")));
			this.xptMessage.ColumnModel = this.columnModel1;
			this.xptMessage.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("xptMessage.Dock")));
			this.xptMessage.Enabled = ((bool)(resources.GetObject("xptMessage.Enabled")));
			this.xptMessage.Font = ((System.Drawing.Font)(resources.GetObject("xptMessage.Font")));
			this.xptMessage.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
			this.xptMessage.FullRowSelect = true;
			this.xptMessage.GridColor = System.Drawing.SystemColors.ControlDark;
			this.xptMessage.GridLines = XPTable.Models.GridLines.Rows;
			this.xptMessage.GridLineStyle = XPTable.Models.GridLineStyle.Dash;
			this.xptMessage.HeaderFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(163)));
			this.xptMessage.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("xptMessage.ImeMode")));
			this.xptMessage.Location = ((System.Drawing.Point)(resources.GetObject("xptMessage.Location")));
			this.xptMessage.Name = "xptMessage";
			this.xptMessage.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("xptMessage.RightToLeft")));
			this.xptMessage.Size = ((System.Drawing.Size)(resources.GetObject("xptMessage.Size")));
			this.xptMessage.TabIndex = ((int)(resources.GetObject("xptMessage.TabIndex")));
			this.xptMessage.TableModel = this.tableModel1;
			this.xptMessage.Text = resources.GetString("xptMessage.Text");
			this.ToolTip1.SetToolTip(this.xptMessage, resources.GetString("xptMessage.ToolTip"));
			this.xptMessage.Visible = ((bool)(resources.GetObject("xptMessage.Visible")));
			// 
			// columnModel1
			// 
			this.columnModel1.Columns.AddRange(new XPTable.Models.Column[] {
																			   this.cSTT,
																			   this.cDepartment,
																			   this.cCardID,
																			   this.cName,
																			   this.cWorkingDay,
																			   this.cTimeIn,
																			   this.cPic});
			this.columnModel1.HeaderHeight = 30;
			// 
			// cSTT
			// 
			this.cSTT.Editable = false;
			this.cSTT.Text = "STT";
			this.cSTT.Width = 40;
			// 
			// cDepartment
			// 
			this.cDepartment.Text = "Phòng";
			this.cDepartment.Width = 120;
			// 
			// cCardID
			// 
			this.cCardID.Editable = false;
			this.cCardID.Text = "Mã thẻ";
			this.cCardID.Width = 50;
			// 
			// cName
			// 
			this.cName.Editable = false;
			this.cName.Text = "Tên nhân viên";
			this.cName.Width = 140;
			// 
			// cWorkingDay
			// 
			this.cWorkingDay.Alignment = XPTable.Models.ColumnAlignment.Center;
			this.cWorkingDay.Editable = false;
			this.cWorkingDay.Text = "Ngày làm việc";
			this.cWorkingDay.Width = 95;
			// 
			// cTimeIn
			// 
			this.cTimeIn.Alignment = XPTable.Models.ColumnAlignment.Center;
			this.cTimeIn.Editable = false;
			this.cTimeIn.Text = "Giờ quẹt thẻ";
			this.cTimeIn.Width = 80;
			// 
			// cPic
			// 
			this.cPic.Text = "Ảnh";
			this.cPic.Width = 70;
			// 
			// tableModel1
			// 
			this.tableModel1.RowHeight = 100;
			// 
			// btnClear
			// 
			this.btnClear.AccessibleDescription = resources.GetString("btnClear.AccessibleDescription");
			this.btnClear.AccessibleName = resources.GetString("btnClear.AccessibleName");
			this.btnClear.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnClear.Anchor")));
			this.btnClear.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnClear.BackgroundImage")));
			this.btnClear.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnClear.Dock")));
			this.btnClear.Enabled = ((bool)(resources.GetObject("btnClear.Enabled")));
			this.btnClear.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnClear.FlatStyle")));
			this.btnClear.Font = ((System.Drawing.Font)(resources.GetObject("btnClear.Font")));
			this.btnClear.ForeColor = System.Drawing.SystemColors.ControlText;
			this.btnClear.Image = ((System.Drawing.Image)(resources.GetObject("btnClear.Image")));
			this.btnClear.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnClear.ImageAlign")));
			this.btnClear.ImageIndex = ((int)(resources.GetObject("btnClear.ImageIndex")));
			this.btnClear.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnClear.ImeMode")));
			this.btnClear.Location = ((System.Drawing.Point)(resources.GetObject("btnClear.Location")));
			this.btnClear.Name = "btnClear";
			this.btnClear.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnClear.RightToLeft")));
			this.btnClear.Size = ((System.Drawing.Size)(resources.GetObject("btnClear.Size")));
			this.btnClear.TabIndex = ((int)(resources.GetObject("btnClear.TabIndex")));
			this.btnClear.Text = resources.GetString("btnClear.Text");
			this.btnClear.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnClear.TextAlign")));
			this.ToolTip1.SetToolTip(this.btnClear, resources.GetString("btnClear.ToolTip"));
			this.btnClear.Visible = ((bool)(resources.GetObject("btnClear.Visible")));
			this.btnClear.Click += new System.EventHandler(this.btnClear_Click);
			// 
			// btnConfig
			// 
			this.btnConfig.AccessibleDescription = resources.GetString("btnConfig.AccessibleDescription");
			this.btnConfig.AccessibleName = resources.GetString("btnConfig.AccessibleName");
			this.btnConfig.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnConfig.Anchor")));
			this.btnConfig.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnConfig.BackgroundImage")));
			this.btnConfig.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnConfig.Dock")));
			this.btnConfig.Enabled = ((bool)(resources.GetObject("btnConfig.Enabled")));
			this.btnConfig.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnConfig.FlatStyle")));
			this.btnConfig.Font = ((System.Drawing.Font)(resources.GetObject("btnConfig.Font")));
			this.btnConfig.Image = ((System.Drawing.Image)(resources.GetObject("btnConfig.Image")));
			this.btnConfig.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnConfig.ImageAlign")));
			this.btnConfig.ImageIndex = ((int)(resources.GetObject("btnConfig.ImageIndex")));
			this.btnConfig.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnConfig.ImeMode")));
			this.btnConfig.Location = ((System.Drawing.Point)(resources.GetObject("btnConfig.Location")));
			this.btnConfig.Name = "btnConfig";
			this.btnConfig.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnConfig.RightToLeft")));
			this.btnConfig.Size = ((System.Drawing.Size)(resources.GetObject("btnConfig.Size")));
			this.btnConfig.TabIndex = ((int)(resources.GetObject("btnConfig.TabIndex")));
			this.btnConfig.Text = resources.GetString("btnConfig.Text");
			this.btnConfig.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnConfig.TextAlign")));
			this.ToolTip1.SetToolTip(this.btnConfig, resources.GetString("btnConfig.ToolTip"));
			this.btnConfig.Visible = ((bool)(resources.GetObject("btnConfig.Visible")));
			this.btnConfig.Click += new System.EventHandler(this.btnConfig_Click);
			// 
			// aTimer
			// 
			this.aTimer.Enabled = true;
			this.aTimer.Interval = 120000;
			this.aTimer.Tick += new System.EventHandler(this.aTimerUpdate);
			// 
			// contextMenu1
			// 
			this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																						 this.mnuShow,
																						 this.mnuHide,
																						 this.menuItem3,
																						 this.mnuStart,
																						 this.mnuStop,
																						 this.menuItem6,
																						 this.mnuExit});
			this.contextMenu1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("contextMenu1.RightToLeft")));
			this.contextMenu1.Popup += new System.EventHandler(this.contextMenu1_Popup);
			// 
			// mnuShow
			// 
			this.mnuShow.Enabled = ((bool)(resources.GetObject("mnuShow.Enabled")));
			this.mnuShow.Index = 0;
			this.mnuShow.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("mnuShow.Shortcut")));
			this.mnuShow.ShowShortcut = ((bool)(resources.GetObject("mnuShow.ShowShortcut")));
			this.mnuShow.Text = resources.GetString("mnuShow.Text");
			this.mnuShow.Visible = ((bool)(resources.GetObject("mnuShow.Visible")));
			this.mnuShow.Click += new System.EventHandler(this.mnuShow_Click);
			// 
			// mnuHide
			// 
			this.mnuHide.Enabled = ((bool)(resources.GetObject("mnuHide.Enabled")));
			this.mnuHide.Index = 1;
			this.mnuHide.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("mnuHide.Shortcut")));
			this.mnuHide.ShowShortcut = ((bool)(resources.GetObject("mnuHide.ShowShortcut")));
			this.mnuHide.Text = resources.GetString("mnuHide.Text");
			this.mnuHide.Visible = ((bool)(resources.GetObject("mnuHide.Visible")));
			this.mnuHide.Click += new System.EventHandler(this.mnuHide_Click);
			// 
			// menuItem3
			// 
			this.menuItem3.Enabled = ((bool)(resources.GetObject("menuItem3.Enabled")));
			this.menuItem3.Index = 2;
			this.menuItem3.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menuItem3.Shortcut")));
			this.menuItem3.ShowShortcut = ((bool)(resources.GetObject("menuItem3.ShowShortcut")));
			this.menuItem3.Text = resources.GetString("menuItem3.Text");
			this.menuItem3.Visible = ((bool)(resources.GetObject("menuItem3.Visible")));
			// 
			// mnuStart
			// 
			this.mnuStart.Enabled = ((bool)(resources.GetObject("mnuStart.Enabled")));
			this.mnuStart.Index = 3;
			this.mnuStart.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("mnuStart.Shortcut")));
			this.mnuStart.ShowShortcut = ((bool)(resources.GetObject("mnuStart.ShowShortcut")));
			this.mnuStart.Text = resources.GetString("mnuStart.Text");
			this.mnuStart.Visible = ((bool)(resources.GetObject("mnuStart.Visible")));
			this.mnuStart.Click += new System.EventHandler(this.mnuStart_Click);
			// 
			// mnuStop
			// 
			this.mnuStop.Enabled = ((bool)(resources.GetObject("mnuStop.Enabled")));
			this.mnuStop.Index = 4;
			this.mnuStop.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("mnuStop.Shortcut")));
			this.mnuStop.ShowShortcut = ((bool)(resources.GetObject("mnuStop.ShowShortcut")));
			this.mnuStop.Text = resources.GetString("mnuStop.Text");
			this.mnuStop.Visible = ((bool)(resources.GetObject("mnuStop.Visible")));
			this.mnuStop.Click += new System.EventHandler(this.mnuStop_Click);
			// 
			// menuItem6
			// 
			this.menuItem6.Enabled = ((bool)(resources.GetObject("menuItem6.Enabled")));
			this.menuItem6.Index = 5;
			this.menuItem6.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menuItem6.Shortcut")));
			this.menuItem6.ShowShortcut = ((bool)(resources.GetObject("menuItem6.ShowShortcut")));
			this.menuItem6.Text = resources.GetString("menuItem6.Text");
			this.menuItem6.Visible = ((bool)(resources.GetObject("menuItem6.Visible")));
			// 
			// mnuExit
			// 
			this.mnuExit.Enabled = ((bool)(resources.GetObject("mnuExit.Enabled")));
			this.mnuExit.Index = 6;
			this.mnuExit.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("mnuExit.Shortcut")));
			this.mnuExit.ShowShortcut = ((bool)(resources.GetObject("mnuExit.ShowShortcut")));
			this.mnuExit.Text = resources.GetString("mnuExit.Text");
			this.mnuExit.Visible = ((bool)(resources.GetObject("mnuExit.Visible")));
			this.mnuExit.Click += new System.EventHandler(this.mnuExit_Click);
			// 
			// notifyIcon1
			// 
			this.notifyIcon1.ContextMenu = this.contextMenu1;
			this.notifyIcon1.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon1.Icon")));
			this.notifyIcon1.Text = resources.GetString("notifyIcon1.Text");
			this.notifyIcon1.Visible = ((bool)(resources.GetObject("notifyIcon1.Visible")));
			this.notifyIcon1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.notifyIcon1_MouseDown);
			this.notifyIcon1.DoubleClick += new System.EventHandler(this.notifyIcon1_DoubleClick);
			// 
			// imageList1
			// 
			this.imageList1.ImageSize = ((System.Drawing.Size)(resources.GetObject("imageList1.ImageSize")));
			this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
			// 
			// button1
			// 
			this.button1.AccessibleDescription = resources.GetString("button1.AccessibleDescription");
			this.button1.AccessibleName = resources.GetString("button1.AccessibleName");
			this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("button1.Anchor")));
			this.button1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("button1.BackgroundImage")));
			this.button1.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("button1.Dock")));
			this.button1.Enabled = ((bool)(resources.GetObject("button1.Enabled")));
			this.button1.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("button1.FlatStyle")));
			this.button1.Font = ((System.Drawing.Font)(resources.GetObject("button1.Font")));
			this.button1.ForeColor = System.Drawing.Color.Black;
			this.button1.Image = ((System.Drawing.Image)(resources.GetObject("button1.Image")));
			this.button1.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("button1.ImageAlign")));
			this.button1.ImageIndex = ((int)(resources.GetObject("button1.ImageIndex")));
			this.button1.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("button1.ImeMode")));
			this.button1.Location = ((System.Drawing.Point)(resources.GetObject("button1.Location")));
			this.button1.Name = "button1";
			this.button1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("button1.RightToLeft")));
			this.button1.Size = ((System.Drawing.Size)(resources.GetObject("button1.Size")));
			this.button1.TabIndex = ((int)(resources.GetObject("button1.TabIndex")));
			this.button1.Text = resources.GetString("button1.Text");
			this.button1.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("button1.TextAlign")));
			this.ToolTip1.SetToolTip(this.button1, resources.GetString("button1.ToolTip"));
			this.button1.Visible = ((bool)(resources.GetObject("button1.Visible")));
			this.button1.Click += new System.EventHandler(this.button1_Click);
			// 
			// frmPP3750
			// 
			this.AccessibleDescription = resources.GetString("$this.AccessibleDescription");
			this.AccessibleName = resources.GetString("$this.AccessibleName");
			this.AutoScaleBaseSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScaleBaseSize")));
			this.AutoScroll = ((bool)(resources.GetObject("$this.AutoScroll")));
			this.AutoScrollMargin = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMargin")));
			this.AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMinSize")));
			this.BackColor = System.Drawing.SystemColors.Control;
			this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
			this.ClientSize = ((System.Drawing.Size)(resources.GetObject("$this.ClientSize")));
			this.Controls.Add(this.button1);
			this.Controls.Add(this.btnConfig);
			this.Controls.Add(this.btnClear);
			this.Controls.Add(this.grbMessage);
			this.Controls.Add(this.btnReceive);
			this.Controls.Add(this.btnClose);
			this.Cursor = System.Windows.Forms.Cursors.Default;
			this.Enabled = ((bool)(resources.GetObject("$this.Enabled")));
			this.Font = ((System.Drawing.Font)(resources.GetObject("$this.Font")));
			this.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(255)), ((System.Byte)(255)));
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode")));
			this.Location = ((System.Drawing.Point)(resources.GetObject("$this.Location")));
			this.MaximumSize = ((System.Drawing.Size)(resources.GetObject("$this.MaximumSize")));
			this.MinimumSize = ((System.Drawing.Size)(resources.GetObject("$this.MinimumSize")));
			this.Name = "frmPP3750";
			this.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft")));
			this.StartPosition = ((System.Windows.Forms.FormStartPosition)(resources.GetObject("$this.StartPosition")));
			this.Text = resources.GetString("$this.Text");
			this.ToolTip1.SetToolTip(this, resources.GetString("$this.ToolTip"));
			this.Resize += new System.EventHandler(this.frmPP3750_Resize);
			this.Closing += new System.ComponentModel.CancelEventHandler(this.frmPP3750_Closing);
			this.Load += new System.EventHandler(this.frmMain_Load);
			this.grbMessage.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.xptMessage)).EndInit();
			this.ResumeLayout(false);

		}
示例#12
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(frmListPosition));
     this.btnDelete          = new System.Windows.Forms.Button();
     this.btnUpdate          = new System.Windows.Forms.Button();
     this.btnAddNew          = new System.Windows.Forms.Button();
     this.btnClose           = new System.Windows.Forms.Button();
     this.grbPositionList    = new System.Windows.Forms.GroupBox();
     this.lvwPosition        = new XPTable.Models.Table();
     this.columnModel1       = new XPTable.Models.ColumnModel();
     this.cSTT               = new XPTable.Models.TextColumn();
     this.cPositionName      = new XPTable.Models.TextColumn();
     this.cPositionShortName = new XPTable.Models.TextColumn();
     this.cDescription       = new XPTable.Models.TextColumn();
     this.tableModel1        = new XPTable.Models.TableModel();
     this.grbPositionList.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.lvwPosition)).BeginInit();
     this.SuspendLayout();
     //
     // 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(280, 230);
     this.btnDelete.Name      = "btnDelete";
     this.btnDelete.Size      = new System.Drawing.Size(72, 23);
     this.btnDelete.TabIndex  = 6;
     this.btnDelete.Text      = "&Xóa";
     this.btnDelete.Click    += new System.EventHandler(this.btnDelete_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(200, 230);
     this.btnUpdate.Name      = "btnUpdate";
     this.btnUpdate.Size      = new System.Drawing.Size(72, 23);
     this.btnUpdate.TabIndex  = 5;
     this.btnUpdate.Text      = "&Sửa";
     this.btnUpdate.Click    += new System.EventHandler(this.btnUpdate_Click);
     //
     // btnAddNew
     //
     this.btnAddNew.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnAddNew.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnAddNew.Location  = new System.Drawing.Point(120, 230);
     this.btnAddNew.Name      = "btnAddNew";
     this.btnAddNew.Size      = new System.Drawing.Size(72, 23);
     this.btnAddNew.TabIndex  = 4;
     this.btnAddNew.Text      = "Thêm &mới";
     this.btnAddNew.Click    += new System.EventHandler(this.btnAddNew_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.Font         = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
     this.btnClose.Location     = new System.Drawing.Point(358, 230);
     this.btnClose.Name         = "btnClose";
     this.btnClose.Size         = new System.Drawing.Size(72, 23);
     this.btnClose.TabIndex     = 8;
     this.btnClose.Text         = "&Đóng";
     this.btnClose.Click       += new System.EventHandler(this.btnClose_Click);
     //
     // grbPositionList
     //
     this.grbPositionList.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.grbPositionList.Controls.Add(this.lvwPosition);
     this.grbPositionList.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.grbPositionList.Location  = new System.Drawing.Point(8, 8);
     this.grbPositionList.Name      = "grbPositionList";
     this.grbPositionList.Size      = new System.Drawing.Size(424, 216);
     this.grbPositionList.TabIndex  = 35;
     this.grbPositionList.TabStop   = false;
     this.grbPositionList.Text      = "Danh sách chức vụ";
     //
     // lvwPosition
     //
     this.lvwPosition.AlternatingRowColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(237)))), ((int)(((byte)(245)))));
     this.lvwPosition.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.lvwPosition.BackColor                   = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(242)))), ((int)(((byte)(249)))));
     this.lvwPosition.ColumnModel                 = this.columnModel1;
     this.lvwPosition.EnableToolTips              = true;
     this.lvwPosition.ForeColor                   = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     this.lvwPosition.FullRowSelect               = true;
     this.lvwPosition.GridColor                   = System.Drawing.SystemColors.ControlDark;
     this.lvwPosition.GridLines                   = XPTable.Models.GridLines.Both;
     this.lvwPosition.GridLineStyle               = XPTable.Models.GridLineStyle.Dot;
     this.lvwPosition.HeaderFont                  = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.lvwPosition.Location                    = new System.Drawing.Point(8, 16);
     this.lvwPosition.Name                        = "lvwPosition";
     this.lvwPosition.SelectionBackColor          = System.Drawing.Color.FromArgb(((int)(((byte)(169)))), ((int)(((byte)(183)))), ((int)(((byte)(201)))));
     this.lvwPosition.SelectionForeColor          = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     this.lvwPosition.SelectionStyle              = XPTable.Models.SelectionStyle.Grid;
     this.lvwPosition.Size                        = new System.Drawing.Size(408, 192);
     this.lvwPosition.SortedColumnBackColor       = System.Drawing.Color.Transparent;
     this.lvwPosition.TabIndex                    = 13;
     this.lvwPosition.TableModel                  = this.tableModel1;
     this.lvwPosition.UnfocusedSelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(210)))), ((int)(((byte)(221)))));
     this.lvwPosition.UnfocusedSelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     this.lvwPosition.CellDoubleClick            += new XPTable.Events.CellMouseEventHandler(this.lvwPosition_CellDoubleClick);
     this.lvwPosition.MouseDown                  += new System.Windows.Forms.MouseEventHandler(this.lvwPosition_MouseDown);
     this.lvwPosition.SelectionChanged           += new XPTable.Events.SelectionEventHandler(this.lvwPosition_SelectionChanged);
     //
     // columnModel1
     //
     this.columnModel1.Columns.AddRange(new XPTable.Models.Column[] {
         this.cSTT,
         this.cPositionName,
         this.cPositionShortName,
         this.cDescription
     });
     //
     // cSTT
     //
     this.cSTT.Editable = false;
     this.cSTT.Text     = "STT";
     this.cSTT.Width    = 50;
     //
     // cPositionName
     //
     this.cPositionName.Editable = false;
     this.cPositionName.Text     = "Tên chức vụ";
     this.cPositionName.Width    = 120;
     //
     // cPositionShortName
     //
     this.cPositionShortName.Editable = false;
     this.cPositionShortName.Text     = "Tên viết tắt";
     this.cPositionShortName.Width    = 80;
     //
     // cDescription
     //
     this.cDescription.Editable = false;
     this.cDescription.Text     = "Mô tả";
     this.cDescription.Width    = 150;
     //
     // frmListPosition
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton      = this.btnClose;
     this.ClientSize        = new System.Drawing.Size(438, 260);
     this.Controls.Add(this.grbPositionList);
     this.Controls.Add(this.btnDelete);
     this.Controls.Add(this.btnUpdate);
     this.Controls.Add(this.btnAddNew);
     this.Controls.Add(this.btnClose);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name          = "frmListPosition";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Quản lý chức vụ";
     this.Load         += new System.EventHandler(this.frmPosition_Load);
     this.grbPositionList.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.lvwPosition)).EndInit();
     this.ResumeLayout(false);
 }
示例#13
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.groupBox1        = new System.Windows.Forms.GroupBox();
            this.lvwContractTable = new XPTable.Models.Table();
            this.columnModel1     = new XPTable.Models.ColumnModel();
            this.clSTT            = new XPTable.Models.TextColumn();
            this.clContractName   = new XPTable.Models.TextColumn();
            this.clNote           = new XPTable.Models.TextColumn();
            this.tableModel1      = new XPTable.Models.TableModel();
            this.btnAdd           = new System.Windows.Forms.Button();
            this.btnEdit          = new System.Windows.Forms.Button();
            this.btnDelete        = new System.Windows.Forms.Button();
            this.btnClose         = new System.Windows.Forms.Button();
            this.groupBox1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.lvwContractTable)).BeginInit();
            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.lvwContractTable);
            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(592, 416);
            this.groupBox1.TabIndex  = 0;
            this.groupBox1.TabStop   = false;
            this.groupBox1.Text      = "Danh sách các loại hợp đồng";
            //
            // lvwContractTable
            //
            //this.lvwContractTable.AllowDrop = true;
            this.lvwContractTable.AlternatingRowColor = System.Drawing.Color.FromArgb(((System.Byte)(230)), ((System.Byte)(237)), ((System.Byte)(245)));
            this.lvwContractTable.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.lvwContractTable.BackColor         = System.Drawing.Color.FromArgb(((System.Byte)(237)), ((System.Byte)(242)), ((System.Byte)(249)));
            this.lvwContractTable.ColumnModel       = this.columnModel1;
            this.lvwContractTable.ForeColor         = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
            this.lvwContractTable.FullRowSelect     = true;
            this.lvwContractTable.GridColor         = System.Drawing.SystemColors.ControlDark;
            this.lvwContractTable.GridLines         = XPTable.Models.GridLines.Both;
            this.lvwContractTable.GridLineStyle     = XPTable.Models.GridLineStyle.Dot;
            this.lvwContractTable.HeaderFont        = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
            this.lvwContractTable.Location          = new System.Drawing.Point(8, 16);
            this.lvwContractTable.Name              = "lvwContractTable";
            this.lvwContractTable.NoItemsText       = WorkingContext.LangManager.GetString("XPtable");
            this.lvwContractTable.SelectionStyle    = XPTable.Models.SelectionStyle.Grid;
            this.lvwContractTable.Size              = new System.Drawing.Size(574, 390);
            this.lvwContractTable.TabIndex          = 0;
            this.lvwContractTable.TableModel        = this.tableModel1;
            this.lvwContractTable.Text              = "table1";
            this.lvwContractTable.SelectionChanged += new XPTable.Events.SelectionEventHandler(this.lvwContractTable_SelectionChanged);
            this.lvwContractTable.MouseDown        += new System.Windows.Forms.MouseEventHandler(this.lvwContractTable_MouseDown_1);
            //
            // columnModel1
            //
            this.columnModel1.Columns.AddRange(new XPTable.Models.Column[] {
                this.clSTT,
                this.clContractName,
                this.clNote
            });
            //
            // clSTT
            //
            this.clSTT.Editable = false;
            this.clSTT.Text     = "STT";
            this.clSTT.Width    = 45;
            //
            // clContractName
            //
            this.clContractName.Editable = false;
            this.clContractName.Text     = "Tên hợp đồng";
            this.clContractName.Width    = 180;
            //
            // clNote
            //
            this.clNote.Editable = false;
            this.clNote.Text     = "                 Ghi chú";
            this.clNote.Width    = 250;
            //
            // 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.Font      = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
            this.btnAdd.Location  = new System.Drawing.Point(285, 434);
            this.btnAdd.Name      = "btnAdd";
            this.btnAdd.TabIndex  = 2;
            this.btnAdd.Text      = "Thêm";
            this.btnAdd.Click    += new System.EventHandler(this.btnAdd_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.Font      = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
            this.btnEdit.Location  = new System.Drawing.Point(365, 434);
            this.btnEdit.Name      = "btnEdit";
            this.btnEdit.TabIndex  = 3;
            this.btnEdit.Text      = "Sửa";
            this.btnEdit.Click    += new System.EventHandler(this.btnEdit_Click_1);
            //
            // 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.Font      = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
            this.btnDelete.Location  = new System.Drawing.Point(445, 434);
            this.btnDelete.Name      = "btnDelete";
            this.btnDelete.TabIndex  = 4;
            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.Font         = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
            this.btnClose.Location     = new System.Drawing.Point(525, 434);
            this.btnClose.Name         = "btnClose";
            this.btnClose.TabIndex     = 5;
            this.btnClose.Text         = "Đóng";
            this.btnClose.Click       += new System.EventHandler(this.btnClose_Click);
            //
            // frmListContractType
            //

            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.CancelButton      = this.btnClose;
            this.ClientSize        = new System.Drawing.Size(610, 464);
            this.Controls.Add(this.btnClose);
            this.Controls.Add(this.btnDelete);
            this.Controls.Add(this.btnEdit);
            this.Controls.Add(this.btnAdd);
            this.Controls.Add(this.groupBox1);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            this.Name            = "frmListContractType";
            this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text            = "Thống kê các loại hợp đồng";
            this.Load           += new System.EventHandler(this.frmListContractType_Load);
            this.groupBox1.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.lvwContractTable)).EndInit();
            this.ResumeLayout(false);
        }
示例#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
 /// <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);
 }
示例#16
0
        public static ColumnModel getColumnModelInfo()
        {
            //1. oszlop
            //ImageColumn imageColumn = new ImageColumn("", 30);
            //imageColumn.Editable = false;

            TextColumn d_tol = new TextColumn("Tól", 85);
            d_tol.Editable = false;

            TextColumn d_ig = new TextColumn("Ig", 45);
            d_ig.Editable = false;

            TextColumn NevColumn = new TextColumn("Név", 170);
            NevColumn.Editable = false;
            NevColumn.Alignment = ColumnAlignment.Right;

            return (new ColumnModel(new Column[] { d_tol,d_ig, NevColumn }));
        }
示例#17
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(frmListPosition));
     this.btnDelete = new System.Windows.Forms.Button();
     this.btnUpdate = new System.Windows.Forms.Button();
     this.btnAddNew = new System.Windows.Forms.Button();
     this.btnClose = new System.Windows.Forms.Button();
     this.grbPositionList = new System.Windows.Forms.GroupBox();
     this.lvwPosition = new XPTable.Models.Table();
     this.columnModel1 = new XPTable.Models.ColumnModel();
     this.cSTT = new XPTable.Models.TextColumn();
     this.cPositionName = new XPTable.Models.TextColumn();
     this.cPositionShortName = new XPTable.Models.TextColumn();
     this.cDescription = new XPTable.Models.TextColumn();
     this.tableModel1 = new XPTable.Models.TableModel();
     this.grbPositionList.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.lvwPosition)).BeginInit();
     this.SuspendLayout();
     //
     // 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(280, 230);
     this.btnDelete.Name = "btnDelete";
     this.btnDelete.Size = new System.Drawing.Size(72, 23);
     this.btnDelete.TabIndex = 6;
     this.btnDelete.Text = "&Xóa";
     this.btnDelete.Click += new System.EventHandler(this.btnDelete_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(200, 230);
     this.btnUpdate.Name = "btnUpdate";
     this.btnUpdate.Size = new System.Drawing.Size(72, 23);
     this.btnUpdate.TabIndex = 5;
     this.btnUpdate.Text = "&Sửa";
     this.btnUpdate.Click += new System.EventHandler(this.btnUpdate_Click);
     //
     // btnAddNew
     //
     this.btnAddNew.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnAddNew.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnAddNew.Location = new System.Drawing.Point(120, 230);
     this.btnAddNew.Name = "btnAddNew";
     this.btnAddNew.Size = new System.Drawing.Size(72, 23);
     this.btnAddNew.TabIndex = 4;
     this.btnAddNew.Text = "Thêm &mới";
     this.btnAddNew.Click += new System.EventHandler(this.btnAddNew_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.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
     this.btnClose.Location = new System.Drawing.Point(358, 230);
     this.btnClose.Name = "btnClose";
     this.btnClose.Size = new System.Drawing.Size(72, 23);
     this.btnClose.TabIndex = 8;
     this.btnClose.Text = "&Đóng";
     this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
     //
     // grbPositionList
     //
     this.grbPositionList.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.grbPositionList.Controls.Add(this.lvwPosition);
     this.grbPositionList.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.grbPositionList.Location = new System.Drawing.Point(8, 8);
     this.grbPositionList.Name = "grbPositionList";
     this.grbPositionList.Size = new System.Drawing.Size(424, 216);
     this.grbPositionList.TabIndex = 35;
     this.grbPositionList.TabStop = false;
     this.grbPositionList.Text = "Danh sách chức vụ";
     //
     // lvwPosition
     //
     this.lvwPosition.AlternatingRowColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(237)))), ((int)(((byte)(245)))));
     this.lvwPosition.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.lvwPosition.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(242)))), ((int)(((byte)(249)))));
     this.lvwPosition.ColumnModel = this.columnModel1;
     this.lvwPosition.EnableToolTips = true;
     this.lvwPosition.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     this.lvwPosition.FullRowSelect = true;
     this.lvwPosition.GridColor = System.Drawing.SystemColors.ControlDark;
     this.lvwPosition.GridLines = XPTable.Models.GridLines.Both;
     this.lvwPosition.GridLineStyle = XPTable.Models.GridLineStyle.Dot;
     this.lvwPosition.HeaderFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.lvwPosition.Location = new System.Drawing.Point(8, 16);
     this.lvwPosition.Name = "lvwPosition";
     this.lvwPosition.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(169)))), ((int)(((byte)(183)))), ((int)(((byte)(201)))));
     this.lvwPosition.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     this.lvwPosition.SelectionStyle = XPTable.Models.SelectionStyle.Grid;
     this.lvwPosition.Size = new System.Drawing.Size(408, 192);
     this.lvwPosition.SortedColumnBackColor = System.Drawing.Color.Transparent;
     this.lvwPosition.TabIndex = 13;
     this.lvwPosition.TableModel = this.tableModel1;
     this.lvwPosition.UnfocusedSelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(210)))), ((int)(((byte)(221)))));
     this.lvwPosition.UnfocusedSelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     this.lvwPosition.CellDoubleClick += new XPTable.Events.CellMouseEventHandler(this.lvwPosition_CellDoubleClick);
     this.lvwPosition.MouseDown += new System.Windows.Forms.MouseEventHandler(this.lvwPosition_MouseDown);
     this.lvwPosition.SelectionChanged += new XPTable.Events.SelectionEventHandler(this.lvwPosition_SelectionChanged);
     //
     // columnModel1
     //
     this.columnModel1.Columns.AddRange(new XPTable.Models.Column[] {
     this.cSTT,
     this.cPositionName,
     this.cPositionShortName,
     this.cDescription});
     //
     // cSTT
     //
     this.cSTT.Editable = false;
     this.cSTT.Text = "STT";
     this.cSTT.Width = 50;
     //
     // cPositionName
     //
     this.cPositionName.Editable = false;
     this.cPositionName.Text = "Tên chức vụ";
     this.cPositionName.Width = 120;
     //
     // cPositionShortName
     //
     this.cPositionShortName.Editable = false;
     this.cPositionShortName.Text = "Tên viết tắt";
     this.cPositionShortName.Width = 80;
     //
     // cDescription
     //
     this.cDescription.Editable = false;
     this.cDescription.Text = "Mô tả";
     this.cDescription.Width = 150;
     //
     // frmListPosition
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton = this.btnClose;
     this.ClientSize = new System.Drawing.Size(438, 260);
     this.Controls.Add(this.grbPositionList);
     this.Controls.Add(this.btnDelete);
     this.Controls.Add(this.btnUpdate);
     this.Controls.Add(this.btnAddNew);
     this.Controls.Add(this.btnClose);
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name = "frmListPosition";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "Quản lý chức vụ";
     this.Load += new System.EventHandler(this.frmPosition_Load);
     this.grbPositionList.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.lvwPosition)).EndInit();
     this.ResumeLayout(false);
 }
示例#18
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
                                              }));
        }
示例#19
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);
 }
示例#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(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);
 }
        /// <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);
        }
示例#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.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);
 }
示例#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.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmListDayType));
     this.btnClose       = new System.Windows.Forms.Button();
     this.btnEdit        = new System.Windows.Forms.Button();
     this.btnAdd         = new System.Windows.Forms.Button();
     this.btnDelete      = new System.Windows.Forms.Button();
     this.btnHelp        = new System.Windows.Forms.Button();
     this.chSTT          = new System.Windows.Forms.DataGridTextBoxColumn();
     this.chName         = new System.Windows.Forms.DataGridTextBoxColumn();
     this.groupBox1      = new System.Windows.Forms.GroupBox();
     this.lvwDayType     = new XPTable.Models.Table();
     this.columnModel1   = new XPTable.Models.ColumnModel();
     this.clSTT          = new XPTable.Models.TextColumn();
     this.clDayName      = new XPTable.Models.TextColumn();
     this.clDayShortName = new XPTable.Models.TextColumn();
     this.clDayFactor    = new XPTable.Models.TextColumn();
     this.clQuantity     = new XPTable.Models.TextColumn();
     this.tableModel1    = new XPTable.Models.TableModel();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.lvwDayType)).BeginInit();
     this.SuspendLayout();
     //
     // btnClose
     //
     this.btnClose.AccessibleDescription = resources.GetString("btnClose.AccessibleDescription");
     this.btnClose.AccessibleName        = resources.GetString("btnClose.AccessibleName");
     this.btnClose.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnClose.Anchor")));
     this.btnClose.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnClose.BackgroundImage")));
     this.btnClose.DialogResult    = System.Windows.Forms.DialogResult.Cancel;
     this.btnClose.Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnClose.Dock")));
     this.btnClose.Enabled         = ((bool)(resources.GetObject("btnClose.Enabled")));
     this.btnClose.FlatStyle       = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnClose.FlatStyle")));
     this.btnClose.Font            = ((System.Drawing.Font)(resources.GetObject("btnClose.Font")));
     this.btnClose.Image           = ((System.Drawing.Image)(resources.GetObject("btnClose.Image")));
     this.btnClose.ImageAlign      = ((System.Drawing.ContentAlignment)(resources.GetObject("btnClose.ImageAlign")));
     this.btnClose.ImageIndex      = ((int)(resources.GetObject("btnClose.ImageIndex")));
     this.btnClose.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnClose.ImeMode")));
     this.btnClose.Location        = ((System.Drawing.Point)(resources.GetObject("btnClose.Location")));
     this.btnClose.Name            = "btnClose";
     this.btnClose.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnClose.RightToLeft")));
     this.btnClose.Size            = ((System.Drawing.Size)(resources.GetObject("btnClose.Size")));
     this.btnClose.TabIndex        = ((int)(resources.GetObject("btnClose.TabIndex")));
     this.btnClose.Text            = resources.GetString("btnClose.Text");
     this.btnClose.TextAlign       = ((System.Drawing.ContentAlignment)(resources.GetObject("btnClose.TextAlign")));
     this.btnClose.Visible         = ((bool)(resources.GetObject("btnClose.Visible")));
     this.btnClose.Click          += new System.EventHandler(this.btnClose_Click);
     //
     // btnEdit
     //
     this.btnEdit.AccessibleDescription = resources.GetString("btnEdit.AccessibleDescription");
     this.btnEdit.AccessibleName        = resources.GetString("btnEdit.AccessibleName");
     this.btnEdit.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnEdit.Anchor")));
     this.btnEdit.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnEdit.BackgroundImage")));
     this.btnEdit.Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnEdit.Dock")));
     this.btnEdit.Enabled         = ((bool)(resources.GetObject("btnEdit.Enabled")));
     this.btnEdit.FlatStyle       = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnEdit.FlatStyle")));
     this.btnEdit.Font            = ((System.Drawing.Font)(resources.GetObject("btnEdit.Font")));
     this.btnEdit.Image           = ((System.Drawing.Image)(resources.GetObject("btnEdit.Image")));
     this.btnEdit.ImageAlign      = ((System.Drawing.ContentAlignment)(resources.GetObject("btnEdit.ImageAlign")));
     this.btnEdit.ImageIndex      = ((int)(resources.GetObject("btnEdit.ImageIndex")));
     this.btnEdit.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnEdit.ImeMode")));
     this.btnEdit.Location        = ((System.Drawing.Point)(resources.GetObject("btnEdit.Location")));
     this.btnEdit.Name            = "btnEdit";
     this.btnEdit.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnEdit.RightToLeft")));
     this.btnEdit.Size            = ((System.Drawing.Size)(resources.GetObject("btnEdit.Size")));
     this.btnEdit.TabIndex        = ((int)(resources.GetObject("btnEdit.TabIndex")));
     this.btnEdit.Text            = resources.GetString("btnEdit.Text");
     this.btnEdit.TextAlign       = ((System.Drawing.ContentAlignment)(resources.GetObject("btnEdit.TextAlign")));
     this.btnEdit.Visible         = ((bool)(resources.GetObject("btnEdit.Visible")));
     this.btnEdit.Click          += new System.EventHandler(this.btnSuaNgay_Click);
     //
     // btnAdd
     //
     this.btnAdd.AccessibleDescription = resources.GetString("btnAdd.AccessibleDescription");
     this.btnAdd.AccessibleName        = resources.GetString("btnAdd.AccessibleName");
     this.btnAdd.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnAdd.Anchor")));
     this.btnAdd.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnAdd.BackgroundImage")));
     this.btnAdd.Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnAdd.Dock")));
     this.btnAdd.Enabled         = ((bool)(resources.GetObject("btnAdd.Enabled")));
     this.btnAdd.FlatStyle       = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnAdd.FlatStyle")));
     this.btnAdd.Font            = ((System.Drawing.Font)(resources.GetObject("btnAdd.Font")));
     this.btnAdd.Image           = ((System.Drawing.Image)(resources.GetObject("btnAdd.Image")));
     this.btnAdd.ImageAlign      = ((System.Drawing.ContentAlignment)(resources.GetObject("btnAdd.ImageAlign")));
     this.btnAdd.ImageIndex      = ((int)(resources.GetObject("btnAdd.ImageIndex")));
     this.btnAdd.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnAdd.ImeMode")));
     this.btnAdd.Location        = ((System.Drawing.Point)(resources.GetObject("btnAdd.Location")));
     this.btnAdd.Name            = "btnAdd";
     this.btnAdd.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnAdd.RightToLeft")));
     this.btnAdd.Size            = ((System.Drawing.Size)(resources.GetObject("btnAdd.Size")));
     this.btnAdd.TabIndex        = ((int)(resources.GetObject("btnAdd.TabIndex")));
     this.btnAdd.Text            = resources.GetString("btnAdd.Text");
     this.btnAdd.TextAlign       = ((System.Drawing.ContentAlignment)(resources.GetObject("btnAdd.TextAlign")));
     this.btnAdd.Visible         = ((bool)(resources.GetObject("btnAdd.Visible")));
     this.btnAdd.Click          += new System.EventHandler(this.btnAdd_Click);
     //
     // btnDelete
     //
     this.btnDelete.AccessibleDescription = resources.GetString("btnDelete.AccessibleDescription");
     this.btnDelete.AccessibleName        = resources.GetString("btnDelete.AccessibleName");
     this.btnDelete.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnDelete.Anchor")));
     this.btnDelete.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnDelete.BackgroundImage")));
     this.btnDelete.Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnDelete.Dock")));
     this.btnDelete.Enabled         = ((bool)(resources.GetObject("btnDelete.Enabled")));
     this.btnDelete.FlatStyle       = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnDelete.FlatStyle")));
     this.btnDelete.Font            = ((System.Drawing.Font)(resources.GetObject("btnDelete.Font")));
     this.btnDelete.Image           = ((System.Drawing.Image)(resources.GetObject("btnDelete.Image")));
     this.btnDelete.ImageAlign      = ((System.Drawing.ContentAlignment)(resources.GetObject("btnDelete.ImageAlign")));
     this.btnDelete.ImageIndex      = ((int)(resources.GetObject("btnDelete.ImageIndex")));
     this.btnDelete.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnDelete.ImeMode")));
     this.btnDelete.Location        = ((System.Drawing.Point)(resources.GetObject("btnDelete.Location")));
     this.btnDelete.Name            = "btnDelete";
     this.btnDelete.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnDelete.RightToLeft")));
     this.btnDelete.Size            = ((System.Drawing.Size)(resources.GetObject("btnDelete.Size")));
     this.btnDelete.TabIndex        = ((int)(resources.GetObject("btnDelete.TabIndex")));
     this.btnDelete.Text            = resources.GetString("btnDelete.Text");
     this.btnDelete.TextAlign       = ((System.Drawing.ContentAlignment)(resources.GetObject("btnDelete.TextAlign")));
     this.btnDelete.Visible         = ((bool)(resources.GetObject("btnDelete.Visible")));
     this.btnDelete.Click          += new System.EventHandler(this.btnDelete_Click);
     //
     // btnHelp
     //
     this.btnHelp.AccessibleDescription = resources.GetString("btnHelp.AccessibleDescription");
     this.btnHelp.AccessibleName        = resources.GetString("btnHelp.AccessibleName");
     this.btnHelp.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnHelp.Anchor")));
     this.btnHelp.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnHelp.BackgroundImage")));
     this.btnHelp.Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnHelp.Dock")));
     this.btnHelp.Enabled         = ((bool)(resources.GetObject("btnHelp.Enabled")));
     this.btnHelp.FlatStyle       = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnHelp.FlatStyle")));
     this.btnHelp.Font            = ((System.Drawing.Font)(resources.GetObject("btnHelp.Font")));
     this.btnHelp.Image           = ((System.Drawing.Image)(resources.GetObject("btnHelp.Image")));
     this.btnHelp.ImageAlign      = ((System.Drawing.ContentAlignment)(resources.GetObject("btnHelp.ImageAlign")));
     this.btnHelp.ImageIndex      = ((int)(resources.GetObject("btnHelp.ImageIndex")));
     this.btnHelp.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnHelp.ImeMode")));
     this.btnHelp.Location        = ((System.Drawing.Point)(resources.GetObject("btnHelp.Location")));
     this.btnHelp.Name            = "btnHelp";
     this.btnHelp.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnHelp.RightToLeft")));
     this.btnHelp.Size            = ((System.Drawing.Size)(resources.GetObject("btnHelp.Size")));
     this.btnHelp.TabIndex        = ((int)(resources.GetObject("btnHelp.TabIndex")));
     this.btnHelp.Text            = resources.GetString("btnHelp.Text");
     this.btnHelp.TextAlign       = ((System.Drawing.ContentAlignment)(resources.GetObject("btnHelp.TextAlign")));
     this.btnHelp.Visible         = ((bool)(resources.GetObject("btnHelp.Visible")));
     //
     // chSTT
     //
     this.chSTT.Alignment   = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("chSTT.Alignment")));
     this.chSTT.Format      = "";
     this.chSTT.FormatInfo  = null;
     this.chSTT.HeaderText  = resources.GetString("chSTT.HeaderText");
     this.chSTT.MappingName = resources.GetString("chSTT.MappingName");
     this.chSTT.NullText    = resources.GetString("chSTT.NullText");
     this.chSTT.Width       = ((int)(resources.GetObject("chSTT.Width")));
     //
     // chName
     //
     this.chName.Alignment   = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("chName.Alignment")));
     this.chName.Format      = "";
     this.chName.FormatInfo  = null;
     this.chName.HeaderText  = resources.GetString("chName.HeaderText");
     this.chName.MappingName = resources.GetString("chName.MappingName");
     this.chName.NullText    = resources.GetString("chName.NullText");
     this.chName.Width       = ((int)(resources.GetObject("chName.Width")));
     //
     // groupBox1
     //
     this.groupBox1.AccessibleDescription = resources.GetString("groupBox1.AccessibleDescription");
     this.groupBox1.AccessibleName        = resources.GetString("groupBox1.AccessibleName");
     this.groupBox1.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("groupBox1.Anchor")));
     this.groupBox1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("groupBox1.BackgroundImage")));
     this.groupBox1.Controls.Add(this.lvwDayType);
     this.groupBox1.Dock        = ((System.Windows.Forms.DockStyle)(resources.GetObject("groupBox1.Dock")));
     this.groupBox1.Enabled     = ((bool)(resources.GetObject("groupBox1.Enabled")));
     this.groupBox1.FlatStyle   = System.Windows.Forms.FlatStyle.System;
     this.groupBox1.Font        = ((System.Drawing.Font)(resources.GetObject("groupBox1.Font")));
     this.groupBox1.ImeMode     = ((System.Windows.Forms.ImeMode)(resources.GetObject("groupBox1.ImeMode")));
     this.groupBox1.Location    = ((System.Drawing.Point)(resources.GetObject("groupBox1.Location")));
     this.groupBox1.Name        = "groupBox1";
     this.groupBox1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("groupBox1.RightToLeft")));
     this.groupBox1.Size        = ((System.Drawing.Size)(resources.GetObject("groupBox1.Size")));
     this.groupBox1.TabIndex    = ((int)(resources.GetObject("groupBox1.TabIndex")));
     this.groupBox1.TabStop     = false;
     this.groupBox1.Text        = resources.GetString("groupBox1.Text");
     this.groupBox1.Visible     = ((bool)(resources.GetObject("groupBox1.Visible")));
     //
     // lvwDayType
     //
     this.lvwDayType.AccessibleDescription = resources.GetString("lvwDayType.AccessibleDescription");
     this.lvwDayType.AccessibleName        = resources.GetString("lvwDayType.AccessibleName");
     this.lvwDayType.AlternatingRowColor   = System.Drawing.Color.FromArgb(((System.Byte)(230)), ((System.Byte)(237)), ((System.Byte)(245)));
     this.lvwDayType.Anchor                      = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lvwDayType.Anchor")));
     this.lvwDayType.BackColor                   = System.Drawing.Color.FromArgb(((System.Byte)(237)), ((System.Byte)(242)), ((System.Byte)(249)));
     this.lvwDayType.BackgroundImage             = ((System.Drawing.Image)(resources.GetObject("lvwDayType.BackgroundImage")));
     this.lvwDayType.ColumnModel                 = this.columnModel1;
     this.lvwDayType.Dock                        = ((System.Windows.Forms.DockStyle)(resources.GetObject("lvwDayType.Dock")));
     this.lvwDayType.Enabled                     = ((bool)(resources.GetObject("lvwDayType.Enabled")));
     this.lvwDayType.EnableToolTips              = true;
     this.lvwDayType.Font                        = ((System.Drawing.Font)(resources.GetObject("lvwDayType.Font")));
     this.lvwDayType.ForeColor                   = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
     this.lvwDayType.FullRowSelect               = true;
     this.lvwDayType.GridColor                   = System.Drawing.SystemColors.ControlDark;
     this.lvwDayType.GridLines                   = XPTable.Models.GridLines.Both;
     this.lvwDayType.GridLineStyle               = XPTable.Models.GridLineStyle.Dot;
     this.lvwDayType.HeaderFont                  = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.lvwDayType.ImeMode                     = ((System.Windows.Forms.ImeMode)(resources.GetObject("lvwDayType.ImeMode")));
     this.lvwDayType.Location                    = ((System.Drawing.Point)(resources.GetObject("lvwDayType.Location")));
     this.lvwDayType.Name                        = "lvwDayType";
     this.lvwDayType.RightToLeft                 = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lvwDayType.RightToLeft")));
     this.lvwDayType.SelectionBackColor          = System.Drawing.Color.FromArgb(((System.Byte)(169)), ((System.Byte)(183)), ((System.Byte)(201)));
     this.lvwDayType.SelectionForeColor          = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
     this.lvwDayType.SelectionStyle              = XPTable.Models.SelectionStyle.Grid;
     this.lvwDayType.Size                        = ((System.Drawing.Size)(resources.GetObject("lvwDayType.Size")));
     this.lvwDayType.SortedColumnBackColor       = System.Drawing.Color.Transparent;
     this.lvwDayType.TabIndex                    = ((int)(resources.GetObject("lvwDayType.TabIndex")));
     this.lvwDayType.TableModel                  = this.tableModel1;
     this.lvwDayType.Text                        = resources.GetString("lvwDayType.Text");
     this.lvwDayType.UnfocusedSelectionBackColor = System.Drawing.Color.FromArgb(((System.Byte)(201)), ((System.Byte)(210)), ((System.Byte)(221)));
     this.lvwDayType.UnfocusedSelectionForeColor = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
     this.lvwDayType.Visible                     = ((bool)(resources.GetObject("lvwDayType.Visible")));
     this.lvwDayType.SelectionChanged           += new XPTable.Events.SelectionEventHandler(this.lvwDayType_SelectionChanged);
     this.lvwDayType.MouseDown                  += new System.Windows.Forms.MouseEventHandler(this.lvwDayType_MouseDown);
     //
     // columnModel1
     //
     this.columnModel1.Columns.AddRange(new XPTable.Models.Column[] {
         this.clSTT,
         this.clDayName,
         this.clDayShortName,
         this.clDayFactor,
         this.clQuantity
     });
     //
     // clSTT
     //
     this.clSTT.Editable = false;
     this.clSTT.Text     = "STT";
     this.clSTT.Width    = 50;
     //
     // clDayName
     //
     this.clDayName.Editable = false;
     this.clDayName.Text     = "Tên kiểu ngày";
     this.clDayName.Width    = 140;
     //
     // clDayShortName
     //
     this.clDayShortName.Editable = false;
     this.clDayShortName.Text     = "Ký hiệu ngày";
     this.clDayShortName.Width    = 90;
     //
     // clDayFactor
     //
     this.clDayFactor.Editable = false;
     this.clDayFactor.Text     = "Hệ số ngày";
     this.clDayFactor.Width    = 90;
     //
     // clQuantity
     //
     this.clQuantity.Editable = false;
     this.clQuantity.Text     = "Số ngày nghỉ";
     this.clQuantity.Width    = 90;
     //
     // frmListDayType
     //
     this.AccessibleDescription = resources.GetString("$this.AccessibleDescription");
     this.AccessibleName        = resources.GetString("$this.AccessibleName");
     this.AutoScaleBaseSize     = ((System.Drawing.Size)(resources.GetObject("$this.AutoScaleBaseSize")));
     this.AutoScroll            = ((bool)(resources.GetObject("$this.AutoScroll")));
     this.AutoScrollMargin      = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMargin")));
     this.AutoScrollMinSize     = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMinSize")));
     this.BackgroundImage       = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
     this.CancelButton          = this.btnClose;
     this.ClientSize            = ((System.Drawing.Size)(resources.GetObject("$this.ClientSize")));
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.btnHelp);
     this.Controls.Add(this.btnClose);
     this.Controls.Add(this.btnEdit);
     this.Controls.Add(this.btnAdd);
     this.Controls.Add(this.btnDelete);
     this.Enabled         = ((bool)(resources.GetObject("$this.Enabled")));
     this.Font            = ((System.Drawing.Font)(resources.GetObject("$this.Font")));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode")));
     this.Location        = ((System.Drawing.Point)(resources.GetObject("$this.Location")));
     this.MaximizeBox     = false;
     this.MaximumSize     = ((System.Drawing.Size)(resources.GetObject("$this.MaximumSize")));
     this.MinimumSize     = ((System.Drawing.Size)(resources.GetObject("$this.MinimumSize")));
     this.Name            = "frmListDayType";
     this.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft")));
     this.StartPosition   = ((System.Windows.Forms.FormStartPosition)(resources.GetObject("$this.StartPosition")));
     this.Text            = resources.GetString("$this.Text");
     this.Load           += new System.EventHandler(this.frmListDayType_Load);
     this.groupBox1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.lvwDayType)).EndInit();
     this.ResumeLayout(false);
 }
示例#24
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);
 }
示例#25
0
        /// <summary>
        /// Initializes a new instance of the ColumnModel class with an array of strings 
        /// representing TextColumns
        /// </summary>
        /// <param name="columns">An array of strings that represent the Columns of 
        /// the ColumnModel</param>
        public ColumnModel(string[] columns)
        {
            if (columns == null)
            {
                throw new ArgumentNullException("columns", "string[] cannot be null");
            }

            this.Init();

            if (columns.Length > 0)
            {
                Column[] cols = new Column[columns.Length];

                for (int i=0; i<columns.Length; i++)
                {
                    cols[i] = new TextColumn(columns[i]);
                }

                this.Columns.AddRange(cols);
            }
        }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.lvwListInsurance = new XPTable.Models.Table();
     this.columnModel1 = new XPTable.Models.ColumnModel();
     this.cTerm = new XPTable.Models.TextColumn();
     this.cFromDate = new XPTable.Models.TextColumn();
     this.cToDate = new XPTable.Models.TextColumn();
     this.tableModel1 = new XPTable.Models.TableModel();
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.btnClose = new System.Windows.Forms.Button();
     this.btnNewSocialInsurance = new System.Windows.Forms.Button();
     this.lblYear = new System.Windows.Forms.Label();
     this.cboYear = new System.Windows.Forms.ComboBox();
     this.groupBox2 = new System.Windows.Forms.GroupBox();
     this.groupBox3 = new System.Windows.Forms.GroupBox();
     ((System.ComponentModel.ISupportInitialize)(this.lvwListInsurance)).BeginInit();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.groupBox3.SuspendLayout();
     this.SuspendLayout();
     //
     // lvwListInsurance
     //
     this.lvwListInsurance.AlternatingRowColor = System.Drawing.Color.FromArgb(((System.Byte)(230)), ((System.Byte)(237)), ((System.Byte)(245)));
     this.lvwListInsurance.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.lvwListInsurance.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(237)), ((System.Byte)(242)), ((System.Byte)(249)));
     this.lvwListInsurance.ColumnModel = this.columnModel1;
     this.lvwListInsurance.EnableToolTips = true;
     this.lvwListInsurance.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
     this.lvwListInsurance.FullRowSelect = true;
     this.lvwListInsurance.GridColor = System.Drawing.SystemColors.ControlDark;
     this.lvwListInsurance.GridLines = XPTable.Models.GridLines.Both;
     this.lvwListInsurance.GridLineStyle = XPTable.Models.GridLineStyle.Dot;
     this.lvwListInsurance.HeaderFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.lvwListInsurance.Location = new System.Drawing.Point(8, 16);
     this.lvwListInsurance.Name = "lvwListInsurance";
     this.lvwListInsurance.NoItemsText = WorkingContext.LangManager.GetString("XPtable");
     this.lvwListInsurance.SelectionBackColor = System.Drawing.Color.FromArgb(((System.Byte)(169)), ((System.Byte)(183)), ((System.Byte)(201)));
     this.lvwListInsurance.SelectionForeColor = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
     this.lvwListInsurance.SelectionStyle = XPTable.Models.SelectionStyle.Grid;
     this.lvwListInsurance.Size = new System.Drawing.Size(314, 186);
     this.lvwListInsurance.SortedColumnBackColor = System.Drawing.Color.Transparent;
     this.lvwListInsurance.TabIndex = 4;
     this.lvwListInsurance.TableModel = this.tableModel1;
     this.lvwListInsurance.UnfocusedSelectionBackColor = System.Drawing.Color.FromArgb(((System.Byte)(201)), ((System.Byte)(210)), ((System.Byte)(221)));
     this.lvwListInsurance.UnfocusedSelectionForeColor = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
     this.lvwListInsurance.SelectionChanged += new XPTable.Events.SelectionEventHandler(this.lvwListInsurance_SelectionChanged);
     this.lvwListInsurance.MouseDown += new System.Windows.Forms.MouseEventHandler(this.lvwListInsurance_MouseDown);
     //
     // columnModel1
     //
     this.columnModel1.Columns.AddRange(new XPTable.Models.Column[] {
                                                                        this.cTerm,
                                                                        this.cFromDate,
                                                                        this.cToDate});
     //
     // cTerm
     //
     this.cTerm.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.cTerm.Editable = false;
     this.cTerm.Text = "  Đợt";
     this.cTerm.Width = 55;
     //
     // cFromDate
     //
     this.cFromDate.Text = "Từ ngày";
     this.cFromDate.Width = 127;
     //
     // cToDate
     //
     this.cToDate.Text = "Đến ngày";
     this.cToDate.Width = 127;
     //
     // 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.lvwListInsurance);
     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(330, 210);
     this.groupBox1.TabIndex = 5;
     this.groupBox1.TabStop = false;
     //
     // btnClose
     //
     this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnClose.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnClose.Location = new System.Drawing.Point(88, 16);
     this.btnClose.Name = "btnClose";
     this.btnClose.TabIndex = 6;
     this.btnClose.Text = "Đóng";
     this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
     //
     // btnNewSocialInsurance
     //
     this.btnNewSocialInsurance.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnNewSocialInsurance.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnNewSocialInsurance.Location = new System.Drawing.Point(8, 16);
     this.btnNewSocialInsurance.Name = "btnNewSocialInsurance";
     this.btnNewSocialInsurance.TabIndex = 7;
     this.btnNewSocialInsurance.Text = "Tạo mới";
     this.btnNewSocialInsurance.Click += new System.EventHandler(this.btnNewSocialInsurance_Click);
     //
     // lblYear
     //
     this.lblYear.Location = new System.Drawing.Point(8, 16);
     this.lblYear.Name = "lblYear";
     this.lblYear.Size = new System.Drawing.Size(40, 23);
     this.lblYear.TabIndex = 5;
     this.lblYear.Text = "Năm";
     //
     // cboYear
     //
     this.cboYear.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
         | System.Windows.Forms.AnchorStyles.Right)));
     this.cboYear.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cboYear.Items.AddRange(new object[] {
                                                  "2006",
                                                  "2007",
                                                  "2008",
                                                  "2009",
                                                  "2010",
                                                  "2011",
                                                  "2012",
                                                  "2013",
                                                  "2014",
                                                  "2015",
                                                  "2016",
                                                  "2017",
                                                  "2018",
                                                  "2019",
                                                  "2020"});
     this.cboYear.Location = new System.Drawing.Point(64, 16);
     this.cboYear.Name = "cboYear";
     this.cboYear.Size = new System.Drawing.Size(80, 21);
     this.cboYear.TabIndex = 6;
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.lblYear);
     this.groupBox2.Controls.Add(this.cboYear);
     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(152, 48);
     this.groupBox2.TabIndex = 8;
     this.groupBox2.TabStop = false;
     //
     // groupBox3
     //
     this.groupBox3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox3.Controls.Add(this.btnClose);
     this.groupBox3.Controls.Add(this.btnNewSocialInsurance);
     this.groupBox3.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.groupBox3.Location = new System.Drawing.Point(162, 0);
     this.groupBox3.Name = "groupBox3";
     this.groupBox3.Size = new System.Drawing.Size(176, 48);
     this.groupBox3.TabIndex = 9;
     this.groupBox3.TabStop = false;
     //
     // frmChooseSocialInsurance
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize = new System.Drawing.Size(346, 264);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.groupBox3);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "frmChooseSocialInsurance";
     this.ShowInTaskbar = false;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "Chọn lần lập danh sách BHYT- BHXH";
     this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.lvwListInsurance_MouseDown);
     this.Load += new System.EventHandler(this.frmChooseSocialInsurance_Load);
     ((System.ComponentModel.ISupportInitialize)(this.lvwListInsurance)).EndInit();
     this.groupBox1.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     this.groupBox3.ResumeLayout(false);
     this.ResumeLayout(false);
 }
示例#27
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();
 }
示例#28
0
 private void InitializeComponent()
 {
     this.btnExit       = new System.Windows.Forms.Button();
     this.cCardID       = new XPTable.Models.TextColumn();
     this.cEmployeeName = new XPTable.Models.TextColumn();
     this.lvwEmployee   = new XPTable.Models.Table();
     this.tableModel1   = new XPTable.Models.TableModel();
     this.columnModel1  = new XPTable.Models.ColumnModel();
     this.textColumn1   = new XPTable.Models.TextColumn();
     this.textColumn2   = new XPTable.Models.TextColumn();
     this.textColumn3   = new XPTable.Models.TextColumn();
     ((System.ComponentModel.ISupportInitialize)(this.lvwEmployee)).BeginInit();
     this.SuspendLayout();
     //
     // btnExit
     //
     this.btnExit.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnExit.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnExit.FlatStyle    = System.Windows.Forms.FlatStyle.System;
     this.btnExit.Location     = new System.Drawing.Point(572, 392);
     this.btnExit.Name         = "btnExit";
     this.btnExit.TabIndex     = 3;
     this.btnExit.Text         = "Đóng";
     this.btnExit.Click       += new System.EventHandler(this.btnExit_Click);
     //
     // cCardID
     //
     this.cCardID.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.cCardID.Editable  = false;
     this.cCardID.Text      = "Mã thẻ";
     this.cCardID.Width     = 80;
     //
     // cEmployeeName
     //
     this.cEmployeeName.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.cEmployeeName.Editable  = false;
     this.cEmployeeName.Text      = "Họ và tên";
     this.cEmployeeName.Width     = 150;
     //
     // lvwEmployee
     //
     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.ColumnModel = this.columnModel1;
     this.lvwEmployee.Location    = new System.Drawing.Point(8, 8);
     this.lvwEmployee.Name        = "lvwEmployee";
     this.lvwEmployee.Size        = new System.Drawing.Size(640, 368);
     this.lvwEmployee.TabIndex    = 4;
     this.lvwEmployee.TableModel  = this.tableModel1;
     this.lvwEmployee.Text        = "table1";
     //
     // columnModel1
     //
     this.columnModel1.Columns.AddRange(new XPTable.Models.Column[] {
         this.textColumn1,
         this.textColumn2,
         this.textColumn3
     });
     //
     // textColumn1
     //
     this.textColumn1.Editable = false;
     this.textColumn1.Text     = "DepartmentName";
     //
     // textColumn2
     //
     this.textColumn2.Editable = false;
     this.textColumn2.Text     = "CardID";
     //
     // textColumn3
     //
     this.textColumn3.Editable = false;
     this.textColumn3.Text     = "EmployeeName";
     //
     // frmSearch
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(656, 422);
     this.Controls.Add(this.lvwEmployee);
     this.Controls.Add(this.btnExit);
     this.Name        = "frmSearch";
     this.Text        = "Tìm kiếm ";
     this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
     this.Load       += new System.EventHandler(this.frmSearch_Load);
     ((System.ComponentModel.ISupportInitialize)(this.lvwEmployee)).EndInit();
     this.ResumeLayout(false);
 }
示例#29
0
 /// <summary>
 /// Creates a text column
 /// </summary>
 private static TextColumn CreateTextColumn(string header, int width, string toolTipText = null)
 {
     var col = new TextColumn(header, width) {Editable = false};
     if (!string.IsNullOrWhiteSpace(toolTipText))
     {
         col.ToolTipText = toolTipText;
     }
     return col;
 }
示例#30
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.lvwListInsurance      = new XPTable.Models.Table();
     this.columnModel1          = new XPTable.Models.ColumnModel();
     this.cTerm                 = new XPTable.Models.TextColumn();
     this.cFromDate             = new XPTable.Models.TextColumn();
     this.cToDate               = new XPTable.Models.TextColumn();
     this.tableModel1           = new XPTable.Models.TableModel();
     this.groupBox1             = new System.Windows.Forms.GroupBox();
     this.btnClose              = new System.Windows.Forms.Button();
     this.btnNewSocialInsurance = new System.Windows.Forms.Button();
     this.lblYear               = new System.Windows.Forms.Label();
     this.cboYear               = new System.Windows.Forms.ComboBox();
     this.groupBox2             = new System.Windows.Forms.GroupBox();
     this.groupBox3             = new System.Windows.Forms.GroupBox();
     ((System.ComponentModel.ISupportInitialize)(this.lvwListInsurance)).BeginInit();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.groupBox3.SuspendLayout();
     this.SuspendLayout();
     //
     // lvwListInsurance
     //
     this.lvwListInsurance.AlternatingRowColor = System.Drawing.Color.FromArgb(((System.Byte)(230)), ((System.Byte)(237)), ((System.Byte)(245)));
     this.lvwListInsurance.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.lvwListInsurance.BackColor                   = System.Drawing.Color.FromArgb(((System.Byte)(237)), ((System.Byte)(242)), ((System.Byte)(249)));
     this.lvwListInsurance.ColumnModel                 = this.columnModel1;
     this.lvwListInsurance.EnableToolTips              = true;
     this.lvwListInsurance.ForeColor                   = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
     this.lvwListInsurance.FullRowSelect               = true;
     this.lvwListInsurance.GridColor                   = System.Drawing.SystemColors.ControlDark;
     this.lvwListInsurance.GridLines                   = XPTable.Models.GridLines.Both;
     this.lvwListInsurance.GridLineStyle               = XPTable.Models.GridLineStyle.Dot;
     this.lvwListInsurance.HeaderFont                  = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.lvwListInsurance.Location                    = new System.Drawing.Point(8, 16);
     this.lvwListInsurance.Name                        = "lvwListInsurance";
     this.lvwListInsurance.NoItemsText                 = WorkingContext.LangManager.GetString("XPtable");
     this.lvwListInsurance.SelectionBackColor          = System.Drawing.Color.FromArgb(((System.Byte)(169)), ((System.Byte)(183)), ((System.Byte)(201)));
     this.lvwListInsurance.SelectionForeColor          = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
     this.lvwListInsurance.SelectionStyle              = XPTable.Models.SelectionStyle.Grid;
     this.lvwListInsurance.Size                        = new System.Drawing.Size(314, 186);
     this.lvwListInsurance.SortedColumnBackColor       = System.Drawing.Color.Transparent;
     this.lvwListInsurance.TabIndex                    = 4;
     this.lvwListInsurance.TableModel                  = this.tableModel1;
     this.lvwListInsurance.UnfocusedSelectionBackColor = System.Drawing.Color.FromArgb(((System.Byte)(201)), ((System.Byte)(210)), ((System.Byte)(221)));
     this.lvwListInsurance.UnfocusedSelectionForeColor = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
     this.lvwListInsurance.SelectionChanged           += new XPTable.Events.SelectionEventHandler(this.lvwListInsurance_SelectionChanged);
     this.lvwListInsurance.MouseDown                  += new System.Windows.Forms.MouseEventHandler(this.lvwListInsurance_MouseDown);
     //
     // columnModel1
     //
     this.columnModel1.Columns.AddRange(new XPTable.Models.Column[] {
         this.cTerm,
         this.cFromDate,
         this.cToDate
     });
     //
     // cTerm
     //
     this.cTerm.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.cTerm.Editable  = false;
     this.cTerm.Text      = "  Đợt";
     this.cTerm.Width     = 55;
     //
     // cFromDate
     //
     this.cFromDate.Text  = "Từ ngày";
     this.cFromDate.Width = 127;
     //
     // cToDate
     //
     this.cToDate.Text  = "Đến ngày";
     this.cToDate.Width = 127;
     //
     // 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.lvwListInsurance);
     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(330, 210);
     this.groupBox1.TabIndex  = 5;
     this.groupBox1.TabStop   = false;
     //
     // btnClose
     //
     this.btnClose.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnClose.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnClose.Location  = new System.Drawing.Point(88, 16);
     this.btnClose.Name      = "btnClose";
     this.btnClose.TabIndex  = 6;
     this.btnClose.Text      = "Đóng";
     this.btnClose.Click    += new System.EventHandler(this.btnClose_Click);
     //
     // btnNewSocialInsurance
     //
     this.btnNewSocialInsurance.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnNewSocialInsurance.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnNewSocialInsurance.Location  = new System.Drawing.Point(8, 16);
     this.btnNewSocialInsurance.Name      = "btnNewSocialInsurance";
     this.btnNewSocialInsurance.TabIndex  = 7;
     this.btnNewSocialInsurance.Text      = "Tạo mới";
     this.btnNewSocialInsurance.Click    += new System.EventHandler(this.btnNewSocialInsurance_Click);
     //
     // lblYear
     //
     this.lblYear.Location = new System.Drawing.Point(8, 16);
     this.lblYear.Name     = "lblYear";
     this.lblYear.Size     = new System.Drawing.Size(40, 23);
     this.lblYear.TabIndex = 5;
     this.lblYear.Text     = "Năm";
     //
     // cboYear
     //
     this.cboYear.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                 | System.Windows.Forms.AnchorStyles.Right)));
     this.cboYear.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cboYear.Items.AddRange(new object[] {
         "2006",
         "2007",
         "2008",
         "2009",
         "2010",
         "2011",
         "2012",
         "2013",
         "2014",
         "2015",
         "2016",
         "2017",
         "2018",
         "2019",
         "2020"
     });
     this.cboYear.Location = new System.Drawing.Point(64, 16);
     this.cboYear.Name     = "cboYear";
     this.cboYear.Size     = new System.Drawing.Size(80, 21);
     this.cboYear.TabIndex = 6;
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.lblYear);
     this.groupBox2.Controls.Add(this.cboYear);
     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(152, 48);
     this.groupBox2.TabIndex  = 8;
     this.groupBox2.TabStop   = false;
     //
     // groupBox3
     //
     this.groupBox3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox3.Controls.Add(this.btnClose);
     this.groupBox3.Controls.Add(this.btnNewSocialInsurance);
     this.groupBox3.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.groupBox3.Location  = new System.Drawing.Point(162, 0);
     this.groupBox3.Name      = "groupBox3";
     this.groupBox3.Size      = new System.Drawing.Size(176, 48);
     this.groupBox3.TabIndex  = 9;
     this.groupBox3.TabStop   = false;
     //
     // frmChooseSocialInsurance
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(346, 264);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.groupBox3);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "frmChooseSocialInsurance";
     this.ShowInTaskbar   = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "Chọn lần lập danh sách BHYT- BHXH";
     this.MouseDown      += new System.Windows.Forms.MouseEventHandler(this.lvwListInsurance_MouseDown);
     this.Load           += new System.EventHandler(this.frmChooseSocialInsurance_Load);
     ((System.ComponentModel.ISupportInitialize)(this.lvwListInsurance)).EndInit();
     this.groupBox1.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     this.groupBox3.ResumeLayout(false);
     this.ResumeLayout(false);
 }
示例#31
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(frmListDayType));
     this.btnClose = new System.Windows.Forms.Button();
     this.btnEdit = new System.Windows.Forms.Button();
     this.btnAdd = new System.Windows.Forms.Button();
     this.btnDelete = new System.Windows.Forms.Button();
     this.btnHelp = new System.Windows.Forms.Button();
     this.chSTT = new System.Windows.Forms.DataGridTextBoxColumn();
     this.chName = new System.Windows.Forms.DataGridTextBoxColumn();
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.lvwDayType = new XPTable.Models.Table();
     this.columnModel1 = new XPTable.Models.ColumnModel();
     this.clSTT = new XPTable.Models.TextColumn();
     this.clDayName = new XPTable.Models.TextColumn();
     this.clDayShortName = new XPTable.Models.TextColumn();
     this.clDayFactor = new XPTable.Models.TextColumn();
     this.clQuantity = new XPTable.Models.TextColumn();
     this.tableModel1 = new XPTable.Models.TableModel();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.lvwDayType)).BeginInit();
     this.SuspendLayout();
     //
     // btnClose
     //
     this.btnClose.AccessibleDescription = resources.GetString("btnClose.AccessibleDescription");
     this.btnClose.AccessibleName = resources.GetString("btnClose.AccessibleName");
     this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnClose.Anchor")));
     this.btnClose.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnClose.BackgroundImage")));
     this.btnClose.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnClose.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnClose.Dock")));
     this.btnClose.Enabled = ((bool)(resources.GetObject("btnClose.Enabled")));
     this.btnClose.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnClose.FlatStyle")));
     this.btnClose.Font = ((System.Drawing.Font)(resources.GetObject("btnClose.Font")));
     this.btnClose.Image = ((System.Drawing.Image)(resources.GetObject("btnClose.Image")));
     this.btnClose.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnClose.ImageAlign")));
     this.btnClose.ImageIndex = ((int)(resources.GetObject("btnClose.ImageIndex")));
     this.btnClose.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnClose.ImeMode")));
     this.btnClose.Location = ((System.Drawing.Point)(resources.GetObject("btnClose.Location")));
     this.btnClose.Name = "btnClose";
     this.btnClose.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnClose.RightToLeft")));
     this.btnClose.Size = ((System.Drawing.Size)(resources.GetObject("btnClose.Size")));
     this.btnClose.TabIndex = ((int)(resources.GetObject("btnClose.TabIndex")));
     this.btnClose.Text = resources.GetString("btnClose.Text");
     this.btnClose.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnClose.TextAlign")));
     this.btnClose.Visible = ((bool)(resources.GetObject("btnClose.Visible")));
     this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
     //
     // btnEdit
     //
     this.btnEdit.AccessibleDescription = resources.GetString("btnEdit.AccessibleDescription");
     this.btnEdit.AccessibleName = resources.GetString("btnEdit.AccessibleName");
     this.btnEdit.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnEdit.Anchor")));
     this.btnEdit.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnEdit.BackgroundImage")));
     this.btnEdit.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnEdit.Dock")));
     this.btnEdit.Enabled = ((bool)(resources.GetObject("btnEdit.Enabled")));
     this.btnEdit.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnEdit.FlatStyle")));
     this.btnEdit.Font = ((System.Drawing.Font)(resources.GetObject("btnEdit.Font")));
     this.btnEdit.Image = ((System.Drawing.Image)(resources.GetObject("btnEdit.Image")));
     this.btnEdit.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnEdit.ImageAlign")));
     this.btnEdit.ImageIndex = ((int)(resources.GetObject("btnEdit.ImageIndex")));
     this.btnEdit.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnEdit.ImeMode")));
     this.btnEdit.Location = ((System.Drawing.Point)(resources.GetObject("btnEdit.Location")));
     this.btnEdit.Name = "btnEdit";
     this.btnEdit.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnEdit.RightToLeft")));
     this.btnEdit.Size = ((System.Drawing.Size)(resources.GetObject("btnEdit.Size")));
     this.btnEdit.TabIndex = ((int)(resources.GetObject("btnEdit.TabIndex")));
     this.btnEdit.Text = resources.GetString("btnEdit.Text");
     this.btnEdit.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnEdit.TextAlign")));
     this.btnEdit.Visible = ((bool)(resources.GetObject("btnEdit.Visible")));
     this.btnEdit.Click += new System.EventHandler(this.btnSuaNgay_Click);
     //
     // btnAdd
     //
     this.btnAdd.AccessibleDescription = resources.GetString("btnAdd.AccessibleDescription");
     this.btnAdd.AccessibleName = resources.GetString("btnAdd.AccessibleName");
     this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnAdd.Anchor")));
     this.btnAdd.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnAdd.BackgroundImage")));
     this.btnAdd.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnAdd.Dock")));
     this.btnAdd.Enabled = ((bool)(resources.GetObject("btnAdd.Enabled")));
     this.btnAdd.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnAdd.FlatStyle")));
     this.btnAdd.Font = ((System.Drawing.Font)(resources.GetObject("btnAdd.Font")));
     this.btnAdd.Image = ((System.Drawing.Image)(resources.GetObject("btnAdd.Image")));
     this.btnAdd.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnAdd.ImageAlign")));
     this.btnAdd.ImageIndex = ((int)(resources.GetObject("btnAdd.ImageIndex")));
     this.btnAdd.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnAdd.ImeMode")));
     this.btnAdd.Location = ((System.Drawing.Point)(resources.GetObject("btnAdd.Location")));
     this.btnAdd.Name = "btnAdd";
     this.btnAdd.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnAdd.RightToLeft")));
     this.btnAdd.Size = ((System.Drawing.Size)(resources.GetObject("btnAdd.Size")));
     this.btnAdd.TabIndex = ((int)(resources.GetObject("btnAdd.TabIndex")));
     this.btnAdd.Text = resources.GetString("btnAdd.Text");
     this.btnAdd.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnAdd.TextAlign")));
     this.btnAdd.Visible = ((bool)(resources.GetObject("btnAdd.Visible")));
     this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
     //
     // btnDelete
     //
     this.btnDelete.AccessibleDescription = resources.GetString("btnDelete.AccessibleDescription");
     this.btnDelete.AccessibleName = resources.GetString("btnDelete.AccessibleName");
     this.btnDelete.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnDelete.Anchor")));
     this.btnDelete.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnDelete.BackgroundImage")));
     this.btnDelete.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnDelete.Dock")));
     this.btnDelete.Enabled = ((bool)(resources.GetObject("btnDelete.Enabled")));
     this.btnDelete.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnDelete.FlatStyle")));
     this.btnDelete.Font = ((System.Drawing.Font)(resources.GetObject("btnDelete.Font")));
     this.btnDelete.Image = ((System.Drawing.Image)(resources.GetObject("btnDelete.Image")));
     this.btnDelete.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnDelete.ImageAlign")));
     this.btnDelete.ImageIndex = ((int)(resources.GetObject("btnDelete.ImageIndex")));
     this.btnDelete.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnDelete.ImeMode")));
     this.btnDelete.Location = ((System.Drawing.Point)(resources.GetObject("btnDelete.Location")));
     this.btnDelete.Name = "btnDelete";
     this.btnDelete.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnDelete.RightToLeft")));
     this.btnDelete.Size = ((System.Drawing.Size)(resources.GetObject("btnDelete.Size")));
     this.btnDelete.TabIndex = ((int)(resources.GetObject("btnDelete.TabIndex")));
     this.btnDelete.Text = resources.GetString("btnDelete.Text");
     this.btnDelete.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnDelete.TextAlign")));
     this.btnDelete.Visible = ((bool)(resources.GetObject("btnDelete.Visible")));
     this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
     //
     // btnHelp
     //
     this.btnHelp.AccessibleDescription = resources.GetString("btnHelp.AccessibleDescription");
     this.btnHelp.AccessibleName = resources.GetString("btnHelp.AccessibleName");
     this.btnHelp.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnHelp.Anchor")));
     this.btnHelp.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnHelp.BackgroundImage")));
     this.btnHelp.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnHelp.Dock")));
     this.btnHelp.Enabled = ((bool)(resources.GetObject("btnHelp.Enabled")));
     this.btnHelp.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnHelp.FlatStyle")));
     this.btnHelp.Font = ((System.Drawing.Font)(resources.GetObject("btnHelp.Font")));
     this.btnHelp.Image = ((System.Drawing.Image)(resources.GetObject("btnHelp.Image")));
     this.btnHelp.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnHelp.ImageAlign")));
     this.btnHelp.ImageIndex = ((int)(resources.GetObject("btnHelp.ImageIndex")));
     this.btnHelp.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnHelp.ImeMode")));
     this.btnHelp.Location = ((System.Drawing.Point)(resources.GetObject("btnHelp.Location")));
     this.btnHelp.Name = "btnHelp";
     this.btnHelp.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnHelp.RightToLeft")));
     this.btnHelp.Size = ((System.Drawing.Size)(resources.GetObject("btnHelp.Size")));
     this.btnHelp.TabIndex = ((int)(resources.GetObject("btnHelp.TabIndex")));
     this.btnHelp.Text = resources.GetString("btnHelp.Text");
     this.btnHelp.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnHelp.TextAlign")));
     this.btnHelp.Visible = ((bool)(resources.GetObject("btnHelp.Visible")));
     //
     // chSTT
     //
     this.chSTT.Alignment = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("chSTT.Alignment")));
     this.chSTT.Format = "";
     this.chSTT.FormatInfo = null;
     this.chSTT.HeaderText = resources.GetString("chSTT.HeaderText");
     this.chSTT.MappingName = resources.GetString("chSTT.MappingName");
     this.chSTT.NullText = resources.GetString("chSTT.NullText");
     this.chSTT.Width = ((int)(resources.GetObject("chSTT.Width")));
     //
     // chName
     //
     this.chName.Alignment = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("chName.Alignment")));
     this.chName.Format = "";
     this.chName.FormatInfo = null;
     this.chName.HeaderText = resources.GetString("chName.HeaderText");
     this.chName.MappingName = resources.GetString("chName.MappingName");
     this.chName.NullText = resources.GetString("chName.NullText");
     this.chName.Width = ((int)(resources.GetObject("chName.Width")));
     //
     // groupBox1
     //
     this.groupBox1.AccessibleDescription = resources.GetString("groupBox1.AccessibleDescription");
     this.groupBox1.AccessibleName = resources.GetString("groupBox1.AccessibleName");
     this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("groupBox1.Anchor")));
     this.groupBox1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("groupBox1.BackgroundImage")));
     this.groupBox1.Controls.Add(this.lvwDayType);
     this.groupBox1.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("groupBox1.Dock")));
     this.groupBox1.Enabled = ((bool)(resources.GetObject("groupBox1.Enabled")));
     this.groupBox1.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.groupBox1.Font = ((System.Drawing.Font)(resources.GetObject("groupBox1.Font")));
     this.groupBox1.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("groupBox1.ImeMode")));
     this.groupBox1.Location = ((System.Drawing.Point)(resources.GetObject("groupBox1.Location")));
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("groupBox1.RightToLeft")));
     this.groupBox1.Size = ((System.Drawing.Size)(resources.GetObject("groupBox1.Size")));
     this.groupBox1.TabIndex = ((int)(resources.GetObject("groupBox1.TabIndex")));
     this.groupBox1.TabStop = false;
     this.groupBox1.Text = resources.GetString("groupBox1.Text");
     this.groupBox1.Visible = ((bool)(resources.GetObject("groupBox1.Visible")));
     //
     // lvwDayType
     //
     this.lvwDayType.AccessibleDescription = resources.GetString("lvwDayType.AccessibleDescription");
     this.lvwDayType.AccessibleName = resources.GetString("lvwDayType.AccessibleName");
     this.lvwDayType.AlternatingRowColor = System.Drawing.Color.FromArgb(((System.Byte)(230)), ((System.Byte)(237)), ((System.Byte)(245)));
     this.lvwDayType.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lvwDayType.Anchor")));
     this.lvwDayType.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(237)), ((System.Byte)(242)), ((System.Byte)(249)));
     this.lvwDayType.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("lvwDayType.BackgroundImage")));
     this.lvwDayType.ColumnModel = this.columnModel1;
     this.lvwDayType.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lvwDayType.Dock")));
     this.lvwDayType.Enabled = ((bool)(resources.GetObject("lvwDayType.Enabled")));
     this.lvwDayType.EnableToolTips = true;
     this.lvwDayType.Font = ((System.Drawing.Font)(resources.GetObject("lvwDayType.Font")));
     this.lvwDayType.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
     this.lvwDayType.FullRowSelect = true;
     this.lvwDayType.GridColor = System.Drawing.SystemColors.ControlDark;
     this.lvwDayType.GridLines = XPTable.Models.GridLines.Both;
     this.lvwDayType.GridLineStyle = XPTable.Models.GridLineStyle.Dot;
     this.lvwDayType.HeaderFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.lvwDayType.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lvwDayType.ImeMode")));
     this.lvwDayType.Location = ((System.Drawing.Point)(resources.GetObject("lvwDayType.Location")));
     this.lvwDayType.Name = "lvwDayType";
     this.lvwDayType.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lvwDayType.RightToLeft")));
     this.lvwDayType.SelectionBackColor = System.Drawing.Color.FromArgb(((System.Byte)(169)), ((System.Byte)(183)), ((System.Byte)(201)));
     this.lvwDayType.SelectionForeColor = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
     this.lvwDayType.SelectionStyle = XPTable.Models.SelectionStyle.Grid;
     this.lvwDayType.Size = ((System.Drawing.Size)(resources.GetObject("lvwDayType.Size")));
     this.lvwDayType.SortedColumnBackColor = System.Drawing.Color.Transparent;
     this.lvwDayType.TabIndex = ((int)(resources.GetObject("lvwDayType.TabIndex")));
     this.lvwDayType.TableModel = this.tableModel1;
     this.lvwDayType.Text = resources.GetString("lvwDayType.Text");
     this.lvwDayType.UnfocusedSelectionBackColor = System.Drawing.Color.FromArgb(((System.Byte)(201)), ((System.Byte)(210)), ((System.Byte)(221)));
     this.lvwDayType.UnfocusedSelectionForeColor = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
     this.lvwDayType.Visible = ((bool)(resources.GetObject("lvwDayType.Visible")));
     this.lvwDayType.SelectionChanged += new XPTable.Events.SelectionEventHandler(this.lvwDayType_SelectionChanged);
     this.lvwDayType.MouseDown += new System.Windows.Forms.MouseEventHandler(this.lvwDayType_MouseDown);
     //
     // columnModel1
     //
     this.columnModel1.Columns.AddRange(new XPTable.Models.Column[] {
                                                                        this.clSTT,
                                                                        this.clDayName,
                                                                        this.clDayShortName,
                                                                        this.clDayFactor,
                                                                        this.clQuantity});
     //
     // clSTT
     //
     this.clSTT.Editable = false;
     this.clSTT.Text = "STT";
     this.clSTT.Width = 50;
     //
     // clDayName
     //
     this.clDayName.Editable = false;
     this.clDayName.Text = "Tên kiểu ngày";
     this.clDayName.Width = 140;
     //
     // clDayShortName
     //
     this.clDayShortName.Editable = false;
     this.clDayShortName.Text = "Ký hiệu ngày";
     this.clDayShortName.Width = 90;
     //
     // clDayFactor
     //
     this.clDayFactor.Editable = false;
     this.clDayFactor.Text = "Hệ số ngày";
     this.clDayFactor.Width = 90;
     //
     // clQuantity
     //
     this.clQuantity.Editable = false;
     this.clQuantity.Text = "Số ngày nghỉ";
     this.clQuantity.Width = 90;
     //
     // frmListDayType
     //
     this.AccessibleDescription = resources.GetString("$this.AccessibleDescription");
     this.AccessibleName = resources.GetString("$this.AccessibleName");
     this.AutoScaleBaseSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScaleBaseSize")));
     this.AutoScroll = ((bool)(resources.GetObject("$this.AutoScroll")));
     this.AutoScrollMargin = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMargin")));
     this.AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMinSize")));
     this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
     this.CancelButton = this.btnClose;
     this.ClientSize = ((System.Drawing.Size)(resources.GetObject("$this.ClientSize")));
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.btnHelp);
     this.Controls.Add(this.btnClose);
     this.Controls.Add(this.btnEdit);
     this.Controls.Add(this.btnAdd);
     this.Controls.Add(this.btnDelete);
     this.Enabled = ((bool)(resources.GetObject("$this.Enabled")));
     this.Font = ((System.Drawing.Font)(resources.GetObject("$this.Font")));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode")));
     this.Location = ((System.Drawing.Point)(resources.GetObject("$this.Location")));
     this.MaximizeBox = false;
     this.MaximumSize = ((System.Drawing.Size)(resources.GetObject("$this.MaximumSize")));
     this.MinimumSize = ((System.Drawing.Size)(resources.GetObject("$this.MinimumSize")));
     this.Name = "frmListDayType";
     this.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft")));
     this.StartPosition = ((System.Windows.Forms.FormStartPosition)(resources.GetObject("$this.StartPosition")));
     this.Text = resources.GetString("$this.Text");
     this.Load += new System.EventHandler(this.frmListDayType_Load);
     this.groupBox1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.lvwDayType)).EndInit();
     this.ResumeLayout(false);
 }
示例#32
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);
 }
示例#33
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);
 }
示例#34
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);
 }
示例#35
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);
 }
示例#36
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(frmPunishCard));
     this.groupBox1       = new System.Windows.Forms.GroupBox();
     this.lvwPunishCard   = new XPTable.Models.Table();
     this.columnModel1    = new XPTable.Models.ColumnModel();
     this.chSTT           = new XPTable.Models.TextColumn();
     this.chCardName      = new XPTable.Models.TextColumn();
     this.chPunishFactor  = new XPTable.Models.TextColumn();
     this.chNote          = new XPTable.Models.TextColumn();
     this.tableModel1     = new XPTable.Models.TableModel();
     this.btnIgnore       = new System.Windows.Forms.Button();
     this.btnUpdate       = new System.Windows.Forms.Button();
     this.btnAdd          = new System.Windows.Forms.Button();
     this.btnDelete       = new System.Windows.Forms.Button();
     this.btnClose        = new System.Windows.Forms.Button();
     this.groupBox2       = new System.Windows.Forms.GroupBox();
     this.txtNote         = new System.Windows.Forms.TextBox();
     this.label2          = new System.Windows.Forms.Label();
     this.txtPunishFactor = new AMS.TextBox.NumericTextBox();
     this.label4          = new System.Windows.Forms.Label();
     this.label3          = new System.Windows.Forms.Label();
     this.txtCardName     = new System.Windows.Forms.TextBox();
     this.label1          = new System.Windows.Forms.Label();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.lvwPunishCard)).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.lvwPunishCard);
     this.groupBox1.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.groupBox1.Location  = new System.Drawing.Point(8, 112);
     this.groupBox1.Name      = "groupBox1";
     this.groupBox1.Size      = new System.Drawing.Size(480, 184);
     this.groupBox1.TabIndex  = 21;
     this.groupBox1.TabStop   = false;
     this.groupBox1.Text      = "Danh sách thẻ phạt";
     //
     // lvwPunishCard
     //
     this.lvwPunishCard.AlternatingRowColor = System.Drawing.Color.FromArgb(((System.Byte)(230)), ((System.Byte)(237)), ((System.Byte)(245)));
     this.lvwPunishCard.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.lvwPunishCard.BackColor                   = System.Drawing.Color.FromArgb(((System.Byte)(237)), ((System.Byte)(242)), ((System.Byte)(249)));
     this.lvwPunishCard.ColumnModel                 = this.columnModel1;
     this.lvwPunishCard.EnableToolTips              = true;
     this.lvwPunishCard.ForeColor                   = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
     this.lvwPunishCard.FullRowSelect               = true;
     this.lvwPunishCard.GridColor                   = System.Drawing.SystemColors.ControlDark;
     this.lvwPunishCard.GridLines                   = XPTable.Models.GridLines.Both;
     this.lvwPunishCard.GridLineStyle               = XPTable.Models.GridLineStyle.Dot;
     this.lvwPunishCard.HeaderFont                  = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.lvwPunishCard.Location                    = new System.Drawing.Point(8, 16);
     this.lvwPunishCard.Name                        = "lvwPunishCard";
     this.lvwPunishCard.NoItemsText                 = WorkingContext.LangManager.GetString("XPtable");
     this.lvwPunishCard.SelectionBackColor          = System.Drawing.Color.FromArgb(((System.Byte)(169)), ((System.Byte)(183)), ((System.Byte)(201)));
     this.lvwPunishCard.SelectionForeColor          = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
     this.lvwPunishCard.SelectionStyle              = XPTable.Models.SelectionStyle.Grid;
     this.lvwPunishCard.Size                        = new System.Drawing.Size(464, 160);
     this.lvwPunishCard.SortedColumnBackColor       = System.Drawing.Color.Transparent;
     this.lvwPunishCard.TabIndex                    = 19;
     this.lvwPunishCard.TableModel                  = this.tableModel1;
     this.lvwPunishCard.UnfocusedSelectionBackColor = System.Drawing.Color.FromArgb(((System.Byte)(201)), ((System.Byte)(210)), ((System.Byte)(221)));
     this.lvwPunishCard.UnfocusedSelectionForeColor = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
     this.lvwPunishCard.SelectionChanged           += new XPTable.Events.SelectionEventHandler(this.lvwPunishCard_SelectionChanged);
     //
     // columnModel1
     //
     this.columnModel1.Columns.AddRange(new XPTable.Models.Column[] {
         this.chSTT,
         this.chCardName,
         this.chPunishFactor,
         this.chNote
     });
     //
     // chSTT
     //
     this.chSTT.Editable = false;
     this.chSTT.Text     = "Số TT";
     this.chSTT.Width    = 40;
     //
     // chCardName
     //
     this.chCardName.Editable = false;
     this.chCardName.Text     = "Tên thẻ";
     this.chCardName.Width    = 100;
     //
     // chPunishFactor
     //
     this.chPunishFactor.Editable = false;
     this.chPunishFactor.Text     = "Hệ số phạt";
     //
     // chNote
     //
     this.chNote.Editable = false;
     this.chNote.Text     = "Chú thích";
     this.chNote.Width    = 240;
     //
     // btnIgnore
     //
     this.btnIgnore.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnIgnore.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnIgnore.ImeMode   = System.Windows.Forms.ImeMode.NoControl;
     this.btnIgnore.Location  = new System.Drawing.Point(336, 304);
     this.btnIgnore.Name      = "btnIgnore";
     this.btnIgnore.TabIndex  = 18;
     this.btnIgnore.Text      = "Bỏ qua";
     this.btnIgnore.Click    += new System.EventHandler(this.btnIgnore_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.Font      = new System.Drawing.Font("Tahoma", 8.25F);
     this.btnUpdate.ImeMode   = System.Windows.Forms.ImeMode.NoControl;
     this.btnUpdate.Location  = new System.Drawing.Point(256, 304);
     this.btnUpdate.Name      = "btnUpdate";
     this.btnUpdate.TabIndex  = 1;
     this.btnUpdate.Text      = "Cập nhật";
     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.Font      = new System.Drawing.Font("Tahoma", 8.25F);
     this.btnAdd.ImeMode   = System.Windows.Forms.ImeMode.NoControl;
     this.btnAdd.Location  = new System.Drawing.Point(96, 304);
     this.btnAdd.Name      = "btnAdd";
     this.btnAdd.TabIndex  = 0;
     this.btnAdd.Text      = "Thêm";
     this.btnAdd.Visible   = false;
     this.btnAdd.Click    += new System.EventHandler(this.btnAdd_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.Font      = new System.Drawing.Font("Tahoma", 8.25F);
     this.btnDelete.ImeMode   = System.Windows.Forms.ImeMode.NoControl;
     this.btnDelete.Location  = new System.Drawing.Point(176, 304);
     this.btnDelete.Name      = "btnDelete";
     this.btnDelete.TabIndex  = 9;
     this.btnDelete.Text      = "Xóa ";
     this.btnDelete.Visible   = false;
     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.Font         = new System.Drawing.Font("Tahoma", 8.25F);
     this.btnClose.ImeMode      = System.Windows.Forms.ImeMode.NoControl;
     this.btnClose.Location     = new System.Drawing.Point(416, 304);
     this.btnClose.Name         = "btnClose";
     this.btnClose.TabIndex     = 10;
     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.txtNote);
     this.groupBox2.Controls.Add(this.label2);
     this.groupBox2.Controls.Add(this.txtPunishFactor);
     this.groupBox2.Controls.Add(this.label4);
     this.groupBox2.Controls.Add(this.label3);
     this.groupBox2.Controls.Add(this.txtCardName);
     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(480, 96);
     this.groupBox2.TabIndex  = 22;
     this.groupBox2.TabStop   = false;
     this.groupBox2.Text      = "Thông tin thẻ phạt";
     this.groupBox2.Enter    += new System.EventHandler(this.groupBox2_Enter);
     //
     // txtNote
     //
     this.txtNote.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                 | System.Windows.Forms.AnchorStyles.Right)));
     this.txtNote.Location  = new System.Drawing.Point(64, 64);
     this.txtNote.Name      = "txtNote";
     this.txtNote.Size      = new System.Drawing.Size(408, 20);
     this.txtNote.TabIndex  = 20;
     this.txtNote.Text      = "";
     this.txtNote.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtNote_KeyPress);
     //
     // label2
     //
     this.label2.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(163)));
     this.label2.Location = new System.Drawing.Point(152, 40);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(40, 23);
     this.label2.TabIndex = 19;
     this.label2.Text     = "%";
     //
     // txtPunishFactor
     //
     this.txtPunishFactor.AllowNegative    = true;
     this.txtPunishFactor.DigitsInGroup    = 0;
     this.txtPunishFactor.Flags            = 0;
     this.txtPunishFactor.Location         = new System.Drawing.Point(64, 40);
     this.txtPunishFactor.MaxDecimalPlaces = 4;
     this.txtPunishFactor.MaxWholeDigits   = 9;
     this.txtPunishFactor.Name             = "txtPunishFactor";
     this.txtPunishFactor.Prefix           = "";
     this.txtPunishFactor.RangeMax         = 1.7976931348623157E+308;
     this.txtPunishFactor.RangeMin         = -1.7976931348623157E+308;
     this.txtPunishFactor.Size             = new System.Drawing.Size(88, 20);
     this.txtPunishFactor.TabIndex         = 18;
     this.txtPunishFactor.KeyPress        += new System.Windows.Forms.KeyPressEventHandler(this.txtPunishFactor_KeyPress);
     //
     // label4
     //
     this.label4.Font       = new System.Drawing.Font("Tahoma", 8.25F);
     this.label4.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.label4.ImeMode    = System.Windows.Forms.ImeMode.NoControl;
     this.label4.Location   = new System.Drawing.Point(8, 40);
     this.label4.Name       = "label4";
     this.label4.Size       = new System.Drawing.Size(56, 23);
     this.label4.TabIndex   = 17;
     this.label4.Text       = "Mức phạt";
     this.label4.TextAlign  = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // label3
     //
     this.label3.Font       = new System.Drawing.Font("Tahoma", 8.25F);
     this.label3.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.label3.ImeMode    = System.Windows.Forms.ImeMode.NoControl;
     this.label3.Location   = new System.Drawing.Point(8, 64);
     this.label3.Name       = "label3";
     this.label3.Size       = new System.Drawing.Size(56, 23);
     this.label3.TabIndex   = 2;
     this.label3.Text       = "Chú thích";
     this.label3.TextAlign  = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // txtCardName
     //
     this.txtCardName.Location  = new System.Drawing.Point(64, 16);
     this.txtCardName.Name      = "txtCardName";
     this.txtCardName.ReadOnly  = true;
     this.txtCardName.Size      = new System.Drawing.Size(136, 20);
     this.txtCardName.TabIndex  = 4;
     this.txtCardName.Text      = "";
     this.txtCardName.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtCardName_KeyPress);
     //
     // label1
     //
     this.label1.Font      = new System.Drawing.Font("Tahoma", 8.25F);
     this.label1.ImeMode   = System.Windows.Forms.ImeMode.NoControl;
     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  = 0;
     this.label1.Text      = "Tên thẻ";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // frmPunishCard
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton      = this.btnClose;
     this.ClientSize        = new System.Drawing.Size(498, 336);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.btnIgnore);
     this.Controls.Add(this.btnDelete);
     this.Controls.Add(this.btnClose);
     this.Controls.Add(this.btnAdd);
     this.Controls.Add(this.btnUpdate);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "frmPunishCard";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "Định nghĩa thẻ phạt";
     this.Load           += new System.EventHandler(this.frmPunishCard_Load);
     this.groupBox1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.lvwPunishCard)).EndInit();
     this.groupBox2.ResumeLayout(false);
     this.ResumeLayout(false);
 }
示例#37
0
 private void InitializeComponent()
 {
     this.btnExit = new System.Windows.Forms.Button();
     this.cCardID = new XPTable.Models.TextColumn();
     this.cEmployeeName = new XPTable.Models.TextColumn();
     this.lvwEmployee = new XPTable.Models.Table();
     this.tableModel1 = new XPTable.Models.TableModel();
     this.columnModel1 = new XPTable.Models.ColumnModel();
     this.textColumn1 = new XPTable.Models.TextColumn();
     this.textColumn2 = new XPTable.Models.TextColumn();
     this.textColumn3 = new XPTable.Models.TextColumn();
     ((System.ComponentModel.ISupportInitialize)(this.lvwEmployee)).BeginInit();
     this.SuspendLayout();
     //
     // btnExit
     //
     this.btnExit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnExit.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnExit.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnExit.Location = new System.Drawing.Point(572, 392);
     this.btnExit.Name = "btnExit";
     this.btnExit.TabIndex = 3;
     this.btnExit.Text = "Đóng";
     this.btnExit.Click += new System.EventHandler(this.btnExit_Click);
     //
     // cCardID
     //
     this.cCardID.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.cCardID.Editable = false;
     this.cCardID.Text = "Mã thẻ";
     this.cCardID.Width = 80;
     //
     // cEmployeeName
     //
     this.cEmployeeName.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.cEmployeeName.Editable = false;
     this.cEmployeeName.Text = "Họ và tên";
     this.cEmployeeName.Width = 150;
     //
     // lvwEmployee
     //
     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.ColumnModel = this.columnModel1;
     this.lvwEmployee.Location = new System.Drawing.Point(8, 8);
     this.lvwEmployee.Name = "lvwEmployee";
     this.lvwEmployee.Size = new System.Drawing.Size(640, 368);
     this.lvwEmployee.TabIndex = 4;
     this.lvwEmployee.TableModel = this.tableModel1;
     this.lvwEmployee.Text = "table1";
     //
     // columnModel1
     //
     this.columnModel1.Columns.AddRange(new XPTable.Models.Column[] {
                                                                        this.textColumn1,
                                                                        this.textColumn2,
                                                                        this.textColumn3});
     //
     // textColumn1
     //
     this.textColumn1.Editable = false;
     this.textColumn1.Text = "DepartmentName";
     //
     // textColumn2
     //
     this.textColumn2.Editable = false;
     this.textColumn2.Text = "CardID";
     //
     // textColumn3
     //
     this.textColumn3.Editable = false;
     this.textColumn3.Text = "EmployeeName";
     //
     // frmSearch
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize = new System.Drawing.Size(656, 422);
     this.Controls.Add(this.lvwEmployee);
     this.Controls.Add(this.btnExit);
     this.Name = "frmSearch";
     this.Text = "Tìm kiếm ";
     this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
     this.Load += new System.EventHandler(this.frmSearch_Load);
     ((System.ComponentModel.ISupportInitialize)(this.lvwEmployee)).EndInit();
     this.ResumeLayout(false);
 }
示例#38
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} ));
        }
示例#39
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
            });
        }
示例#40
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);
 }
示例#41
0
 [System.Diagnostics.DebuggerStepThrough()] private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmPP6750));
     this.ToolTip1        = new System.Windows.Forms.ToolTip(this.components);
     this.btnClose        = new System.Windows.Forms.Button();
     this.btnReceive      = new System.Windows.Forms.Button();
     this.grbMessage      = new System.Windows.Forms.GroupBox();
     this.xptMessage      = 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.cName           = new XPTable.Models.TextColumn();
     this.cWorkingDay     = new XPTable.Models.TextColumn();
     this.cTimeIn         = new XPTable.Models.TextColumn();
     this.cPic            = new XPTable.Models.ImageColumn();
     this.tableModel1     = new XPTable.Models.TableModel();
     this.btnClear        = new System.Windows.Forms.Button();
     this.btnConfig       = new System.Windows.Forms.Button();
     this.btnHelp         = new System.Windows.Forms.Button();
     this.aTimer          = new System.Windows.Forms.Timer(this.components);
     this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
     this.contextMenu1    = new System.Windows.Forms.ContextMenu();
     this.mnuShow         = new System.Windows.Forms.MenuItem();
     this.mnuHide         = new System.Windows.Forms.MenuItem();
     this.menuItem3       = new System.Windows.Forms.MenuItem();
     this.mnuStart        = new System.Windows.Forms.MenuItem();
     this.mnuStop         = new System.Windows.Forms.MenuItem();
     this.menuItem6       = new System.Windows.Forms.MenuItem();
     this.mnuExit         = new System.Windows.Forms.MenuItem();
     this.notifyIcon1     = new System.Windows.Forms.NotifyIcon(this.components);
     this.grbMessage.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.xptMessage)).BeginInit();
     this.SuspendLayout();
     //
     // btnClose
     //
     resources.ApplyResources(this.btnClose, "btnClose");
     this.btnClose.ForeColor = System.Drawing.SystemColors.ControlText;
     this.btnClose.Name      = "btnClose";
     this.btnClose.Click    += new System.EventHandler(this.btnClose_Click);
     //
     // btnReceive
     //
     resources.ApplyResources(this.btnReceive, "btnReceive");
     this.btnReceive.ForeColor = System.Drawing.SystemColors.ControlText;
     this.btnReceive.Name      = "btnReceive";
     this.btnReceive.Click    += new System.EventHandler(this.btnReceive_Click);
     //
     // grbMessage
     //
     resources.ApplyResources(this.grbMessage, "grbMessage");
     this.grbMessage.Controls.Add(this.xptMessage);
     this.grbMessage.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.grbMessage.ForeColor = System.Drawing.Color.Black;
     this.grbMessage.Name      = "grbMessage";
     this.grbMessage.TabStop   = false;
     //
     // xptMessage
     //
     this.xptMessage.AlternatingRowColor = System.Drawing.Color.Azure;
     resources.ApplyResources(this.xptMessage, "xptMessage");
     this.xptMessage.ColumnModel   = this.columnModel1;
     this.xptMessage.ForeColor     = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     this.xptMessage.FullRowSelect = true;
     this.xptMessage.GridColor     = System.Drawing.SystemColors.ControlDark;
     this.xptMessage.GridLines     = XPTable.Models.GridLines.Rows;
     this.xptMessage.GridLineStyle = XPTable.Models.GridLineStyle.Dash;
     this.xptMessage.HeaderFont    = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
     this.xptMessage.Name          = "xptMessage";
     this.xptMessage.TableModel    = this.tableModel1;
     //
     // columnModel1
     //
     this.columnModel1.Columns.AddRange(new XPTable.Models.Column[] {
         this.cSTT,
         this.cDepartment,
         this.cCardID,
         this.cName,
         this.cWorkingDay,
         this.cTimeIn,
         this.cPic
     });
     this.columnModel1.HeaderHeight = 30;
     //
     // cSTT
     //
     this.cSTT.Editable = false;
     this.cSTT.Text     = "STT";
     this.cSTT.Width    = 40;
     //
     // cDepartment
     //
     this.cDepartment.Text  = "Phòng";
     this.cDepartment.Width = 120;
     //
     // cCardID
     //
     this.cCardID.Editable = false;
     this.cCardID.Text     = "Mã thẻ";
     this.cCardID.Width    = 50;
     //
     // cName
     //
     this.cName.Editable = false;
     this.cName.Text     = "Tên nhân viên";
     this.cName.Width    = 140;
     //
     // cWorkingDay
     //
     this.cWorkingDay.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.cWorkingDay.Editable  = false;
     this.cWorkingDay.Text      = "Ngày làm việc";
     this.cWorkingDay.Width     = 95;
     //
     // cTimeIn
     //
     this.cTimeIn.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.cTimeIn.Editable  = false;
     this.cTimeIn.Text      = "Giờ quẹt thẻ";
     this.cTimeIn.Width     = 80;
     //
     // cPic
     //
     this.cPic.Text  = "Ảnh";
     this.cPic.Width = 70;
     //
     // tableModel1
     //
     this.tableModel1.RowHeight = 100;
     //
     // btnClear
     //
     resources.ApplyResources(this.btnClear, "btnClear");
     this.btnClear.ForeColor = System.Drawing.SystemColors.ControlText;
     this.btnClear.Name      = "btnClear";
     this.btnClear.Click    += new System.EventHandler(this.btnClear_Click);
     //
     // btnConfig
     //
     resources.ApplyResources(this.btnConfig, "btnConfig");
     this.btnConfig.Name   = "btnConfig";
     this.btnConfig.Click += new System.EventHandler(this.btnConfig_Click);
     //
     // btnHelp
     //
     resources.ApplyResources(this.btnHelp, "btnHelp");
     this.btnHelp.ForeColor = System.Drawing.Color.Black;
     this.btnHelp.Name      = "btnHelp";
     this.btnHelp.Click    += new System.EventHandler(this.btnHelp_Click);
     //
     // aTimer
     //
     this.aTimer.Enabled  = true;
     this.aTimer.Interval = 120000;
     this.aTimer.Tick    += new System.EventHandler(this.aTimerUpdate);
     //
     // contextMenu1
     //
     this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.mnuShow,
         this.mnuHide,
         this.menuItem3,
         this.mnuStart,
         this.mnuStop,
         this.menuItem6,
         this.mnuExit
     });
     this.contextMenu1.Popup += new System.EventHandler(this.contextMenu1_Popup);
     //
     // mnuShow
     //
     this.mnuShow.Index = 0;
     resources.ApplyResources(this.mnuShow, "mnuShow");
     this.mnuShow.Click += new System.EventHandler(this.mnuShow_Click);
     //
     // mnuHide
     //
     this.mnuHide.Index = 1;
     resources.ApplyResources(this.mnuHide, "mnuHide");
     this.mnuHide.Click += new System.EventHandler(this.mnuHide_Click);
     //
     // menuItem3
     //
     this.menuItem3.Index = 2;
     resources.ApplyResources(this.menuItem3, "menuItem3");
     //
     // mnuStart
     //
     this.mnuStart.Index = 3;
     resources.ApplyResources(this.mnuStart, "mnuStart");
     this.mnuStart.Click += new System.EventHandler(this.mnuStart_Click);
     //
     // mnuStop
     //
     this.mnuStop.Index = 4;
     resources.ApplyResources(this.mnuStop, "mnuStop");
     this.mnuStop.Click += new System.EventHandler(this.mnuStop_Click);
     //
     // menuItem6
     //
     this.menuItem6.Index = 5;
     resources.ApplyResources(this.menuItem6, "menuItem6");
     //
     // mnuExit
     //
     this.mnuExit.Index = 6;
     resources.ApplyResources(this.mnuExit, "mnuExit");
     this.mnuExit.Click += new System.EventHandler(this.mnuExit_Click);
     //
     // notifyIcon1
     //
     this.notifyIcon1.ContextMenu = this.contextMenu1;
     resources.ApplyResources(this.notifyIcon1, "notifyIcon1");
     this.notifyIcon1.DoubleClick += new System.EventHandler(this.notifyIcon1_DoubleClick);
     //
     // frmPP6750
     //
     resources.ApplyResources(this, "$this");
     this.BackColor = System.Drawing.SystemColors.Control;
     this.Controls.Add(this.btnHelp);
     this.Controls.Add(this.btnConfig);
     this.Controls.Add(this.btnClear);
     this.Controls.Add(this.grbMessage);
     this.Controls.Add(this.btnReceive);
     this.Controls.Add(this.btnClose);
     this.Cursor          = System.Windows.Forms.Cursors.Default;
     this.ForeColor       = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Name            = "frmPP6750";
     this.Closing        += new System.ComponentModel.CancelEventHandler(this.frmPP6750_Closing);
     this.Load           += new System.EventHandler(this.frmMain_Load);
     this.Resize         += new System.EventHandler(this.frmPP6750_Resize);
     this.grbMessage.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.xptMessage)).EndInit();
     this.ResumeLayout(false);
 }
示例#42
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.lvwContractTable = new XPTable.Models.Table();
            this.columnModel1 = new XPTable.Models.ColumnModel();
            this.clSTT = new XPTable.Models.TextColumn();
            this.clContractName = new XPTable.Models.TextColumn();
            this.clNote = new XPTable.Models.TextColumn();
            this.tableModel1 = new XPTable.Models.TableModel();
            this.btnAdd = new System.Windows.Forms.Button();
            this.btnEdit = new System.Windows.Forms.Button();
            this.btnDelete = new System.Windows.Forms.Button();
            this.btnClose = new System.Windows.Forms.Button();
            this.groupBox1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.lvwContractTable)).BeginInit();
            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.lvwContractTable);
            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(592, 416);
            this.groupBox1.TabIndex = 0;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "Danh sách các loại hợp đồng";
            //
            // lvwContractTable
            //
            //this.lvwContractTable.AllowDrop = true;
            this.lvwContractTable.AlternatingRowColor = System.Drawing.Color.FromArgb(((System.Byte)(230)), ((System.Byte)(237)), ((System.Byte)(245)));
            this.lvwContractTable.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.lvwContractTable.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(237)), ((System.Byte)(242)), ((System.Byte)(249)));
            this.lvwContractTable.ColumnModel = this.columnModel1;
            this.lvwContractTable.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
            this.lvwContractTable.FullRowSelect = true;
            this.lvwContractTable.GridColor = System.Drawing.SystemColors.ControlDark;
            this.lvwContractTable.GridLines = XPTable.Models.GridLines.Both;
            this.lvwContractTable.GridLineStyle = XPTable.Models.GridLineStyle.Dot;
            this.lvwContractTable.HeaderFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
            this.lvwContractTable.Location = new System.Drawing.Point(8, 16);
            this.lvwContractTable.Name = "lvwContractTable";
            this.lvwContractTable.NoItemsText = WorkingContext.LangManager.GetString("XPtable");
            this.lvwContractTable.SelectionStyle = XPTable.Models.SelectionStyle.Grid;
            this.lvwContractTable.Size = new System.Drawing.Size(574, 390);
            this.lvwContractTable.TabIndex = 0;
            this.lvwContractTable.TableModel = this.tableModel1;
            this.lvwContractTable.Text = "table1";
            this.lvwContractTable.SelectionChanged += new XPTable.Events.SelectionEventHandler(this.lvwContractTable_SelectionChanged);
            this.lvwContractTable.MouseDown += new System.Windows.Forms.MouseEventHandler(this.lvwContractTable_MouseDown_1);
            //
            // columnModel1
            //
            this.columnModel1.Columns.AddRange(new XPTable.Models.Column[] {
                                                                               this.clSTT,
                                                                               this.clContractName,
                                                                               this.clNote});
            //
            // clSTT
            //
            this.clSTT.Editable = false;
            this.clSTT.Text = "STT";
            this.clSTT.Width = 45;
            //
            // clContractName
            //
            this.clContractName.Editable = false;
            this.clContractName.Text = "Tên hợp đồng";
            this.clContractName.Width = 180;
            //
            // clNote
            //
            this.clNote.Editable = false;
            this.clNote.Text = "                 Ghi chú";
            this.clNote.Width = 250;
            //
            // 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.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
            this.btnAdd.Location = new System.Drawing.Point(285, 434);
            this.btnAdd.Name = "btnAdd";
            this.btnAdd.TabIndex = 2;
            this.btnAdd.Text = "Thêm";
            this.btnAdd.Click += new System.EventHandler(this.btnAdd_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.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
            this.btnEdit.Location = new System.Drawing.Point(365, 434);
            this.btnEdit.Name = "btnEdit";
            this.btnEdit.TabIndex = 3;
            this.btnEdit.Text = "Sửa";
            this.btnEdit.Click += new System.EventHandler(this.btnEdit_Click_1);
            //
            // 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.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
            this.btnDelete.Location = new System.Drawing.Point(445, 434);
            this.btnDelete.Name = "btnDelete";
            this.btnDelete.TabIndex = 4;
            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.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
            this.btnClose.Location = new System.Drawing.Point(525, 434);
            this.btnClose.Name = "btnClose";
            this.btnClose.TabIndex = 5;
            this.btnClose.Text = "Đóng";
            this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
            //
            // frmListContractType
            //

            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.CancelButton = this.btnClose;
            this.ClientSize = new System.Drawing.Size(610, 464);
            this.Controls.Add(this.btnClose);
            this.Controls.Add(this.btnDelete);
            this.Controls.Add(this.btnEdit);
            this.Controls.Add(this.btnAdd);
            this.Controls.Add(this.groupBox1);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            this.Name = "frmListContractType";
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text = "Thống kê các loại hợp đồng";
            this.Load += new System.EventHandler(this.frmListContractType_Load);
            this.groupBox1.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.lvwContractTable)).EndInit();
            this.ResumeLayout(false);
        }
示例#43
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(frmPunishCard));
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.lvwPunishCard = new XPTable.Models.Table();
     this.columnModel1 = new XPTable.Models.ColumnModel();
     this.chSTT = new XPTable.Models.TextColumn();
     this.chCardName = new XPTable.Models.TextColumn();
     this.chPunishFactor = new XPTable.Models.TextColumn();
     this.chNote = new XPTable.Models.TextColumn();
     this.tableModel1 = new XPTable.Models.TableModel();
     this.btnIgnore = new System.Windows.Forms.Button();
     this.btnUpdate = new System.Windows.Forms.Button();
     this.btnAdd = new System.Windows.Forms.Button();
     this.btnDelete = new System.Windows.Forms.Button();
     this.btnClose = new System.Windows.Forms.Button();
     this.groupBox2 = new System.Windows.Forms.GroupBox();
     this.txtNote = new System.Windows.Forms.TextBox();
     this.label2 = new System.Windows.Forms.Label();
     this.txtPunishFactor = new AMS.TextBox.NumericTextBox();
     this.label4 = new System.Windows.Forms.Label();
     this.label3 = new System.Windows.Forms.Label();
     this.txtCardName = new System.Windows.Forms.TextBox();
     this.label1 = new System.Windows.Forms.Label();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.lvwPunishCard)).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.lvwPunishCard);
     this.groupBox1.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.groupBox1.Location = new System.Drawing.Point(8, 112);
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.Size = new System.Drawing.Size(480, 184);
     this.groupBox1.TabIndex = 21;
     this.groupBox1.TabStop = false;
     this.groupBox1.Text = "Danh sách thẻ phạt";
     //
     // lvwPunishCard
     //
     this.lvwPunishCard.AlternatingRowColor = System.Drawing.Color.FromArgb(((System.Byte)(230)), ((System.Byte)(237)), ((System.Byte)(245)));
     this.lvwPunishCard.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.lvwPunishCard.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(237)), ((System.Byte)(242)), ((System.Byte)(249)));
     this.lvwPunishCard.ColumnModel = this.columnModel1;
     this.lvwPunishCard.EnableToolTips = true;
     this.lvwPunishCard.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
     this.lvwPunishCard.FullRowSelect = true;
     this.lvwPunishCard.GridColor = System.Drawing.SystemColors.ControlDark;
     this.lvwPunishCard.GridLines = XPTable.Models.GridLines.Both;
     this.lvwPunishCard.GridLineStyle = XPTable.Models.GridLineStyle.Dot;
     this.lvwPunishCard.HeaderFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.lvwPunishCard.Location = new System.Drawing.Point(8, 16);
     this.lvwPunishCard.Name = "lvwPunishCard";
     this.lvwPunishCard.NoItemsText = WorkingContext.LangManager.GetString("XPtable");
     this.lvwPunishCard.SelectionBackColor = System.Drawing.Color.FromArgb(((System.Byte)(169)), ((System.Byte)(183)), ((System.Byte)(201)));
     this.lvwPunishCard.SelectionForeColor = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
     this.lvwPunishCard.SelectionStyle = XPTable.Models.SelectionStyle.Grid;
     this.lvwPunishCard.Size = new System.Drawing.Size(464, 160);
     this.lvwPunishCard.SortedColumnBackColor = System.Drawing.Color.Transparent;
     this.lvwPunishCard.TabIndex = 19;
     this.lvwPunishCard.TableModel = this.tableModel1;
     this.lvwPunishCard.UnfocusedSelectionBackColor = System.Drawing.Color.FromArgb(((System.Byte)(201)), ((System.Byte)(210)), ((System.Byte)(221)));
     this.lvwPunishCard.UnfocusedSelectionForeColor = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
     this.lvwPunishCard.SelectionChanged += new XPTable.Events.SelectionEventHandler(this.lvwPunishCard_SelectionChanged);
     //
     // columnModel1
     //
     this.columnModel1.Columns.AddRange(new XPTable.Models.Column[] {
                                                                        this.chSTT,
                                                                        this.chCardName,
                                                                        this.chPunishFactor,
                                                                        this.chNote});
     //
     // chSTT
     //
     this.chSTT.Editable = false;
     this.chSTT.Text = "Số TT";
     this.chSTT.Width = 40;
     //
     // chCardName
     //
     this.chCardName.Editable = false;
     this.chCardName.Text = "Tên thẻ";
     this.chCardName.Width = 100;
     //
     // chPunishFactor
     //
     this.chPunishFactor.Editable = false;
     this.chPunishFactor.Text = "Hệ số phạt";
     //
     // chNote
     //
     this.chNote.Editable = false;
     this.chNote.Text = "Chú thích";
     this.chNote.Width = 240;
     //
     // btnIgnore
     //
     this.btnIgnore.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnIgnore.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnIgnore.ImeMode = System.Windows.Forms.ImeMode.NoControl;
     this.btnIgnore.Location = new System.Drawing.Point(336, 304);
     this.btnIgnore.Name = "btnIgnore";
     this.btnIgnore.TabIndex = 18;
     this.btnIgnore.Text = "Bỏ qua";
     this.btnIgnore.Click += new System.EventHandler(this.btnIgnore_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.Font = new System.Drawing.Font("Tahoma", 8.25F);
     this.btnUpdate.ImeMode = System.Windows.Forms.ImeMode.NoControl;
     this.btnUpdate.Location = new System.Drawing.Point(256, 304);
     this.btnUpdate.Name = "btnUpdate";
     this.btnUpdate.TabIndex = 1;
     this.btnUpdate.Text = "Cập nhật";
     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.Font = new System.Drawing.Font("Tahoma", 8.25F);
     this.btnAdd.ImeMode = System.Windows.Forms.ImeMode.NoControl;
     this.btnAdd.Location = new System.Drawing.Point(96, 304);
     this.btnAdd.Name = "btnAdd";
     this.btnAdd.TabIndex = 0;
     this.btnAdd.Text = "Thêm";
     this.btnAdd.Visible = false;
     this.btnAdd.Click += new System.EventHandler(this.btnAdd_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.Font = new System.Drawing.Font("Tahoma", 8.25F);
     this.btnDelete.ImeMode = System.Windows.Forms.ImeMode.NoControl;
     this.btnDelete.Location = new System.Drawing.Point(176, 304);
     this.btnDelete.Name = "btnDelete";
     this.btnDelete.TabIndex = 9;
     this.btnDelete.Text = "Xóa ";
     this.btnDelete.Visible = false;
     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.Font = new System.Drawing.Font("Tahoma", 8.25F);
     this.btnClose.ImeMode = System.Windows.Forms.ImeMode.NoControl;
     this.btnClose.Location = new System.Drawing.Point(416, 304);
     this.btnClose.Name = "btnClose";
     this.btnClose.TabIndex = 10;
     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.txtNote);
     this.groupBox2.Controls.Add(this.label2);
     this.groupBox2.Controls.Add(this.txtPunishFactor);
     this.groupBox2.Controls.Add(this.label4);
     this.groupBox2.Controls.Add(this.label3);
     this.groupBox2.Controls.Add(this.txtCardName);
     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(480, 96);
     this.groupBox2.TabIndex = 22;
     this.groupBox2.TabStop = false;
     this.groupBox2.Text = "Thông tin thẻ phạt";
     this.groupBox2.Enter += new System.EventHandler(this.groupBox2_Enter);
     //
     // txtNote
     //
     this.txtNote.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
         | System.Windows.Forms.AnchorStyles.Right)));
     this.txtNote.Location = new System.Drawing.Point(64, 64);
     this.txtNote.Name = "txtNote";
     this.txtNote.Size = new System.Drawing.Size(408, 20);
     this.txtNote.TabIndex = 20;
     this.txtNote.Text = "";
     this.txtNote.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtNote_KeyPress);
     //
     // label2
     //
     this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(163)));
     this.label2.Location = new System.Drawing.Point(152, 40);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(40, 23);
     this.label2.TabIndex = 19;
     this.label2.Text = "%";
     //
     // txtPunishFactor
     //
     this.txtPunishFactor.AllowNegative = true;
     this.txtPunishFactor.DigitsInGroup = 0;
     this.txtPunishFactor.Flags = 0;
     this.txtPunishFactor.Location = new System.Drawing.Point(64, 40);
     this.txtPunishFactor.MaxDecimalPlaces = 4;
     this.txtPunishFactor.MaxWholeDigits = 9;
     this.txtPunishFactor.Name = "txtPunishFactor";
     this.txtPunishFactor.Prefix = "";
     this.txtPunishFactor.RangeMax = 1.7976931348623157E+308;
     this.txtPunishFactor.RangeMin = -1.7976931348623157E+308;
     this.txtPunishFactor.Size = new System.Drawing.Size(88, 20);
     this.txtPunishFactor.TabIndex = 18;
     this.txtPunishFactor.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtPunishFactor_KeyPress);
     //
     // label4
     //
     this.label4.Font = new System.Drawing.Font("Tahoma", 8.25F);
     this.label4.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.label4.ImeMode = System.Windows.Forms.ImeMode.NoControl;
     this.label4.Location = new System.Drawing.Point(8, 40);
     this.label4.Name = "label4";
     this.label4.Size = new System.Drawing.Size(56, 23);
     this.label4.TabIndex = 17;
     this.label4.Text = "Mức phạt";
     this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // label3
     //
     this.label3.Font = new System.Drawing.Font("Tahoma", 8.25F);
     this.label3.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.label3.ImeMode = System.Windows.Forms.ImeMode.NoControl;
     this.label3.Location = new System.Drawing.Point(8, 64);
     this.label3.Name = "label3";
     this.label3.Size = new System.Drawing.Size(56, 23);
     this.label3.TabIndex = 2;
     this.label3.Text = "Chú thích";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // txtCardName
     //
     this.txtCardName.Location = new System.Drawing.Point(64, 16);
     this.txtCardName.Name = "txtCardName";
     this.txtCardName.ReadOnly = true;
     this.txtCardName.Size = new System.Drawing.Size(136, 20);
     this.txtCardName.TabIndex = 4;
     this.txtCardName.Text = "";
     this.txtCardName.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtCardName_KeyPress);
     //
     // label1
     //
     this.label1.Font = new System.Drawing.Font("Tahoma", 8.25F);
     this.label1.ImeMode = System.Windows.Forms.ImeMode.NoControl;
     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 = 0;
     this.label1.Text = "Tên thẻ";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // frmPunishCard
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton = this.btnClose;
     this.ClientSize = new System.Drawing.Size(498, 336);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.btnIgnore);
     this.Controls.Add(this.btnDelete);
     this.Controls.Add(this.btnClose);
     this.Controls.Add(this.btnAdd);
     this.Controls.Add(this.btnUpdate);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "frmPunishCard";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "Định nghĩa thẻ phạt";
     this.Load += new System.EventHandler(this.frmPunishCard_Load);
     this.groupBox1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.lvwPunishCard)).EndInit();
     this.groupBox2.ResumeLayout(false);
     this.ResumeLayout(false);
 }
示例#44
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.clmSysvar  = new XPTable.Models.ColumnModel();
     this.Sys_name   = new XPTable.Models.TextColumn();
     this.Descript   = new XPTable.Models.TextColumn();
     this.Value      = new XPTable.Models.TextColumn();
     this.tblmSysvar = new XPTable.Models.TableModel();
     this.panel1     = new System.Windows.Forms.Panel();
     this.groupBox2  = new System.Windows.Forms.GroupBox();
     this.btnExit    = new System.Windows.Forms.Button();
     this.btnEdit    = new System.Windows.Forms.Button();
     this.groupBox1  = new System.Windows.Forms.GroupBox();
     this.tblSysvar  = new XPTable.Models.Table();
     this.panel1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.tblSysvar)).BeginInit();
     this.SuspendLayout();
     //
     // clmSysvar
     //
     this.clmSysvar.Columns.AddRange(new XPTable.Models.Column[] {
         this.Sys_name,
         this.Descript,
         this.Value
     });
     //
     // Sys_name
     //
     this.Sys_name.Visible = false;
     this.Sys_name.Width   = 16;
     //
     // Descript
     //
     this.Descript.Editable = false;
     this.Descript.Text     = "Mô tả";
     this.Descript.Width    = 500;
     //
     // Value
     //
     this.Value.Editable = false;
     this.Value.Text     = "Giá trị";
     this.Value.Width    = 500;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.groupBox2);
     this.panel1.Controls.Add(this.groupBox1);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(824, 614);
     this.panel1.TabIndex = 0;
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.btnExit);
     this.groupBox2.Controls.Add(this.btnEdit);
     this.groupBox2.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.groupBox2.Location = new System.Drawing.Point(0, 558);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(824, 56);
     this.groupBox2.TabIndex = 1;
     this.groupBox2.TabStop  = false;
     //
     // btnExit
     //
     this.btnExit.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnExit.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnExit.Location  = new System.Drawing.Point(742, 24);
     this.btnExit.Name      = "btnExit";
     this.btnExit.TabIndex  = 2;
     this.btnExit.Text      = "Thoát";
     this.btnExit.Click    += new System.EventHandler(this.btnExit_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(667, 24);
     this.btnEdit.Name      = "btnEdit";
     this.btnEdit.TabIndex  = 1;
     this.btnEdit.Text      = "Sửa";
     this.btnEdit.Click    += new System.EventHandler(this.btnEdit_Click);
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.tblSysvar);
     this.groupBox1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.groupBox1.Location = new System.Drawing.Point(0, 0);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(824, 614);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Bảng tham số hệ thống";
     //
     // tblSysvar
     //
     this.tblSysvar.ColumnModel                 = this.clmSysvar;
     this.tblSysvar.Dock                        = System.Windows.Forms.DockStyle.Fill;
     this.tblSysvar.FullRowSelect               = true;
     this.tblSysvar.GridLines                   = XPTable.Models.GridLines.Both;
     this.tblSysvar.Location                    = new System.Drawing.Point(3, 16);
     this.tblSysvar.Name                        = "tblSysvar";
     this.tblSysvar.NoItemsText                 = "Không có tham số nào trong hệ thống";
     this.tblSysvar.SelectionForeColor          = System.Drawing.SystemColors.ActiveCaptionText;
     this.tblSysvar.Size                        = new System.Drawing.Size(818, 595);
     this.tblSysvar.TabIndex                    = 0;
     this.tblSysvar.TableModel                  = this.tblmSysvar;
     this.tblSysvar.Text                        = "table1";
     this.tblSysvar.UnfocusedSelectionForeColor = System.Drawing.SystemColors.Highlight;
     this.tblSysvar.CellDoubleClick            += new XPTable.Events.CellMouseEventHandler(this.tblSysvar_CellDoubleClick);
     //
     // frmThamsohethong
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(824, 614);
     this.Controls.Add(this.panel1);
     this.Name          = "frmThamsohethong";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Đặt tham số hệ thống";
     this.WindowState   = System.Windows.Forms.FormWindowState.Maximized;
     this.Load         += new System.EventHandler(this.frmSysvar_Load);
     this.panel1.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     this.groupBox1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.tblSysvar)).EndInit();
     this.ResumeLayout(false);
 }