personal inventory : 날짜 선택하도록 lov 추가

This commit is contained in:
chikyun.kim
2018-09-19 09:35:08 +09:00
parent 2d4fe18264
commit 481d6bf78d
13 changed files with 453 additions and 295 deletions

View File

@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호가 자동으로 // 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호가 자동으로
// 지정되도록 할 수 있습니다. // 지정되도록 할 수 있습니다.
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("18.09.17.1700")] [assembly: AssemblyVersion("18.09.19.0000")]
[assembly: AssemblyFileVersion("18.09.17.1700")] [assembly: AssemblyFileVersion("18.09.19.0000")]

View File

@@ -30,6 +30,7 @@
{ {
this.components = new System.ComponentModel.Container(); this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fLineCode)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fLineCode));
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
this.bn = new System.Windows.Forms.BindingNavigator(this.components); this.bn = new System.Windows.Forms.BindingNavigator(this.components);
this.bindingNavigatorAddNewItem = new System.Windows.Forms.ToolStripButton(); this.bindingNavigatorAddNewItem = new System.Windows.Forms.ToolStripButton();
this.bs = new System.Windows.Forms.BindingSource(this.components); this.bs = new System.Windows.Forms.BindingSource(this.components);
@@ -45,22 +46,20 @@
this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton(); this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator(); this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.lineCodeBindingNavigatorSaveItem = new System.Windows.Forms.ToolStripButton(); this.lineCodeBindingNavigatorSaveItem = new System.Windows.Forms.ToolStripButton();
this.lineCodeDataGridView = new System.Windows.Forms.DataGridView(); this.dv = new System.Windows.Forms.DataGridView();
this.ta = new Project.dsMSSQLTableAdapters.LineCodeTableAdapter();
this.tam = new Project.dsMSSQLTableAdapters.TableAdapterManager();
this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.except = new System.Windows.Forms.DataGridViewCheckBoxColumn(); this.except = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ta = new Project.dsMSSQLTableAdapters.LineCodeTableAdapter();
this.tam = new Project.dsMSSQLTableAdapters.TableAdapterManager();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
this.bn.SuspendLayout(); this.bn.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.lineCodeDataGridView)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dv)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
// bn // bn
@@ -69,6 +68,7 @@
this.bn.BindingSource = this.bs; this.bn.BindingSource = this.bs;
this.bn.CountItem = this.bindingNavigatorCountItem; this.bn.CountItem = this.bindingNavigatorCountItem;
this.bn.DeleteItem = this.bindingNavigatorDeleteItem; this.bn.DeleteItem = this.bindingNavigatorDeleteItem;
this.bn.Dock = System.Windows.Forms.DockStyle.Bottom;
this.bn.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.bn.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.bindingNavigatorMoveFirstItem, this.bindingNavigatorMoveFirstItem,
this.bindingNavigatorMovePreviousItem, this.bindingNavigatorMovePreviousItem,
@@ -82,14 +82,14 @@
this.bindingNavigatorAddNewItem, this.bindingNavigatorAddNewItem,
this.bindingNavigatorDeleteItem, this.bindingNavigatorDeleteItem,
this.lineCodeBindingNavigatorSaveItem}); this.lineCodeBindingNavigatorSaveItem});
this.bn.Location = new System.Drawing.Point(0, 0); this.bn.Location = new System.Drawing.Point(0, 392);
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(603, 25); this.bn.Size = new System.Drawing.Size(588, 25);
this.bn.TabIndex = 0; this.bn.TabIndex = 0;
this.bn.Text = "bindingNavigator1"; this.bn.Text = "bindingNavigator1";
// //
@@ -197,32 +197,47 @@
this.lineCodeBindingNavigatorSaveItem.Text = "데이터 저장"; this.lineCodeBindingNavigatorSaveItem.Text = "데이터 저장";
this.lineCodeBindingNavigatorSaveItem.Click += new System.EventHandler(this.lineCodeBindingNavigatorSaveItem_Click); this.lineCodeBindingNavigatorSaveItem.Click += new System.EventHandler(this.lineCodeBindingNavigatorSaveItem_Click);
// //
// lineCodeDataGridView // dv
// //
this.lineCodeDataGridView.AutoGenerateColumns = false; this.dv.AllowUserToAddRows = false;
this.lineCodeDataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells; this.dv.AutoGenerateColumns = false;
this.lineCodeDataGridView.AutoSizeRowsMode = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCells; this.dv.ColumnHeadersHeight = 30;
this.lineCodeDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.lineCodeDataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.dv.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dataGridViewTextBoxColumn1, this.dataGridViewTextBoxColumn1,
this.dataGridViewTextBoxColumn2, this.dataGridViewTextBoxColumn2,
this.dataGridViewTextBoxColumn3, this.dataGridViewTextBoxColumn3,
this.dataGridViewTextBoxColumn4, this.dataGridViewTextBoxColumn4,
this.except, this.except,
this.dataGridViewTextBoxColumn5, this.dataGridViewTextBoxColumn5});
this.dataGridViewTextBoxColumn6, this.dv.DataSource = this.bs;
this.dataGridViewTextBoxColumn7}); this.dv.Dock = System.Windows.Forms.DockStyle.Fill;
this.lineCodeDataGridView.DataSource = this.bs; this.dv.Location = new System.Drawing.Point(0, 0);
this.lineCodeDataGridView.Dock = System.Windows.Forms.DockStyle.Fill; this.dv.Name = "dv";
this.lineCodeDataGridView.Location = new System.Drawing.Point(0, 25); this.dv.RowTemplate.Height = 23;
this.lineCodeDataGridView.Name = "lineCodeDataGridView"; this.dv.Size = new System.Drawing.Size(588, 392);
this.lineCodeDataGridView.RowTemplate.Height = 23; this.dv.TabIndex = 1;
this.lineCodeDataGridView.Size = new System.Drawing.Size(603, 313); //
this.lineCodeDataGridView.TabIndex = 1; // ta
//
this.ta.ClearBeforeFill = true;
//
// tam
//
this.tam.BackupDataSetBeforeUpdate = false;
this.tam.InventoryTableAdapter = null;
this.tam.ItemsTableAdapter = null;
this.tam.LineCodeTableAdapter = this.ta;
this.tam.ProjectsTableAdapter = null;
this.tam.UpdateOrder = Project.dsMSSQLTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
this.tam.UsersTableAdapter = null;
// //
// dataGridViewTextBoxColumn1 // dataGridViewTextBoxColumn1
// //
this.dataGridViewTextBoxColumn1.DataPropertyName = "idx"; this.dataGridViewTextBoxColumn1.DataPropertyName = "idx";
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.dataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle1;
this.dataGridViewTextBoxColumn1.HeaderText = "idx"; this.dataGridViewTextBoxColumn1.HeaderText = "idx";
this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1"; this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
this.dataGridViewTextBoxColumn1.ReadOnly = true; this.dataGridViewTextBoxColumn1.ReadOnly = true;
@@ -263,40 +278,12 @@
this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5"; this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
this.dataGridViewTextBoxColumn5.Width = 66; this.dataGridViewTextBoxColumn5.Width = 66;
// //
// dataGridViewTextBoxColumn6
//
this.dataGridViewTextBoxColumn6.DataPropertyName = "wuid";
this.dataGridViewTextBoxColumn6.HeaderText = "wuid";
this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
this.dataGridViewTextBoxColumn6.Width = 57;
//
// dataGridViewTextBoxColumn7
//
this.dataGridViewTextBoxColumn7.DataPropertyName = "wdate";
this.dataGridViewTextBoxColumn7.HeaderText = "wdate";
this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7";
this.dataGridViewTextBoxColumn7.Width = 64;
//
// ta
//
this.ta.ClearBeforeFill = true;
//
// tam
//
this.tam.BackupDataSetBeforeUpdate = false;
this.tam.InventoryTableAdapter = null;
this.tam.ItemsTableAdapter = null;
this.tam.LineCodeTableAdapter = this.ta;
this.tam.ProjectsTableAdapter = null;
this.tam.UpdateOrder = Project.dsMSSQLTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
this.tam.UsersTableAdapter = null;
//
// fLineCode // fLineCode
// //
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(603, 338); this.ClientSize = new System.Drawing.Size(588, 417);
this.Controls.Add(this.lineCodeDataGridView); this.Controls.Add(this.dv);
this.Controls.Add(this.bn); this.Controls.Add(this.bn);
this.Name = "fLineCode"; this.Name = "fLineCode";
this.Text = "fLineCode"; this.Text = "fLineCode";
@@ -306,7 +293,7 @@
this.bn.PerformLayout(); this.bn.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.lineCodeDataGridView)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dv)).EndInit();
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();
@@ -331,14 +318,12 @@
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem; private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2; private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2;
private System.Windows.Forms.ToolStripButton lineCodeBindingNavigatorSaveItem; private System.Windows.Forms.ToolStripButton lineCodeBindingNavigatorSaveItem;
private System.Windows.Forms.DataGridView lineCodeDataGridView; private System.Windows.Forms.DataGridView dv;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;
private System.Windows.Forms.DataGridViewCheckBoxColumn except; private System.Windows.Forms.DataGridViewCheckBoxColumn except;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn5; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn5;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn6;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn7;
} }
} }

