Inheritance: System.Windows.Forms.Control, ISupportInitialize
Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the TableEventArgs class with the specified table, event type and old value
 /// </summary>
 /// <param name="_table">The table on which the event occured</param>
 /// <param name="_eventType">The type of event (principally the property that changed)</param>
 /// <param name="_oldValue">The old value of a changed property 
 /// <para>would be null for non property change events e.g. if table was being used as a matrix then there might be an inversion event)</para></param>
 public TableEventArgs(Table _table, TableEventType _eventType, object _oldValue)
     : base()
 {
     this.theTable = _table;
     this.theEventType = _eventType;
     this.theOldValue = _oldValue;
 }
Beispiel #2
0
        /// <summary>
        /// Returns a list of distinct items from the given column
        /// </summary>
        /// <param name="table"></param>
        /// <param name="col"></param>
        /// <returns></returns>
        public string[] GetDistinctItems(Table table, int col)
        {
            if (table?.TableModel == null)
            {
                return null;
            }

            var list = new List<string>();

            foreach (Row row in table.TableModel.Rows)
            {
                Cell cell = row.Cells[col];

                if (cell == null)
                {
                    continue;
                }

                string text = cell.Text;
                if (!list.Contains(text))
                {
                    list.Add(text);
                }
            }

            return list.ToArray();
        }
Beispiel #3
0
 /// <summary>
 /// Creates a drag drop helper for the given table.
 /// </summary>
 /// <param name="table"></param>
 public DragDropHelper(Table table)
 {
     _table = table;
     _table.DragEnter += new DragEventHandler(table_DragEnter);
     _table.DragOver += new DragEventHandler(table_DragOver);
     _table.DragDrop += new DragEventHandler(table_DragDrop);
     Reset();
 }
Beispiel #4
0
 //Giúp refresh dữ liệu
 private static void Cheats(ref Table mytbl)
 {
     mytbl.BeginUpdate();
     mytbl.ColumnModel.Columns.Add(new TextColumn());
     mytbl.EndUpdate();
     mytbl.BeginUpdate();
     mytbl.ColumnModel.Columns.RemoveAt(mytbl.ColumnModel.Columns.Count-1);
     mytbl.EndUpdate();
 }
Beispiel #5
0
 /// <summary>
 ///  Tự động size cột dữ liệu (Không sử dụng khi đã dùng even SizeChanged)
 ///  void modify nên để sau cùng áu khi toàn bộ dữ liệu đã load đầy đủ
 /// </summary>
 /// <param name="mytbl"></param>
 public static void XPTableModifier(ref Table mytbl)
 {
     RowColor(ref mytbl);
     SizeModifier(ref mytbl);
     mytbl.BeginUpdate();
     mytbl.Resize += new EventHandler(SizeChanged);
     mytbl.EnableHeaderContextMenu=false;
     mytbl.EndUpdate();
 }
 /// <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);
 }
Beispiel #7
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.table = new XPTable.Models.Table();
     this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
     this.button1 = new System.Windows.Forms.Button();
     ((System.ComponentModel.ISupportInitialize)(this.table)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
     this.SuspendLayout();
     //
     // table
     //
     this.table.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.table.DataMember = null;
     this.table.EnableToolTips = true;
     this.table.Location = new System.Drawing.Point(12, 12);
     this.table.Name = "table";
     this.table.Size = new System.Drawing.Size(493, 236);
     this.table.TabIndex = 0;
     this.table.Text = "table1";
     //
     // numericUpDown1
     //
     this.numericUpDown1.Location = new System.Drawing.Point(16, 256);
     this.numericUpDown1.Name = "numericUpDown1";
     this.numericUpDown1.TabIndex = 1;
     this.numericUpDown1.ValueChanged += new System.EventHandler(this.numericUpDown1_ValueChanged);
     //
     // button1
     //
     this.button1.Location = new System.Drawing.Point(144, 256);
     this.button1.Name = "button1";
     this.button1.TabIndex = 2;
     this.button1.Text = "Go";
     this.button1.Click += new System.EventHandler(this.button1_Click);
     //
     // Demo
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize = new System.Drawing.Size(517, 281);
     this.Controls.Add(this.button1);
     this.Controls.Add(this.numericUpDown1);
     this.Controls.Add(this.table);
     this.Name = "Demo";
     this.Text = "DataBinding";
     this.Load += new System.EventHandler(this.Demo_Load);
     ((System.ComponentModel.ISupportInitialize)(this.table)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
     this.ResumeLayout(false);
 }
		/// <summary>
		/// Gets whether the specified Table is using a NumericCellEditor to edit the 
		/// Cell at the specified CellPos
		/// </summary>
		/// <param name="table">The Table to check</param>
		/// <param name="cellPos">A CellPos that represents the Cell to check</param>
		/// <returns>true if the specified Table is using a NumericCellEditor to edit the 
		/// Cell at the specified CellPos, false otherwise</returns>
		internal bool TableUsingNumericCellEditor(Table table, CellPos cellPos)
		{
			return (table.IsEditing && cellPos == table.EditingCell && table.EditingCellEditor is NumberCellEditor);
		}
Beispiel #9
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);
 }
