This commit is contained in:
chi
2020-09-07 17:57:16 +09:00
parent cfd9867e0c
commit 1b325a325a
9 changed files with 904 additions and 478 deletions

View File

@@ -30,15 +30,9 @@
{ {
this.components = new System.ComponentModel.Container(); this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(WorkTable)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(WorkTable));
FarPoint.Win.Spread.CellType.DateTimeCellType dateTimeCellType2 = new FarPoint.Win.Spread.CellType.DateTimeCellType(); System.Globalization.CultureInfo cultureInfo = new System.Globalization.CultureInfo("ko-KR", false);
FarPoint.Win.Spread.CellType.TextCellType textCellType5 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.NumberCellType numberCellType2 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType6 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.NoPrinterPrintInfo noPrinterPrintInfo2 = new FarPoint.Win.Spread.NoPrinterPrintInfo();
FarPoint.Win.Spread.CellType.TextCellType textCellType7 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType5 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType6 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType8 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType7 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType8 = new FarPoint.Win.Spread.CellType.NumberCellType();
this.bn = new System.Windows.Forms.BindingNavigator(this.components); this.bn = new System.Windows.Forms.BindingNavigator(this.components);
this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel(); this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel();
this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton(); this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton();
@@ -55,29 +49,21 @@
this.sbGen = new System.Windows.Forms.ToolStripLabel(); this.sbGen = new System.Windows.Forms.ToolStripLabel();
this.toolStripLabel8 = new System.Windows.Forms.ToolStripLabel(); this.toolStripLabel8 = new System.Windows.Forms.ToolStripLabel();
this.sbJan = new System.Windows.Forms.ToolStripLabel(); this.sbJan = new System.Windows.Forms.ToolStripLabel();
this.dsMSSQL = new FBS0000.dsMSSQL();
this.cm1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.sendToMailToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator();
this.autoResizeComlumnsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStrip1 = new System.Windows.Forms.ToolStrip(); this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel(); this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel();
this.tbSD = new System.Windows.Forms.ToolStripTextBox(); this.tbSD = new System.Windows.Forms.ToolStripTextBox();
this.toolStripLabel2 = new System.Windows.Forms.ToolStripLabel(); this.toolStripLabel2 = new System.Windows.Forms.ToolStripLabel();
this.tbED = new System.Windows.Forms.ToolStripTextBox(); this.tbED = new System.Windows.Forms.ToolStripTextBox();
this.toolStripLabel3 = new System.Windows.Forms.ToolStripLabel();
this.tbGrp = new System.Windows.Forms.ToolStripTextBox();
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton(); this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
this.fpSpread1 = new FarPoint.Win.Spread.FpSpread(); this.fpSpread1 = new FarPoint.Win.Spread.FpSpread();
this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView(); this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
this.bs = new System.Windows.Forms.BindingSource(this.components);
this.ta = new FBS0000.dsMSSQLTableAdapters.HolydayTableAdapter();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
this.bn.SuspendLayout(); this.bn.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit();
this.cm1.SuspendLayout();
this.toolStrip1.SuspendLayout(); this.toolStrip1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
// bn // bn
@@ -103,14 +89,14 @@
this.sbGen, this.sbGen,
this.toolStripLabel8, this.toolStripLabel8,
this.sbJan}); this.sbJan});
this.bn.Location = new System.Drawing.Point(0, 531); this.bn.Location = new System.Drawing.Point(0, 759);
this.bn.MoveFirstItem = this.bindingNavigatorMoveFirstItem; this.bn.MoveFirstItem = this.bindingNavigatorMoveFirstItem;
this.bn.MoveLastItem = this.bindingNavigatorMoveLastItem; this.bn.MoveLastItem = this.bindingNavigatorMoveLastItem;
this.bn.MoveNextItem = this.bindingNavigatorMoveNextItem; this.bn.MoveNextItem = this.bindingNavigatorMoveNextItem;
this.bn.MovePreviousItem = this.bindingNavigatorMovePreviousItem; this.bn.MovePreviousItem = this.bindingNavigatorMovePreviousItem;
this.bn.Name = "bn"; this.bn.Name = "bn";
this.bn.PositionItem = this.bindingNavigatorPositionItem; this.bn.PositionItem = this.bindingNavigatorPositionItem;
this.bn.Size = new System.Drawing.Size(984, 27); this.bn.Size = new System.Drawing.Size(948, 27);
this.bn.TabIndex = 0; this.bn.TabIndex = 0;
this.bn.Text = "bindingNavigator1"; this.bn.Text = "bindingNavigator1";
// //
@@ -221,39 +207,6 @@
this.sbJan.Size = new System.Drawing.Size(19, 24); this.sbJan.Size = new System.Drawing.Size(19, 24);
this.sbJan.Text = "0"; this.sbJan.Text = "0";
// //
// dsMSSQL
//
this.dsMSSQL.DataSetName = "dsMSSQL";
this.dsMSSQL.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
//
// cm1
//
this.cm1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.sendToMailToolStripMenuItem,
this.toolStripMenuItem1,
this.autoResizeComlumnsToolStripMenuItem});
this.cm1.Name = "contextMenuStrip1";
this.cm1.Size = new System.Drawing.Size(201, 54);
//
// sendToMailToolStripMenuItem
//
this.sendToMailToolStripMenuItem.Name = "sendToMailToolStripMenuItem";
this.sendToMailToolStripMenuItem.Size = new System.Drawing.Size(200, 22);
this.sendToMailToolStripMenuItem.Text = "Mail (Preview)";
this.sendToMailToolStripMenuItem.Click += new System.EventHandler(this.sendToMailToolStripMenuItem_Click);
//
// toolStripMenuItem1
//
this.toolStripMenuItem1.Name = "toolStripMenuItem1";
this.toolStripMenuItem1.Size = new System.Drawing.Size(197, 6);
//
// autoResizeComlumnsToolStripMenuItem
//
this.autoResizeComlumnsToolStripMenuItem.Name = "autoResizeComlumnsToolStripMenuItem";
this.autoResizeComlumnsToolStripMenuItem.Size = new System.Drawing.Size(200, 22);
this.autoResizeComlumnsToolStripMenuItem.Text = "Auto Resize Comlumns";
this.autoResizeComlumnsToolStripMenuItem.Click += new System.EventHandler(this.autoResizeComlumnsToolStripMenuItem_Click);
//
// toolStrip1 // toolStrip1
// //
this.toolStrip1.ImageScalingSize = new System.Drawing.Size(24, 24); this.toolStrip1.ImageScalingSize = new System.Drawing.Size(24, 24);
@@ -262,10 +215,12 @@
this.tbSD, this.tbSD,
this.toolStripLabel2, this.toolStripLabel2,
this.tbED, this.tbED,
this.toolStripLabel3,
this.tbGrp,
this.toolStripButton1}); this.toolStripButton1});
this.toolStrip1.Location = new System.Drawing.Point(0, 0); this.toolStrip1.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.Name = "toolStrip1"; this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(984, 31); this.toolStrip1.Size = new System.Drawing.Size(948, 31);
this.toolStrip1.TabIndex = 3; this.toolStrip1.TabIndex = 3;
this.toolStrip1.Text = "toolStrip1"; this.toolStrip1.Text = "toolStrip1";
// //
@@ -297,6 +252,17 @@
this.tbED.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.tbED.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.tbED.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tbSD_KeyDown); this.tbED.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tbSD_KeyDown);
// //
// toolStripLabel3
//
this.toolStripLabel3.Name = "toolStripLabel3";
this.toolStripLabel3.Size = new System.Drawing.Size(31, 28);
this.toolStripLabel3.Text = "그룹";
//
// tbGrp
//
this.tbGrp.Name = "tbGrp";
this.tbGrp.Size = new System.Drawing.Size(200, 31);
//
// toolStripButton1 // toolStripButton1
// //
this.toolStripButton1.Image = global::FBS0000.Properties.Resources.action_refresh; this.toolStripButton1.Image = global::FBS0000.Properties.Resources.action_refresh;
@@ -308,14 +274,16 @@
// //
// fpSpread1 // fpSpread1
// //
this.fpSpread1.AccessibleDescription = ""; this.fpSpread1.AccessibleDescription = "fpSpread1, Sheet1, Row 0, Column 0, ";
this.fpSpread1.Dock = System.Windows.Forms.DockStyle.Fill; this.fpSpread1.Dock = System.Windows.Forms.DockStyle.Fill;
this.fpSpread1.Location = new System.Drawing.Point(0, 31); this.fpSpread1.Location = new System.Drawing.Point(0, 31);
this.fpSpread1.Name = "fpSpread1"; this.fpSpread1.Name = "fpSpread1";
this.fpSpread1.Sheets.AddRange(new FarPoint.Win.Spread.SheetView[] { this.fpSpread1.Sheets.AddRange(new FarPoint.Win.Spread.SheetView[] {
this.fpSpread1_Sheet1}); this.fpSpread1_Sheet1});
this.fpSpread1.Size = new System.Drawing.Size(984, 500); this.fpSpread1.Size = new System.Drawing.Size(948, 728);
this.fpSpread1.TabIndex = 4; this.fpSpread1.TabIndex = 4;
this.fpSpread1.SetViewportLeftColumn(0, 0, 4);
this.fpSpread1.SetActiveViewport(0, 0, -1);
// //
// fpSpread1_Sheet1 // fpSpread1_Sheet1
// //
@@ -323,97 +291,254 @@
this.fpSpread1_Sheet1.SheetName = "Sheet1"; this.fpSpread1_Sheet1.SheetName = "Sheet1";
// Formulas and custom names must be loaded with R1C1 reference style // Formulas and custom names must be loaded with R1C1 reference style
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.R1C1; this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.R1C1;
this.fpSpread1_Sheet1.ColumnCount = 9; this.fpSpread1_Sheet1.ColumnCount = 38;
this.fpSpread1_Sheet1.ActiveColumnIndex = -1; this.fpSpread1_Sheet1.RowCount = 1;
this.fpSpread1_Sheet1.ActiveRowIndex = -1; this.fpSpread1_Sheet1.Cells.Get(0, 4).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.AutoGenerateColumns = false; this.fpSpread1_Sheet1.Cells.Get(0, 4).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 0).Value = "일자"; this.fpSpread1_Sheet1.Cells.Get(0, 5).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 1).Value = "요일"; this.fpSpread1_Sheet1.Cells.Get(0, 5).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 2).Value = "사번"; this.fpSpread1_Sheet1.Cells.Get(0, 6).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 6).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 7).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 8).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 9).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 9).ParseFormatInfo = ((System.Globalization.NumberFormatInfo)(cultureInfo.NumberFormat.Clone()));
((System.Globalization.NumberFormatInfo)(this.fpSpread1_Sheet1.Cells.Get(0, 9).ParseFormatInfo)).NumberDecimalDigits = 0;
((System.Globalization.NumberFormatInfo)(this.fpSpread1_Sheet1.Cells.Get(0, 9).ParseFormatInfo)).NumberGroupSizes = new int[] {
0};
this.fpSpread1_Sheet1.Cells.Get(0, 9).ParseFormatString = "n";
this.fpSpread1_Sheet1.Cells.Get(0, 9).Value = 6;
this.fpSpread1_Sheet1.Cells.Get(0, 9).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 10).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 10).ParseFormatInfo = ((System.Globalization.NumberFormatInfo)(cultureInfo.NumberFormat.Clone()));
((System.Globalization.NumberFormatInfo)(this.fpSpread1_Sheet1.Cells.Get(0, 10).ParseFormatInfo)).NumberDecimalDigits = 0;
((System.Globalization.NumberFormatInfo)(this.fpSpread1_Sheet1.Cells.Get(0, 10).ParseFormatInfo)).NumberGroupSizes = new int[] {
0};
this.fpSpread1_Sheet1.Cells.Get(0, 10).ParseFormatString = "n";
this.fpSpread1_Sheet1.Cells.Get(0, 10).Value = 7;
this.fpSpread1_Sheet1.Cells.Get(0, 10).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 11).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 11).ParseFormatInfo = ((System.Globalization.NumberFormatInfo)(cultureInfo.NumberFormat.Clone()));
((System.Globalization.NumberFormatInfo)(this.fpSpread1_Sheet1.Cells.Get(0, 11).ParseFormatInfo)).NumberDecimalDigits = 0;
((System.Globalization.NumberFormatInfo)(this.fpSpread1_Sheet1.Cells.Get(0, 11).ParseFormatInfo)).NumberGroupSizes = new int[] {
0};
this.fpSpread1_Sheet1.Cells.Get(0, 11).ParseFormatString = "n";
this.fpSpread1_Sheet1.Cells.Get(0, 11).Value = 8;
this.fpSpread1_Sheet1.Cells.Get(0, 11).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 12).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 12).ParseFormatInfo = ((System.Globalization.NumberFormatInfo)(cultureInfo.NumberFormat.Clone()));
((System.Globalization.NumberFormatInfo)(this.fpSpread1_Sheet1.Cells.Get(0, 12).ParseFormatInfo)).NumberDecimalDigits = 0;
((System.Globalization.NumberFormatInfo)(this.fpSpread1_Sheet1.Cells.Get(0, 12).ParseFormatInfo)).NumberGroupSizes = new int[] {
0};
this.fpSpread1_Sheet1.Cells.Get(0, 12).ParseFormatString = "n";
this.fpSpread1_Sheet1.Cells.Get(0, 12).Value = 9;
this.fpSpread1_Sheet1.Cells.Get(0, 12).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 13).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 13).ParseFormatInfo = ((System.Globalization.NumberFormatInfo)(cultureInfo.NumberFormat.Clone()));
((System.Globalization.NumberFormatInfo)(this.fpSpread1_Sheet1.Cells.Get(0, 13).ParseFormatInfo)).NumberDecimalDigits = 0;
((System.Globalization.NumberFormatInfo)(this.fpSpread1_Sheet1.Cells.Get(0, 13).ParseFormatInfo)).NumberGroupSizes = new int[] {
0};
this.fpSpread1_Sheet1.Cells.Get(0, 13).ParseFormatString = "n";
this.fpSpread1_Sheet1.Cells.Get(0, 13).Value = 10;
this.fpSpread1_Sheet1.Cells.Get(0, 13).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 14).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 14).ParseFormatInfo = ((System.Globalization.NumberFormatInfo)(cultureInfo.NumberFormat.Clone()));
((System.Globalization.NumberFormatInfo)(this.fpSpread1_Sheet1.Cells.Get(0, 14).ParseFormatInfo)).NumberDecimalDigits = 0;
((System.Globalization.NumberFormatInfo)(this.fpSpread1_Sheet1.Cells.Get(0, 14).ParseFormatInfo)).NumberGroupSizes = new int[] {
0};
this.fpSpread1_Sheet1.Cells.Get(0, 14).ParseFormatString = "n";
this.fpSpread1_Sheet1.Cells.Get(0, 14).Value = 11;
this.fpSpread1_Sheet1.Cells.Get(0, 14).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 15).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 15).ParseFormatInfo = ((System.Globalization.NumberFormatInfo)(cultureInfo.NumberFormat.Clone()));
((System.Globalization.NumberFormatInfo)(this.fpSpread1_Sheet1.Cells.Get(0, 15).ParseFormatInfo)).NumberDecimalDigits = 0;
((System.Globalization.NumberFormatInfo)(this.fpSpread1_Sheet1.Cells.Get(0, 15).ParseFormatInfo)).NumberGroupSizes = new int[] {
0};
this.fpSpread1_Sheet1.Cells.Get(0, 15).ParseFormatString = "n";
this.fpSpread1_Sheet1.Cells.Get(0, 15).Value = 12;
this.fpSpread1_Sheet1.Cells.Get(0, 15).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 16).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 16).ParseFormatInfo = ((System.Globalization.NumberFormatInfo)(cultureInfo.NumberFormat.Clone()));
((System.Globalization.NumberFormatInfo)(this.fpSpread1_Sheet1.Cells.Get(0, 16).ParseFormatInfo)).NumberDecimalDigits = 0;
((System.Globalization.NumberFormatInfo)(this.fpSpread1_Sheet1.Cells.Get(0, 16).ParseFormatInfo)).NumberGroupSizes = new int[] {
0};
this.fpSpread1_Sheet1.Cells.Get(0, 16).ParseFormatString = "n";
this.fpSpread1_Sheet1.Cells.Get(0, 16).Value = 13;
this.fpSpread1_Sheet1.Cells.Get(0, 16).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 17).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 17).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 18).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 18).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 19).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 19).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 20).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 20).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 21).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 21).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 22).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 22).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 23).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 23).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 24).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 24).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 25).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 25).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 26).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 26).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 27).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 27).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 28).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 28).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 29).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 29).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 30).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 30).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 31).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 31).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 32).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 32).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 33).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 33).ParseFormatInfo = ((System.Globalization.NumberFormatInfo)(cultureInfo.NumberFormat.Clone()));
((System.Globalization.NumberFormatInfo)(this.fpSpread1_Sheet1.Cells.Get(0, 33).ParseFormatInfo)).NumberDecimalDigits = 0;
((System.Globalization.NumberFormatInfo)(this.fpSpread1_Sheet1.Cells.Get(0, 33).ParseFormatInfo)).NumberGroupSizes = new int[] {
0};
this.fpSpread1_Sheet1.Cells.Get(0, 33).ParseFormatString = "n";
this.fpSpread1_Sheet1.Cells.Get(0, 33).Value = 30;
this.fpSpread1_Sheet1.Cells.Get(0, 33).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 34).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 34).ParseFormatInfo = ((System.Globalization.NumberFormatInfo)(cultureInfo.NumberFormat.Clone()));
((System.Globalization.NumberFormatInfo)(this.fpSpread1_Sheet1.Cells.Get(0, 34).ParseFormatInfo)).NumberDecimalDigits = 0;
((System.Globalization.NumberFormatInfo)(this.fpSpread1_Sheet1.Cells.Get(0, 34).ParseFormatInfo)).NumberGroupSizes = new int[] {
0};
this.fpSpread1_Sheet1.Cells.Get(0, 34).ParseFormatString = "n";
this.fpSpread1_Sheet1.Cells.Get(0, 34).Value = 31;
this.fpSpread1_Sheet1.Cells.Get(0, 34).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 35).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
numberCellType2.DecimalPlaces = 0;
numberCellType2.MaximumValue = 10000000D;
numberCellType2.MinimumValue = -10000000D;
numberCellType2.NegativeRed = true;
this.fpSpread1_Sheet1.Cells.Get(0, 35).CellType = numberCellType2;
this.fpSpread1_Sheet1.Cells.Get(0, 35).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 35).Value = "발생연차";
this.fpSpread1_Sheet1.Cells.Get(0, 35).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 36).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
this.fpSpread1_Sheet1.Cells.Get(0, 36).CellType = numberCellType2;
this.fpSpread1_Sheet1.Cells.Get(0, 36).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 36).Value = "사용휴가";
this.fpSpread1_Sheet1.Cells.Get(0, 36).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 37).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
this.fpSpread1_Sheet1.Cells.Get(0, 37).CellType = numberCellType2;
this.fpSpread1_Sheet1.Cells.Get(0, 37).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Cells.Get(0, 37).Value = "잔여휴가";
this.fpSpread1_Sheet1.Cells.Get(0, 37).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 0).Value = "번호";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 1).Value = "사번";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 2).Value = "직급";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 3).Value = "성명"; this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 3).Value = "성명";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 4).Value = "사용(일)"; this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 4).Value = "01";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 5).Value = "사용(H)"; this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 5).Value = "02";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 6).Value = "내용"; this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 6).Value = "03";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 7).Value = "발생(일)"; this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 7).Value = "04";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 8).Value = "발생(H)"; this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 8).Value = "05";
this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 31F; this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 35).Value = "발생년차";
dateTimeCellType2.Calendar = new System.Globalization.GregorianCalendar(System.Globalization.GregorianCalendarTypes.Localized); this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 36).Value = "사용휴가";
dateTimeCellType2.CalendarSurroundingDaysColor = System.Drawing.SystemColors.GrayText; this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 37).Value = "잔여휴가";
dateTimeCellType2.MaximumTime = System.TimeSpan.Parse("23:59:59.9999999"); this.fpSpread1_Sheet1.Columns.Get(0).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
dateTimeCellType2.TimeDefault = new System.DateTime(2020, 9, 3, 10, 46, 20, 866); this.fpSpread1_Sheet1.Columns.Get(0).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(0).CellType = dateTimeCellType2; this.fpSpread1_Sheet1.Columns.Get(0).Label = "번호";
this.fpSpread1_Sheet1.Columns.Get(0).DataField = "sdate"; this.fpSpread1_Sheet1.Columns.Get(0).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(0).Label = "일자"; this.fpSpread1_Sheet1.Columns.Get(0).Width = 69F;
this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType5; this.fpSpread1_Sheet1.Columns.Get(1).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.fpSpread1_Sheet1.Columns.Get(1).Formula = "CHOOSE(WEEKDAY(RC[-1]),\"일\",\"월\",\"화\",\"수\",\"목\",\"금\",\"토\")";
this.fpSpread1_Sheet1.Columns.Get(1).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(1).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(1).Label = "요일"; this.fpSpread1_Sheet1.Columns.Get(1).Label = "사번";
this.fpSpread1_Sheet1.Columns.Get(1).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(1).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(1).Width = 69F;
this.fpSpread1_Sheet1.Columns.Get(2).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.fpSpread1_Sheet1.Columns.Get(2).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType6;
this.fpSpread1_Sheet1.Columns.Get(2).DataField = "uid";
this.fpSpread1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(2).Label = "사번"; this.fpSpread1_Sheet1.Columns.Get(2).Label = "직급";
this.fpSpread1_Sheet1.Columns.Get(2).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(2).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(2).Width = 69F;
this.fpSpread1_Sheet1.Columns.Get(3).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.fpSpread1_Sheet1.Columns.Get(3).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType7;
this.fpSpread1_Sheet1.Columns.Get(3).DataField = "UserName";
this.fpSpread1_Sheet1.Columns.Get(3).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(3).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(3).Label = "성명"; this.fpSpread1_Sheet1.Columns.Get(3).Label = "성명";
this.fpSpread1_Sheet1.Columns.Get(3).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(3).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(4).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192))))); this.fpSpread1_Sheet1.Columns.Get(3).Width = 69F;
numberCellType5.MaximumValue = 999999999999999D; this.fpSpread1_Sheet1.Columns.Get(4).Label = "01";
numberCellType5.MinimumValue = -999999999999999D; this.fpSpread1_Sheet1.Columns.Get(4).Width = 35F;
this.fpSpread1_Sheet1.Columns.Get(4).CellType = numberCellType5; this.fpSpread1_Sheet1.Columns.Get(5).Label = "02";
this.fpSpread1_Sheet1.Columns.Get(4).DataField = "term"; this.fpSpread1_Sheet1.Columns.Get(5).Width = 35F;
this.fpSpread1_Sheet1.Columns.Get(4).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(6).Label = "03";
this.fpSpread1_Sheet1.Columns.Get(4).Label = "사용(일)"; this.fpSpread1_Sheet1.Columns.Get(6).Width = 35F;
this.fpSpread1_Sheet1.Columns.Get(4).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(7).Label = "04";
this.fpSpread1_Sheet1.Columns.Get(5).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192))))); this.fpSpread1_Sheet1.Columns.Get(7).Width = 35F;
numberCellType6.MaximumValue = 999999999999999D; this.fpSpread1_Sheet1.Columns.Get(8).Label = "05";
numberCellType6.MinimumValue = -999999999999999D; this.fpSpread1_Sheet1.Columns.Get(8).Width = 35F;
this.fpSpread1_Sheet1.Columns.Get(5).CellType = numberCellType6; this.fpSpread1_Sheet1.Columns.Get(9).Width = 35F;
this.fpSpread1_Sheet1.Columns.Get(5).DataField = "CrTime"; this.fpSpread1_Sheet1.Columns.Get(10).Width = 35F;
this.fpSpread1_Sheet1.Columns.Get(5).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(11).Width = 35F;
this.fpSpread1_Sheet1.Columns.Get(5).Label = "사용(H)"; this.fpSpread1_Sheet1.Columns.Get(12).Width = 35F;
this.fpSpread1_Sheet1.Columns.Get(5).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(13).Width = 35F;
this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType8; this.fpSpread1_Sheet1.Columns.Get(14).Width = 35F;
this.fpSpread1_Sheet1.Columns.Get(6).DataField = "contents"; this.fpSpread1_Sheet1.Columns.Get(15).Width = 35F;
this.fpSpread1_Sheet1.Columns.Get(6).Label = "내용"; this.fpSpread1_Sheet1.Columns.Get(16).Width = 35F;
this.fpSpread1_Sheet1.Columns.Get(7).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.fpSpread1_Sheet1.Columns.Get(17).Width = 35F;
numberCellType7.MaximumValue = 999999999999999D; this.fpSpread1_Sheet1.Columns.Get(18).Width = 35F;
numberCellType7.MinimumValue = -999999999999999D; this.fpSpread1_Sheet1.Columns.Get(19).Width = 35F;
this.fpSpread1_Sheet1.Columns.Get(7).CellType = numberCellType7; this.fpSpread1_Sheet1.Columns.Get(20).Width = 35F;
this.fpSpread1_Sheet1.Columns.Get(7).DataField = "termDr"; this.fpSpread1_Sheet1.Columns.Get(21).Width = 35F;
this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(22).Width = 35F;
this.fpSpread1_Sheet1.Columns.Get(7).Label = "발생(일)"; this.fpSpread1_Sheet1.Columns.Get(23).Width = 35F;
this.fpSpread1_Sheet1.Columns.Get(7).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(24).Width = 35F;
this.fpSpread1_Sheet1.Columns.Get(8).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.fpSpread1_Sheet1.Columns.Get(25).Width = 35F;
numberCellType8.MaximumValue = 999999999999999D; this.fpSpread1_Sheet1.Columns.Get(26).Width = 35F;
numberCellType8.MinimumValue = -999999999999999D; this.fpSpread1_Sheet1.Columns.Get(27).Width = 35F;
this.fpSpread1_Sheet1.Columns.Get(8).CellType = numberCellType8; this.fpSpread1_Sheet1.Columns.Get(28).Width = 35F;
this.fpSpread1_Sheet1.Columns.Get(8).DataField = "DrTime"; this.fpSpread1_Sheet1.Columns.Get(29).Width = 35F;
this.fpSpread1_Sheet1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(30).Width = 35F;
this.fpSpread1_Sheet1.Columns.Get(8).Label = "발생(H)"; this.fpSpread1_Sheet1.Columns.Get(31).Width = 35F;
this.fpSpread1_Sheet1.Columns.Get(8).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(32).Width = 35F;
this.fpSpread1_Sheet1.DataSource = this.bs; this.fpSpread1_Sheet1.Columns.Get(33).Width = 35F;
this.fpSpread1_Sheet1.Columns.Get(34).Width = 35F;
this.fpSpread1_Sheet1.Columns.Get(35).Label = "발생년차";
this.fpSpread1_Sheet1.Columns.Get(35).Width = 54F;
this.fpSpread1_Sheet1.Columns.Get(36).Label = "사용휴가";
this.fpSpread1_Sheet1.Columns.Get(36).Width = 54F;
this.fpSpread1_Sheet1.Columns.Get(37).Label = "잔여휴가";
this.fpSpread1_Sheet1.Columns.Get(37).Width = 54F;
this.fpSpread1_Sheet1.FrozenColumnCount = 4;
this.fpSpread1_Sheet1.PrintInfo.ColEnd = 37;
this.fpSpread1_Sheet1.PrintInfo.ColStart = 0;
this.fpSpread1_Sheet1.PrintInfo.Footer = "";
this.fpSpread1_Sheet1.PrintInfo.Header = "";
this.fpSpread1_Sheet1.PrintInfo.JobName = "";
this.fpSpread1_Sheet1.PrintInfo.Margin.Bottom = 75;
this.fpSpread1_Sheet1.PrintInfo.Margin.Footer = 30;
this.fpSpread1_Sheet1.PrintInfo.Margin.Header = 30;
this.fpSpread1_Sheet1.PrintInfo.Margin.Left = 25;
this.fpSpread1_Sheet1.PrintInfo.Margin.Right = 25;
this.fpSpread1_Sheet1.PrintInfo.Margin.Top = 75;
noPrinterPrintInfo2.Bounds = new System.Drawing.Rectangle(0, 0, 816, 1148);
noPrinterPrintInfo2.HardMarginX = 0F;
noPrinterPrintInfo2.HardMarginY = 0F;
noPrinterPrintInfo2.SupportColor = true;
this.fpSpread1_Sheet1.PrintInfo.NoPrinterSetting = noPrinterPrintInfo2;
this.fpSpread1_Sheet1.PrintInfo.Orientation = FarPoint.Win.Spread.PrintOrientation.Landscape;
this.fpSpread1_Sheet1.PrintInfo.PdfSecurity = null;
this.fpSpread1_Sheet1.PrintInfo.Printer = "";
this.fpSpread1_Sheet1.PrintInfo.PrintType = FarPoint.Win.Spread.PrintType.CellRange;
this.fpSpread1_Sheet1.PrintInfo.RowEnd = 0;
this.fpSpread1_Sheet1.PrintInfo.RowStart = 0;
this.fpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false; this.fpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false;
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1; this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1;
// //
// bs
//
this.bs.DataMember = "Holyday";
this.bs.DataSource = this.dsMSSQL;
//
// ta
//
this.ta.ClearBeforeFill = true;
//
// WorkTable // WorkTable
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(984, 558); this.ClientSize = new System.Drawing.Size(948, 786);
this.Controls.Add(this.fpSpread1); this.Controls.Add(this.fpSpread1);
this.Controls.Add(this.toolStrip1); this.Controls.Add(this.toolStrip1);
this.Controls.Add(this.bn); this.Controls.Add(this.bn);
@@ -423,21 +548,16 @@
((System.ComponentModel.ISupportInitialize)(this.bn)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.bn)).EndInit();
this.bn.ResumeLayout(false); this.bn.ResumeLayout(false);
this.bn.PerformLayout(); this.bn.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).EndInit();
this.cm1.ResumeLayout(false);
this.toolStrip1.ResumeLayout(false); this.toolStrip1.ResumeLayout(false);
this.toolStrip1.PerformLayout(); this.toolStrip1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit();
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();
} }
#endregion #endregion
private dsMSSQL dsMSSQL;
private System.Windows.Forms.BindingNavigator bn; private System.Windows.Forms.BindingNavigator bn;
private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem; private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveFirstItem; private System.Windows.Forms.ToolStripButton bindingNavigatorMoveFirstItem;
@@ -454,10 +574,6 @@
private System.Windows.Forms.ToolStripLabel toolStripLabel2; private System.Windows.Forms.ToolStripLabel toolStripLabel2;
private System.Windows.Forms.ToolStripTextBox tbED; private System.Windows.Forms.ToolStripTextBox tbED;
private System.Windows.Forms.ToolStripButton toolStripButton1; private System.Windows.Forms.ToolStripButton toolStripButton1;
private System.Windows.Forms.ContextMenuStrip cm1;
private System.Windows.Forms.ToolStripMenuItem autoResizeComlumnsToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem sendToMailToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem1;
private System.Windows.Forms.ToolStripLabel toolStripLabel7; private System.Windows.Forms.ToolStripLabel toolStripLabel7;
private System.Windows.Forms.ToolStripLabel sbUse; private System.Windows.Forms.ToolStripLabel sbUse;
private System.Windows.Forms.ToolStripLabel toolStripLabel5; private System.Windows.Forms.ToolStripLabel toolStripLabel5;
@@ -465,8 +581,8 @@
private System.Windows.Forms.ToolStripLabel toolStripLabel8; private System.Windows.Forms.ToolStripLabel toolStripLabel8;
private System.Windows.Forms.ToolStripLabel sbJan; private System.Windows.Forms.ToolStripLabel sbJan;
private FarPoint.Win.Spread.FpSpread fpSpread1; private FarPoint.Win.Spread.FpSpread fpSpread1;
private System.Windows.Forms.BindingSource bs; private System.Windows.Forms.ToolStripLabel toolStripLabel3;
private dsMSSQLTableAdapters.HolydayTableAdapter ta; private System.Windows.Forms.ToolStripTextBox tbGrp;
private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1; private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1;
} }
} }

