Inheritance: System.ComponentModel.Component
Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        private void AddEmailRows(TableModel table, bool read, string from, string sent, string subject, string preview)
        {
            Row row = new Row();
            row.Cells.Add(new Cell());       // always starts off showing all subrows
            row.Cells.Add(new Cell("", read ? _read : _unread));
            row.Cells.Add(new Cell(from));
            row.Cells.Add(new Cell(DateTime.Parse(sent)));
            row.Cells.Add(new Cell("hi"));
            table.Rows.Add(row);

            // Add a sub-row that shows just the email subject in grey (single line only)
            Row subrow = new Row();
            subrow.Cells.Add(new Cell());   // Extra column for +/-
            subrow.Cells.Add(new Cell());
            Cell cell = new Cell(subject);
            cell.ForeColor = Color.Gray;
            cell.ColSpan = 3;
            subrow.Cells.Add(cell);
            row.SubRows.Add(subrow);

            // Add a sub-row that shows just a preview of the email body in blue, and wraps too
            subrow = new Row();
            subrow.Cells.Add(new Cell());   // Extra column for +/-
            subrow.Cells.Add(new Cell());
            cell = new Cell(preview);
            cell.ForeColor = Color.Blue;
            cell.ColSpan = 3;
            cell.WordWrap = true;
            subrow.Cells.Add(cell);
            row.SubRows.Add(subrow);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the SorterBase class with the specified 
 /// TableModel, Column index, IComparer and SortOrder
 /// </summary>
 /// <param name="tableModel">The TableModel that contains the data to be sorted</param>
 /// <param name="column">The index of the Column to be sorted</param>
 /// <param name="comparer">The IComparer used to sort the Column's Cells</param>
 /// <param name="sortOrder">Specifies how the Column is to be sorted</param>
 public SorterBase(TableModel tableModel, int column, IComparer comparer, SortOrder sortOrder)
 {
     this.tableModel = tableModel;
     this.column = column;
     this.comparer = comparer;
     this.sortOrder = sortOrder;
 }
Ejemplo n.º 4
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();
        }
Ejemplo n.º 5
0
		/// <summary>
		/// Initializes a new instance of the RowCollection class 
		/// that belongs to the specified TableModel
		/// </summary>
		/// <param name="owner">A TableModel representing the tableModel that owns 
		/// the RowCollection</param>
		public RowCollection(TableModel owner) : base()
		{
			if (owner == null)
			{
				throw new ArgumentNullException("owner");
			}
				
			this.owner = owner;
		}
Ejemplo n.º 6
0
 private void AddRow(TableModel table, int index, double height, string text, string surname, string date, string more)
 {
     Row row = new Row();
     row.Cells.Add(new Cell(index));
     row.Cells.Add(new Cell(height));
     row.Cells.Add(new Cell(text));
     row.Cells.Add(new Cell(surname));
     row.Cells.Add(new Cell(DateTime.Parse(date)));
     row.Cells.Add(new Cell(more));
     table.Rows.Add(row);
 }
Ejemplo n.º 7
0
        /// <summary>
        /// Initializes a new instance of the RowCollection class 
        /// that belongs to the specified TableModel
        /// </summary>
        /// <param name="owner">A TableModel representing the tableModel that owns 
        /// the RowCollection</param>
        public RowCollection(TableModel owner)
            : base()
        {
            if (owner == null)
            {
                throw new ArgumentNullException("owner");
            }

            this.owner = owner;

            propertyChangedEventHandler = new RowEventHandler(row_PropertyChanged);
        }
Ejemplo n.º 8
0
        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();
        }
Ejemplo n.º 9
0
        public TableModel getTableModel()
        {
            TableModel tmpMod = new TableModel(new Row[] { });

            for (int i = 0; i < lKESZLET.Count; i++)
            {

                tmpMod.Rows.Add(new Row(new Cell[] {new RaktCell(lKESZLET[i]), new Cell(lKESZLET[i].fNEV),
                                                    new Cell(lKESZLET[i].fKESZLET)}));
            }

            return (tmpMod);
        }