Beispiel #10
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(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);
 }
Beispiel #11
0
 /// <summary>
 /// Initializes a new instance of the CellMouseEventArgs class with 
 /// the specified source Cell, table, row index, column index and 
 /// cell bounds
 /// </summary>
 /// <param name="cell">The Cell that Raised the event</param>
 /// <param name="table">The Table the Cell belongs to</param>
 /// <param name="cellPos"></param>
 /// <param name="cellRect">The Cell's bounding rectangle</param>
 public CellMouseEventArgs(Cell cell, Table table, CellPos cellPos, Rectangle cellRect)
     : base(MouseButtons.None, 0, -1, -1, 0)
 {
     this.cell = cell;
     this.table = table;
     this.row = cellPos.Row;
     this.column = cellPos.Column;
     this.cellRect = cellRect;
 }
		/// <summary>
		/// Prepares the CellEditor to edit the specified Cell
		/// </summary>
		/// <param name="cell">The Cell to be edited</param>
		/// <param name="table">The Table that contains the Cell</param>
		/// <param name="cellPos">A CellPos representing the position of the Cell</param>
		/// <param name="cellRect">The Rectangle that represents the Cells location and size</param>
		/// <param name="userSetEditorValues">Specifies whether the ICellEditors 
		/// starting value has already been set by the user</param>
		/// <returns>true if the ICellEditor can continue editing the Cell, false otherwise</returns>
		public override bool PrepareForEditing(Cell cell, Table table, CellPos cellPos, Rectangle cellRect, bool userSetEditorValues)
		{
			//
			if (!(table.ColumnModel.Columns[cellPos.Column] is NumberColumn))
			{
				throw new InvalidOperationException("Cannot edit Cell as NumberCellEditor can only be used with a NumberColumn");
			}
			
			if (!(table.ColumnModel.GetCellRenderer(cellPos.Column) is NumberCellRenderer))
			{
				throw new InvalidOperationException("Cannot edit Cell as NumberCellEditor can only be used with a NumberColumn that uses a NumberCellRenderer");
			}
			
			this.Minimum = ((NumberColumn) table.ColumnModel.Columns[cellPos.Column]).Minimum;
			this.Maximum = ((NumberColumn) table.ColumnModel.Columns[cellPos.Column]).Maximum;
			this.Increment = ((NumberColumn) table.ColumnModel.Columns[cellPos.Column]).Increment;
			
			return base.PrepareForEditing (cell, table, cellPos, cellRect, userSetEditorValues);
		}
Beispiel #13
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);
 }
Beispiel #14
0
        /// <summary>
        /// Conceals the editor from the user and removes it from the Table's 
        /// Control collection
        /// </summary>
        protected virtual void RemoveEditControl()
        {
            if (this.control != null)
            {
                this.control.Visible = false;
                this.control.Parent = null;
            }

            if (this.table != null)
            {
                this.table.Focus();
            }

            this.cell = null;
            this.table = null;
            this.cellPos = CellPos.Empty;
            this.cellRect = Rectangle.Empty;
        }
Beispiel #15
0
 //Kiểm tra và thay đổi
 private static void SizeModifier(ref Table mytbl)
 {
     //Lấy thông tin bảng hiển tại
     int TblWsize = mytbl.Size.Width;
     int TotalColnum = mytbl.ColumnModel.Columns.Count;
     int TotalColsize = mytbl.ColumnModel.VisibleColumnsWidth;
     if(mytbl.ColumnModel.VisibleColumnCount==0)return;
     //Kiểm tra khoảng trống
     if(TblWsize<=TotalColsize+30)return;
     //Nếu bảng chỉ có một cột thì hiển thị trực tiếp
     if(mytbl.ColumnModel.VisibleColumnCount==1)
     {
         mytbl.BeginUpdate();
         for (int i=0;i<TotalColnum;i++)
         {
             mytbl.ColumnModel.Columns[i].Width =TblWsize-30;
         }
         mytbl.EndUpdate();
     }
     else
     {
         int Remainning = (TblWsize-TotalColsize-30)/mytbl.ColumnModel.VisibleColumnCount;
         //Tăng kích thước
         mytbl.BeginUpdate();
         for (int i=0;i<TotalColnum;i++)
         {
             mytbl.ColumnModel.Columns[i].Width =mytbl.ColumnModel.Columns[i].Width+Remainning;
         }
         mytbl.EndUpdate();
     }
     Cheats(ref mytbl);
 }