View File

@@ -14,45 +14,18 @@ namespace FBS0000
{ {
public partial class WorkTable : FCOMMON.fBase public partial class WorkTable : FCOMMON.fBase
{ {
public WorkTable(string sd,string ed ) public WorkTable(string sd, string ed, string grp)
{ {
InitializeComponent(); InitializeComponent();
this.dsMSSQL.vHoliday_uselist.TableNewRow += Holyday_TableNewRow;
tbSD.Text = sd; tbSD.Text = sd;
tbED.Text = ed; tbED.Text = ed;
tbGrp.Text = grp;
//this.dv1.CellFormatting += dv1_CellFormatting; //this.dv1.CellFormatting += dv1_CellFormatting;
} }
void dv1_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
{
//if (e.RowIndex < 0 || e.ColumnIndex < 0) return;
//var col = this.dv1.Columns[e.ColumnIndex];
//var cate = dv1.Rows[e.RowIndex].Cells["dvc_cate"].Value.ToString();
//if (cate == "0") dv1.Rows[e.RowIndex].DefaultCellStyle.ForeColor = Color.Blue;// = Color.Gray;
//else dv1.Rows[e.RowIndex].DefaultCellStyle.ForeColor = Color.Black;
}
private void __Load(object sender, EventArgs e) private void __Load(object sender, EventArgs e)
{ {
tbSD.Text = DateTime.Now.Year.ToString("0000") + "-01-01";
tbED.Text = DateTime.Now.AddDays(10).ToShortDateString();
//var userlist = FCOMMON.DBM.getUserTable();
//dvc_user.DataSource = userlist;
//dvc_user.ValueMember = "Key";
//dvc_user.DisplayMember = "Value";
//var cateList = FCOMMON.DBM.getCodeTable("02");
//this.dvc_cate.DataSource = cateList;
//dvc_cate.ValueMember = "Key";
//dvc_cate.DisplayMember = "Value";
//var rrltList = FCOMMON.DBM.getCodeTable("03");
//this.dvc_result.DataSource = rrltList;
//dvc_result.ValueMember = "Key";
//dvc_result.DisplayMember = "Value";
//일반사용자의경우에는 상태를 변경하지 못한다. //일반사용자의경우에는 상태를 변경하지 못한다.
int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.holyday)); int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.holyday));
if (curLevel >= 5) if (curLevel >= 5)
@@ -67,55 +40,89 @@ namespace FBS0000
RefreshData(); RefreshData();
} }
void Holyday_TableNewRow(object sender, DataTableNewRowEventArgs e)
{
e.Row["wuid"] = FCOMMON.info.Login.no;
e.Row["uid"] = FCOMMON.info.Login.no;
e.Row["wdate"] = DateTime.Now;
e.Row["cate"] = "0"; //기본 신청
e.Row["pdate"] = DateTime.Now;
e.Row["termDr"] = 1.0f;
e.Row["contents"] = string.Empty;
}
void RefreshData() void RefreshData()
{ {
//update data fpSpread1_Sheet1.Rows.Count = 0;
//var sd = DateTime.Parse(tbSD.Text + " 00:00:00"); //열제목
//var ed = DateTime.Parse(tbED.Text + " 23:59:59"); var cols = new List<string>();
//this.ta.Fill(this.dsMSSQL.Holyday, tbSD.Text, tbED.Text, uid, FCOMMON.info.Login.gcode); cols.AddRange(new string[] { "번호", "사번", "직급", "성명" });
var sd = DateTime.Parse(tbSD.Text);
var ed = DateTime.Parse(tbED.Text);
var idx = 0; ;
while (true)
{
var curDate = sd.AddDays(idx++);
cols.Add(curDate.Day.ToString("00"));
if (curDate.ToShortDateString() == ed.ToShortDateString()) break;
}
cols.AddRange(new string[]{ "발생년차","사용휴가","잔여휴가"});
//열제목 설정
fpSpread1_Sheet1.Columns.Count = cols.Count;
for (int c = 0; c < cols.Count; c++)
{
fpSpread1_Sheet1.Columns[c].Label = cols[c];
}
//fpSpread1_Sheet1.Cells[0, c].Value = cols[c];
//해당 기간내의 사용
var taUser = new dsMSSQLTableAdapters.EETGW_WorkTableUserTableAdapter();
var dtUser = taUser.GetData(FCOMMON.info.Login.gcode, tbGrp.Text);
var users = new List<userinfo>();
foreach(var item in dtUser)
{
if(string.IsNullOrEmpty(item.indate))
{
//입사일자를 체크해서. 이 날짜가 입사일 이전이면 넘어간다
}
users.Add(new userinfo { grade = item.grade, name = item.name, empno = item.empno, seq = item.seq.ToString() });
}
//휴가테이블에서 데이터를 가져온다
var taHoly = new dsMSSQLTableAdapters.HolydayTableAdapter();
var dtHoly = taHoly.GetByGrp(tbSD.Text, tbED.Text, FCOMMON.info.Login.gcode, this.tbGrp.Text);
////잔량계산 //사용자 목록을 1번열에 나열한다.
//double sumdrD = this.dsMSSQL.Holyday.Sum(t => t.termDr); //전체발생수량 var rowindex = 0;
//double sumdrT = this.dsMSSQL.Holyday.Sum(t => t.DrTime); //전체발생수량 foreach (var item in users)
{
fpSpread1_Sheet1.Rows.Count += 1;
fpSpread1_Sheet1.Cells[rowindex, 0].Value = item.seq;
fpSpread1_Sheet1.Cells[rowindex, 1].Value = item.empno;
fpSpread1_Sheet1.Cells[rowindex, 2].Value = item.grade;
fpSpread1_Sheet1.Cells[rowindex, 3].Value = item.name;
//double sumcrD = this.dsMSSQL.Holyday.Sum(t => t.term); //전체발생수량 //각 일자별로 특이사항을 찾는다
//double sumcrT = this.dsMSSQL.Holyday.Sum(t => t.CrTime); //전체발생수량 for(int c= 4; c < cols.Count;c++)
{
var curDate = sd.AddDays(c-4);
var dr = dtHoly.Where(t => t.uid == item.empno && t.sdate.ToShortDateString() == curDate.ToShortDateString()).FirstOrDefault();
if (dr != null)
{
//자료가있다.
if (dr.term == 1.0) fpSpread1_Sheet1.Cells[rowindex, c].Value = "Y";
else if(dr.term != 0) fpSpread1_Sheet1.Cells[rowindex, c].Value = dr.term.ToString() +"Y";
////double sumcr = sumcrD + sumcrT; //전체 사용수량 if (dr.CrTime != 0) fpSpread1_Sheet1.Cells[rowindex, c].Value = dr.CrTime.ToString();
////double sumdr = sumdrD + sumdrT; //전체 발생량 }
else fpSpread1_Sheet1.Cells[rowindex, c].Value = string.Empty;
}
rowindex += 1;
}
//double janD = sumdrD - sumcrD;
//double janT = sumdrT - sumcrT;
//sbGen.Text = string.Format("{0}+{1}", sumdrD, sumdrT); //발생량
//sbUse.Text = string.Format("{0}+{1}", sumcrD, sumcrT); //사용량
//sbJan.Text = string.Format("{0}+{1}", janD, janT); //잔량
//if (janD < 0) sbJan.ForeColor = Color.Red;
//else sbJan.ForeColor = Color.Blue;
//색상변경
// this.dv1.AutoResizeColumns();
} }
private void boardBindingNavigatorSaveItem_Click(object sender, EventArgs e) private void boardBindingNavigatorSaveItem_Click(object sender, EventArgs e)
{ {
this.Validate(); this.Validate();
this.bs.EndEdit(); // this.bs.EndEdit();
var dlg = FCOMMON.Util.MsgQ("변경된 내용을 저장하시겠습니까?"); var dlg = FCOMMON.Util.MsgQ("변경된 내용을 저장하시겠습니까?");
if (dlg != System.Windows.Forms.DialogResult.Yes) return; if (dlg != System.Windows.Forms.DialogResult.Yes) return;
try try
@@ -128,37 +135,16 @@ namespace FBS0000
} }
} }
private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e) class userinfo
{ {
var f = new fHolyday_Add(); public string seq { get; set; }
f.TopMost = true; public string empno { get; set; }
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) public string name { get; set; }
{ public string grade { get; set; }
RefreshData(); public userinfo()
}
}
private void autoResizeComlumnsToolStripMenuItem_Click(object sender, EventArgs e)
{
// dv1.AutoResizeColumns();
}
private void dv1_DataError(object sender, DataGridViewDataErrorEventArgs e)
{ {
} }
private void dv1_DoubleClick(object sender, EventArgs e)
{
var drv = this.bs.Current as DataRowView;
if (drv == null) return;
var dr = drv.Row as dsMSSQL.vHoliday_uselistRow;
var f = new fHolyday_Add(dr.idx);
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
RefreshData();
}
} }
private void toolStripButton1_Click(object sender, EventArgs e) private void toolStripButton1_Click(object sender, EventArgs e)
@@ -180,61 +166,6 @@ namespace FBS0000
} }
} }
private void sendToMailToolStripMenuItem_Click(object sender, EventArgs e)
{
var drv = this.bs.Current as DataRowView;
if (drv == null) return;
var dr = drv.Row as dsMSSQL.HolydayRow;
//string to = dr.tolist;
//string body = "<html><body>test 2<strong>sfd</strong>nice to meet</body></html>";
//string bcc = string.Empty;
//string cc = string.Empty;
//string subject = "etst mail";
Outlook.Application outlookApplication = new Outlook.Application();
Outlook.MailItem newTask = outlookApplication.CreateItem(OlItemType.olMailItem) as Outlook.MailItem;
newTask.Subject = "mail test";
newTask.To = "Chikyun.Kim@amkor.co.kr";
newTask.HTMLBody = "<i><b>this is test mail</b></i>";
newTask.BodyFormat = OlBodyFormat.olFormatHTML;
newTask.Display();
//FCOMMON.Util.RunDefaultMail(to, subject, body, cc, bcc);
}
private void toolStripButton2_Click(object sender, EventArgs e)
{
this.Validate();
this.bs.EndEdit();
try
{
var cnt = this.ta.Update(this.dsMSSQL.Holyday);
this.dsMSSQL.Holyday.AcceptChanges();
FCOMMON.Util.MsgI(cnt.ToString() + "건의 자료가 저장됨");
}
catch (Exception ex)
{
FCOMMON.Util.MsgE(ex.Message);
}
}
private void toolStripButton3_Click(object sender, EventArgs e)
{
var newdr = this.dsMSSQL.Holyday.NewHolydayRow();
newdr.uid = FCOMMON.info.Login.no;
newdr.gcode = FCOMMON.info.Login.gcode;
newdr.sdate = DateTime.Now;
newdr.edate = DateTime.Now;
newdr.contents = string.Empty;
newdr.wuid = FCOMMON.info.Login.no;
newdr.wdate = DateTime.Now;
this.dsMSSQL.Holyday.AddHolydayRow(newdr);
}
private void toolStripButton4_Click(object sender, EventArgs e)
{
} }
} }
}