View File

@@ -14,6 +14,13 @@ namespace Project._Management
public fLineCode() public fLineCode()
{ {
InitializeComponent(); InitializeComponent();
this.FormClosed += fLineCode_FormClosed;
}
void fLineCode_FormClosed(object sender, FormClosedEventArgs e)
{
var form = this as Form;
FCOMMON.Util.SetFormStatus(ref form, this.Name, false);
} }
private void lineCodeBindingNavigatorSaveItem_Click(object sender, EventArgs e) private void lineCodeBindingNavigatorSaveItem_Click(object sender, EventArgs e)
@@ -26,10 +33,17 @@ namespace Project._Management
private void fLineCode_Load(object sender, EventArgs e) private void fLineCode_Load(object sender, EventArgs e)
{ {
// TODO: 이 코드는 데이터를 'dsMSSQL.LineCode' 테이블에 로드합니다. 필요한 경우 이 코드를 이동하거나 제거할 수 있습니다. var form = this as Form;
FCOMMON.Util.SetFormStatus(ref form, this.Name, true);
this.Show();
Application.DoEvents();
this.ta.Fill(this.dsMSSQL.LineCode); this.ta.Fill(this.dsMSSQL.LineCode);
this.dsMSSQL.LineCode.TableNewRow += LineCode_TableNewRow; this.dsMSSQL.LineCode.TableNewRow += LineCode_TableNewRow;
} }
void LineCode_TableNewRow(object sender, DataTableNewRowEventArgs e) void LineCode_TableNewRow(object sender, DataTableNewRowEventArgs e)

View File

@@ -30,12 +30,12 @@
{ {
this.components = new System.ComponentModel.Container(); this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fInventory)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fInventory));
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle25 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle26 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle27 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle28 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle29 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle30 = new System.Windows.Forms.DataGridViewCellStyle();
this.dsMSSQL = new FCM0000.dsMSSQL(); this.dsMSSQL = new FCM0000.dsMSSQL();
this.bs = new System.Windows.Forms.BindingSource(this.components); this.bs = new System.Windows.Forms.BindingSource(this.components);
this.ta = new FCM0000.dsMSSQLTableAdapters.InventoryTableAdapter(); this.ta = new FCM0000.dsMSSQLTableAdapters.InventoryTableAdapter();
@@ -67,7 +67,6 @@
this.btSearch = new System.Windows.Forms.ToolStripButton(); this.btSearch = new System.Windows.Forms.ToolStripButton();
this.taItem = new FCM0000.dsMSSQLTableAdapters.ItemsTableAdapter(); this.taItem = new FCM0000.dsMSSQLTableAdapters.ItemsTableAdapter();
this.dv1 = new arCtl.arDatagridView(); this.dv1 = new arCtl.arDatagridView();
this.taPrj = new FCM0000.dsMSSQLTableAdapters.ProjectsTableAdapter();
this.dvc_iffnvtype = new System.Windows.Forms.DataGridViewComboBoxColumn(); this.dvc_iffnvtype = new System.Windows.Forms.DataGridViewComboBoxColumn();
this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dvc_projectname = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dvc_projectname = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -78,6 +77,8 @@
this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn10 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.taPrj = new FCM0000.dsMSSQLTableAdapters.ProjectsTableAdapter();
this.toolStripLabel4 = new System.Windows.Forms.ToolStripLabel();
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
@@ -283,6 +284,7 @@
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripLabel1, this.toolStripLabel1,
this.dtSD, this.dtSD,
this.toolStripLabel4,
this.toolStripLabel2, this.toolStripLabel2,
this.dtED, this.dtED,
this.btSearch}); this.btSearch});
@@ -295,8 +297,9 @@
// toolStripLabel1 // toolStripLabel1
// //
this.toolStripLabel1.Name = "toolStripLabel1"; this.toolStripLabel1.Name = "toolStripLabel1";
this.toolStripLabel1.Size = new System.Drawing.Size(41, 22); this.toolStripLabel1.Size = new System.Drawing.Size(32, 22);
this.toolStripLabel1.Text = "Period"; this.toolStripLabel1.Text = "Start";
this.toolStripLabel1.Click += new System.EventHandler(this.toolStripLabel1_Click);
// //
// dtSD // dtSD
// //
@@ -307,8 +310,9 @@
// toolStripLabel2 // toolStripLabel2
// //
this.toolStripLabel2.Name = "toolStripLabel2"; this.toolStripLabel2.Name = "toolStripLabel2";
this.toolStripLabel2.Size = new System.Drawing.Size(15, 22); this.toolStripLabel2.Size = new System.Drawing.Size(27, 22);
this.toolStripLabel2.Text = "~"; this.toolStripLabel2.Text = "End";
this.toolStripLabel2.Click += new System.EventHandler(this.toolStripLabel2_Click);
// //
// dtED // dtED
// //
@@ -362,10 +366,6 @@
this.dv1.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.dv1_CellEndEdit); this.dv1.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.dv1_CellEndEdit);
this.dv1.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.inventoryDataGridView_DataError); this.dv1.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.inventoryDataGridView_DataError);
// //
// taPrj
//
this.taPrj.ClearBeforeFill = true;
//
// dvc_iffnvtype // dvc_iffnvtype
// //
this.dvc_iffnvtype.DataPropertyName = "invtype"; this.dvc_iffnvtype.DataPropertyName = "invtype";
@@ -385,8 +385,8 @@
// dvc_projectname // dvc_projectname
// //
this.dvc_projectname.DataPropertyName = "projectName"; this.dvc_projectname.DataPropertyName = "projectName";
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192))))); dataGridViewCellStyle25.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
this.dvc_projectname.DefaultCellStyle = dataGridViewCellStyle1; this.dvc_projectname.DefaultCellStyle = dataGridViewCellStyle25;
this.dvc_projectname.HeaderText = "Project"; this.dvc_projectname.HeaderText = "Project";
this.dvc_projectname.Name = "dvc_projectname"; this.dvc_projectname.Name = "dvc_projectname";
this.dvc_projectname.Width = 69; this.dvc_projectname.Width = 69;
@@ -394,9 +394,9 @@
// dvc_project // dvc_project
// //
this.dvc_project.DataPropertyName = "project"; this.dvc_project.DataPropertyName = "project";
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle26.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); dataGridViewCellStyle26.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.dvc_project.DefaultCellStyle = dataGridViewCellStyle2; this.dvc_project.DefaultCellStyle = dataGridViewCellStyle26;
this.dvc_project.HeaderText = "idx"; this.dvc_project.HeaderText = "idx";
this.dvc_project.Name = "dvc_project"; this.dvc_project.Name = "dvc_project";
this.dvc_project.Width = 47; this.dvc_project.Width = 47;
@@ -404,8 +404,8 @@
// dvc_itemName // dvc_itemName
// //
this.dvc_itemName.DataPropertyName = "itemName"; this.dvc_itemName.DataPropertyName = "itemName";
dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192))))); dataGridViewCellStyle27.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
this.dvc_itemName.DefaultCellStyle = dataGridViewCellStyle3; this.dvc_itemName.DefaultCellStyle = dataGridViewCellStyle27;
this.dvc_itemName.HeaderText = "Item"; this.dvc_itemName.HeaderText = "Item";
this.dvc_itemName.Name = "dvc_itemName"; this.dvc_itemName.Name = "dvc_itemName";
this.dvc_itemName.Width = 54; this.dvc_itemName.Width = 54;
@@ -413,9 +413,9 @@
// dvc_item // dvc_item
// //
this.dvc_item.DataPropertyName = "item"; this.dvc_item.DataPropertyName = "item";
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle28.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); dataGridViewCellStyle28.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.dvc_item.DefaultCellStyle = dataGridViewCellStyle4; this.dvc_item.DefaultCellStyle = dataGridViewCellStyle28;
this.dvc_item.HeaderText = "idx"; this.dvc_item.HeaderText = "idx";
this.dvc_item.Name = "dvc_item"; this.dvc_item.Name = "dvc_item";
this.dvc_item.Width = 47; this.dvc_item.Width = 47;
@@ -430,8 +430,8 @@
// dataGridViewTextBoxColumn6 // dataGridViewTextBoxColumn6
// //
this.dataGridViewTextBoxColumn6.DataPropertyName = "dr_qty"; this.dataGridViewTextBoxColumn6.DataPropertyName = "dr_qty";
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle29.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.dataGridViewTextBoxColumn6.DefaultCellStyle = dataGridViewCellStyle5; this.dataGridViewTextBoxColumn6.DefaultCellStyle = dataGridViewCellStyle29;
this.dataGridViewTextBoxColumn6.HeaderText = "Qty"; this.dataGridViewTextBoxColumn6.HeaderText = "Qty";
this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6"; this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
this.dataGridViewTextBoxColumn6.Width = 64; this.dataGridViewTextBoxColumn6.Width = 64;
@@ -439,8 +439,8 @@
// dataGridViewTextBoxColumn7 // dataGridViewTextBoxColumn7
// //
this.dataGridViewTextBoxColumn7.DataPropertyName = "dr_amt"; this.dataGridViewTextBoxColumn7.DataPropertyName = "dr_amt";
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; dataGridViewCellStyle30.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
this.dataGridViewTextBoxColumn7.DefaultCellStyle = dataGridViewCellStyle6; this.dataGridViewTextBoxColumn7.DefaultCellStyle = dataGridViewCellStyle30;
this.dataGridViewTextBoxColumn7.HeaderText = "Amt"; this.dataGridViewTextBoxColumn7.HeaderText = "Amt";
this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7"; this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7";
this.dataGridViewTextBoxColumn7.Width = 68; this.dataGridViewTextBoxColumn7.Width = 68;
@@ -452,6 +452,16 @@
this.dataGridViewTextBoxColumn10.Name = "dataGridViewTextBoxColumn10"; this.dataGridViewTextBoxColumn10.Name = "dataGridViewTextBoxColumn10";
this.dataGridViewTextBoxColumn10.Width = 66; this.dataGridViewTextBoxColumn10.Width = 66;
// //
// taPrj
//
this.taPrj.ClearBeforeFill = true;
//
// toolStripLabel4
//
this.toolStripLabel4.Name = "toolStripLabel4";
this.toolStripLabel4.Size = new System.Drawing.Size(15, 22);
this.toolStripLabel4.Text = "~";
//
// fInventory // fInventory
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -521,5 +531,6 @@
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn6; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn6;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn7; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn7;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn10; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn10;
private System.Windows.Forms.ToolStripLabel toolStripLabel4;
} }
} }