Beispiel #16
0
 //Thay đổi màu sắc
 private static void RowColor(ref Table mytbl)
 {
     mytbl.BeginUpdate();
     mytbl.AlternatingRowColor = Color.FromArgb(((Byte)(235)), ((Byte)(243)), ((Byte)(255)));
     mytbl.BackColor = Color.FromArgb(((Byte)(241)), ((Byte)(244)), ((Byte)(255)));
     mytbl.SortedColumnBackColor = Color.Transparent;
     mytbl.EndUpdate();
 }
 /// <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);
 }
Beispiel #18
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.table = new XPTable.Models.Table();
     ((System.ComponentModel.ISupportInitialize)(this.table)).BeginInit();
     this.SuspendLayout();
     //
     // table
     //
     this.table.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.table.GridLines = XPTable.Models.GridLines.Both;
     this.table.Location = new System.Drawing.Point(12, 12);
     this.table.Name = "table";
     this.table.SelectionStyle = XPTable.Models.SelectionStyle.Grid;
     this.table.Size = new System.Drawing.Size(412, 188);
     this.table.TabIndex = 0;
     this.table.Text = "table1";
     //
     // Demo
     //
     this.ClientSize = new System.Drawing.Size(436, 212);
     this.Controls.Add(this.table);
     this.Name = "Demo";
     this.Text = "ColSpan";
     this.Load += new System.EventHandler(this.Demo_Load);
     ((System.ComponentModel.ISupportInitialize)(this.table)).EndInit();
     this.ResumeLayout(false);
 }
		/// <summary>
		/// Initializes a new instance of the CellFocusEventArgs class with 
		/// the specified source Cell, table, row index, column index and 
		/// cell bounds
		/// </summary>
		/// <param name="source">The Cell that Raised the event</param>
		/// <param name="table">The Table the Cell belongs to</param>
		/// <param name="row">The Row index of the Cell</param>
		/// <param name="column">The Column index of the Cell</param>
		/// <param name="cellRect">The Cell's bounding rectangle</param>
		public CellFocusEventArgs(Cell source, Table table, int row, int column, Rectangle cellRect) : base(source, column, row)
		{
			this.table = table;
			this.cellRect = cellRect;
		}
Beispiel #20
0
 /// <summary>
 /// Initializes a new instance of the CellMouseEventArgs class with 
 /// the specified source Cell, table, row index, column index and 
 /// cell bounds
 /// </summary>
 /// <param name="cell">The Cell that Raised the event</param>
 /// <param name="table">The Table the Cell belongs to</param>
 /// <param name="row">The Row index of the Cell</param>
 /// <param name="column">The Column index of the Cell</param>
 /// <param name="cellRect">The Cell's bounding rectangle</param>
 public CellMouseEventArgs(Cell cell, Table table, int row, int column, Rectangle cellRect)
     : base(MouseButtons.None, 0, -1, -1, 0)
 {
     this.cell = cell;
     this.table = table;
     this.row = row;
     this.column = column;
     this.cellRect = cellRect;
 }
Beispiel #21
0
        /// <summary>
        /// Prepares the CellEditor to edit the specified Cell
        /// </summary>
        /// <param name="cell">The Cell to be edited</param>
        /// <param name="table">The Table that contains the Cell</param>
        /// <param name="cellPos">A CellPos representing the position of the Cell</param>
        /// <param name="cellRect">The Rectangle that represents the Cells location and size</param>
        /// <param name="userSetEditorValues">Specifies whether the ICellEditors 
        /// starting value has already been set by the user</param>
        /// <returns>true if the ICellEditor can continue editing the Cell, false otherwise</returns>
        public virtual bool PrepareForEditing(Cell cell, Table table, CellPos cellPos, Rectangle cellRect, bool userSetEditorValues)
        {
            this.cell = cell;
            this.table = table;
            this.cellPos = cellPos;
            this.cellRect = cellRect;

            // check if the user has already set the editors value for us
            if (!userSetEditorValues)
            {
                this.SetEditValue();
            }

            this.SetEditLocation(cellRect);

            // raise the BeginEdit event
            var e = new CellEditEventArgs(cell, this, table, cellPos.Row, cellPos.Column, cellRect)
                        {
                            Handled = userSetEditorValues
                        };

            this.OnBeginEdit(e);

            // if the edit has been canceled, remove the editor and return false
            if (e.Cancel)
            {
                this.RemoveEditControl();
                return false;
            }

            return true;
        }