View File

@@ -161,35 +161,10 @@
8l/FYwIYQ4UGBWBgAAC+0b+zuQxOnAAAAABJRU5ErkJggg== 8l/FYwIYQ4UGBWBgAAC+0b+zuQxOnAAAAABJRU5ErkJggg==
</value> </value>
</data> </data>
<metadata name="dsMSSQL.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="cm1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>294, 17</value>
</metadata>
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>188, 17</value> <value>188, 17</value>
</metadata> </metadata>
<metadata name="fpSpread1_Sheet1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="fpSpread1_Sheet1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>647, 17</value> <value>294, 17</value>
</metadata>
<metadata name="fpSpread1_Sheet1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>647, 17</value>
</metadata>
<data name="dateTimeCellType2.Calendar" mimetype="application/x-microsoft.net.object.binary.base64">
<value>
AAEAAAD/////AQAAAAAAAAAEAQAAACZTeXN0ZW0uR2xvYmFsaXphdGlvbi5HcmVnb3JpYW5DYWxlbmRh
cgYAAAAGbV90eXBlEW1fY3VycmVudEVyYVZhbHVlD3R3b0RpZ2l0WWVhck1heBpDYWxlbmRhcittX2N1
cnJlbnRFcmFWYWx1ZRVDYWxlbmRhcittX2lzUmVhZE9ubHkYQ2FsZW5kYXIrdHdvRGlnaXRZZWFyTWF4
AwAAAAAAK1N5c3RlbS5HbG9iYWxpemF0aW9uLkdyZWdvcmlhbkNhbGVuZGFyVHlwZXMICAgBCAT+////
K1N5c3RlbS5HbG9iYWxpemF0aW9uLkdyZWdvcmlhbkNhbGVuZGFyVHlwZXMBAAAAB3ZhbHVlX18ACAEA
AAD/////AQgAAP////8AAQgAAAs=
</value>
</data>
<metadata name="bs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>521, 17</value>
</metadata>
<metadata name="ta.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>585, 17</value>
</metadata> </metadata>
</root> </root>

View File