View File

@@ -295,6 +295,28 @@ namespace FCM0000
} }
} }
private void toolStripLabel1_Click(object sender, EventArgs e)
{
//시작일(inventory 에 uid 가 내것인 데이터)
var dataList = FCOMMON.DBM.getDateList("inventory", "uid='" + FCOMMON.info.Login.no + "'", true);
var f = new FCOMMON.fLovDateList(dataList);
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
dtSD.Text = f.selectedDate;
}
}
private void toolStripLabel2_Click(object sender, EventArgs e)
{
var dataList = FCOMMON.DBM.getDateList("inventory", "uid='" + FCOMMON.info.Login.no + "'", true);
var f = new FCOMMON.fLovDateList(dataList);
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
dtED.Text = f.selectedDate;
btSearch.PerformClick();
}
}
} }
} }

View File

@@ -16,7 +16,7 @@ namespace FCOMMON
} }
public static List<String> getGroupList(string GroupColumn, string table, string where = "") public static List<String> getGroupList(string GroupColumn, string table, string where = "",Boolean desc=false)
{ {
List<string> retval = new List<string>(); List<string> retval = new List<string>();
var cn = getCn(); var cn = getCn();
@@ -28,7 +28,8 @@ namespace FCOMMON
if (where != "") sql += " and " + where; if (where != "") sql += " and " + where;
sql += " group by {0} " + sql += " group by {0} " +
" order by {0}"; " order by {0} ";
if (desc) sql += " desc";
sql = string.Format(sql, "[" + GroupColumn + "]", table); sql = string.Format(sql, "[" + GroupColumn + "]", table);
var cmd = new System.Data.SqlClient.SqlCommand(sql, cn); var cmd = new System.Data.SqlClient.SqlCommand(sql, cn);
@@ -42,9 +43,9 @@ namespace FCOMMON
cn.Dispose(); cn.Dispose();
return retval; return retval;
} }
public static List<String> getDateList(string table, string where = "") public static List<String> getDateList(string table, string where = "",Boolean desc =false)
{ {
return getGroupList("pdate", table, where); return getGroupList("pdate", table, where,desc);
} }
} }
} }

View File

@@ -46,12 +46,23 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="DataBaseManager.cs" /> <Compile Include="DataBaseManager.cs" />
<Compile Include="fLovDateList.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="fLovDateList.Designer.cs">
<DependentUpon>fLovDateList.cs</DependentUpon>
</Compile>
<Compile Include="keyValuedataTable.cs" /> <Compile Include="keyValuedataTable.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Info.cs" /> <Compile Include="Info.cs" />
<Compile Include="FormUtil.cs" /> <Compile Include="FormUtil.cs" />
<Compile Include="Util.cs" /> <Compile Include="Util.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<EmbeddedResource Include="fLovDateList.resx">
<DependentUpon>fLovDateList.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets. Other similar extension points exist, see Microsoft.Common.targets.

View File