Beispiel #22
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.table = new XPTable.Models.Table();
     ((System.ComponentModel.ISupportInitialize)(this.table)).BeginInit();
     this.SuspendLayout();
     //
     // table
     //
     this.table.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.table.EnableToolTips = true;
     this.table.Location = new System.Drawing.Point(12, 12);
     this.table.Name = "table";
     this.table.Size = new System.Drawing.Size(493, 257);
     this.table.TabIndex = 0;
     this.table.Text = "table1";
     //
     // Demo
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize = new System.Drawing.Size(517, 281);
     this.Controls.Add(this.table);
     this.Name = "Demo";
     this.Text = "Grouping";
     this.Load += new System.EventHandler(this.Demo_Load);
     ((System.ComponentModel.ISupportInitialize)(this.table)).EndInit();
     this.ResumeLayout(false);
 }
Beispiel #23
0
        /// <summary>
        /// Initializes a new instance of the CellEditor class with default settings
        /// </summary>
        protected CellEditor()
        {
            this.control = null;
            this.cell = null;
            this.table = null;
            this.cellPos = CellPos.Empty;
            this.cellRect = Rectangle.Empty;

            this.mouseMessageFilter = new MouseMessageFilter(this);
            this.keyMessageFilter = new KeyMessageFilter(this);
        }
Beispiel #24
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);
 }
		/// <summary>
		/// Prepares the CellEditor to edit the specified Cell
		/// </summary>
		/// <param name="cell">The Cell to be edited</param>
		/// <param name="table">The Table that contains the Cell</param>
		/// <param name="cellPos">A CellPos representing the position of the Cell</param>
		/// <param name="cellRect">The Rectangle that represents the Cells location and size</param>
		/// <param name="userSetEditorValues">Specifies whether the ICellEditors 
		/// starting value has already been set by the user</param>
		/// <returns>true if the ICellEditor can continue editing the Cell, false otherwise</returns>
		public override bool PrepareForEditing(Cell cell, Table table, CellPos cellPos, Rectangle cellRect, bool userSetEditorValues)
		{
			if (!(table.ColumnModel.Columns[cellPos.Column] is DropDownColumn))
			{
				throw new InvalidOperationException("Cannot edit Cell as DropDownCellEditor can only be used with a DropDownColumn");
			}
			
			return base.PrepareForEditing (cell, table, cellPos, cellRect, userSetEditorValues);
		}
Beispiel #26
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.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);
 }
Beispiel #27
0
 /// <summary>
 /// Initializes a new instance of the CellMouseEventArgs class with 
 /// the specified source Cell, table, row index, column index and 
 /// cell bounds
 /// </summary>
 /// <param name="cell">The Cell that Raised the event</param>
 /// <param name="table">The Table the Cell belongs to</param>
 /// <param name="cellPos"></param>
 /// <param name="cellRect">The Cell's bounding rectangle</param>
 /// <param name="mea"></param>
 public CellMouseEventArgs(Cell cell, Table table, CellPos cellPos, Rectangle cellRect, MouseEventArgs mea)
     : base(mea.Button, mea.Clicks, mea.X, mea.Y, mea.Delta)
 {
     this.cell = cell;
     this.table = table;
     this.row = cellPos.Row;
     this.column = cellPos.Column;
     this.cellRect = cellRect;
 }
Beispiel #28
0
        /// <summary>
        /// Initializes a new instance of the CellEventArgs class with 
        /// the specified Cell source, column index and row index
        /// </summary>
        /// <param name="source">The Cell that Raised the event</param>
        /// <param name="editor">The CellEditor used to edit the Cell</param>
        /// <param name="table">The Table that the Cell belongs to</param>
        /// <param name="row">The Column index of the Cell</param>
        /// <param name="column">The Row index of the Cell</param>
        /// <param name="cellRect"></param>
        public CellEditEventArgs(Cell source, ICellEditor editor, Table table, int row, int column, Rectangle cellRect)
            : base(source, column, row)
        {
            this.editor = editor;
            this.table = table;
            this.cellRect = cellRect;

            this.cancel = false;
        }
Beispiel #29
0
        /// <summary>
        /// Initialise default settings
        /// </summary>
        private void Init()
        {
            this.rows = null;

            this.selection = new Selection(this);
            this.table = null;
            this.rowHeight = TableModel.DefaultRowHeight;
        }
Beispiel #30
0
 /// <summary>
 /// Initializes a new instance of the CellEventArgs class with 
 /// the specified Cell source, column index and row index
 /// </summary>
 /// <param name="source">The Cell that Raised the event</param>
 /// <param name="editor">The CellEditor used to edit the Cell</param>
 /// <param name="table">The Table that the Cell belongs to</param>
 public CellEditEventArgs(Cell source, ICellEditor editor, Table table)
     : this(source, editor, table, -1, -1, Rectangle.Empty)
 {
 }