Ejemplo n.º 10
0
        private void AddEmailRows(TableModel table, bool read, string from, string sent, string subject, string preview)
        {
            Row row = new Row();
            //row.Alignment = RowAlignment.Top;
            row.Cells.Add(new Cell());       // always starts off showing all subrows
            row.Cells.Add(new Cell("", read ? _read : _unread));
            Cell fro = new Cell(null); //from);
            fro.WordWrap = true;
            row.Cells.Add(fro);
            Cell cellSent = new Cell(DateTime.Parse(sent));
            if (sent == "5/4/2007 9:13")
            {
                cellSent.CellStyle = new CellStyle(ColumnAlignment.Left);
                cellSent.CellStyle.LineAlignment = RowAlignment.Top;
            }
            row.Cells.Add(cellSent);
            row.Cells.Add(new Cell("hi"));
            row.RowStyle = new XPTable.Models.RowStyle();
            row.RowStyle.Alignment = RowAlignment.Top;
            table.Rows.Add(row);

            // Add a sub-row that shows just the email subject in grey (single line only)
            Row subrow = new Row();
            subrow.Cells.Add(new Cell());   // Extra column for +/-
            subrow.Cells.Add(new Cell());
            subrow.RowStyle = new XPTable.Models.RowStyle();
            subrow.RowStyle.Alignment = RowAlignment.Bottom;
            Cell cell = new Cell(subject);
            cell.ForeColor = Color.Gray;
            cell.ColSpan = 3;

            subrow.Cells.Add(cell);
            row.SubRows.Add(subrow);

            // Add a sub-row that shows just a preview of the email body in blue, and wraps too
            subrow = new Row();
            subrow.Cells.Add(new Cell());   // Extra column for +/-
            subrow.Cells.Add(new Cell());
            cell = new Cell(preview);
            cell.ForeColor = Color.Blue;
            cell.ColSpan = 3;
            cell.WordWrap = true;
            subrow.RowStyle = new XPTable.Models.RowStyle();
            subrow.RowStyle.Alignment = RowAlignment.Bottom;
            subrow.Cells.Add(cell);
            row.SubRows.Add(subrow);
        }
Ejemplo n.º 11
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();
        }
Ejemplo n.º 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);
 }
Ejemplo n.º 13
0
		/*/// <summary>
		/// Specifies whether pressing the Tab key while editing moves the 
		/// editor to the next available cell
		/// </summary>
		private bool tabMovesEditor;*/

		#endregion

		#endregion


		#region Constructor

		/// <summary>
		/// Initializes a new instance of the Table class with default settings
		/// </summary>
		public Table()
		{
			// starting setup
			this.init = true;
			
			// This call is required by the Windows.Forms Form Designer.
			components = new System.ComponentModel.Container();

			//
			this.SetStyle(ControlStyles.UserPaint, true);
			this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
			this.SetStyle(ControlStyles.DoubleBuffer, true);
			this.SetStyle(ControlStyles.ResizeRedraw, true);
			this.SetStyle(ControlStyles.Selectable, true);
			this.TabStop = true;

			this.Size = new Size(150, 150);

			this.BackColor = Color.White;

			//
			this.columnModel = null;
			this.tableModel = null;

			// header
			this.headerStyle = ColumnHeaderStyle.Clickable;
			this.headerFont = this.Font;
			this.headerRenderer = new XPHeaderRenderer();
			//this.headerRenderer = new GradientHeaderRenderer();
			//this.headerRenderer = new FlatHeaderRenderer();
			this.headerRenderer.Font = this.headerFont;
			this.headerContextMenu = new HeaderContextMenu();
			
			this.columnResizing = true;
			this.resizingColumnIndex = -1;
			this.resizingColumnWidth = -1;
			this.hotColumn = -1;
			this.pressedColumn = -1;
			this.lastSortedColumn = -1;
			this.sortedColumnBackColor = Color.WhiteSmoke;

			// borders
			this.borderStyle = BorderStyle.Fixed3D;

			// scrolling
			this.scrollable = true;

			this.hScrollBar = new HScrollBar();
			this.hScrollBar.Visible = false;
			this.hScrollBar.Location = new Point(this.BorderWidth, this.Height - this.BorderWidth - SystemInformation.HorizontalScrollBarHeight);
			this.hScrollBar.Width = this.Width - (this.BorderWidth * 2) - SystemInformation.VerticalScrollBarWidth;
			this.hScrollBar.Scroll += new ScrollEventHandler(this.OnHorizontalScroll);
			this.Controls.Add(this.hScrollBar);

			this.vScrollBar = new VScrollBar();
			this.vScrollBar.Visible = false;
			this.vScrollBar.Location = new Point(this.Width - this.BorderWidth - SystemInformation.VerticalScrollBarWidth, this.BorderWidth);
			this.vScrollBar.Height = this.Height - (this.BorderWidth * 2) - SystemInformation.HorizontalScrollBarHeight;
			this.vScrollBar.Scroll += new ScrollEventHandler(this.OnVerticalScroll);
			this.Controls.Add(this.vScrollBar);

			//
			this.gridLines = GridLines.None;;
			this.gridColor = SystemColors.Control;
			this.gridLineStyle = GridLineStyle.Solid;

			this.allowSelection = true;
			this.multiSelect = false;
			this.fullRowSelect = false;
			this.hideSelection = false;
			this.selectionBackColor = SystemColors.Highlight;
			this.selectionForeColor = SystemColors.HighlightText;
			this.unfocusedSelectionBackColor = SystemColors.Control;
			this.unfocusedSelectionForeColor = SystemColors.ControlText;
			this.selectionStyle = SelectionStyle.ListView;
			this.alternatingRowColor = Color.Transparent;

			// current table state
			this.tableState = TableState.Normal;

			this.lastMouseCell = new CellPos(-1, -1);
			this.lastMouseDownCell = new CellPos(-1, -1);
			this.focusedCell = new CellPos(-1, -1);
			this.hoverTime = 1000;
			this.trackMouseEvent = null;
			this.ResetMouseEventArgs();

			this.toolTip = new ToolTip(this.components);
			this.toolTip.Active = false;
			this.toolTip.InitialDelay = 1000;

			this.noItemsText = "There are no items in this view";

			this.editingCell = new CellPos(-1, -1);
			this.curentCellEditor = null;
			this.editStartAction = EditStartAction.DoubleClick;
			this.customEditKey = Keys.F5;
			//this.tabMovesEditor = true;

			// finished setting up
			this.beginUpdateCount = 0;
			this.init = false;
			this.preview = false;
		}