@@ -301,6 +301,8 @@ namespace FPJ0000 {
private global::System.Data.DataColumn columnwdate; private global::System.Data.DataColumn columnwdate;
private global::System.Data.DataColumn columnstatus;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public ProjectsDataTable() { public ProjectsDataTable() {
@@ -422,6 +424,14 @@ namespace FPJ0000 {
} }
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn statusColumn {
get {
return this.columnstatus;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Browsable(false)] [global::System.ComponentModel.Browsable(false)]
@@ -459,7 +469,7 @@ namespace FPJ0000 {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public ProjectsRow AddProjectsRow(string name, string pdate, string request, string reqstaff, string sdate, string edate, string odate, string memo, string wuid, System.DateTime wdate) { public ProjectsRow AddProjectsRow(string name, string pdate, string request, string reqstaff, string sdate, string edate, string odate, string memo, string wuid, System.DateTime wdate, string status) {
ProjectsRow rowProjectsRow = ((ProjectsRow)(this.NewRow())); ProjectsRow rowProjectsRow = ((ProjectsRow)(this.NewRow()));
object[] columnValuesArray = new object[] { object[] columnValuesArray = new object[] {
null, null,
@@ -472,7 +482,8 @@ namespace FPJ0000 {
odate, odate,
memo, memo,
wuid, wuid,
wdate}; wdate,
status};
rowProjectsRow.ItemArray = columnValuesArray; rowProjectsRow.ItemArray = columnValuesArray;
this.Rows.Add(rowProjectsRow); this.Rows.Add(rowProjectsRow);
return rowProjectsRow; return rowProjectsRow;
@@ -513,6 +524,7 @@ namespace FPJ0000 {
this.columnmemo = base.Columns["memo"]; this.columnmemo = base.Columns["memo"];
this.columnwuid = base.Columns["wuid"]; this.columnwuid = base.Columns["wuid"];
this.columnwdate = base.Columns["wdate"]; this.columnwdate = base.Columns["wdate"];
this.columnstatus = base.Columns["status"];
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -540,6 +552,8 @@ namespace FPJ0000 {
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.columnstatus = new global::System.Data.DataColumn("status", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnstatus);
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;
@@ -559,6 +573,7 @@ namespace FPJ0000 {
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.columnstatus.MaxLength = 2;
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -860,6 +875,22 @@ namespace FPJ0000 {
} }
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string status {
get {
try {
return ((string)(this[this.tableProjects.statusColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'status\' 열의 값이 DBNull입니다.", e);
}
}
set {
this[this.tableProjects.statusColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool IsnameNull() { public bool IsnameNull() {
@@ -955,6 +986,18 @@ namespace FPJ0000 {
public void SetmemoNull() { public void SetmemoNull() {
this[this.tableProjects.memoColumn] = global::System.Convert.DBNull; this[this.tableProjects.memoColumn] = global::System.Convert.DBNull;
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool IsstatusNull() {
return this.IsNull(this.tableProjects.statusColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void SetstatusNull() {
this[this.tableProjects.statusColumn] = global::System.Convert.DBNull;
}
} }
/// <summary> /// <summary>
@@ -1127,12 +1170,15 @@ namespace FPJ0000.dsPRJTableAdapters {
tableMapping.ColumnMappings.Add("memo", "memo"); tableMapping.ColumnMappings.Add("memo", "memo");
tableMapping.ColumnMappings.Add("wuid", "wuid"); tableMapping.ColumnMappings.Add("wuid", "wuid");
tableMapping.ColumnMappings.Add("wdate", "wdate"); tableMapping.ColumnMappings.Add("wdate", "wdate");
tableMapping.ColumnMappings.Add("status", "status");
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 [Projects] WHERE (([idx] = @Original_idx) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_request = 1 AND [request] IS NULL) OR ([request] = @Original_request)) AND ((@IsNull_reqstaff = 1 AND [reqstaff] IS NULL) OR ([reqstaff] = @Original_reqstaff)) AND ((@IsNull_sdate = 1 AND [sdate] IS NULL) OR ([sdate] = @Original_sdate)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_odate = 1 AND [odate] IS NULL) OR ([odate] = @Original_odate)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate))"; this._adapter.DeleteCommand.CommandText = @"DELETE FROM [Projects] WHERE (([idx] = @Original_idx) AND ((@IsNull_status = 1 AND [status] IS NULL) OR ([status] = @Original_status)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_request = 1 AND [request] IS NULL) OR ([request] = @Original_request)) AND ((@IsNull_reqstaff = 1 AND [reqstaff] IS NULL) OR ([reqstaff] = @Original_reqstaff)) AND ((@IsNull_sdate = 1 AND [sdate] IS NULL) OR ([sdate] = @Original_sdate)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_odate = 1 AND [odate] IS NULL) OR ([odate] = @Original_odate)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate))";
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("@IsNull_status", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "status", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "status", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, true, 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_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("@IsNull_pdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
@@ -1153,9 +1199,10 @@ namespace FPJ0000.dsPRJTableAdapters {
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wdate", global::System.Data.SqlDbType.DateTime, 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.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", 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 [Projects] ([name], [pdate], [request], [reqstaff], [sdate], [edate], [odate], [memo], [wuid], [wdate]) VALUES (@name, @pdate, @request, @reqstaff, @sdate, @edate, @odate, @memo, @wuid, @wdate); this._adapter.InsertCommand.CommandText = @"INSERT INTO [Projects] ([status], [name], [pdate], [request], [reqstaff], [sdate], [edate], [odate], [memo], [wuid], [wdate]) VALUES (@status, @name, @pdate, @request, @reqstaff, @sdate, @edate, @odate, @memo, @wuid, @wdate);
SELECT idx, name, pdate, request, reqstaff, sdate, edate, odate, memo, wuid, wdate FROM Projects WHERE (idx = SCOPE_IDENTITY())"; SELECT idx, status, name, pdate, request, reqstaff, sdate, edate, odate, memo, wuid, wdate FROM Projects WHERE (idx = SCOPE_IDENTITY())";
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("@status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "status", 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("@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("@pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@request", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "request", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@request", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "request", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -1168,9 +1215,10 @@ SELECT idx, name, pdate, request, reqstaff, sdate, edate, odate, memo, wuid, wda
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.DateTime, 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.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", 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 [Projects] SET [name] = @name, [pdate] = @pdate, [request] = @request, [reqstaff] = @reqstaff, [sdate] = @sdate, [edate] = @edate, [odate] = @odate, [memo] = @memo, [wuid] = @wuid, [wdate] = @wdate WHERE (([idx] = @Original_idx) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_request = 1 AND [request] IS NULL) OR ([request] = @Original_request)) AND ((@IsNull_reqstaff = 1 AND [reqstaff] IS NULL) OR ([reqstaff] = @Original_reqstaff)) AND ((@IsNull_sdate = 1 AND [sdate] IS NULL) OR ([sdate] = @Original_sdate)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_odate = 1 AND [odate] IS NULL) OR ([odate] = @Original_odate)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate)); this._adapter.UpdateCommand.CommandText = @"UPDATE [Projects] SET [status] = @status, [name] = @name, [pdate] = @pdate, [request] = @request, [reqstaff] = @reqstaff, [sdate] = @sdate, [edate] = @edate, [odate] = @odate, [memo] = @memo, [wuid] = @wuid, [wdate] = @wdate WHERE (([idx] = @Original_idx) AND ((@IsNull_status = 1 AND [status] IS NULL) OR ([status] = @Original_status)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_request = 1 AND [request] IS NULL) OR ([request] = @Original_request)) AND ((@IsNull_reqstaff = 1 AND [reqstaff] IS NULL) OR ([reqstaff] = @Original_reqstaff)) AND ((@IsNull_sdate = 1 AND [sdate] IS NULL) OR ([sdate] = @Original_sdate)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_odate = 1 AND [odate] IS NULL) OR ([odate] = @Original_odate)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate));
SELECT idx, name, pdate, request, reqstaff, sdate, edate, odate, memo, wuid, wdate FROM Projects WHERE (idx = @idx)"; SELECT idx, status, name, pdate, request, reqstaff, sdate, edate, odate, memo, wuid, wdate FROM Projects WHERE (idx = @idx)";
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("@status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "status", 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("@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("@pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@request", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "request", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@request", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "request", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -1182,6 +1230,8 @@ SELECT idx, name, pdate, request, reqstaff, sdate, edate, odate, memo, wuid, wda
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.DateTime, 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.DateTime, 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("@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("@IsNull_status", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "status", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "status", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, true, 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_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("@IsNull_pdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
@@ -1216,7 +1266,8 @@ SELECT idx, name, pdate, request, reqstaff, sdate, edate, odate, memo, wuid, wda
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
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 Projects.*\r\nFROM Projects"; this._commandCollection[0].CommandText = "SELECT idx, status, name, pdate, request, reqstaff, sdate, edate, odate, memo, w" +
"uid, wdate\r\nFROM Projects";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
} }
@@ -1277,79 +1328,87 @@ SELECT idx, name, pdate, request, reqstaff, sdate, edate, odate, memo, wuid, wda
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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.Delete, true)] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
public virtual int Delete(int Original_idx, string Original_name, string Original_pdate, string Original_request, string Original_reqstaff, string Original_sdate, string Original_edate, string Original_odate, string Original_memo, string Original_wuid, System.DateTime Original_wdate) { public virtual int Delete(int Original_idx, string Original_status, string Original_name, string Original_pdate, string Original_request, string Original_reqstaff, string Original_sdate, string Original_edate, string Original_odate, string Original_memo, string Original_wuid, System.DateTime Original_wdate) {
this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx)); this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx));
if ((Original_name == null)) { if ((Original_status == null)) {
this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value; this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
} }
else { else {
this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0)); this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_name)); this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_status));
} }
if ((Original_pdate == null)) { if ((Original_name == null)) {
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value; this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
} }
else { else {
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0)); this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_pdate)); this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_name));
} }
if ((Original_request == null)) { if ((Original_pdate == null)) {
this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value; this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
} }
else { else {
this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0)); this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_request)); this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_pdate));
} }
if ((Original_reqstaff == null)) { if ((Original_request == null)) {
this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value; this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
} }
else { else {
this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0)); this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_reqstaff)); this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_request));
} }
if ((Original_sdate == null)) { if ((Original_reqstaff == null)) {
this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value; this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
} }
else { else {
this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0)); this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_sdate)); this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_reqstaff));
} }
if ((Original_edate == null)) { if ((Original_sdate == null)) {
this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value; this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
} }
else { else {
this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0)); this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_edate)); this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_sdate));
} }
if ((Original_odate == null)) { if ((Original_edate == null)) {
this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value; this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
} }
else { else {
this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0)); this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_odate)); this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_edate));
} }
if ((Original_memo == null)) { if ((Original_odate == null)) {
this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[16].Value = global::System.DBNull.Value; this.Adapter.DeleteCommand.Parameters[16].Value = global::System.DBNull.Value;
} }
else { else {
this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(0)); this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[16].Value = ((string)(Original_memo)); this.Adapter.DeleteCommand.Parameters[16].Value = ((string)(Original_odate));
}
if ((Original_memo == null)) {
this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[18].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[18].Value = ((string)(Original_memo));
} }
if ((Original_wuid == null)) { if ((Original_wuid == null)) {
throw new global::System.ArgumentNullException("Original_wuid"); throw new global::System.ArgumentNullException("Original_wuid");
} }
else { else {
this.Adapter.DeleteCommand.Parameters[17].Value = ((string)(Original_wuid)); this.Adapter.DeleteCommand.Parameters[19].Value = ((string)(Original_wuid));
} }
this.Adapter.DeleteCommand.Parameters[18].Value = ((System.DateTime)(Original_wdate)); this.Adapter.DeleteCommand.Parameters[20].Value = ((System.DateTime)(Original_wdate));
global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) { != global::System.Data.ConnectionState.Open)) {
@@ -1370,62 +1429,68 @@ SELECT idx, name, pdate, request, reqstaff, sdate, edate, odate, memo, wuid, wda
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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.Insert, true)] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
public virtual int Insert(string name, string pdate, string request, string reqstaff, string sdate, string edate, string odate, string memo, string wuid, System.DateTime wdate) { public virtual int Insert(string status, string name, string pdate, string request, string reqstaff, string sdate, string edate, string odate, string memo, string wuid, System.DateTime wdate) {
if ((name == null)) { if ((status == null)) {
this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value; this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
} }
else { else {
this.Adapter.InsertCommand.Parameters[0].Value = ((string)(name)); this.Adapter.InsertCommand.Parameters[0].Value = ((string)(status));
} }
if ((pdate == null)) { if ((name == null)) {
this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
} }
else { else {
this.Adapter.InsertCommand.Parameters[1].Value = ((string)(pdate)); this.Adapter.InsertCommand.Parameters[1].Value = ((string)(name));
} }
if ((request == null)) { if ((pdate == null)) {
this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
} }
else { else {
this.Adapter.InsertCommand.Parameters[2].Value = ((string)(request)); this.Adapter.InsertCommand.Parameters[2].Value = ((string)(pdate));
} }
if ((reqstaff == null)) { if ((request == null)) {
this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
} }
else { else {
this.Adapter.InsertCommand.Parameters[3].Value = ((string)(reqstaff)); this.Adapter.InsertCommand.Parameters[3].Value = ((string)(request));
} }
if ((sdate == null)) { if ((reqstaff == null)) {
this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
} }
else { else {
this.Adapter.InsertCommand.Parameters[4].Value = ((string)(sdate)); this.Adapter.InsertCommand.Parameters[4].Value = ((string)(reqstaff));
} }
if ((edate == null)) { if ((sdate == null)) {
this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value; this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
} }
else { else {
this.Adapter.InsertCommand.Parameters[5].Value = ((string)(edate)); this.Adapter.InsertCommand.Parameters[5].Value = ((string)(sdate));
} }
if ((odate == null)) { if ((edate == null)) {
this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value; this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
} }
else { else {
this.Adapter.InsertCommand.Parameters[6].Value = ((string)(odate)); this.Adapter.InsertCommand.Parameters[6].Value = ((string)(edate));
} }
if ((memo == null)) { if ((odate == null)) {
this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value; this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
} }
else { else {
this.Adapter.InsertCommand.Parameters[7].Value = ((string)(memo)); this.Adapter.InsertCommand.Parameters[7].Value = ((string)(odate));
}
if ((memo == null)) {
this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[8].Value = ((string)(memo));
} }
if ((wuid == null)) { if ((wuid == null)) {
throw new global::System.ArgumentNullException("wuid"); throw new global::System.ArgumentNullException("wuid");
} }
else { else {
this.Adapter.InsertCommand.Parameters[8].Value = ((string)(wuid)); this.Adapter.InsertCommand.Parameters[9].Value = ((string)(wuid));
} }
this.Adapter.InsertCommand.Parameters[9].Value = ((System.DateTime)(wdate)); this.Adapter.InsertCommand.Parameters[10].Value = ((System.DateTime)(wdate));
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) { != global::System.Data.ConnectionState.Open)) {
@@ -1447,6 +1512,7 @@ SELECT idx, name, pdate, request, reqstaff, sdate, edate, odate, memo, wuid, wda
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
public virtual int Update( public virtual int Update(
string status,
string name, string name,
string pdate, string pdate,
string request, string request,
@@ -1458,6 +1524,7 @@ SELECT idx, name, pdate, request, reqstaff, sdate, edate, odate, memo, wuid, wda
string wuid, string wuid,
System.DateTime wdate, System.DateTime wdate,
int Original_idx, int Original_idx,
string Original_status,
string Original_name, string Original_name,
string Original_pdate, string Original_pdate,
string Original_request, string Original_request,
@@ -1469,134 +1536,148 @@ SELECT idx, name, pdate, request, reqstaff, sdate, edate, odate, memo, wuid, wda
string Original_wuid, string Original_wuid,
System.DateTime Original_wdate, System.DateTime Original_wdate,
int idx) { int idx) {
if ((name == null)) { if ((status == null)) {
this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value; this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
} }
else { else {
this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(name)); this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(status));
} }
if ((pdate == null)) { if ((name == null)) {
this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
} }
else { else {
this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(pdate)); this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(name));
} }
if ((request == null)) { if ((pdate == null)) {
this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
} }
else { else {
this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(request)); this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(pdate));
} }
if ((reqstaff == null)) { if ((request == null)) {
this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
} }
else { else {
this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(reqstaff)); this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(request));
} }
if ((sdate == null)) { if ((reqstaff == null)) {
this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
} }
else { else {
this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(sdate)); this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(reqstaff));
} }
if ((edate == null)) { if ((sdate == null)) {
this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value; this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
} }
else { else {
this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(edate)); this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(sdate));
} }
if ((odate == null)) { if ((edate == null)) {
this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value; this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
} }
else { else {
this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(odate)); this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(edate));
} }
if ((memo == null)) { if ((odate == null)) {
this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value; this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
} }
else { else {
this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(memo)); this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(odate));
}
if ((memo == null)) {
this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(memo));
} }
if ((wuid == null)) { if ((wuid == null)) {
throw new global::System.ArgumentNullException("wuid"); throw new global::System.ArgumentNullException("wuid");
} }
else { else {
this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(wuid)); this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(wuid));
} }
this.Adapter.UpdateCommand.Parameters[9].Value = ((System.DateTime)(wdate)); this.Adapter.UpdateCommand.Parameters[10].Value = ((System.DateTime)(wdate));
this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_idx)); this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_idx));
if ((Original_name == null)) { if ((Original_status == null)) {
this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1)); this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value; this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
} }
else { else {
this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0)); this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_name)); this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_status));
}
if ((Original_name == null)) {
this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_name));
} }
if ((Original_pdate == null)) { if ((Original_pdate == null)) {
this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1)); this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value; this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
} }
else { else {
this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0)); this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_pdate)); this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_pdate));
} }
if ((Original_request == null)) { if ((Original_request == null)) {
this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1)); this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value; this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
} }
else { else {
this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0)); this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_request)); this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_request));
} }
if ((Original_reqstaff == null)) { if ((Original_reqstaff == null)) {
this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1)); this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value; this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
} }
else { else {
this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0)); this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_reqstaff)); this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_reqstaff));
} }
if ((Original_sdate == null)) { if ((Original_sdate == null)) {
this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(1)); this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value; this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
} }
else { else {
this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(0)); this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(Original_sdate)); this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_sdate));
} }
if ((Original_edate == null)) { if ((Original_edate == null)) {
this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(1)); this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value; this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value;
} }
else { else {
this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(0)); this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(Original_edate)); this.Adapter.UpdateCommand.Parameters[25].Value = ((string)(Original_edate));
} }
if ((Original_odate == null)) { if ((Original_odate == null)) {
this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(1)); this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[24].Value = global::System.DBNull.Value; this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value;
} }
else { else {
this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(0)); this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[24].Value = ((string)(Original_odate)); this.Adapter.UpdateCommand.Parameters[27].Value = ((string)(Original_odate));
} }
if ((Original_memo == null)) { if ((Original_memo == null)) {
this.Adapter.UpdateCommand.Parameters[25].Value = ((object)(1)); this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[26].Value = global::System.DBNull.Value; this.Adapter.UpdateCommand.Parameters[29].Value = global::System.DBNull.Value;
} }
else { else {
this.Adapter.UpdateCommand.Parameters[25].Value = ((object)(0)); this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[26].Value = ((string)(Original_memo)); this.Adapter.UpdateCommand.Parameters[29].Value = ((string)(Original_memo));
} }
if ((Original_wuid == null)) { if ((Original_wuid == null)) {
throw new global::System.ArgumentNullException("Original_wuid"); throw new global::System.ArgumentNullException("Original_wuid");
} }
else { else {
this.Adapter.UpdateCommand.Parameters[27].Value = ((string)(Original_wuid)); this.Adapter.UpdateCommand.Parameters[30].Value = ((string)(Original_wuid));
} }
this.Adapter.UpdateCommand.Parameters[28].Value = ((System.DateTime)(Original_wdate)); this.Adapter.UpdateCommand.Parameters[31].Value = ((System.DateTime)(Original_wdate));
this.Adapter.UpdateCommand.Parameters[29].Value = ((int)(idx)); this.Adapter.UpdateCommand.Parameters[32].Value = ((int)(idx));
global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) { != global::System.Data.ConnectionState.Open)) {
@@ -1618,6 +1699,7 @@ SELECT idx, name, pdate, request, reqstaff, sdate, edate, odate, memo, wuid, wda
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
public virtual int Update( public virtual int Update(
string status,
string name, string name,
string pdate, string pdate,
string request, string request,
@@ -1629,6 +1711,7 @@ SELECT idx, name, pdate, request, reqstaff, sdate, edate, odate, memo, wuid, wda
string wuid, string wuid,
System.DateTime wdate, System.DateTime wdate,
int Original_idx, int Original_idx,
string Original_status,
string Original_name, string Original_name,
string Original_pdate, string Original_pdate,
string Original_request, string Original_request,
@@ -1639,7 +1722,7 @@ SELECT idx, name, pdate, request, reqstaff, sdate, edate, odate, memo, wuid, wda
string Original_memo, string Original_memo,
string Original_wuid, string Original_wuid,
System.DateTime Original_wdate) { System.DateTime Original_wdate) {
return this.Update(name, pdate, request, reqstaff, sdate, edate, odate, memo, wuid, wdate, Original_idx, Original_name, Original_pdate, Original_request, Original_reqstaff, Original_sdate, Original_edate, Original_odate, Original_memo, Original_wuid, Original_wdate, Original_idx); return this.Update(status, name, pdate, request, reqstaff, sdate, edate, odate, memo, wuid, wdate, Original_idx, Original_status, Original_name, Original_pdate, Original_request, Original_reqstaff, Original_sdate, Original_edate, Original_odate, Original_memo, Original_wuid, Original_wdate, Original_idx);
} }
} }