@@ -30,15 +30,15 @@
{ {
this.components = new System.ComponentModel.Container(); this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fHolyday)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fHolyday));
FarPoint.Win.Spread.CellType.DateTimeCellType dateTimeCellType2 = new FarPoint.Win.Spread.CellType.DateTimeCellType(); FarPoint.Win.Spread.CellType.DateTimeCellType dateTimeCellType1 = new FarPoint.Win.Spread.CellType.DateTimeCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType5 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType1 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType6 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType2 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType7 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType3 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType5 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.NumberCellType numberCellType1 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType6 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.NumberCellType numberCellType2 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType8 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType4 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType7 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.NumberCellType numberCellType3 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType8 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.NumberCellType numberCellType4 = new FarPoint.Win.Spread.CellType.NumberCellType();
this.bn = new System.Windows.Forms.BindingNavigator(this.components); this.bn = new System.Windows.Forms.BindingNavigator(this.components);
this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel(); this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel();
this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton(); this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton();
@@ -61,6 +61,7 @@
this.toolStripLabel8 = new System.Windows.Forms.ToolStripLabel(); this.toolStripLabel8 = new System.Windows.Forms.ToolStripLabel();
this.sbJan = new System.Windows.Forms.ToolStripLabel(); this.sbJan = new System.Windows.Forms.ToolStripLabel();
this.toolStripButton4 = new System.Windows.Forms.ToolStripButton(); this.toolStripButton4 = new System.Windows.Forms.ToolStripButton();
this.toolStripButton5 = new System.Windows.Forms.ToolStripButton();
this.dsMSSQL = new FBS0000.dsMSSQL(); this.dsMSSQL = new FBS0000.dsMSSQL();
this.cm1 = new System.Windows.Forms.ContextMenuStrip(this.components); this.cm1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.sendToMailToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.sendToMailToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@@ -71,22 +72,24 @@
this.tbSD = new System.Windows.Forms.ToolStripTextBox(); this.tbSD = new System.Windows.Forms.ToolStripTextBox();
this.toolStripLabel2 = new System.Windows.Forms.ToolStripLabel(); this.toolStripLabel2 = new System.Windows.Forms.ToolStripLabel();
this.tbED = new System.Windows.Forms.ToolStripTextBox(); this.tbED = new System.Windows.Forms.ToolStripTextBox();
this.toolStripLabel4 = new System.Windows.Forms.ToolStripLabel();
this.cmbGrp = new System.Windows.Forms.ToolStripComboBox();
this.toolStripLabel3 = new System.Windows.Forms.ToolStripLabel(); this.toolStripLabel3 = new System.Windows.Forms.ToolStripLabel();
this.cmbUser = new System.Windows.Forms.ToolStripComboBox(); this.cmbUser = new System.Windows.Forms.ToolStripComboBox();
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton(); this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
this.toolStripButton6 = new System.Windows.Forms.ToolStripButton();
this.fpSpread1 = new FarPoint.Win.Spread.FpSpread(); this.fpSpread1 = new FarPoint.Win.Spread.FpSpread();
this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
this.bs = new System.Windows.Forms.BindingSource(this.components); this.bs = new System.Windows.Forms.BindingSource(this.components);
this.ta = new FBS0000.dsMSSQLTableAdapters.HolydayTableAdapter(); this.ta = new FBS0000.dsMSSQLTableAdapters.HolydayTableAdapter();
this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
this.toolStripButton5 = new System.Windows.Forms.ToolStripButton();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
this.bn.SuspendLayout(); this.bn.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit();
this.cm1.SuspendLayout(); this.cm1.SuspendLayout();
this.toolStrip1.SuspendLayout(); this.toolStrip1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
// bn // bn
@@ -222,6 +225,7 @@
this.bindingNavigatorDeleteItem.RightToLeftAutoMirrorImage = true; this.bindingNavigatorDeleteItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorDeleteItem.Size = new System.Drawing.Size(72, 24); this.bindingNavigatorDeleteItem.Size = new System.Drawing.Size(72, 24);
this.bindingNavigatorDeleteItem.Text = "삭제(&D)"; this.bindingNavigatorDeleteItem.Text = "삭제(&D)";
this.bindingNavigatorDeleteItem.Click += new System.EventHandler(this.bindingNavigatorDeleteItem_Click);
// //
// toolStripButton2 // toolStripButton2
// //
@@ -287,6 +291,16 @@
this.toolStripButton4.Text = "업무일지(휴가내역)"; this.toolStripButton4.Text = "업무일지(휴가내역)";
this.toolStripButton4.Click += new System.EventHandler(this.toolStripButton4_Click); this.toolStripButton4.Click += new System.EventHandler(this.toolStripButton4_Click);
// //
// toolStripButton5
//
this.toolStripButton5.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.toolStripButton5.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton5.Image")));
this.toolStripButton5.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton5.Name = "toolStripButton5";
this.toolStripButton5.Size = new System.Drawing.Size(67, 24);
this.toolStripButton5.Text = "출근부";
this.toolStripButton5.Click += new System.EventHandler(this.toolStripButton5_Click);
//
// dsMSSQL // dsMSSQL
// //
this.dsMSSQL.DataSetName = "dsMSSQL"; this.dsMSSQL.DataSetName = "dsMSSQL";
@@ -328,9 +342,12 @@
this.tbSD, this.tbSD,
this.toolStripLabel2, this.toolStripLabel2,
this.tbED, this.tbED,
this.toolStripLabel4,
this.cmbGrp,
this.toolStripLabel3, this.toolStripLabel3,
this.cmbUser, this.cmbUser,
this.toolStripButton1}); this.toolStripButton1,
this.toolStripButton6});
this.toolStrip1.Location = new System.Drawing.Point(0, 0); this.toolStrip1.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.Name = "toolStrip1"; this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(984, 31); this.toolStrip1.Size = new System.Drawing.Size(984, 31);
@@ -365,6 +382,17 @@
this.tbED.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.tbED.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.tbED.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tbSD_KeyDown); this.tbED.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tbSD_KeyDown);
// //
// toolStripLabel4
//
this.toolStripLabel4.Name = "toolStripLabel4";
this.toolStripLabel4.Size = new System.Drawing.Size(31, 28);
this.toolStripLabel4.Text = "그룹";
//
// cmbGrp
//
this.cmbGrp.Name = "cmbGrp";
this.cmbGrp.Size = new System.Drawing.Size(200, 31);
//
// toolStripLabel3 // toolStripLabel3
// //
this.toolStripLabel3.Name = "toolStripLabel3"; this.toolStripLabel3.Name = "toolStripLabel3";
@@ -386,6 +414,16 @@
this.toolStripButton1.Text = "검색(&R)"; this.toolStripButton1.Text = "검색(&R)";
this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click); this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click);
// //
// toolStripButton6
//
this.toolStripButton6.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.toolStripButton6.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton6.Image")));
this.toolStripButton6.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton6.Name = "toolStripButton6";
this.toolStripButton6.Size = new System.Drawing.Size(59, 28);
this.toolStripButton6.Text = "닫기";
this.toolStripButton6.Click += new System.EventHandler(this.toolStripButton6_Click);
//
// fpSpread1 // fpSpread1
// //
this.fpSpread1.AccessibleDescription = ""; this.fpSpread1.AccessibleDescription = "";
@@ -397,15 +435,6 @@
this.fpSpread1.Size = new System.Drawing.Size(984, 500); this.fpSpread1.Size = new System.Drawing.Size(984, 500);
this.fpSpread1.TabIndex = 4; this.fpSpread1.TabIndex = 4;
// //
// bs
//
this.bs.DataMember = "Holyday";
this.bs.DataSource = this.dsMSSQL;
//
// ta
//
this.ta.ClearBeforeFill = true;
//
// fpSpread1_Sheet1 // fpSpread1_Sheet1
// //
this.fpSpread1_Sheet1.Reset(); this.fpSpread1_Sheet1.Reset();
@@ -426,61 +455,61 @@
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 7).Value = "발생(일)"; this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 7).Value = "발생(일)";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 8).Value = "발생(H)"; this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 8).Value = "발생(H)";
this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 31F; this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 31F;
dateTimeCellType2.Calendar = new System.Globalization.GregorianCalendar(System.Globalization.GregorianCalendarTypes.Localized); dateTimeCellType1.Calendar = new System.Globalization.GregorianCalendar(System.Globalization.GregorianCalendarTypes.Localized);
dateTimeCellType2.CalendarSurroundingDaysColor = System.Drawing.SystemColors.GrayText; dateTimeCellType1.CalendarSurroundingDaysColor = System.Drawing.SystemColors.GrayText;
dateTimeCellType2.MaximumTime = System.TimeSpan.Parse("23:59:59.9999999"); dateTimeCellType1.MaximumTime = System.TimeSpan.Parse("23:59:59.9999999");
dateTimeCellType2.TimeDefault = new System.DateTime(2020, 9, 3, 10, 43, 44, 535); dateTimeCellType1.TimeDefault = new System.DateTime(2020, 9, 7, 9, 10, 20, 482);
this.fpSpread1_Sheet1.Columns.Get(0).CellType = dateTimeCellType2; this.fpSpread1_Sheet1.Columns.Get(0).CellType = dateTimeCellType1;
this.fpSpread1_Sheet1.Columns.Get(0).DataField = "sdate"; this.fpSpread1_Sheet1.Columns.Get(0).DataField = "sdate";
this.fpSpread1_Sheet1.Columns.Get(0).Label = "일자"; this.fpSpread1_Sheet1.Columns.Get(0).Label = "일자";
this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType5; this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType1;
this.fpSpread1_Sheet1.Columns.Get(1).Formula = "CHOOSE(WEEKDAY(RC[-1]),\"일\",\"월\",\"화\",\"수\",\"목\",\"금\",\"토\")"; this.fpSpread1_Sheet1.Columns.Get(1).Formula = "CHOOSE(WEEKDAY(RC[-1]),\"일\",\"월\",\"화\",\"수\",\"목\",\"금\",\"토\")";
this.fpSpread1_Sheet1.Columns.Get(1).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(1).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(1).Label = "요일"; this.fpSpread1_Sheet1.Columns.Get(1).Label = "요일";
this.fpSpread1_Sheet1.Columns.Get(1).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(1).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(2).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.fpSpread1_Sheet1.Columns.Get(2).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType6; this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType2;
this.fpSpread1_Sheet1.Columns.Get(2).DataField = "uid"; this.fpSpread1_Sheet1.Columns.Get(2).DataField = "uid";
this.fpSpread1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(2).Label = "사번"; this.fpSpread1_Sheet1.Columns.Get(2).Label = "사번";
this.fpSpread1_Sheet1.Columns.Get(2).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(2).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(3).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.fpSpread1_Sheet1.Columns.Get(3).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType7; this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType3;
this.fpSpread1_Sheet1.Columns.Get(3).DataField = "UserName"; this.fpSpread1_Sheet1.Columns.Get(3).DataField = "UserName";
this.fpSpread1_Sheet1.Columns.Get(3).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(3).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(3).Label = "성명"; this.fpSpread1_Sheet1.Columns.Get(3).Label = "성명";
this.fpSpread1_Sheet1.Columns.Get(3).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(3).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(4).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192))))); this.fpSpread1_Sheet1.Columns.Get(4).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
numberCellType5.MaximumValue = 999999999999999D; numberCellType1.MaximumValue = 999999999999999D;
numberCellType5.MinimumValue = -999999999999999D; numberCellType1.MinimumValue = -999999999999999D;
this.fpSpread1_Sheet1.Columns.Get(4).CellType = numberCellType5; this.fpSpread1_Sheet1.Columns.Get(4).CellType = numberCellType1;
this.fpSpread1_Sheet1.Columns.Get(4).DataField = "term"; this.fpSpread1_Sheet1.Columns.Get(4).DataField = "term";
this.fpSpread1_Sheet1.Columns.Get(4).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(4).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(4).Label = "사용(일)"; this.fpSpread1_Sheet1.Columns.Get(4).Label = "사용(일)";
this.fpSpread1_Sheet1.Columns.Get(4).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(4).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(5).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192))))); this.fpSpread1_Sheet1.Columns.Get(5).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
numberCellType6.MaximumValue = 999999999999999D; numberCellType2.MaximumValue = 999999999999999D;
numberCellType6.MinimumValue = -999999999999999D; numberCellType2.MinimumValue = -999999999999999D;
this.fpSpread1_Sheet1.Columns.Get(5).CellType = numberCellType6; this.fpSpread1_Sheet1.Columns.Get(5).CellType = numberCellType2;
this.fpSpread1_Sheet1.Columns.Get(5).DataField = "CrTime"; this.fpSpread1_Sheet1.Columns.Get(5).DataField = "CrTime";
this.fpSpread1_Sheet1.Columns.Get(5).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(5).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(5).Label = "사용(H)"; this.fpSpread1_Sheet1.Columns.Get(5).Label = "사용(H)";
this.fpSpread1_Sheet1.Columns.Get(5).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(5).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType8; this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType4;
this.fpSpread1_Sheet1.Columns.Get(6).DataField = "contents"; this.fpSpread1_Sheet1.Columns.Get(6).DataField = "contents";
this.fpSpread1_Sheet1.Columns.Get(6).Label = "내용"; this.fpSpread1_Sheet1.Columns.Get(6).Label = "내용";
this.fpSpread1_Sheet1.Columns.Get(7).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.fpSpread1_Sheet1.Columns.Get(7).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
numberCellType7.MaximumValue = 999999999999999D; numberCellType3.MaximumValue = 999999999999999D;
numberCellType7.MinimumValue = -999999999999999D; numberCellType3.MinimumValue = -999999999999999D;
this.fpSpread1_Sheet1.Columns.Get(7).CellType = numberCellType7; this.fpSpread1_Sheet1.Columns.Get(7).CellType = numberCellType3;
this.fpSpread1_Sheet1.Columns.Get(7).DataField = "termDr"; this.fpSpread1_Sheet1.Columns.Get(7).DataField = "termDr";
this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(7).Label = "발생(일)"; this.fpSpread1_Sheet1.Columns.Get(7).Label = "발생(일)";
this.fpSpread1_Sheet1.Columns.Get(7).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(7).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(8).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.fpSpread1_Sheet1.Columns.Get(8).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
numberCellType8.MaximumValue = 999999999999999D; numberCellType4.MaximumValue = 999999999999999D;
numberCellType8.MinimumValue = -999999999999999D; numberCellType4.MinimumValue = -999999999999999D;
this.fpSpread1_Sheet1.Columns.Get(8).CellType = numberCellType8; this.fpSpread1_Sheet1.Columns.Get(8).CellType = numberCellType4;
this.fpSpread1_Sheet1.Columns.Get(8).DataField = "DrTime"; this.fpSpread1_Sheet1.Columns.Get(8).DataField = "DrTime";
this.fpSpread1_Sheet1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(8).Label = "발생(H)"; this.fpSpread1_Sheet1.Columns.Get(8).Label = "발생(H)";
@@ -489,15 +518,14 @@
this.fpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false; this.fpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false;
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1; this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1;
// //
// toolStripButton5 // bs
// //
this.toolStripButton5.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; this.bs.DataMember = "Holyday";
this.toolStripButton5.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton5.Image"))); this.bs.DataSource = this.dsMSSQL;
this.toolStripButton5.ImageTransparentColor = System.Drawing.Color.Magenta; //
this.toolStripButton5.Name = "toolStripButton5"; // ta
this.toolStripButton5.Size = new System.Drawing.Size(67, 24); //
this.toolStripButton5.Text = "출근부"; this.ta.ClearBeforeFill = true;
this.toolStripButton5.Click += new System.EventHandler(this.toolStripButton5_Click);
// //
// fHolyday // fHolyday
// //
@@ -518,8 +546,8 @@
this.toolStrip1.ResumeLayout(false); this.toolStrip1.ResumeLayout(false);
this.toolStrip1.PerformLayout(); this.toolStrip1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit();
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();
@@ -567,5 +595,8 @@
private System.Windows.Forms.ToolStripButton toolStripButton4; private System.Windows.Forms.ToolStripButton toolStripButton4;
private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1; private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1;
private System.Windows.Forms.ToolStripButton toolStripButton5; private System.Windows.Forms.ToolStripButton toolStripButton5;
private System.Windows.Forms.ToolStripLabel toolStripLabel4;
private System.Windows.Forms.ToolStripComboBox cmbGrp;
private System.Windows.Forms.ToolStripButton toolStripButton6;
} }
} }

View File

@@ -33,45 +33,54 @@ namespace FBS0000
private void __Load(object sender, EventArgs e) private void __Load(object sender, EventArgs e)
{ {
tbSD.Text = DateTime.Now.Year.ToString("0000") + "-01-01"; tbSD.Text = DateTime.Now.ToString("yyyy-MM") + "-01";
tbED.Text = DateTime.Now.AddDays(10).ToShortDateString(); tbED.Text = DateTime.Parse(DateTime.Now.AddMonths(1).ToString("yyyy-MM") + "-01").AddDays(-1).ToShortDateString();
//var userlist = FCOMMON.DBM.getUserTable(); //현재 사용자의 그룹명을 가져옴
//dvc_user.DataSource = userlist; var taQuery = new dsMSSQLTableAdapters.QueriesTableAdapter();
//dvc_user.ValueMember = "Key"; var GrpName = taQuery.GetGrpName(FCOMMON.info.Login.gcode, FCOMMON.info.Login.no);
//dvc_user.DisplayMember = "Value";
//var cateList = FCOMMON.DBM.getCodeTable("02");
//this.dvc_cate.DataSource = cateList;
//dvc_cate.ValueMember = "Key";
//dvc_cate.DisplayMember = "Value";
//var rrltList = FCOMMON.DBM.getCodeTable("03"); //그룹목록
//this.dvc_result.DataSource = rrltList; var taGrp = new dsMSSQLTableAdapters.WorkTableGrpTableAdapter();
//dvc_result.ValueMember = "Key"; var dtGrp = taGrp.GetData(FCOMMON.info.Login.gcode);
//dvc_result.DisplayMember = "Value"; this.cmbGrp.Items.Clear();
foreach (var item in dtGrp)
{
cmbGrp.Items.Add(string.Format("{0}", item.grp));
}
if (string.IsNullOrEmpty(GrpName) == false) cmbGrp.Text = GrpName;
else if (cmbGrp.Items.Count > 0) cmbGrp.SelectedIndex = 0;
//udpate user list //해당그룹내의 사용자 목록을 가져와야한다
var userList = FCOMMON.DBM.getUserList(); if (cmbGrp.SelectedIndex >= 0)
{
var taUser = new dsMSSQLTableAdapters.EETGW_WorkTableUserTableAdapter();
var dtUser = taUser.GetData(FCOMMON.info.Login.gcode, cmbGrp.Text);
this.cmbUser.Items.Clear(); this.cmbUser.Items.Clear();
this.cmbUser.Items.Add("-- ALL --"); this.cmbUser.Items.Add("-- ALL --");
int curuserindex = -1; foreach (var user in dtUser)
foreach (var user in userList)
{ {
this.cmbUser.Items.Add(string.Format("[{0}] {1}", user.Key, user.Value)); this.cmbUser.Items.Add(string.Format("[{0}] {1}", user.empno, user.name));
if (user.Key == FCOMMON.info.Login.no) curuserindex = cmbUser.Items.Count - 1; }
}
else
{
//그룹이 선택되지 않아서 사용자 목록을 가져오지않는다.
} }
this.cmbUser.SelectedIndex = curuserindex;
//일반사용자의경우에는 상태를 변경하지 못한다. //일반사용자의경우에는 상태를 변경하지 못한다.
int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.holyday)); int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.holyday));
if (curLevel >= 5) if (curLevel >= 5)
{ {
//권한이 잇으므로 모든 사용자로 한다. //권한이 잇으므로 모든 사용자로 한다.
cmbUser.SelectedIndex = 0;
} }
else else
{ {
this.cmbUser.Text = string.Format("[{0}] {1}", FCOMMON.info.Login.no, FCOMMON.info.Login.nameK);
this.cmbUser.Enabled = false; //사용자를 고칠수 없게 한다. this.cmbUser.Enabled = false; //사용자를 고칠수 없게 한다.
this.cmbGrp.Enabled = false;
} }
RefreshData(); RefreshData();
@@ -100,11 +109,26 @@ namespace FBS0000
void RefreshData() void RefreshData()
{ {
if (this.dsMSSQL.Holyday.GetChanges() != null)
{
var dlg = FCOMMON.Util.MsgQ("변경된 내용이 있습니다. 새로고침하면 해당 자료가 손실됩니다\n진행하시겠습니까?");
if (dlg != DialogResult.Yes) return;
}
//update data //update data
string uid = GetUIDValue(); string uid = GetUIDValue();
var sd = DateTime.Parse(tbSD.Text + " 00:00:00"); var sd = DateTime.Parse(tbSD.Text + " 00:00:00");
var ed = DateTime.Parse(tbED.Text + " 23:59:59"); var ed = DateTime.Parse(tbED.Text + " 23:59:59");
try
{
this.ta.Fill(this.dsMSSQL.Holyday, tbSD.Text, tbED.Text, uid, FCOMMON.info.Login.gcode); this.ta.Fill(this.dsMSSQL.Holyday, tbSD.Text, tbED.Text, uid, FCOMMON.info.Login.gcode);
this.dsMSSQL.Holyday.AcceptChanges();
}
catch (Exception ex)
{
FCOMMON.Util.MsgE(ex.Message);
}
//잔량계산 //잔량계산
@@ -264,8 +288,18 @@ namespace FBS0000
private void toolStripButton5_Click(object sender, EventArgs e) private void toolStripButton5_Click(object sender, EventArgs e)
{ {
var f = new WorkTable(tbSD.Text, tbED.Text); var f = new WorkTable(tbSD.Text, tbED.Text, this.cmbGrp.Text);
f.ShowDialog(); f.ShowDialog();
} }
private void toolStripButton6_Click(object sender, EventArgs e)
{
this.Close();
}
private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e)
{
this.bs.RemoveCurrent();
}
} }
} }

