/// <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(); }
/// <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.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.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); }
/// <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; }
/// <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(); }
/// <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(); }
//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(); }
private void UnlockTable(XPTable.Models.Table table) { foreach (XPTable.Models.Row row in table.TableModel.Rows) { row.Editable = true; } table.BackColor = Color.White; table.AlternatingRowColor = Color.WhiteSmoke; table.AllowSelection = true; }
private void LockTable(XPTable.Models.Table table) { foreach (XPTable.Models.Row row in table.TableModel.Rows) { row.Editable = false; } table.BackColor = Color.LightGray; table.AlternatingRowColor = Color.LightGray; table.AllowSelection = false; }
/// <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> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { XPTable.Models.DataSourceColumnBinder dataSourceColumnBinder1 = new XPTable.Models.DataSourceColumnBinder(); XPTable.Renderers.DragDropRenderer dragDropRenderer1 = new XPTable.Renderers.DragDropRenderer(); this.table = new XPTable.Models.Table(); this.Debug = new System.Windows.Forms.Button(); ((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.BorderColor = System.Drawing.Color.Black; this.table.DataMember = null; this.table.DataSourceColumnBinder = dataSourceColumnBinder1; dragDropRenderer1.ForeColor = System.Drawing.Color.Red; this.table.DragDropRenderer = dragDropRenderer1; this.table.GridLinesContrainedToData = false; this.table.Location = new System.Drawing.Point(12, 12); this.table.Name = "table"; this.table.Size = new System.Drawing.Size(351, 287); this.table.TabIndex = 0; this.table.Text = "table"; this.table.UnfocusedBorderColor = System.Drawing.Color.Black; // // Debug // this.Debug.Location = new System.Drawing.Point(12, 305); this.Debug.Name = "Debug"; this.Debug.Size = new System.Drawing.Size(75, 23); this.Debug.TabIndex = 1; this.Debug.Text = "Debug"; this.Debug.UseVisualStyleBackColor = true; // // Demo // this.ClientSize = new System.Drawing.Size(375, 340); this.Controls.Add(this.Debug); this.Controls.Add(this.table); this.Name = "Demo"; this.Text = "WordWrap"; this.Load += new System.EventHandler(this.Demo_Load); ((System.ComponentModel.ISupportInitialize)(this.table)).EndInit(); this.ResumeLayout(false); }
/// <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.chkSecondary = new System.Windows.Forms.CheckBox(); ((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.Location = new System.Drawing.Point(12, 35); this.table.Name = "table"; this.table.Size = new System.Drawing.Size(463, 114); this.table.TabIndex = 0; this.table.Text = "table1"; // // chkSecondary // this.chkSecondary.Location = new System.Drawing.Point(12, 12); this.chkSecondary.Name = "chkSecondary"; this.chkSecondary.Size = new System.Drawing.Size(428, 17); this.chkSecondary.TabIndex = 1; this.chkSecondary.Text = "Add secondary sorting columns : Surname, Name, Height (descending)"; this.chkSecondary.CheckedChanged += new System.EventHandler(this.chkSecondary_CheckedChanged); // // Demo // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(487, 161); this.Controls.Add(this.chkSecondary); this.Controls.Add(this.table); this.Name = "Demo"; this.Text = "MultiSort"; this.Load += new System.EventHandler(this.Demo_Load); ((System.ComponentModel.ISupportInitialize)(this.table)).EndInit(); this.ResumeLayout(false); }
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); }
/// <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; }
/// <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; }
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); }
/// <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; }
/// <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> /// 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); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.groupBox1 = new System.Windows.Forms.GroupBox(); this.lvwContractTable = new XPTable.Models.Table(); this.columnModel1 = new XPTable.Models.ColumnModel(); this.clSTT = new XPTable.Models.TextColumn(); this.clContractName = new XPTable.Models.TextColumn(); this.clNote = new XPTable.Models.TextColumn(); this.tableModel1 = new XPTable.Models.TableModel(); this.btnAdd = new System.Windows.Forms.Button(); this.btnEdit = new System.Windows.Forms.Button(); this.btnDelete = new System.Windows.Forms.Button(); this.btnClose = new System.Windows.Forms.Button(); this.groupBox1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.lvwContractTable)).BeginInit(); this.SuspendLayout(); // // groupBox1 // this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.groupBox1.Controls.Add(this.lvwContractTable); this.groupBox1.FlatStyle = System.Windows.Forms.FlatStyle.System; this.groupBox1.Location = new System.Drawing.Point(8, 8); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(592, 416); this.groupBox1.TabIndex = 0; this.groupBox1.TabStop = false; this.groupBox1.Text = "Danh sách các loại hợp đồng"; // // lvwContractTable // //this.lvwContractTable.AllowDrop = true; this.lvwContractTable.AlternatingRowColor = System.Drawing.Color.FromArgb(((System.Byte)(230)), ((System.Byte)(237)), ((System.Byte)(245))); this.lvwContractTable.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.lvwContractTable.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(237)), ((System.Byte)(242)), ((System.Byte)(249))); this.lvwContractTable.ColumnModel = this.columnModel1; this.lvwContractTable.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121))); this.lvwContractTable.FullRowSelect = true; this.lvwContractTable.GridColor = System.Drawing.SystemColors.ControlDark; this.lvwContractTable.GridLines = XPTable.Models.GridLines.Both; this.lvwContractTable.GridLineStyle = XPTable.Models.GridLineStyle.Dot; this.lvwContractTable.HeaderFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.lvwContractTable.Location = new System.Drawing.Point(8, 16); this.lvwContractTable.Name = "lvwContractTable"; this.lvwContractTable.NoItemsText = WorkingContext.LangManager.GetString("XPtable"); this.lvwContractTable.SelectionStyle = XPTable.Models.SelectionStyle.Grid; this.lvwContractTable.Size = new System.Drawing.Size(574, 390); this.lvwContractTable.TabIndex = 0; this.lvwContractTable.TableModel = this.tableModel1; this.lvwContractTable.Text = "table1"; this.lvwContractTable.SelectionChanged += new XPTable.Events.SelectionEventHandler(this.lvwContractTable_SelectionChanged); this.lvwContractTable.MouseDown += new System.Windows.Forms.MouseEventHandler(this.lvwContractTable_MouseDown_1); // // columnModel1 // this.columnModel1.Columns.AddRange(new XPTable.Models.Column[] { this.clSTT, this.clContractName, this.clNote }); // // clSTT // this.clSTT.Editable = false; this.clSTT.Text = "STT"; this.clSTT.Width = 45; // // clContractName // this.clContractName.Editable = false; this.clContractName.Text = "Tên hợp đồng"; this.clContractName.Width = 180; // // clNote // this.clNote.Editable = false; this.clNote.Text = " Ghi chú"; this.clNote.Width = 250; // // btnAdd // this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnAdd.FlatStyle = System.Windows.Forms.FlatStyle.System; this.btnAdd.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.btnAdd.Location = new System.Drawing.Point(285, 434); this.btnAdd.Name = "btnAdd"; this.btnAdd.TabIndex = 2; this.btnAdd.Text = "Thêm"; this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click); // // btnEdit // this.btnEdit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnEdit.FlatStyle = System.Windows.Forms.FlatStyle.System; this.btnEdit.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.btnEdit.Location = new System.Drawing.Point(365, 434); this.btnEdit.Name = "btnEdit"; this.btnEdit.TabIndex = 3; this.btnEdit.Text = "Sửa"; this.btnEdit.Click += new System.EventHandler(this.btnEdit_Click_1); // // btnDelete // this.btnDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnDelete.FlatStyle = System.Windows.Forms.FlatStyle.System; this.btnDelete.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.btnDelete.Location = new System.Drawing.Point(445, 434); this.btnDelete.Name = "btnDelete"; this.btnDelete.TabIndex = 4; this.btnDelete.Text = "Xóa"; this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click); // // btnClose // this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnClose.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnClose.FlatStyle = System.Windows.Forms.FlatStyle.System; this.btnClose.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.btnClose.Location = new System.Drawing.Point(525, 434); this.btnClose.Name = "btnClose"; this.btnClose.TabIndex = 5; this.btnClose.Text = "Đóng"; this.btnClose.Click += new System.EventHandler(this.btnClose_Click); // // frmListContractType // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.CancelButton = this.btnClose; this.ClientSize = new System.Drawing.Size(610, 464); this.Controls.Add(this.btnClose); this.Controls.Add(this.btnDelete); this.Controls.Add(this.btnEdit); this.Controls.Add(this.btnAdd); this.Controls.Add(this.groupBox1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.Name = "frmListContractType"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Thống kê các loại hợp đồng"; this.Load += new System.EventHandler(this.frmListContractType_Load); this.groupBox1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.lvwContractTable)).EndInit(); this.ResumeLayout(false); }
/// <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); }
/// <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); }
public static bool ExportExcel(XPTable.Models.Table table, String Title) { System.Threading.Thread thisThread = System.Threading.Thread.CurrentThread; CultureInfo originalCulture = thisThread.CurrentCulture; thisThread.CurrentCulture = new System.Globalization.CultureInfo("en-US"); //chuyển regional setting sang US do lỗi của Excel try { // Launch Excel and make sure there is an open workbook. Excel.Application excel = new Excel.Application(); ColumnModel columnModel = table.ColumnModel; Workbook book = excel.Workbooks.Add(XlSheetType.xlWorksheet); Worksheet sheet = (Worksheet)book.ActiveSheet; Range rCompanyName = (Range)sheet.Cells[1, "A"]; // di chuyển con trỏ đến hàng 1 cột A Range rTitle = (Range)sheet.Cells[2, "E"]; // di chuyển con trỏ đến hàng 2 cột E rCompanyName.Value2 = "CÔNG TY TNHH ESTELLE VIỆT NAM"; // điền dữ liệu vào cell rCompanyName.Font.Bold = true; rTitle.Value2 = Title; // điền dữ liệu vào cell rTitle.Font.Bold = true; int rowIndex = 4; // Bắt đầu điền dữ liệu từ XPTable vào bảng Excel từ hàng thứ 4 int colIndex = 0; // Fill the worksheet column headings from the dataset. foreach (Column col in columnModel.Columns) { colIndex++; Excel.Range cell = (Excel.Range)excel.Cells[4, colIndex]; cell.NumberFormat = "@"; cell.Value2 = col.Text; cell.ColumnWidth = col.Width / 6; cell.Font.Bold = true; } // Điền dữ liệu từ listview vào file excel for (rowIndex = 0; rowIndex < table.RowCount; rowIndex++) { for (colIndex = 0; colIndex < columnModel.Columns.Count; colIndex++) { if (columnModel.Columns[colIndex] is TextColumn) { Excel.Range cell = (Excel.Range)excel.Cells[rowIndex + 5, colIndex + 1]; cell.NumberFormat = "@"; excel.Cells[rowIndex + 5, colIndex + 1] = table.TableModel.Rows[rowIndex].Cells[colIndex].Text; } else { excel.Cells[rowIndex + 5, colIndex + 1] = table.TableModel.Rows[rowIndex].Cells[colIndex].Data; } } } excel.Visible = true; return(true); // Xuất excel thành công } catch (Exception ex) { MessageBox.Show(ex.ToString()); return(false); // Xuất excel thất bại } finally { thisThread.CurrentCulture = originalCulture; //chuyển lại regional mặc định của máy } }
/// <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); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.clmSysvar = new XPTable.Models.ColumnModel(); this.Sys_name = new XPTable.Models.TextColumn(); this.Descript = new XPTable.Models.TextColumn(); this.Value = new XPTable.Models.TextColumn(); this.tblmSysvar = new XPTable.Models.TableModel(); this.panel1 = new System.Windows.Forms.Panel(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.btnExit = new System.Windows.Forms.Button(); this.btnEdit = new System.Windows.Forms.Button(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.tblSysvar = new XPTable.Models.Table(); this.panel1.SuspendLayout(); this.groupBox2.SuspendLayout(); this.groupBox1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.tblSysvar)).BeginInit(); this.SuspendLayout(); // // clmSysvar // this.clmSysvar.Columns.AddRange(new XPTable.Models.Column[] { this.Sys_name, this.Descript, this.Value }); // // Sys_name // this.Sys_name.Visible = false; this.Sys_name.Width = 16; // // Descript // this.Descript.Editable = false; this.Descript.Text = "Mô tả"; this.Descript.Width = 500; // // Value // this.Value.Editable = false; this.Value.Text = "Giá trị"; this.Value.Width = 500; // // panel1 // this.panel1.Controls.Add(this.groupBox2); this.panel1.Controls.Add(this.groupBox1); this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; this.panel1.Location = new System.Drawing.Point(0, 0); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(824, 614); this.panel1.TabIndex = 0; // // groupBox2 // this.groupBox2.Controls.Add(this.btnExit); this.groupBox2.Controls.Add(this.btnEdit); this.groupBox2.Dock = System.Windows.Forms.DockStyle.Bottom; this.groupBox2.Location = new System.Drawing.Point(0, 558); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new System.Drawing.Size(824, 56); this.groupBox2.TabIndex = 1; this.groupBox2.TabStop = false; // // btnExit // this.btnExit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnExit.FlatStyle = System.Windows.Forms.FlatStyle.System; this.btnExit.Location = new System.Drawing.Point(742, 24); this.btnExit.Name = "btnExit"; this.btnExit.TabIndex = 2; this.btnExit.Text = "Thoát"; this.btnExit.Click += new System.EventHandler(this.btnExit_Click); // // btnEdit // this.btnEdit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnEdit.FlatStyle = System.Windows.Forms.FlatStyle.System; this.btnEdit.Location = new System.Drawing.Point(667, 24); this.btnEdit.Name = "btnEdit"; this.btnEdit.TabIndex = 1; this.btnEdit.Text = "Sửa"; this.btnEdit.Click += new System.EventHandler(this.btnEdit_Click); // // groupBox1 // this.groupBox1.Controls.Add(this.tblSysvar); this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill; this.groupBox1.Location = new System.Drawing.Point(0, 0); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(824, 614); this.groupBox1.TabIndex = 0; this.groupBox1.TabStop = false; this.groupBox1.Text = "Bảng tham số hệ thống"; // // tblSysvar // this.tblSysvar.ColumnModel = this.clmSysvar; this.tblSysvar.Dock = System.Windows.Forms.DockStyle.Fill; this.tblSysvar.FullRowSelect = true; this.tblSysvar.GridLines = XPTable.Models.GridLines.Both; this.tblSysvar.Location = new System.Drawing.Point(3, 16); this.tblSysvar.Name = "tblSysvar"; this.tblSysvar.NoItemsText = "Không có tham số nào trong hệ thống"; this.tblSysvar.SelectionForeColor = System.Drawing.SystemColors.ActiveCaptionText; this.tblSysvar.Size = new System.Drawing.Size(818, 595); this.tblSysvar.TabIndex = 0; this.tblSysvar.TableModel = this.tblmSysvar; this.tblSysvar.Text = "table1"; this.tblSysvar.UnfocusedSelectionForeColor = System.Drawing.SystemColors.Highlight; this.tblSysvar.CellDoubleClick += new XPTable.Events.CellMouseEventHandler(this.tblSysvar_CellDoubleClick); // // frmThamsohethong // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(824, 614); this.Controls.Add(this.panel1); this.Name = "frmThamsohethong"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Đặt tham số hệ thống"; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.Load += new System.EventHandler(this.frmSysvar_Load); this.panel1.ResumeLayout(false); this.groupBox2.ResumeLayout(false); this.groupBox1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.tblSysvar)).EndInit(); this.ResumeLayout(false); }
/// <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); }
/// <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); }
/// <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); }
/// <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) { }
/// <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> /// 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); }
/// <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); }
/// <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); }
/// <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; }
/// <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; }
/// <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> /// 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); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmListPosition)); this.btnDelete = new System.Windows.Forms.Button(); this.btnUpdate = new System.Windows.Forms.Button(); this.btnAddNew = new System.Windows.Forms.Button(); this.btnClose = new System.Windows.Forms.Button(); this.grbPositionList = new System.Windows.Forms.GroupBox(); this.lvwPosition = new XPTable.Models.Table(); this.columnModel1 = new XPTable.Models.ColumnModel(); this.cSTT = new XPTable.Models.TextColumn(); this.cPositionName = new XPTable.Models.TextColumn(); this.cPositionShortName = new XPTable.Models.TextColumn(); this.cDescription = new XPTable.Models.TextColumn(); this.tableModel1 = new XPTable.Models.TableModel(); this.grbPositionList.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.lvwPosition)).BeginInit(); this.SuspendLayout(); // // btnDelete // this.btnDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnDelete.FlatStyle = System.Windows.Forms.FlatStyle.System; this.btnDelete.Location = new System.Drawing.Point(280, 230); this.btnDelete.Name = "btnDelete"; this.btnDelete.Size = new System.Drawing.Size(72, 23); this.btnDelete.TabIndex = 6; this.btnDelete.Text = "&Xóa"; this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click); // // btnUpdate // this.btnUpdate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnUpdate.FlatStyle = System.Windows.Forms.FlatStyle.System; this.btnUpdate.Location = new System.Drawing.Point(200, 230); this.btnUpdate.Name = "btnUpdate"; this.btnUpdate.Size = new System.Drawing.Size(72, 23); this.btnUpdate.TabIndex = 5; this.btnUpdate.Text = "&Sửa"; this.btnUpdate.Click += new System.EventHandler(this.btnUpdate_Click); // // btnAddNew // this.btnAddNew.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnAddNew.FlatStyle = System.Windows.Forms.FlatStyle.System; this.btnAddNew.Location = new System.Drawing.Point(120, 230); this.btnAddNew.Name = "btnAddNew"; this.btnAddNew.Size = new System.Drawing.Size(72, 23); this.btnAddNew.TabIndex = 4; this.btnAddNew.Text = "Thêm &mới"; this.btnAddNew.Click += new System.EventHandler(this.btnAddNew_Click); // // btnClose // this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnClose.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnClose.FlatStyle = System.Windows.Forms.FlatStyle.System; this.btnClose.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.btnClose.Location = new System.Drawing.Point(358, 230); this.btnClose.Name = "btnClose"; this.btnClose.Size = new System.Drawing.Size(72, 23); this.btnClose.TabIndex = 8; this.btnClose.Text = "&Đóng"; this.btnClose.Click += new System.EventHandler(this.btnClose_Click); // // grbPositionList // this.grbPositionList.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.grbPositionList.Controls.Add(this.lvwPosition); this.grbPositionList.FlatStyle = System.Windows.Forms.FlatStyle.System; this.grbPositionList.Location = new System.Drawing.Point(8, 8); this.grbPositionList.Name = "grbPositionList"; this.grbPositionList.Size = new System.Drawing.Size(424, 216); this.grbPositionList.TabIndex = 35; this.grbPositionList.TabStop = false; this.grbPositionList.Text = "Danh sách chức vụ"; // // lvwPosition // this.lvwPosition.AlternatingRowColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(237)))), ((int)(((byte)(245))))); this.lvwPosition.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.lvwPosition.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(242)))), ((int)(((byte)(249))))); this.lvwPosition.ColumnModel = this.columnModel1; this.lvwPosition.EnableToolTips = true; this.lvwPosition.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121))))); this.lvwPosition.FullRowSelect = true; this.lvwPosition.GridColor = System.Drawing.SystemColors.ControlDark; this.lvwPosition.GridLines = XPTable.Models.GridLines.Both; this.lvwPosition.GridLineStyle = XPTable.Models.GridLineStyle.Dot; this.lvwPosition.HeaderFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold); this.lvwPosition.Location = new System.Drawing.Point(8, 16); this.lvwPosition.Name = "lvwPosition"; this.lvwPosition.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(169)))), ((int)(((byte)(183)))), ((int)(((byte)(201))))); this.lvwPosition.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121))))); this.lvwPosition.SelectionStyle = XPTable.Models.SelectionStyle.Grid; this.lvwPosition.Size = new System.Drawing.Size(408, 192); this.lvwPosition.SortedColumnBackColor = System.Drawing.Color.Transparent; this.lvwPosition.TabIndex = 13; this.lvwPosition.TableModel = this.tableModel1; this.lvwPosition.UnfocusedSelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(210)))), ((int)(((byte)(221))))); this.lvwPosition.UnfocusedSelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121))))); this.lvwPosition.CellDoubleClick += new XPTable.Events.CellMouseEventHandler(this.lvwPosition_CellDoubleClick); this.lvwPosition.MouseDown += new System.Windows.Forms.MouseEventHandler(this.lvwPosition_MouseDown); this.lvwPosition.SelectionChanged += new XPTable.Events.SelectionEventHandler(this.lvwPosition_SelectionChanged); // // columnModel1 // this.columnModel1.Columns.AddRange(new XPTable.Models.Column[] { this.cSTT, this.cPositionName, this.cPositionShortName, this.cDescription }); // // cSTT // this.cSTT.Editable = false; this.cSTT.Text = "STT"; this.cSTT.Width = 50; // // cPositionName // this.cPositionName.Editable = false; this.cPositionName.Text = "Tên chức vụ"; this.cPositionName.Width = 120; // // cPositionShortName // this.cPositionShortName.Editable = false; this.cPositionShortName.Text = "Tên viết tắt"; this.cPositionShortName.Width = 80; // // cDescription // this.cDescription.Editable = false; this.cDescription.Text = "Mô tả"; this.cDescription.Width = 150; // // frmListPosition // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.CancelButton = this.btnClose; this.ClientSize = new System.Drawing.Size(438, 260); this.Controls.Add(this.grbPositionList); this.Controls.Add(this.btnDelete); this.Controls.Add(this.btnUpdate); this.Controls.Add(this.btnAddNew); this.Controls.Add(this.btnClose); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "frmListPosition"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Quản lý chức vụ"; this.Load += new System.EventHandler(this.frmPosition_Load); this.grbPositionList.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.lvwPosition)).EndInit(); this.ResumeLayout(false); }
[System.Diagnostics.DebuggerStepThrough()] private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmPP6750)); this.ToolTip1 = new System.Windows.Forms.ToolTip(this.components); this.btnClose = new System.Windows.Forms.Button(); this.btnReceive = new System.Windows.Forms.Button(); this.grbMessage = new System.Windows.Forms.GroupBox(); this.xptMessage = new XPTable.Models.Table(); this.columnModel1 = new XPTable.Models.ColumnModel(); this.cSTT = new XPTable.Models.TextColumn(); this.cDepartment = new XPTable.Models.TextColumn(); this.cCardID = new XPTable.Models.TextColumn(); this.cName = new XPTable.Models.TextColumn(); this.cWorkingDay = new XPTable.Models.TextColumn(); this.cTimeIn = new XPTable.Models.TextColumn(); this.cPic = new XPTable.Models.ImageColumn(); this.tableModel1 = new XPTable.Models.TableModel(); this.btnClear = new System.Windows.Forms.Button(); this.btnConfig = new System.Windows.Forms.Button(); this.btnHelp = new System.Windows.Forms.Button(); this.aTimer = new System.Windows.Forms.Timer(this.components); this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); this.contextMenu1 = new System.Windows.Forms.ContextMenu(); this.mnuShow = new System.Windows.Forms.MenuItem(); this.mnuHide = new System.Windows.Forms.MenuItem(); this.menuItem3 = new System.Windows.Forms.MenuItem(); this.mnuStart = new System.Windows.Forms.MenuItem(); this.mnuStop = new System.Windows.Forms.MenuItem(); this.menuItem6 = new System.Windows.Forms.MenuItem(); this.mnuExit = new System.Windows.Forms.MenuItem(); this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components); this.grbMessage.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.xptMessage)).BeginInit(); this.SuspendLayout(); // // btnClose // resources.ApplyResources(this.btnClose, "btnClose"); this.btnClose.ForeColor = System.Drawing.SystemColors.ControlText; this.btnClose.Name = "btnClose"; this.btnClose.Click += new System.EventHandler(this.btnClose_Click); // // btnReceive // resources.ApplyResources(this.btnReceive, "btnReceive"); this.btnReceive.ForeColor = System.Drawing.SystemColors.ControlText; this.btnReceive.Name = "btnReceive"; this.btnReceive.Click += new System.EventHandler(this.btnReceive_Click); // // grbMessage // resources.ApplyResources(this.grbMessage, "grbMessage"); this.grbMessage.Controls.Add(this.xptMessage); this.grbMessage.FlatStyle = System.Windows.Forms.FlatStyle.System; this.grbMessage.ForeColor = System.Drawing.Color.Black; this.grbMessage.Name = "grbMessage"; this.grbMessage.TabStop = false; // // xptMessage // this.xptMessage.AlternatingRowColor = System.Drawing.Color.Azure; resources.ApplyResources(this.xptMessage, "xptMessage"); this.xptMessage.ColumnModel = this.columnModel1; this.xptMessage.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121))))); this.xptMessage.FullRowSelect = true; this.xptMessage.GridColor = System.Drawing.SystemColors.ControlDark; this.xptMessage.GridLines = XPTable.Models.GridLines.Rows; this.xptMessage.GridLineStyle = XPTable.Models.GridLineStyle.Dash; this.xptMessage.HeaderFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.xptMessage.Name = "xptMessage"; this.xptMessage.TableModel = this.tableModel1; // // columnModel1 // this.columnModel1.Columns.AddRange(new XPTable.Models.Column[] { this.cSTT, this.cDepartment, this.cCardID, this.cName, this.cWorkingDay, this.cTimeIn, this.cPic }); this.columnModel1.HeaderHeight = 30; // // cSTT // this.cSTT.Editable = false; this.cSTT.Text = "STT"; this.cSTT.Width = 40; // // cDepartment // this.cDepartment.Text = "Phòng"; this.cDepartment.Width = 120; // // cCardID // this.cCardID.Editable = false; this.cCardID.Text = "Mã thẻ"; this.cCardID.Width = 50; // // cName // this.cName.Editable = false; this.cName.Text = "Tên nhân viên"; this.cName.Width = 140; // // cWorkingDay // this.cWorkingDay.Alignment = XPTable.Models.ColumnAlignment.Center; this.cWorkingDay.Editable = false; this.cWorkingDay.Text = "Ngày làm việc"; this.cWorkingDay.Width = 95; // // cTimeIn // this.cTimeIn.Alignment = XPTable.Models.ColumnAlignment.Center; this.cTimeIn.Editable = false; this.cTimeIn.Text = "Giờ quẹt thẻ"; this.cTimeIn.Width = 80; // // cPic // this.cPic.Text = "Ảnh"; this.cPic.Width = 70; // // tableModel1 // this.tableModel1.RowHeight = 100; // // btnClear // resources.ApplyResources(this.btnClear, "btnClear"); this.btnClear.ForeColor = System.Drawing.SystemColors.ControlText; this.btnClear.Name = "btnClear"; this.btnClear.Click += new System.EventHandler(this.btnClear_Click); // // btnConfig // resources.ApplyResources(this.btnConfig, "btnConfig"); this.btnConfig.Name = "btnConfig"; this.btnConfig.Click += new System.EventHandler(this.btnConfig_Click); // // btnHelp // resources.ApplyResources(this.btnHelp, "btnHelp"); this.btnHelp.ForeColor = System.Drawing.Color.Black; this.btnHelp.Name = "btnHelp"; this.btnHelp.Click += new System.EventHandler(this.btnHelp_Click); // // aTimer // this.aTimer.Enabled = true; this.aTimer.Interval = 120000; this.aTimer.Tick += new System.EventHandler(this.aTimerUpdate); // // contextMenu1 // this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.mnuShow, this.mnuHide, this.menuItem3, this.mnuStart, this.mnuStop, this.menuItem6, this.mnuExit }); this.contextMenu1.Popup += new System.EventHandler(this.contextMenu1_Popup); // // mnuShow // this.mnuShow.Index = 0; resources.ApplyResources(this.mnuShow, "mnuShow"); this.mnuShow.Click += new System.EventHandler(this.mnuShow_Click); // // mnuHide // this.mnuHide.Index = 1; resources.ApplyResources(this.mnuHide, "mnuHide"); this.mnuHide.Click += new System.EventHandler(this.mnuHide_Click); // // menuItem3 // this.menuItem3.Index = 2; resources.ApplyResources(this.menuItem3, "menuItem3"); // // mnuStart // this.mnuStart.Index = 3; resources.ApplyResources(this.mnuStart, "mnuStart"); this.mnuStart.Click += new System.EventHandler(this.mnuStart_Click); // // mnuStop // this.mnuStop.Index = 4; resources.ApplyResources(this.mnuStop, "mnuStop"); this.mnuStop.Click += new System.EventHandler(this.mnuStop_Click); // // menuItem6 // this.menuItem6.Index = 5; resources.ApplyResources(this.menuItem6, "menuItem6"); // // mnuExit // this.mnuExit.Index = 6; resources.ApplyResources(this.mnuExit, "mnuExit"); this.mnuExit.Click += new System.EventHandler(this.mnuExit_Click); // // notifyIcon1 // this.notifyIcon1.ContextMenu = this.contextMenu1; resources.ApplyResources(this.notifyIcon1, "notifyIcon1"); this.notifyIcon1.DoubleClick += new System.EventHandler(this.notifyIcon1_DoubleClick); // // frmPP6750 // resources.ApplyResources(this, "$this"); this.BackColor = System.Drawing.SystemColors.Control; this.Controls.Add(this.btnHelp); this.Controls.Add(this.btnConfig); this.Controls.Add(this.btnClear); this.Controls.Add(this.grbMessage); this.Controls.Add(this.btnReceive); this.Controls.Add(this.btnClose); this.Cursor = System.Windows.Forms.Cursors.Default; this.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.Name = "frmPP6750"; this.Closing += new System.ComponentModel.CancelEventHandler(this.frmPP6750_Closing); this.Load += new System.EventHandler(this.frmMain_Load); this.Resize += new System.EventHandler(this.frmPP6750_Resize); this.grbMessage.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.xptMessage)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmChangeTimeInOut)); this.btnModify = new System.Windows.Forms.Button(); this.btnDelete = new System.Windows.Forms.Button(); this.btnClose = new System.Windows.Forms.Button(); this.btnHelp = new System.Windows.Forms.Button(); this.btnAdd = new System.Windows.Forms.Button(); this.departmentTreeView = new EVSoft.HRMS.Controls.DepartmentTreeView(); this.lvwTimeInOut = new XPTable.Models.Table(); this.columnModel1 = new XPTable.Models.ColumnModel(); this.cSTT = new XPTable.Models.NumberColumn(); this.chWorkingDay = new XPTable.Models.TextColumn(); this.chTimeIn = new XPTable.Models.TextColumn(); this.chTimeOut = new XPTable.Models.TextColumn(); this.tableModel1 = new XPTable.Models.TableModel(); this.cboEmployee = new MTGCComboBox(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.label1 = new System.Windows.Forms.Label(); this.txtEmployeeName = new System.Windows.Forms.TextBox(); ((System.ComponentModel.ISupportInitialize)(this.lvwTimeInOut)).BeginInit(); this.groupBox1.SuspendLayout(); this.groupBox2.SuspendLayout(); this.SuspendLayout(); // // btnModify // this.btnModify.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnModify.FlatStyle = System.Windows.Forms.FlatStyle.System; this.btnModify.Location = new System.Drawing.Point(288, 344); this.btnModify.Name = "btnModify"; this.btnModify.TabIndex = 5; this.btnModify.Text = "&Sửa"; this.btnModify.Click += new System.EventHandler(this.btnModify_Click); // // btnDelete // this.btnDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnDelete.FlatStyle = System.Windows.Forms.FlatStyle.System; this.btnDelete.Location = new System.Drawing.Point(368, 344); this.btnDelete.Name = "btnDelete"; this.btnDelete.TabIndex = 6; this.btnDelete.Text = "&Xóa"; this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click); // // btnClose // this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnClose.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnClose.FlatStyle = System.Windows.Forms.FlatStyle.System; this.btnClose.Location = new System.Drawing.Point(448, 344); this.btnClose.Name = "btnClose"; this.btnClose.TabIndex = 7; this.btnClose.Text = "&Đóng"; this.btnClose.Click += new System.EventHandler(this.btnClose_Click); // // btnHelp // this.btnHelp.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.btnHelp.FlatStyle = System.Windows.Forms.FlatStyle.System; this.btnHelp.Location = new System.Drawing.Point(8, 344); this.btnHelp.Name = "btnHelp"; this.btnHelp.TabIndex = 9; this.btnHelp.Text = "Trợ giúp"; // // btnAdd // this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnAdd.FlatStyle = System.Windows.Forms.FlatStyle.System; this.btnAdd.Location = new System.Drawing.Point(208, 344); this.btnAdd.Name = "btnAdd"; this.btnAdd.TabIndex = 4; this.btnAdd.Text = "&Thêm"; this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click); // // departmentTreeView // this.departmentTreeView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.departmentTreeView.DepartmentDataSet = null; this.departmentTreeView.Location = new System.Drawing.Point(8, 16); this.departmentTreeView.Name = "departmentTreeView"; this.departmentTreeView.Size = new System.Drawing.Size(176, 300); this.departmentTreeView.TabIndex = 8; this.departmentTreeView.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.departmentTreeView_AfterSelect); // // lvwTimeInOut // this.lvwTimeInOut.AlternatingRowColor = System.Drawing.Color.FromArgb(((System.Byte)(230)), ((System.Byte)(237)), ((System.Byte)(245))); this.lvwTimeInOut.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.lvwTimeInOut.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(237)), ((System.Byte)(242)), ((System.Byte)(249))); this.lvwTimeInOut.ColumnModel = this.columnModel1; this.lvwTimeInOut.EnableToolTips = true; this.lvwTimeInOut.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121))); this.lvwTimeInOut.FullRowSelect = true; this.lvwTimeInOut.GridColor = System.Drawing.SystemColors.ControlDark; this.lvwTimeInOut.GridLines = XPTable.Models.GridLines.Both; this.lvwTimeInOut.GridLineStyle = XPTable.Models.GridLineStyle.Dot; this.lvwTimeInOut.HeaderFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold); this.lvwTimeInOut.Location = new System.Drawing.Point(8, 16); this.lvwTimeInOut.Name = "lvwTimeInOut"; this.lvwTimeInOut.NoItemsText = WorkingContext.LangManager.GetString("XPtable"); this.lvwTimeInOut.SelectionBackColor = System.Drawing.Color.FromArgb(((System.Byte)(169)), ((System.Byte)(183)), ((System.Byte)(201))); this.lvwTimeInOut.SelectionForeColor = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121))); this.lvwTimeInOut.SelectionStyle = XPTable.Models.SelectionStyle.Grid; this.lvwTimeInOut.Size = new System.Drawing.Size(296, 272); this.lvwTimeInOut.SortedColumnBackColor = System.Drawing.Color.Transparent; this.lvwTimeInOut.TabIndex = 3; this.lvwTimeInOut.TableModel = this.tableModel1; this.lvwTimeInOut.UnfocusedSelectionBackColor = System.Drawing.Color.FromArgb(((System.Byte)(201)), ((System.Byte)(210)), ((System.Byte)(221))); this.lvwTimeInOut.UnfocusedSelectionForeColor = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121))); this.lvwTimeInOut.SelectionChanged += new XPTable.Events.SelectionEventHandler(this.lvwTimeInOut_SelectionChanged); this.lvwTimeInOut.MouseDown += new System.Windows.Forms.MouseEventHandler(this.lvwTimeInOut_MouseDown); // // columnModel1 // this.columnModel1.Columns.AddRange(new XPTable.Models.Column[] { this.cSTT, this.chWorkingDay, this.chTimeIn, this.chTimeOut }); // // cSTT // this.cSTT.Editable = false; this.cSTT.Text = "STT"; this.cSTT.Width = 35; // // chWorkingDay // this.chWorkingDay.Editable = false; this.chWorkingDay.Text = "Ngày làm việc"; this.chWorkingDay.Width = 100; // // chTimeIn // this.chTimeIn.Editable = false; this.chTimeIn.Text = "Giờ vào"; this.chTimeIn.Width = 70; // // chTimeOut // this.chTimeOut.Editable = false; this.chTimeOut.Text = "Giờ ra"; // // cboEmployee // this.cboEmployee.BorderStyle = MTGCComboBox.TipiBordi.Fixed3D; this.cboEmployee.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal; this.cboEmployee.ColumnNum = 3; this.cboEmployee.ColumnWidth = "0;45;115"; this.cboEmployee.DisplayMember = "Text"; this.cboEmployee.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; this.cboEmployee.DropDownBackColor = System.Drawing.Color.FromArgb(((System.Byte)(193)), ((System.Byte)(210)), ((System.Byte)(238))); this.cboEmployee.DropDownForeColor = System.Drawing.Color.Black; this.cboEmployee.DropDownStyle = MTGCComboBox.CustomDropDownStyle.DropDownList; this.cboEmployee.DropDownWidth = 180; this.cboEmployee.GridLineColor = System.Drawing.Color.LightGray; this.cboEmployee.GridLineHorizontal = true; this.cboEmployee.GridLineVertical = true; this.cboEmployee.LoadingType = MTGCComboBox.CaricamentoCombo.ComboBoxItem; this.cboEmployee.Location = new System.Drawing.Point(272, 8); this.cboEmployee.ManagingFastMouseMoving = true; this.cboEmployee.ManagingFastMouseMovingInterval = 30; this.cboEmployee.Name = "cboEmployee"; this.cboEmployee.Size = new System.Drawing.Size(64, 21); this.cboEmployee.TabIndex = 1; this.cboEmployee.SelectedIndexChanged += new System.EventHandler(this.cboEmployee_SelectedIndexChanged); // // groupBox1 // this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); this.groupBox1.Controls.Add(this.departmentTreeView); this.groupBox1.Location = new System.Drawing.Point(8, 8); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(192, 328); this.groupBox1.TabIndex = 100; this.groupBox1.TabStop = false; this.groupBox1.Text = "Danh sách phòng ban"; // // groupBox2 // this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.groupBox2.Controls.Add(this.lvwTimeInOut); this.groupBox2.FlatStyle = System.Windows.Forms.FlatStyle.System; this.groupBox2.Location = new System.Drawing.Point(208, 40); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new System.Drawing.Size(312, 296); this.groupBox2.TabIndex = 101; this.groupBox2.TabStop = false; this.groupBox2.Text = "Thông tin vào ra"; // // label1 // this.label1.Location = new System.Drawing.Point(208, 8); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(64, 23); this.label1.TabIndex = 102; this.label1.Text = "Nhân viên"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // txtEmployeeName // this.txtEmployeeName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.txtEmployeeName.Location = new System.Drawing.Point(336, 8); this.txtEmployeeName.Name = "txtEmployeeName"; this.txtEmployeeName.ReadOnly = true; this.txtEmployeeName.Size = new System.Drawing.Size(184, 20); this.txtEmployeeName.TabIndex = 2; this.txtEmployeeName.Text = ""; // // frmChangeTimeInOut // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.CancelButton = this.btnClose; this.ClientSize = new System.Drawing.Size(530, 376); this.Controls.Add(this.txtEmployeeName); this.Controls.Add(this.label1); this.Controls.Add(this.groupBox2); this.Controls.Add(this.groupBox1); this.Controls.Add(this.btnAdd); this.Controls.Add(this.btnHelp); this.Controls.Add(this.btnClose); this.Controls.Add(this.btnDelete); this.Controls.Add(this.btnModify); this.Controls.Add(this.cboEmployee); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; this.Name = "frmChangeTimeInOut"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Quản lý thời gian vào ra"; this.Load += new System.EventHandler(this.frmChangeTimeInOut_Load); ((System.ComponentModel.ISupportInitialize)(this.lvwTimeInOut)).EndInit(); this.groupBox1.ResumeLayout(false); this.groupBox2.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// 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); }
/// <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); }
/// <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; }
//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> /// Initialise default settings /// </summary> private void Init() { this.rows = null; this.selection = new Selection(this); this.table = null; this.rowHeight = TableModel.DefaultRowHeight; }
//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); }