View File

@@ -12,9 +12,11 @@
<DbSource ConnectionRef="gwcs (Settings)" DbObjectName="GroupWare.dbo.Projects" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" 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="GroupWare.dbo.Projects" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" 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 [Projects] WHERE (([idx] = @Original_idx) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_request = 1 AND [request] IS NULL) OR ([request] = @Original_request)) AND ((@IsNull_reqstaff = 1 AND [reqstaff] IS NULL) OR ([reqstaff] = @Original_reqstaff)) AND ((@IsNull_sdate = 1 AND [sdate] IS NULL) OR ([sdate] = @Original_sdate)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_odate = 1 AND [odate] IS NULL) OR ([odate] = @Original_odate)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate))</CommandText> <CommandText>DELETE FROM [Projects] WHERE (([idx] = @Original_idx) AND ((@IsNull_status = 1 AND [status] IS NULL) OR ([status] = @Original_status)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_request = 1 AND [request] IS NULL) OR ([request] = @Original_request)) AND ((@IsNull_reqstaff = 1 AND [reqstaff] IS NULL) OR ([reqstaff] = @Original_reqstaff)) AND ((@IsNull_sdate = 1 AND [sdate] IS NULL) OR ([sdate] = @Original_sdate)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_odate = 1 AND [odate] IS NULL) OR ([odate] = @Original_odate)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate))</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="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_status" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="status" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_status" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="status" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_name" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="name" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_name" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="name" SourceColumnNullMapping="true" 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="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="Int32" Direction="Input" ParameterName="@IsNull_pdate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="pdate" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_pdate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="pdate" SourceColumnNullMapping="true" SourceVersion="Original" />
@@ -38,9 +40,10 @@
</DeleteCommand> </DeleteCommand>
<InsertCommand> <InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false"> <DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO [Projects] ([name], [pdate], [request], [reqstaff], [sdate], [edate], [odate], [memo], [wuid], [wdate]) VALUES (@name, @pdate, @request, @reqstaff, @sdate, @edate, @odate, @memo, @wuid, @wdate); <CommandText>INSERT INTO [Projects] ([status], [name], [pdate], [request], [reqstaff], [sdate], [edate], [odate], [memo], [wuid], [wdate]) VALUES (@status, @name, @pdate, @request, @reqstaff, @sdate, @edate, @odate, @memo, @wuid, @wdate);
SELECT idx, name, pdate, request, reqstaff, sdate, edate, odate, memo, wuid, wdate FROM Projects WHERE (idx = SCOPE_IDENTITY())</CommandText> SELECT idx, status, name, pdate, request, reqstaff, sdate, edate, odate, memo, wuid, wdate FROM Projects WHERE (idx = SCOPE_IDENTITY())</CommandText>
<Parameters> <Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@status" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="status" 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="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="AnsiString" Direction="Input" ParameterName="@pdate" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="pdate" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@pdate" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="pdate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@request" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="request" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@request" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="request" SourceColumnNullMapping="false" SourceVersion="Current" />
@@ -55,17 +58,18 @@ SELECT idx, name, pdate, request, reqstaff, sdate, edate, odate, memo, wuid, wda
</DbCommand> </DbCommand>
</InsertCommand> </InsertCommand>
<SelectCommand> <SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true"> <DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT Projects.* <CommandText>SELECT idx, status, name, pdate, request, reqstaff, sdate, edate, odate, memo, wuid, wdate
FROM Projects</CommandText> FROM Projects</CommandText>
<Parameters /> <Parameters />
</DbCommand> </DbCommand>
</SelectCommand> </SelectCommand>
<UpdateCommand> <UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false"> <DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE [Projects] SET [name] = @name, [pdate] = @pdate, [request] = @request, [reqstaff] = @reqstaff, [sdate] = @sdate, [edate] = @edate, [odate] = @odate, [memo] = @memo, [wuid] = @wuid, [wdate] = @wdate WHERE (([idx] = @Original_idx) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_request = 1 AND [request] IS NULL) OR ([request] = @Original_request)) AND ((@IsNull_reqstaff = 1 AND [reqstaff] IS NULL) OR ([reqstaff] = @Original_reqstaff)) AND ((@IsNull_sdate = 1 AND [sdate] IS NULL) OR ([sdate] = @Original_sdate)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_odate = 1 AND [odate] IS NULL) OR ([odate] = @Original_odate)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate)); <CommandText>UPDATE [Projects] SET [status] = @status, [name] = @name, [pdate] = @pdate, [request] = @request, [reqstaff] = @reqstaff, [sdate] = @sdate, [edate] = @edate, [odate] = @odate, [memo] = @memo, [wuid] = @wuid, [wdate] = @wdate WHERE (([idx] = @Original_idx) AND ((@IsNull_status = 1 AND [status] IS NULL) OR ([status] = @Original_status)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_request = 1 AND [request] IS NULL) OR ([request] = @Original_request)) AND ((@IsNull_reqstaff = 1 AND [reqstaff] IS NULL) OR ([reqstaff] = @Original_reqstaff)) AND ((@IsNull_sdate = 1 AND [sdate] IS NULL) OR ([sdate] = @Original_sdate)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_odate = 1 AND [odate] IS NULL) OR ([odate] = @Original_odate)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate));
SELECT idx, name, pdate, request, reqstaff, sdate, edate, odate, memo, wuid, wdate FROM Projects WHERE (idx = @idx)</CommandText> SELECT idx, status, name, pdate, request, reqstaff, sdate, edate, odate, memo, wuid, wdate FROM Projects WHERE (idx = @idx)</CommandText>
<Parameters> <Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@status" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="status" 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="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="AnsiString" Direction="Input" ParameterName="@pdate" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="pdate" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@pdate" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="pdate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@request" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="request" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@request" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="request" SourceColumnNullMapping="false" SourceVersion="Current" />
@@ -77,6 +81,8 @@ SELECT idx, name, pdate, request, reqstaff, sdate, edate, odate, memo, wuid, wda
<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="DateTime" Scale="0" Size="0" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@wdate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="wdate" 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="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_status" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="status" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_status" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="status" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_name" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="name" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_name" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="name" SourceColumnNullMapping="true" 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="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="Int32" Direction="Input" ParameterName="@IsNull_pdate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="pdate" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_pdate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="pdate" SourceColumnNullMapping="true" SourceVersion="Original" />
@@ -113,6 +119,7 @@ SELECT idx, name, pdate, request, reqstaff, sdate, edate, odate, memo, wuid, wda
<Mapping SourceColumn="memo" DataSetColumn="memo" /> <Mapping SourceColumn="memo" DataSetColumn="memo" />
<Mapping SourceColumn="wuid" DataSetColumn="wuid" /> <Mapping SourceColumn="wuid" DataSetColumn="wuid" />
<Mapping SourceColumn="wdate" DataSetColumn="wdate" /> <Mapping SourceColumn="wdate" DataSetColumn="wdate" />
<Mapping SourceColumn="status" DataSetColumn="status" />
</Mappings> </Mappings>
<Sources /> <Sources />
</TableAdapter> </TableAdapter>
@@ -124,7 +131,7 @@ SELECT idx, name, pdate, request, reqstaff, sdate, edate, odate, memo, wuid, wda
<xs:element name="dsPRJ" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="dsPRJ" msprop:Generator_UserDSName="dsPRJ"> <xs:element name="dsPRJ" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="dsPRJ" msprop:Generator_UserDSName="dsPRJ">
<xs:complexType> <xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Projects" msprop:Generator_TableClassName="ProjectsDataTable" msprop:Generator_TableVarName="tableProjects" msprop:Generator_TablePropName="Projects" msprop:Generator_RowDeletingName="ProjectsRowDeleting" msprop:Generator_RowChangingName="ProjectsRowChanging" msprop:Generator_RowEvHandlerName="ProjectsRowChangeEventHandler" msprop:Generator_RowDeletedName="ProjectsRowDeleted" msprop:Generator_UserTableName="Projects" msprop:Generator_RowChangedName="ProjectsRowChanged" msprop:Generator_RowEvArgName="ProjectsRowChangeEvent" msprop:Generator_RowClassName="ProjectsRow"> <xs:element name="Projects" msprop:Generator_TableClassName="ProjectsDataTable" msprop:Generator_TableVarName="tableProjects" msprop:Generator_RowChangedName="ProjectsRowChanged" msprop:Generator_TablePropName="Projects" msprop:Generator_RowDeletingName="ProjectsRowDeleting" msprop:Generator_RowChangingName="ProjectsRowChanging" msprop:Generator_RowEvHandlerName="ProjectsRowChangeEventHandler" msprop:Generator_RowDeletedName="ProjectsRowDeleted" msprop:Generator_RowClassName="ProjectsRow" msprop:Generator_UserTableName="Projects" msprop:Generator_RowEvArgName="ProjectsRowChangeEvent">
<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" />
@@ -192,6 +199,13 @@ SELECT idx, name, pdate, request, reqstaff, sdate, edate, odate, memo, wuid, wda
</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="status" msprop:Generator_ColumnVarNameInTable="columnstatus" msprop:Generator_ColumnPropNameInRow="status" msprop:Generator_ColumnPropNameInTable="statusColumn" msprop:Generator_UserColumnName="status" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>