View File

@@ -211,35 +211,35 @@
<data name="toolStripButton4.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="toolStripButton4.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAJ5SURBVDhPjZNdSFNhHMa7GF3XVVdRps4uIogougsKQlGi YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAJ7SURBVDhPjZNtSBNxHMd7Ib2uV72KWursRQQRRe+CglCU
Dwoi+hCn0lXUZFlGI7uI6iKQqJxDzCVZmjKnbi6m29oHTk+4TWzpcW5Nl86lsJ3Tjvvg6T1neWxsF77w 6IGCiB7EqfQqarIso5FBQb0IJCofkOWSLE2bT5uGbrN5hw8XbRNbeuqWuuZcyra77nQb3/53y7OxvfAP
4/Ae+D/v7zznnB38oiiq3PpChtHGChirD4LcOr5N9vPDh10uF+Ny2kA5LTDcKEM6nd4WQohSqdyp1Wpv H47/we/7/9z37rZJi2GY/KFnGgxWFqC/eD/IraNbZK80fJCmaW6UdoCh7bBcy0M8Ht8Scoher99uMpmu
jjyth11VD8P1MiQSiRxYlgXDMCKxWAypVCobkGtghv6qNC9gM2STeDyOZDKZa6B/Ug9bax30V6TgOE7g 9z0px3BdOSxX8yAIQgo8z4PjOIVIJIJYLJYMSDWwwXxZnRawEbJBNBrF+vp6qoH5UTkctWUwX1JDFEWZ
QVcQjZog7hEUnQEoOgJoIPAWYoBo4MgaDF2WYmNjQ4Af1pgj6CS8G4ugYzSCO+0LQgBvlWMw1FyHr69r e80+VBp9uEPQNXmhM3hRQZAslADFgEoa9FxUY21tTUYaNtqCaCK8sQZhGAziVuOcHCBZpRj0VJfhy8tS
MXipVEjn+f9UORm8q6Zxu40WOiAhmYIGAxdKhYL4AI5LwOIJotcxi46xID7YljBMhbD+ewVra2sMCTi6 dF/IldMl/j9VSwZvN7C4Wc/KHYTD4URGg85zuXJBUoAoCrC7fGijpmCw+vDOsYheZh6rv5ewsrLCkYDD
ZaCshfWVDAPnS/4Nc+g0zWGQWsHcLxYLUQ7j8zEYplYx4vIjGo0W6MBhhvZssRDAd/DJEcbMYhyuwB84 mwb6Ugy90KDzbM6/YRFNA9PoZpYw/YvHXEjEyEwElm/L6BudRSgUytABZYPpdLYcIHXwgfJjciGKUe8f
/CzsBG+YQ7c1ALfbDYlEckI00D2UwdJSg/7KYrHEdlMAdISDY56BjWZg8sVB/eTw3rKI5eXlfINJYtBX ULM8hgluv4iWIS+cTieysrKOKQZd9zWw15SgozBbKbFxwAs2KIKa4eBgOQx4omB+inhrX0AgEEg3GCcG
cUAssZs888wSC8tsdphnMsRBNfwj/0vU3a/B2Mtq9J3ZCjC7wxinY/hGhpyBBCbI6Tp3HK2aAYQofWGD 7QX7lBJbyDNPLvKwTyWHJcbnRdT1/kj/ErvulsD6vBjtpzYDbE4/RtgIvpIh2itgjJze5Yyi1tiJecac
3tNFyGQywptYXWfh/B5BD+nioz0MtXEBbzTD8BrUmFDVQVG1r0kwkMvlRV2Vh9B/7Rh6ThWBpmn4fD5M 2aDtpAqJREJ+E8urPOjvQbSSLt4P+9HQP4dXxl64LQ0YqyuDrmhPlWyg1WpVzYUH0HHlCFpPqMCyLDwe
T0/D4/EIhXm9XuFq+fwW42234B9pga65PEEssqu6ZNfJR0f2PK6R7paRbaFfV6Sham/Tl2cXOePzc/gL DyYmJuByueTC3G63fLV/fI2R+huY7avBp+p8gVgkV3HOjuMPDu16WKLeqSHbTL+uQkXR7qrPj8+L/U/P
qwzIzob0lx0AAAAASUVORK5CYII= 4C8G28iAvxi6KAAAAABJRU5ErkJggg==
</value> </value>
</data> </data>
<data name="toolStripButton5.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="toolStripButton5.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAJ5SURBVDhPjZNdSFNhHMa7GF3XVVdRps4uIogougsKQlGi YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAJ7SURBVDhPjZNbSFNxHMd7GD3XU09RS509RBBR9BYUhKJE
Dwoi+pBNR1dRk2UZjeyiqItAolKHrC3J0pRt6qahbrYPpp5wm9jS49xSl86lsJ3Tzr54es9ZHhvuwhd+ Fwoiusim0lPUxCyjkRFBPQQSlRdkbUmWpszbpqFuNs/wcsJdsKXHXVLXnGvKdk47cxvf/ucsjw334B8+
HM6B//P+3uecs4NfFEWVj76QY7i+AoPVB0EeHd8m+/nhw263mxlz2UG5bLDcKEMmk9kWQohard5pMBhu HP4Hft//53zPOTuERdN00egLFYZrijFYdhDk1vFtsl8YPkxRFDths4K2WWC6UYhUKrUtxBCNRrPTYDDc
DjxVwNGigOV6GRKJRB4sy4JhGJFYLIZ0Op0LyDewwnxVuiVgI2SDeDyOVCqVb2B+ooC9uRbmK1JwHCfw HHhWibHGSpiuFyIej2fBcRxYlpWIRqNIJpOZgGwDM4xXFVsCNkI2iMViWF9fzzYwPqmEtaECxisK8Dwv
oD2Een0I9wgqXRAqbRB1BN5CDBANnDmDvstSJJNJAX5Yb41AR3g3EoF2OII7bfNCAG+VZ9DXWIuvr2vQ 8qDVjxq9H/cI1TofqrU+VBEECylAMqAyBn2XFUgkEiLCsN4cgo7wbiQE7XAId1q8YoBglWXQV1eBr6/L
e6lUSOf5f1clGbyroXG7lRY6IMfIFjQwXigVCuIDOC4BmzeELucMtCMhfLAvoZ9awPrvFaytrTEk4Oim 0XupQEwX+P9UNRm828zgdhMjdrC2tpbOadB9oUAsSAjg+TgsDj86qFloR/z4YF1CP72A1d/LiEQiLAk4
gboGo6/kMJ4v+TfMQTc0i15qBbO/WMxHObjnYrBMrmJgLIBoNFqgA6cVhrPFQgDfwSdnGNOLcYwF/8AZ ummgKcfoKxW6z+f/G+ahG5pDL72MuV8cvGEe4/NRmKZXMDDhQTgcztEBZYbhbJ4YIHTwiQpgZjGGCd8f
YOEg+MIcOkaD8Hg8kEgkJ0QD00M5bE0y9FQWiyW2DQVBRzg45xjYaQZD/jionxze2xaxvLy81WCCGHRX UB4OYwRngEfbqA92ux0ymeyEZNDzUAVLvRJdJXlSiS1DPjAhHtQ8CyvDYsgdA/2Tx3vLIoLB4FaDKWLQ
HBBL7CBnnl5iYZvJDfNMLHBo6f+x9Us03Zdh5GU1us9sBlg9YbjpGL6RIVcwgXGyu8kTR7PeiAXKXNig WXxAKrGNPPPMEgfLbGZYYGqBR2P/j61fYs99JUZelqHzzGaA2R7AOBPFNzJk88UxSU7vscfQoO/GAm3M
63QRstms8CZW11m4vkfQSbr46AhDMziPN/p++CwajLfUQlW1r0EwUCqVRe2Vh9Bz7Rg6TxWBpmn4/X5M bdBxWo50Oi2+iZVVDrbvIbSTLj6OBdA86MUbfT+cpmZMNlagunRfrWigVqvlrSWH0HXtGNpPycEwDNxu
TU3B6/UKhfl8PuFq+/wW7tZbCAw0wdhYniAWuVVdsuvkoyN7Hsuku+XkttCvK1JXtbfhy7OL3ODzc/gL N1wuFxwOh1iY0+kUr5bPbzHedAuegXp01RXFiUVmleXvOvnoyJ7HSsVuFdnm+nUlqkr31n55epEffH4O
dFHItBTWKaIAAAAASUVORK5CYII= fwHQEchmrws3yAAAAABJRU5ErkJggg==
</value> </value>
</data> </data>
<metadata name="dsMSSQL.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="dsMSSQL.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
@@ -251,26 +251,38 @@
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>188, 17</value> <value>188, 17</value>
</metadata> </metadata>
<data name="toolStripButton6.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG
YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9
0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw
bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc
VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9
c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32
Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo
mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+
kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D
TgDQASA1MVpwzwAAAABJRU5ErkJggg==
</value>
</data>
<metadata name="fpSpread1_Sheet1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="fpSpread1_Sheet1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>647, 17</value> <value>647, 17</value>
</metadata> </metadata>
<metadata name="bs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <data name="dateTimeCellType1.Calendar" mimetype="application/x-microsoft.net.object.binary.base64">
<value>521, 17</value>
</metadata>
<metadata name="ta.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>585, 17</value>
</metadata>
<metadata name="fpSpread1_Sheet1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>647, 17</value>
</metadata>
<data name="dateTimeCellType2.Calendar" mimetype="application/x-microsoft.net.object.binary.base64">
<value> <value>
AAEAAAD/////AQAAAAAAAAAEAQAAACZTeXN0ZW0uR2xvYmFsaXphdGlvbi5HcmVnb3JpYW5DYWxlbmRh AAEAAAD/////AQAAAAAAAAAEAQAAACZTeXN0ZW0uR2xvYmFsaXphdGlvbi5HcmVnb3JpYW5DYWxlbmRh
cgYAAAAGbV90eXBlEW1fY3VycmVudEVyYVZhbHVlD3R3b0RpZ2l0WWVhck1heBpDYWxlbmRhcittX2N1 cgYAAAAGbV90eXBlEW1fY3VycmVudEVyYVZhbHVlD3R3b0RpZ2l0WWVhck1heBpDYWxlbmRhcittX2N1
cnJlbnRFcmFWYWx1ZRVDYWxlbmRhcittX2lzUmVhZE9ubHkYQ2FsZW5kYXIrdHdvRGlnaXRZZWFyTWF4 cnJlbnRFcmFWYWx1ZRVDYWxlbmRhcittX2lzUmVhZE9ubHkYQ2FsZW5kYXIrdHdvRGlnaXRZZWFyTWF4
AwAAAAAAK1N5c3RlbS5HbG9iYWxpemF0aW9uLkdyZWdvcmlhbkNhbGVuZGFyVHlwZXMICAgBCAT+//// AwAAAAAAK1N5c3RlbS5HbG9iYWxpemF0aW9uLkdyZWdvcmlhbkNhbGVuZGFyVHlwZXMICAgBCAT+////
K1N5c3RlbS5HbG9iYWxpemF0aW9uLkdyZWdvcmlhbkNhbGVuZGFyVHlwZXMBAAAAB3ZhbHVlX18ACAEA K1N5c3RlbS5HbG9iYWxpemF0aW9uLkdyZWdvcmlhbkNhbGVuZGFyVHlwZXMBAAAAB3ZhbHVlX18ACAEA
AAD/////AQgAAP////8AAQgAAAs= AAD///////////////8A/////ws=
</value> </value>
</data> </data>
<metadata name="bs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>521, 17</value>
</metadata>
<metadata name="ta.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>585, 17</value>
</metadata>
</root> </root>

View File