Ejemplo n.º 14
0
		/// <summary>
		/// Initializes a new instance of the SorterBase class with the specified 
		/// TableModel, Column index, IComparer and SortOrder
		/// </summary>
		/// <param name="tableModel">The TableModel that contains the data to be sorted</param>
		/// <param name="column">The index of the Column to be sorted</param>
		/// <param name="comparer">The IComparer used to sort the Column's Cells</param>
		/// <param name="sortOrder">Specifies how the Column is to be sorted</param>
		public SorterBase(TableModel tableModel, int column, IComparer comparer, SortOrder sortOrder)
		{
			this.tableModel = tableModel;
			this.column = column;
			this.comparer = comparer;
			this.sortOrder = sortOrder;
            this.secondarySortOrder = new SortColumnCollection();
            this.secondaryComparers = new IComparerCollection();
		}
Ejemplo n.º 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.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);
 }
Ejemplo n.º 16
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);
 }
Ejemplo n.º 17
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);
 }
Ejemplo n.º 18
0
 /// <summary>
 /// Initializes a new instance of the ComparerBase class with the specified 
 /// TableModel, Column index and SortOrder
 /// </summary>
 /// <param name="tableModel">The TableModel that contains the data to be sorted</param>
 /// <param name="column">The index of the Column to be sorted</param>
 /// <param name="sortOrder">Specifies how the Column is to be sorted</param>
 public ComparerBase(TableModel tableModel, int column, SortOrder sortOrder)
 {
     this.tableModel = tableModel;
     this.column = column;
 }
Ejemplo n.º 19
0
        /// <summary>
        /// Initializes a new instance of the SelectionEventArgs class with 
        /// the specified TableModel source, old selected indicies and new 
        /// selected indicies
        /// </summary>
        /// <param name="source">The TableModel that originated the event</param>
        /// <param name="oldSelectedIndicies">An array of the previously selected Rows</param>
        /// <param name="newSelectedIndicies">An array of the newly selected Rows</param>
        public SelectionEventArgs(TableModel source, int[] oldSelectedIndicies, int[] newSelectedIndicies)
            : base()
        {
            if (source == null)
            {
                throw new ArgumentNullException("source", "TableModel cannot be null");
            }

            this.source = source;
            this.oldSelectedIndicies = oldSelectedIndicies;
            this.newSelectedIndicies = newSelectedIndicies;

            this.oldSelectionBounds = Rectangle.Empty;
            this.newSelectionBounds = Rectangle.Empty;

            if (oldSelectedIndicies.Length > 0)
            {
                this.oldSelectionBounds = source.Selections.CalcSelectionBounds(oldSelectedIndicies[0],
                                                                                oldSelectedIndicies[oldSelectedIndicies.Length-1]);
            }

            if (newSelectedIndicies.Length > 0)
            {
                this.newSelectionBounds = source.Selections.CalcSelectionBounds(newSelectedIndicies[0],
                                                                                newSelectedIndicies[newSelectedIndicies.Length-1]);
            }
        }