View File

@@ -1 +1,12 @@
 <?xml version="1.0" encoding="utf-8"?>
<!--<autogenerated>
This code was generated by a tool to store the dataset designer's layout information.
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="0" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:Projects" ZOrder="1" X="70" Y="70" Height="419" Width="191" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="351" />
</Shapes>
<Connectors />
</DiagramLayout>

View File

@@ -31,10 +31,7 @@
this.components = new System.ComponentModel.Container(); this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fProjectList)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fProjectList));
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
this.dsMSSQL = new FPJ0000.dsPRJ(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
this.bs = new System.Windows.Forms.BindingSource(this.components);
this.ta = new FPJ0000.dsPRJTableAdapters.ProjectsTableAdapter();
this.tam = new FPJ0000.dsPRJTableAdapters.TableAdapterManager();
this.bn = new System.Windows.Forms.BindingNavigator(this.components); this.bn = new System.Windows.Forms.BindingNavigator(this.components);
this.bindingNavigatorAddNewItem = new System.Windows.Forms.ToolStripButton(); this.bindingNavigatorAddNewItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel(); this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel();
@@ -48,8 +45,13 @@
this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton(); this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator(); this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.projectsBindingNavigatorSaveItem = new System.Windows.Forms.ToolStripButton(); this.projectsBindingNavigatorSaveItem = new System.Windows.Forms.ToolStripButton();
this.projectsDataGridView = new System.Windows.Forms.DataGridView(); this.dv1 = new System.Windows.Forms.DataGridView();
this.bs = new System.Windows.Forms.BindingSource(this.components);
this.dsMSSQL = new FPJ0000.dsPRJ();
this.ta = new FPJ0000.dsPRJTableAdapters.ProjectsTableAdapter();
this.tam = new FPJ0000.dsPRJTableAdapters.TableAdapterManager();
this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.status = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -58,35 +60,13 @@
this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn9 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
this.bn.SuspendLayout(); this.bn.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.projectsDataGridView)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dv1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
// dsMSSQL
//
this.dsMSSQL.DataSetName = "dsMSSQL";
this.dsMSSQL.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
//
// bs
//
this.bs.DataMember = "Projects";
this.bs.DataSource = this.dsMSSQL;
//
// ta
//
this.ta.ClearBeforeFill = true;
//
// tam
//
this.tam.BackupDataSetBeforeUpdate = false;
this.tam.ProjectsTableAdapter = this.ta;
this.tam.UpdateOrder = FPJ0000.dsPRJTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
//
// bn // bn
// //
this.bn.AddNewItem = this.bindingNavigatorAddNewItem; this.bn.AddNewItem = this.bindingNavigatorAddNewItem;
@@ -212,15 +192,15 @@
this.projectsBindingNavigatorSaveItem.Text = "데이터 저장"; this.projectsBindingNavigatorSaveItem.Text = "데이터 저장";
this.projectsBindingNavigatorSaveItem.Click += new System.EventHandler(this.projectsBindingNavigatorSaveItem_Click); this.projectsBindingNavigatorSaveItem.Click += new System.EventHandler(this.projectsBindingNavigatorSaveItem_Click);
// //
// projectsDataGridView // dv1
// //
this.projectsDataGridView.AllowUserToAddRows = false; this.dv1.AllowUserToAddRows = false;
this.projectsDataGridView.AutoGenerateColumns = false; this.dv1.AutoGenerateColumns = false;
this.projectsDataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells; this.dv1.ColumnHeadersHeight = 30;
this.projectsDataGridView.AutoSizeRowsMode = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCells; this.dv1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.projectsDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dv1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.projectsDataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dataGridViewTextBoxColumn1, this.dataGridViewTextBoxColumn1,
this.status,
this.dataGridViewTextBoxColumn2, this.dataGridViewTextBoxColumn2,
this.dataGridViewTextBoxColumn3, this.dataGridViewTextBoxColumn3,
this.dataGridViewTextBoxColumn4, this.dataGridViewTextBoxColumn4,
@@ -228,16 +208,34 @@
this.dataGridViewTextBoxColumn6, this.dataGridViewTextBoxColumn6,
this.dataGridViewTextBoxColumn7, this.dataGridViewTextBoxColumn7,
this.dataGridViewTextBoxColumn8, this.dataGridViewTextBoxColumn8,
this.dataGridViewTextBoxColumn9, this.dataGridViewTextBoxColumn9});
this.dataGridViewTextBoxColumn10, this.dv1.DataSource = this.bs;
this.dataGridViewTextBoxColumn11}); this.dv1.Dock = System.Windows.Forms.DockStyle.Fill;
this.projectsDataGridView.DataSource = this.bs; this.dv1.Location = new System.Drawing.Point(0, 0);
this.projectsDataGridView.Dock = System.Windows.Forms.DockStyle.Fill; this.dv1.Name = "dv1";
this.projectsDataGridView.Location = new System.Drawing.Point(0, 0); this.dv1.RowTemplate.Height = 23;
this.projectsDataGridView.Name = "projectsDataGridView"; this.dv1.Size = new System.Drawing.Size(738, 364);
this.projectsDataGridView.RowTemplate.Height = 23; this.dv1.TabIndex = 1;
this.projectsDataGridView.Size = new System.Drawing.Size(738, 364); //
this.projectsDataGridView.TabIndex = 1; // bs
//
this.bs.DataMember = "Projects";
this.bs.DataSource = this.dsMSSQL;
//
// dsMSSQL
//
this.dsMSSQL.DataSetName = "dsMSSQL";
this.dsMSSQL.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
//
// ta
//
this.ta.ClearBeforeFill = true;
//
// tam
//
this.tam.BackupDataSetBeforeUpdate = false;
this.tam.ProjectsTableAdapter = this.ta;
this.tam.UpdateOrder = FPJ0000.dsPRJTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
// //
// dataGridViewTextBoxColumn1 // dataGridViewTextBoxColumn1
// //
@@ -250,6 +248,14 @@
this.dataGridViewTextBoxColumn1.ReadOnly = true; this.dataGridViewTextBoxColumn1.ReadOnly = true;
this.dataGridViewTextBoxColumn1.Width = 47; this.dataGridViewTextBoxColumn1.Width = 47;
// //
// status
//
this.status.DataPropertyName = "status";
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.status.DefaultCellStyle = dataGridViewCellStyle2;
this.status.HeaderText = "status";
this.status.Name = "status";
//
// dataGridViewTextBoxColumn2 // dataGridViewTextBoxColumn2
// //
this.dataGridViewTextBoxColumn2.DataPropertyName = "name"; this.dataGridViewTextBoxColumn2.DataPropertyName = "name";
@@ -306,37 +312,23 @@
this.dataGridViewTextBoxColumn9.Name = "dataGridViewTextBoxColumn9"; this.dataGridViewTextBoxColumn9.Name = "dataGridViewTextBoxColumn9";
this.dataGridViewTextBoxColumn9.Width = 66; this.dataGridViewTextBoxColumn9.Width = 66;
// //
// dataGridViewTextBoxColumn10
//
this.dataGridViewTextBoxColumn10.DataPropertyName = "wuid";
this.dataGridViewTextBoxColumn10.HeaderText = "wuid";
this.dataGridViewTextBoxColumn10.Name = "dataGridViewTextBoxColumn10";
this.dataGridViewTextBoxColumn10.Width = 57;
//
// dataGridViewTextBoxColumn11
//
this.dataGridViewTextBoxColumn11.DataPropertyName = "wdate";
this.dataGridViewTextBoxColumn11.HeaderText = "wdate";
this.dataGridViewTextBoxColumn11.Name = "dataGridViewTextBoxColumn11";
this.dataGridViewTextBoxColumn11.Width = 64;
//
// fProjectList // fProjectList
// //
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(738, 389); this.ClientSize = new System.Drawing.Size(738, 389);
this.Controls.Add(this.projectsDataGridView); this.Controls.Add(this.dv1);
this.Controls.Add(this.bn); this.Controls.Add(this.bn);
this.Name = "fProjectList"; this.Name = "fProjectList";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "fProjectList"; this.Text = "fProjectList";
this.Load += new System.EventHandler(this.fProjectList_Load); this.Load += new System.EventHandler(this.__Load);
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit();
((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.projectsDataGridView)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dv1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).EndInit();
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();
@@ -361,8 +353,9 @@
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem; private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2; private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2;
private System.Windows.Forms.ToolStripButton projectsBindingNavigatorSaveItem; private System.Windows.Forms.ToolStripButton projectsBindingNavigatorSaveItem;
private System.Windows.Forms.DataGridView projectsDataGridView; private System.Windows.Forms.DataGridView dv1;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
private System.Windows.Forms.DataGridViewTextBoxColumn status;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;
@@ -371,7 +364,5 @@
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn7; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn7;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn8; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn8;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn9; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn9;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn10;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn11;
} }
} }