@@ -2493,6 +2493,8 @@ namespace FBS0000 {
private global::System.Data.DataColumn columnwdate; private global::System.Data.DataColumn columnwdate;
private global::System.Data.DataColumn columnindate;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public EETGW_WorkTableUserDataTable() { public EETGW_WorkTableUserDataTable() {
@@ -2598,6 +2600,14 @@ namespace FBS0000 {
} }
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public global::System.Data.DataColumn indateColumn {
get {
return this.columnindate;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
[global::System.ComponentModel.Browsable(false)] [global::System.ComponentModel.Browsable(false)]
@@ -2635,7 +2645,7 @@ namespace FBS0000 {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public EETGW_WorkTableUserRow AddEETGW_WorkTableUserRow(string gcode, string grp, int seq, string grade, string empno, string name, string wuid, System.DateTime wdate) { public EETGW_WorkTableUserRow AddEETGW_WorkTableUserRow(string gcode, string grp, int seq, string grade, string empno, string name, string wuid, System.DateTime wdate, string indate) {
EETGW_WorkTableUserRow rowEETGW_WorkTableUserRow = ((EETGW_WorkTableUserRow)(this.NewRow())); EETGW_WorkTableUserRow rowEETGW_WorkTableUserRow = ((EETGW_WorkTableUserRow)(this.NewRow()));
object[] columnValuesArray = new object[] { object[] columnValuesArray = new object[] {
null, null,
@@ -2646,7 +2656,8 @@ namespace FBS0000 {
empno, empno,
name, name,
wuid, wuid,
wdate}; wdate,
indate};
rowEETGW_WorkTableUserRow.ItemArray = columnValuesArray; rowEETGW_WorkTableUserRow.ItemArray = columnValuesArray;
this.Rows.Add(rowEETGW_WorkTableUserRow); this.Rows.Add(rowEETGW_WorkTableUserRow);
return rowEETGW_WorkTableUserRow; return rowEETGW_WorkTableUserRow;
@@ -2685,6 +2696,7 @@ namespace FBS0000 {
this.columnname = base.Columns["name"]; this.columnname = base.Columns["name"];
this.columnwuid = base.Columns["wuid"]; this.columnwuid = base.Columns["wuid"];
this.columnwdate = base.Columns["wdate"]; this.columnwdate = base.Columns["wdate"];
this.columnindate = base.Columns["indate"];
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -2708,6 +2720,8 @@ namespace FBS0000 {
base.Columns.Add(this.columnwuid); base.Columns.Add(this.columnwuid);
this.columnwdate = new global::System.Data.DataColumn("wdate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); this.columnwdate = new global::System.Data.DataColumn("wdate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnwdate); base.Columns.Add(this.columnwdate);
this.columnindate = new global::System.Data.DataColumn("indate", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnindate);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnidx}, true)); this.columnidx}, true));
this.columnidx.AutoIncrement = true; this.columnidx.AutoIncrement = true;
@@ -2725,6 +2739,7 @@ namespace FBS0000 {
this.columnwuid.AllowDBNull = false; this.columnwuid.AllowDBNull = false;
this.columnwuid.MaxLength = 20; this.columnwuid.MaxLength = 20;
this.columnwdate.AllowDBNull = false; this.columnwdate.AllowDBNull = false;
this.columnindate.MaxLength = 10;
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -4265,6 +4280,22 @@ namespace FBS0000 {
} }
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public string indate {
get {
if (this.IsindateNull()) {
return string.Empty;
}
else {
return ((string)(this[this.tableEETGW_WorkTableUser.indateColumn]));
}
}
set {
this[this.tableEETGW_WorkTableUser.indateColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public bool IsgrpNull() { public bool IsgrpNull() {
@@ -4324,6 +4355,18 @@ namespace FBS0000 {
public void SetnameNull() { public void SetnameNull() {
this[this.tableEETGW_WorkTableUser.nameColumn] = global::System.Convert.DBNull; this[this.tableEETGW_WorkTableUser.nameColumn] = global::System.Convert.DBNull;
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public bool IsindateNull() {
return this.IsNull(this.tableEETGW_WorkTableUser.indateColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public void SetindateNull() {
this[this.tableEETGW_WorkTableUser.indateColumn] = global::System.Convert.DBNull;
}
} }
/// <summary> /// <summary>
@@ -6090,7 +6133,7 @@ SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
private void InitCommandCollection() { private void InitCommandCollection() {
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = @"SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail, mailsend, reason, wuid, wdate, termDr, gcode, DrTime, CrTime, dbo.getUserName(uid) AS UserName this._commandCollection[0].CommandText = @"SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail, mailsend, reason, wuid, wdate, termDr, gcode, DrTime, CrTime, dbo.getUserName(uid) AS UserName
@@ -6104,12 +6147,25 @@ ORDER BY sdate, edate, uid";
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[1].Connection = this.Connection; this._commandCollection[1].Connection = this.Connection;
this._commandCollection[1].CommandText = "SELECT CrTime, DrTime, cate, contents, edate, gcode, idx, mail, mailsend, reason" + this._commandCollection[1].CommandText = @"SELECT Holyday.idx, Holyday.cate, Holyday.result, Holyday.sdate, Holyday.edate, Holyday.term, Holyday.title, Holyday.contents, Holyday.uid, Holyday.tolist, Holyday.mail, Holyday.mailsend,
Holyday.reason, Holyday.wuid, Holyday.wdate, Holyday.termDr, Holyday.gcode, Holyday.DrTime, Holyday.CrTime, dbo.getUserName(Holyday.uid) AS UserName
FROM Holyday LEFT OUTER JOIN
EETGW_WorkTableUser ON Holyday.gcode = EETGW_WorkTableUser.gcode AND Holyday.uid = EETGW_WorkTableUser.empno
WHERE (Holyday.sdate >= @sd) AND (Holyday.edate <= @ed) AND (Holyday.gcode = @gcode) AND (EETGW_WorkTableUser.grp = @grp)
ORDER BY Holyday.sdate, Holyday.edate, Holyday.uid";
this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sd", global::System.Data.SqlDbType.Date, 3, global::System.Data.ParameterDirection.Input, 0, 0, "sdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ed", global::System.Data.SqlDbType.Date, 3, global::System.Data.ParameterDirection.Input, 0, 0, "edate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@grp", global::System.Data.SqlDbType.VarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "grp", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[2].Connection = this.Connection;
this._commandCollection[2].CommandText = "SELECT CrTime, DrTime, cate, contents, edate, gcode, idx, mail, mailsend, reason" +
", result, sdate, term, termDr, title, tolist, uid, wdate, wuid, dbo.getUserName(" + ", result, sdate, term, termDr, title, tolist, uid, wdate, wuid, dbo.getUserName(" +
"uid) AS UserName\r\nFROM Holyday\r\nWHERE (gcode = @gcode) AND (idx = @idx)"; "uid) AS UserName\r\nFROM Holyday\r\nWHERE (gcode = @gcode) AND (idx = @idx)";
this._commandCollection[1].CommandType = global::System.Data.CommandType.Text; this._commandCollection[2].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -6188,8 +6244,80 @@ ORDER BY sdate, edate, uid";
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)]
public virtual int FillByIdx(dsMSSQL.HolydayDataTable dataTable, string gcode, int idx) { public virtual int FillByGrp(dsMSSQL.HolydayDataTable dataTable, string sd, string ed, string gcode, string grp) {
this.Adapter.SelectCommand = this.CommandCollection[1]; this.Adapter.SelectCommand = this.CommandCollection[1];
if ((sd == null)) {
this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[0].Value = ((string)(sd));
}
if ((ed == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(ed));
}
if ((gcode == null)) {
throw new global::System.ArgumentNullException("gcode");
}
else {
this.Adapter.SelectCommand.Parameters[2].Value = ((string)(gcode));
}
if ((grp == null)) {
this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[3].Value = ((string)(grp));
}
if ((this.ClearBeforeFill == true)) {
dataTable.Clear();
}
int returnValue = this.Adapter.Fill(dataTable);
return returnValue;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual dsMSSQL.HolydayDataTable GetByGrp(string sd, string ed, string gcode, string grp) {
this.Adapter.SelectCommand = this.CommandCollection[1];
if ((sd == null)) {
this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[0].Value = ((string)(sd));
}
if ((ed == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(ed));
}
if ((gcode == null)) {
throw new global::System.ArgumentNullException("gcode");
}
else {
this.Adapter.SelectCommand.Parameters[2].Value = ((string)(gcode));
}
if ((grp == null)) {
this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[3].Value = ((string)(grp));
}
dsMSSQL.HolydayDataTable dataTable = new dsMSSQL.HolydayDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)]
public virtual int FillByIdx(dsMSSQL.HolydayDataTable dataTable, string gcode, int idx) {
this.Adapter.SelectCommand = this.CommandCollection[2];
if ((gcode == null)) { if ((gcode == null)) {
throw new global::System.ArgumentNullException("gcode"); throw new global::System.ArgumentNullException("gcode");
} }
@@ -6209,7 +6337,7 @@ ORDER BY sdate, edate, uid";
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual dsMSSQL.HolydayDataTable GetbyIdx(string gcode, int idx) { public virtual dsMSSQL.HolydayDataTable GetbyIdx(string gcode, int idx) {
this.Adapter.SelectCommand = this.CommandCollection[1]; this.Adapter.SelectCommand = this.CommandCollection[2];
if ((gcode == null)) { if ((gcode == null)) {
throw new global::System.ArgumentNullException("gcode"); throw new global::System.ArgumentNullException("gcode");
} }
@@ -7438,10 +7566,11 @@ ORDER BY sdate, edate, uid";
tableMapping.ColumnMappings.Add("name", "name"); tableMapping.ColumnMappings.Add("name", "name");
tableMapping.ColumnMappings.Add("wuid", "wuid"); tableMapping.ColumnMappings.Add("wuid", "wuid");
tableMapping.ColumnMappings.Add("wdate", "wdate"); tableMapping.ColumnMappings.Add("wdate", "wdate");
tableMapping.ColumnMappings.Add("indate", "indate");
this._adapter.TableMappings.Add(tableMapping); this._adapter.TableMappings.Add(tableMapping);
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.DeleteCommand.Connection = this.Connection; this._adapter.DeleteCommand.Connection = this.Connection;
this._adapter.DeleteCommand.CommandText = @"DELETE FROM [EETGW_WorkTableUser] WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ((@IsNull_grp = 1 AND [grp] IS NULL) OR ([grp] = @Original_grp)) AND ((@IsNull_seq = 1 AND [seq] IS NULL) OR ([seq] = @Original_seq)) AND ((@IsNull_grade = 1 AND [grade] IS NULL) OR ([grade] = @Original_grade)) AND ((@IsNull_empno = 1 AND [empno] IS NULL) OR ([empno] = @Original_empno)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate))"; this._adapter.DeleteCommand.CommandText = @"DELETE FROM [EETGW_WorkTableUser] WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ((@IsNull_grp = 1 AND [grp] IS NULL) OR ([grp] = @Original_grp)) AND ((@IsNull_seq = 1 AND [seq] IS NULL) OR ([seq] = @Original_seq)) AND ((@IsNull_grade = 1 AND [grade] IS NULL) OR ([grade] = @Original_grade)) AND ((@IsNull_empno = 1 AND [empno] IS NULL) OR ([empno] = @Original_empno)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_indate = 1 AND [indate] IS NULL) OR ([indate] = @Original_indate)))";
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
@@ -7457,10 +7586,12 @@ ORDER BY sdate, edate, uid";
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_indate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "indate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_indate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "indate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.InsertCommand.Connection = this.Connection; this._adapter.InsertCommand.Connection = this.Connection;
this._adapter.InsertCommand.CommandText = @"INSERT INTO [EETGW_WorkTableUser] ([gcode], [grp], [seq], [grade], [empno], [name], [wuid], [wdate]) VALUES (@gcode, @grp, @seq, @grade, @empno, @name, @wuid, @wdate); this._adapter.InsertCommand.CommandText = @"INSERT INTO [EETGW_WorkTableUser] ([gcode], [grp], [seq], [grade], [empno], [name], [wuid], [wdate], [indate]) VALUES (@gcode, @grp, @seq, @grade, @empno, @name, @wuid, @wdate, @indate);
SELECT idx, gcode, grp, seq, grade, empno, name, wuid, wdate FROM EETGW_WorkTableUser WHERE (idx = SCOPE_IDENTITY()) ORDER BY seq"; SELECT idx, gcode, grp, seq, grade, empno, name, wuid, wdate, indate FROM EETGW_WorkTableUser WHERE (idx = SCOPE_IDENTITY()) ORDER BY seq";
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@grp", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "grp", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@grp", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "grp", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -7470,10 +7601,11 @@ SELECT idx, gcode, grp, seq, grade, empno, name, wuid, wdate FROM EETGW_WorkTabl
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@indate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "indate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.UpdateCommand.Connection = this.Connection; this._adapter.UpdateCommand.Connection = this.Connection;
this._adapter.UpdateCommand.CommandText = @"UPDATE [EETGW_WorkTableUser] SET [gcode] = @gcode, [grp] = @grp, [seq] = @seq, [grade] = @grade, [empno] = @empno, [name] = @name, [wuid] = @wuid, [wdate] = @wdate WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ((@IsNull_grp = 1 AND [grp] IS NULL) OR ([grp] = @Original_grp)) AND ((@IsNull_seq = 1 AND [seq] IS NULL) OR ([seq] = @Original_seq)) AND ((@IsNull_grade = 1 AND [grade] IS NULL) OR ([grade] = @Original_grade)) AND ((@IsNull_empno = 1 AND [empno] IS NULL) OR ([empno] = @Original_empno)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate)); this._adapter.UpdateCommand.CommandText = @"UPDATE [EETGW_WorkTableUser] SET [gcode] = @gcode, [grp] = @grp, [seq] = @seq, [grade] = @grade, [empno] = @empno, [name] = @name, [wuid] = @wuid, [wdate] = @wdate, [indate] = @indate WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ((@IsNull_grp = 1 AND [grp] IS NULL) OR ([grp] = @Original_grp)) AND ((@IsNull_seq = 1 AND [seq] IS NULL) OR ([seq] = @Original_seq)) AND ((@IsNull_grade = 1 AND [grade] IS NULL) OR ([grade] = @Original_grade)) AND ((@IsNull_empno = 1 AND [empno] IS NULL) OR ([empno] = @Original_empno)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_indate = 1 AND [indate] IS NULL) OR ([indate] = @Original_indate)));
SELECT idx, gcode, grp, seq, grade, empno, name, wuid, wdate FROM EETGW_WorkTableUser WHERE (idx = @idx) ORDER BY seq"; SELECT idx, gcode, grp, seq, grade, empno, name, wuid, wdate, indate FROM EETGW_WorkTableUser WHERE (idx = @idx) ORDER BY seq";
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@grp", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "grp", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@grp", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "grp", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -7483,6 +7615,7 @@ SELECT idx, gcode, grp, seq, grade, empno, name, wuid, wdate FROM EETGW_WorkTabl
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@indate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "indate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_grp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "grp", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_grp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "grp", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
@@ -7497,6 +7630,8 @@ SELECT idx, gcode, grp, seq, grade, empno, name, wuid, wdate FROM EETGW_WorkTabl
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_indate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "indate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_indate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "indate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
} }
@@ -7510,14 +7645,21 @@ SELECT idx, gcode, grp, seq, grade, empno, name, wuid, wdate FROM EETGW_WorkTabl
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
private void InitCommandCollection() { private void InitCommandCollection() {
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT idx, gcode, grp, seq, grade, empno, name, wuid, wdate\r\nFROM EETGW_Wor" + this._commandCollection[0].CommandText = "SELECT idx, gcode, grp, seq, grade, empno, name, wuid, wdate, indate\r\nFROM E" +
"kTableUser\r\nWHERE (gcode = @gcode) AND (grp = @grp)\r\nORDER BY seq"; "ETGW_WorkTableUser\r\nWHERE (gcode = @gcode) AND (grp = @grp)\r\nORDER BY seq";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@grp", global::System.Data.SqlDbType.VarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "grp", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@grp", global::System.Data.SqlDbType.VarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "grp", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[1].Connection = this.Connection;
this._commandCollection[1].CommandText = "SELECT empno, gcode, grade, grp, idx, indate, name, seq, wdate, wuid FROM EETGW_W" +
"orkTableUser WHERE (gcode = @gcode) AND (empno = @empno)";
this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@empno", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "empno", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -7568,6 +7710,54 @@ SELECT idx, gcode, grp, seq, grade, empno, name, wuid, wdate FROM EETGW_WorkTabl
return dataTable; return dataTable;
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)]
public virtual int FillbyEmpNo(dsMSSQL.EETGW_WorkTableUserDataTable dataTable, string gcode, string empno) {
this.Adapter.SelectCommand = this.CommandCollection[1];
if ((gcode == null)) {
throw new global::System.ArgumentNullException("gcode");
}
else {
this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode));
}
if ((empno == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(empno));
}
if ((this.ClearBeforeFill == true)) {
dataTable.Clear();
}
int returnValue = this.Adapter.Fill(dataTable);
return returnValue;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual dsMSSQL.EETGW_WorkTableUserDataTable GetbyEmpNo(string gcode, string empno) {
this.Adapter.SelectCommand = this.CommandCollection[1];
if ((gcode == null)) {
throw new global::System.ArgumentNullException("gcode");
}
else {
this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode));
}
if ((empno == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(empno));
}
dsMSSQL.EETGW_WorkTableUserDataTable dataTable = new dsMSSQL.EETGW_WorkTableUserDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
@@ -7598,6 +7788,84 @@ SELECT idx, gcode, grp, seq, grade, empno, name, wuid, wdate FROM EETGW_WorkTabl
} }
} }
/// <summary>
///Represents the connection and commands used to retrieve and save data.
///</summary>
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
[global::System.ComponentModel.ToolboxItem(true)]
[global::System.ComponentModel.DataObjectAttribute(true)]
[global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public partial class QueriesTableAdapter : global::System.ComponentModel.Component {
private global::System.Data.IDbCommand[] _commandCollection;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
protected global::System.Data.IDbCommand[] CommandCollection {
get {
if ((this._commandCollection == null)) {
this.InitCommandCollection();
}
return this._commandCollection;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
private void InitCommandCollection() {
this._commandCollection = new global::System.Data.IDbCommand[1];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).Connection = new global::System.Data.SqlClient.SqlConnection(global::FBS0000.Properties.Settings.Default.gwcs);
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).CommandText = "SELECT ISNULL(grp, \'\') AS grp\r\nFROM EETGW_WorkTableUser\r\nWHERE (gcode = @gc" +
"ode) AND (empno = @empno)";
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).CommandType = global::System.Data.CommandType.Text;
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@empno", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "empno", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual string GetGrpName(string gcode, string empno) {
global::System.Data.SqlClient.SqlCommand command = ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[0]));
if ((gcode == null)) {
throw new global::System.ArgumentNullException("gcode");
}
else {
command.Parameters[0].Value = ((string)(gcode));
}
if ((empno == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
}
else {
command.Parameters[1].Value = ((string)(empno));
}
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
command.Connection.Open();
}
object returnValue;
try {
returnValue = command.ExecuteScalar();
}
finally {
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
command.Connection.Close();
}
}
if (((returnValue == null)
|| (returnValue.GetType() == typeof(global::System.DBNull)))) {
return null;
}
else {
return ((string)(returnValue));
}
}
}
/// <summary> /// <summary>
///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
///</summary> ///</summary>

View File

@@ -2,7 +2,7 @@
<xs:schema id="dsMSSQL" targetNamespace="http://tempuri.org/dsMSSQL.xsd" xmlns:mstns="http://tempuri.org/dsMSSQL.xsd" xmlns="http://tempuri.org/dsMSSQL.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified"> <xs:schema id="dsMSSQL" targetNamespace="http://tempuri.org/dsMSSQL.xsd" xmlns:mstns="http://tempuri.org/dsMSSQL.xsd" xmlns="http://tempuri.org/dsMSSQL.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
<xs:annotation> <xs:annotation>
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource"> <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
<DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource"> <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" GeneratorFunctionsComponentClassName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" UserFunctionsComponentName="QueriesTableAdapter" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<Connections> <Connections>
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="gwcs" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="gwcs (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.FBS0000.Properties.Settings.GlobalReference.Default.gwcs" Provider="System.Data.SqlClient" /> <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="gwcs" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="gwcs (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.FBS0000.Properties.Settings.GlobalReference.Default.gwcs" Provider="System.Data.SqlClient" />
</Connections> </Connections>
@@ -385,6 +385,24 @@ SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail
<Mapping SourceColumn="UserName" DataSetColumn="UserName" /> <Mapping SourceColumn="UserName" DataSetColumn="UserName" />
</Mappings> </Mappings>
<Sources> <Sources>
<DbSource ConnectionRef="gwcs (Settings)" DbObjectName="EE.dbo.Holyday" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByGrp" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetByGrp" GeneratorSourceName="FillByGrp" GetMethodModifier="Public" GetMethodName="GetByGrp" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetByGrp" UserSourceName="FillByGrp">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT Holyday.idx, Holyday.cate, Holyday.result, Holyday.sdate, Holyday.edate, Holyday.term, Holyday.title, Holyday.contents, Holyday.uid, Holyday.tolist, Holyday.mail, Holyday.mailsend,
Holyday.reason, Holyday.wuid, Holyday.wdate, Holyday.termDr, Holyday.gcode, Holyday.DrTime, Holyday.CrTime, dbo.getUserName(Holyday.uid) AS UserName
FROM Holyday LEFT OUTER JOIN
EETGW_WorkTableUser ON Holyday.gcode = EETGW_WorkTableUser.gcode AND Holyday.uid = EETGW_WorkTableUser.empno
WHERE (Holyday.sdate &gt;= @sd) AND (Holyday.edate &lt;= @ed) AND (Holyday.gcode = @gcode) AND (EETGW_WorkTableUser.grp = @grp)
ORDER BY Holyday.sdate, Holyday.edate, Holyday.uid</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="sd" ColumnName="sdate" DataSourceName="EE.dbo.Holyday" DataTypeServer="date" DbType="AnsiString" Direction="Input" ParameterName="@sd" Precision="0" ProviderType="Date" Scale="0" Size="3" SourceColumn="sdate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="ed" ColumnName="edate" DataSourceName="EE.dbo.Holyday" DataTypeServer="date" DbType="AnsiString" Direction="Input" ParameterName="@ed" Precision="0" ProviderType="Date" Scale="0" Size="3" SourceColumn="edate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="gcode" ColumnName="gcode" DataSourceName="EE.dbo.Holyday" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="grp" ColumnName="grp" DataSourceName="EE.dbo.EETGW_WorkTableUser" DataTypeServer="varchar(100)" DbType="AnsiString" Direction="Input" ParameterName="@grp" Precision="0" ProviderType="VarChar" Scale="0" Size="100" SourceColumn="grp" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="gwcs (Settings)" DbObjectName="EE.dbo.Holyday" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByIdx" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetbyIdx" GeneratorSourceName="FillByIdx" GetMethodModifier="Public" GetMethodName="GetbyIdx" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetbyIdx" UserSourceName="FillByIdx"> <DbSource ConnectionRef="gwcs (Settings)" DbObjectName="EE.dbo.Holyday" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByIdx" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetbyIdx" GeneratorSourceName="FillByIdx" GetMethodModifier="Public" GetMethodName="GetbyIdx" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetbyIdx" UserSourceName="FillByIdx">
<SelectCommand> <SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true"> <DbCommand CommandType="Text" ModifiedByUser="true">
@@ -471,7 +489,7 @@ ORDER BY grp</CommandText>
<DbSource ConnectionRef="gwcs (Settings)" DbObjectName="EE.dbo.EETGW_WorkTableUser" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill"> <DbSource ConnectionRef="gwcs (Settings)" DbObjectName="EE.dbo.EETGW_WorkTableUser" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<DeleteCommand> <DeleteCommand>
<DbCommand CommandType="Text" ModifiedByUser="false"> <DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>DELETE FROM [EETGW_WorkTableUser] WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ((@IsNull_grp = 1 AND [grp] IS NULL) OR ([grp] = @Original_grp)) AND ((@IsNull_seq = 1 AND [seq] IS NULL) OR ([seq] = @Original_seq)) AND ((@IsNull_grade = 1 AND [grade] IS NULL) OR ([grade] = @Original_grade)) AND ((@IsNull_empno = 1 AND [empno] IS NULL) OR ([empno] = @Original_empno)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate))</CommandText> <CommandText>DELETE FROM [EETGW_WorkTableUser] WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ((@IsNull_grp = 1 AND [grp] IS NULL) OR ([grp] = @Original_grp)) AND ((@IsNull_seq = 1 AND [seq] IS NULL) OR ([seq] = @Original_seq)) AND ((@IsNull_grade = 1 AND [grade] IS NULL) OR ([grade] = @Original_grade)) AND ((@IsNull_empno = 1 AND [empno] IS NULL) OR ([empno] = @Original_empno)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_indate = 1 AND [indate] IS NULL) OR ([indate] = @Original_indate)))</CommandText>
<Parameters> <Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idx" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idx" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Original" />
@@ -487,13 +505,15 @@ ORDER BY grp</CommandText>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="name" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="name" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_wuid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_wuid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_wdate" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_wdate" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_indate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="indate" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_indate" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="indate" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters> </Parameters>
</DbCommand> </DbCommand>
</DeleteCommand> </DeleteCommand>
<InsertCommand> <InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false"> <DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO [EETGW_WorkTableUser] ([gcode], [grp], [seq], [grade], [empno], [name], [wuid], [wdate]) VALUES (@gcode, @grp, @seq, @grade, @empno, @name, @wuid, @wdate); <CommandText>INSERT INTO [EETGW_WorkTableUser] ([gcode], [grp], [seq], [grade], [empno], [name], [wuid], [wdate], [indate]) VALUES (@gcode, @grp, @seq, @grade, @empno, @name, @wuid, @wdate, @indate);
SELECT idx, gcode, grp, seq, grade, empno, name, wuid, wdate FROM EETGW_WorkTableUser WHERE (idx = SCOPE_IDENTITY()) ORDER BY seq</CommandText> SELECT idx, gcode, grp, seq, grade, empno, name, wuid, wdate, indate FROM EETGW_WorkTableUser WHERE (idx = SCOPE_IDENTITY()) ORDER BY seq</CommandText>
<Parameters> <Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@grp" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="grp" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@grp" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="grp" SourceColumnNullMapping="false" SourceVersion="Current" />
@@ -503,12 +523,13 @@ SELECT idx, gcode, grp, seq, grade, empno, name, wuid, wdate FROM EETGW_WorkTabl
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="name" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="name" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@wuid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@wuid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@wdate" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@wdate" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@indate" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="indate" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters> </Parameters>
</DbCommand> </DbCommand>
</InsertCommand> </InsertCommand>
<SelectCommand> <SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false"> <DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT idx, gcode, grp, seq, grade, empno, name, wuid, wdate <CommandText>SELECT idx, gcode, grp, seq, grade, empno, name, wuid, wdate, indate
FROM EETGW_WorkTableUser FROM EETGW_WorkTableUser
WHERE (gcode = @gcode) AND (grp = @grp) WHERE (gcode = @gcode) AND (grp = @grp)
ORDER BY seq</CommandText> ORDER BY seq</CommandText>
@@ -520,8 +541,8 @@ ORDER BY seq</CommandText>
</SelectCommand> </SelectCommand>
<UpdateCommand> <UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false"> <DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE [EETGW_WorkTableUser] SET [gcode] = @gcode, [grp] = @grp, [seq] = @seq, [grade] = @grade, [empno] = @empno, [name] = @name, [wuid] = @wuid, [wdate] = @wdate WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ((@IsNull_grp = 1 AND [grp] IS NULL) OR ([grp] = @Original_grp)) AND ((@IsNull_seq = 1 AND [seq] IS NULL) OR ([seq] = @Original_seq)) AND ((@IsNull_grade = 1 AND [grade] IS NULL) OR ([grade] = @Original_grade)) AND ((@IsNull_empno = 1 AND [empno] IS NULL) OR ([empno] = @Original_empno)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate)); <CommandText>UPDATE [EETGW_WorkTableUser] SET [gcode] = @gcode, [grp] = @grp, [seq] = @seq, [grade] = @grade, [empno] = @empno, [name] = @name, [wuid] = @wuid, [wdate] = @wdate, [indate] = @indate WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ((@IsNull_grp = 1 AND [grp] IS NULL) OR ([grp] = @Original_grp)) AND ((@IsNull_seq = 1 AND [seq] IS NULL) OR ([seq] = @Original_seq)) AND ((@IsNull_grade = 1 AND [grade] IS NULL) OR ([grade] = @Original_grade)) AND ((@IsNull_empno = 1 AND [empno] IS NULL) OR ([empno] = @Original_empno)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_indate = 1 AND [indate] IS NULL) OR ([indate] = @Original_indate)));
SELECT idx, gcode, grp, seq, grade, empno, name, wuid, wdate FROM EETGW_WorkTableUser WHERE (idx = @idx) ORDER BY seq</CommandText> SELECT idx, gcode, grp, seq, grade, empno, name, wuid, wdate, indate FROM EETGW_WorkTableUser WHERE (idx = @idx) ORDER BY seq</CommandText>
<Parameters> <Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@grp" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="grp" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@grp" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="grp" SourceColumnNullMapping="false" SourceVersion="Current" />
@@ -531,6 +552,7 @@ SELECT idx, gcode, grp, seq, grade, empno, name, wuid, wdate FROM EETGW_WorkTabl
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="name" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="name" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@wuid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@wuid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@wdate" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@wdate" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@indate" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="indate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idx" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idx" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_grp" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="grp" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_grp" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="grp" SourceColumnNullMapping="true" SourceVersion="Original" />
@@ -545,6 +567,8 @@ SELECT idx, gcode, grp, seq, grade, empno, name, wuid, wdate FROM EETGW_WorkTabl
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="name" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="name" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_wuid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_wuid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_wdate" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_wdate" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_indate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="indate" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_indate" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="indate" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="idx" ColumnName="idx" DataSourceName="EE.dbo.EETGW_WorkTableUser" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="false" AutogeneratedName="idx" ColumnName="idx" DataSourceName="EE.dbo.EETGW_WorkTableUser" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters> </Parameters>
</DbCommand> </DbCommand>
@@ -561,18 +585,45 @@ SELECT idx, gcode, grp, seq, grade, empno, name, wuid, wdate FROM EETGW_WorkTabl
<Mapping SourceColumn="name" DataSetColumn="name" /> <Mapping SourceColumn="name" DataSetColumn="name" />
<Mapping SourceColumn="wuid" DataSetColumn="wuid" /> <Mapping SourceColumn="wuid" DataSetColumn="wuid" />
<Mapping SourceColumn="wdate" DataSetColumn="wdate" /> <Mapping SourceColumn="wdate" DataSetColumn="wdate" />
<Mapping SourceColumn="indate" DataSetColumn="indate" />
</Mappings> </Mappings>
<Sources /> <Sources>
<DbSource ConnectionRef="gwcs (Settings)" DbObjectName="EE.dbo.EETGW_WorkTableUser" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillbyEmpNo" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetbyEmpNo" GeneratorSourceName="FillbyEmpNo" GetMethodModifier="Public" GetMethodName="GetbyEmpNo" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetbyEmpNo" UserSourceName="FillbyEmpNo">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT empno, gcode, grade, grp, idx, indate, name, seq, wdate, wuid FROM EETGW_WorkTableUser WHERE (gcode = @gcode) AND (empno = @empno)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="gcode" ColumnName="gcode" DataSourceName="EE.dbo.EETGW_WorkTableUser" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="empno" ColumnName="empno" DataSourceName="EE.dbo.EETGW_WorkTableUser" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@empno" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="empno" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</Sources>
</TableAdapter> </TableAdapter>
</Tables> </Tables>
<Sources /> <Sources>
<DbSource ConnectionRef="gwcs (Settings)" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="GetGrpName" MethodsParameterType="CLR" Modifier="Public" Name="GetGrpName" QueryType="Scalar" ScalarCallRetval="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="GetGrpName">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT ISNULL(grp, '') AS grp
FROM EETGW_WorkTableUser
WHERE (gcode = @gcode) AND (empno = @empno)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="gcode" ColumnName="gcode" DataSourceName="EE.dbo.EETGW_WorkTableUser" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="empno" ColumnName="empno" DataSourceName="EE.dbo.EETGW_WorkTableUser" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@empno" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="empno" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</Sources>
</DataSource> </DataSource>
</xs:appinfo> </xs:appinfo>
</xs:annotation> </xs:annotation>
<xs:element name="dsMSSQL" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="dsMSSQL" msprop:Generator_UserDSName="dsMSSQL"> <xs:element name="dsMSSQL" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="dsMSSQL" msprop:Generator_UserDSName="dsMSSQL">
<xs:complexType> <xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="minutes" msprop:Generator_TableClassName="minutesDataTable" msprop:Generator_TableVarName="tableminutes" msprop:Generator_RowChangedName="minutesRowChanged" msprop:Generator_TablePropName="minutes" msprop:Generator_RowDeletingName="minutesRowDeleting" msprop:Generator_RowChangingName="minutesRowChanging" msprop:Generator_RowEvHandlerName="minutesRowChangeEventHandler" msprop:Generator_RowDeletedName="minutesRowDeleted" msprop:Generator_RowClassName="minutesRow" msprop:Generator_UserTableName="minutes" msprop:Generator_RowEvArgName="minutesRowChangeEvent"> <xs:element name="minutes" msprop:Generator_TableClassName="minutesDataTable" msprop:Generator_TableVarName="tableminutes" msprop:Generator_TablePropName="minutes" msprop:Generator_RowDeletingName="minutesRowDeleting" msprop:Generator_RowChangingName="minutesRowChanging" msprop:Generator_RowEvHandlerName="minutesRowChangeEventHandler" msprop:Generator_RowDeletedName="minutesRowDeleted" msprop:Generator_UserTableName="minutes" msprop:Generator_RowChangedName="minutesRowChanged" msprop:Generator_RowEvArgName="minutesRowChangeEvent" msprop:Generator_RowClassName="minutesRow">
<xs:complexType> <xs:complexType>
<xs:sequence> <xs:sequence>
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" /> <xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" />
@@ -632,7 +683,7 @@ SELECT idx, gcode, grp, seq, grade, empno, name, wuid, wdate FROM EETGW_WorkTabl
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
<xs:element name="Board" msprop:Generator_TableClassName="BoardDataTable" msprop:Generator_TableVarName="tableBoard" msprop:Generator_RowChangedName="BoardRowChanged" msprop:Generator_TablePropName="Board" msprop:Generator_RowDeletingName="BoardRowDeleting" msprop:Generator_RowChangingName="BoardRowChanging" msprop:Generator_RowEvHandlerName="BoardRowChangeEventHandler" msprop:Generator_RowDeletedName="BoardRowDeleted" msprop:Generator_RowClassName="BoardRow" msprop:Generator_UserTableName="Board" msprop:Generator_RowEvArgName="BoardRowChangeEvent"> <xs:element name="Board" msprop:Generator_TableClassName="BoardDataTable" msprop:Generator_TableVarName="tableBoard" msprop:Generator_TablePropName="Board" msprop:Generator_RowDeletingName="BoardRowDeleting" msprop:Generator_RowChangingName="BoardRowChanging" msprop:Generator_RowEvHandlerName="BoardRowChangeEventHandler" msprop:Generator_RowDeletedName="BoardRowDeleted" msprop:Generator_UserTableName="Board" msprop:Generator_RowChangedName="BoardRowChanged" msprop:Generator_RowEvArgName="BoardRowChangeEvent" msprop:Generator_RowClassName="BoardRow">
<xs:complexType> <xs:complexType>
<xs:sequence> <xs:sequence>
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" /> <xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" />
@@ -684,7 +735,7 @@ SELECT idx, gcode, grp, seq, grade, empno, name, wuid, wdate FROM EETGW_WorkTabl
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
<xs:element name="Holyday" msprop:Generator_TableClassName="HolydayDataTable" msprop:Generator_TableVarName="tableHolyday" msprop:Generator_RowChangedName="HolydayRowChanged" msprop:Generator_TablePropName="Holyday" msprop:Generator_RowDeletingName="HolydayRowDeleting" msprop:Generator_RowChangingName="HolydayRowChanging" msprop:Generator_RowEvHandlerName="HolydayRowChangeEventHandler" msprop:Generator_RowDeletedName="HolydayRowDeleted" msprop:Generator_RowClassName="HolydayRow" msprop:Generator_UserTableName="Holyday" msprop:Generator_RowEvArgName="HolydayRowChangeEvent"> <xs:element name="Holyday" msprop:Generator_TableClassName="HolydayDataTable" msprop:Generator_TableVarName="tableHolyday" msprop:Generator_TablePropName="Holyday" msprop:Generator_RowDeletingName="HolydayRowDeleting" msprop:Generator_RowChangingName="HolydayRowChanging" msprop:Generator_RowEvHandlerName="HolydayRowChangeEventHandler" msprop:Generator_RowDeletedName="HolydayRowDeleted" msprop:Generator_UserTableName="Holyday" msprop:Generator_RowChangedName="HolydayRowChanged" msprop:Generator_RowEvArgName="HolydayRowChangeEvent" msprop:Generator_RowClassName="HolydayRow">
<xs:complexType> <xs:complexType>
<xs:sequence> <xs:sequence>
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" /> <xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" />
@@ -770,7 +821,7 @@ SELECT idx, gcode, grp, seq, grade, empno, name, wuid, wdate FROM EETGW_WorkTabl
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
<xs:element name="vHoliday_uselist" msprop:Generator_TableClassName="vHoliday_uselistDataTable" msprop:Generator_TableVarName="tablevHoliday_uselist" msprop:Generator_RowChangedName="vHoliday_uselistRowChanged" msprop:Generator_TablePropName="vHoliday_uselist" msprop:Generator_RowDeletingName="vHoliday_uselistRowDeleting" msprop:Generator_RowChangingName="vHoliday_uselistRowChanging" msprop:Generator_RowEvHandlerName="vHoliday_uselistRowChangeEventHandler" msprop:Generator_RowDeletedName="vHoliday_uselistRowDeleted" msprop:Generator_RowClassName="vHoliday_uselistRow" msprop:Generator_UserTableName="vHoliday_uselist" msprop:Generator_RowEvArgName="vHoliday_uselistRowChangeEvent"> <xs:element name="vHoliday_uselist" msprop:Generator_TableClassName="vHoliday_uselistDataTable" msprop:Generator_TableVarName="tablevHoliday_uselist" msprop:Generator_TablePropName="vHoliday_uselist" msprop:Generator_RowDeletingName="vHoliday_uselistRowDeleting" msprop:Generator_RowChangingName="vHoliday_uselistRowChanging" msprop:Generator_RowEvHandlerName="vHoliday_uselistRowChangeEventHandler" msprop:Generator_RowDeletedName="vHoliday_uselistRowDeleted" msprop:Generator_UserTableName="vHoliday_uselist" msprop:Generator_RowChangedName="vHoliday_uselistRowChanged" msprop:Generator_RowEvArgName="vHoliday_uselistRowChangeEvent" msprop:Generator_RowClassName="vHoliday_uselistRow">
<xs:complexType> <xs:complexType>
<xs:sequence> <xs:sequence>
<xs:element name="idx" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" /> <xs:element name="idx" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" />
@@ -815,7 +866,7 @@ SELECT idx, gcode, grp, seq, grade, empno, name, wuid, wdate FROM EETGW_WorkTabl
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
<xs:element name="WorkTableGrp" msprop:Generator_TableClassName="WorkTableGrpDataTable" msprop:Generator_TableVarName="tableWorkTableGrp" msprop:Generator_TablePropName="WorkTableGrp" msprop:Generator_RowDeletingName="WorkTableGrpRowDeleting" msprop:Generator_RowChangingName="WorkTableGrpRowChanging" msprop:Generator_RowEvHandlerName="WorkTableGrpRowChangeEventHandler" msprop:Generator_RowDeletedName="WorkTableGrpRowDeleted" msprop:Generator_UserTableName="WorkTableGrp" msprop:Generator_RowChangedName="WorkTableGrpRowChanged" msprop:Generator_RowEvArgName="WorkTableGrpRowChangeEvent" msprop:Generator_RowClassName="WorkTableGrpRow"> <xs:element name="WorkTableGrp" msprop:Generator_TableClassName="WorkTableGrpDataTable" msprop:Generator_TableVarName="tableWorkTableGrp" msprop:Generator_RowChangedName="WorkTableGrpRowChanged" msprop:Generator_TablePropName="WorkTableGrp" msprop:Generator_RowDeletingName="WorkTableGrpRowDeleting" msprop:Generator_RowChangingName="WorkTableGrpRowChanging" msprop:Generator_RowEvHandlerName="WorkTableGrpRowChangeEventHandler" msprop:Generator_RowDeletedName="WorkTableGrpRowDeleted" msprop:Generator_RowClassName="WorkTableGrpRow" msprop:Generator_UserTableName="WorkTableGrp" msprop:Generator_RowEvArgName="WorkTableGrpRowChangeEvent">
<xs:complexType> <xs:complexType>
<xs:sequence> <xs:sequence>
<xs:element name="grp" msprop:Generator_ColumnVarNameInTable="columngrp" msprop:Generator_ColumnPropNameInRow="grp" msprop:Generator_ColumnPropNameInTable="grpColumn" msprop:Generator_UserColumnName="grp"> <xs:element name="grp" msprop:Generator_ColumnVarNameInTable="columngrp" msprop:Generator_ColumnPropNameInRow="grp" msprop:Generator_ColumnPropNameInTable="grpColumn" msprop:Generator_UserColumnName="grp">
@@ -828,40 +879,40 @@ SELECT idx, gcode, grp, seq, grade, empno, name, wuid, wdate FROM EETGW_WorkTabl
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
<xs:element name="EETGW_WorkTableUser" msprop:Generator_TableClassName="EETGW_WorkTableUserDataTable" msprop:Generator_TableVarName="tableEETGW_WorkTableUser" msprop:Generator_TablePropName="EETGW_WorkTableUser" msprop:Generator_RowDeletingName="EETGW_WorkTableUserRowDeleting" msprop:Generator_RowChangingName="EETGW_WorkTableUserRowChanging" msprop:Generator_RowEvHandlerName="EETGW_WorkTableUserRowChangeEventHandler" msprop:Generator_RowDeletedName="EETGW_WorkTableUserRowDeleted" msprop:Generator_UserTableName="EETGW_WorkTableUser" msprop:Generator_RowChangedName="EETGW_WorkTableUserRowChanged" msprop:Generator_RowEvArgName="EETGW_WorkTableUserRowChangeEvent" msprop:Generator_RowClassName="EETGW_WorkTableUserRow"> <xs:element name="EETGW_WorkTableUser" msprop:Generator_TableClassName="EETGW_WorkTableUserDataTable" msprop:Generator_TableVarName="tableEETGW_WorkTableUser" msprop:Generator_RowChangedName="EETGW_WorkTableUserRowChanged" msprop:Generator_TablePropName="EETGW_WorkTableUser" msprop:Generator_RowDeletingName="EETGW_WorkTableUserRowDeleting" msprop:Generator_RowChangingName="EETGW_WorkTableUserRowChanging" msprop:Generator_RowEvHandlerName="EETGW_WorkTableUserRowChangeEventHandler" msprop:Generator_RowDeletedName="EETGW_WorkTableUserRowDeleted" msprop:Generator_RowClassName="EETGW_WorkTableUserRow" msprop:Generator_UserTableName="EETGW_WorkTableUser" msprop:Generator_RowEvArgName="EETGW_WorkTableUserRowChangeEvent">
<xs:complexType> <xs:complexType>
<xs:sequence> <xs:sequence>
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" /> <xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" />
<xs:element name="gcode" msprop:Generator_ColumnVarNameInTable="columngcode" msprop:Generator_ColumnPropNameInRow="gcode" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInTable="gcodeColumn" msprop:Generator_UserColumnName="gcode"> <xs:element name="gcode" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="gcode" msprop:Generator_ColumnVarNameInTable="columngcode" msprop:Generator_ColumnPropNameInTable="gcodeColumn" msprop:Generator_UserColumnName="gcode">
<xs:simpleType> <xs:simpleType>
<xs:restriction base="xs:string"> <xs:restriction base="xs:string">
<xs:maxLength value="10" /> <xs:maxLength value="10" />
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
</xs:element> </xs:element>
<xs:element name="grp" msprop:Generator_ColumnVarNameInTable="columngrp" msprop:Generator_ColumnPropNameInRow="grp" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInTable="grpColumn" msprop:Generator_UserColumnName="grp" minOccurs="0"> <xs:element name="grp" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="grp" msprop:Generator_ColumnVarNameInTable="columngrp" msprop:Generator_ColumnPropNameInTable="grpColumn" msprop:Generator_UserColumnName="grp" minOccurs="0">
<xs:simpleType> <xs:simpleType>
<xs:restriction base="xs:string"> <xs:restriction base="xs:string">
<xs:maxLength value="100" /> <xs:maxLength value="100" />
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
</xs:element> </xs:element>
<xs:element name="seq" msprop:Generator_ColumnVarNameInTable="columnseq" msprop:Generator_ColumnPropNameInRow="seq" msprop:nullValue="0" msprop:Generator_ColumnPropNameInTable="seqColumn" msprop:Generator_UserColumnName="seq" type="xs:int" minOccurs="0" /> <xs:element name="seq" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="seq" msprop:Generator_ColumnVarNameInTable="columnseq" msprop:Generator_ColumnPropNameInTable="seqColumn" msprop:Generator_UserColumnName="seq" type="xs:int" minOccurs="0" />
<xs:element name="grade" msprop:Generator_ColumnVarNameInTable="columngrade" msprop:Generator_ColumnPropNameInRow="grade" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInTable="gradeColumn" msprop:Generator_UserColumnName="grade" minOccurs="0"> <xs:element name="grade" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="grade" msprop:Generator_ColumnVarNameInTable="columngrade" msprop:Generator_ColumnPropNameInTable="gradeColumn" msprop:Generator_UserColumnName="grade" minOccurs="0">
<xs:simpleType> <xs:simpleType>
<xs:restriction base="xs:string"> <xs:restriction base="xs:string">
<xs:maxLength value="100" /> <xs:maxLength value="100" />
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
</xs:element> </xs:element>
<xs:element name="empno" msprop:Generator_ColumnVarNameInTable="columnempno" msprop:Generator_ColumnPropNameInRow="empno" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInTable="empnoColumn" msprop:Generator_UserColumnName="empno" minOccurs="0"> <xs:element name="empno" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="empno" msprop:Generator_ColumnVarNameInTable="columnempno" msprop:Generator_ColumnPropNameInTable="empnoColumn" msprop:Generator_UserColumnName="empno" minOccurs="0">
<xs:simpleType> <xs:simpleType>
<xs:restriction base="xs:string"> <xs:restriction base="xs:string">
<xs:maxLength value="10" /> <xs:maxLength value="10" />
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
</xs:element> </xs:element>
<xs:element name="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInRow="name" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInTable="nameColumn" msprop:Generator_UserColumnName="name" minOccurs="0"> <xs:element name="name" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInTable="nameColumn" msprop:Generator_UserColumnName="name" minOccurs="0">
<xs:simpleType> <xs:simpleType>
<xs:restriction base="xs:string"> <xs:restriction base="xs:string">
<xs:maxLength value="100" /> <xs:maxLength value="100" />
@@ -876,6 +927,13 @@ SELECT idx, gcode, grp, seq, grade, empno, name, wuid, wdate FROM EETGW_WorkTabl
</xs:simpleType> </xs:simpleType>
</xs:element> </xs:element>
<xs:element name="wdate" msprop:Generator_ColumnVarNameInTable="columnwdate" msprop:Generator_ColumnPropNameInRow="wdate" msprop:Generator_ColumnPropNameInTable="wdateColumn" msprop:Generator_UserColumnName="wdate" type="xs:dateTime" /> <xs:element name="wdate" msprop:Generator_ColumnVarNameInTable="columnwdate" msprop:Generator_ColumnPropNameInRow="wdate" msprop:Generator_ColumnPropNameInTable="wdateColumn" msprop:Generator_UserColumnName="wdate" type="xs:dateTime" />
<xs:element name="indate" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="indate" msprop:Generator_ColumnVarNameInTable="columnindate" msprop:Generator_ColumnPropNameInTable="indateColumn" msprop:Generator_UserColumnName="indate" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="10" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>