Ejemplo n.º 20
0
        /// <summary>
        /// Releases all resources used by the Row
        /// </summary>
        public void Dispose()
        {
            if (!this.disposed)
            {
                this.tag = null;

                if (this.tableModel != null)
                {
                    this.tableModel.Rows.Remove(this);
                }

                this.tableModel = null;
                this.index = -1;

                if (this.cells != null)
                {
                    Cell cell;

                    for (int i=0; i<this.cells.Count; i++)
                    {
                        cell = this.cells[i];

                        cell.InternalRow = null;
                        cell.Dispose();
                    }

                    this.cells = null;
                }

                this.rowStyle = null;
                this.state = (byte) 0;

                this.disposed = true;
            }
        }
Ejemplo n.º 21
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);
 }
Ejemplo n.º 22
0
		/// <summary>
		/// Initialise default values
		/// </summary>
		private void Init()
		{
			this.cells = null;

			this.tag = null;
			this.tableModel = null;
			this.index = -1;
			this.rowStyle = null;
			this.selectedCellCount = 0;

			this.state = (byte) (STATE_EDITABLE | STATE_ENABLED);
		}
Ejemplo n.º 23
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);
        }
Ejemplo n.º 24
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.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);
 }
Ejemplo n.º 25
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);
 }
Ejemplo n.º 26
0
        /// <summary>
        /// Initialise default values
        /// </summary>
        private void Init()
        {
            this.cells = null;

            this.tag = null;
            this.tableModel = null;
            this.index = -1;
            this.rowStyle = null;
            this.selectedCellCount = 0;
            this.hasWordWrapCell = false;
            this.wordWrapIndex = 0;
            this.height = -1;
            this._internalGridLineFlags = null;

            this.state = (byte) (STATE_EDITABLE | STATE_ENABLED);
        }
Ejemplo n.º 27
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);
 }
Ejemplo n.º 28
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);
 }
Ejemplo n.º 29
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);
 }
Ejemplo n.º 30
0
 /// <summary>
 /// Initializes a new instance of the InsertionSorter class with the specified 
 /// TableModel, Column index, IComparer and SortOrder
 /// </summary>
 /// <param name="tableModel">The TableModel that contains the data to be sorted</param>
 /// <param name="column">The index of the Column to be sorted</param>
 /// <param name="comparer">The IComparer used to sort the Column's Cells</param>
 /// <param name="sortOrder">Specifies how the Column is to be sorted</param>
 public InsertionSorter(TableModel tableModel, int column, IComparer comparer, SortOrder sortOrder)
     : base(tableModel, column, comparer, sortOrder)
 {
 }
Ejemplo n.º 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(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);
 }
Ejemplo n.º 32
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);
 }
Ejemplo n.º 33
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);
 }
Ejemplo n.º 34
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);
 }
Ejemplo n.º 35
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);
 }
Ejemplo n.º 36
0
		/// <summary>
		/// Initializes a new instance of the ImageComparer class with the specified 
		/// TableModel, Column index and SortOrder
		/// </summary>
		/// <param name="tableModel">The TableModel that contains the data to be sorted</param>
		/// <param name="column">The index of the Column to be sorted</param>
		/// <param name="sortOrder">Specifies how the Column is to be sorted</param>
		public ImageComparer(TableModel tableModel, int column, SortOrder sortOrder) : base(tableModel, column, sortOrder)
		{
			
		}
Ejemplo n.º 37
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);
 }
Ejemplo n.º 38
0
            /// <summary>
            /// Initializes a new instance of the TableModel.Selection class 
            /// that belongs to the specified TableModel
            /// </summary>
            /// <param name="owner">A TableModel representing the tableModel that owns 
            /// the Selection</param>
            public Selection(TableModel owner)
            {
                if (owner == null)
                {
                    throw new ArgumentNullException("owner", "owner cannot be null");
                }

                this.owner = owner;
                this.rows = new ArrayList();

                this.shiftSelectStart = CellPos.Empty;
                this.shiftSelectEnd = CellPos.Empty;
            }
Ejemplo n.º 39
0
        public TableModel getTableModel()
        {
            TableModel tmpMod = new TableModel(new Row[] { });

            for (int i = 0; i < lHitelSor.Count; i++)
            {

                tmpMod.Rows.Add(new Row(new Cell[] {new HitelCell(lHitelSor[i]),
                                                    new Cell(lHitelSor[i]._datum),
                                                    new Cell(lHitelSor[i]._CikkNev),
                                                    new Cell(lHitelSor[i]._Ertek)
                                                    }
                                       )
                               );
            }

            return (tmpMod);
        }