View File

@@ -14,6 +14,27 @@ namespace FPJ0000
public fProjectList() public fProjectList()
{ {
InitializeComponent(); InitializeComponent();
this.FormClosed += __Closed;
}
void __Closed(object sender, FormClosedEventArgs e)
{
var form = this as Form;
FCOMMON.Util.SetFormStatus(ref form, this.Name, false);
}
private void __Load(object sender, EventArgs e)
{
var form = this as Form;
FCOMMON.Util.SetFormStatus(ref form, this.Name, true);
this.Show();
Application.DoEvents();
this.ta.Fill(this.dsMSSQL.Projects);
this.dsMSSQL.Projects.TableNewRow += Projects_TableNewRow;
dv1.AutoResizeColumns();
} }
private void projectsBindingNavigatorSaveItem_Click(object sender, EventArgs e) private void projectsBindingNavigatorSaveItem_Click(object sender, EventArgs e)
@@ -23,15 +44,6 @@ namespace FPJ0000
this.tam.UpdateAll(this.dsMSSQL); this.tam.UpdateAll(this.dsMSSQL);
} }
private void fProjectList_Load(object sender, EventArgs e)
{
// TODO: 이 코드는 데이터를 'dsMSSQL.Projects' 테이블에 로드합니다. 필요한 경우 이 코드를 이동하거나 제거할 수 있습니다.
this.ta.Fill(this.dsMSSQL.Projects);
this.dsMSSQL.Projects.TableNewRow += Projects_TableNewRow;
}
void Projects_TableNewRow(object sender, DataTableNewRowEventArgs e) void Projects_TableNewRow(object sender, DataTableNewRowEventArgs e)
{ {
e.Row["wuid"] = FCOMMON.info.Login.no; e.Row["wuid"] = FCOMMON.info.Login.no;

View File

@@ -117,18 +117,6 @@
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<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="bs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>122, 17</value>
</metadata>
<metadata name="ta.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>186, 17</value>
</metadata>
<metadata name="tam.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>248, 17</value>
</metadata>
<metadata name="bn.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="bn.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>321, 17</value> <value>321, 17</value>
</metadata> </metadata>
@@ -145,6 +133,12 @@
rkJggg== rkJggg==
</value> </value>
</data> </data>
<metadata name="bs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>122, 17</value>
</metadata>
<metadata name="dsMSSQL.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<data name="bindingNavigatorDeleteItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="bindingNavigatorDeleteItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
@@ -204,4 +198,13 @@
dtINAGGiDUDGyGpoawAxeNSAQWkAORiqnRLAwAAA9EMMU8Daa3MAAAAASUVORK5CYII= dtINAGGiDUDGyGpoawAxeNSAQWkAORiqnRLAwAAA9EMMU8Daa3MAAAAASUVORK5CYII=
</value> </value>
</data> </data>
<metadata name="status.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ta.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>186, 17</value>
</metadata>
<metadata name="tam.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>248, 17</value>
</metadata>
</root> </root>