View File

@@ -4,14 +4,15 @@
Changes to this file may cause incorrect behavior and will be lost if Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated. the code is regenerated.
</autogenerated>--> </autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="5" ViewPortY="0" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout"> <DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="27" ViewPortY="0" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes> <Shapes>
<Shape ID="DesignTable:minutes" ZOrder="6" X="70" Y="70" Height="324" Width="192" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" /> <Shape ID="DesignTable:minutes" ZOrder="7" X="70" Y="70" Height="324" Width="192" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:Board" ZOrder="5" X="332" Y="70" Height="267" Width="179" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" /> <Shape ID="DesignTable:Board" ZOrder="6" X="332" Y="70" Height="267" Width="179" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" />
<Shape ID="DesignTable:Holyday" ZOrder="4" X="581" Y="70" Height="324" Width="214" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" /> <Shape ID="DesignTable:Holyday" ZOrder="5" X="581" Y="70" Height="402" Width="265" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="313" />
<Shape ID="DesignTable:vHoliday_uselist" ZOrder="3" X="865" Y="70" Height="248" Width="250" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" /> <Shape ID="DesignTable:vHoliday_uselist" ZOrder="4" X="865" Y="70" Height="248" Width="250" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
<Shape ID="DesignTable:WorkTableGrp" ZOrder="2" X="257" Y="455" Height="96" Width="289" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="46" /> <Shape ID="DesignTable:WorkTableGrp" ZOrder="3" X="257" Y="433" Height="133" Width="289" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
<Shape ID="DesignTable:EETGW_WorkTableUser" ZOrder="1" X="583" Y="436" Height="268" Width="282" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="200" /> <Shape ID="DesignTable:EETGW_WorkTableUser" ZOrder="2" X="600" Y="549" Height="270" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="200" />
<Shape ID="DesignSources:QueriesTableAdapter" ZOrder="1" X="250" Y="606" Height="49" Width="267" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="44" />
</Shapes> </Shapes>
<Connectors /> <Connectors />
</DiagramLayout> </DiagramLayout>