diff --git a/FarpointGridSetting/fItem.xml b/FarpointGridSetting/fItem.xml
new file mode 100644
index 0000000..e08d4ad
--- /dev/null
+++ b/FarpointGridSetting/fItem.xml
@@ -0,0 +1,900 @@
+
+
+
+
+
+ 0
+ False
+ False
+ False
+ False
+ True
+ False
+ False
+ False
+ False
+ Copy
+
+ True
+ Default
+ True
+ False
+ False
+ False
+ True
+ False
+ True
+ True
+ True
+ False
+ False
+
+ Tile
+ Separate
+ No
+ True
+ True
+ 0
+ Empty
+ Empty
+ False
+ True
+ True
+ Default
+ Default
+ Both
+ Split
+ True
+ 0.05
+ 1.5
+ 0
+ True
+ True
+ False
+ Row
+ Column
+ Off
+ Off
+ True
+ True
+ Fixed3D
+ Always
+ True
+ AllHeaders
+ ExcludeSpans
+ ExcludeSpans
+ False
+ Leading
+ NoControl
+ True
+ NoControl
+ None
+ Always
+ False
+ False
+ -1
+ Always
+ 1
+ False
+ 0
+ True
+ True
+ No
+ Leading
+ Always
+ Cells, Rows, Columns, Sheet
+ 1
+
+ Control
+ False
+ Always
+
+
+
+
+
+
+ WithHorizontalScrollBar
+ AsNeeded
+ 0.5
+
+ Info
+ InfoText
+
+ 굴림
+ 9
+ False
+ 129
+ False
+ False
+ False
+ Point
+ False
+
+
+ 500
+ Off
+ -1
+ False
+ Always
+ 1
+ Auto
+
+
+ 3
+ -16777216
+
+
+
+
+ White
+ White
+ White
+ White
+ White
+ White
+ White
+ White
+ #ffbaeafd
+ #ffbaeafd
+ #ffbaeafd
+ #ffbaeafd
+ #ffa6acb3
+ Black
+ White
+ White
+ White
+ White
+ White
+ #ffbaeafd
+ #ffbaeafd
+ #ffbaeafd
+ #ffbaeafd
+ #ffbaeafd
+ #ffbaeafd
+ #ffbaeafd
+ #ffbaeafd
+ #ffa6acb3
+ #ffd5d5d5
+ #ffd5d5d5
+ #ffdfe3f0
+ #ffdfe3f0
+ #ffdfe3f0
+ White
+ White
+ White
+ White
+ #ffbaeafd
+ #ffbaeafd
+ White
+ White
+ #ffbaeafd
+ #ffbaeafd
+ #ffbaeafd
+ #ffbaeafd
+ White
+ Empty
+ #ff666666
+ #ff666666
+ #ffa6acb3
+ #ffb2b2b2
+ Trapezoid
+ Flat
+ Flat
+
+
+
+
+ #64c1e0ff
+ #64baeafd
+ #64baeafd
+ #64baeafd
+ #64baeafd
+ #64c1e0ff
+
+
+
+ False
+
+
+
+
+
+
+ Auto
+
+
+
+
+
+
+
+
+ Auto
+
+
+
+
+ True
+ 평균
+ 평균(&A)
+ Right
+
+
+ True
+ 개수
+ 개수(&C)
+ Right
+
+
+ False
+ 숫자 세기
+ 숫자세기(&T)
+ Right
+
+
+ False
+ 최소값
+ 최소값(&I)
+ Right
+
+
+ False
+ 최대값
+ 최대값(&X)
+ Right
+
+
+ True
+ 합계
+ 합계
+ Right
+
+
+ True
+
+ 확대/축소 슬라이더(&Z)
+ Right
+
+
+ True
+
+ 확대/축소(&Z)
+ Right
+
+
+ Default
+ White
+ Black
+ #ffcdcdcd
+ #ffa6a6a6
+ #ffcdcdcd
+ #ffa6a6a6
+
+ Microsoft Sans Serif
+ 8.25
+ False
+ 1
+ False
+ False
+ False
+ Point
+ False
+
+
+ True
+
+
+ #ffe7eff7
+
+
+
+ 0001-01-01T00:00:00.000
+ 0001-01-01T00:00:00.000
+ 0
+
+
+
+
+ Sheet1
+
+ #ffe7eff7
+
+
+
+
+
+
+ False
+
+
+
+
+ 10
+ 0
+ -1
+ -1
+
+
+
+
+
+
+
+
+ 6
+
+
+
+
+
+
+
+
+
+
+
+ 맑은 고딕
+ 9
+ False
+ 129
+ False
+ False
+ False
+ Point
+ False
+
+
+
+
+ 1
+ 1
+ 0
+ 0
+
+
+ 0
+ -1
+ 0
+
+
+
+
+ 0
+ -1
+ 0
+
+
+
+
+
+
+
+
+
+ -
+ 88
+ 8
+ 1
+
+ -
+ 113
+ 8
+ 1
+
+ -
+ 84
+ 8
+ 1
+
+ -
+ 113
+ 8
+ 1
+
+ -
+ 84
+ 8
+ 1
+
+
+
+
+
+ -
+ <_startIndex>-1
+ False
+ 35
+ <_endIndex>-1
+
+
+
+
+
+ -
+ <_startIndex>-1
+ False
+ <_endIndex>-1
+
+ -
+ <_startIndex>-1
+ 42
+ <_endIndex>-1
+
+
+
+
+
+ -
+ <_startIndex>-1
+ False
+ <_endIndex>-1
+
+
+
+
+
+
+ 2
+
+
+
+
+ 2
+
+
+
+
+ 2
+
+
+
+
+ 2
+
+
+
+ #ffe0e0e0
+
+ -1
+ None
+ 0
+ True
+ Yes
+ 2147483647
+ -2147483648
+ UseRegional
+ False
+ False
+ False
+ 1
+ 0.1
+ False
+ Auto
+ 3
+ # ???/???
+ False
+ False
+ False
+
+ Center
+ Center
+
+
+ #ffc0ffff
+
+ -1
+ None
+ Normal
+ 255
+ False
+ None
+ Ascii
+ None
+
+ Center
+ Center
+
+
+
+ -1
+ None
+ Normal
+ 255
+ False
+ None
+ Ascii
+ None
+
+ Left
+ Center
+
+
+
+ -1
+ None
+ Normal
+ 255
+ False
+ None
+ Ascii
+ None
+
+ Center
+ Center
+
+
+
+ -1
+ None
+ Normal
+ 255
+ False
+ None
+ Ascii
+ None
+
+ Left
+ Center
+
+
+
+ -1
+ None
+ Normal
+ 255
+ False
+ None
+ Ascii
+ None
+
+ Center
+ Center
+
+
+
+ -1
+ None
+ 0
+ False
+ UseRegional
+ 999999999999999
+ -999999999999999
+ UseRegional
+ True
+ True
+ False
+ 1
+ 0.1
+ False
+ Auto
+ 3
+ # ???/???
+ False
+ False
+ False
+
+ Right
+ Center
+
+
+
+ -1
+ None
+ Normal
+ 255
+ False
+ None
+ Ascii
+ None
+
+ Left
+ Center
+
+
+
+ -1
+ None
+ Normal
+ 255
+ False
+ None
+ Ascii
+ None
+
+ Left
+ Center
+
+
+
+ -1
+ None
+ -1
+ True
+ UseRegional
+ 999999999999999
+ -999999999999999
+ UseRegional
+ False
+ False
+ False
+ 1
+ 0.1
+ False
+ Auto
+ 3
+ # ???/???
+ False
+ False
+ False
+
+ Center
+ Center
+
+
+
+ 2
+
+
+
+
+
+
+
+ 0
+ 0
+ 800
+ 904
+ spreadNotesContainer
+
+ ControlText
+ Transparent
+ Center
+ Center
+ 255
+
+ Empty
+ 0
+ Black
+ 1
+ Solid
+ 0
+ 0
+ 0
+ 0
+ False
+ True
+ True
+ False
+ True
+ False
+ False
+ TextRotateCustom
+ None
+ None
+
+ None
+
+
+ 0
+ #ffffffff
+
+
+ 0
+ #ffffffff
+
+
+
+
+ True
+
+
+
+ 22
+
+
+
+
+
+
+
+
+
+
+ 0
+ 0
+ 800
+ 904
+ spreadShapesContainer
+
+ ControlText
+ Transparent
+ Center
+ Center
+ 255
+
+ Empty
+ 0
+ Black
+ 1
+ Solid
+ 0
+ 0
+ 0
+ 0
+ False
+ True
+ True
+ False
+ True
+ False
+ False
+ TextRotateCustom
+ None
+ None
+
+
+
+
+
+
+
+
+ True
+
+
+
+ True
+ False
+ A1
+ False
+ 1
+ 0.001
+ -1
+ Sheet1
+
+
+
+ idx
+
+
+
+
+ cate
+
+
+
+
+ name
+
+
+
+
+ sid
+
+
+
+
+ model
+
+
+
+
+ unit
+
+
+
+
+ price
+
+
+
+
+ manu
+
+
+
+
+ memo
+
+
+
+
+ scale
+
+
+
+
+ True
+
+
+ True
+ True
+ A1
+ False
+ 1
+ 0.001
+ -1
+ True
+
+
+ True
+ True
+ A1
+ False
+ 1
+ 0.001
+ -1
+ True
+
+
+ False
+
+ True
+ True
+ A1
+ False
+ 1
+ 0.001
+ -1
+ True
+
+
+
+ SummaryBelow, SummaryRight
+ True
+
+
+ True
+ True
+ A1
+ False
+ 1
+ 0.001
+ -1
+ True
+
+
+
+
+
\ No newline at end of file
diff --git a/FarpointGridSetting/fPurchase.xml b/FarpointGridSetting/fPurchase.xml
new file mode 100644
index 0000000..ead9b3a
--- /dev/null
+++ b/FarpointGridSetting/fPurchase.xml
@@ -0,0 +1,1296 @@
+
+
+
+
+
+ 0
+ False
+ False
+ False
+ False
+ True
+ False
+ False
+ False
+ False
+ Copy
+
+ True
+ Default
+ True
+ False
+ False
+ False
+ True
+ False
+ True
+ True
+ True
+ False
+ False
+
+ Tile
+ Separate
+ No
+ True
+ True
+ 0
+ Empty
+ Empty
+ False
+ True
+ True
+ Default
+ Default
+ Both
+ Split
+ True
+ 0.05
+ 1.5
+ 0
+ True
+ True
+ False
+ Row
+ Column
+ Off
+ Off
+ True
+ True
+ Fixed3D
+ Always
+ True
+ AllHeaders
+ ExcludeSpans
+ ExcludeSpans
+ False
+ Leading
+ NoControl
+ True
+ NoControl
+ None
+ Always
+ False
+ True
+ -1
+ Always
+ 1
+ False
+ 0
+ True
+ True
+ No
+ Leading
+ Always
+ Cells, Rows, Columns, Sheet
+ 1
+
+ Control
+ False
+ Always
+
+
+
+
+
+
+ WithHorizontalScrollBar
+ AsNeeded
+ 0.5
+
+ Info
+ InfoText
+
+ 굴림
+ 9
+ False
+ 129
+ False
+ False
+ False
+ Point
+ False
+
+
+ 500
+ Off
+ -1
+ False
+ Always
+ 1
+ Auto
+
+
+ 3
+ -16777216
+
+
+
+
+ White
+ White
+ White
+ White
+ White
+ White
+ White
+ White
+ #ffbaeafd
+ #ffbaeafd
+ #ffbaeafd
+ #ffbaeafd
+ #ffa6acb3
+ Black
+ White
+ White
+ White
+ White
+ White
+ #ffbaeafd
+ #ffbaeafd
+ #ffbaeafd
+ #ffbaeafd
+ #ffbaeafd
+ #ffbaeafd
+ #ffbaeafd
+ #ffbaeafd
+ #ffa6acb3
+ #ffd5d5d5
+ #ffd5d5d5
+ #ffdfe3f0
+ #ffdfe3f0
+ #ffdfe3f0
+ White
+ White
+ White
+ White
+ #ffbaeafd
+ #ffbaeafd
+ White
+ White
+ #ffbaeafd
+ #ffbaeafd
+ #ffbaeafd
+ #ffbaeafd
+ White
+ Empty
+ #ff666666
+ #ff666666
+ #ffa6acb3
+ #ffb2b2b2
+ Trapezoid
+ Flat
+ Flat
+
+
+
+
+ #64c1e0ff
+ #64baeafd
+ #64baeafd
+ #64baeafd
+ #64baeafd
+ #64c1e0ff
+
+
+
+ False
+
+
+
+
+
+
+ Auto
+
+
+
+
+
+
+
+
+ Auto
+
+
+
+
+ True
+ 평균
+ 평균(&A)
+ Right
+
+
+ True
+ 개수
+ 개수(&C)
+ Right
+
+
+ False
+ 숫자 세기
+ 숫자세기(&T)
+ Right
+
+
+ False
+ 최소값
+ 최소값(&I)
+ Right
+
+
+ False
+ 최대값
+ 최대값(&X)
+ Right
+
+
+ True
+ 합계
+ 합계
+ Right
+
+
+ True
+
+ 확대/축소 슬라이더(&Z)
+ Right
+
+
+ True
+
+ 확대/축소(&Z)
+ Right
+
+
+ Default
+ White
+ Black
+ #ffcdcdcd
+ #ffa6a6a6
+ #ffcdcdcd
+ #ffa6a6a6
+
+ Microsoft Sans Serif
+ 8.25
+ False
+ 1
+ False
+ False
+ False
+ Point
+ False
+
+
+ True
+
+
+ #ffe7eff7
+
+
+
+ 0001-01-01T00:00:00.000
+ 0001-01-01T00:00:00.000
+ 0
+
+
+
+
+ Sheet1
+
+ #ffe7eff7
+
+
+
+
+
+
+ False
+
+
+
+
+ 23
+ 0
+ -1
+ -1
+
+
+
+
+
+
+
+
+ 1
+
+
+
+
+
+
+
+
+
+
+
+ 맑은 고딕
+ 9
+ False
+ 129
+ False
+ False
+ False
+ Point
+ False
+
+
+
+
+ 1
+ 1
+ 0
+ 0
+
+
+ 0
+ -1
+ 0
+
+
+
+
+ 0
+ -1
+ 0
+
+
+
+
+
+
+
+
+
+ -
+ 34
+ 8
+ 1
+
+ -
+ 49
+ 8
+ 1
+
+ -
+ 48
+ 8
+ 1
+
+ -
+ 27
+ 8
+ 1
+
+ -
+ 46
+ 8
+ 1
+
+ -
+ 31
+ 8
+ 1
+
+ -
+ 33
+ 8
+ 1
+
+ -
+ 14
+ 8
+ 1
+
+ -
+ 43
+ 8
+ 1
+
+ -
+ 28
+ 8
+ 1
+
+ -
+ 31
+ 8
+ 1
+
+ -
+ 35
+ 8
+ 1
+
+ -
+ 32
+ 8
+ 1
+
+ -
+ 46
+ 8
+ 1
+
+ -
+ 14
+ 8
+ 1
+
+ -
+ 46
+ 8
+ 1
+
+ -
+ 14
+ 8
+ 1
+
+ -
+ 35
+ 8
+ 1
+
+ -
+ 38
+ 8
+ 1
+
+ -
+ 42
+ 8
+ 1
+
+ -
+ 23
+ 8
+ 1
+
+ -
+ 33
+ 8
+ 1
+
+
+
+
+
+ -
+ <_startIndex>-1
+ False
+ 35
+ <_endIndex>-1
+
+
+
+
+
+ -
+ <_startIndex>-1
+ False
+ <_endIndex>-1
+
+ -
+ <_startIndex>-1
+ 37
+ <_endIndex>-1
+
+
+
+
+
+ -
+ <_startIndex>-1
+ False
+ <_endIndex>-1
+
+
+
+
+
+
+ 2
+
+
+
+
+ 2
+
+
+
+
+ 2
+
+
+
+
+ 2
+
+
+
+
+ -1
+ None
+ Normal
+ 255
+ False
+ None
+ Ascii
+ None
+
+ Center
+ Center
+
+
+ #ffe0e0e0
+
+ -1
+ None
+ Normal
+ 255
+ False
+ None
+ Ascii
+ None
+
+ Center
+ Center
+
+
+
+ -1
+ None
+ Normal
+ 255
+ False
+ None
+ Ascii
+ None
+
+ Center
+ Center
+
+
+
+ -1
+ None
+ Normal
+ 255
+ False
+ None
+ Ascii
+ None
+
+ Left
+
+
+
+ -1
+ None
+ Normal
+ 255
+ False
+ None
+ Ascii
+ None
+
+ Center
+ Center
+
+
+
+ -1
+ None
+ Normal
+ 255
+ False
+ None
+ Ascii
+ None
+
+ Left
+
+
+
+ -1
+ None
+ Normal
+ 255
+ False
+ None
+ Ascii
+ None
+
+ Center
+ Center
+
+
+
+ -1
+ None
+ Normal
+ 255
+ False
+ None
+ Ascii
+ None
+
+ Left
+
+
+ #ffe0e0e0
+
+ -1
+ None
+ 0
+ True
+ Yes
+ 2147483647
+ -2147483648
+ UseRegional
+ False
+ False
+ False
+ 1
+ 0.1
+ False
+ Auto
+ 3
+ # ???/???
+ False
+ False
+ False
+
+ Center
+
+
+
+ -1
+ None
+ Normal
+ 255
+ False
+ None
+ Ascii
+ None
+
+ Left
+
+
+
+ -1
+ None
+ 0
+ True
+ Yes
+ 2147483647
+ -2147483648
+ UseRegional
+ False
+ False
+ False
+ 1
+ 0.1
+ False
+ Auto
+ 3
+ # ???/???
+ False
+ False
+ False
+
+ Center
+
+
+
+ -1
+ None
+ Normal
+ 255
+ False
+ None
+ Ascii
+ None
+
+ Center
+
+
+
+ -1
+ None
+ -1
+ True
+ UseRegional
+ 999999999999999
+ -999999999999999
+ UseRegional
+ False
+ False
+ False
+ 1
+ 0.1
+ False
+ Auto
+ 3
+ # ???/???
+ False
+ False
+ False
+
+ Right
+
+
+
+ -1
+ None
+ -1
+ True
+ UseRegional
+ 999999999999999
+ -999999999999999
+ UseRegional
+ False
+ False
+ False
+ 1
+ 0.1
+ False
+ Auto
+ 3
+ # ???/???
+ False
+ False
+ False
+
+ Right
+
+
+
+ -1
+ None
+ Normal
+ 255
+ False
+ None
+ Ascii
+ None
+
+ Left
+
+
+ #ffe0e0e0
+
+ -1
+ None
+ 0
+ True
+ Yes
+ 2147483647
+ -2147483648
+ UseRegional
+ False
+ False
+ False
+ 1
+ 0.1
+ False
+ Auto
+ 3
+ # ???/???
+ False
+ False
+ False
+
+ Center
+
+
+
+ -1
+ None
+ Normal
+ 255
+ False
+ None
+ Ascii
+ None
+
+ Left
+
+
+ #ffe0e0e0
+
+ -1
+ None
+ 0
+ True
+ Yes
+ 2147483647
+ -2147483648
+ UseRegional
+ False
+ False
+ False
+ 1
+ 0.1
+ False
+ Auto
+ 3
+ # ???/???
+ False
+ False
+ False
+
+ Center
+
+
+
+ -1
+ None
+ Normal
+ 255
+ False
+ None
+ Ascii
+ None
+
+ Left
+
+
+
+ -1
+ None
+ Normal
+ 255
+ False
+ None
+ Ascii
+ None
+
+ Center
+
+
+
+ -1
+ None
+ Normal
+ 255
+ False
+ None
+ Ascii
+ None
+
+ Center
+
+
+
+ -1
+ None
+ Normal
+ 255
+ False
+ None
+ Ascii
+ None
+
+ Center
+
+
+
+ -1
+ None
+ Normal
+ 255
+ False
+ None
+ Ascii
+ None
+
+ Left
+
+
+
+ 2
+
+
+
+
+
+
+
+ 0
+ 0
+ 800
+ 1029
+ spreadNotesContainer
+
+ ControlText
+ Transparent
+ Center
+ Center
+ 255
+
+ Empty
+ 0
+ Black
+ 1
+ Solid
+ 0
+ 0
+ 0
+ 0
+ False
+ True
+ True
+ False
+ True
+ False
+ False
+ TextRotateCustom
+ None
+ None
+
+ None
+
+
+ 0
+ #ffffffff
+
+
+ 0
+ #ffffffff
+
+
+
+
+ True
+
+
+
+ 22
+
+
+
+
+
+
+
+
+
+
+ 0
+ 0
+ 800
+ 1029
+ spreadShapesContainer
+
+ ControlText
+ Transparent
+ Center
+ Center
+ 255
+
+ Empty
+ 0
+ Black
+ 1
+ Solid
+ 0
+ 0
+ 0
+ 0
+ False
+ True
+ True
+ False
+ True
+ False
+ False
+ TextRotateCustom
+ None
+ None
+
+
+
+
+
+
+
+
+ True
+
+
+
+ True
+ False
+ A1
+ False
+ 1
+ 0.001
+ -1
+ Sheet1
+
+
+
+ pdate
+
+
+
+
+ stateName
+
+
+
+
+ process
+
+
+
+
+ request
+
+
+
+
+ sc
+
+
+
+
+ receive
+
+
+
+
+ sid
+
+
+
+
+ pumname
+
+
+
+
+ pumidx
+
+
+
+
+ pumscale
+
+
+
+
+ pumqty
+
+
+
+
+ pumunit
+
+
+
+
+ pumprice
+
+
+
+
+ pumamt
+
+
+
+
+ supply
+
+
+
+
+ supplyidx
+
+
+
+
+ project
+
+
+
+
+ projectidx
+
+
+
+
+ asset
+
+
+
+
+ edate
+
+
+
+
+ indate
+
+
+
+
+ po
+
+
+
+
+ dept
+
+
+
+
+ True
+
+
+ True
+ True
+ A1
+ False
+ 1
+ 0.001
+ -1
+ True
+
+
+ True
+ True
+ A1
+ False
+ 1
+ 0.001
+ -1
+
+
+ Date
+ |
+
+ state
+ |
+
+ sc#
+ |
+
+ sid#
+ |
+
+ Item
+ |
+
+ *
+ |
+
+ Model
+ |
+
+ Qty
+ |
+
+ Unit
+ |
+
+ Price
+ |
+
+ Amt
+ |
+
+ Supply
+ |
+
+ *
+ |
+
+ *
+ |
+
+ True
+
+
+ False
+
+ True
+ True
+ A1
+ False
+ 1
+ 0.001
+ -1
+ True
+
+
+
+ SummaryBelow, SummaryRight
+ True
+
+
+ True
+ True
+ A1
+ False
+ 1
+ 0.001
+ -1
+ True
+
+
+
+
+
\ No newline at end of file
diff --git a/Project/Dialog/fLogin.Designer.cs b/Project/Dialog/fLogin.Designer.cs
index 3489391..53b8d58 100644
--- a/Project/Dialog/fLogin.Designer.cs
+++ b/Project/Dialog/fLogin.Designer.cs
@@ -35,6 +35,8 @@
this.tbPW = new System.Windows.Forms.TextBox();
this.panel2 = new System.Windows.Forms.Panel();
this.btLogin = new System.Windows.Forms.Button();
+ this.label1 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
@@ -43,7 +45,7 @@
// tbID
//
this.tbID.Font = new System.Drawing.Font("Calibri", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.tbID.Location = new System.Drawing.Point(12, 126);
+ this.tbID.Location = new System.Drawing.Point(12, 148);
this.tbID.Name = "tbID";
this.tbID.Size = new System.Drawing.Size(329, 40);
this.tbID.TabIndex = 0;
@@ -62,19 +64,21 @@
// panel1
//
this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(245)))), ((int)(((byte)(245)))), ((int)(((byte)(244)))));
+ this.panel1.Controls.Add(this.label2);
+ this.panel1.Controls.Add(this.label1);
this.panel1.Controls.Add(this.tbPW);
this.panel1.Controls.Add(this.pictureBox1);
this.panel1.Controls.Add(this.tbID);
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
- this.panel1.Size = new System.Drawing.Size(351, 228);
+ this.panel1.Size = new System.Drawing.Size(358, 272);
this.panel1.TabIndex = 1;
//
// tbPW
//
this.tbPW.Font = new System.Drawing.Font("Calibri", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.tbPW.Location = new System.Drawing.Point(12, 175);
+ this.tbPW.Location = new System.Drawing.Point(15, 219);
this.tbPW.Name = "tbPW";
this.tbPW.PasswordChar = '●';
this.tbPW.Size = new System.Drawing.Size(329, 40);
@@ -86,9 +90,9 @@
this.panel2.BackColor = System.Drawing.SystemColors.Control;
this.panel2.Controls.Add(this.btLogin);
this.panel2.Dock = System.Windows.Forms.DockStyle.Bottom;
- this.panel2.Location = new System.Drawing.Point(0, 228);
+ this.panel2.Location = new System.Drawing.Point(0, 272);
this.panel2.Name = "panel2";
- this.panel2.Size = new System.Drawing.Size(351, 34);
+ this.panel2.Size = new System.Drawing.Size(358, 34);
this.panel2.TabIndex = 6;
//
// btLogin
@@ -96,17 +100,39 @@
this.btLogin.Dock = System.Windows.Forms.DockStyle.Fill;
this.btLogin.Location = new System.Drawing.Point(0, 0);
this.btLogin.Name = "btLogin";
- this.btLogin.Size = new System.Drawing.Size(351, 34);
+ this.btLogin.Size = new System.Drawing.Size(358, 34);
this.btLogin.TabIndex = 0;
- this.btLogin.Text = "OK";
+ this.btLogin.Text = "LOGIN";
this.btLogin.UseVisualStyleBackColor = true;
this.btLogin.Click += new System.EventHandler(this.button1_Click);
//
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Font = new System.Drawing.Font("Calibri", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label1.ForeColor = System.Drawing.Color.Gray;
+ this.label1.Location = new System.Drawing.Point(12, 131);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(70, 14);
+ this.label1.TabIndex = 5;
+ this.label1.Text = "No or Email";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Font = new System.Drawing.Font("Calibri", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label2.ForeColor = System.Drawing.Color.Gray;
+ this.label2.Location = new System.Drawing.Point(12, 200);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(59, 14);
+ this.label2.TabIndex = 5;
+ this.label2.Text = "Password";
+ //
// fLogin
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.BackColor = System.Drawing.Color.OrangeRed;
- this.ClientSize = new System.Drawing.Size(351, 262);
+ this.ClientSize = new System.Drawing.Size(358, 306);
this.Controls.Add(this.panel1);
this.Controls.Add(this.panel2);
this.Font = new System.Drawing.Font("Calibri", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
@@ -132,5 +158,7 @@
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Button btLogin;
public System.Windows.Forms.TextBox tbPW;
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.Label label2;
}
}
\ No newline at end of file
diff --git a/Project/EETGW.csproj b/Project/EETGW.csproj
index 8b87350..3c9ef67 100644
--- a/Project/EETGW.csproj
+++ b/Project/EETGW.csproj
@@ -8,7 +8,7 @@
WinExe
Project
GWEE
- v4.5.2
+ v4.5
512
true
False
@@ -142,6 +142,7 @@
True
+
@@ -156,6 +157,7 @@
+
..\DLL\Winsock Orcas.dll
@@ -221,6 +223,12 @@
fMain.cs
+
+ Form
+
+
+ Form1.cs
+
Form
@@ -310,9 +318,13 @@
fMain.cs
+
+ Form1.cs
+
fSetting.cs
+
fADSUserList.cs
diff --git a/Project/app.config b/Project/app.config
index f4e5079..02fe39d 100644
--- a/Project/app.config
+++ b/Project/app.config
@@ -37,4 +37,4 @@ namespace HelloWorld
-
+
diff --git a/Project/fMain.Designer.cs b/Project/fMain.Designer.cs
index 2575c8d..50ca9ed 100644
--- a/Project/fMain.Designer.cs
+++ b/Project/fMain.Designer.cs
@@ -56,8 +56,8 @@
this.staffGridToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.userInfoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.userAccountToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.aDSUserListToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.myAccouserToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.aDSUserListToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.mailFormToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.customerToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.boardsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@@ -88,6 +88,8 @@
this.toolStrip = new System.Windows.Forms.ToolStrip();
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
+ this.toolStripButton3 = new System.Windows.Forms.ToolStripButton();
+ this.workReportToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.cmVision.SuspendLayout();
this.statusStrip1.SuspendLayout();
this.menuStrip1.SuspendLayout();
@@ -221,7 +223,8 @@
// projectToolStripMenuItem
//
this.projectToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.listToolStripMenuItem});
+ this.listToolStripMenuItem,
+ this.workReportToolStripMenuItem});
this.projectToolStripMenuItem.Name = "projectToolStripMenuItem";
this.projectToolStripMenuItem.Size = new System.Drawing.Size(56, 20);
this.projectToolStripMenuItem.Text = "Project";
@@ -250,28 +253,28 @@
// itemsToolStripMenuItem
//
this.itemsToolStripMenuItem.Name = "itemsToolStripMenuItem";
- this.itemsToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
+ this.itemsToolStripMenuItem.Size = new System.Drawing.Size(129, 22);
this.itemsToolStripMenuItem.Text = "Items";
this.itemsToolStripMenuItem.Click += new System.EventHandler(this.itemsToolStripMenuItem_Click);
//
// codesToolStripMenuItem
//
this.codesToolStripMenuItem.Name = "codesToolStripMenuItem";
- this.codesToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
+ this.codesToolStripMenuItem.Size = new System.Drawing.Size(129, 22);
this.codesToolStripMenuItem.Text = "Codes";
this.codesToolStripMenuItem.Click += new System.EventHandler(this.codesToolStripMenuItem_Click);
//
// lineCodeToolStripMenuItem
//
this.lineCodeToolStripMenuItem.Name = "lineCodeToolStripMenuItem";
- this.lineCodeToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
+ this.lineCodeToolStripMenuItem.Size = new System.Drawing.Size(129, 22);
this.lineCodeToolStripMenuItem.Text = "Line Code";
this.lineCodeToolStripMenuItem.Click += new System.EventHandler(this.lineCodeToolStripMenuItem_Click);
//
// staffGridToolStripMenuItem
//
this.staffGridToolStripMenuItem.Name = "staffGridToolStripMenuItem";
- this.staffGridToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
+ this.staffGridToolStripMenuItem.Size = new System.Drawing.Size(129, 22);
this.staffGridToolStripMenuItem.Text = "Staff Grid";
this.staffGridToolStripMenuItem.Click += new System.EventHandler(this.staffGridToolStripMenuItem_Click);
//
@@ -282,43 +285,43 @@
this.myAccouserToolStripMenuItem,
this.aDSUserListToolStripMenuItem});
this.userInfoToolStripMenuItem.Name = "userInfoToolStripMenuItem";
- this.userInfoToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
+ this.userInfoToolStripMenuItem.Size = new System.Drawing.Size(129, 22);
this.userInfoToolStripMenuItem.Text = "User Info";
this.userInfoToolStripMenuItem.Click += new System.EventHandler(this.userInfoToolStripMenuItem_Click);
//
// userAccountToolStripMenuItem
//
this.userAccountToolStripMenuItem.Name = "userAccountToolStripMenuItem";
- this.userAccountToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
+ this.userAccountToolStripMenuItem.Size = new System.Drawing.Size(151, 22);
this.userAccountToolStripMenuItem.Text = "User Account";
this.userAccountToolStripMenuItem.Click += new System.EventHandler(this.userAccountToolStripMenuItem_Click);
//
+ // myAccouserToolStripMenuItem
+ //
+ this.myAccouserToolStripMenuItem.Name = "myAccouserToolStripMenuItem";
+ this.myAccouserToolStripMenuItem.Size = new System.Drawing.Size(151, 22);
+ this.myAccouserToolStripMenuItem.Text = "User List";
+ this.myAccouserToolStripMenuItem.Click += new System.EventHandler(this.myAccouserToolStripMenuItem_Click);
+ //
// aDSUserListToolStripMenuItem
//
this.aDSUserListToolStripMenuItem.ForeColor = System.Drawing.Color.Blue;
this.aDSUserListToolStripMenuItem.Name = "aDSUserListToolStripMenuItem";
- this.aDSUserListToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
+ this.aDSUserListToolStripMenuItem.Size = new System.Drawing.Size(151, 22);
this.aDSUserListToolStripMenuItem.Text = "User List(ADS)";
this.aDSUserListToolStripMenuItem.Click += new System.EventHandler(this.aDSUserListToolStripMenuItem_Click);
//
- // myAccouserToolStripMenuItem
- //
- this.myAccouserToolStripMenuItem.Name = "myAccouserToolStripMenuItem";
- this.myAccouserToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
- this.myAccouserToolStripMenuItem.Text = "User List";
- this.myAccouserToolStripMenuItem.Click += new System.EventHandler(this.myAccouserToolStripMenuItem_Click);
- //
// mailFormToolStripMenuItem
//
this.mailFormToolStripMenuItem.Name = "mailFormToolStripMenuItem";
- this.mailFormToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
+ this.mailFormToolStripMenuItem.Size = new System.Drawing.Size(129, 22);
this.mailFormToolStripMenuItem.Text = "Mail Form";
this.mailFormToolStripMenuItem.Click += new System.EventHandler(this.mailFormToolStripMenuItem_Click);
//
// customerToolStripMenuItem
//
this.customerToolStripMenuItem.Name = "customerToolStripMenuItem";
- this.customerToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
+ this.customerToolStripMenuItem.Size = new System.Drawing.Size(129, 22);
this.customerToolStripMenuItem.Text = "Customer";
this.customerToolStripMenuItem.Click += new System.EventHandler(this.customerToolStripMenuItem_Click);
//
@@ -523,7 +526,8 @@
//
this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripButton1,
- this.toolStripButton2});
+ this.toolStripButton2,
+ this.toolStripButton3});
this.toolStrip.Location = new System.Drawing.Point(1, 25);
this.toolStrip.Name = "toolStrip";
this.toolStrip.Size = new System.Drawing.Size(1035, 25);
@@ -551,6 +555,23 @@
this.toolStripButton2.ToolTipText = "파트구매신청서 작성";
this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click);
//
+ // toolStripButton3
+ //
+ this.toolStripButton3.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
+ this.toolStripButton3.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton3.Image")));
+ this.toolStripButton3.ImageTransparentColor = System.Drawing.Color.Magenta;
+ this.toolStripButton3.Name = "toolStripButton3";
+ this.toolStripButton3.Size = new System.Drawing.Size(23, 22);
+ this.toolStripButton3.Text = "toolStripButton3";
+ this.toolStripButton3.Click += new System.EventHandler(this.toolStripButton3_Click);
+ //
+ // workReportToolStripMenuItem
+ //
+ this.workReportToolStripMenuItem.Name = "workReportToolStripMenuItem";
+ this.workReportToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
+ this.workReportToolStripMenuItem.Text = "Work_Report";
+ this.workReportToolStripMenuItem.Click += new System.EventHandler(this.workReportToolStripMenuItem_Click);
+ //
// fMain
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
@@ -641,6 +662,8 @@
private System.Windows.Forms.ToolStripMenuItem userAccountToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem aDSUserListToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem myAccouserToolStripMenuItem;
+ private System.Windows.Forms.ToolStripButton toolStripButton3;
+ private System.Windows.Forms.ToolStripMenuItem workReportToolStripMenuItem;
}
}
diff --git a/Project/fMain.cs b/Project/fMain.cs
index 43db1bd..e99fa99 100644
--- a/Project/fMain.cs
+++ b/Project/fMain.cs
@@ -173,6 +173,12 @@ namespace Project
{
menu_projecT_list();
}
+ void menu_work_report()
+ {
+ var f = new FPJ0000.fJobReport();
+ f.MdiParent = this;
+ f.Show();
+ }
void menu_projecT_list()
{
var f = new FPJ0000.fProjectList();
@@ -418,5 +424,15 @@ namespace Project
f.MdiParent = this;
f.Show();
}
+
+ private void toolStripButton3_Click(object sender, EventArgs e)
+ {
+ menu_projecT_list();
+ }
+
+ private void workReportToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ menu_work_report();
+ }
}
}
diff --git a/Project/fMain.resx b/Project/fMain.resx
index 08d56d3..ca7e97f 100644
--- a/Project/fMain.resx
+++ b/Project/fMain.resx
@@ -153,16 +153,32 @@
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
- YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIbSURBVDhPlY9daFJhGMdPdN1tV112G3QTRF0E4WZX3a2L
- OHPzzHNUFqOces579HgWKnN+nKNps+OOuiENsiksGpLSNxUtiC0GQVQE3UVrRMTc/HjK+XpEksV+8Ofl
- fZ7n9/I+BKU63lOKGxg2sm5G0lkCMysOHFU8+vIsrzut3V26coIbPL430IHKonfGNL9Oo8hlipM+EgQc
- uol05xKcfvN+/NJuEum34mhwIOk5/+1BnKyrU7qvquPMEaz3QrsCddMt23d7dLyu3LFDuSJCITfRlMWL
- zbXCtebvt354kqF35oQLL/JDQ4ex1mX0evCXr5CC1OvbID1OgXclCuySH8wLCEZUFiZyLpjKCyCkr+7a
- YqaXhjmWxGobxjezIWSTUP7y8J+UPlUgv7EM6TeLEH2aBnY53CAz3CZW21Beb84akWsdKfxI6Xu2oq4u
- wtg8v4bVNpTfT5vF6XpnyKA6+56ttH4xkmHvYrWNKRA4xvASlD5X/vuAWIpXDarDh9Uuo85IY+FVcW9o
- vxUml6Z/DqtOGmtdjGLoR7CY1Qb75d6HEpAZVB1VuFNY60J5A6vDQV+DUia3OyGzXJXMIi1GxbYzNu+W
- sdILw0kWGkkr+HpwaGfkBMPObJl4+SQuHRyLEHtucYWaVvcNYJDcE4s7BpQjVrviSfRfoQXFh6pq8RmY
- HfI2Lmns19Ow/n3daI/WxoV4GJc0ensE8Qccd6OMgOfxRwAAAABJRU5ErkJggg==
+ YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIcSURBVDhPY0iaU3o9aWbN/7Ty3ovplX3WDFAwrd5VbGad
+ +65pVS4WcH61y64pFW4qYAUwkDS/8lLi3KqLqZW9UUkVfXcYGP4zTq10sZ9S4f5208SQX9PL3d9PrnRz
+ nV7n9GrnxJg/cxpcHs8pteKFakcFqdVtf1JmFL0p6cv+M3Nlyf9du+v/r16Y96+33u/fudWF/76ea/2/
+ f07qz9m1HkdXhYYyQ7UhQHxj1+eWtbP+zzq59H/f/ln/m7dO+F++pvV/+sLK//Fzyv/nLa7+37Cq9n/t
+ 3IJfRRNTjsXNLo+BaoWAtJbOK7Xzp//f9WAvBt5+d/f/VVc2/p97etn/CQfn/i/d2PM3Zl7FW6hWCEhq
+ bl6c3tv/G6apZ99MrDQIzzm17H/ygqoLUK0QkNTamppe3/oHpihuThlWGoRBroifV74aqhUCUjo6ZNKq
+ +v5vv7eboAH12yf/iJtT2gLVigBxJb1/Fx5fB1aEzwvFa9o/xs4pS4VqQ4DE+u53XevmwxViw5tubf8f
+ Pa/yR8LMClOoNgRIau44Fd3V8jdpeuF3GI6eX/Ejen4lHCdOL/iZvKCmH6oFFaRV9GWkVvZthXJJB6ll
+ vbpp5e3vU6r6DaBCpIOM2omHM6o7/2XWTPqfVtmPgjNqJv5PKJ74O6duCnYvgEBCVeePOesO/U8v7v8O
+ FYIDfHJwkAk0Pb5owu/s2sk9UCE4QJVjYAAAeAOjM1CemPgAAAAASUVORK5CYII=
+
+
+
+
+ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
+ YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAJESURBVDhPhZHtS1NxFMf3RxQV0Zve9q7/IOhdb3pTEEFQ
+ +SYijB5UMhFLcasIq9kKjWoq+cCWxaxxhcq2hSM33aM6yQ18muZ2r+753t19O/e3n10ZZF84l/s7v/P9
+ cM75Gf4l1Iin/y9eD1laxMSbi/jy6gIyCYFn9wDxe2Z0912Gy3oJSmIEqhiB8PI8xsxnIcVGedUuED8z
+ o6e/joUU6oUYsGDN00GAMJTFASi/+mF/fBqDxlNIR4e5i0DaJyyYmFFNfoOypsVXlJacWJ80MYAqhqCm
+ gxQBFta2Ewg6mnWA1nK5lIEqRaFuzVPMVv+p/eiHKwjZ6hAbq4c43QVp5glSP40YbDmmA7R5K2oJqlKA
+ KmehxIdQ5vNrxvh4I0QypqdMyM08QGGuByN3j+oAbdsaQKE2lU0/B1FHBFh1t5HZjC1fJ7Lh5yxy0Rd4
+ 13REB2hPVSkXIa97IW9MQk5+h7wsoFyUkFmwI+2vtr4dfIpMyMwgAw2HdYDTco4ABQK4INMS5RUB8pKD
+ QG4sjLdiw2tEauoRJNrBdrCbIN14e+OADnA8O4OKkq8alz+T+SPkhJ0ALsSEZiR/dFQhrJMuBuit36cD
+ fO9vVxepZClykOM2tkiFRpl3NrE97EByEQteX99Pr3NVB2gS5+xsFDZOMQX1t5cAE5gdvYZVTztWXPfR
+ d+sQM+d9LdxFgB3xMzYjQxjuPAlb+3GUOUDbuPXmQeT9rbxql7FW/B65wENEP91h285P3+PZPYy14vV/
+ xdM1Mhj+AC07yRaMtd+HAAAAAElFTkSuQmCC
diff --git a/SubProject/FCM0000/FCM0000.csproj b/SubProject/FCM0000/FCM0000.csproj
index ab8acea..38e7915 100644
--- a/SubProject/FCM0000/FCM0000.csproj
+++ b/SubProject/FCM0000/FCM0000.csproj
@@ -17,7 +17,7 @@
true
full
false
- bin\Debug\
+ ..\..\..\..\..\Amkor\GroupWare\
DEBUG;TRACE
prompt
4
@@ -35,6 +35,42 @@
..\..\DLL\ArSetting.Net4.dll
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
..\..\DLL\libxl.net.dll
@@ -56,6 +92,7 @@
True
+
@@ -71,6 +108,7 @@
False
True
+
@@ -150,6 +188,12 @@
fMailform.cs
+
+ Form
+
+
+ fSelectDate.cs
+
@@ -189,11 +233,16 @@
fMailform.cs
+
+ fSelectDate.cs
+
+
ResXFileCodeGenerator
Resources.Designer.cs
Designer
+
True
Resources.resx
diff --git a/SubProject/FCM0000/fItems.Designer.cs b/SubProject/FCM0000/fItems.Designer.cs
index d446d35..2013bf9 100644
--- a/SubProject/FCM0000/fItems.Designer.cs
+++ b/SubProject/FCM0000/fItems.Designer.cs
@@ -30,13 +30,16 @@
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fItems));
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
+ FarPoint.Win.Spread.CellType.NumberCellType numberCellType7 = new FarPoint.Win.Spread.CellType.NumberCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType15 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType16 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType17 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType18 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType19 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.NumberCellType numberCellType8 = new FarPoint.Win.Spread.CellType.NumberCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType20 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType21 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.NumberCellType numberCellType9 = new FarPoint.Win.Spread.CellType.NumberCellType();
this.bn = new System.Windows.Forms.BindingNavigator(this.components);
this.bindingNavigatorAddNewItem = new System.Windows.Forms.ToolStripButton();
this.bs = new System.Windows.Forms.BindingSource(this.components);
@@ -56,10 +59,12 @@
this.toolStripLabel3 = new System.Windows.Forms.ToolStripLabel();
this.tbFind = new System.Windows.Forms.ToolStripTextBox();
this.btFind = new System.Windows.Forms.ToolStripButton();
- this.dv1 = new System.Windows.Forms.DataGridView();
this.cm1 = new System.Windows.Forms.ContextMenuStrip(this.components);
- this.autoColumnSizeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.cm1ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.columnSizeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.autoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.resetToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.loadToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ta = new FCM0000.dsMSSQLTableAdapters.ItemsTableAdapter();
this.tam = new FCM0000.dsMSSQLTableAdapters.TableAdapterManager();
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
@@ -69,25 +74,18 @@
this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel();
this.cmbMode = new System.Windows.Forms.ToolStripComboBox();
this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
- this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.cate = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.supplyidx = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.price = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.scale = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.unit = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.fpSpread1 = new FarPoint.Win.Spread.FpSpread();
+ this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
+ this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator();
+ this.viewPurchaseListToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
this.bn.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.dv1)).BeginInit();
this.cm1.SuspendLayout();
this.toolStrip1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).BeginInit();
this.SuspendLayout();
//
// bn
@@ -137,6 +135,7 @@
//
this.bs.DataMember = "Items";
this.bs.DataSource = this.dsMSSQL;
+ this.bs.Sort = "sid,name";
//
// dsMSSQL
//
@@ -255,57 +254,58 @@
this.btFind.Text = "toolStripButton1";
this.btFind.Click += new System.EventHandler(this.toolStripButton1_Click_1);
//
- // dv1
- //
- this.dv1.AllowUserToAddRows = false;
- this.dv1.AutoGenerateColumns = false;
- this.dv1.ColumnHeadersHeight = 30;
- this.dv1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
- this.dv1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
- this.dataGridViewTextBoxColumn1,
- this.cate,
- this.dataGridViewTextBoxColumn2,
- this.dataGridViewTextBoxColumn3,
- this.dataGridViewTextBoxColumn4,
- this.dataGridViewTextBoxColumn5,
- this.dataGridViewTextBoxColumn6,
- this.supplyidx,
- this.price,
- this.scale,
- this.unit,
- this.dataGridViewTextBoxColumn7});
- this.dv1.ContextMenuStrip = this.cm1;
- this.dv1.DataSource = this.bs;
- this.dv1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.dv1.Location = new System.Drawing.Point(0, 25);
- this.dv1.Name = "dv1";
- this.dv1.RowTemplate.Height = 23;
- this.dv1.Size = new System.Drawing.Size(758, 416);
- this.dv1.TabIndex = 1;
- this.dv1.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.dv1_CellEndEdit);
- this.dv1.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.dv1_DataError);
- this.dv1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dv1_KeyDown);
- //
// cm1
//
+ this.cm1.Font = new System.Drawing.Font("맑은 고딕", 20F);
this.cm1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.autoColumnSizeToolStripMenuItem,
- this.cm1ToolStripMenuItem});
+ this.columnSizeToolStripMenuItem,
+ this.toolStripMenuItem1,
+ this.viewPurchaseListToolStripMenuItem});
this.cm1.Name = "cm1";
- this.cm1.Size = new System.Drawing.Size(170, 48);
+ this.cm1.Size = new System.Drawing.Size(318, 116);
//
- // autoColumnSizeToolStripMenuItem
+ // columnSizeToolStripMenuItem
//
- this.autoColumnSizeToolStripMenuItem.Name = "autoColumnSizeToolStripMenuItem";
- this.autoColumnSizeToolStripMenuItem.Size = new System.Drawing.Size(169, 22);
- this.autoColumnSizeToolStripMenuItem.Text = "AutoColumn Size";
- this.autoColumnSizeToolStripMenuItem.Click += new System.EventHandler(this.autoColumnSizeToolStripMenuItem_Click);
+ this.columnSizeToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.autoToolStripMenuItem,
+ this.resetToolStripMenuItem,
+ this.saveToolStripMenuItem,
+ this.loadToolStripMenuItem});
+ this.columnSizeToolStripMenuItem.Name = "columnSizeToolStripMenuItem";
+ this.columnSizeToolStripMenuItem.Size = new System.Drawing.Size(247, 42);
+ this.columnSizeToolStripMenuItem.Text = "Column Size";
//
- // cm1ToolStripMenuItem
+ // autoToolStripMenuItem
//
- this.cm1ToolStripMenuItem.Name = "cm1ToolStripMenuItem";
- this.cm1ToolStripMenuItem.Size = new System.Drawing.Size(169, 22);
- this.cm1ToolStripMenuItem.Text = "cm1";
+ this.autoToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("autoToolStripMenuItem.Image")));
+ this.autoToolStripMenuItem.Name = "autoToolStripMenuItem";
+ this.autoToolStripMenuItem.Size = new System.Drawing.Size(159, 42);
+ this.autoToolStripMenuItem.Text = "Auto";
+ this.autoToolStripMenuItem.Click += new System.EventHandler(this.autoToolStripMenuItem_Click);
+ //
+ // resetToolStripMenuItem
+ //
+ this.resetToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("resetToolStripMenuItem.Image")));
+ this.resetToolStripMenuItem.Name = "resetToolStripMenuItem";
+ this.resetToolStripMenuItem.Size = new System.Drawing.Size(159, 42);
+ this.resetToolStripMenuItem.Text = "Reset";
+ this.resetToolStripMenuItem.Click += new System.EventHandler(this.resetToolStripMenuItem_Click);
+ //
+ // saveToolStripMenuItem
+ //
+ this.saveToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("saveToolStripMenuItem.Image")));
+ this.saveToolStripMenuItem.Name = "saveToolStripMenuItem";
+ this.saveToolStripMenuItem.Size = new System.Drawing.Size(159, 42);
+ this.saveToolStripMenuItem.Text = "Save";
+ this.saveToolStripMenuItem.Click += new System.EventHandler(this.saveToolStripMenuItem_Click);
+ //
+ // loadToolStripMenuItem
+ //
+ this.loadToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("loadToolStripMenuItem.Image")));
+ this.loadToolStripMenuItem.Name = "loadToolStripMenuItem";
+ this.loadToolStripMenuItem.Size = new System.Drawing.Size(159, 42);
+ this.loadToolStripMenuItem.Text = "Load";
+ this.loadToolStripMenuItem.Click += new System.EventHandler(this.loadToolStripMenuItem_Click);
//
// ta
//
@@ -384,110 +384,113 @@
this.toolStripButton2.Text = "Refresh";
this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click);
//
- // dataGridViewTextBoxColumn1
+ // fpSpread1
//
- 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.Name = "dataGridViewTextBoxColumn1";
- this.dataGridViewTextBoxColumn1.ReadOnly = true;
- this.dataGridViewTextBoxColumn1.Width = 47;
+ this.fpSpread1.AccessibleDescription = "";
+ this.fpSpread1.ContextMenuStrip = this.cm1;
+ this.fpSpread1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.fpSpread1.Font = new System.Drawing.Font("맑은 고딕", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
+ this.fpSpread1.Location = new System.Drawing.Point(0, 25);
+ this.fpSpread1.Name = "fpSpread1";
+ this.fpSpread1.Sheets.AddRange(new FarPoint.Win.Spread.SheetView[] {
+ this.fpSpread1_Sheet1});
+ this.fpSpread1.Size = new System.Drawing.Size(758, 416);
+ this.fpSpread1.TabIndex = 3;
//
- // cate
+ // fpSpread1_Sheet1
//
- this.cate.DataPropertyName = "cate";
- dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
- this.cate.DefaultCellStyle = dataGridViewCellStyle2;
- this.cate.HeaderText = "Category";
- this.cate.Name = "cate";
+ this.fpSpread1_Sheet1.Reset();
+ this.fpSpread1_Sheet1.SheetName = "Sheet1";
+ // Formulas and custom names must be loaded with R1C1 reference style
+ this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.R1C1;
+ this.fpSpread1_Sheet1.ColumnCount = 10;
+ this.fpSpread1_Sheet1.ActiveColumnIndex = -1;
+ this.fpSpread1_Sheet1.ActiveRowIndex = -1;
+ this.fpSpread1_Sheet1.AutoGenerateColumns = false;
+ this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 42F;
+ this.fpSpread1_Sheet1.Columns.Get(0).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
+ numberCellType7.DecimalPlaces = 0;
+ numberCellType7.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
+ numberCellType7.MaximumValue = 2147483647D;
+ numberCellType7.MinimumValue = -2147483648D;
+ this.fpSpread1_Sheet1.Columns.Get(0).CellType = numberCellType7;
+ this.fpSpread1_Sheet1.Columns.Get(0).DataField = "idx";
+ this.fpSpread1_Sheet1.Columns.Get(0).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(0).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(0).Width = 88F;
+ this.fpSpread1_Sheet1.Columns.Get(1).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
+ this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType15;
+ this.fpSpread1_Sheet1.Columns.Get(1).DataField = "cate";
+ this.fpSpread1_Sheet1.Columns.Get(1).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(1).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(1).Width = 113F;
+ this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType16;
+ this.fpSpread1_Sheet1.Columns.Get(2).DataField = "name";
+ this.fpSpread1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
+ this.fpSpread1_Sheet1.Columns.Get(2).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(2).Width = 113F;
+ this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType17;
+ this.fpSpread1_Sheet1.Columns.Get(3).DataField = "sid";
+ this.fpSpread1_Sheet1.Columns.Get(3).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(3).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(3).Width = 113F;
+ this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType18;
+ this.fpSpread1_Sheet1.Columns.Get(4).DataField = "model";
+ this.fpSpread1_Sheet1.Columns.Get(4).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
+ this.fpSpread1_Sheet1.Columns.Get(4).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(4).Width = 113F;
+ this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType19;
+ this.fpSpread1_Sheet1.Columns.Get(5).DataField = "unit";
+ this.fpSpread1_Sheet1.Columns.Get(5).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(5).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(5).Width = 113F;
+ numberCellType8.MaximumValue = 999999999999999D;
+ numberCellType8.MinimumValue = -999999999999999D;
+ this.fpSpread1_Sheet1.Columns.Get(6).CellType = numberCellType8;
+ this.fpSpread1_Sheet1.Columns.Get(6).DataField = "price";
+ this.fpSpread1_Sheet1.Columns.Get(6).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
+ this.fpSpread1_Sheet1.Columns.Get(6).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(6).Width = 84F;
+ this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType20;
+ this.fpSpread1_Sheet1.Columns.Get(7).DataField = "manu";
+ this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
+ this.fpSpread1_Sheet1.Columns.Get(7).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(7).Width = 113F;
+ this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType21;
+ this.fpSpread1_Sheet1.Columns.Get(8).DataField = "memo";
+ this.fpSpread1_Sheet1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
+ this.fpSpread1_Sheet1.Columns.Get(8).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(8).Width = 113F;
+ numberCellType9.MaximumValue = 999999999999999D;
+ numberCellType9.MinimumValue = -999999999999999D;
+ this.fpSpread1_Sheet1.Columns.Get(9).CellType = numberCellType9;
+ this.fpSpread1_Sheet1.Columns.Get(9).DataField = "scale";
+ this.fpSpread1_Sheet1.Columns.Get(9).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(9).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(9).Width = 84F;
+ this.fpSpread1_Sheet1.DataAutoSizeColumns = false;
+ this.fpSpread1_Sheet1.DataSource = this.bs;
+ this.fpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false;
+ this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1;
//
- // dataGridViewTextBoxColumn2
+ // toolStripMenuItem1
//
- this.dataGridViewTextBoxColumn2.DataPropertyName = "name";
- this.dataGridViewTextBoxColumn2.HeaderText = "name";
- this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
- this.dataGridViewTextBoxColumn2.Width = 62;
+ this.toolStripMenuItem1.Name = "toolStripMenuItem1";
+ this.toolStripMenuItem1.Size = new System.Drawing.Size(314, 6);
//
- // dataGridViewTextBoxColumn3
+ // viewPurchaseListToolStripMenuItem
//
- this.dataGridViewTextBoxColumn3.DataPropertyName = "sid";
- dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- this.dataGridViewTextBoxColumn3.DefaultCellStyle = dataGridViewCellStyle3;
- this.dataGridViewTextBoxColumn3.HeaderText = "sid";
- this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
- this.dataGridViewTextBoxColumn3.Width = 47;
- //
- // dataGridViewTextBoxColumn4
- //
- this.dataGridViewTextBoxColumn4.DataPropertyName = "model";
- this.dataGridViewTextBoxColumn4.HeaderText = "model";
- this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
- this.dataGridViewTextBoxColumn4.Width = 65;
- //
- // dataGridViewTextBoxColumn5
- //
- this.dataGridViewTextBoxColumn5.DataPropertyName = "manu";
- this.dataGridViewTextBoxColumn5.HeaderText = "manu";
- this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
- this.dataGridViewTextBoxColumn5.Width = 62;
- //
- // dataGridViewTextBoxColumn6
- //
- this.dataGridViewTextBoxColumn6.DataPropertyName = "supply";
- this.dataGridViewTextBoxColumn6.HeaderText = "supply";
- this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
- this.dataGridViewTextBoxColumn6.Width = 68;
- //
- // supplyidx
- //
- this.supplyidx.DataPropertyName = "supplyidx";
- dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
- this.supplyidx.DefaultCellStyle = dataGridViewCellStyle4;
- this.supplyidx.HeaderText = "idx";
- this.supplyidx.Name = "supplyidx";
- //
- // price
- //
- this.price.DataPropertyName = "price";
- dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
- dataGridViewCellStyle5.Format = "N0";
- this.price.DefaultCellStyle = dataGridViewCellStyle5;
- this.price.HeaderText = "price";
- this.price.Name = "price";
- //
- // scale
- //
- this.scale.DataPropertyName = "scale";
- dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- this.scale.DefaultCellStyle = dataGridViewCellStyle6;
- this.scale.HeaderText = "scale";
- this.scale.Name = "scale";
- //
- // unit
- //
- this.unit.DataPropertyName = "unit";
- dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- this.unit.DefaultCellStyle = dataGridViewCellStyle7;
- this.unit.HeaderText = "unit";
- this.unit.Name = "unit";
- //
- // dataGridViewTextBoxColumn7
- //
- this.dataGridViewTextBoxColumn7.DataPropertyName = "memo";
- this.dataGridViewTextBoxColumn7.HeaderText = "memo";
- this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7";
- this.dataGridViewTextBoxColumn7.Width = 66;
+ this.viewPurchaseListToolStripMenuItem.Enabled = false;
+ this.viewPurchaseListToolStripMenuItem.Name = "viewPurchaseListToolStripMenuItem";
+ this.viewPurchaseListToolStripMenuItem.Size = new System.Drawing.Size(317, 42);
+ this.viewPurchaseListToolStripMenuItem.Text = "view Purchase List";
//
// fItems
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(758, 466);
- this.Controls.Add(this.dv1);
+ this.Controls.Add(this.fpSpread1);
this.Controls.Add(this.toolStrip1);
this.Controls.Add(this.bn);
this.Name = "fItems";
@@ -498,10 +501,11 @@
this.bn.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.dv1)).EndInit();
this.cm1.ResumeLayout(false);
this.toolStrip1.ResumeLayout(false);
this.toolStrip1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@@ -526,10 +530,7 @@
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2;
private System.Windows.Forms.ToolStripButton itemsBindingNavigatorSaveItem;
- private System.Windows.Forms.DataGridView dv1;
private System.Windows.Forms.ContextMenuStrip cm1;
- private System.Windows.Forms.ToolStripMenuItem autoColumnSizeToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem cm1ToolStripMenuItem;
private System.Windows.Forms.ToolStrip toolStrip1;
private System.Windows.Forms.ToolStripComboBox cmbMode;
private System.Windows.Forms.ToolStripButton toolStripButton2;
@@ -541,17 +542,14 @@
private System.Windows.Forms.ToolStripLabel toolStripLabel3;
private System.Windows.Forms.ToolStripTextBox tbFind;
private System.Windows.Forms.ToolStripButton btFind;
- private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
- private System.Windows.Forms.DataGridViewTextBoxColumn cate;
- private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
- private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
- private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;
- private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn5;
- private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn6;
- private System.Windows.Forms.DataGridViewTextBoxColumn supplyidx;
- private System.Windows.Forms.DataGridViewTextBoxColumn price;
- private System.Windows.Forms.DataGridViewTextBoxColumn scale;
- private System.Windows.Forms.DataGridViewTextBoxColumn unit;
- private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn7;
+ private FarPoint.Win.Spread.FpSpread fpSpread1;
+ private System.Windows.Forms.ToolStripMenuItem columnSizeToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem autoToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem resetToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem saveToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem loadToolStripMenuItem;
+ private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1;
+ private System.Windows.Forms.ToolStripSeparator toolStripMenuItem1;
+ private System.Windows.Forms.ToolStripMenuItem viewPurchaseListToolStripMenuItem;
}
}
\ No newline at end of file
diff --git a/SubProject/FCM0000/fItems.cs b/SubProject/FCM0000/fItems.cs
index dd39a0c..91f8d5d 100644
--- a/SubProject/FCM0000/fItems.cs
+++ b/SubProject/FCM0000/fItems.cs
@@ -6,14 +6,17 @@ using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
+using util = FCOMMON.Util;
namespace FCM0000
{
public partial class fItems : FCOMMON.fBase
{
+ string fn_fpcolsize = "";
public fItems()
{
InitializeComponent();
+ fn_fpcolsize = util.MakeFilePath(util.CurrentPath, "formSetting", "fp_" + this.Name + ".ini");
this.FormClosed += fItems_FormClosed;
this.dsMSSQL.Items.TableNewRow += Items_TableNewRow;
}
@@ -30,8 +33,12 @@ namespace FCM0000
foreach (var item in cateList)
cmbCate.Items.Add(item.Key);
this.cmbCate.SelectedIndex = 0;
-
this.cmbMode.SelectedIndex = 0;
+ //this.Show();
+ //Application.DoEvents();
+
+
+
refreshData();
}
void refreshData()
@@ -44,7 +51,7 @@ namespace FCM0000
else
this.ta.FillDupCheck(this.dsMSSQL.Items, cateSearch);
- this.dv1.AutoResizeColumns();
+ FPUtil.ColSizeLoad(ref this.fpSpread1, fn_fpcolsize);
}
void Items_TableNewRow(object sender, DataTableNewRowEventArgs e)
@@ -71,21 +78,6 @@ namespace FCM0000
}
- }
-
- private void autoColumnSizeToolStripMenuItem_Click(object sender, EventArgs e)
- {
- this.dv1.AutoResizeColumns();
- }
-
- private void toolStripButton1_Click(object sender, EventArgs e)
- {
-
- }
-
- private void dv1_DataError(object sender, DataGridViewDataErrorEventArgs e)
- {
-
}
private void toolStripButton2_Click(object sender, EventArgs e)
@@ -93,33 +85,28 @@ namespace FCM0000
refreshData();
}
- private void dv1_KeyDown(object sender, KeyEventArgs e)
- {
-
- }
-
private void dv1_CellEndEdit(object sender, DataGridViewCellEventArgs e)
{
- var col = this.dv1.Columns[e.ColumnIndex];
- var value = this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value;
+ //var col = this.dv1.Columns[e.ColumnIndex];
+ //var value = this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value;
- switch (col.DataPropertyName.ToLower())
- {
- case "supply": //공급처는 검색하게 한다.
- if (value == null) return;
- var search = value.ToString();
- if (search.isEmpty()) return;
+ //switch (col.DataPropertyName.ToLower())
+ //{
+ // case "supply": //공급처는 검색하게 한다.
+ // if (value == null) return;
+ // var search = value.ToString();
+ // if (search.isEmpty()) return;
- FCM0000.fLovSupply f = new fLovSupply(search);
- if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
- {
- var name = f.Title;
- var idx = f.Index;
- dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = name;
- dv1.Rows[e.RowIndex].Cells[e.ColumnIndex + 1].Value = idx;
- }
- break;
- }
+ // FCM0000.fLovSupply f = new fLovSupply(search);
+ // if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
+ // {
+ // var name = f.Title;
+ // var idx = f.Index;
+ // dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = name;
+ // dv1.Rows[e.RowIndex].Cells[e.ColumnIndex + 1].Value = idx;
+ // }
+ // break;
+ //}
}
private void toolStripButton1_Click_1(object sender, EventArgs e)
@@ -160,6 +147,33 @@ namespace FCM0000
}
+ private void autoToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ this.fpSpread1.ActiveSheet.DataAutoSizeColumns = true;
+
+ for (int i = 0; i < this.fpSpread1.ActiveSheet.Rows.Count; i++)
+ this.fpSpread1.ActiveSheet.SetRowHeight(i, 25);
+ //dv1.AutoResizeColumns();
+ }
+
+ private void resetToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ foreach (FarPoint.Win.Spread.Column col in this.fpSpread1.ActiveSheet.Columns)
+ {
+ col.Width = 100;
+ }
+ }
+
+ private void saveToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ FPUtil.ColsizeSave(this.fpSpread1, fn_fpcolsize);
+ }
+
+ private void loadToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ FPUtil.ColSizeLoad(ref this.fpSpread1, fn_fpcolsize);
+ }
+
}
}
diff --git a/SubProject/FCM0000/fItems.resx b/SubProject/FCM0000/fItems.resx
index c5941b1..f24586f 100644
--- a/SubProject/FCM0000/fItems.resx
+++ b/SubProject/FCM0000/fItems.resx
@@ -209,24 +209,51 @@
GoSrpcVIQqmAj6LZftFBup9vWiUlUQdIDCbsQrsGZRJKBbOXyA++SlEsu6QjvQAAAABJRU5ErkJggg==
-
- True
-
-
- True
-
-
- True
-
-
- True
-
-
- True
+
+ 17, 17
- 387, 17
+ 385, 12
+
+
+ R0lGODlhEAAQAIQfAJXG2JXa+ZLO5ChrlkCy4TZ1kiVvpCN0trvo9SN5xTd4lrfh7iR9zo3S+EGz7JDJ
+ 4TaCromrvC9ymyV+0Dd3mTl1koe72YvN7LTj+9ne6N3g6v7+/0Cw2Stoh////////yH/C05FVFNDQVBF
+ Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAInwA/CBzooaAHgQUHKvRQoUABCgUlHFT4IYMCBAsQIIBg
+ wcBEgh0WCBDAgcAFDAc+fvDQIUKHDgMeEHDQIIFKlgoMGgjQoAGDmwUOehhg4EACBhM+GlzKVOkEBgkO
+ GBggNOhCBhgCBPBYUEGHmwkCOCDwYMCAll8XHghwgQCHkQDSLjRgAcKDBwAAKNCwgaIHiR4oOKygkuDE
+ pRQTK6YYEAA7
+
+
+
+
+ R0lGODlhEAAQAIQfALnik2aXQv7+/dPut73llbfala3LmW6gSWqdQ2eYRGqaSLfck568iYrUQN7yzF6R
+ PLTXlYjUP8XwmYfQQLbYl4jRQGiaQsPumNbyu7nglNPzsLXYlf7+/lCHK////////yH/C05FVFNDQVBF
+ Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAIlgA/CBzooaAHgQUHEvSgIEAABQUfHFTIwQECDAMwYDhg
+ oENCgRw8dBgAAECFBgsweJxYsAODDjApTIhAwCMHkCItGOxwgUCGlQQTeAgJsyhQg0iTGvzQ0qhND0IX
+ dtBwQcJKDxZsIhQpIcIECkVffmwpYUGDCiUheBQg1cCBAgU2QFDg4KZCDxIZOoQ48S7LpQoDCx4cEAA7
+
+
+
+
+ R0lGODlhEAAQAIQAAJXD9Iasxm6MqnSn2lZtjVaRyEpXbYu767TX/2KZztvr/4Gy5KrT/3ut32+gzlFh
+ e+r0/0RNX9/u/9Ln+8Xg//n8/4e36CkxQz9GVkSCvKjL35/N/Je91K7T5bDS4////yH/C05FVFNDQVBF
+ Mi4wAwEBAAAh+QQAAAAAACwAAAAAEAAQAAAIuQA/CBxIsKDACRwScggQwIGAhwIICBDYQcEEgwg+bNjw
+ QKCHCQgkQBgpQcKBCg0AEBCoAaRIkhIsVBigUiAHCgwkKNjJU8GAAx0/3NwIAMABCwsaDHCwIGgAChuK
+ HjiQdMDSAQYEPpWKtKqDBA6yfgiAwGhXpUsTJIgg0AGCo0nRfi1QgO0HAQyQNpCrtkAGDAIFbKi69GsC
+ un8FEohqdEFavxkyXAhMoPKDBwYMRIiAAcOFoAZDCwwIADs=
+
+
+
+
+ R0lGODlhEAAQAIQfAJfL/OTs9HWVsW6aUqnT+6bnZldwkYiux7TZ/O3z+UlVa/P2+ZfTW36wWJDLV4m7
+ 69nn78bi/qjL3qDP+VJhe4rAVa7S40NLXJ3bYJrA1ikxQz5FVdDU22OPRf///////yH/C05FVFNDQVBF
+ Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAIwQA9CBxIcOCHgx4gWLAgIUOGAwcESBTgAaEFCAEGaBwQ
+ IGOABwYqerCQsYBJBho7JHgAUqCEDjAxYGBQgYHKBAsoCMzQIUIEmA6CdkCAIOfOBT5/MnBQYSgBozCj
+ SoVJ4KkCDx1MFhhKFEFVAhMCXM1aAANMoh2qTgh7AWvZmQ6igp0AIEDbDg0aLA06YC4AABA2eBjgYcHG
+ vmv/Akgg2IMBDgsSdJwcAEICDhoECjDAmQIFBQouXNiwQYPOgqgLBgQAOw==
+
+
186, 17
@@ -236,4 +263,7 @@
462, 17
+
+ 568, 17
+
\ No newline at end of file
diff --git a/SubProject/FCM0000/fLovItem.cs b/SubProject/FCM0000/fLovItem.cs
index f432942..374bc73 100644
--- a/SubProject/FCM0000/fLovItem.cs
+++ b/SubProject/FCM0000/fLovItem.cs
@@ -70,11 +70,16 @@ namespace FCM0000
{
var dr = drv.Row as dsMSSQL.ItemsRow;
item = dr.idx;
- itemName = dr.name;
- itemmodel = dr.model;
- itemprice = dr.price;
- itemSupply = dr.supply;
- itemSupplyidx = dr.supplyidx;
+ if (dr.IsnameNull()) itemName = string.Empty;
+ else itemName = dr.name;
+ if (dr.IsmodelNull()) itemmodel = string.Empty;
+ else itemmodel = dr.model;
+ if (dr.IspriceNull()) itemprice = 0;
+ else itemprice = dr.price;
+ if (dr.IssupplyNull()) itemSupply = string.Empty;
+ else itemSupply = dr.supply;
+ if (dr.IssupplyidxNull()) itemSupplyidx = -1;
+ else itemSupplyidx = dr.supplyidx;
SID = dr.sid;
}
btOK.PerformClick();
diff --git a/SubProject/FCOMMON/DataBaseManager.cs b/SubProject/FCOMMON/DataBaseManager.cs
index 50b89c7..c14ea34 100644
--- a/SubProject/FCOMMON/DataBaseManager.cs
+++ b/SubProject/FCOMMON/DataBaseManager.cs
@@ -27,6 +27,49 @@ namespace FCOMMON
public float scale;
public string price;
public int supplyidx;
+ public string project;
+ public int qty;
+ }
+
+ public static sItemInfo getLastPurchaseInfo(int idx)
+ {
+ var cn = getCn();
+ cn.Open();
+
+ var retval = new sItemInfo();
+ retval.idx = -1;
+
+ string sql = "select isnull(max(idx),-1) from Purchase where pumidx = " + idx.ToString();
+ var cmd = new SqlCommand(sql, cn);
+ int maxidx = int.Parse(cmd.ExecuteScalar().ToString());
+ if (maxidx == -1) return retval;
+
+ cmd.CommandText = "select * from Purchase where idx = " + maxidx.ToString();
+ var rdr = cmd.ExecuteReader();
+ while (rdr.Read())
+ {
+ retval.idx = (int)rdr["idx"];
+ if (rdr["sid"] != DBNull.Value) retval.sid = rdr["sid"].ToString();
+ if (rdr["pumscale"] != DBNull.Value) retval.model = rdr["pumscale"].ToString();
+ if (rdr["supply"] != DBNull.Value) retval.supply = rdr["supply"].ToString();
+ if (rdr["supplyidx"] != DBNull.Value) retval.supplyidx = int.Parse(rdr["supplyidx"].ToString());
+ else retval.supplyidx = -1;
+
+ if (rdr["pumname"] != DBNull.Value) retval.name = rdr["pumname"].ToString();
+ if (rdr["pumunit"] != DBNull.Value) retval.unit = rdr["pumunit"].ToString();
+ if (rdr["project"] != DBNull.Value) retval.project = rdr["project"].ToString();
+
+ if (rdr["pumprice"] != DBNull.Value) retval.price = rdr["pumprice"].ToString();
+ else retval.price = "0";
+
+ if (rdr["pumqty"] != DBNull.Value) retval.qty = int.Parse(rdr["pumqty"].ToString());
+ else retval.qty = 0;
+
+ }
+
+ cn.Close();
+ cn.Dispose();
+ return retval;
}
public static sItemInfo getItemInfo(int idx)
diff --git a/SubProject/FEQ0000/FEQ0000.csproj b/SubProject/FEQ0000/FEQ0000.csproj
index 597ae69..7cd9aba 100644
--- a/SubProject/FEQ0000/FEQ0000.csproj
+++ b/SubProject/FEQ0000/FEQ0000.csproj
@@ -9,7 +9,7 @@
Properties
FEQ0000
FEQ0000
- v4.5.2
+ v4.5
512
diff --git a/SubProject/FEQ0000/Purchase/fPurchase.Designer.cs b/SubProject/FEQ0000/Purchase/fPurchase.Designer.cs
index 0db53d2..15fd170 100644
--- a/SubProject/FEQ0000/Purchase/fPurchase.Designer.cs
+++ b/SubProject/FEQ0000/Purchase/fPurchase.Designer.cs
@@ -70,6 +70,7 @@
this.bindingNavigatorAddNewItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorDeleteItem = new System.Windows.Forms.ToolStripButton();
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
+ this.btEdit = new System.Windows.Forms.ToolStripButton();
this.btSave = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
@@ -101,17 +102,16 @@
this.toolStripLabel3 = new System.Windows.Forms.ToolStripLabel();
this.tbRequest = new System.Windows.Forms.ToolStripTextBox();
this.btSearch = new System.Windows.Forms.ToolStripButton();
- this.FpSpread1 = new FarPoint.Win.Spread.FpSpread();
- this.FpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
- this.btEdit = new System.Windows.Forms.ToolStripButton();
+ this.fpSpread1 = new FarPoint.Win.Spread.FpSpread();
+ this.sheetView1 = new FarPoint.Win.Spread.SheetView();
((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
this.bn.SuspendLayout();
this.cm1.SuspendLayout();
this.toolStrip1.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.FpSpread1)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.FpSpread1_Sheet1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.sheetView1)).BeginInit();
this.SuspendLayout();
//
// dsPurchase
@@ -269,6 +269,15 @@
this.toolStripButton1.Text = "Report(Summary)";
this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click_1);
//
+ // btEdit
+ //
+ this.btEdit.Image = ((System.Drawing.Image)(resources.GetObject("btEdit.Image")));
+ this.btEdit.ImageTransparentColor = System.Drawing.Color.Magenta;
+ this.btEdit.Name = "btEdit";
+ this.btEdit.Size = new System.Drawing.Size(61, 23);
+ this.btEdit.Text = "Edit(&E)";
+ this.btEdit.Click += new System.EventHandler(this.toolStripButton2_Click);
+ //
// btSave
//
this.btSave.Image = global::FEQ0000.Properties.Resources.action_save;
@@ -329,6 +338,7 @@
//
// cm1
//
+ this.cm1.Font = new System.Drawing.Font("맑은 고딕", 20F);
this.cm1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.columnSizeToolStripMenuItem,
this.toolStripMenuItem1,
@@ -337,7 +347,7 @@
this.toolStripMenuItem2,
this.viewThisUserDataToolStripMenuItem});
this.cm1.Name = "contextMenuStrip1";
- this.cm1.Size = new System.Drawing.Size(180, 104);
+ this.cm1.Size = new System.Drawing.Size(337, 184);
//
// columnSizeToolStripMenuItem
//
@@ -347,14 +357,14 @@
this.saveToolStripMenuItem,
this.loadToolStripMenuItem});
this.columnSizeToolStripMenuItem.Name = "columnSizeToolStripMenuItem";
- this.columnSizeToolStripMenuItem.Size = new System.Drawing.Size(179, 22);
+ this.columnSizeToolStripMenuItem.Size = new System.Drawing.Size(336, 42);
this.columnSizeToolStripMenuItem.Text = "Column Size";
//
// autoToolStripMenuItem
//
this.autoToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("autoToolStripMenuItem.Image")));
this.autoToolStripMenuItem.Name = "autoToolStripMenuItem";
- this.autoToolStripMenuItem.Size = new System.Drawing.Size(102, 22);
+ this.autoToolStripMenuItem.Size = new System.Drawing.Size(159, 42);
this.autoToolStripMenuItem.Text = "Auto";
this.autoToolStripMenuItem.Click += new System.EventHandler(this.autoToolStripMenuItem_Click);
//
@@ -362,7 +372,7 @@
//
this.resetToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("resetToolStripMenuItem.Image")));
this.resetToolStripMenuItem.Name = "resetToolStripMenuItem";
- this.resetToolStripMenuItem.Size = new System.Drawing.Size(102, 22);
+ this.resetToolStripMenuItem.Size = new System.Drawing.Size(159, 42);
this.resetToolStripMenuItem.Text = "Reset";
this.resetToolStripMenuItem.Click += new System.EventHandler(this.resetToolStripMenuItem_Click);
//
@@ -370,7 +380,7 @@
//
this.saveToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("saveToolStripMenuItem.Image")));
this.saveToolStripMenuItem.Name = "saveToolStripMenuItem";
- this.saveToolStripMenuItem.Size = new System.Drawing.Size(102, 22);
+ this.saveToolStripMenuItem.Size = new System.Drawing.Size(159, 42);
this.saveToolStripMenuItem.Text = "Save";
this.saveToolStripMenuItem.Click += new System.EventHandler(this.saveToolStripMenuItem_Click);
//
@@ -378,38 +388,38 @@
//
this.loadToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("loadToolStripMenuItem.Image")));
this.loadToolStripMenuItem.Name = "loadToolStripMenuItem";
- this.loadToolStripMenuItem.Size = new System.Drawing.Size(102, 22);
+ this.loadToolStripMenuItem.Size = new System.Drawing.Size(159, 42);
this.loadToolStripMenuItem.Text = "Load";
this.loadToolStripMenuItem.Click += new System.EventHandler(this.loadToolStripMenuItem_Click);
//
// toolStripMenuItem1
//
this.toolStripMenuItem1.Name = "toolStripMenuItem1";
- this.toolStripMenuItem1.Size = new System.Drawing.Size(176, 6);
+ this.toolStripMenuItem1.Size = new System.Drawing.Size(333, 6);
//
// copyDataToolStripMenuItem
//
this.copyDataToolStripMenuItem.Name = "copyDataToolStripMenuItem";
- this.copyDataToolStripMenuItem.Size = new System.Drawing.Size(179, 22);
+ this.copyDataToolStripMenuItem.Size = new System.Drawing.Size(336, 42);
this.copyDataToolStripMenuItem.Text = "Copy Data";
this.copyDataToolStripMenuItem.Click += new System.EventHandler(this.copyDataToolStripMenuItem_Click);
//
// editDataToolStripMenuItem
//
this.editDataToolStripMenuItem.Name = "editDataToolStripMenuItem";
- this.editDataToolStripMenuItem.Size = new System.Drawing.Size(179, 22);
+ this.editDataToolStripMenuItem.Size = new System.Drawing.Size(336, 42);
this.editDataToolStripMenuItem.Text = "Edit Data";
this.editDataToolStripMenuItem.Click += new System.EventHandler(this.editDataToolStripMenuItem_Click);
//
// toolStripMenuItem2
//
this.toolStripMenuItem2.Name = "toolStripMenuItem2";
- this.toolStripMenuItem2.Size = new System.Drawing.Size(176, 6);
+ this.toolStripMenuItem2.Size = new System.Drawing.Size(333, 6);
//
// viewThisUserDataToolStripMenuItem
//
this.viewThisUserDataToolStripMenuItem.Name = "viewThisUserDataToolStripMenuItem";
- this.viewThisUserDataToolStripMenuItem.Size = new System.Drawing.Size(179, 22);
+ this.viewThisUserDataToolStripMenuItem.Size = new System.Drawing.Size(336, 42);
this.viewThisUserDataToolStripMenuItem.Text = "View This User data";
this.viewThisUserDataToolStripMenuItem.Click += new System.EventHandler(this.viewThisUserDataToolStripMenuItem_Click);
//
@@ -509,199 +519,191 @@
this.btSearch.Text = "Refresh(&R)";
this.btSearch.Click += new System.EventHandler(this.btSearch_Click);
//
- // FpSpread1
+ // fpSpread1
//
- this.FpSpread1.AccessibleDescription = "";
- this.FpSpread1.ContextMenuStrip = this.cm1;
- this.FpSpread1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.FpSpread1.EditModeReplace = true;
- this.FpSpread1.Font = new System.Drawing.Font("맑은 고딕", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
- this.FpSpread1.Location = new System.Drawing.Point(0, 25);
- this.FpSpread1.Name = "FpSpread1";
- this.FpSpread1.Sheets.AddRange(new FarPoint.Win.Spread.SheetView[] {
- this.FpSpread1_Sheet1});
- this.FpSpread1.Size = new System.Drawing.Size(878, 468);
- this.FpSpread1.TabIndex = 4;
+ this.fpSpread1.AccessibleDescription = "";
+ this.fpSpread1.ContextMenuStrip = this.cm1;
+ this.fpSpread1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.fpSpread1.EditModeReplace = true;
+ this.fpSpread1.Font = new System.Drawing.Font("맑은 고딕", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
+ this.fpSpread1.Location = new System.Drawing.Point(0, 25);
+ this.fpSpread1.Name = "fpSpread1";
+ this.fpSpread1.Sheets.AddRange(new FarPoint.Win.Spread.SheetView[] {
+ this.sheetView1});
+ this.fpSpread1.Size = new System.Drawing.Size(878, 468);
+ this.fpSpread1.TabIndex = 4;
//
- // FpSpread1_Sheet1
+ // sheetView1
//
- this.FpSpread1_Sheet1.Reset();
- this.FpSpread1_Sheet1.SheetName = "Sheet1";
+ this.sheetView1.Reset();
+ this.sheetView1.SheetName = "Sheet1";
// Formulas and custom names must be loaded with R1C1 reference style
- this.FpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.R1C1;
- this.FpSpread1_Sheet1.ColumnCount = 23;
- this.FpSpread1_Sheet1.ActiveColumnIndex = -1;
- this.FpSpread1_Sheet1.ActiveRowIndex = -1;
- this.FpSpread1_Sheet1.AutoGenerateColumns = false;
- this.FpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 0).Value = "Date";
- this.FpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 1).Value = "state";
- this.FpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 4).Value = "sc#";
- this.FpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 6).Value = "sid#";
- this.FpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 7).Value = "Item";
- this.FpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 8).Value = "*";
- this.FpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 9).Value = "Model";
- this.FpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 10).Value = "Qty";
- this.FpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 11).Value = "Unit";
- this.FpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 12).Value = "Price";
- this.FpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 13).Value = "Amt";
- this.FpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 14).Value = "Supply";
- this.FpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 15).Value = "*";
- this.FpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 17).Value = "*";
- this.FpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 37F;
- this.FpSpread1_Sheet1.Columns.Get(0).CellType = textCellType1;
- this.FpSpread1_Sheet1.Columns.Get(0).DataField = "pdate";
- this.FpSpread1_Sheet1.Columns.Get(0).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
- this.FpSpread1_Sheet1.Columns.Get(0).Label = "Date";
- this.FpSpread1_Sheet1.Columns.Get(0).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
- this.FpSpread1_Sheet1.Columns.Get(0).Width = 34F;
- this.FpSpread1_Sheet1.Columns.Get(1).CellType = textCellType2;
- this.FpSpread1_Sheet1.Columns.Get(1).DataField = "stateName";
- this.FpSpread1_Sheet1.Columns.Get(1).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
- this.FpSpread1_Sheet1.Columns.Get(1).Label = "state";
- this.FpSpread1_Sheet1.Columns.Get(1).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
- this.FpSpread1_Sheet1.Columns.Get(1).Width = 34F;
- this.FpSpread1_Sheet1.Columns.Get(2).CellType = textCellType3;
- this.FpSpread1_Sheet1.Columns.Get(2).DataField = "process";
- this.FpSpread1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
- this.FpSpread1_Sheet1.Columns.Get(2).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
- this.FpSpread1_Sheet1.Columns.Get(2).Width = 49F;
- this.FpSpread1_Sheet1.Columns.Get(3).CellType = textCellType4;
- this.FpSpread1_Sheet1.Columns.Get(3).DataField = "request";
- this.FpSpread1_Sheet1.Columns.Get(3).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
- this.FpSpread1_Sheet1.Columns.Get(3).Width = 48F;
- this.FpSpread1_Sheet1.Columns.Get(4).CellType = textCellType5;
- this.FpSpread1_Sheet1.Columns.Get(4).DataField = "sc";
- this.FpSpread1_Sheet1.Columns.Get(4).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
- this.FpSpread1_Sheet1.Columns.Get(4).Label = "sc#";
- this.FpSpread1_Sheet1.Columns.Get(4).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
- this.FpSpread1_Sheet1.Columns.Get(4).Width = 27F;
- this.FpSpread1_Sheet1.Columns.Get(5).CellType = textCellType6;
- this.FpSpread1_Sheet1.Columns.Get(5).DataField = "receive";
- this.FpSpread1_Sheet1.Columns.Get(5).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
- this.FpSpread1_Sheet1.Columns.Get(5).Width = 46F;
- this.FpSpread1_Sheet1.Columns.Get(6).CellType = textCellType7;
- this.FpSpread1_Sheet1.Columns.Get(6).DataField = "sid";
- this.FpSpread1_Sheet1.Columns.Get(6).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
- this.FpSpread1_Sheet1.Columns.Get(6).Label = "sid#";
- this.FpSpread1_Sheet1.Columns.Get(6).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
- this.FpSpread1_Sheet1.Columns.Get(6).Width = 31F;
- this.FpSpread1_Sheet1.Columns.Get(7).CellType = textCellType8;
- this.FpSpread1_Sheet1.Columns.Get(7).DataField = "pumname";
- this.FpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
- this.FpSpread1_Sheet1.Columns.Get(7).Label = "Item";
- this.FpSpread1_Sheet1.Columns.Get(7).Width = 33F;
- this.FpSpread1_Sheet1.Columns.Get(8).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
+ this.sheetView1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.R1C1;
+ this.sheetView1.ColumnCount = 23;
+ this.sheetView1.ActiveColumnIndex = -1;
+ this.sheetView1.ActiveRowIndex = -1;
+ this.sheetView1.AutoGenerateColumns = false;
+ this.sheetView1.ColumnHeader.Cells.Get(0, 0).Value = "Date";
+ this.sheetView1.ColumnHeader.Cells.Get(0, 1).Value = "state";
+ this.sheetView1.ColumnHeader.Cells.Get(0, 4).Value = "sc#";
+ this.sheetView1.ColumnHeader.Cells.Get(0, 6).Value = "sid#";
+ this.sheetView1.ColumnHeader.Cells.Get(0, 7).Value = "Item";
+ this.sheetView1.ColumnHeader.Cells.Get(0, 8).Value = "*";
+ this.sheetView1.ColumnHeader.Cells.Get(0, 9).Value = "Model";
+ this.sheetView1.ColumnHeader.Cells.Get(0, 10).Value = "Qty";
+ this.sheetView1.ColumnHeader.Cells.Get(0, 11).Value = "Unit";
+ this.sheetView1.ColumnHeader.Cells.Get(0, 12).Value = "Price";
+ this.sheetView1.ColumnHeader.Cells.Get(0, 13).Value = "Amt";
+ this.sheetView1.ColumnHeader.Cells.Get(0, 14).Value = "Supply";
+ this.sheetView1.ColumnHeader.Cells.Get(0, 15).Value = "*";
+ this.sheetView1.ColumnHeader.Cells.Get(0, 17).Value = "*";
+ this.sheetView1.ColumnHeader.Rows.Get(0).Height = 37F;
+ this.sheetView1.Columns.Get(0).CellType = textCellType1;
+ this.sheetView1.Columns.Get(0).DataField = "pdate";
+ this.sheetView1.Columns.Get(0).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
+ this.sheetView1.Columns.Get(0).Label = "Date";
+ this.sheetView1.Columns.Get(0).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.sheetView1.Columns.Get(0).Width = 34F;
+ this.sheetView1.Columns.Get(1).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
+ this.sheetView1.Columns.Get(1).CellType = textCellType2;
+ this.sheetView1.Columns.Get(1).DataField = "stateName";
+ this.sheetView1.Columns.Get(1).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
+ this.sheetView1.Columns.Get(1).Label = "state";
+ this.sheetView1.Columns.Get(1).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.sheetView1.Columns.Get(1).Width = 34F;
+ this.sheetView1.Columns.Get(2).CellType = textCellType3;
+ this.sheetView1.Columns.Get(2).DataField = "process";
+ this.sheetView1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
+ this.sheetView1.Columns.Get(2).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.sheetView1.Columns.Get(2).Width = 49F;
+ this.sheetView1.Columns.Get(3).CellType = textCellType4;
+ this.sheetView1.Columns.Get(3).DataField = "request";
+ this.sheetView1.Columns.Get(3).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
+ this.sheetView1.Columns.Get(3).Width = 48F;
+ this.sheetView1.Columns.Get(4).CellType = textCellType5;
+ this.sheetView1.Columns.Get(4).DataField = "sc";
+ this.sheetView1.Columns.Get(4).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
+ this.sheetView1.Columns.Get(4).Label = "sc#";
+ this.sheetView1.Columns.Get(4).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.sheetView1.Columns.Get(4).Width = 27F;
+ this.sheetView1.Columns.Get(5).CellType = textCellType6;
+ this.sheetView1.Columns.Get(5).DataField = "receive";
+ this.sheetView1.Columns.Get(5).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
+ this.sheetView1.Columns.Get(5).Width = 46F;
+ this.sheetView1.Columns.Get(6).CellType = textCellType7;
+ this.sheetView1.Columns.Get(6).DataField = "sid";
+ this.sheetView1.Columns.Get(6).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
+ this.sheetView1.Columns.Get(6).Label = "sid#";
+ this.sheetView1.Columns.Get(6).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.sheetView1.Columns.Get(6).Width = 31F;
+ this.sheetView1.Columns.Get(7).CellType = textCellType8;
+ this.sheetView1.Columns.Get(7).DataField = "pumname";
+ this.sheetView1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
+ this.sheetView1.Columns.Get(7).Label = "Item";
+ this.sheetView1.Columns.Get(7).Width = 33F;
+ this.sheetView1.Columns.Get(8).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
numberCellType1.DecimalPlaces = 0;
numberCellType1.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType1.MaximumValue = 2147483647D;
numberCellType1.MinimumValue = -2147483648D;
- this.FpSpread1_Sheet1.Columns.Get(8).CellType = numberCellType1;
- this.FpSpread1_Sheet1.Columns.Get(8).DataField = "pumidx";
- this.FpSpread1_Sheet1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
- this.FpSpread1_Sheet1.Columns.Get(8).Label = "*";
- this.FpSpread1_Sheet1.Columns.Get(8).Width = 14F;
- this.FpSpread1_Sheet1.Columns.Get(9).CellType = textCellType9;
- this.FpSpread1_Sheet1.Columns.Get(9).DataField = "pumscale";
- this.FpSpread1_Sheet1.Columns.Get(9).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
- this.FpSpread1_Sheet1.Columns.Get(9).Label = "Model";
- this.FpSpread1_Sheet1.Columns.Get(9).Width = 43F;
+ this.sheetView1.Columns.Get(8).CellType = numberCellType1;
+ this.sheetView1.Columns.Get(8).DataField = "pumidx";
+ this.sheetView1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
+ this.sheetView1.Columns.Get(8).Label = "*";
+ this.sheetView1.Columns.Get(8).Width = 14F;
+ this.sheetView1.Columns.Get(9).CellType = textCellType9;
+ this.sheetView1.Columns.Get(9).DataField = "pumscale";
+ this.sheetView1.Columns.Get(9).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
+ this.sheetView1.Columns.Get(9).Label = "Model";
+ this.sheetView1.Columns.Get(9).Width = 43F;
numberCellType2.DecimalPlaces = 0;
numberCellType2.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType2.MaximumValue = 2147483647D;
numberCellType2.MinimumValue = -2147483648D;
- this.FpSpread1_Sheet1.Columns.Get(10).CellType = numberCellType2;
- this.FpSpread1_Sheet1.Columns.Get(10).DataField = "pumqty";
- this.FpSpread1_Sheet1.Columns.Get(10).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
- this.FpSpread1_Sheet1.Columns.Get(10).Label = "Qty";
- this.FpSpread1_Sheet1.Columns.Get(10).Width = 28F;
- this.FpSpread1_Sheet1.Columns.Get(11).CellType = textCellType10;
- this.FpSpread1_Sheet1.Columns.Get(11).DataField = "pumunit";
- this.FpSpread1_Sheet1.Columns.Get(11).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
- this.FpSpread1_Sheet1.Columns.Get(11).Label = "Unit";
- this.FpSpread1_Sheet1.Columns.Get(11).Width = 31F;
+ this.sheetView1.Columns.Get(10).CellType = numberCellType2;
+ this.sheetView1.Columns.Get(10).DataField = "pumqty";
+ this.sheetView1.Columns.Get(10).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
+ this.sheetView1.Columns.Get(10).Label = "Qty";
+ this.sheetView1.Columns.Get(10).Width = 28F;
+ this.sheetView1.Columns.Get(11).CellType = textCellType10;
+ this.sheetView1.Columns.Get(11).DataField = "pumunit";
+ this.sheetView1.Columns.Get(11).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
+ this.sheetView1.Columns.Get(11).Label = "Unit";
+ this.sheetView1.Columns.Get(11).Width = 31F;
numberCellType3.MaximumValue = 999999999999999D;
numberCellType3.MinimumValue = -999999999999999D;
- this.FpSpread1_Sheet1.Columns.Get(12).CellType = numberCellType3;
- this.FpSpread1_Sheet1.Columns.Get(12).DataField = "pumprice";
- this.FpSpread1_Sheet1.Columns.Get(12).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
- this.FpSpread1_Sheet1.Columns.Get(12).Label = "Price";
- this.FpSpread1_Sheet1.Columns.Get(12).Width = 35F;
+ this.sheetView1.Columns.Get(12).CellType = numberCellType3;
+ this.sheetView1.Columns.Get(12).DataField = "pumprice";
+ this.sheetView1.Columns.Get(12).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
+ this.sheetView1.Columns.Get(12).Label = "Price";
+ this.sheetView1.Columns.Get(12).Width = 35F;
numberCellType4.MaximumValue = 999999999999999D;
numberCellType4.MinimumValue = -999999999999999D;
- this.FpSpread1_Sheet1.Columns.Get(13).CellType = numberCellType4;
- this.FpSpread1_Sheet1.Columns.Get(13).DataField = "pumamt";
- this.FpSpread1_Sheet1.Columns.Get(13).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
- this.FpSpread1_Sheet1.Columns.Get(13).Label = "Amt";
- this.FpSpread1_Sheet1.Columns.Get(13).Width = 32F;
- this.FpSpread1_Sheet1.Columns.Get(14).CellType = textCellType11;
- this.FpSpread1_Sheet1.Columns.Get(14).DataField = "supply";
- this.FpSpread1_Sheet1.Columns.Get(14).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
- this.FpSpread1_Sheet1.Columns.Get(14).Label = "Supply";
- this.FpSpread1_Sheet1.Columns.Get(14).Width = 46F;
- this.FpSpread1_Sheet1.Columns.Get(15).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
+ this.sheetView1.Columns.Get(13).CellType = numberCellType4;
+ this.sheetView1.Columns.Get(13).DataField = "pumamt";
+ this.sheetView1.Columns.Get(13).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
+ this.sheetView1.Columns.Get(13).Label = "Amt";
+ this.sheetView1.Columns.Get(13).Width = 32F;
+ this.sheetView1.Columns.Get(14).CellType = textCellType11;
+ this.sheetView1.Columns.Get(14).DataField = "supply";
+ this.sheetView1.Columns.Get(14).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
+ this.sheetView1.Columns.Get(14).Label = "Supply";
+ this.sheetView1.Columns.Get(14).Width = 46F;
+ this.sheetView1.Columns.Get(15).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
numberCellType5.DecimalPlaces = 0;
numberCellType5.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType5.MaximumValue = 2147483647D;
numberCellType5.MinimumValue = -2147483648D;
- this.FpSpread1_Sheet1.Columns.Get(15).CellType = numberCellType5;
- this.FpSpread1_Sheet1.Columns.Get(15).DataField = "supplyidx";
- this.FpSpread1_Sheet1.Columns.Get(15).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
- this.FpSpread1_Sheet1.Columns.Get(15).Label = "*";
- this.FpSpread1_Sheet1.Columns.Get(15).Width = 14F;
- this.FpSpread1_Sheet1.Columns.Get(16).CellType = textCellType12;
- this.FpSpread1_Sheet1.Columns.Get(16).DataField = "project";
- this.FpSpread1_Sheet1.Columns.Get(16).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
- this.FpSpread1_Sheet1.Columns.Get(16).Width = 46F;
- this.FpSpread1_Sheet1.Columns.Get(17).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
+ this.sheetView1.Columns.Get(15).CellType = numberCellType5;
+ this.sheetView1.Columns.Get(15).DataField = "supplyidx";
+ this.sheetView1.Columns.Get(15).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
+ this.sheetView1.Columns.Get(15).Label = "*";
+ this.sheetView1.Columns.Get(15).Width = 14F;
+ this.sheetView1.Columns.Get(16).CellType = textCellType12;
+ this.sheetView1.Columns.Get(16).DataField = "project";
+ this.sheetView1.Columns.Get(16).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
+ this.sheetView1.Columns.Get(16).Width = 46F;
+ this.sheetView1.Columns.Get(17).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
numberCellType6.DecimalPlaces = 0;
numberCellType6.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType6.MaximumValue = 2147483647D;
numberCellType6.MinimumValue = -2147483648D;
- this.FpSpread1_Sheet1.Columns.Get(17).CellType = numberCellType6;
- this.FpSpread1_Sheet1.Columns.Get(17).DataField = "projectidx";
- this.FpSpread1_Sheet1.Columns.Get(17).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
- this.FpSpread1_Sheet1.Columns.Get(17).Label = "*";
- this.FpSpread1_Sheet1.Columns.Get(17).Width = 14F;
- this.FpSpread1_Sheet1.Columns.Get(18).CellType = textCellType13;
- this.FpSpread1_Sheet1.Columns.Get(18).DataField = "asset";
- this.FpSpread1_Sheet1.Columns.Get(18).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
- this.FpSpread1_Sheet1.Columns.Get(18).Width = 35F;
- this.FpSpread1_Sheet1.Columns.Get(19).CellType = textCellType14;
- this.FpSpread1_Sheet1.Columns.Get(19).DataField = "edate";
- this.FpSpread1_Sheet1.Columns.Get(19).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
- this.FpSpread1_Sheet1.Columns.Get(19).Width = 38F;
- this.FpSpread1_Sheet1.Columns.Get(20).CellType = textCellType15;
- this.FpSpread1_Sheet1.Columns.Get(20).DataField = "indate";
- this.FpSpread1_Sheet1.Columns.Get(20).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
- this.FpSpread1_Sheet1.Columns.Get(20).Width = 42F;
- this.FpSpread1_Sheet1.Columns.Get(21).CellType = textCellType16;
- this.FpSpread1_Sheet1.Columns.Get(21).DataField = "po";
- this.FpSpread1_Sheet1.Columns.Get(21).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
- this.FpSpread1_Sheet1.Columns.Get(21).Width = 23F;
- this.FpSpread1_Sheet1.Columns.Get(22).CellType = textCellType17;
- this.FpSpread1_Sheet1.Columns.Get(22).DataField = "dept";
- this.FpSpread1_Sheet1.Columns.Get(22).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
- this.FpSpread1_Sheet1.Columns.Get(22).Width = 33F;
- this.FpSpread1_Sheet1.DataAutoSizeColumns = false;
- this.FpSpread1_Sheet1.DataSource = this.bs;
- this.FpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false;
- this.FpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1;
- //
- // btEdit
- //
- this.btEdit.Image = ((System.Drawing.Image)(resources.GetObject("btEdit.Image")));
- this.btEdit.ImageTransparentColor = System.Drawing.Color.Magenta;
- this.btEdit.Name = "btEdit";
- this.btEdit.Size = new System.Drawing.Size(61, 23);
- this.btEdit.Text = "Edit(&E)";
- this.btEdit.Click += new System.EventHandler(this.toolStripButton2_Click);
+ this.sheetView1.Columns.Get(17).CellType = numberCellType6;
+ this.sheetView1.Columns.Get(17).DataField = "projectidx";
+ this.sheetView1.Columns.Get(17).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
+ this.sheetView1.Columns.Get(17).Label = "*";
+ this.sheetView1.Columns.Get(17).Width = 14F;
+ this.sheetView1.Columns.Get(18).CellType = textCellType13;
+ this.sheetView1.Columns.Get(18).DataField = "asset";
+ this.sheetView1.Columns.Get(18).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
+ this.sheetView1.Columns.Get(18).Width = 35F;
+ this.sheetView1.Columns.Get(19).CellType = textCellType14;
+ this.sheetView1.Columns.Get(19).DataField = "edate";
+ this.sheetView1.Columns.Get(19).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
+ this.sheetView1.Columns.Get(19).Width = 38F;
+ this.sheetView1.Columns.Get(20).CellType = textCellType15;
+ this.sheetView1.Columns.Get(20).DataField = "indate";
+ this.sheetView1.Columns.Get(20).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
+ this.sheetView1.Columns.Get(20).Width = 42F;
+ this.sheetView1.Columns.Get(21).CellType = textCellType16;
+ this.sheetView1.Columns.Get(21).DataField = "po";
+ this.sheetView1.Columns.Get(21).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
+ this.sheetView1.Columns.Get(21).Width = 23F;
+ this.sheetView1.Columns.Get(22).CellType = textCellType17;
+ this.sheetView1.Columns.Get(22).DataField = "dept";
+ this.sheetView1.Columns.Get(22).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
+ this.sheetView1.Columns.Get(22).Width = 33F;
+ this.sheetView1.DataAutoSizeColumns = false;
+ this.sheetView1.DataSource = this.bs;
+ this.sheetView1.RowHeader.Columns.Default.Resizable = false;
+ this.sheetView1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1;
//
// fPurchase
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(878, 519);
- this.Controls.Add(this.FpSpread1);
+ this.Controls.Add(this.fpSpread1);
this.Controls.Add(this.toolStrip1);
this.Controls.Add(this.bn);
this.DoubleBuffered = true;
@@ -716,8 +718,8 @@
this.cm1.ResumeLayout(false);
this.toolStrip1.ResumeLayout(false);
this.toolStrip1.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.FpSpread1)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.FpSpread1_Sheet1)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.sheetView1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@@ -766,7 +768,7 @@
private System.Windows.Forms.ToolStripLabel toolStripLabel2;
private System.Windows.Forms.ToolStripTextBox tbFind;
private System.Windows.Forms.ToolStripButton btFind;
- private FarPoint.Win.Spread.FpSpread FpSpread1;
+ private FarPoint.Win.Spread.FpSpread fpSpread1;
private System.Windows.Forms.ToolStripMenuItem editDataToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem2;
private System.Windows.Forms.ToolStripMenuItem columnSizeToolStripMenuItem;
@@ -774,7 +776,7 @@
private System.Windows.Forms.ToolStripMenuItem resetToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem saveToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem loadToolStripMenuItem;
- private FarPoint.Win.Spread.SheetView FpSpread1_Sheet1;
private System.Windows.Forms.ToolStripButton btEdit;
+ private FarPoint.Win.Spread.SheetView sheetView1;
}
}
diff --git a/SubProject/FEQ0000/Purchase/fPurchase.cs b/SubProject/FEQ0000/Purchase/fPurchase.cs
index 6aa0afd..d022e4a 100644
--- a/SubProject/FEQ0000/Purchase/fPurchase.cs
+++ b/SubProject/FEQ0000/Purchase/fPurchase.cs
@@ -19,49 +19,13 @@ namespace FEQ0000
InitializeComponent();
fn_fpcolsize = util.MakeFilePath(util.CurrentPath, "formSetting", "fp_" + this.Name + ".ini");
this.dsPurchase.Purchase.TableNewRow += Purchase_TableNewRow;
-
+ this.FormClosed += __Closed;
//this.dv1.CellFormatting += dv1_CellFormatting;
}
- void dv1_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
+ void __Closed(object sender, FormClosedEventArgs e)
{
- //if (e.ColumnIndex < 0 || e.RowIndex < 0) return;
- //var state = this.dv1.Rows[e.RowIndex].Cells["dvc_state"].Value.ToString();
- //switch (state)
- //{
- // case "00": //입력대기(미확인)
- // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.ForeColor = Color.Black;
- // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = Color.LightGray;
- // break;
- // case "01": //파트장 승인 기다림
- // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.ForeColor = Color.DarkBlue;
- // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = Color.White;
- // break;
- // case "03": //PO (협력업체 전달)
- // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.ForeColor = Color.DarkMagenta;
- // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = Color.White;
- // break;
- // case "04": //자재 수령
- // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = Color.White;
- // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.ForeColor = Color.Green;
- // break;
- // case "05": //canceld (취소)
- // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = Color.LightGray;
- // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.ForeColor = Color.Red;
- // break;
- // case "06": //cancel (취소됨)
- // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = Color.HotPink;
- // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.ForeColor = Color.Black;
- // break;
- // case "08": //문의
- // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = Color.Green;
- // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.ForeColor = Color.White;
- // break;
- // default:
- // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = Color.White;
- // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.ForeColor = Color.Black;
- // break;
- //}
+
}
void Purchase_TableNewRow(object sender, DataTableNewRowEventArgs e)
@@ -71,7 +35,7 @@ namespace FEQ0000
e.Row["wdate"] = DateTime.Now;
e.Row["pumunit"] = "EA";
e.Row["state"] = "00";
- e.Row["pumqty"] = 0;
+ e.Row["pumqty"] = 1;
e.Row["pumprice"] = 0;
e.Row["pumamt"] = 0;
e.Row["request"] = FCOMMON.info.Login.nameK;
@@ -99,23 +63,17 @@ namespace FEQ0000
}
else
{
- FpSpread1.EditMode = false;
- FpSpread1.Sheets[0].SelectionUnit = FarPoint.Win.Spread.Model.SelectionUnit.Row;
- FpSpread1.EditModePermanent = false;
- FpSpread1.EditModeReplace = false;
+ fpSpread1.EditMode = false;
+ fpSpread1.Sheets[0].SelectionUnit = FarPoint.Win.Spread.Model.SelectionUnit.Row;
+ fpSpread1.EditModePermanent = false;
+ fpSpread1.EditModeReplace = false;
btSave.Visible = false;
}
- FPUtil.ColSizeLoad(ref this.FpSpread1, fn_fpcolsize);
+
refreshData();
+ FPUtil.ColSizeLoad(ref this.fpSpread1, fn_fpcolsize);
}
- private void saveData()
- {
- this.Validate();
- this.bs.EndEdit();
- this.tam.UpdateAll(this.dsPurchase);
-
- }
private void refreshData()
{
@@ -155,6 +113,14 @@ namespace FEQ0000
System.Windows.Forms.MessageBox.Show(ex.Message);
}
}
+
+ private void saveData()
+ {
+ this.Validate();
+ this.bs.EndEdit();
+ this.tam.UpdateAll(this.dsPurchase);
+
+ }
void showSummary()
{
decimal sum = 0;
@@ -168,16 +134,6 @@ namespace FEQ0000
refreshData();
}
- private void autoResizeColumnsToolStripMenuItem_Click(object sender, EventArgs e)
- {
-
- }
-
- private void toolStripButton1_Click(object sender, EventArgs e)
- {
-
- }
-
private void toolStripButton1_Click_1(object sender, EventArgs e)
{
Purchase.rPurchase f = new Purchase.rPurchase();
@@ -260,7 +216,7 @@ namespace FEQ0000
{
//사용자목록처리
tbRequest.Text = string.Empty;
- btSearch.PerformClick();
+ refreshData();
}
private void viewThisUserDataToolStripMenuItem_Click(object sender, EventArgs e)
@@ -416,9 +372,11 @@ namespace FEQ0000
dr.pumidx = newidx;
dr.EndEdit();
}
-
- this.ta.Update(dr);
- dr.AcceptChanges();
+ if(dr.RowState != DataRowState.Unchanged)
+ {
+ this.ta.Update(dr);
+ dr.AcceptChanges();
+ }
}
else dr.RejectChanges();
}
@@ -440,16 +398,16 @@ namespace FEQ0000
private void autoToolStripMenuItem_Click(object sender, EventArgs e)
{
- this.FpSpread1.ActiveSheet.DataAutoSizeColumns = true;
+ this.fpSpread1.ActiveSheet.DataAutoSizeColumns = true;
- for (int i = 0; i < this.FpSpread1.ActiveSheet.Rows.Count; i++)
- this.FpSpread1.ActiveSheet.SetRowHeight(i, 25);
+ for (int i = 0; i < this.fpSpread1.ActiveSheet.Rows.Count; i++)
+ this.fpSpread1.ActiveSheet.SetRowHeight(i, 25);
//dv1.AutoResizeColumns();
}
private void resetToolStripMenuItem_Click(object sender, EventArgs e)
{
- foreach (FarPoint.Win.Spread.Column col in this.FpSpread1.ActiveSheet.Columns)
+ foreach (FarPoint.Win.Spread.Column col in this.fpSpread1.ActiveSheet.Columns)
{
col.Width = 100;
}
@@ -457,17 +415,60 @@ namespace FEQ0000
private void saveToolStripMenuItem_Click(object sender, EventArgs e)
{
- FPUtil.ColsizeSave(this.FpSpread1, fn_fpcolsize);
+ FPUtil.ColsizeSave(this.fpSpread1, fn_fpcolsize);
}
private void loadToolStripMenuItem_Click(object sender, EventArgs e)
{
- FPUtil.ColSizeLoad(ref this.FpSpread1, fn_fpcolsize);
+ FPUtil.ColSizeLoad(ref this.fpSpread1, fn_fpcolsize);
}
private void toolStripButton2_Click(object sender, EventArgs e)
{
Func_Edit();
}
+
+
+ void dv1_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
+ {
+ //if (e.ColumnIndex < 0 || e.RowIndex < 0) return;
+ //var state = this.dv1.Rows[e.RowIndex].Cells["dvc_state"].Value.ToString();
+ //switch (state)
+ //{
+ // case "00": //입력대기(미확인)
+ // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.ForeColor = Color.Black;
+ // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = Color.LightGray;
+ // break;
+ // case "01": //파트장 승인 기다림
+ // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.ForeColor = Color.DarkBlue;
+ // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = Color.White;
+ // break;
+ // case "03": //PO (협력업체 전달)
+ // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.ForeColor = Color.DarkMagenta;
+ // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = Color.White;
+ // break;
+ // case "04": //자재 수령
+ // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = Color.White;
+ // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.ForeColor = Color.Green;
+ // break;
+ // case "05": //canceld (취소)
+ // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = Color.LightGray;
+ // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.ForeColor = Color.Red;
+ // break;
+ // case "06": //cancel (취소됨)
+ // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = Color.HotPink;
+ // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.ForeColor = Color.Black;
+ // break;
+ // case "08": //문의
+ // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = Color.Green;
+ // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.ForeColor = Color.White;
+ // break;
+ // default:
+ // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = Color.White;
+ // this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.ForeColor = Color.Black;
+ // break;
+ //}
+ }
+
}
}
diff --git a/SubProject/FEQ0000/Purchase/fPurchase.resx b/SubProject/FEQ0000/Purchase/fPurchase.resx
index 00f7e21..c43ff7a 100644
--- a/SubProject/FEQ0000/Purchase/fPurchase.resx
+++ b/SubProject/FEQ0000/Purchase/fPurchase.resx
@@ -290,7 +290,7 @@
dBo6zn/3OB7XHovRyuhQ6+hhYKA9DpL+A1keRebNAhkaJH0OHOcP031C4EjYr6wAAAAASUVORK5CYII=
-
+
577, 17
\ No newline at end of file
diff --git a/SubProject/FEQ0000/app.config b/SubProject/FEQ0000/app.config
index 3f0787c..41347bc 100644
--- a/SubProject/FEQ0000/app.config
+++ b/SubProject/FEQ0000/app.config
@@ -5,4 +5,4 @@
-
+
diff --git a/SubProject/FPJ0000/FPJ0000.csproj b/SubProject/FPJ0000/FPJ0000.csproj
index 70a5bd1..0dcf788 100644
--- a/SubProject/FPJ0000/FPJ0000.csproj
+++ b/SubProject/FPJ0000/FPJ0000.csproj
@@ -35,12 +35,25 @@
..\..\DLL\ArSetting.Net4.dll
+
+
+
+
+
+
+
+
+
+
+
+
..\..\DLL\libxl.net.dll
+
@@ -51,6 +64,7 @@
+
@@ -65,30 +79,59 @@
fPartList.cs
+
+ Form
+
+
+ fProjectSchedule.cs
+
+
+ Form
+
+
+ fJobReport.cs
+
Form
fProjectList.cs
+
Form
fRPartList.cs
+
+ Form
+
+
+ fJobReport_Add.cs
+
fPartList.cs
+
+ fProjectSchedule.cs
+
+
+ fJobReport.cs
+
fProjectList.cs
fRPartList.cs
+
+ fJobReport_Add.cs
+
+
ResXFileCodeGenerator
Resources.Designer.cs
diff --git a/SubProject/FPJ0000/dsPRJ.Designer.cs b/SubProject/FPJ0000/dsPRJ.Designer.cs
index e5d9fc5..6149608 100644
--- a/SubProject/FPJ0000/dsPRJ.Designer.cs
+++ b/SubProject/FPJ0000/dsPRJ.Designer.cs
@@ -28,6 +28,10 @@ namespace FPJ0000 {
private ProjectsPartDataTable tableProjectsPart;
+ private JobReportDataTable tableJobReport;
+
+ private ProjectsScheduleDataTable tableProjectsSchedule;
+
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -62,6 +66,12 @@ namespace FPJ0000 {
if ((ds.Tables["ProjectsPart"] != null)) {
base.Tables.Add(new ProjectsPartDataTable(ds.Tables["ProjectsPart"]));
}
+ if ((ds.Tables["JobReport"] != null)) {
+ base.Tables.Add(new JobReportDataTable(ds.Tables["JobReport"]));
+ }
+ if ((ds.Tables["ProjectsSchedule"] != null)) {
+ base.Tables.Add(new ProjectsScheduleDataTable(ds.Tables["ProjectsSchedule"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -100,6 +110,26 @@ namespace FPJ0000 {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public JobReportDataTable JobReport {
+ get {
+ return this.tableJobReport;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public ProjectsScheduleDataTable ProjectsSchedule {
+ get {
+ return this.tableProjectsSchedule;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.BrowsableAttribute(true)]
@@ -173,6 +203,12 @@ namespace FPJ0000 {
if ((ds.Tables["ProjectsPart"] != null)) {
base.Tables.Add(new ProjectsPartDataTable(ds.Tables["ProjectsPart"]));
}
+ if ((ds.Tables["JobReport"] != null)) {
+ base.Tables.Add(new JobReportDataTable(ds.Tables["JobReport"]));
+ }
+ if ((ds.Tables["ProjectsSchedule"] != null)) {
+ base.Tables.Add(new ProjectsScheduleDataTable(ds.Tables["ProjectsSchedule"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -218,6 +254,18 @@ namespace FPJ0000 {
this.tableProjectsPart.InitVars();
}
}
+ this.tableJobReport = ((JobReportDataTable)(base.Tables["JobReport"]));
+ if ((initTable == true)) {
+ if ((this.tableJobReport != null)) {
+ this.tableJobReport.InitVars();
+ }
+ }
+ this.tableProjectsSchedule = ((ProjectsScheduleDataTable)(base.Tables["ProjectsSchedule"]));
+ if ((initTable == true)) {
+ if ((this.tableProjectsSchedule != null)) {
+ this.tableProjectsSchedule.InitVars();
+ }
+ }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -232,6 +280,10 @@ namespace FPJ0000 {
base.Tables.Add(this.tableProjects);
this.tableProjectsPart = new ProjectsPartDataTable();
base.Tables.Add(this.tableProjectsPart);
+ this.tableJobReport = new JobReportDataTable();
+ base.Tables.Add(this.tableJobReport);
+ this.tableProjectsSchedule = new ProjectsScheduleDataTable();
+ base.Tables.Add(this.tableProjectsSchedule);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -246,6 +298,18 @@ namespace FPJ0000 {
return false;
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private bool ShouldSerializeJobReport() {
+ return false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private bool ShouldSerializeProjectsSchedule() {
+ return false;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
@@ -307,6 +371,12 @@ namespace FPJ0000 {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public delegate void ProjectsPartRowChangeEventHandler(object sender, ProjectsPartRowChangeEvent e);
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public delegate void JobReportRowChangeEventHandler(object sender, JobReportRowChangeEvent e);
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public delegate void ProjectsScheduleRowChangeEventHandler(object sender, ProjectsScheduleRowChangeEvent e);
+
///
///Represents the strongly named DataTable class.
///
@@ -338,6 +408,12 @@ namespace FPJ0000 {
private global::System.Data.DataColumn columnstatus;
+ private global::System.Data.DataColumn columnstatusName;
+
+ private global::System.Data.DataColumn columnusermain;
+
+ private global::System.Data.DataColumn columnusersub;
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public ProjectsDataTable() {
@@ -467,6 +543,30 @@ namespace FPJ0000 {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn statusNameColumn {
+ get {
+ return this.columnstatusName;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn usermainColumn {
+ get {
+ return this.columnusermain;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn usersubColumn {
+ get {
+ return this.columnusersub;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
@@ -504,7 +604,7 @@ namespace FPJ0000 {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[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, string status) {
+ 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, string statusName, string usermain, string usersub) {
ProjectsRow rowProjectsRow = ((ProjectsRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
null,
@@ -518,7 +618,10 @@ namespace FPJ0000 {
memo,
wuid,
wdate,
- status};
+ status,
+ statusName,
+ usermain,
+ usersub};
rowProjectsRow.ItemArray = columnValuesArray;
this.Rows.Add(rowProjectsRow);
return rowProjectsRow;
@@ -560,6 +663,9 @@ namespace FPJ0000 {
this.columnwuid = base.Columns["wuid"];
this.columnwdate = base.Columns["wdate"];
this.columnstatus = base.Columns["status"];
+ this.columnstatusName = base.Columns["statusName"];
+ this.columnusermain = base.Columns["usermain"];
+ this.columnusersub = base.Columns["usersub"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -589,6 +695,12 @@ namespace FPJ0000 {
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.columnstatusName = new global::System.Data.DataColumn("statusName", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnstatusName);
+ this.columnusermain = new global::System.Data.DataColumn("usermain", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnusermain);
+ this.columnusersub = new global::System.Data.DataColumn("usersub", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnusersub);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnidx}, true));
this.columnidx.AutoIncrement = true;
@@ -609,6 +721,10 @@ namespace FPJ0000 {
this.columnwuid.MaxLength = 20;
this.columnwdate.AllowDBNull = false;
this.columnstatus.MaxLength = 2;
+ this.columnstatusName.ReadOnly = true;
+ this.columnstatusName.MaxLength = 200;
+ this.columnusermain.MaxLength = 50;
+ this.columnusersub.MaxLength = 50;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -764,12 +880,14 @@ namespace FPJ0000 {
private global::System.Data.DataColumn columnItemName;
- private global::System.Data.DataColumn columnSID;
-
- private global::System.Data.DataColumn columnSupply;
-
private global::System.Data.DataColumn columnItemModel;
+ private global::System.Data.DataColumn columnsupplyidx;
+
+ private global::System.Data.DataColumn columnsupplyName;
+
+ private global::System.Data.DataColumn columnitemSID;
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public ProjectsPartDataTable() {
@@ -891,22 +1009,6 @@ namespace FPJ0000 {
}
}
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public global::System.Data.DataColumn SIDColumn {
- get {
- return this.columnSID;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public global::System.Data.DataColumn SupplyColumn {
- get {
- return this.columnSupply;
- }
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn ItemModelColumn {
@@ -915,6 +1017,30 @@ namespace FPJ0000 {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn supplyidxColumn {
+ get {
+ return this.columnsupplyidx;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn supplyNameColumn {
+ get {
+ return this.columnsupplyName;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn itemSIDColumn {
+ get {
+ return this.columnitemSID;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
@@ -952,7 +1078,7 @@ namespace FPJ0000 {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public ProjectsPartRow AddProjectsPartRow(int Project, int Item, int qty, decimal price, decimal amt, int jago, string memo, string wuid, System.DateTime wdate, string ItemName, string SID, string Supply, string ItemModel) {
+ public ProjectsPartRow AddProjectsPartRow(int Project, int Item, int qty, decimal price, decimal amt, int jago, string memo, string wuid, System.DateTime wdate, string ItemName, string ItemModel, int supplyidx, string supplyName, string itemSID) {
ProjectsPartRow rowProjectsPartRow = ((ProjectsPartRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
null,
@@ -966,9 +1092,10 @@ namespace FPJ0000 {
wuid,
wdate,
ItemName,
- SID,
- Supply,
- ItemModel};
+ ItemModel,
+ supplyidx,
+ supplyName,
+ itemSID};
rowProjectsPartRow.ItemArray = columnValuesArray;
this.Rows.Add(rowProjectsPartRow);
return rowProjectsPartRow;
@@ -1009,9 +1136,10 @@ namespace FPJ0000 {
this.columnwuid = base.Columns["wuid"];
this.columnwdate = base.Columns["wdate"];
this.columnItemName = base.Columns["ItemName"];
- this.columnSID = base.Columns["SID"];
- this.columnSupply = base.Columns["Supply"];
this.columnItemModel = base.Columns["ItemModel"];
+ this.columnsupplyidx = base.Columns["supplyidx"];
+ this.columnsupplyName = base.Columns["supplyName"];
+ this.columnitemSID = base.Columns["itemSID"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -1043,12 +1171,14 @@ namespace FPJ0000 {
base.Columns.Add(this.columnwdate);
this.columnItemName = new global::System.Data.DataColumn("ItemName", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnItemName);
- this.columnSID = new global::System.Data.DataColumn("SID", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnSID);
- this.columnSupply = new global::System.Data.DataColumn("Supply", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnSupply);
this.columnItemModel = new global::System.Data.DataColumn("ItemModel", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnItemModel);
+ this.columnsupplyidx = new global::System.Data.DataColumn("supplyidx", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnsupplyidx);
+ this.columnsupplyName = new global::System.Data.DataColumn("supplyName", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnsupplyName);
+ this.columnitemSID = new global::System.Data.DataColumn("itemSID", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnitemSID);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnidx}, true));
this.columnidx.AutoIncrement = true;
@@ -1063,6 +1193,9 @@ namespace FPJ0000 {
this.columnwdate.AllowDBNull = false;
this.columnItemName.MaxLength = 100;
this.columnItemModel.MaxLength = 100;
+ this.columnsupplyName.MaxLength = 200;
+ this.columnitemSID.ReadOnly = true;
+ this.columnitemSID.MaxLength = 200;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -1189,6 +1322,841 @@ namespace FPJ0000 {
}
}
+ ///
+ ///Represents the strongly named DataTable class.
+ ///
+ [global::System.Serializable()]
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+ public partial class JobReportDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnidx;
+
+ private global::System.Data.DataColumn columnpdate;
+
+ private global::System.Data.DataColumn columngroup;
+
+ private global::System.Data.DataColumn columnuid;
+
+ private global::System.Data.DataColumn columnprogress;
+
+ private global::System.Data.DataColumn columnmemo;
+
+ private global::System.Data.DataColumn columntype;
+
+ private global::System.Data.DataColumn columnhrs;
+
+ private global::System.Data.DataColumn columnwuid;
+
+ private global::System.Data.DataColumn columnwdate;
+
+ private global::System.Data.DataColumn columnusername;
+
+ private global::System.Data.DataColumn columnprojectidx;
+
+ private global::System.Data.DataColumn columnproject;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public JobReportDataTable() {
+ this.TableName = "JobReport";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal JobReportDataTable(global::System.Data.DataTable table) {
+ this.TableName = table.TableName;
+ if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
+ this.CaseSensitive = table.CaseSensitive;
+ }
+ if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
+ this.Locale = table.Locale;
+ }
+ if ((table.Namespace != table.DataSet.Namespace)) {
+ this.Namespace = table.Namespace;
+ }
+ this.Prefix = table.Prefix;
+ this.MinimumCapacity = table.MinimumCapacity;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected JobReportDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
+ base(info, context) {
+ this.InitVars();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn idxColumn {
+ get {
+ return this.columnidx;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn pdateColumn {
+ get {
+ return this.columnpdate;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn groupColumn {
+ get {
+ return this.columngroup;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn uidColumn {
+ get {
+ return this.columnuid;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn progressColumn {
+ get {
+ return this.columnprogress;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn memoColumn {
+ get {
+ return this.columnmemo;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn typeColumn {
+ get {
+ return this.columntype;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn hrsColumn {
+ get {
+ return this.columnhrs;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn wuidColumn {
+ get {
+ return this.columnwuid;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn wdateColumn {
+ get {
+ return this.columnwdate;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn usernameColumn {
+ get {
+ return this.columnusername;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn projectidxColumn {
+ get {
+ return this.columnprojectidx;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn projectColumn {
+ get {
+ return this.columnproject;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ public int Count {
+ get {
+ return this.Rows.Count;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public JobReportRow this[int index] {
+ get {
+ return ((JobReportRow)(this.Rows[index]));
+ }
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event JobReportRowChangeEventHandler JobReportRowChanging;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event JobReportRowChangeEventHandler JobReportRowChanged;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event JobReportRowChangeEventHandler JobReportRowDeleting;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event JobReportRowChangeEventHandler JobReportRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void AddJobReportRow(JobReportRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public JobReportRow AddJobReportRow(string pdate, string group, string uid, string progress, string memo, string type, double hrs, string wuid, System.DateTime wdate, string username, int projectidx, string project) {
+ JobReportRow rowJobReportRow = ((JobReportRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ null,
+ pdate,
+ group,
+ uid,
+ progress,
+ memo,
+ type,
+ hrs,
+ wuid,
+ wdate,
+ username,
+ projectidx,
+ project};
+ rowJobReportRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowJobReportRow);
+ return rowJobReportRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public JobReportRow FindByidx(int idx) {
+ return ((JobReportRow)(this.Rows.Find(new object[] {
+ idx})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public override global::System.Data.DataTable Clone() {
+ JobReportDataTable cln = ((JobReportDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new JobReportDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal void InitVars() {
+ this.columnidx = base.Columns["idx"];
+ this.columnpdate = base.Columns["pdate"];
+ this.columngroup = base.Columns["group"];
+ this.columnuid = base.Columns["uid"];
+ this.columnprogress = base.Columns["progress"];
+ this.columnmemo = base.Columns["memo"];
+ this.columntype = base.Columns["type"];
+ this.columnhrs = base.Columns["hrs"];
+ this.columnwuid = base.Columns["wuid"];
+ this.columnwdate = base.Columns["wdate"];
+ this.columnusername = base.Columns["username"];
+ this.columnprojectidx = base.Columns["projectidx"];
+ this.columnproject = base.Columns["project"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitClass() {
+ this.columnidx = new global::System.Data.DataColumn("idx", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnidx);
+ this.columnpdate = new global::System.Data.DataColumn("pdate", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnpdate);
+ this.columngroup = new global::System.Data.DataColumn("group", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columngroup);
+ this.columnuid = new global::System.Data.DataColumn("uid", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnuid);
+ this.columnprogress = new global::System.Data.DataColumn("progress", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnprogress);
+ this.columnmemo = new global::System.Data.DataColumn("memo", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnmemo);
+ this.columntype = new global::System.Data.DataColumn("type", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columntype);
+ this.columnhrs = new global::System.Data.DataColumn("hrs", typeof(double), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnhrs);
+ this.columnwuid = new global::System.Data.DataColumn("wuid", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnwuid);
+ this.columnwdate = new global::System.Data.DataColumn("wdate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnwdate);
+ this.columnusername = new global::System.Data.DataColumn("username", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnusername);
+ this.columnprojectidx = new global::System.Data.DataColumn("projectidx", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnprojectidx);
+ this.columnproject = new global::System.Data.DataColumn("project", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnproject);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnidx}, true));
+ this.columnidx.AutoIncrement = true;
+ this.columnidx.AutoIncrementSeed = -1;
+ this.columnidx.AutoIncrementStep = -1;
+ this.columnidx.AllowDBNull = false;
+ this.columnidx.ReadOnly = true;
+ this.columnidx.Unique = true;
+ this.columnpdate.MaxLength = 10;
+ this.columngroup.MaxLength = 20;
+ this.columnuid.MaxLength = 20;
+ this.columnprogress.MaxLength = 20;
+ this.columnmemo.MaxLength = 255;
+ this.columntype.MaxLength = 20;
+ this.columnwuid.AllowDBNull = false;
+ this.columnwuid.MaxLength = 20;
+ this.columnwdate.AllowDBNull = false;
+ this.columnusername.ReadOnly = true;
+ this.columnusername.MaxLength = 200;
+ this.columnproject.MaxLength = 50;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public JobReportRow NewJobReportRow() {
+ return ((JobReportRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new JobReportRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Type GetRowType() {
+ return typeof(JobReportRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.JobReportRowChanged != null)) {
+ this.JobReportRowChanged(this, new JobReportRowChangeEvent(((JobReportRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.JobReportRowChanging != null)) {
+ this.JobReportRowChanging(this, new JobReportRowChangeEvent(((JobReportRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.JobReportRowDeleted != null)) {
+ this.JobReportRowDeleted(this, new JobReportRowChangeEvent(((JobReportRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.JobReportRowDeleting != null)) {
+ this.JobReportRowDeleting(this, new JobReportRowChangeEvent(((JobReportRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void RemoveJobReportRow(JobReportRow row) {
+ this.Rows.Remove(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
+ global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
+ global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
+ dsPRJ ds = new dsPRJ();
+ global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
+ any1.Namespace = "http://www.w3.org/2001/XMLSchema";
+ any1.MinOccurs = new decimal(0);
+ any1.MaxOccurs = decimal.MaxValue;
+ any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
+ sequence.Items.Add(any1);
+ global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
+ any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
+ any2.MinOccurs = new decimal(1);
+ any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
+ sequence.Items.Add(any2);
+ global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
+ attribute1.Name = "namespace";
+ attribute1.FixedValue = ds.Namespace;
+ type.Attributes.Add(attribute1);
+ global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
+ attribute2.Name = "tableTypeName";
+ attribute2.FixedValue = "JobReportDataTable";
+ type.Attributes.Add(attribute2);
+ type.Particle = sequence;
+ global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
+ if (xs.Contains(dsSchema.TargetNamespace)) {
+ global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
+ global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
+ try {
+ global::System.Xml.Schema.XmlSchema schema = null;
+ dsSchema.Write(s1);
+ for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
+ schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
+ s2.SetLength(0);
+ schema.Write(s2);
+ if ((s1.Length == s2.Length)) {
+ s1.Position = 0;
+ s2.Position = 0;
+ for (; ((s1.Position != s1.Length)
+ && (s1.ReadByte() == s2.ReadByte())); ) {
+ ;
+ }
+ if ((s1.Position == s1.Length)) {
+ return type;
+ }
+ }
+ }
+ }
+ finally {
+ if ((s1 != null)) {
+ s1.Close();
+ }
+ if ((s2 != null)) {
+ s2.Close();
+ }
+ }
+ }
+ xs.Add(dsSchema);
+ return type;
+ }
+ }
+
+ ///
+ ///Represents the strongly named DataTable class.
+ ///
+ [global::System.Serializable()]
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+ public partial class ProjectsScheduleDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnidx;
+
+ private global::System.Data.DataColumn columnproject;
+
+ private global::System.Data.DataColumn columntitle;
+
+ private global::System.Data.DataColumn columnsw;
+
+ private global::System.Data.DataColumn columnew;
+
+ private global::System.Data.DataColumn columnmemo;
+
+ private global::System.Data.DataColumn columnwuid;
+
+ private global::System.Data.DataColumn columnwdate;
+
+ private global::System.Data.DataColumn columnswa;
+
+ private global::System.Data.DataColumn columnewa;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public ProjectsScheduleDataTable() {
+ this.TableName = "ProjectsSchedule";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal ProjectsScheduleDataTable(global::System.Data.DataTable table) {
+ this.TableName = table.TableName;
+ if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
+ this.CaseSensitive = table.CaseSensitive;
+ }
+ if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
+ this.Locale = table.Locale;
+ }
+ if ((table.Namespace != table.DataSet.Namespace)) {
+ this.Namespace = table.Namespace;
+ }
+ this.Prefix = table.Prefix;
+ this.MinimumCapacity = table.MinimumCapacity;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected ProjectsScheduleDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
+ base(info, context) {
+ this.InitVars();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn idxColumn {
+ get {
+ return this.columnidx;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn projectColumn {
+ get {
+ return this.columnproject;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn titleColumn {
+ get {
+ return this.columntitle;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn swColumn {
+ get {
+ return this.columnsw;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn ewColumn {
+ get {
+ return this.columnew;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn memoColumn {
+ get {
+ return this.columnmemo;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn wuidColumn {
+ get {
+ return this.columnwuid;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn wdateColumn {
+ get {
+ return this.columnwdate;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn swaColumn {
+ get {
+ return this.columnswa;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn ewaColumn {
+ get {
+ return this.columnewa;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ public int Count {
+ get {
+ return this.Rows.Count;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public ProjectsScheduleRow this[int index] {
+ get {
+ return ((ProjectsScheduleRow)(this.Rows[index]));
+ }
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event ProjectsScheduleRowChangeEventHandler ProjectsScheduleRowChanging;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event ProjectsScheduleRowChangeEventHandler ProjectsScheduleRowChanged;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event ProjectsScheduleRowChangeEventHandler ProjectsScheduleRowDeleting;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event ProjectsScheduleRowChangeEventHandler ProjectsScheduleRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void AddProjectsScheduleRow(ProjectsScheduleRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public ProjectsScheduleRow AddProjectsScheduleRow(int project, string title, int sw, int ew, string memo, string wuid, System.DateTime wdate, int swa, int ewa) {
+ ProjectsScheduleRow rowProjectsScheduleRow = ((ProjectsScheduleRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ null,
+ project,
+ title,
+ sw,
+ ew,
+ memo,
+ wuid,
+ wdate,
+ swa,
+ ewa};
+ rowProjectsScheduleRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowProjectsScheduleRow);
+ return rowProjectsScheduleRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public ProjectsScheduleRow FindByidx(int idx) {
+ return ((ProjectsScheduleRow)(this.Rows.Find(new object[] {
+ idx})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public override global::System.Data.DataTable Clone() {
+ ProjectsScheduleDataTable cln = ((ProjectsScheduleDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new ProjectsScheduleDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal void InitVars() {
+ this.columnidx = base.Columns["idx"];
+ this.columnproject = base.Columns["project"];
+ this.columntitle = base.Columns["title"];
+ this.columnsw = base.Columns["sw"];
+ this.columnew = base.Columns["ew"];
+ this.columnmemo = base.Columns["memo"];
+ this.columnwuid = base.Columns["wuid"];
+ this.columnwdate = base.Columns["wdate"];
+ this.columnswa = base.Columns["swa"];
+ this.columnewa = base.Columns["ewa"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitClass() {
+ this.columnidx = new global::System.Data.DataColumn("idx", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnidx);
+ this.columnproject = new global::System.Data.DataColumn("project", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnproject);
+ this.columntitle = new global::System.Data.DataColumn("title", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columntitle);
+ this.columnsw = new global::System.Data.DataColumn("sw", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnsw);
+ this.columnew = new global::System.Data.DataColumn("ew", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnew);
+ this.columnmemo = new global::System.Data.DataColumn("memo", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnmemo);
+ this.columnwuid = new global::System.Data.DataColumn("wuid", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnwuid);
+ this.columnwdate = new global::System.Data.DataColumn("wdate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnwdate);
+ this.columnswa = new global::System.Data.DataColumn("swa", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnswa);
+ this.columnewa = new global::System.Data.DataColumn("ewa", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnewa);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnidx}, true));
+ this.columnidx.AutoIncrement = true;
+ this.columnidx.AutoIncrementSeed = -1;
+ this.columnidx.AutoIncrementStep = -1;
+ this.columnidx.AllowDBNull = false;
+ this.columnidx.ReadOnly = true;
+ this.columnidx.Unique = true;
+ this.columntitle.MaxLength = 100;
+ this.columnmemo.MaxLength = 2147483647;
+ this.columnwuid.AllowDBNull = false;
+ this.columnwuid.MaxLength = 20;
+ this.columnwdate.AllowDBNull = false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public ProjectsScheduleRow NewProjectsScheduleRow() {
+ return ((ProjectsScheduleRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new ProjectsScheduleRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Type GetRowType() {
+ return typeof(ProjectsScheduleRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.ProjectsScheduleRowChanged != null)) {
+ this.ProjectsScheduleRowChanged(this, new ProjectsScheduleRowChangeEvent(((ProjectsScheduleRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.ProjectsScheduleRowChanging != null)) {
+ this.ProjectsScheduleRowChanging(this, new ProjectsScheduleRowChangeEvent(((ProjectsScheduleRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.ProjectsScheduleRowDeleted != null)) {
+ this.ProjectsScheduleRowDeleted(this, new ProjectsScheduleRowChangeEvent(((ProjectsScheduleRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.ProjectsScheduleRowDeleting != null)) {
+ this.ProjectsScheduleRowDeleting(this, new ProjectsScheduleRowChangeEvent(((ProjectsScheduleRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void RemoveProjectsScheduleRow(ProjectsScheduleRow row) {
+ this.Rows.Remove(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
+ global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
+ global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
+ dsPRJ ds = new dsPRJ();
+ global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
+ any1.Namespace = "http://www.w3.org/2001/XMLSchema";
+ any1.MinOccurs = new decimal(0);
+ any1.MaxOccurs = decimal.MaxValue;
+ any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
+ sequence.Items.Add(any1);
+ global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
+ any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
+ any2.MinOccurs = new decimal(1);
+ any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
+ sequence.Items.Add(any2);
+ global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
+ attribute1.Name = "namespace";
+ attribute1.FixedValue = ds.Namespace;
+ type.Attributes.Add(attribute1);
+ global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
+ attribute2.Name = "tableTypeName";
+ attribute2.FixedValue = "ProjectsScheduleDataTable";
+ type.Attributes.Add(attribute2);
+ type.Particle = sequence;
+ global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
+ if (xs.Contains(dsSchema.TargetNamespace)) {
+ global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
+ global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
+ try {
+ global::System.Xml.Schema.XmlSchema schema = null;
+ dsSchema.Write(s1);
+ for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
+ schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
+ s2.SetLength(0);
+ schema.Write(s2);
+ if ((s1.Length == s2.Length)) {
+ s1.Position = 0;
+ s2.Position = 0;
+ for (; ((s1.Position != s1.Length)
+ && (s1.ReadByte() == s2.ReadByte())); ) {
+ ;
+ }
+ if ((s1.Position == s1.Length)) {
+ return type;
+ }
+ }
+ }
+ }
+ finally {
+ if ((s1 != null)) {
+ s1.Close();
+ }
+ if ((s2 != null)) {
+ s2.Close();
+ }
+ }
+ }
+ xs.Add(dsSchema);
+ return type;
+ }
+ }
+
///
///Represents strongly named DataRow class.
///
@@ -1218,11 +2186,11 @@ namespace FPJ0000 {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string name {
get {
- try {
- return ((string)(this[this.tableProjects.nameColumn]));
+ if (this.IsnameNull()) {
+ return string.Empty;
}
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'name\' 열의 값이 DBNull입니다.", e);
+ else {
+ return ((string)(this[this.tableProjects.nameColumn]));
}
}
set {
@@ -1234,11 +2202,11 @@ namespace FPJ0000 {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string pdate {
get {
- try {
- return ((string)(this[this.tableProjects.pdateColumn]));
+ if (this.IspdateNull()) {
+ return string.Empty;
}
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'pdate\' 열의 값이 DBNull입니다.", e);
+ else {
+ return ((string)(this[this.tableProjects.pdateColumn]));
}
}
set {
@@ -1250,11 +2218,11 @@ namespace FPJ0000 {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string request {
get {
- try {
- return ((string)(this[this.tableProjects.requestColumn]));
+ if (this.IsrequestNull()) {
+ return string.Empty;
}
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'request\' 열의 값이 DBNull입니다.", e);
+ else {
+ return ((string)(this[this.tableProjects.requestColumn]));
}
}
set {
@@ -1266,11 +2234,11 @@ namespace FPJ0000 {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string reqstaff {
get {
- try {
- return ((string)(this[this.tableProjects.reqstaffColumn]));
+ if (this.IsreqstaffNull()) {
+ return string.Empty;
}
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'reqstaff\' 열의 값이 DBNull입니다.", e);
+ else {
+ return ((string)(this[this.tableProjects.reqstaffColumn]));
}
}
set {
@@ -1282,11 +2250,11 @@ namespace FPJ0000 {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string sdate {
get {
- try {
- return ((string)(this[this.tableProjects.sdateColumn]));
+ if (this.IssdateNull()) {
+ return string.Empty;
}
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'sdate\' 열의 값이 DBNull입니다.", e);
+ else {
+ return ((string)(this[this.tableProjects.sdateColumn]));
}
}
set {
@@ -1298,11 +2266,11 @@ namespace FPJ0000 {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string edate {
get {
- try {
- return ((string)(this[this.tableProjects.edateColumn]));
+ if (this.IsedateNull()) {
+ return string.Empty;
}
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'edate\' 열의 값이 DBNull입니다.", e);
+ else {
+ return ((string)(this[this.tableProjects.edateColumn]));
}
}
set {
@@ -1314,11 +2282,11 @@ namespace FPJ0000 {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string odate {
get {
- try {
- return ((string)(this[this.tableProjects.odateColumn]));
+ if (this.IsodateNull()) {
+ return string.Empty;
}
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'odate\' 열의 값이 DBNull입니다.", e);
+ else {
+ return ((string)(this[this.tableProjects.odateColumn]));
}
}
set {
@@ -1330,11 +2298,11 @@ namespace FPJ0000 {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string memo {
get {
- try {
- return ((string)(this[this.tableProjects.memoColumn]));
+ if (this.IsmemoNull()) {
+ return string.Empty;
}
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'memo\' 열의 값이 DBNull입니다.", e);
+ else {
+ return ((string)(this[this.tableProjects.memoColumn]));
}
}
set {
@@ -1368,11 +2336,11 @@ namespace FPJ0000 {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string status {
get {
- try {
- return ((string)(this[this.tableProjects.statusColumn]));
+ if (this.IsstatusNull()) {
+ return string.Empty;
}
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'status\' 열의 값이 DBNull입니다.", e);
+ else {
+ return ((string)(this[this.tableProjects.statusColumn]));
}
}
set {
@@ -1380,6 +2348,54 @@ namespace FPJ0000 {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string statusName {
+ get {
+ if (this.IsstatusNameNull()) {
+ return string.Empty;
+ }
+ else {
+ return ((string)(this[this.tableProjects.statusNameColumn]));
+ }
+ }
+ set {
+ this[this.tableProjects.statusNameColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string usermain {
+ get {
+ try {
+ return ((string)(this[this.tableProjects.usermainColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'usermain\' 열의 값이 DBNull입니다.", e);
+ }
+ }
+ set {
+ this[this.tableProjects.usermainColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string usersub {
+ get {
+ try {
+ return ((string)(this[this.tableProjects.usersubColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'usersub\' 열의 값이 DBNull입니다.", e);
+ }
+ }
+ set {
+ this[this.tableProjects.usersubColumn] = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool IsnameNull() {
@@ -1487,6 +2503,42 @@ namespace FPJ0000 {
public void SetstatusNull() {
this[this.tableProjects.statusColumn] = global::System.Convert.DBNull;
}
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsstatusNameNull() {
+ return this.IsNull(this.tableProjects.statusNameColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetstatusNameNull() {
+ this[this.tableProjects.statusNameColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsusermainNull() {
+ return this.IsNull(this.tableProjects.usermainColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetusermainNull() {
+ this[this.tableProjects.usermainColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsusersubNull() {
+ return this.IsNull(this.tableProjects.usersubColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetusersubNull() {
+ this[this.tableProjects.usersubColumn] = global::System.Convert.DBNull;
+ }
}
///
@@ -1664,38 +2716,6 @@ namespace FPJ0000 {
}
}
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public string SID {
- get {
- if (this.IsSIDNull()) {
- return string.Empty;
- }
- else {
- return ((string)(this[this.tableProjectsPart.SIDColumn]));
- }
- }
- set {
- this[this.tableProjectsPart.SIDColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public string Supply {
- get {
- if (this.IsSupplyNull()) {
- return string.Empty;
- }
- else {
- return ((string)(this[this.tableProjectsPart.SupplyColumn]));
- }
- }
- set {
- this[this.tableProjectsPart.SupplyColumn] = value;
- }
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string ItemModel {
@@ -1712,6 +2732,54 @@ namespace FPJ0000 {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int supplyidx {
+ get {
+ try {
+ return ((int)(this[this.tableProjectsPart.supplyidxColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("\'ProjectsPart\' 테이블의 \'supplyidx\' 열의 값이 DBNull입니다.", e);
+ }
+ }
+ set {
+ this[this.tableProjectsPart.supplyidxColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string supplyName {
+ get {
+ if (this.IssupplyNameNull()) {
+ return string.Empty;
+ }
+ else {
+ return ((string)(this[this.tableProjectsPart.supplyNameColumn]));
+ }
+ }
+ set {
+ this[this.tableProjectsPart.supplyNameColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string itemSID {
+ get {
+ if (this.IsitemSIDNull()) {
+ return string.Empty;
+ }
+ else {
+ return ((string)(this[this.tableProjectsPart.itemSIDColumn]));
+ }
+ }
+ set {
+ this[this.tableProjectsPart.itemSIDColumn] = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool IsProjectNull() {
@@ -1808,30 +2876,6 @@ namespace FPJ0000 {
this[this.tableProjectsPart.ItemNameColumn] = global::System.Convert.DBNull;
}
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public bool IsSIDNull() {
- return this.IsNull(this.tableProjectsPart.SIDColumn);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public void SetSIDNull() {
- this[this.tableProjectsPart.SIDColumn] = global::System.Convert.DBNull;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public bool IsSupplyNull() {
- return this.IsNull(this.tableProjectsPart.SupplyColumn);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public void SetSupplyNull() {
- this[this.tableProjectsPart.SupplyColumn] = global::System.Convert.DBNull;
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool IsItemModelNull() {
@@ -1843,6 +2887,614 @@ namespace FPJ0000 {
public void SetItemModelNull() {
this[this.tableProjectsPart.ItemModelColumn] = global::System.Convert.DBNull;
}
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IssupplyidxNull() {
+ return this.IsNull(this.tableProjectsPart.supplyidxColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetsupplyidxNull() {
+ this[this.tableProjectsPart.supplyidxColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IssupplyNameNull() {
+ return this.IsNull(this.tableProjectsPart.supplyNameColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetsupplyNameNull() {
+ this[this.tableProjectsPart.supplyNameColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsitemSIDNull() {
+ return this.IsNull(this.tableProjectsPart.itemSIDColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetitemSIDNull() {
+ this[this.tableProjectsPart.itemSIDColumn] = global::System.Convert.DBNull;
+ }
+ }
+
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ public partial class JobReportRow : global::System.Data.DataRow {
+
+ private JobReportDataTable tableJobReport;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal JobReportRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableJobReport = ((JobReportDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int idx {
+ get {
+ return ((int)(this[this.tableJobReport.idxColumn]));
+ }
+ set {
+ this[this.tableJobReport.idxColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string pdate {
+ get {
+ if (this.IspdateNull()) {
+ return string.Empty;
+ }
+ else {
+ return ((string)(this[this.tableJobReport.pdateColumn]));
+ }
+ }
+ set {
+ this[this.tableJobReport.pdateColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string group {
+ get {
+ if (this.IsgroupNull()) {
+ return string.Empty;
+ }
+ else {
+ return ((string)(this[this.tableJobReport.groupColumn]));
+ }
+ }
+ set {
+ this[this.tableJobReport.groupColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string uid {
+ get {
+ if (this.IsuidNull()) {
+ return string.Empty;
+ }
+ else {
+ return ((string)(this[this.tableJobReport.uidColumn]));
+ }
+ }
+ set {
+ this[this.tableJobReport.uidColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string progress {
+ get {
+ try {
+ return ((string)(this[this.tableJobReport.progressColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'progress\' 열의 값이 DBNull입니다.", e);
+ }
+ }
+ set {
+ this[this.tableJobReport.progressColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string memo {
+ get {
+ if (this.IsmemoNull()) {
+ return string.Empty;
+ }
+ else {
+ return ((string)(this[this.tableJobReport.memoColumn]));
+ }
+ }
+ set {
+ this[this.tableJobReport.memoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string type {
+ get {
+ if (this.IstypeNull()) {
+ return string.Empty;
+ }
+ else {
+ return ((string)(this[this.tableJobReport.typeColumn]));
+ }
+ }
+ set {
+ this[this.tableJobReport.typeColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public double hrs {
+ get {
+ try {
+ return ((double)(this[this.tableJobReport.hrsColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'hrs\' 열의 값이 DBNull입니다.", e);
+ }
+ }
+ set {
+ this[this.tableJobReport.hrsColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string wuid {
+ get {
+ return ((string)(this[this.tableJobReport.wuidColumn]));
+ }
+ set {
+ this[this.tableJobReport.wuidColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public System.DateTime wdate {
+ get {
+ return ((global::System.DateTime)(this[this.tableJobReport.wdateColumn]));
+ }
+ set {
+ this[this.tableJobReport.wdateColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string username {
+ get {
+ if (this.IsusernameNull()) {
+ return string.Empty;
+ }
+ else {
+ return ((string)(this[this.tableJobReport.usernameColumn]));
+ }
+ }
+ set {
+ this[this.tableJobReport.usernameColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int projectidx {
+ get {
+ try {
+ return ((int)(this[this.tableJobReport.projectidxColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'projectidx\' 열의 값이 DBNull입니다.", e);
+ }
+ }
+ set {
+ this[this.tableJobReport.projectidxColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string project {
+ get {
+ try {
+ return ((string)(this[this.tableJobReport.projectColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'project\' 열의 값이 DBNull입니다.", e);
+ }
+ }
+ set {
+ this[this.tableJobReport.projectColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IspdateNull() {
+ return this.IsNull(this.tableJobReport.pdateColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetpdateNull() {
+ this[this.tableJobReport.pdateColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsgroupNull() {
+ return this.IsNull(this.tableJobReport.groupColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetgroupNull() {
+ this[this.tableJobReport.groupColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsuidNull() {
+ return this.IsNull(this.tableJobReport.uidColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetuidNull() {
+ this[this.tableJobReport.uidColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsprogressNull() {
+ return this.IsNull(this.tableJobReport.progressColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetprogressNull() {
+ this[this.tableJobReport.progressColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsmemoNull() {
+ return this.IsNull(this.tableJobReport.memoColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetmemoNull() {
+ this[this.tableJobReport.memoColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IstypeNull() {
+ return this.IsNull(this.tableJobReport.typeColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SettypeNull() {
+ this[this.tableJobReport.typeColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IshrsNull() {
+ return this.IsNull(this.tableJobReport.hrsColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SethrsNull() {
+ this[this.tableJobReport.hrsColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsusernameNull() {
+ return this.IsNull(this.tableJobReport.usernameColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetusernameNull() {
+ this[this.tableJobReport.usernameColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsprojectidxNull() {
+ return this.IsNull(this.tableJobReport.projectidxColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetprojectidxNull() {
+ this[this.tableJobReport.projectidxColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsprojectNull() {
+ return this.IsNull(this.tableJobReport.projectColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetprojectNull() {
+ this[this.tableJobReport.projectColumn] = global::System.Convert.DBNull;
+ }
+ }
+
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ public partial class ProjectsScheduleRow : global::System.Data.DataRow {
+
+ private ProjectsScheduleDataTable tableProjectsSchedule;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal ProjectsScheduleRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableProjectsSchedule = ((ProjectsScheduleDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int idx {
+ get {
+ return ((int)(this[this.tableProjectsSchedule.idxColumn]));
+ }
+ set {
+ this[this.tableProjectsSchedule.idxColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int project {
+ get {
+ try {
+ return ((int)(this[this.tableProjectsSchedule.projectColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("\'ProjectsSchedule\' 테이블의 \'project\' 열의 값이 DBNull입니다.", e);
+ }
+ }
+ set {
+ this[this.tableProjectsSchedule.projectColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string title {
+ get {
+ if (this.IstitleNull()) {
+ return string.Empty;
+ }
+ else {
+ return ((string)(this[this.tableProjectsSchedule.titleColumn]));
+ }
+ }
+ set {
+ this[this.tableProjectsSchedule.titleColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int sw {
+ get {
+ try {
+ return ((int)(this[this.tableProjectsSchedule.swColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("\'ProjectsSchedule\' 테이블의 \'sw\' 열의 값이 DBNull입니다.", e);
+ }
+ }
+ set {
+ this[this.tableProjectsSchedule.swColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int ew {
+ get {
+ try {
+ return ((int)(this[this.tableProjectsSchedule.ewColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("\'ProjectsSchedule\' 테이블의 \'ew\' 열의 값이 DBNull입니다.", e);
+ }
+ }
+ set {
+ this[this.tableProjectsSchedule.ewColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string memo {
+ get {
+ if (this.IsmemoNull()) {
+ return string.Empty;
+ }
+ else {
+ return ((string)(this[this.tableProjectsSchedule.memoColumn]));
+ }
+ }
+ set {
+ this[this.tableProjectsSchedule.memoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string wuid {
+ get {
+ return ((string)(this[this.tableProjectsSchedule.wuidColumn]));
+ }
+ set {
+ this[this.tableProjectsSchedule.wuidColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public System.DateTime wdate {
+ get {
+ return ((global::System.DateTime)(this[this.tableProjectsSchedule.wdateColumn]));
+ }
+ set {
+ this[this.tableProjectsSchedule.wdateColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int swa {
+ get {
+ try {
+ return ((int)(this[this.tableProjectsSchedule.swaColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("\'ProjectsSchedule\' 테이블의 \'swa\' 열의 값이 DBNull입니다.", e);
+ }
+ }
+ set {
+ this[this.tableProjectsSchedule.swaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int ewa {
+ get {
+ try {
+ return ((int)(this[this.tableProjectsSchedule.ewaColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("\'ProjectsSchedule\' 테이블의 \'ewa\' 열의 값이 DBNull입니다.", e);
+ }
+ }
+ set {
+ this[this.tableProjectsSchedule.ewaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsprojectNull() {
+ return this.IsNull(this.tableProjectsSchedule.projectColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetprojectNull() {
+ this[this.tableProjectsSchedule.projectColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IstitleNull() {
+ return this.IsNull(this.tableProjectsSchedule.titleColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SettitleNull() {
+ this[this.tableProjectsSchedule.titleColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsswNull() {
+ return this.IsNull(this.tableProjectsSchedule.swColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetswNull() {
+ this[this.tableProjectsSchedule.swColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsewNull() {
+ return this.IsNull(this.tableProjectsSchedule.ewColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetewNull() {
+ this[this.tableProjectsSchedule.ewColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsmemoNull() {
+ return this.IsNull(this.tableProjectsSchedule.memoColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetmemoNull() {
+ this[this.tableProjectsSchedule.memoColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsswaNull() {
+ return this.IsNull(this.tableProjectsSchedule.swaColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetswaNull() {
+ this[this.tableProjectsSchedule.swaColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsewaNull() {
+ return this.IsNull(this.tableProjectsSchedule.ewaColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetewaNull() {
+ this[this.tableProjectsSchedule.ewaColumn] = global::System.Convert.DBNull;
+ }
}
///
@@ -1912,6 +3564,74 @@ namespace FPJ0000 {
}
}
}
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public class JobReportRowChangeEvent : global::System.EventArgs {
+
+ private JobReportRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public JobReportRowChangeEvent(JobReportRow row, global::System.Data.DataRowAction action) {
+ this.eventRow = row;
+ this.eventAction = action;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public JobReportRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataRowAction Action {
+ get {
+ return this.eventAction;
+ }
+ }
+ }
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public class ProjectsScheduleRowChangeEvent : global::System.EventArgs {
+
+ private ProjectsScheduleRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public ProjectsScheduleRowChangeEvent(ProjectsScheduleRow row, global::System.Data.DataRowAction action) {
+ this.eventRow = row;
+ this.eventAction = action;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public ProjectsScheduleRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataRowAction Action {
+ get {
+ return this.eventAction;
+ }
+ }
+ }
}
}
namespace FPJ0000.dsPRJTableAdapters {
@@ -2050,18 +3770,25 @@ namespace FPJ0000.dsPRJTableAdapters {
tableMapping.ColumnMappings.Add("wuid", "wuid");
tableMapping.ColumnMappings.Add("wdate", "wdate");
tableMapping.ColumnMappings.Add("status", "status");
+ tableMapping.ColumnMappings.Add("statusName", "statusName");
+ tableMapping.ColumnMappings.Add("usermain", "usermain");
+ tableMapping.ColumnMappings.Add("usersub", "usersub");
this._adapter.TableMappings.Add(tableMapping);
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.DeleteCommand.Connection = this.Connection;
- 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.CommandText = @"DELETE FROM [Projects] WHERE (([idx] = @Original_idx) AND ((@IsNull_status = 1 AND [status] IS NULL) OR ([status] = @Original_status)) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_usermain = 1 AND [usermain] IS NULL) OR ([usermain] = @Original_usermain)) AND ((@IsNull_usersub = 1 AND [usersub] IS NULL) OR ([usersub] = @Original_usersub)) 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.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("@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("@Original_pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", 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("@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_usermain", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "usermain", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_usermain", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "usermain", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_usersub", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "usersub", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_usersub", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "usersub", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_request", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "request", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_request", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "request", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_reqstaff", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "reqstaff", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
@@ -2078,12 +3805,14 @@ 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.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.InsertCommand.Connection = this.Connection;
- 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, status, name, pdate, request, reqstaff, sdate, edate, odate, memo, wuid, wdate FROM Projects WHERE (idx = SCOPE_IDENTITY())";
+ this._adapter.InsertCommand.CommandText = @"INSERT INTO [Projects] ([status], [pdate], [name], [usermain], [usersub], [request], [reqstaff], [sdate], [edate], [odate], [memo], [wuid], [wdate]) VALUES (@status, @pdate, @name, @usermain, @usersub, @request, @reqstaff, @sdate, @edate, @odate, @memo, @wuid, @wdate);
+SELECT idx, status, dbo.getCodeName('01', status) AS statusName, pdate, name, usermain, usersub, request, reqstaff, sdate, edate, odate, memo, wuid, wdate FROM Projects WHERE (idx = SCOPE_IDENTITY()) ORDER BY status";
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("@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("@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("@usermain", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "usermain", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@usersub", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "usersub", 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("@reqstaff", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "reqstaff", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -2094,12 +3823,14 @@ SELECT idx, status, name, pdate, request, reqstaff, sdate, edate, odate, memo, w
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.Connection = this.Connection;
- 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, status, name, pdate, request, reqstaff, sdate, edate, odate, memo, wuid, wdate FROM Projects WHERE (idx = @idx)";
+ this._adapter.UpdateCommand.CommandText = @"UPDATE [Projects] SET [status] = @status, [pdate] = @pdate, [name] = @name, [usermain] = @usermain, [usersub] = @usersub, [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_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_usermain = 1 AND [usermain] IS NULL) OR ([usermain] = @Original_usermain)) AND ((@IsNull_usersub = 1 AND [usersub] IS NULL) OR ([usersub] = @Original_usersub)) 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, status, dbo.getCodeName('01', status) AS statusName, pdate, name, usermain, usersub, request, reqstaff, sdate, edate, odate, memo, wuid, wdate FROM Projects WHERE (idx = @idx) ORDER BY status";
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("@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("@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("@usermain", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "usermain", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@usersub", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "usersub", 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("@reqstaff", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "reqstaff", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -2111,10 +3842,14 @@ SELECT idx, status, name, pdate, request, reqstaff, sdate, edate, odate, memo, w
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("@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("@Original_pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", 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("@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_usermain", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "usermain", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_usermain", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "usermain", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_usersub", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "usersub", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_usersub", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "usersub", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_request", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "request", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_request", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "request", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_reqstaff", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "reqstaff", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
@@ -2145,13 +3880,16 @@ SELECT idx, status, name, pdate, request, reqstaff, sdate, edate, odate, memo, w
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
- this._commandCollection[0].CommandText = "SELECT idx, status, name, pdate, request, reqstaff, sdate, edate, odate, memo, w" +
- "uid, wdate\r\nFROM Projects";
+ this._commandCollection[0].CommandText = "SELECT idx, status, dbo.getCodeName(\'01\', status) AS statusName, pdate, name, us" +
+ "ermain, usersub, request, reqstaff, sdate, edate, odate, memo, wuid, wdate\r\nFROM" +
+ " Projects\r\nWHERE (status LIKE @state)\r\nORDER BY status";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+ this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@state", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, "status", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[1].Connection = this.Connection;
- this._commandCollection[1].CommandText = "SELECT idx, status, name, pdate, request, reqstaff, sdate, edate, odate, memo, w" +
- "uid, wdate\r\nFROM Projects\r\nWHERE (idx = @idx)";
+ this._commandCollection[1].CommandText = "SELECT idx, status, dbo.getCodeName(\'01\', status) AS statusName, pdate, name, us" +
+ "ermain, usersub, request, reqstaff, sdate, edate, odate, memo, wuid, wdate\r\nFROM" +
+ " Projects\r\nWHERE (idx = @idx)";
this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
@@ -2160,8 +3898,14 @@ SELECT idx, status, name, pdate, request, reqstaff, sdate, edate, odate, memo, w
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
- public virtual int Fill(dsPRJ.ProjectsDataTable dataTable) {
+ public virtual int Fill(dsPRJ.ProjectsDataTable dataTable, string state) {
this.Adapter.SelectCommand = this.CommandCollection[0];
+ if ((state == null)) {
+ this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[0].Value = ((string)(state));
+ }
if ((this.ClearBeforeFill == true)) {
dataTable.Clear();
}
@@ -2173,8 +3917,14 @@ SELECT idx, status, name, pdate, request, reqstaff, sdate, edate, odate, memo, w
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
- public virtual dsPRJ.ProjectsDataTable GetData() {
+ public virtual dsPRJ.ProjectsDataTable GetData(string state) {
this.Adapter.SelectCommand = this.CommandCollection[0];
+ if ((state == null)) {
+ this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[0].Value = ((string)(state));
+ }
dsPRJ.ProjectsDataTable dataTable = new dsPRJ.ProjectsDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
@@ -2239,7 +3989,7 @@ SELECT idx, status, name, pdate, request, reqstaff, sdate, edate, odate, memo, w
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
- 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) {
+ public virtual int Delete(int Original_idx, string Original_status, string Original_pdate, string Original_name, string Original_usermain, string Original_usersub, 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));
if ((Original_status == null)) {
this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
@@ -2249,77 +3999,93 @@ SELECT idx, status, name, pdate, request, reqstaff, sdate, edate, odate, memo, w
this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_status));
}
- if ((Original_name == null)) {
+ if ((Original_pdate == null)) {
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_name));
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_pdate));
}
- if ((Original_pdate == null)) {
+ if ((Original_name == null)) {
this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_pdate));
+ this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_name));
}
- if ((Original_request == null)) {
+ if ((Original_usermain == null)) {
this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_request));
+ this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_usermain));
}
- if ((Original_reqstaff == null)) {
+ if ((Original_usersub == null)) {
this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_reqstaff));
+ this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_usersub));
}
- if ((Original_sdate == null)) {
+ if ((Original_request == null)) {
this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_sdate));
+ this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_request));
}
- if ((Original_edate == null)) {
+ if ((Original_reqstaff == null)) {
this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_edate));
+ this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_reqstaff));
}
- if ((Original_odate == null)) {
+ if ((Original_sdate == null)) {
this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[16].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[16].Value = ((string)(Original_odate));
+ this.Adapter.DeleteCommand.Parameters[16].Value = ((string)(Original_sdate));
}
- if ((Original_memo == null)) {
+ if ((Original_edate == 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));
+ this.Adapter.DeleteCommand.Parameters[18].Value = ((string)(Original_edate));
+ }
+ if ((Original_odate == null)) {
+ this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[20].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[20].Value = ((string)(Original_odate));
+ }
+ if ((Original_memo == null)) {
+ this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[22].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[22].Value = ((string)(Original_memo));
}
if ((Original_wuid == null)) {
throw new global::System.ArgumentNullException("Original_wuid");
}
else {
- this.Adapter.DeleteCommand.Parameters[19].Value = ((string)(Original_wuid));
+ this.Adapter.DeleteCommand.Parameters[23].Value = ((string)(Original_wuid));
}
- this.Adapter.DeleteCommand.Parameters[20].Value = ((System.DateTime)(Original_wdate));
+ this.Adapter.DeleteCommand.Parameters[24].Value = ((System.DateTime)(Original_wdate));
global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
@@ -2340,68 +4106,80 @@ SELECT idx, status, name, pdate, request, reqstaff, sdate, edate, odate, memo, w
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
- 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) {
+ public virtual int Insert(string status, string pdate, string name, string usermain, string usersub, string request, string reqstaff, string sdate, string edate, string odate, string memo, string wuid, System.DateTime wdate) {
if ((status == null)) {
this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[0].Value = ((string)(status));
}
- if ((name == null)) {
+ if ((pdate == null)) {
this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.InsertCommand.Parameters[1].Value = ((string)(name));
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(pdate));
}
- if ((pdate == null)) {
+ if ((name == null)) {
this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.InsertCommand.Parameters[2].Value = ((string)(pdate));
+ this.Adapter.InsertCommand.Parameters[2].Value = ((string)(name));
}
- if ((request == null)) {
+ if ((usermain == null)) {
this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.InsertCommand.Parameters[3].Value = ((string)(request));
+ this.Adapter.InsertCommand.Parameters[3].Value = ((string)(usermain));
}
- if ((reqstaff == null)) {
+ if ((usersub == null)) {
this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.InsertCommand.Parameters[4].Value = ((string)(reqstaff));
+ this.Adapter.InsertCommand.Parameters[4].Value = ((string)(usersub));
}
- if ((sdate == null)) {
+ if ((request == null)) {
this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.InsertCommand.Parameters[5].Value = ((string)(sdate));
+ this.Adapter.InsertCommand.Parameters[5].Value = ((string)(request));
}
- if ((edate == null)) {
+ if ((reqstaff == null)) {
this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.InsertCommand.Parameters[6].Value = ((string)(edate));
+ this.Adapter.InsertCommand.Parameters[6].Value = ((string)(reqstaff));
}
- if ((odate == null)) {
+ if ((sdate == null)) {
this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.InsertCommand.Parameters[7].Value = ((string)(odate));
+ this.Adapter.InsertCommand.Parameters[7].Value = ((string)(sdate));
}
- if ((memo == null)) {
+ if ((edate == null)) {
this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.InsertCommand.Parameters[8].Value = ((string)(memo));
+ this.Adapter.InsertCommand.Parameters[8].Value = ((string)(edate));
+ }
+ if ((odate == null)) {
+ this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[9].Value = ((string)(odate));
+ }
+ if ((memo == null)) {
+ this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[10].Value = ((string)(memo));
}
if ((wuid == null)) {
throw new global::System.ArgumentNullException("wuid");
}
else {
- this.Adapter.InsertCommand.Parameters[9].Value = ((string)(wuid));
+ this.Adapter.InsertCommand.Parameters[11].Value = ((string)(wuid));
}
- this.Adapter.InsertCommand.Parameters[10].Value = ((System.DateTime)(wdate));
+ this.Adapter.InsertCommand.Parameters[12].Value = ((System.DateTime)(wdate));
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
@@ -2424,8 +4202,10 @@ SELECT idx, status, name, pdate, request, reqstaff, sdate, edate, odate, memo, w
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
public virtual int Update(
string status,
- string name,
string pdate,
+ string name,
+ string usermain,
+ string usersub,
string request,
string reqstaff,
string sdate,
@@ -2436,8 +4216,10 @@ SELECT idx, status, name, pdate, request, reqstaff, sdate, edate, odate, memo, w
System.DateTime wdate,
int Original_idx,
string Original_status,
- string Original_name,
string Original_pdate,
+ string Original_name,
+ string Original_usermain,
+ string Original_usersub,
string Original_request,
string Original_reqstaff,
string Original_sdate,
@@ -2453,77 +4235,81 @@ SELECT idx, status, name, pdate, request, reqstaff, sdate, edate, odate, memo, w
else {
this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(status));
}
- if ((name == null)) {
+ if ((pdate == null)) {
this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(name));
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(pdate));
}
- if ((pdate == null)) {
+ if ((name == null)) {
this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(pdate));
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(name));
}
- if ((request == null)) {
+ if ((usermain == null)) {
this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(request));
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(usermain));
}
- if ((reqstaff == null)) {
+ if ((usersub == null)) {
this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(reqstaff));
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(usersub));
}
- if ((sdate == null)) {
+ if ((request == null)) {
this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(sdate));
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(request));
}
- if ((edate == null)) {
+ if ((reqstaff == null)) {
this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(edate));
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(reqstaff));
}
- if ((odate == null)) {
+ if ((sdate == null)) {
this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(odate));
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(sdate));
}
- if ((memo == null)) {
+ if ((edate == null)) {
this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(memo));
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(edate));
+ }
+ if ((odate == null)) {
+ this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(odate));
+ }
+ if ((memo == null)) {
+ this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(memo));
}
if ((wuid == null)) {
throw new global::System.ArgumentNullException("wuid");
}
else {
- this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(wuid));
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(wuid));
}
- this.Adapter.UpdateCommand.Parameters[10].Value = ((System.DateTime)(wdate));
- this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_idx));
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((System.DateTime)(wdate));
+ this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_idx));
if ((Original_status == null)) {
- this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
- 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));
+ this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_status));
}
if ((Original_pdate == null)) {
this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
@@ -2533,62 +4319,86 @@ SELECT idx, status, name, pdate, request, reqstaff, sdate, edate, odate, memo, w
this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_pdate));
}
- if ((Original_request == null)) {
+ if ((Original_name == null)) {
this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_request));
+ this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_name));
}
- if ((Original_reqstaff == null)) {
+ if ((Original_usermain == null)) {
this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_reqstaff));
+ this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_usermain));
}
- if ((Original_sdate == null)) {
+ if ((Original_usersub == null)) {
this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_sdate));
+ this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_usersub));
}
- if ((Original_edate == null)) {
+ if ((Original_request == null)) {
this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[25].Value = ((string)(Original_edate));
+ this.Adapter.UpdateCommand.Parameters[25].Value = ((string)(Original_request));
}
- if ((Original_odate == null)) {
+ if ((Original_reqstaff == null)) {
this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[27].Value = ((string)(Original_odate));
+ this.Adapter.UpdateCommand.Parameters[27].Value = ((string)(Original_reqstaff));
}
- if ((Original_memo == null)) {
+ if ((Original_sdate == null)) {
this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[29].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[29].Value = ((string)(Original_memo));
+ this.Adapter.UpdateCommand.Parameters[29].Value = ((string)(Original_sdate));
+ }
+ if ((Original_edate == null)) {
+ this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[31].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[31].Value = ((string)(Original_edate));
+ }
+ if ((Original_odate == null)) {
+ this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[33].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[33].Value = ((string)(Original_odate));
+ }
+ if ((Original_memo == null)) {
+ this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[35].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[35].Value = ((string)(Original_memo));
}
if ((Original_wuid == null)) {
throw new global::System.ArgumentNullException("Original_wuid");
}
else {
- this.Adapter.UpdateCommand.Parameters[30].Value = ((string)(Original_wuid));
+ this.Adapter.UpdateCommand.Parameters[36].Value = ((string)(Original_wuid));
}
- this.Adapter.UpdateCommand.Parameters[31].Value = ((System.DateTime)(Original_wdate));
- this.Adapter.UpdateCommand.Parameters[32].Value = ((int)(idx));
+ this.Adapter.UpdateCommand.Parameters[37].Value = ((System.DateTime)(Original_wdate));
+ this.Adapter.UpdateCommand.Parameters[38].Value = ((int)(idx));
global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
@@ -2611,8 +4421,10 @@ SELECT idx, status, name, pdate, request, reqstaff, sdate, edate, odate, memo, w
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
public virtual int Update(
string status,
- string name,
string pdate,
+ string name,
+ string usermain,
+ string usersub,
string request,
string reqstaff,
string sdate,
@@ -2623,8 +4435,10 @@ SELECT idx, status, name, pdate, request, reqstaff, sdate, edate, odate, memo, w
System.DateTime wdate,
int Original_idx,
string Original_status,
- string Original_name,
string Original_pdate,
+ string Original_name,
+ string Original_usermain,
+ string Original_usersub,
string Original_request,
string Original_reqstaff,
string Original_sdate,
@@ -2633,7 +4447,7 @@ SELECT idx, status, name, pdate, request, reqstaff, sdate, edate, odate, memo, w
string Original_memo,
string Original_wuid,
System.DateTime Original_wdate) {
- 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);
+ return this.Update(status, pdate, name, usermain, usersub, request, reqstaff, sdate, edate, odate, memo, wuid, wdate, Original_idx, Original_status, Original_pdate, Original_name, Original_usermain, Original_usersub, Original_request, Original_reqstaff, Original_sdate, Original_edate, Original_odate, Original_memo, Original_wuid, Original_wdate, Original_idx);
}
}
@@ -2770,10 +4584,13 @@ SELECT idx, status, name, pdate, request, reqstaff, sdate, edate, odate, memo, w
tableMapping.ColumnMappings.Add("wdate", "wdate");
tableMapping.ColumnMappings.Add("ItemName", "ItemName");
tableMapping.ColumnMappings.Add("ItemModel", "ItemModel");
+ tableMapping.ColumnMappings.Add("supplyidx", "supplyidx");
+ tableMapping.ColumnMappings.Add("supplyName", "supplyName");
+ tableMapping.ColumnMappings.Add("itemSID", "itemSID");
this._adapter.TableMappings.Add(tableMapping);
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.DeleteCommand.Connection = this.Connection;
- this._adapter.DeleteCommand.CommandText = @"DELETE FROM [ProjectsPart] WHERE (([idx] = @Original_idx) AND ((@IsNull_Project = 1 AND [Project] IS NULL) OR ([Project] = @Original_Project)) AND ((@IsNull_Item = 1 AND [Item] IS NULL) OR ([Item] = @Original_Item)) AND ((@IsNull_qty = 1 AND [qty] IS NULL) OR ([qty] = @Original_qty)) AND ((@IsNull_price = 1 AND [price] IS NULL) OR ([price] = @Original_price)) AND ((@IsNull_amt = 1 AND [amt] IS NULL) OR ([amt] = @Original_amt)) AND ((@IsNull_jago = 1 AND [jago] IS NULL) OR ([jago] = @Original_jago)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_ItemName = 1 AND [ItemName] IS NULL) OR ([ItemName] = @Original_ItemName)) AND ((@IsNull_ItemModel = 1 AND [ItemModel] IS NULL) OR ([ItemModel] = @Original_ItemModel)))";
+ this._adapter.DeleteCommand.CommandText = @"DELETE FROM [ProjectsPart] WHERE (([idx] = @Original_idx) AND ((@IsNull_Project = 1 AND [Project] IS NULL) OR ([Project] = @Original_Project)) AND ((@IsNull_Item = 1 AND [Item] IS NULL) OR ([Item] = @Original_Item)) AND ((@IsNull_qty = 1 AND [qty] IS NULL) OR ([qty] = @Original_qty)) AND ((@IsNull_price = 1 AND [price] IS NULL) OR ([price] = @Original_price)) AND ((@IsNull_amt = 1 AND [amt] IS NULL) OR ([amt] = @Original_amt)) AND ((@IsNull_jago = 1 AND [jago] IS NULL) OR ([jago] = @Original_jago)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_ItemName = 1 AND [ItemName] IS NULL) OR ([ItemName] = @Original_ItemName)) AND ((@IsNull_ItemModel = 1 AND [ItemModel] IS NULL) OR ([ItemModel] = @Original_ItemModel)) AND ((@IsNull_supplyidx = 1 AND [supplyidx] IS NULL) OR ([supplyidx] = @Original_supplyidx)))";
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("@IsNull_Project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Project", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
@@ -2796,10 +4613,12 @@ SELECT idx, status, name, pdate, request, reqstaff, sdate, edate, odate, memo, w
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItemName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ItemModel", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemModel", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItemModel", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemModel", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_supplyidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "supplyidx", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_supplyidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "supplyidx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.InsertCommand.Connection = this.Connection;
- this._adapter.InsertCommand.CommandText = @"INSERT INTO [ProjectsPart] ([Project], [Item], [qty], [price], [amt], [jago], [memo], [wuid], [wdate], [ItemName], [ItemModel]) VALUES (@Project, @Item, @qty, @price, @amt, @jago, @memo, @wuid, @wdate, @ItemName, @ItemModel);
-SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, ItemModel FROM ProjectsPart WHERE (idx = SCOPE_IDENTITY())";
+ this._adapter.InsertCommand.CommandText = @"INSERT INTO [ProjectsPart] ([Project], [Item], [qty], [price], [amt], [jago], [memo], [wuid], [wdate], [ItemName], [ItemModel], [supplyidx]) VALUES (@Project, @Item, @qty, @price, @amt, @jago, @memo, @wuid, @wdate, @ItemName, @ItemModel, @supplyidx);
+SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, ItemModel, supplyidx FROM ProjectsPart WHERE (idx = SCOPE_IDENTITY())";
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Project", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Item", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Item", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -2812,10 +4631,11 @@ SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, I
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("@ItemName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemModel", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemModel", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@supplyidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "supplyidx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.UpdateCommand.Connection = this.Connection;
- this._adapter.UpdateCommand.CommandText = @"UPDATE [ProjectsPart] SET [Project] = @Project, [Item] = @Item, [qty] = @qty, [price] = @price, [amt] = @amt, [jago] = @jago, [memo] = @memo, [wuid] = @wuid, [wdate] = @wdate, [ItemName] = @ItemName, [ItemModel] = @ItemModel WHERE (([idx] = @Original_idx) AND ((@IsNull_Project = 1 AND [Project] IS NULL) OR ([Project] = @Original_Project)) AND ((@IsNull_Item = 1 AND [Item] IS NULL) OR ([Item] = @Original_Item)) AND ((@IsNull_qty = 1 AND [qty] IS NULL) OR ([qty] = @Original_qty)) AND ((@IsNull_price = 1 AND [price] IS NULL) OR ([price] = @Original_price)) AND ((@IsNull_amt = 1 AND [amt] IS NULL) OR ([amt] = @Original_amt)) AND ((@IsNull_jago = 1 AND [jago] IS NULL) OR ([jago] = @Original_jago)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_ItemName = 1 AND [ItemName] IS NULL) OR ([ItemName] = @Original_ItemName)) AND ((@IsNull_ItemModel = 1 AND [ItemModel] IS NULL) OR ([ItemModel] = @Original_ItemModel)));
-SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, ItemModel FROM ProjectsPart WHERE (idx = @idx)";
+ this._adapter.UpdateCommand.CommandText = @"UPDATE [ProjectsPart] SET [Project] = @Project, [Item] = @Item, [qty] = @qty, [price] = @price, [amt] = @amt, [jago] = @jago, [memo] = @memo, [wuid] = @wuid, [wdate] = @wdate, [ItemName] = @ItemName, [ItemModel] = @ItemModel, [supplyidx] = @supplyidx WHERE (([idx] = @Original_idx) AND ((@IsNull_Project = 1 AND [Project] IS NULL) OR ([Project] = @Original_Project)) AND ((@IsNull_Item = 1 AND [Item] IS NULL) OR ([Item] = @Original_Item)) AND ((@IsNull_qty = 1 AND [qty] IS NULL) OR ([qty] = @Original_qty)) AND ((@IsNull_price = 1 AND [price] IS NULL) OR ([price] = @Original_price)) AND ((@IsNull_amt = 1 AND [amt] IS NULL) OR ([amt] = @Original_amt)) AND ((@IsNull_jago = 1 AND [jago] IS NULL) OR ([jago] = @Original_jago)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_ItemName = 1 AND [ItemName] IS NULL) OR ([ItemName] = @Original_ItemName)) AND ((@IsNull_ItemModel = 1 AND [ItemModel] IS NULL) OR ([ItemModel] = @Original_ItemModel)) AND ((@IsNull_supplyidx = 1 AND [supplyidx] IS NULL) OR ([supplyidx] = @Original_supplyidx)));
+SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, ItemModel, supplyidx FROM ProjectsPart WHERE (idx = @idx)";
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Project", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Item", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Item", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -2828,6 +4648,7 @@ SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, I
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("@ItemName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemModel", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemModel", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@supplyidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "supplyidx", 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("@IsNull_Project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Project", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Project", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
@@ -2849,6 +4670,8 @@ SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, I
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItemName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ItemModel", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemModel", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItemModel", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemModel", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_supplyidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "supplyidx", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_supplyidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "supplyidx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
@@ -2866,7 +4689,8 @@ SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, I
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, I" +
- "temModel\r\nFROM ProjectsPart\r\nWHERE (Project = @prj)";
+ "temModel, supplyidx, dbo.getCustName(supplyidx) AS supplyName, dbo.getItemSID(It" +
+ "em) AS itemSID\r\nFROM ProjectsPart\r\nWHERE (Project = @prj)";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@prj", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "Project", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
@@ -2940,7 +4764,7 @@ SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, I
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
- public virtual int Delete(int Original_idx, global::System.Nullable Original_Project, global::System.Nullable Original_Item, global::System.Nullable Original_qty, global::System.Nullable Original_price, global::System.Nullable Original_amt, global::System.Nullable Original_jago, string Original_memo, string Original_wuid, System.DateTime Original_wdate, string Original_ItemName, string Original_ItemModel) {
+ public virtual int Delete(int Original_idx, global::System.Nullable Original_Project, global::System.Nullable Original_Item, global::System.Nullable Original_qty, global::System.Nullable Original_price, global::System.Nullable Original_amt, global::System.Nullable Original_jago, string Original_memo, string Original_wuid, System.DateTime Original_wdate, string Original_ItemName, string Original_ItemModel, global::System.Nullable Original_supplyidx) {
this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx));
if ((Original_Project.HasValue == true)) {
this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
@@ -3021,6 +4845,14 @@ SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, I
this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[20].Value = ((string)(Original_ItemModel));
}
+ if ((Original_supplyidx.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[22].Value = ((int)(Original_supplyidx.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[22].Value = global::System.DBNull.Value;
+ }
global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
@@ -3041,7 +4873,7 @@ SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, I
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
- public virtual int Insert(global::System.Nullable Project, global::System.Nullable Item, global::System.Nullable qty, global::System.Nullable price, global::System.Nullable amt, global::System.Nullable jago, string memo, string wuid, System.DateTime wdate, string ItemName, string ItemModel) {
+ public virtual int Insert(global::System.Nullable Project, global::System.Nullable Item, global::System.Nullable qty, global::System.Nullable price, global::System.Nullable amt, global::System.Nullable jago, string memo, string wuid, System.DateTime wdate, string ItemName, string ItemModel, global::System.Nullable supplyidx) {
if ((Project.HasValue == true)) {
this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Project.Value));
}
@@ -3103,6 +4935,12 @@ SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, I
else {
this.Adapter.InsertCommand.Parameters[10].Value = ((string)(ItemModel));
}
+ if ((supplyidx.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[11].Value = ((int)(supplyidx.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value;
+ }
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
@@ -3135,6 +4973,7 @@ SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, I
System.DateTime wdate,
string ItemName,
string ItemModel,
+ global::System.Nullable supplyidx,
int Original_idx,
global::System.Nullable Original_Project,
global::System.Nullable Original_Item,
@@ -3147,6 +4986,7 @@ SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, I
System.DateTime Original_wdate,
string Original_ItemName,
string Original_ItemModel,
+ global::System.Nullable Original_supplyidx,
int idx) {
if ((Project.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(Project.Value));
@@ -3209,87 +5049,101 @@ SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, I
else {
this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(ItemModel));
}
- this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_idx));
- if ((Original_Project.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_Project.Value));
+ if ((supplyidx.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(supplyidx.Value));
}
else {
- this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
+ this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
+ }
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_idx));
+ if ((Original_Project.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(Original_Project.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
}
if ((Original_Item.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_Item.Value));
+ this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[16].Value = ((int)(Original_Item.Value));
}
else {
- this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
+ this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
}
if ((Original_qty.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[17].Value = ((int)(Original_qty.Value));
+ this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[18].Value = ((int)(Original_qty.Value));
}
else {
- this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
+ this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
}
if ((Original_price.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[19].Value = ((decimal)(Original_price.Value));
+ this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[20].Value = ((decimal)(Original_price.Value));
}
else {
- this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
+ this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value;
}
if ((Original_amt.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[21].Value = ((decimal)(Original_amt.Value));
+ this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[22].Value = ((decimal)(Original_amt.Value));
}
else {
- this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
+ this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value;
}
if ((Original_jago.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[23].Value = ((int)(Original_jago.Value));
+ this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[24].Value = ((int)(Original_jago.Value));
}
else {
- this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
+ this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[24].Value = global::System.DBNull.Value;
}
if ((Original_memo == null)) {
- this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value;
+ this.Adapter.UpdateCommand.Parameters[25].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[26].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[25].Value = ((string)(Original_memo));
+ this.Adapter.UpdateCommand.Parameters[25].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[26].Value = ((string)(Original_memo));
}
if ((Original_wuid == null)) {
throw new global::System.ArgumentNullException("Original_wuid");
}
else {
- this.Adapter.UpdateCommand.Parameters[26].Value = ((string)(Original_wuid));
+ this.Adapter.UpdateCommand.Parameters[27].Value = ((string)(Original_wuid));
}
- this.Adapter.UpdateCommand.Parameters[27].Value = ((System.DateTime)(Original_wdate));
+ this.Adapter.UpdateCommand.Parameters[28].Value = ((System.DateTime)(Original_wdate));
if ((Original_ItemName == null)) {
- this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[29].Value = global::System.DBNull.Value;
+ this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[30].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[29].Value = ((string)(Original_ItemName));
+ this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[30].Value = ((string)(Original_ItemName));
}
if ((Original_ItemModel == null)) {
- this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[31].Value = global::System.DBNull.Value;
+ this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[32].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[31].Value = ((string)(Original_ItemModel));
+ this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[32].Value = ((string)(Original_ItemModel));
}
- this.Adapter.UpdateCommand.Parameters[32].Value = ((int)(idx));
+ if ((Original_supplyidx.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[33].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[34].Value = ((int)(Original_supplyidx.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[33].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[34].Value = global::System.DBNull.Value;
+ }
+ this.Adapter.UpdateCommand.Parameters[35].Value = ((int)(idx));
global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
@@ -3322,6 +5176,7 @@ SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, I
System.DateTime wdate,
string ItemName,
string ItemModel,
+ global::System.Nullable supplyidx,
int Original_idx,
global::System.Nullable Original_Project,
global::System.Nullable Original_Item,
@@ -3333,8 +5188,1409 @@ SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, I
string Original_wuid,
System.DateTime Original_wdate,
string Original_ItemName,
- string Original_ItemModel) {
- return this.Update(Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, ItemModel, Original_idx, Original_Project, Original_Item, Original_qty, Original_price, Original_amt, Original_jago, Original_memo, Original_wuid, Original_wdate, Original_ItemName, Original_ItemModel, Original_idx);
+ string Original_ItemModel,
+ global::System.Nullable Original_supplyidx) {
+ return this.Update(Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, ItemModel, supplyidx, Original_idx, Original_Project, Original_Item, Original_qty, Original_price, Original_amt, Original_jago, Original_memo, Original_wuid, Original_wdate, Original_ItemName, Original_ItemModel, Original_supplyidx, Original_idx);
+ }
+ }
+
+ ///
+ ///Represents the connection and commands used to retrieve and save data.
+ ///
+ [global::System.ComponentModel.DesignerCategoryAttribute("code")]
+ [global::System.ComponentModel.ToolboxItem(true)]
+ [global::System.ComponentModel.DataObjectAttribute(true)]
+ [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
+ ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public partial class JobReportTableAdapter : global::System.ComponentModel.Component {
+
+ private global::System.Data.SqlClient.SqlDataAdapter _adapter;
+
+ private global::System.Data.SqlClient.SqlConnection _connection;
+
+ private global::System.Data.SqlClient.SqlTransaction _transaction;
+
+ private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
+
+ private bool _clearBeforeFill;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public JobReportTableAdapter() {
+ this.ClearBeforeFill = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
+ get {
+ if ((this._adapter == null)) {
+ this.InitAdapter();
+ }
+ return this._adapter;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal global::System.Data.SqlClient.SqlConnection Connection {
+ get {
+ if ((this._connection == null)) {
+ this.InitConnection();
+ }
+ return this._connection;
+ }
+ set {
+ this._connection = value;
+ if ((this.Adapter.InsertCommand != null)) {
+ this.Adapter.InsertCommand.Connection = value;
+ }
+ if ((this.Adapter.DeleteCommand != null)) {
+ this.Adapter.DeleteCommand.Connection = value;
+ }
+ if ((this.Adapter.UpdateCommand != null)) {
+ this.Adapter.UpdateCommand.Connection = value;
+ }
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+ if ((this.CommandCollection[i] != null)) {
+ ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
+ }
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal global::System.Data.SqlClient.SqlTransaction Transaction {
+ get {
+ return this._transaction;
+ }
+ set {
+ this._transaction = value;
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+ this.CommandCollection[i].Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.DeleteCommand != null))) {
+ this.Adapter.DeleteCommand.Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.InsertCommand != null))) {
+ this.Adapter.InsertCommand.Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.UpdateCommand != null))) {
+ this.Adapter.UpdateCommand.Transaction = this._transaction;
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
+ get {
+ if ((this._commandCollection == null)) {
+ this.InitCommandCollection();
+ }
+ return this._commandCollection;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool ClearBeforeFill {
+ get {
+ return this._clearBeforeFill;
+ }
+ set {
+ this._clearBeforeFill = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitAdapter() {
+ this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
+ global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
+ tableMapping.SourceTable = "Table";
+ tableMapping.DataSetTable = "JobReport";
+ tableMapping.ColumnMappings.Add("idx", "idx");
+ tableMapping.ColumnMappings.Add("pdate", "pdate");
+ tableMapping.ColumnMappings.Add("group", "group");
+ tableMapping.ColumnMappings.Add("uid", "uid");
+ tableMapping.ColumnMappings.Add("progress", "progress");
+ tableMapping.ColumnMappings.Add("memo", "memo");
+ tableMapping.ColumnMappings.Add("type", "type");
+ tableMapping.ColumnMappings.Add("hrs", "hrs");
+ tableMapping.ColumnMappings.Add("wuid", "wuid");
+ tableMapping.ColumnMappings.Add("wdate", "wdate");
+ tableMapping.ColumnMappings.Add("username", "username");
+ tableMapping.ColumnMappings.Add("projectidx", "projectidx");
+ tableMapping.ColumnMappings.Add("project", "project");
+ this._adapter.TableMappings.Add(tableMapping);
+ this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.DeleteCommand.Connection = this.Connection;
+ this._adapter.DeleteCommand.CommandText = @"DELETE FROM [JobReport] WHERE (([idx] = @Original_idx) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_group = 1 AND [group] IS NULL) OR ([group] = @Original_group)) AND ((@IsNull_uid = 1 AND [uid] IS NULL) OR ([uid] = @Original_uid)) AND ((@IsNull_progress = 1 AND [progress] IS NULL) OR ([progress] = @Original_progress)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ((@IsNull_type = 1 AND [type] IS NULL) OR ([type] = @Original_type)) AND ((@IsNull_hrs = 1 AND [hrs] IS NULL) OR ([hrs] = @Original_hrs)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_projectidx = 1 AND [projectidx] IS NULL) OR ([projectidx] = @Original_projectidx)) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)))";
+ 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("@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("@Original_pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_group", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "group", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_group", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "group", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_uid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_uid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_progress", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "progress", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_progress", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "progress", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_memo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_memo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_type", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "type", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_type", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "type", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_hrs", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "hrs", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_hrs", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "hrs", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wdate", global::System.Data.SqlDbType.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("@IsNull_projectidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "projectidx", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_projectidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "projectidx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_project", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.InsertCommand.Connection = this.Connection;
+ this._adapter.InsertCommand.CommandText = @"INSERT INTO [JobReport] ([pdate], [group], [uid], [progress], [memo], [type], [hrs], [wuid], [wdate], [projectidx], [project]) VALUES (@pdate, @group, @uid, @progress, @memo, @type, @hrs, @wuid, @wdate, @projectidx, @project);
+SELECT idx, pdate, [group], uid, dbo.getUserName(uid) AS username, progress, memo, type, hrs, wuid, wdate, projectidx, project FROM JobReport WHERE (idx = SCOPE_IDENTITY()) ORDER BY pdate DESC";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ 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("@group", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "group", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@uid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@progress", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "progress", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@memo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@type", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "type", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@hrs", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "hrs", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.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("@projectidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "projectidx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@project", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.UpdateCommand.Connection = this.Connection;
+ this._adapter.UpdateCommand.CommandText = @"UPDATE [JobReport] SET [pdate] = @pdate, [group] = @group, [uid] = @uid, [progress] = @progress, [memo] = @memo, [type] = @type, [hrs] = @hrs, [wuid] = @wuid, [wdate] = @wdate, [projectidx] = @projectidx, [project] = @project WHERE (([idx] = @Original_idx) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_group = 1 AND [group] IS NULL) OR ([group] = @Original_group)) AND ((@IsNull_uid = 1 AND [uid] IS NULL) OR ([uid] = @Original_uid)) AND ((@IsNull_progress = 1 AND [progress] IS NULL) OR ([progress] = @Original_progress)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ((@IsNull_type = 1 AND [type] IS NULL) OR ([type] = @Original_type)) AND ((@IsNull_hrs = 1 AND [hrs] IS NULL) OR ([hrs] = @Original_hrs)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_projectidx = 1 AND [projectidx] IS NULL) OR ([projectidx] = @Original_projectidx)) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)));
+SELECT idx, pdate, [group], uid, dbo.getUserName(uid) AS username, progress, memo, type, hrs, wuid, wdate, projectidx, project FROM JobReport WHERE (idx = @idx) ORDER BY pdate DESC";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ 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("@group", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "group", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@uid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@progress", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "progress", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@memo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@type", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "type", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@hrs", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "hrs", 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("@projectidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "projectidx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@project", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", 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("@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("@Original_pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_group", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "group", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_group", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "group", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_uid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_uid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_progress", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "progress", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_progress", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "progress", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_memo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_memo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_type", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "type", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_type", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "type", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_hrs", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "hrs", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_hrs", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "hrs", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wdate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_projectidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "projectidx", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_projectidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "projectidx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_project", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitConnection() {
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
+ this._connection.ConnectionString = global::FPJ0000.Properties.Settings.Default.gwcs;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitCommandCollection() {
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT idx, pdate, [group], uid, dbo.getUserName(uid) AS username, progress, mem" +
+ "o, type, hrs, wuid, wdate, projectidx, project\r\nFROM JobReport\r\nWHERE (pdat" +
+ "e BETWEEN @sd AND @ed) AND (uid LIKE @uid)\r\nORDER BY pdate DESC";
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+ this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sd", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ed", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@uid", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[1].Connection = this.Connection;
+ this._commandCollection[1].CommandText = @"SELECT [group], hrs, idx, memo, pdate, progress, project, projectidx, type, uid, dbo.getUserName(uid) AS username, wdate, wuid
+FROM JobReport
+WHERE (pdate BETWEEN @sd AND @ed) AND (ISNULL(dbo.getProjectName(project), '') LIKE @prjname)
+ORDER BY pdate DESC";
+ this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sd", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ed", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@prjname", global::System.Data.SqlDbType.VarChar, 1024, global::System.Data.ParameterDirection.Input, 0, 0, "", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
+ public virtual int Fill(dsPRJ.JobReportDataTable dataTable, string sd, string ed, string uid) {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ if ((sd == null)) {
+ this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[0].Value = ((string)(sd));
+ }
+ if ((ed == null)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((string)(ed));
+ }
+ if ((uid == null)) {
+ this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[2].Value = ((string)(uid));
+ }
+ if ((this.ClearBeforeFill == true)) {
+ dataTable.Clear();
+ }
+ int returnValue = this.Adapter.Fill(dataTable);
+ return returnValue;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+ public virtual dsPRJ.JobReportDataTable GetData(string sd, string ed, string uid) {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ if ((sd == null)) {
+ this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[0].Value = ((string)(sd));
+ }
+ if ((ed == null)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((string)(ed));
+ }
+ if ((uid == null)) {
+ this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[2].Value = ((string)(uid));
+ }
+ dsPRJ.JobReportDataTable dataTable = new dsPRJ.JobReportDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)]
+ public virtual int FillPrjName(dsPRJ.JobReportDataTable dataTable, string sd, string ed, string prjname) {
+ this.Adapter.SelectCommand = this.CommandCollection[1];
+ if ((sd == null)) {
+ this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[0].Value = ((string)(sd));
+ }
+ if ((ed == null)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((string)(ed));
+ }
+ if ((prjname == null)) {
+ throw new global::System.ArgumentNullException("prjname");
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[2].Value = ((string)(prjname));
+ }
+ if ((this.ClearBeforeFill == true)) {
+ dataTable.Clear();
+ }
+ int returnValue = this.Adapter.Fill(dataTable);
+ return returnValue;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
+ public virtual dsPRJ.JobReportDataTable GetPrjName(string sd, string ed, string prjname) {
+ this.Adapter.SelectCommand = this.CommandCollection[1];
+ if ((sd == null)) {
+ this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[0].Value = ((string)(sd));
+ }
+ if ((ed == null)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((string)(ed));
+ }
+ if ((prjname == null)) {
+ throw new global::System.ArgumentNullException("prjname");
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[2].Value = ((string)(prjname));
+ }
+ dsPRJ.JobReportDataTable dataTable = new dsPRJ.JobReportDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(dsPRJ.JobReportDataTable dataTable) {
+ return this.Adapter.Update(dataTable);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(dsPRJ dataSet) {
+ return this.Adapter.Update(dataSet, "JobReport");
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow dataRow) {
+ return this.Adapter.Update(new global::System.Data.DataRow[] {
+ dataRow});
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow[] dataRows) {
+ return this.Adapter.Update(dataRows);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
+ public virtual int Delete(int Original_idx, string Original_pdate, string Original_group, string Original_uid, string Original_progress, string Original_memo, string Original_type, global::System.Nullable Original_hrs, string Original_wuid, System.DateTime Original_wdate, global::System.Nullable Original_projectidx, string Original_project) {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx));
+ if ((Original_pdate == null)) {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_pdate));
+ }
+ if ((Original_group == null)) {
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_group));
+ }
+ if ((Original_uid == null)) {
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_uid));
+ }
+ if ((Original_progress == null)) {
+ this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_progress));
+ }
+ if ((Original_memo == null)) {
+ this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_memo));
+ }
+ if ((Original_type == null)) {
+ this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_type));
+ }
+ if ((Original_hrs.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[14].Value = ((double)(Original_hrs.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
+ }
+ if ((Original_wuid == null)) {
+ throw new global::System.ArgumentNullException("Original_wuid");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[15].Value = ((string)(Original_wuid));
+ }
+ this.Adapter.DeleteCommand.Parameters[16].Value = ((System.DateTime)(Original_wdate));
+ if ((Original_projectidx.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[18].Value = ((int)(Original_projectidx.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[18].Value = global::System.DBNull.Value;
+ }
+ if ((Original_project == null)) {
+ this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[20].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[20].Value = ((string)(Original_project));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
+ if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.DeleteCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.DeleteCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
+ public virtual int Insert(string pdate, string group, string uid, string progress, string memo, string type, global::System.Nullable hrs, string wuid, System.DateTime wdate, global::System.Nullable projectidx, string project) {
+ if ((pdate == null)) {
+ this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(pdate));
+ }
+ if ((group == null)) {
+ this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(group));
+ }
+ if ((uid == null)) {
+ this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[2].Value = ((string)(uid));
+ }
+ if ((progress == null)) {
+ this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[3].Value = ((string)(progress));
+ }
+ if ((memo == null)) {
+ this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[4].Value = ((string)(memo));
+ }
+ if ((type == null)) {
+ this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[5].Value = ((string)(type));
+ }
+ if ((hrs.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[6].Value = ((double)(hrs.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ if ((wuid == null)) {
+ throw new global::System.ArgumentNullException("wuid");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[7].Value = ((string)(wuid));
+ }
+ this.Adapter.InsertCommand.Parameters[8].Value = ((System.DateTime)(wdate));
+ if ((projectidx.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[9].Value = ((int)(projectidx.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value;
+ }
+ if ((project == null)) {
+ this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[10].Value = ((string)(project));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
+ if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.InsertCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.InsertCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(
+ string pdate,
+ string group,
+ string uid,
+ string progress,
+ string memo,
+ string type,
+ global::System.Nullable hrs,
+ string wuid,
+ System.DateTime wdate,
+ global::System.Nullable projectidx,
+ string project,
+ int Original_idx,
+ string Original_pdate,
+ string Original_group,
+ string Original_uid,
+ string Original_progress,
+ string Original_memo,
+ string Original_type,
+ global::System.Nullable Original_hrs,
+ string Original_wuid,
+ System.DateTime Original_wdate,
+ global::System.Nullable Original_projectidx,
+ string Original_project,
+ int idx) {
+ if ((pdate == null)) {
+ this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(pdate));
+ }
+ if ((group == null)) {
+ this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(group));
+ }
+ if ((uid == null)) {
+ this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(uid));
+ }
+ if ((progress == null)) {
+ this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(progress));
+ }
+ if ((memo == null)) {
+ this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(memo));
+ }
+ if ((type == null)) {
+ this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(type));
+ }
+ if ((hrs.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((double)(hrs.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ if ((wuid == null)) {
+ throw new global::System.ArgumentNullException("wuid");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(wuid));
+ }
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(wdate));
+ if ((projectidx.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(projectidx.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
+ }
+ if ((project == null)) {
+ this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(project));
+ }
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_idx));
+ if ((Original_pdate == null)) {
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_pdate));
+ }
+ if ((Original_group == 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_group));
+ }
+ if ((Original_uid == null)) {
+ this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_uid));
+ }
+ if ((Original_progress == null)) {
+ this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_progress));
+ }
+ if ((Original_memo == null)) {
+ this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_memo));
+ }
+ if ((Original_type == null)) {
+ this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_type));
+ }
+ if ((Original_hrs.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[25].Value = ((double)(Original_hrs.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value;
+ }
+ if ((Original_wuid == null)) {
+ throw new global::System.ArgumentNullException("Original_wuid");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[26].Value = ((string)(Original_wuid));
+ }
+ this.Adapter.UpdateCommand.Parameters[27].Value = ((System.DateTime)(Original_wdate));
+ if ((Original_projectidx.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[29].Value = ((int)(Original_projectidx.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[29].Value = global::System.DBNull.Value;
+ }
+ if ((Original_project == null)) {
+ this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[31].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[31].Value = ((string)(Original_project));
+ }
+ this.Adapter.UpdateCommand.Parameters[32].Value = ((int)(idx));
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
+ if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.UpdateCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.UpdateCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(
+ string pdate,
+ string group,
+ string uid,
+ string progress,
+ string memo,
+ string type,
+ global::System.Nullable hrs,
+ string wuid,
+ System.DateTime wdate,
+ global::System.Nullable projectidx,
+ string project,
+ int Original_idx,
+ string Original_pdate,
+ string Original_group,
+ string Original_uid,
+ string Original_progress,
+ string Original_memo,
+ string Original_type,
+ global::System.Nullable Original_hrs,
+ string Original_wuid,
+ System.DateTime Original_wdate,
+ global::System.Nullable Original_projectidx,
+ string Original_project) {
+ return this.Update(pdate, group, uid, progress, memo, type, hrs, wuid, wdate, projectidx, project, Original_idx, Original_pdate, Original_group, Original_uid, Original_progress, Original_memo, Original_type, Original_hrs, Original_wuid, Original_wdate, Original_projectidx, Original_project, Original_idx);
+ }
+ }
+
+ ///
+ ///Represents the connection and commands used to retrieve and save data.
+ ///
+ [global::System.ComponentModel.DesignerCategoryAttribute("code")]
+ [global::System.ComponentModel.ToolboxItem(true)]
+ [global::System.ComponentModel.DataObjectAttribute(true)]
+ [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
+ ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public partial class ProjectsScheduleTableAdapter : global::System.ComponentModel.Component {
+
+ private global::System.Data.SqlClient.SqlDataAdapter _adapter;
+
+ private global::System.Data.SqlClient.SqlConnection _connection;
+
+ private global::System.Data.SqlClient.SqlTransaction _transaction;
+
+ private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
+
+ private bool _clearBeforeFill;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public ProjectsScheduleTableAdapter() {
+ this.ClearBeforeFill = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
+ get {
+ if ((this._adapter == null)) {
+ this.InitAdapter();
+ }
+ return this._adapter;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal global::System.Data.SqlClient.SqlConnection Connection {
+ get {
+ if ((this._connection == null)) {
+ this.InitConnection();
+ }
+ return this._connection;
+ }
+ set {
+ this._connection = value;
+ if ((this.Adapter.InsertCommand != null)) {
+ this.Adapter.InsertCommand.Connection = value;
+ }
+ if ((this.Adapter.DeleteCommand != null)) {
+ this.Adapter.DeleteCommand.Connection = value;
+ }
+ if ((this.Adapter.UpdateCommand != null)) {
+ this.Adapter.UpdateCommand.Connection = value;
+ }
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+ if ((this.CommandCollection[i] != null)) {
+ ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
+ }
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal global::System.Data.SqlClient.SqlTransaction Transaction {
+ get {
+ return this._transaction;
+ }
+ set {
+ this._transaction = value;
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+ this.CommandCollection[i].Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.DeleteCommand != null))) {
+ this.Adapter.DeleteCommand.Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.InsertCommand != null))) {
+ this.Adapter.InsertCommand.Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.UpdateCommand != null))) {
+ this.Adapter.UpdateCommand.Transaction = this._transaction;
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
+ get {
+ if ((this._commandCollection == null)) {
+ this.InitCommandCollection();
+ }
+ return this._commandCollection;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool ClearBeforeFill {
+ get {
+ return this._clearBeforeFill;
+ }
+ set {
+ this._clearBeforeFill = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitAdapter() {
+ this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
+ global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
+ tableMapping.SourceTable = "Table";
+ tableMapping.DataSetTable = "ProjectsSchedule";
+ tableMapping.ColumnMappings.Add("idx", "idx");
+ tableMapping.ColumnMappings.Add("project", "project");
+ tableMapping.ColumnMappings.Add("title", "title");
+ tableMapping.ColumnMappings.Add("sw", "sw");
+ tableMapping.ColumnMappings.Add("ew", "ew");
+ tableMapping.ColumnMappings.Add("memo", "memo");
+ tableMapping.ColumnMappings.Add("wuid", "wuid");
+ tableMapping.ColumnMappings.Add("wdate", "wdate");
+ tableMapping.ColumnMappings.Add("swa", "swa");
+ tableMapping.ColumnMappings.Add("ewa", "ewa");
+ this._adapter.TableMappings.Add(tableMapping);
+ this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.DeleteCommand.Connection = this.Connection;
+ this._adapter.DeleteCommand.CommandText = @"DELETE FROM [ProjectsSchedule] WHERE (([idx] = @Original_idx) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_sw = 1 AND [sw] IS NULL) OR ([sw] = @Original_sw)) AND ((@IsNull_ew = 1 AND [ew] IS NULL) OR ([ew] = @Original_ew)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_swa = 1 AND [swa] IS NULL) OR ([swa] = @Original_swa)) AND ((@IsNull_ewa = 1 AND [ewa] IS NULL) OR ([ewa] = @Original_ewa)))";
+ 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("@IsNull_project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_title", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "title", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_title", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_sw", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sw", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_sw", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sw", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ew", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ew", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ew", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ew", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wdate", global::System.Data.SqlDbType.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("@IsNull_swa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "swa", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_swa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "swa", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ewa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ewa", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ewa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ewa", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.InsertCommand.Connection = this.Connection;
+ this._adapter.InsertCommand.CommandText = @"INSERT INTO [ProjectsSchedule] ([project], [title], [sw], [ew], [memo], [wuid], [wdate], [swa], [ewa]) VALUES (@project, @title, @sw, @ew, @memo, @wuid, @wdate, @swa, @ewa);
+SELECT idx, project, title, sw, ew, memo, wuid, wdate, swa, ewa FROM ProjectsSchedule WHERE (idx = SCOPE_IDENTITY()) ORDER BY sw";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@title", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sw", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sw", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ew", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ew", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@memo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.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("@swa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "swa", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ewa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ewa", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.UpdateCommand.Connection = this.Connection;
+ this._adapter.UpdateCommand.CommandText = @"UPDATE [ProjectsSchedule] SET [project] = @project, [title] = @title, [sw] = @sw, [ew] = @ew, [memo] = @memo, [wuid] = @wuid, [wdate] = @wdate, [swa] = @swa, [ewa] = @ewa WHERE (([idx] = @Original_idx) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_sw = 1 AND [sw] IS NULL) OR ([sw] = @Original_sw)) AND ((@IsNull_ew = 1 AND [ew] IS NULL) OR ([ew] = @Original_ew)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_swa = 1 AND [swa] IS NULL) OR ([swa] = @Original_swa)) AND ((@IsNull_ewa = 1 AND [ewa] IS NULL) OR ([ewa] = @Original_ewa)));
+SELECT idx, project, title, sw, ew, memo, wuid, wdate, swa, ewa FROM ProjectsSchedule WHERE (idx = @idx) ORDER BY sw";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@title", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sw", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sw", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ew", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ew", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@memo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", 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("@swa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "swa", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ewa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ewa", 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("@IsNull_project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_title", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "title", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_title", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_sw", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sw", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_sw", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sw", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ew", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ew", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ew", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ew", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wdate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_swa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "swa", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_swa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "swa", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ewa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ewa", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ewa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ewa", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitConnection() {
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
+ this._connection.ConnectionString = global::FPJ0000.Properties.Settings.Default.gwcs;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitCommandCollection() {
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT idx, project, title, sw, ew, memo, wuid, wdate, swa, ewa\r\nFROM Projec" +
+ "tsSchedule\r\nWHERE (project = @project)\r\nORDER BY sw";
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+ this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@project", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
+ public virtual int Fill(dsPRJ.ProjectsScheduleDataTable dataTable, global::System.Nullable project) {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ if ((project.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[0].Value = ((int)(project.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
+ }
+ if ((this.ClearBeforeFill == true)) {
+ dataTable.Clear();
+ }
+ int returnValue = this.Adapter.Fill(dataTable);
+ return returnValue;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+ public virtual dsPRJ.ProjectsScheduleDataTable GetData(global::System.Nullable project) {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ if ((project.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[0].Value = ((int)(project.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
+ }
+ dsPRJ.ProjectsScheduleDataTable dataTable = new dsPRJ.ProjectsScheduleDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(dsPRJ.ProjectsScheduleDataTable dataTable) {
+ return this.Adapter.Update(dataTable);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(dsPRJ dataSet) {
+ return this.Adapter.Update(dataSet, "ProjectsSchedule");
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow dataRow) {
+ return this.Adapter.Update(new global::System.Data.DataRow[] {
+ dataRow});
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow[] dataRows) {
+ return this.Adapter.Update(dataRows);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
+ public virtual int Delete(int Original_idx, global::System.Nullable Original_project, string Original_title, global::System.Nullable Original_sw, global::System.Nullable Original_ew, string Original_wuid, System.DateTime Original_wdate, global::System.Nullable Original_swa, global::System.Nullable Original_ewa) {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx));
+ if ((Original_project.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_project.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ if ((Original_title == null)) {
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_title));
+ }
+ if ((Original_sw.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_sw.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ if ((Original_ew.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_ew.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
+ }
+ if ((Original_wuid == null)) {
+ throw new global::System.ArgumentNullException("Original_wuid");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[9].Value = ((string)(Original_wuid));
+ }
+ this.Adapter.DeleteCommand.Parameters[10].Value = ((System.DateTime)(Original_wdate));
+ if ((Original_swa.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[12].Value = ((int)(Original_swa.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
+ }
+ if ((Original_ewa.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[14].Value = ((int)(Original_ewa.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
+ if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.DeleteCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.DeleteCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
+ public virtual int Insert(global::System.Nullable project, string title, global::System.Nullable sw, global::System.Nullable ew, string memo, string wuid, System.DateTime wdate, global::System.Nullable swa, global::System.Nullable ewa) {
+ if ((project.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((int)(project.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
+ }
+ if ((title == null)) {
+ this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(title));
+ }
+ if ((sw.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[2].Value = ((int)(sw.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ if ((ew.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[3].Value = ((int)(ew.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ if ((memo == null)) {
+ this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[4].Value = ((string)(memo));
+ }
+ if ((wuid == null)) {
+ throw new global::System.ArgumentNullException("wuid");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[5].Value = ((string)(wuid));
+ }
+ this.Adapter.InsertCommand.Parameters[6].Value = ((System.DateTime)(wdate));
+ if ((swa.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[7].Value = ((int)(swa.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
+ }
+ if ((ewa.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[8].Value = ((int)(ewa.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
+ if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.InsertCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.InsertCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(
+ global::System.Nullable project,
+ string title,
+ global::System.Nullable sw,
+ global::System.Nullable ew,
+ string memo,
+ string wuid,
+ System.DateTime wdate,
+ global::System.Nullable swa,
+ global::System.Nullable ewa,
+ int Original_idx,
+ global::System.Nullable Original_project,
+ string Original_title,
+ global::System.Nullable Original_sw,
+ global::System.Nullable Original_ew,
+ string Original_wuid,
+ System.DateTime Original_wdate,
+ global::System.Nullable Original_swa,
+ global::System.Nullable Original_ewa,
+ int idx) {
+ if ((project.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(project.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
+ }
+ if ((title == null)) {
+ this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(title));
+ }
+ if ((sw.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(sw.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ if ((ew.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(ew.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ if ((memo == null)) {
+ this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(memo));
+ }
+ if ((wuid == null)) {
+ throw new global::System.ArgumentNullException("wuid");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(wuid));
+ }
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((System.DateTime)(wdate));
+ if ((swa.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(swa.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
+ }
+ if ((ewa.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(ewa.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
+ }
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_idx));
+ if ((Original_project.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_project.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
+ }
+ if ((Original_title == null)) {
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_title));
+ }
+ if ((Original_sw.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_sw.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
+ }
+ if ((Original_ew.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[17].Value = ((int)(Original_ew.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
+ }
+ if ((Original_wuid == null)) {
+ throw new global::System.ArgumentNullException("Original_wuid");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_wuid));
+ }
+ this.Adapter.UpdateCommand.Parameters[19].Value = ((System.DateTime)(Original_wdate));
+ if ((Original_swa.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[21].Value = ((int)(Original_swa.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
+ }
+ if ((Original_ewa.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[23].Value = ((int)(Original_ewa.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
+ }
+ this.Adapter.UpdateCommand.Parameters[24].Value = ((int)(idx));
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
+ if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.UpdateCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.UpdateCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(
+ global::System.Nullable project,
+ string title,
+ global::System.Nullable sw,
+ global::System.Nullable ew,
+ string memo,
+ string wuid,
+ System.DateTime wdate,
+ global::System.Nullable swa,
+ global::System.Nullable ewa,
+ int Original_idx,
+ global::System.Nullable Original_project,
+ string Original_title,
+ global::System.Nullable Original_sw,
+ global::System.Nullable Original_ew,
+ string Original_wuid,
+ System.DateTime Original_wdate,
+ global::System.Nullable Original_swa,
+ global::System.Nullable Original_ewa) {
+ return this.Update(project, title, sw, ew, memo, wuid, wdate, swa, ewa, Original_idx, Original_project, Original_title, Original_sw, Original_ew, Original_wuid, Original_wdate, Original_swa, Original_ewa, Original_idx);
}
}
@@ -3354,6 +6610,10 @@ SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, I
private ProjectsPartTableAdapter _projectsPartTableAdapter;
+ private JobReportTableAdapter _jobReportTableAdapter;
+
+ private ProjectsScheduleTableAdapter _projectsScheduleTableAdapter;
+
private bool _backupDataSetBeforeUpdate;
private global::System.Data.IDbConnection _connection;
@@ -3397,6 +6657,34 @@ SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, I
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
+ "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
+ "a", "System.Drawing.Design.UITypeEditor")]
+ public JobReportTableAdapter JobReportTableAdapter {
+ get {
+ return this._jobReportTableAdapter;
+ }
+ set {
+ this._jobReportTableAdapter = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
+ "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
+ "a", "System.Drawing.Design.UITypeEditor")]
+ public ProjectsScheduleTableAdapter ProjectsScheduleTableAdapter {
+ get {
+ return this._projectsScheduleTableAdapter;
+ }
+ set {
+ this._projectsScheduleTableAdapter = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool BackupDataSetBeforeUpdate {
@@ -3424,6 +6712,14 @@ SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, I
&& (this._projectsPartTableAdapter.Connection != null))) {
return this._projectsPartTableAdapter.Connection;
}
+ if (((this._jobReportTableAdapter != null)
+ && (this._jobReportTableAdapter.Connection != null))) {
+ return this._jobReportTableAdapter.Connection;
+ }
+ if (((this._projectsScheduleTableAdapter != null)
+ && (this._projectsScheduleTableAdapter.Connection != null))) {
+ return this._projectsScheduleTableAdapter.Connection;
+ }
return null;
}
set {
@@ -3443,6 +6739,12 @@ SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, I
if ((this._projectsPartTableAdapter != null)) {
count = (count + 1);
}
+ if ((this._jobReportTableAdapter != null)) {
+ count = (count + 1);
+ }
+ if ((this._projectsScheduleTableAdapter != null)) {
+ count = (count + 1);
+ }
return count;
}
}
@@ -3472,6 +6774,24 @@ SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, I
allChangedRows.AddRange(updatedRows);
}
}
+ if ((this._jobReportTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.JobReport.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._jobReportTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
+ if ((this._projectsScheduleTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.ProjectsSchedule.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._projectsScheduleTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
return result;
}
@@ -3498,6 +6818,22 @@ SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, I
allAddedRows.AddRange(addedRows);
}
}
+ if ((this._jobReportTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.JobReport.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._jobReportTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
+ if ((this._projectsScheduleTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.ProjectsSchedule.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._projectsScheduleTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
return result;
}
@@ -3508,6 +6844,22 @@ SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, I
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private int UpdateDeletedRows(dsPRJ dataSet, global::System.Collections.Generic.List allChangedRows) {
int result = 0;
+ if ((this._projectsScheduleTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.ProjectsSchedule.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._projectsScheduleTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
+ if ((this._jobReportTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.JobReport.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._jobReportTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
if ((this._projectsPartTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.ProjectsPart.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
@@ -3571,6 +6923,14 @@ SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, I
&& (this.MatchTableAdapterConnection(this._projectsPartTableAdapter.Connection) == false))) {
throw new global::System.ArgumentException("TableAdapterManager에서 관리하는 모든 TableAdapter에는 동일한 연결 문자열을 사용해야 합니다.");
}
+ if (((this._jobReportTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._jobReportTableAdapter.Connection) == false))) {
+ throw new global::System.ArgumentException("TableAdapterManager에서 관리하는 모든 TableAdapter에는 동일한 연결 문자열을 사용해야 합니다.");
+ }
+ if (((this._projectsScheduleTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._projectsScheduleTableAdapter.Connection) == false))) {
+ throw new global::System.ArgumentException("TableAdapterManager에서 관리하는 모든 TableAdapter에는 동일한 연결 문자열을 사용해야 합니다.");
+ }
global::System.Data.IDbConnection workConnection = this.Connection;
if ((workConnection == null)) {
throw new global::System.ApplicationException("TableAdapterManager에 연결 정보가 없습니다. 각 TableAdapterManager TableAdapter 속성을 올바른 Tabl" +
@@ -3620,6 +6980,24 @@ SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, I
adaptersWithAcceptChangesDuringUpdate.Add(this._projectsPartTableAdapter.Adapter);
}
}
+ if ((this._jobReportTableAdapter != null)) {
+ revertConnections.Add(this._jobReportTableAdapter, this._jobReportTableAdapter.Connection);
+ this._jobReportTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
+ this._jobReportTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
+ if (this._jobReportTableAdapter.Adapter.AcceptChangesDuringUpdate) {
+ this._jobReportTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
+ adaptersWithAcceptChangesDuringUpdate.Add(this._jobReportTableAdapter.Adapter);
+ }
+ }
+ if ((this._projectsScheduleTableAdapter != null)) {
+ revertConnections.Add(this._projectsScheduleTableAdapter, this._projectsScheduleTableAdapter.Connection);
+ this._projectsScheduleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
+ this._projectsScheduleTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
+ if (this._projectsScheduleTableAdapter.Adapter.AcceptChangesDuringUpdate) {
+ this._projectsScheduleTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
+ adaptersWithAcceptChangesDuringUpdate.Add(this._projectsScheduleTableAdapter.Adapter);
+ }
+ }
//
//---- Perform updates -----------
//
@@ -3686,6 +7064,14 @@ SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, I
this._projectsPartTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._projectsPartTableAdapter]));
this._projectsPartTableAdapter.Transaction = null;
}
+ if ((this._jobReportTableAdapter != null)) {
+ this._jobReportTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._jobReportTableAdapter]));
+ this._jobReportTableAdapter.Transaction = null;
+ }
+ if ((this._projectsScheduleTableAdapter != null)) {
+ this._projectsScheduleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._projectsScheduleTableAdapter]));
+ this._projectsScheduleTableAdapter.Transaction = null;
+ }
if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
diff --git a/SubProject/FPJ0000/dsPRJ.xsc b/SubProject/FPJ0000/dsPRJ.xsc
index 05b0199..0434c0d 100644
--- a/SubProject/FPJ0000/dsPRJ.xsc
+++ b/SubProject/FPJ0000/dsPRJ.xsc
@@ -5,5 +5,15 @@
the code is regenerated.
-->
-
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/SubProject/FPJ0000/dsPRJ.xsd b/SubProject/FPJ0000/dsPRJ.xsd
index 654cf52..6aa7e9b 100644
--- a/SubProject/FPJ0000/dsPRJ.xsd
+++ b/SubProject/FPJ0000/dsPRJ.xsd
@@ -12,15 +12,19 @@
- 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))
+ DELETE FROM [Projects] WHERE (([idx] = @Original_idx) AND ((@IsNull_status = 1 AND [status] IS NULL) OR ([status] = @Original_status)) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_usermain = 1 AND [usermain] IS NULL) OR ([usermain] = @Original_usermain)) AND ((@IsNull_usersub = 1 AND [usersub] IS NULL) OR ([usersub] = @Original_usersub)) 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))
-
-
+
+
+
+
+
+
@@ -40,12 +44,14 @@
- 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, status, name, pdate, request, reqstaff, sdate, edate, odate, memo, wuid, wdate FROM Projects WHERE (idx = SCOPE_IDENTITY())
+ INSERT INTO [Projects] ([status], [pdate], [name], [usermain], [usersub], [request], [reqstaff], [sdate], [edate], [odate], [memo], [wuid], [wdate]) VALUES (@status, @pdate, @name, @usermain, @usersub, @request, @reqstaff, @sdate, @edate, @odate, @memo, @wuid, @wdate);
+SELECT idx, status, dbo.getCodeName('01', status) AS statusName, pdate, name, usermain, usersub, request, reqstaff, sdate, edate, odate, memo, wuid, wdate FROM Projects WHERE (idx = SCOPE_IDENTITY()) ORDER BY status
-
+
+
+
@@ -59,19 +65,25 @@ SELECT idx, status, name, pdate, request, reqstaff, sdate, edate, odate, memo, w
- SELECT idx, status, name, pdate, request, reqstaff, sdate, edate, odate, memo, wuid, wdate
-FROM Projects
-
+ SELECT idx, status, dbo.getCodeName('01', status) AS statusName, pdate, name, usermain, usersub, request, reqstaff, sdate, edate, odate, memo, wuid, wdate
+FROM Projects
+WHERE (status LIKE @state)
+ORDER BY status
+
+
+
- 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, status, name, pdate, request, reqstaff, sdate, edate, odate, memo, wuid, wdate FROM Projects WHERE (idx = @idx)
+ UPDATE [Projects] SET [status] = @status, [pdate] = @pdate, [name] = @name, [usermain] = @usermain, [usersub] = @usersub, [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_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_usermain = 1 AND [usermain] IS NULL) OR ([usermain] = @Original_usermain)) AND ((@IsNull_usersub = 1 AND [usersub] IS NULL) OR ([usersub] = @Original_usersub)) 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, status, dbo.getCodeName('01', status) AS statusName, pdate, name, usermain, usersub, request, reqstaff, sdate, edate, odate, memo, wuid, wdate FROM Projects WHERE (idx = @idx) ORDER BY status
-
+
+
+
@@ -83,10 +95,14 @@ SELECT idx, status, name, pdate, request, reqstaff, sdate, edate, odate, memo, w
-
-
+
+
+
+
+
+
@@ -120,12 +136,15 @@ SELECT idx, status, name, pdate, request, reqstaff, sdate, edate, odate, memo, w
+
+
+
- SELECT idx, status, name, pdate, request, reqstaff, sdate, edate, odate, memo, wuid, wdate
+ SELECT idx, status, dbo.getCodeName('01', status) AS statusName, pdate, name, usermain, usersub, request, reqstaff, sdate, edate, odate, memo, wuid, wdate
FROM Projects
WHERE (idx = @idx)
@@ -141,7 +160,7 @@ WHERE (idx = @idx)
- DELETE FROM [ProjectsPart] WHERE (([idx] = @Original_idx) AND ((@IsNull_Project = 1 AND [Project] IS NULL) OR ([Project] = @Original_Project)) AND ((@IsNull_Item = 1 AND [Item] IS NULL) OR ([Item] = @Original_Item)) AND ((@IsNull_qty = 1 AND [qty] IS NULL) OR ([qty] = @Original_qty)) AND ((@IsNull_price = 1 AND [price] IS NULL) OR ([price] = @Original_price)) AND ((@IsNull_amt = 1 AND [amt] IS NULL) OR ([amt] = @Original_amt)) AND ((@IsNull_jago = 1 AND [jago] IS NULL) OR ([jago] = @Original_jago)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_ItemName = 1 AND [ItemName] IS NULL) OR ([ItemName] = @Original_ItemName)) AND ((@IsNull_ItemModel = 1 AND [ItemModel] IS NULL) OR ([ItemModel] = @Original_ItemModel)))
+ DELETE FROM [ProjectsPart] WHERE (([idx] = @Original_idx) AND ((@IsNull_Project = 1 AND [Project] IS NULL) OR ([Project] = @Original_Project)) AND ((@IsNull_Item = 1 AND [Item] IS NULL) OR ([Item] = @Original_Item)) AND ((@IsNull_qty = 1 AND [qty] IS NULL) OR ([qty] = @Original_qty)) AND ((@IsNull_price = 1 AND [price] IS NULL) OR ([price] = @Original_price)) AND ((@IsNull_amt = 1 AND [amt] IS NULL) OR ([amt] = @Original_amt)) AND ((@IsNull_jago = 1 AND [jago] IS NULL) OR ([jago] = @Original_jago)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_ItemName = 1 AND [ItemName] IS NULL) OR ([ItemName] = @Original_ItemName)) AND ((@IsNull_ItemModel = 1 AND [ItemModel] IS NULL) OR ([ItemModel] = @Original_ItemModel)) AND ((@IsNull_supplyidx = 1 AND [supplyidx] IS NULL) OR ([supplyidx] = @Original_supplyidx)))
@@ -164,13 +183,15 @@ WHERE (idx = @idx)
+
+
- INSERT INTO [ProjectsPart] ([Project], [Item], [qty], [price], [amt], [jago], [memo], [wuid], [wdate], [ItemName], [ItemModel]) VALUES (@Project, @Item, @qty, @price, @amt, @jago, @memo, @wuid, @wdate, @ItemName, @ItemModel);
-SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, ItemModel FROM ProjectsPart WHERE (idx = SCOPE_IDENTITY())
+ INSERT INTO [ProjectsPart] ([Project], [Item], [qty], [price], [amt], [jago], [memo], [wuid], [wdate], [ItemName], [ItemModel], [supplyidx]) VALUES (@Project, @Item, @qty, @price, @amt, @jago, @memo, @wuid, @wdate, @ItemName, @ItemModel, @supplyidx);
+SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, ItemModel, supplyidx FROM ProjectsPart WHERE (idx = SCOPE_IDENTITY())
@@ -183,12 +204,13 @@ SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, I
+
- SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, ItemModel
+ SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, ItemModel, supplyidx, dbo.getCustName(supplyidx) AS supplyName, dbo.getItemSID(Item) AS itemSID
FROM ProjectsPart
WHERE (Project = @prj)
@@ -198,8 +220,8 @@ WHERE (Project = @prj)
- UPDATE [ProjectsPart] SET [Project] = @Project, [Item] = @Item, [qty] = @qty, [price] = @price, [amt] = @amt, [jago] = @jago, [memo] = @memo, [wuid] = @wuid, [wdate] = @wdate, [ItemName] = @ItemName, [ItemModel] = @ItemModel WHERE (([idx] = @Original_idx) AND ((@IsNull_Project = 1 AND [Project] IS NULL) OR ([Project] = @Original_Project)) AND ((@IsNull_Item = 1 AND [Item] IS NULL) OR ([Item] = @Original_Item)) AND ((@IsNull_qty = 1 AND [qty] IS NULL) OR ([qty] = @Original_qty)) AND ((@IsNull_price = 1 AND [price] IS NULL) OR ([price] = @Original_price)) AND ((@IsNull_amt = 1 AND [amt] IS NULL) OR ([amt] = @Original_amt)) AND ((@IsNull_jago = 1 AND [jago] IS NULL) OR ([jago] = @Original_jago)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_ItemName = 1 AND [ItemName] IS NULL) OR ([ItemName] = @Original_ItemName)) AND ((@IsNull_ItemModel = 1 AND [ItemModel] IS NULL) OR ([ItemModel] = @Original_ItemModel)));
-SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, ItemModel FROM ProjectsPart WHERE (idx = @idx)
+ UPDATE [ProjectsPart] SET [Project] = @Project, [Item] = @Item, [qty] = @qty, [price] = @price, [amt] = @amt, [jago] = @jago, [memo] = @memo, [wuid] = @wuid, [wdate] = @wdate, [ItemName] = @ItemName, [ItemModel] = @ItemModel, [supplyidx] = @supplyidx WHERE (([idx] = @Original_idx) AND ((@IsNull_Project = 1 AND [Project] IS NULL) OR ([Project] = @Original_Project)) AND ((@IsNull_Item = 1 AND [Item] IS NULL) OR ([Item] = @Original_Item)) AND ((@IsNull_qty = 1 AND [qty] IS NULL) OR ([qty] = @Original_qty)) AND ((@IsNull_price = 1 AND [price] IS NULL) OR ([price] = @Original_price)) AND ((@IsNull_amt = 1 AND [amt] IS NULL) OR ([amt] = @Original_amt)) AND ((@IsNull_jago = 1 AND [jago] IS NULL) OR ([jago] = @Original_jago)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_ItemName = 1 AND [ItemName] IS NULL) OR ([ItemName] = @Original_ItemName)) AND ((@IsNull_ItemModel = 1 AND [ItemModel] IS NULL) OR ([ItemModel] = @Original_ItemModel)) AND ((@IsNull_supplyidx = 1 AND [supplyidx] IS NULL) OR ([supplyidx] = @Original_supplyidx)));
+SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, ItemModel, supplyidx FROM ProjectsPart WHERE (idx = @idx)
@@ -212,6 +234,7 @@ SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, I
+
@@ -233,7 +256,9 @@ SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, I
-
+
+
+
@@ -252,6 +277,250 @@ SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, I
+
+
+
+
+
+
+
+
+
+
+
+ DELETE FROM [JobReport] WHERE (([idx] = @Original_idx) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_group = 1 AND [group] IS NULL) OR ([group] = @Original_group)) AND ((@IsNull_uid = 1 AND [uid] IS NULL) OR ([uid] = @Original_uid)) AND ((@IsNull_progress = 1 AND [progress] IS NULL) OR ([progress] = @Original_progress)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ((@IsNull_type = 1 AND [type] IS NULL) OR ([type] = @Original_type)) AND ((@IsNull_hrs = 1 AND [hrs] IS NULL) OR ([hrs] = @Original_hrs)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_projectidx = 1 AND [projectidx] IS NULL) OR ([projectidx] = @Original_projectidx)) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)))
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ INSERT INTO [JobReport] ([pdate], [group], [uid], [progress], [memo], [type], [hrs], [wuid], [wdate], [projectidx], [project]) VALUES (@pdate, @group, @uid, @progress, @memo, @type, @hrs, @wuid, @wdate, @projectidx, @project);
+SELECT idx, pdate, [group], uid, dbo.getUserName(uid) AS username, progress, memo, type, hrs, wuid, wdate, projectidx, project FROM JobReport WHERE (idx = SCOPE_IDENTITY()) ORDER BY pdate DESC
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ SELECT idx, pdate, [group], uid, dbo.getUserName(uid) AS username, progress, memo, type, hrs, wuid, wdate, projectidx, project
+FROM JobReport
+WHERE (pdate BETWEEN @sd AND @ed) AND (uid LIKE @uid)
+ORDER BY pdate DESC
+
+
+
+
+
+
+
+
+
+ UPDATE [JobReport] SET [pdate] = @pdate, [group] = @group, [uid] = @uid, [progress] = @progress, [memo] = @memo, [type] = @type, [hrs] = @hrs, [wuid] = @wuid, [wdate] = @wdate, [projectidx] = @projectidx, [project] = @project WHERE (([idx] = @Original_idx) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_group = 1 AND [group] IS NULL) OR ([group] = @Original_group)) AND ((@IsNull_uid = 1 AND [uid] IS NULL) OR ([uid] = @Original_uid)) AND ((@IsNull_progress = 1 AND [progress] IS NULL) OR ([progress] = @Original_progress)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ((@IsNull_type = 1 AND [type] IS NULL) OR ([type] = @Original_type)) AND ((@IsNull_hrs = 1 AND [hrs] IS NULL) OR ([hrs] = @Original_hrs)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_projectidx = 1 AND [projectidx] IS NULL) OR ([projectidx] = @Original_projectidx)) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)));
+SELECT idx, pdate, [group], uid, dbo.getUserName(uid) AS username, progress, memo, type, hrs, wuid, wdate, projectidx, project FROM JobReport WHERE (idx = @idx) ORDER BY pdate DESC
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ SELECT [group], hrs, idx, memo, pdate, progress, project, projectidx, type, uid, dbo.getUserName(uid) AS username, wdate, wuid
+FROM JobReport
+WHERE (pdate BETWEEN @sd AND @ed) AND (ISNULL(dbo.getProjectName(project), '') LIKE @prjname)
+ORDER BY pdate DESC
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DELETE FROM [ProjectsSchedule] WHERE (([idx] = @Original_idx) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_sw = 1 AND [sw] IS NULL) OR ([sw] = @Original_sw)) AND ((@IsNull_ew = 1 AND [ew] IS NULL) OR ([ew] = @Original_ew)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_swa = 1 AND [swa] IS NULL) OR ([swa] = @Original_swa)) AND ((@IsNull_ewa = 1 AND [ewa] IS NULL) OR ([ewa] = @Original_ewa)))
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ INSERT INTO [ProjectsSchedule] ([project], [title], [sw], [ew], [memo], [wuid], [wdate], [swa], [ewa]) VALUES (@project, @title, @sw, @ew, @memo, @wuid, @wdate, @swa, @ewa);
+SELECT idx, project, title, sw, ew, memo, wuid, wdate, swa, ewa FROM ProjectsSchedule WHERE (idx = SCOPE_IDENTITY()) ORDER BY sw
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ SELECT idx, project, title, sw, ew, memo, wuid, wdate, swa, ewa
+FROM ProjectsSchedule
+WHERE (project = @project)
+ORDER BY sw
+
+
+
+
+
+
+
+ UPDATE [ProjectsSchedule] SET [project] = @project, [title] = @title, [sw] = @sw, [ew] = @ew, [memo] = @memo, [wuid] = @wuid, [wdate] = @wdate, [swa] = @swa, [ewa] = @ewa WHERE (([idx] = @Original_idx) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_sw = 1 AND [sw] IS NULL) OR ([sw] = @Original_sw)) AND ((@IsNull_ew = 1 AND [ew] IS NULL) OR ([ew] = @Original_ew)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_swa = 1 AND [swa] IS NULL) OR ([swa] = @Original_swa)) AND ((@IsNull_ewa = 1 AND [ewa] IS NULL) OR ([ewa] = @Original_ewa)));
+SELECT idx, project, title, sw, ew, memo, wuid, wdate, swa, ewa FROM ProjectsSchedule WHERE (idx = @idx) ORDER BY sw
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -263,67 +532,67 @@ SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, I
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -331,17 +600,38 @@ SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, I
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
@@ -373,8 +663,6 @@ SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, I
-
-
@@ -382,6 +670,128 @@ SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, I
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -395,5 +805,13 @@ SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, I
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/SubProject/FPJ0000/dsPRJ.xss b/SubProject/FPJ0000/dsPRJ.xss
index aad38a5..5fb6f8d 100644
--- a/SubProject/FPJ0000/dsPRJ.xss
+++ b/SubProject/FPJ0000/dsPRJ.xss
@@ -6,8 +6,10 @@
-->
-
-
+
+
+
+
\ No newline at end of file
diff --git a/SubProject/FPJ0000/fPartList.Designer.cs b/SubProject/FPJ0000/fPartList.Designer.cs
index 55c5d6b..31f40b4 100644
--- a/SubProject/FPJ0000/fPartList.Designer.cs
+++ b/SubProject/FPJ0000/fPartList.Designer.cs
@@ -38,15 +38,25 @@
System.Windows.Forms.Label memoLabel;
System.Windows.Forms.Label statusLabel;
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fPartList));
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
+ FarPoint.Win.Spread.FlatFocusIndicatorRenderer flatFocusIndicatorRenderer1 = new FarPoint.Win.Spread.FlatFocusIndicatorRenderer();
+ FarPoint.Win.Spread.FlatScrollBarRenderer flatScrollBarRenderer1 = new FarPoint.Win.Spread.FlatScrollBarRenderer();
+ FarPoint.Win.Spread.FlatScrollBarRenderer flatScrollBarRenderer2 = new FarPoint.Win.Spread.FlatScrollBarRenderer();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType1 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.NumberCellType numberCellType1 = new FarPoint.Win.Spread.CellType.NumberCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType2 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.NumberCellType numberCellType2 = new FarPoint.Win.Spread.CellType.NumberCellType();
+ FarPoint.Win.Spread.CellType.NumberCellType numberCellType3 = new FarPoint.Win.Spread.CellType.NumberCellType();
+ FarPoint.Win.Spread.CellType.NumberCellType numberCellType4 = new FarPoint.Win.Spread.CellType.NumberCellType();
+ FarPoint.Win.Spread.CellType.NumberCellType numberCellType5 = new FarPoint.Win.Spread.CellType.NumberCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType3 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType4 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.NumberCellType numberCellType6 = new FarPoint.Win.Spread.CellType.NumberCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType5 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.NoPrinterPrintInfo noPrinterPrintInfo1 = new FarPoint.Win.Spread.NoPrinterPrintInfo();
this.panel1 = new System.Windows.Forms.Panel();
this.idxTextBox = new System.Windows.Forms.TextBox();
+ this.bs = new System.Windows.Forms.BindingSource(this.components);
+ this.dsPRJ = new FPJ0000.dsPRJ();
this.nameTextBox = new System.Windows.Forms.TextBox();
this.pdateTextBox = new System.Windows.Forms.TextBox();
this.requestTextBox = new System.Windows.Forms.TextBox();
@@ -56,7 +66,15 @@
this.odateTextBox = new System.Windows.Forms.TextBox();
this.memoTextBox = new System.Windows.Forms.TextBox();
this.statusTextBox = new System.Windows.Forms.TextBox();
- this.dv1 = new arCtl.arDatagridView();
+ this.cm1 = new System.Windows.Forms.ContextMenuStrip(this.components);
+ this.columnSizeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.autoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.resetToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.loadToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator();
+ this.exportListToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.bsPart = new System.Windows.Forms.BindingSource(this.components);
this.bn = new System.Windows.Forms.BindingNavigator(this.components);
this.bindingNavigatorAddNewItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel();
@@ -71,28 +89,14 @@
this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
- this.bsPart = new System.Windows.Forms.BindingSource(this.components);
- this.dsPRJ = new FPJ0000.dsPRJ();
- this.bs = new System.Windows.Forms.BindingSource(this.components);
- this.ta = new FPJ0000.dsPRJTableAdapters.ProjectsTableAdapter();
- this.tam = new FPJ0000.dsPRJTableAdapters.TableAdapterManager();
- this.taPart = new FPJ0000.dsPRJTableAdapters.ProjectsPartTableAdapter();
- this.cm1 = new System.Windows.Forms.ContextMenuStrip(this.components);
- this.autoSizeColumnToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.exportListToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel();
this.lbSum = new System.Windows.Forms.ToolStripLabel();
- this.dvc_itemname = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dvc_item = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dvc_model = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dvc_sid = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dvc_supply = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dvc_qty = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dvc_price = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dvc_amt = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.ta = new FPJ0000.dsPRJTableAdapters.ProjectsTableAdapter();
+ this.tam = new FPJ0000.dsPRJTableAdapters.TableAdapterManager();
+ this.taPart = new FPJ0000.dsPRJTableAdapters.ProjectsPartTableAdapter();
+ this.fpSpread1 = new FarPoint.Win.Spread.FpSpread();
+ this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
pdateLabel = new System.Windows.Forms.Label();
requestLabel = new System.Windows.Forms.Label();
reqstaffLabel = new System.Windows.Forms.Label();
@@ -102,13 +106,14 @@
memoLabel = new System.Windows.Forms.Label();
statusLabel = new System.Windows.Forms.Label();
this.panel1.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.dv1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dsPRJ)).BeginInit();
+ this.cm1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.bsPart)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
this.bn.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.bsPart)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.dsPRJ)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
- this.cm1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).BeginInit();
this.SuspendLayout();
//
// pdateLabel
@@ -206,7 +211,7 @@
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
- this.panel1.Size = new System.Drawing.Size(736, 124);
+ this.panel1.Size = new System.Drawing.Size(798, 124);
this.panel1.TabIndex = 0;
//
// idxTextBox
@@ -218,6 +223,16 @@
this.idxTextBox.Size = new System.Drawing.Size(40, 21);
this.idxTextBox.TabIndex = 1;
//
+ // bs
+ //
+ this.bs.DataMember = "Projects";
+ this.bs.DataSource = this.dsPRJ;
+ //
+ // dsPRJ
+ //
+ this.dsPRJ.DataSetName = "dsPRJ";
+ this.dsPRJ.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
+ //
// nameTextBox
//
this.nameTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "name", true));
@@ -295,38 +310,75 @@
this.statusTextBox.TabIndex = 23;
this.statusTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
- // dv1
+ // cm1
//
- this.dv1.A_DelCurrentCell = true;
- this.dv1.A_EnterToTab = true;
- this.dv1.A_KoreanField = null;
- this.dv1.A_UpperField = null;
- this.dv1.A_ViewRownumOnHeader = true;
- this.dv1.AllowUserToAddRows = false;
- this.dv1.AutoGenerateColumns = false;
- this.dv1.ColumnHeadersHeight = 30;
- this.dv1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
- this.dv1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
- this.dvc_itemname,
- this.dvc_item,
- this.dvc_model,
- this.dvc_sid,
- this.dvc_supply,
- this.dvc_qty,
- this.dvc_price,
- this.dvc_amt,
- this.dataGridViewTextBoxColumn7,
- this.dataGridViewTextBoxColumn8});
- this.dv1.ContextMenuStrip = this.cm1;
- this.dv1.DataSource = this.bsPart;
- this.dv1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.dv1.Location = new System.Drawing.Point(0, 124);
- this.dv1.Name = "dv1";
- this.dv1.RowTemplate.Height = 23;
- this.dv1.Size = new System.Drawing.Size(736, 446);
- this.dv1.TabIndex = 2;
- this.dv1.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.dv1_CellEndEdit);
- this.dv1.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.dv1_DataError);
+ this.cm1.Font = new System.Drawing.Font("맑은 고딕", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
+ this.cm1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.columnSizeToolStripMenuItem,
+ this.toolStripMenuItem1,
+ this.exportListToolStripMenuItem});
+ this.cm1.Name = "cm1";
+ this.cm1.Size = new System.Drawing.Size(226, 82);
+ //
+ // columnSizeToolStripMenuItem
+ //
+ this.columnSizeToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.autoToolStripMenuItem,
+ this.resetToolStripMenuItem,
+ this.saveToolStripMenuItem,
+ this.loadToolStripMenuItem});
+ this.columnSizeToolStripMenuItem.Name = "columnSizeToolStripMenuItem";
+ this.columnSizeToolStripMenuItem.Size = new System.Drawing.Size(225, 36);
+ this.columnSizeToolStripMenuItem.Text = "Column Size";
+ //
+ // autoToolStripMenuItem
+ //
+ this.autoToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("autoToolStripMenuItem.Image")));
+ this.autoToolStripMenuItem.Name = "autoToolStripMenuItem";
+ this.autoToolStripMenuItem.Size = new System.Drawing.Size(149, 36);
+ this.autoToolStripMenuItem.Text = "Auto";
+ this.autoToolStripMenuItem.Click += new System.EventHandler(this.autoToolStripMenuItem_Click);
+ //
+ // resetToolStripMenuItem
+ //
+ this.resetToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("resetToolStripMenuItem.Image")));
+ this.resetToolStripMenuItem.Name = "resetToolStripMenuItem";
+ this.resetToolStripMenuItem.Size = new System.Drawing.Size(149, 36);
+ this.resetToolStripMenuItem.Text = "Reset";
+ this.resetToolStripMenuItem.Click += new System.EventHandler(this.resetToolStripMenuItem_Click);
+ //
+ // saveToolStripMenuItem
+ //
+ this.saveToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("saveToolStripMenuItem.Image")));
+ this.saveToolStripMenuItem.Name = "saveToolStripMenuItem";
+ this.saveToolStripMenuItem.Size = new System.Drawing.Size(149, 36);
+ this.saveToolStripMenuItem.Text = "Save";
+ this.saveToolStripMenuItem.Click += new System.EventHandler(this.saveToolStripMenuItem_Click);
+ //
+ // loadToolStripMenuItem
+ //
+ this.loadToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("loadToolStripMenuItem.Image")));
+ this.loadToolStripMenuItem.Name = "loadToolStripMenuItem";
+ this.loadToolStripMenuItem.Size = new System.Drawing.Size(149, 36);
+ this.loadToolStripMenuItem.Text = "Load";
+ this.loadToolStripMenuItem.Click += new System.EventHandler(this.loadToolStripMenuItem_Click);
+ //
+ // toolStripMenuItem1
+ //
+ this.toolStripMenuItem1.Name = "toolStripMenuItem1";
+ this.toolStripMenuItem1.Size = new System.Drawing.Size(222, 6);
+ //
+ // exportListToolStripMenuItem
+ //
+ this.exportListToolStripMenuItem.Name = "exportListToolStripMenuItem";
+ this.exportListToolStripMenuItem.Size = new System.Drawing.Size(225, 36);
+ this.exportListToolStripMenuItem.Text = "Export List";
+ this.exportListToolStripMenuItem.Click += new System.EventHandler(this.exportListToolStripMenuItem_Click);
+ //
+ // bsPart
+ //
+ this.bsPart.DataMember = "ProjectsPart";
+ this.bsPart.DataSource = this.dsPRJ;
//
// bn
//
@@ -352,14 +404,14 @@
this.toolStripSeparator1,
this.toolStripLabel1,
this.lbSum});
- this.bn.Location = new System.Drawing.Point(0, 570);
+ this.bn.Location = new System.Drawing.Point(0, 569);
this.bn.MoveFirstItem = this.bindingNavigatorMoveFirstItem;
this.bn.MoveLastItem = this.bindingNavigatorMoveLastItem;
this.bn.MoveNextItem = this.bindingNavigatorMoveNextItem;
this.bn.MovePreviousItem = this.bindingNavigatorMovePreviousItem;
this.bn.Name = "bn";
this.bn.PositionItem = this.bindingNavigatorPositionItem;
- this.bn.Size = new System.Drawing.Size(736, 25);
+ this.bn.Size = new System.Drawing.Size(798, 25);
this.bn.TabIndex = 3;
this.bn.Text = "bindingNavigator1";
//
@@ -465,58 +517,6 @@
this.toolStripButton2.Text = "Report";
this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click);
//
- // bsPart
- //
- this.bsPart.DataMember = "ProjectsPart";
- this.bsPart.DataSource = this.dsPRJ;
- //
- // dsPRJ
- //
- this.dsPRJ.DataSetName = "dsPRJ";
- this.dsPRJ.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
- //
- // bs
- //
- this.bs.DataMember = "Projects";
- this.bs.DataSource = this.dsPRJ;
- //
- // ta
- //
- this.ta.ClearBeforeFill = true;
- //
- // tam
- //
- this.tam.BackupDataSetBeforeUpdate = false;
- this.tam.ProjectsPartTableAdapter = this.taPart;
- this.tam.ProjectsTableAdapter = this.ta;
- this.tam.UpdateOrder = FPJ0000.dsPRJTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
- //
- // taPart
- //
- this.taPart.ClearBeforeFill = true;
- //
- // cm1
- //
- this.cm1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.autoSizeColumnToolStripMenuItem,
- this.exportListToolStripMenuItem});
- this.cm1.Name = "cm1";
- this.cm1.Size = new System.Drawing.Size(170, 48);
- //
- // autoSizeColumnToolStripMenuItem
- //
- this.autoSizeColumnToolStripMenuItem.Name = "autoSizeColumnToolStripMenuItem";
- this.autoSizeColumnToolStripMenuItem.Size = new System.Drawing.Size(169, 22);
- this.autoSizeColumnToolStripMenuItem.Text = "AutoSize Column";
- this.autoSizeColumnToolStripMenuItem.Click += new System.EventHandler(this.autoSizeColumnToolStripMenuItem_Click);
- //
- // exportListToolStripMenuItem
- //
- this.exportListToolStripMenuItem.Name = "exportListToolStripMenuItem";
- this.exportListToolStripMenuItem.Size = new System.Drawing.Size(169, 22);
- this.exportListToolStripMenuItem.Text = "Export List";
- this.exportListToolStripMenuItem.Click += new System.EventHandler(this.exportListToolStripMenuItem_Click);
- //
// toolStripSeparator1
//
this.toolStripSeparator1.Name = "toolStripSeparator1";
@@ -535,92 +535,197 @@
this.lbSum.Size = new System.Drawing.Size(19, 22);
this.lbSum.Text = "0";
//
- // dvc_itemname
+ // ta
//
- this.dvc_itemname.DataPropertyName = "ItemName";
- this.dvc_itemname.HeaderText = "Name";
- this.dvc_itemname.Name = "dvc_itemname";
+ this.ta.ClearBeforeFill = true;
//
- // dvc_item
+ // tam
//
- this.dvc_item.DataPropertyName = "Item";
- dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
- this.dvc_item.DefaultCellStyle = dataGridViewCellStyle1;
- this.dvc_item.HeaderText = "*";
- this.dvc_item.Name = "dvc_item";
+ this.tam.BackupDataSetBeforeUpdate = false;
+ this.tam.JobReportTableAdapter = null;
+ this.tam.ProjectsPartTableAdapter = this.taPart;
+ this.tam.ProjectsScheduleTableAdapter = null;
+ this.tam.ProjectsTableAdapter = this.ta;
+ this.tam.UpdateOrder = FPJ0000.dsPRJTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
//
- // dvc_model
+ // taPart
//
- this.dvc_model.DataPropertyName = "ItemModel";
- this.dvc_model.HeaderText = "Model";
- this.dvc_model.Name = "dvc_model";
+ this.taPart.ClearBeforeFill = true;
//
- // dvc_sid
+ // fpSpread1
//
- this.dvc_sid.DataPropertyName = "SID";
- dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
- this.dvc_sid.DefaultCellStyle = dataGridViewCellStyle2;
- this.dvc_sid.HeaderText = "SID";
- this.dvc_sid.Name = "dvc_sid";
- this.dvc_sid.ReadOnly = true;
+ this.fpSpread1.AccessibleDescription = "";
+ this.fpSpread1.ContextMenuStrip = this.cm1;
+ this.fpSpread1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.fpSpread1.EditModeReplace = true;
+ this.fpSpread1.FocusRenderer = flatFocusIndicatorRenderer1;
+ this.fpSpread1.Font = new System.Drawing.Font("맑은 고딕", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
+ this.fpSpread1.HorizontalScrollBar.Buttons = new FarPoint.Win.Spread.FpScrollBarButtonCollection("BackwardLineButton,ThumbTrack,ForwardLineButton");
+ this.fpSpread1.HorizontalScrollBar.Name = "";
+ flatScrollBarRenderer1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
+ this.fpSpread1.HorizontalScrollBar.Renderer = flatScrollBarRenderer1;
+ this.fpSpread1.Location = new System.Drawing.Point(0, 124);
+ this.fpSpread1.Name = "fpSpread1";
+ this.fpSpread1.Sheets.AddRange(new FarPoint.Win.Spread.SheetView[] {
+ this.fpSpread1_Sheet1});
+ this.fpSpread1.Size = new System.Drawing.Size(798, 445);
+ this.fpSpread1.Skin = FarPoint.Win.Spread.DefaultSpreadSkins.Office2013;
+ this.fpSpread1.TabIndex = 4;
+ this.fpSpread1.TitleInfo.Text = "PartList";
+ this.fpSpread1.TitleInfo.Value = "PartList";
+ this.fpSpread1.VerticalScrollBar.Buttons = new FarPoint.Win.Spread.FpScrollBarButtonCollection("BackwardLineButton,ThumbTrack,ForwardLineButton");
+ this.fpSpread1.VerticalScrollBar.Name = "";
+ flatScrollBarRenderer2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
+ this.fpSpread1.VerticalScrollBar.Renderer = flatScrollBarRenderer2;
+ this.fpSpread1.EditModeOff += new System.EventHandler(this.fpSpread1_EditModeOff);
//
- // dvc_supply
+ // fpSpread1_Sheet1
//
- this.dvc_supply.DataPropertyName = "Supply";
- dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
- this.dvc_supply.DefaultCellStyle = dataGridViewCellStyle3;
- this.dvc_supply.HeaderText = "Supply";
- this.dvc_supply.Name = "dvc_supply";
- this.dvc_supply.ReadOnly = true;
- //
- // dvc_qty
- //
- this.dvc_qty.DataPropertyName = "qty";
- dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- this.dvc_qty.DefaultCellStyle = dataGridViewCellStyle4;
- this.dvc_qty.HeaderText = "Qty";
- this.dvc_qty.Name = "dvc_qty";
- //
- // dvc_price
- //
- this.dvc_price.DataPropertyName = "price";
- dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
- dataGridViewCellStyle5.Format = "N0";
- this.dvc_price.DefaultCellStyle = dataGridViewCellStyle5;
- this.dvc_price.HeaderText = "Price";
- this.dvc_price.Name = "dvc_price";
- //
- // dvc_amt
- //
- this.dvc_amt.DataPropertyName = "amt";
- dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
- dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
- dataGridViewCellStyle6.Format = "N0";
- this.dvc_amt.DefaultCellStyle = dataGridViewCellStyle6;
- this.dvc_amt.HeaderText = "Amount";
- this.dvc_amt.Name = "dvc_amt";
- //
- // dataGridViewTextBoxColumn7
- //
- this.dataGridViewTextBoxColumn7.DataPropertyName = "jago";
- dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- this.dataGridViewTextBoxColumn7.DefaultCellStyle = dataGridViewCellStyle7;
- this.dataGridViewTextBoxColumn7.HeaderText = "Stock";
- this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7";
- //
- // dataGridViewTextBoxColumn8
- //
- this.dataGridViewTextBoxColumn8.DataPropertyName = "memo";
- this.dataGridViewTextBoxColumn8.HeaderText = "Memo";
- this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8";
+ this.fpSpread1_Sheet1.Reset();
+ this.fpSpread1_Sheet1.SheetName = "Sheet1";
+ // Formulas and custom names must be loaded with R1C1 reference style
+ this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.R1C1;
+ this.fpSpread1_Sheet1.ColumnCount = 11;
+ this.fpSpread1_Sheet1.ActiveColumnIndex = -1;
+ this.fpSpread1_Sheet1.ActiveRowIndex = -1;
+ this.fpSpread1_Sheet1.AutoGenerateColumns = false;
+ this.fpSpread1_Sheet1.ColumnFooter.DefaultStyle.BackColor = System.Drawing.Color.Empty;
+ this.fpSpread1_Sheet1.ColumnFooter.DefaultStyle.ForeColor = System.Drawing.Color.Empty;
+ this.fpSpread1_Sheet1.ColumnFooter.DefaultStyle.Parent = "ColumnFooterFlat";
+ this.fpSpread1_Sheet1.ColumnFooterSheetCornerStyle.BackColor = System.Drawing.Color.Empty;
+ this.fpSpread1_Sheet1.ColumnFooterSheetCornerStyle.ForeColor = System.Drawing.Color.Empty;
+ this.fpSpread1_Sheet1.ColumnFooterSheetCornerStyle.Parent = "CornerFooterFlat";
+ this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 0).Value = "Item";
+ this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 1).Value = "*";
+ this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 2).Value = "Model";
+ this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 6).Value = "Stock";
+ this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 8).Value = "Supply";
+ this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 9).Value = "*";
+ this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 10).Value = "SID";
+ this.fpSpread1_Sheet1.ColumnHeader.DefaultStyle.BackColor = System.Drawing.Color.Empty;
+ this.fpSpread1_Sheet1.ColumnHeader.DefaultStyle.ForeColor = System.Drawing.Color.Empty;
+ this.fpSpread1_Sheet1.ColumnHeader.DefaultStyle.Parent = "ColumnHeaderFlat";
+ this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 36F;
+ this.fpSpread1_Sheet1.Columns.Get(0).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
+ this.fpSpread1_Sheet1.Columns.Get(0).CellType = textCellType1;
+ this.fpSpread1_Sheet1.Columns.Get(0).DataField = "ItemName";
+ this.fpSpread1_Sheet1.Columns.Get(0).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
+ this.fpSpread1_Sheet1.Columns.Get(0).Label = "Item";
+ this.fpSpread1_Sheet1.Columns.Get(0).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(0).Width = 113F;
+ this.fpSpread1_Sheet1.Columns.Get(1).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
+ numberCellType1.DecimalPlaces = 0;
+ numberCellType1.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
+ numberCellType1.MaximumValue = 2147483647D;
+ numberCellType1.MinimumValue = -2147483648D;
+ this.fpSpread1_Sheet1.Columns.Get(1).CellType = numberCellType1;
+ this.fpSpread1_Sheet1.Columns.Get(1).DataField = "Item";
+ this.fpSpread1_Sheet1.Columns.Get(1).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(1).Label = "*";
+ this.fpSpread1_Sheet1.Columns.Get(1).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(1).Width = 88F;
+ this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType2;
+ this.fpSpread1_Sheet1.Columns.Get(2).DataField = "ItemModel";
+ this.fpSpread1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
+ this.fpSpread1_Sheet1.Columns.Get(2).Label = "Model";
+ this.fpSpread1_Sheet1.Columns.Get(2).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(2).Width = 113F;
+ numberCellType2.DecimalPlaces = 0;
+ numberCellType2.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
+ numberCellType2.MaximumValue = 2147483647D;
+ numberCellType2.MinimumValue = -2147483648D;
+ this.fpSpread1_Sheet1.Columns.Get(3).CellType = numberCellType2;
+ this.fpSpread1_Sheet1.Columns.Get(3).DataField = "qty";
+ this.fpSpread1_Sheet1.Columns.Get(3).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(3).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(3).Width = 88F;
+ numberCellType3.MaximumValue = 999999999999999D;
+ numberCellType3.MinimumValue = -999999999999999D;
+ this.fpSpread1_Sheet1.Columns.Get(4).CellType = numberCellType3;
+ this.fpSpread1_Sheet1.Columns.Get(4).DataField = "price";
+ this.fpSpread1_Sheet1.Columns.Get(4).Formula = "qty*price";
+ this.fpSpread1_Sheet1.Columns.Get(4).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
+ this.fpSpread1_Sheet1.Columns.Get(4).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(4).Width = 84F;
+ this.fpSpread1_Sheet1.Columns.Get(5).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
+ numberCellType4.MaximumValue = 999999999999999D;
+ numberCellType4.MinimumValue = -999999999999999D;
+ this.fpSpread1_Sheet1.Columns.Get(5).CellType = numberCellType4;
+ this.fpSpread1_Sheet1.Columns.Get(5).DataField = "amt";
+ this.fpSpread1_Sheet1.Columns.Get(5).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
+ this.fpSpread1_Sheet1.Columns.Get(5).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(5).Width = 84F;
+ numberCellType5.DecimalPlaces = 0;
+ numberCellType5.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
+ numberCellType5.MaximumValue = 2147483647D;
+ numberCellType5.MinimumValue = -2147483648D;
+ this.fpSpread1_Sheet1.Columns.Get(6).CellType = numberCellType5;
+ this.fpSpread1_Sheet1.Columns.Get(6).DataField = "jago";
+ this.fpSpread1_Sheet1.Columns.Get(6).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(6).Label = "Stock";
+ this.fpSpread1_Sheet1.Columns.Get(6).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(6).Width = 88F;
+ this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType3;
+ this.fpSpread1_Sheet1.Columns.Get(7).DataField = "memo";
+ this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
+ this.fpSpread1_Sheet1.Columns.Get(7).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(7).Width = 113F;
+ this.fpSpread1_Sheet1.Columns.Get(8).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
+ this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType4;
+ this.fpSpread1_Sheet1.Columns.Get(8).DataField = "supplyName";
+ this.fpSpread1_Sheet1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
+ this.fpSpread1_Sheet1.Columns.Get(8).ImeMode = System.Windows.Forms.ImeMode.Hangul;
+ this.fpSpread1_Sheet1.Columns.Get(8).Label = "Supply";
+ this.fpSpread1_Sheet1.Columns.Get(8).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(8).Width = 100F;
+ this.fpSpread1_Sheet1.Columns.Get(9).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
+ numberCellType6.DecimalPlaces = 0;
+ numberCellType6.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
+ numberCellType6.MaximumValue = 2147483647D;
+ numberCellType6.MinimumValue = -2147483648D;
+ this.fpSpread1_Sheet1.Columns.Get(9).CellType = numberCellType6;
+ this.fpSpread1_Sheet1.Columns.Get(9).DataField = "supplyidx";
+ this.fpSpread1_Sheet1.Columns.Get(9).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(9).Label = "*";
+ this.fpSpread1_Sheet1.Columns.Get(9).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(10).CellType = textCellType5;
+ this.fpSpread1_Sheet1.Columns.Get(10).DataField = "itemSID";
+ this.fpSpread1_Sheet1.Columns.Get(10).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(10).Label = "SID";
+ this.fpSpread1_Sheet1.Columns.Get(10).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.fpSpread1_Sheet1.DataAutoSizeColumns = false;
+ this.fpSpread1_Sheet1.DataSource = this.bsPart;
+ this.fpSpread1_Sheet1.FilterBar.DefaultStyle.BackColor = System.Drawing.Color.Empty;
+ this.fpSpread1_Sheet1.FilterBar.DefaultStyle.ForeColor = System.Drawing.Color.Empty;
+ this.fpSpread1_Sheet1.FilterBar.DefaultStyle.Parent = "FilterBarFlat";
+ this.fpSpread1_Sheet1.FilterBarHeaderStyle.BackColor = System.Drawing.Color.Empty;
+ this.fpSpread1_Sheet1.FilterBarHeaderStyle.ForeColor = System.Drawing.Color.Empty;
+ this.fpSpread1_Sheet1.FilterBarHeaderStyle.Parent = "FilterBarHeaderFlat";
+ this.fpSpread1_Sheet1.PrintInfo.Footer = "EET Groupware - Alpha -";
+ this.fpSpread1_Sheet1.PrintInfo.Header = "PartList";
+ noPrinterPrintInfo1.Bounds = new System.Drawing.Rectangle(0, 0, 816, 1148);
+ noPrinterPrintInfo1.HardMarginX = 0F;
+ noPrinterPrintInfo1.HardMarginY = 0F;
+ noPrinterPrintInfo1.SupportColor = true;
+ this.fpSpread1_Sheet1.PrintInfo.NoPrinterSetting = noPrinterPrintInfo1;
+ this.fpSpread1_Sheet1.PrintInfo.PdfSecurity = null;
+ this.fpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false;
+ this.fpSpread1_Sheet1.RowHeader.DefaultStyle.BackColor = System.Drawing.Color.Empty;
+ this.fpSpread1_Sheet1.RowHeader.DefaultStyle.ForeColor = System.Drawing.Color.Empty;
+ this.fpSpread1_Sheet1.RowHeader.DefaultStyle.Parent = "RowHeaderFlat";
+ this.fpSpread1_Sheet1.SheetCornerStyle.BackColor = System.Drawing.Color.Empty;
+ this.fpSpread1_Sheet1.SheetCornerStyle.ForeColor = System.Drawing.Color.Empty;
+ this.fpSpread1_Sheet1.SheetCornerStyle.Parent = "CornerHeaderFlat";
+ this.fpSpread1_Sheet1.TitleInfo.Text = "Partlist";
+ this.fpSpread1_Sheet1.TitleInfo.Value = "Partlist";
+ this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1;
//
// fPartList
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(736, 595);
- this.Controls.Add(this.dv1);
+ this.ClientSize = new System.Drawing.Size(798, 594);
+ this.Controls.Add(this.fpSpread1);
this.Controls.Add(this.bn);
this.Controls.Add(this.panel1);
this.Name = "fPartList";
@@ -628,14 +733,15 @@
this.Load += new System.EventHandler(this.fPartList_Load);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.dv1)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dsPRJ)).EndInit();
+ this.cm1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.bsPart)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.bn)).EndInit();
this.bn.ResumeLayout(false);
this.bn.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.bsPart)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.dsPRJ)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit();
- this.cm1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@@ -660,7 +766,6 @@
private System.Windows.Forms.TextBox statusTextBox;
private dsPRJTableAdapters.ProjectsPartTableAdapter taPart;
private System.Windows.Forms.BindingSource bsPart;
- private arCtl.arDatagridView dv1;
private System.Windows.Forms.BindingNavigator bn;
private System.Windows.Forms.ToolStripButton bindingNavigatorAddNewItem;
private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem;
@@ -676,20 +781,17 @@
private System.Windows.Forms.ToolStripButton toolStripButton1;
private System.Windows.Forms.ToolStripButton toolStripButton2;
private System.Windows.Forms.ContextMenuStrip cm1;
- private System.Windows.Forms.ToolStripMenuItem autoSizeColumnToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem exportListToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
private System.Windows.Forms.ToolStripLabel toolStripLabel1;
private System.Windows.Forms.ToolStripLabel lbSum;
- private System.Windows.Forms.DataGridViewTextBoxColumn dvc_itemname;
- private System.Windows.Forms.DataGridViewTextBoxColumn dvc_item;
- private System.Windows.Forms.DataGridViewTextBoxColumn dvc_model;
- private System.Windows.Forms.DataGridViewTextBoxColumn dvc_sid;
- private System.Windows.Forms.DataGridViewTextBoxColumn dvc_supply;
- private System.Windows.Forms.DataGridViewTextBoxColumn dvc_qty;
- private System.Windows.Forms.DataGridViewTextBoxColumn dvc_price;
- private System.Windows.Forms.DataGridViewTextBoxColumn dvc_amt;
- private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn7;
- private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn8;
+ private FarPoint.Win.Spread.FpSpread fpSpread1;
+ private System.Windows.Forms.ToolStripMenuItem columnSizeToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem autoToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem resetToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem saveToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem loadToolStripMenuItem;
+ private System.Windows.Forms.ToolStripSeparator toolStripMenuItem1;
+ private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1;
}
}
\ No newline at end of file
diff --git a/SubProject/FPJ0000/fPartList.cs b/SubProject/FPJ0000/fPartList.cs
index 6dc80c7..895b25f 100644
--- a/SubProject/FPJ0000/fPartList.cs
+++ b/SubProject/FPJ0000/fPartList.cs
@@ -6,15 +6,30 @@ using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
+using util = FCOMMON.Util;
namespace FPJ0000
{
- public partial class fPartList : Form
+ public partial class fPartList : FCOMMON.fBase
{
+ string fn_fpcolsize = "";
int ProjectIndex = -1;
+
+
+ int colidx_itemname = -1;
+ int colidx_item = -1;
+ int colidx_qty = -1;
+ int colidx_amt = -1;
+ int colidx_price = -1;
+ int colidx_model = -1;
+ int colidx_supply = -1;
+ int colidx_supplyidx = -1;
+
+
public fPartList(int idx_)
{
InitializeComponent();
+ fn_fpcolsize = util.MakeFilePath(util.CurrentPath, "formSetting", "fp_" + this.Name + ".ini");
this.ProjectIndex = idx_;
this.FormClosed += fPartList_FormClosed;
this.KeyPreview = true;
@@ -36,22 +51,26 @@ namespace FPJ0000
void fPartList_FormClosed(object sender, FormClosedEventArgs e)
{
- var form = this as Form;
- FCOMMON.Util.SetFormStatus(ref form, this.Name, false);
+
}
private void fPartList_Load(object sender, EventArgs e)
{
-
- var form = this as Form;
- FCOMMON.Util.SetFormStatus(ref form, this.Name, true);
- this.Show();
- Application.DoEvents();
+ //열번호찾기
+ foreach(FarPoint.Win.Spread.Column col in this.fpSpread1.ActiveSheet.Columns)
+ {
+ string colname = col.DataField.ToLower();
+ if (colname == "itemmodel") colidx_model = col.Index;
+ else if (colname == "itemname") colidx_itemname = col.Index;
+ else if (colname == "item") colidx_item = col.Index;
+ else if (colname == "qty") colidx_qty = col.Index;
+ else if (colname == "price") colidx_price = col.Index;
+ else if (colname == "amt") colidx_amt = col.Index;
+ else if (colname == "supplyidx") colidx_supplyidx = col.Index;
+ else if (col.Label.ToLower() == "supply") colidx_supply = col.Index;
+ }
RefreshData();
-
-
-
-
+ FPUtil.ColSizeLoad(ref this.fpSpread1, fn_fpcolsize);
}
void RefreshData()
{
@@ -59,25 +78,24 @@ namespace FPJ0000
this.taPart.Fill(this.dsPRJ.ProjectsPart, this.ProjectIndex);
//로딩후에 sid 와 suuply 를 조회해준다.
- foreach( dsPRJ.ProjectsPartRow dr in this.dsPRJ.ProjectsPart.Rows)
- {
- if (dr.IsItemNull() || dr.Item < 0) continue;
- var iteminfo = FCOMMON.DBM.getItemInfo(dr.Item);
- if(iteminfo.idx != -1)
- {
- dr.SID = iteminfo.sid;
- dr.Supply = iteminfo.supply;
- }
- }
- this.dsPRJ.AcceptChanges();
- this.dv1.AutoResizeColumns();
+ //foreach (dsPRJ.ProjectsPartRow dr in this.dsPRJ.ProjectsPart.Rows)
+ //{
+ // if (dr.IsItemNull() || dr.Item < 0) continue;
+ // var iteminfo = FCOMMON.DBM.getItemInfo(dr.Item);
+ // if (iteminfo.idx != -1)
+ // {
+ // dr.SID = iteminfo.sid;
+ // //dr.Supply = iteminfo.supply;
+ // }
+ //}
+ //this.dsPRJ.AcceptChanges();
RefreshSum();
}
void RefreshSum()
{
decimal sum = 0;
- foreach( dsPRJ.ProjectsPartRow dr in this.dsPRJ.ProjectsPart.Rows)
+ foreach (dsPRJ.ProjectsPartRow dr in this.dsPRJ.ProjectsPart.Rows)
{
if (dr.RowState == DataRowState.Deleted || dr.RowState == DataRowState.Detached) continue;
sum += dr.amt;
@@ -109,30 +127,92 @@ namespace FPJ0000
f.Show();
}
- private void dv1_CellEndEdit(object sender, DataGridViewCellEventArgs e)
+
+ private void exportListToolStripMenuItem_Click(object sender, EventArgs e)
{
- if (e.ColumnIndex < 0 || e.RowIndex < 0) return;
- var col = dv1.Columns[e.ColumnIndex];
- var taItem = new FCM0000.dsMSSQLTableAdapters.ItemsTableAdapter();
- switch (col.DataPropertyName)
+ SaveFileDialog sd = new SaveFileDialog();
+ sd.Filter = "excel|*.xls";
+ if(sd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
- case "ItemName":
- var valuen = dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value;
+ fpSpread1.SaveExcel(sd.FileName,
+ FarPoint.Excel.ExcelSaveFlags.SaveAsViewed
+ | FarPoint.Excel.ExcelSaveFlags.NoFormulas
+ | FarPoint.Excel.ExcelSaveFlags.SaveCustomColumnHeaders );
+ }
+
+ //dv1.ExportData("partlist.csv");
+ }
+
+
+ private void autoToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ this.fpSpread1.ActiveSheet.DataAutoSizeColumns = true;
+
+ for (int i = 0; i < this.fpSpread1.ActiveSheet.Rows.Count; i++)
+ this.fpSpread1.ActiveSheet.SetRowHeight(i, 25);
+ //dv1.AutoResizeColumns();
+ }
+
+ private void resetToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ foreach (FarPoint.Win.Spread.Column col in this.fpSpread1.ActiveSheet.Columns)
+ {
+ col.Width = 100;
+ }
+ }
+
+ private void saveToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ FPUtil.ColsizeSave(this.fpSpread1, fn_fpcolsize);
+ }
+
+ private void loadToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ FPUtil.ColSizeLoad(ref this.fpSpread1, fn_fpcolsize);
+ }
+
+ private void fpSpread1_EditModeOff(object sender, EventArgs e)
+ {
+ int Colidx = this.fpSpread1.ActiveSheet.ActiveColumnIndex;
+ int Rowidx = this.fpSpread1.ActiveSheet.ActiveRowIndex;
+
+ var taItem = new FCM0000.dsMSSQLTableAdapters.ItemsTableAdapter();
+
+ switch (this.fpSpread1.ActiveSheet.Columns[Colidx].DataField.ToLower())
+ {
+ case "supplyname":
+ var valuen1 = fpSpread1.ActiveSheet.Cells[Rowidx, Colidx].Value;//.Rows[Rowidx].Cells[e.ColumnIndex].Value;
+ if (valuen1 != null)
+ {
+ string inputtext1 = valuen1.ToString().Trim();
+ if (inputtext1 != "")
+ {
+ FCM0000.fLovSupply f = new FCM0000.fLovSupply(inputtext1);
+ if(f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
+ {
+ fpSpread1.ActiveSheet.Cells[Rowidx, colidx_supply].Value = f.Title;
+ fpSpread1.ActiveSheet.Cells[Rowidx, colidx_supplyidx].Value = f.Index;
+ } else
+ {
+ //fpSpread1.ActiveSheet.Cells[Rowidx, colidx_supply].Value = string.Empty;
+ fpSpread1.ActiveSheet.Cells[Rowidx, colidx_supplyidx].Value = -1;
+ }
+ }
+ }
+ break;
+ case "itemname":
+ var valuen = fpSpread1.ActiveSheet.Cells[Rowidx, Colidx].Value;//.Rows[Rowidx].Cells[e.ColumnIndex].Value;
if (valuen != null)
{
string inputtext = valuen.ToString().Trim();
- if (inputtext == "")
- {
- dv1.Rows[e.RowIndex].Cells["dvc_itemName"].Value = inputtext;
- }
- else
+ if (inputtext != "")
{
//검색을 실행해서 보여준다.
-
var SearchDT = taItem.GetSearch("%" + inputtext + "%");
if (SearchDT == null || SearchDT.Rows.Count < 1)
{
//FCOMMON.Util.MsgE("검색 결과가 없습니다.");
+ fpSpread1.ActiveSheet.ActiveColumnIndex += 2;
return;
}
else
@@ -141,105 +221,53 @@ namespace FPJ0000
var f = new FCM0000.fLovItem("%" + inputtext + "%");
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
- dv1.Rows[e.RowIndex].Cells["dvc_item"].Value = f.item;
- dv1.Rows[e.RowIndex].Cells["dvc_itemname"].Value = f.itemName;
+ //var c = fpSpread1.ActiveSheet.Columns["sdf"];
- dv1.Rows[e.RowIndex].Cells["dvc_sid"].Value = f.SID;
- dv1.Rows[e.RowIndex].Cells["dvc_supply"].Value = f.itemSupply;
+ fpSpread1.ActiveSheet.Cells[Rowidx, colidx_item].Value = f.item;
+ fpSpread1.ActiveSheet.Cells[Rowidx, colidx_itemname].Value = f.itemName;
- if(f.itemmodel != "")
- dv1.Rows[e.RowIndex].Cells["dvc_model"].Value = f.itemmodel;
+ //fpSpread1.ActiveSheet.Cells[Rowidx, colidx_sid].Value = f.SID;
+ fpSpread1.ActiveSheet.Cells[Rowidx, colidx_supplyidx].Value = f.itemSupplyidx;
+ fpSpread1.ActiveSheet.Cells[Rowidx, colidx_supply].Value = f.itemSupply;
- if(f.itemprice != 0)
- dv1.Rows[e.RowIndex].Cells["dvc_price"].Value = f.itemprice;
- var valueq1 = dv1.Rows[e.RowIndex].Cells["dvc_qty"].Value;
- var valuep1 = dv1.Rows[e.RowIndex].Cells["dvc_price"].Value;
+ if (f.itemmodel != "")
+ fpSpread1.ActiveSheet.Cells[Rowidx, colidx_model].Value = f.itemmodel;
+
+ if (f.itemprice != 0)
+ fpSpread1.ActiveSheet.Cells[Rowidx, colidx_price].Value = f.itemprice;
+
+ var valueq1 = fpSpread1.ActiveSheet.Cells[Rowidx, colidx_qty].Value;
+ var valuep1 = fpSpread1.ActiveSheet.Cells[Rowidx, colidx_price].Value;
Int32 iQty = 0;
decimal iPrice = 0;
- if (valueq1 != null) iQty = (Int32)valueq1;
- if (valuep1 != null) iPrice = (decimal)valuep1;
+ if (valueq1 != null && valueq1.ToString() != "") iQty = (Int32)valueq1;
+ if (valuep1 != null && valuep1.ToString() != "") iPrice = (decimal)valuep1;
decimal iAmt = iQty * iPrice;
- dv1.Rows[e.RowIndex].Cells["dvc_amt"].Value = iAmt;
+ fpSpread1.ActiveSheet.Cells[Rowidx, colidx_amt].Value = iAmt;
}
}
}
}
break;
- case "item":
- var value = dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value;
- if (value != null)
- {
- int idx = (int)value;
- if (idx != -1)
- {
- var item = taItem.GetIDX(idx);
- if (item.Count == 1)
- {
- //1개만 찾았다면 그것을 사용한다.
- var itemnameValue = item[0]["name"];
- var itemmodel = item[0]["model"];
- var itemprice = item[0]["price"];
-
- var itemSID = item[0]["sid"];
- var itemSupply = item[0]["supply"];
-
- if (itemprice != null)
- {
- var price = (decimal)itemprice;
- if(price != 0)
- dv1.Rows[e.RowIndex].Cells["dvc_price"].Value = (decimal)itemprice;
- }
-
-
- if (itemnameValue != null)
- dv1.Rows[e.RowIndex].Cells["dvc_itemname"].Value = itemnameValue.ToString();
-
- if (itemmodel != null)
- dv1.Rows[e.RowIndex].Cells["dvc_model"].Value = itemmodel.ToString();
-
- if (itemSID != null)
- dv1.Rows[e.RowIndex].Cells["dvc_sid"].Value = itemSID.ToString();
-
- if (itemSupply != null)
- dv1.Rows[e.RowIndex].Cells["dvc_supply"].Value = itemSupply.ToString();
-
-
- }
- else
- {
- FCOMMON.Util.MsgE("해당 아이템이 존재하지 않습니다.");
- dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = DBNull.Value;
- }
- }
- }
- break;
case "price":
case "qty":
- var valueq = dv1.Rows[e.RowIndex].Cells["dvc_qty"].Value;
- var valuep = dv1.Rows[e.RowIndex].Cells["dvc_price"].Value;
- var amt = (Int32)valueq * (decimal)valuep;
- dv1.Rows[e.RowIndex].Cells["dvc_amt"].Value = amt;
+ var valueq = fpSpread1.ActiveSheet.Cells[Rowidx, colidx_qty].Value;
+ var valuep = fpSpread1.ActiveSheet.Cells[Rowidx, colidx_price].Value;
+
+ Int32 iQty1 = 0;
+ decimal iPrice1 = 0;
+ if (valueq != null && valueq.ToString() != "") iQty1 = (Int32)valueq;
+ if (valuep != null && valuep.ToString() != "") iPrice1 = (decimal)valuep;
+
+ var amt = iQty1 * iPrice1;
+ fpSpread1.ActiveSheet.Cells[Rowidx, colidx_amt].Value = amt;
+ //dv1.Rows[e.RowIndex].Cells["dvc_amt"].Value = amt;
RefreshSum();
break;
-
+
}
}
-
- private void autoSizeColumnToolStripMenuItem_Click(object sender, EventArgs e)
- {
- dv1.AutoResizeColumns();
- }
-
- private void exportListToolStripMenuItem_Click(object sender, EventArgs e)
- {
- dv1.ExportData("partlist.csv");
- }
-
- private void dv1_DataError(object sender, DataGridViewDataErrorEventArgs e)
- {
-
- }
}
}
diff --git a/SubProject/FPJ0000/fPartList.resx b/SubProject/FPJ0000/fPartList.resx
index d7bb551..f5ffeef 100644
--- a/SubProject/FPJ0000/fPartList.resx
+++ b/SubProject/FPJ0000/fPartList.resx
@@ -147,28 +147,55 @@
17, 17
-
- True
-
-
- True
-
-
- True
-
-
- True
-
535, 17
+
+
+
+ R0lGODlhEAAQAIQfAJXG2JXa+ZLO5ChrlkCy4TZ1kiVvpCN0trvo9SN5xTd4lrfh7iR9zo3S+EGz7JDJ
+ 4TaCromrvC9ymyV+0Dd3mTl1koe72YvN7LTj+9ne6N3g6v7+/0Cw2Stoh////////yH/C05FVFNDQVBF
+ Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAInwA/CBzooaAHgQUHKvRQoUABCgUlHFT4IYMCBAsQIIBg
+ wcBEgh0WCBDAgcAFDAc+fvDQIUKHDgMeEHDQIIFKlgoMGgjQoAGDmwUOehhg4EACBhM+GlzKVOkEBgkO
+ GBggNOhCBhgCBPBYUEGHmwkCOCDwYMCAll8XHghwgQCHkQDSLjRgAcKDBwAAKNCwgaIHiR4oOKygkuDE
+ pRQTK6YYEAA7
+
+
+
+
+ R0lGODlhEAAQAIQfALnik2aXQv7+/dPut73llbfala3LmW6gSWqdQ2eYRGqaSLfck568iYrUQN7yzF6R
+ PLTXlYjUP8XwmYfQQLbYl4jRQGiaQsPumNbyu7nglNPzsLXYlf7+/lCHK////////yH/C05FVFNDQVBF
+ Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAIlgA/CBzooaAHgQUHEvSgIEAABQUfHFTIwQECDAMwYDhg
+ oENCgRw8dBgAAECFBgsweJxYsAODDjApTIhAwCMHkCItGOxwgUCGlQQTeAgJsyhQg0iTGvzQ0qhND0IX
+ dtBwQcJKDxZsIhQpIcIECkVffmwpYUGDCiUheBQg1cCBAgU2QFDg4KZCDxIZOoQ48S7LpQoDCx4cEAA7
+
+
+
+
+ R0lGODlhEAAQAIQAAJXD9Iasxm6MqnSn2lZtjVaRyEpXbYu767TX/2KZztvr/4Gy5KrT/3ut32+gzlFh
+ e+r0/0RNX9/u/9Ln+8Xg//n8/4e36CkxQz9GVkSCvKjL35/N/Je91K7T5bDS4////yH/C05FVFNDQVBF
+ Mi4wAwEBAAAh+QQAAAAAACwAAAAAEAAQAAAIuQA/CBxIsKDACRwScggQwIGAhwIICBDYQcEEgwg+bNjw
+ QKCHCQgkQBgpQcKBCg0AEBCoAaRIkhIsVBigUiAHCgwkKNjJU8GAAx0/3NwIAMABCwsaDHCwIGgAChuK
+ HjiQdMDSAQYEPpWKtKqDBA6yfgiAwGhXpUsTJIgg0AGCo0nRfi1QgO0HAQyQNpCrtkAGDAIFbKi69GsC
+ un8FEohqdEFavxkyXAhMoPKDBwYMRIiAAcOFoAZDCwwIADs=
+
+
+
+
+ R0lGODlhEAAQAIQfAJfL/OTs9HWVsW6aUqnT+6bnZldwkYiux7TZ/O3z+UlVa/P2+ZfTW36wWJDLV4m7
+ 69nn78bi/qjL3qDP+VJhe4rAVa7S40NLXJ3bYJrA1ikxQz5FVdDU22OPRf///////yH/C05FVFNDQVBF
+ Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAIwQA9CBxIcOCHgx4gWLAgIUOGAwcESBTgAaEFCAEGaBwQ
+ IGOABwYqerCQsYBJBho7JHgAUqCEDjAxYGBQgYHKBAsoCMzQIUIEmA6CdkCAIOfOBT5/MnBQYSgBozCj
+ SoVJ4KkCDx1MFhhKFEFVAhMCXM1aAANMoh2qTgh7AWvZmQ6igp0AIEDbDg0aLA06YC4AABA2eBjgYcHG
+ vmv/Akgg2IMBDgsSdJwcAEICDhoECjDAmQIFBQouXNiwQYPOgqgLBgQAOw==
+
+
299, 17
469, 17
-
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
@@ -268,4 +295,7 @@
385, 17
+
+ 17, 56
+
\ No newline at end of file
diff --git a/SubProject/FPJ0000/fProjectList.Designer.cs b/SubProject/FPJ0000/fProjectList.Designer.cs
index 978374a..fb8dd29 100644
--- a/SubProject/FPJ0000/fProjectList.Designer.cs
+++ b/SubProject/FPJ0000/fProjectList.Designer.cs
@@ -30,8 +30,16 @@
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fProjectList));
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType11 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType12 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType13 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType14 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType15 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType16 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType17 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType18 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType19 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType20 = new FarPoint.Win.Spread.CellType.TextCellType();
this.bn = new System.Windows.Forms.BindingNavigator(this.components);
this.bindingNavigatorAddNewItem = new System.Windows.Forms.ToolStripButton();
this.bs = new System.Windows.Forms.BindingSource(this.components);
@@ -47,31 +55,42 @@
this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.projectsBindingNavigatorSaveItem = new System.Windows.Forms.ToolStripButton();
- this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
- this.dv1 = new System.Windows.Forms.DataGridView();
- this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.status = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewTextBoxColumn4 = 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.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewTextBoxColumn9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.cm = new System.Windows.Forms.ContextMenuStrip(this.components);
+ this.columnSizeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.autoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.resetToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.loadToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator();
this.refreshToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator();
this.partListToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ta = new FPJ0000.dsPRJTableAdapters.ProjectsTableAdapter();
this.tam = new FPJ0000.dsPRJTableAdapters.TableAdapterManager();
+ this.fpSpread1 = new FarPoint.Win.Spread.FpSpread();
+ this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
+ this.toolStrip1 = new System.Windows.Forms.ToolStrip();
+ this.lbStt = new System.Windows.Forms.ToolStripLabel();
+ this.dtSD = new System.Windows.Forms.ToolStripTextBox();
+ this.lbEnd = new System.Windows.Forms.ToolStripLabel();
+ this.dtED = new System.Windows.Forms.ToolStripTextBox();
+ this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
+ this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel();
+ this.cmbState = new System.Windows.Forms.ToolStripComboBox();
+ this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
+ this.toolStripLabel3 = new System.Windows.Forms.ToolStripLabel();
+ this.tbRequest = new System.Windows.Forms.ToolStripTextBox();
+ this.btSearch = new System.Windows.Forms.ToolStripButton();
+ this.scheduleToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
this.bn.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.dv1)).BeginInit();
this.cm.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).BeginInit();
+ this.toolStrip1.SuspendLayout();
this.SuspendLayout();
//
// bn
@@ -94,16 +113,15 @@
this.bindingNavigatorAddNewItem,
this.bindingNavigatorDeleteItem,
this.projectsBindingNavigatorSaveItem,
- this.toolStripButton1,
this.toolStripSeparator1});
- this.bn.Location = new System.Drawing.Point(0, 364);
+ this.bn.Location = new System.Drawing.Point(0, 446);
this.bn.MoveFirstItem = this.bindingNavigatorMoveFirstItem;
this.bn.MoveLastItem = this.bindingNavigatorMoveLastItem;
this.bn.MoveNextItem = this.bindingNavigatorMoveNextItem;
this.bn.MovePreviousItem = this.bindingNavigatorMovePreviousItem;
this.bn.Name = "bn";
this.bn.PositionItem = this.bindingNavigatorPositionItem;
- this.bn.Size = new System.Drawing.Size(738, 25);
+ this.bn.Size = new System.Drawing.Size(736, 25);
this.bn.TabIndex = 0;
this.bn.Text = "bindingNavigator1";
//
@@ -208,148 +226,88 @@
this.projectsBindingNavigatorSaveItem.Text = "Save(&S)";
this.projectsBindingNavigatorSaveItem.Click += new System.EventHandler(this.projectsBindingNavigatorSaveItem_Click);
//
- // toolStripButton1
- //
- this.toolStripButton1.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
- this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image")));
- this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
- this.toolStripButton1.Name = "toolStripButton1";
- this.toolStripButton1.Size = new System.Drawing.Size(66, 22);
- this.toolStripButton1.Text = "Refresh";
- this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click);
- //
// toolStripSeparator1
//
this.toolStripSeparator1.Name = "toolStripSeparator1";
this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25);
//
- // dv1
- //
- this.dv1.AllowUserToAddRows = false;
- this.dv1.AutoGenerateColumns = false;
- this.dv1.ColumnHeadersHeight = 30;
- this.dv1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
- this.dv1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
- this.dataGridViewTextBoxColumn1,
- this.status,
- this.dataGridViewTextBoxColumn2,
- this.dataGridViewTextBoxColumn3,
- this.dataGridViewTextBoxColumn4,
- this.dataGridViewTextBoxColumn5,
- this.dataGridViewTextBoxColumn6,
- this.dataGridViewTextBoxColumn7,
- this.dataGridViewTextBoxColumn8,
- this.dataGridViewTextBoxColumn9});
- this.dv1.ContextMenuStrip = this.cm;
- this.dv1.DataSource = this.bs;
- this.dv1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.dv1.Location = new System.Drawing.Point(0, 0);
- this.dv1.Name = "dv1";
- this.dv1.RowTemplate.Height = 23;
- this.dv1.Size = new System.Drawing.Size(738, 364);
- this.dv1.TabIndex = 1;
- this.dv1.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.dv1_DataError);
- //
- // dataGridViewTextBoxColumn1
- //
- 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.Name = "dataGridViewTextBoxColumn1";
- this.dataGridViewTextBoxColumn1.ReadOnly = true;
- 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
- //
- this.dataGridViewTextBoxColumn2.DataPropertyName = "name";
- this.dataGridViewTextBoxColumn2.HeaderText = "name";
- this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
- this.dataGridViewTextBoxColumn2.Width = 62;
- //
- // dataGridViewTextBoxColumn3
- //
- this.dataGridViewTextBoxColumn3.DataPropertyName = "pdate";
- this.dataGridViewTextBoxColumn3.HeaderText = "pdate";
- this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
- this.dataGridViewTextBoxColumn3.Width = 61;
- //
- // dataGridViewTextBoxColumn4
- //
- this.dataGridViewTextBoxColumn4.DataPropertyName = "request";
- this.dataGridViewTextBoxColumn4.HeaderText = "request";
- this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
- this.dataGridViewTextBoxColumn4.Width = 72;
- //
- // dataGridViewTextBoxColumn5
- //
- this.dataGridViewTextBoxColumn5.DataPropertyName = "reqstaff";
- this.dataGridViewTextBoxColumn5.HeaderText = "reqstaff";
- this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
- this.dataGridViewTextBoxColumn5.Width = 71;
- //
- // dataGridViewTextBoxColumn6
- //
- this.dataGridViewTextBoxColumn6.DataPropertyName = "sdate";
- this.dataGridViewTextBoxColumn6.HeaderText = "sdate";
- this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
- this.dataGridViewTextBoxColumn6.Width = 61;
- //
- // dataGridViewTextBoxColumn7
- //
- this.dataGridViewTextBoxColumn7.DataPropertyName = "edate";
- this.dataGridViewTextBoxColumn7.HeaderText = "edate";
- this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7";
- this.dataGridViewTextBoxColumn7.Width = 61;
- //
- // dataGridViewTextBoxColumn8
- //
- this.dataGridViewTextBoxColumn8.DataPropertyName = "odate";
- this.dataGridViewTextBoxColumn8.HeaderText = "odate";
- this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8";
- this.dataGridViewTextBoxColumn8.Width = 61;
- //
- // dataGridViewTextBoxColumn9
- //
- this.dataGridViewTextBoxColumn9.DataPropertyName = "memo";
- this.dataGridViewTextBoxColumn9.HeaderText = "memo";
- this.dataGridViewTextBoxColumn9.Name = "dataGridViewTextBoxColumn9";
- this.dataGridViewTextBoxColumn9.Width = 66;
- //
// cm
//
+ this.cm.Font = new System.Drawing.Font("맑은 고딕", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.cm.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.columnSizeToolStripMenuItem,
+ this.toolStripMenuItem2,
this.refreshToolStripMenuItem,
this.toolStripMenuItem1,
- this.partListToolStripMenuItem});
+ this.partListToolStripMenuItem,
+ this.scheduleToolStripMenuItem});
this.cm.Name = "contextMenuStrip1";
- this.cm.Size = new System.Drawing.Size(114, 54);
+ this.cm.Size = new System.Drawing.Size(226, 182);
+ //
+ // columnSizeToolStripMenuItem
+ //
+ this.columnSizeToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.autoToolStripMenuItem,
+ this.resetToolStripMenuItem,
+ this.saveToolStripMenuItem,
+ this.loadToolStripMenuItem});
+ this.columnSizeToolStripMenuItem.Name = "columnSizeToolStripMenuItem";
+ this.columnSizeToolStripMenuItem.Size = new System.Drawing.Size(225, 36);
+ this.columnSizeToolStripMenuItem.Text = "Column Size";
+ //
+ // autoToolStripMenuItem
+ //
+ this.autoToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("autoToolStripMenuItem.Image")));
+ this.autoToolStripMenuItem.Name = "autoToolStripMenuItem";
+ this.autoToolStripMenuItem.Size = new System.Drawing.Size(149, 36);
+ this.autoToolStripMenuItem.Text = "Auto";
+ this.autoToolStripMenuItem.Click += new System.EventHandler(this.autoToolStripMenuItem_Click);
+ //
+ // resetToolStripMenuItem
+ //
+ this.resetToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("resetToolStripMenuItem.Image")));
+ this.resetToolStripMenuItem.Name = "resetToolStripMenuItem";
+ this.resetToolStripMenuItem.Size = new System.Drawing.Size(149, 36);
+ this.resetToolStripMenuItem.Text = "Reset";
+ this.resetToolStripMenuItem.Click += new System.EventHandler(this.resetToolStripMenuItem_Click);
+ //
+ // saveToolStripMenuItem
+ //
+ this.saveToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("saveToolStripMenuItem.Image")));
+ this.saveToolStripMenuItem.Name = "saveToolStripMenuItem";
+ this.saveToolStripMenuItem.Size = new System.Drawing.Size(149, 36);
+ this.saveToolStripMenuItem.Text = "Save";
+ this.saveToolStripMenuItem.Click += new System.EventHandler(this.saveToolStripMenuItem_Click);
+ //
+ // loadToolStripMenuItem
+ //
+ this.loadToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("loadToolStripMenuItem.Image")));
+ this.loadToolStripMenuItem.Name = "loadToolStripMenuItem";
+ this.loadToolStripMenuItem.Size = new System.Drawing.Size(149, 36);
+ this.loadToolStripMenuItem.Text = "Load";
+ this.loadToolStripMenuItem.Click += new System.EventHandler(this.loadToolStripMenuItem_Click);
+ //
+ // toolStripMenuItem2
+ //
+ this.toolStripMenuItem2.Name = "toolStripMenuItem2";
+ this.toolStripMenuItem2.Size = new System.Drawing.Size(222, 6);
//
// refreshToolStripMenuItem
//
this.refreshToolStripMenuItem.Name = "refreshToolStripMenuItem";
- this.refreshToolStripMenuItem.Size = new System.Drawing.Size(113, 22);
+ this.refreshToolStripMenuItem.Size = new System.Drawing.Size(225, 36);
this.refreshToolStripMenuItem.Text = "Refresh";
this.refreshToolStripMenuItem.Click += new System.EventHandler(this.refreshToolStripMenuItem_Click);
//
// toolStripMenuItem1
//
this.toolStripMenuItem1.Name = "toolStripMenuItem1";
- this.toolStripMenuItem1.Size = new System.Drawing.Size(110, 6);
+ this.toolStripMenuItem1.Size = new System.Drawing.Size(222, 6);
//
// partListToolStripMenuItem
//
this.partListToolStripMenuItem.Name = "partListToolStripMenuItem";
- this.partListToolStripMenuItem.Size = new System.Drawing.Size(113, 22);
+ this.partListToolStripMenuItem.Size = new System.Drawing.Size(225, 36);
this.partListToolStripMenuItem.Text = "PartList";
this.partListToolStripMenuItem.Click += new System.EventHandler(this.partListToolStripMenuItem_Click);
//
@@ -360,16 +318,218 @@
// tam
//
this.tam.BackupDataSetBeforeUpdate = false;
+ this.tam.JobReportTableAdapter = null;
this.tam.ProjectsPartTableAdapter = null;
+ this.tam.ProjectsScheduleTableAdapter = null;
this.tam.ProjectsTableAdapter = this.ta;
this.tam.UpdateOrder = FPJ0000.dsPRJTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
//
+ // fpSpread1
+ //
+ this.fpSpread1.AccessibleDescription = "";
+ this.fpSpread1.ContextMenuStrip = this.cm;
+ this.fpSpread1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.fpSpread1.EditModeReplace = true;
+ this.fpSpread1.Font = new System.Drawing.Font("맑은 고딕", 9F);
+ this.fpSpread1.Location = new System.Drawing.Point(0, 25);
+ this.fpSpread1.Name = "fpSpread1";
+ this.fpSpread1.Sheets.AddRange(new FarPoint.Win.Spread.SheetView[] {
+ this.fpSpread1_Sheet1});
+ this.fpSpread1.Size = new System.Drawing.Size(736, 421);
+ this.fpSpread1.TabIndex = 2;
+ //
+ // fpSpread1_Sheet1
+ //
+ this.fpSpread1_Sheet1.Reset();
+ this.fpSpread1_Sheet1.SheetName = "Sheet1";
+ // Formulas and custom names must be loaded with R1C1 reference style
+ this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.R1C1;
+ this.fpSpread1_Sheet1.ColumnCount = 10;
+ this.fpSpread1_Sheet1.ActiveColumnIndex = -1;
+ this.fpSpread1_Sheet1.ActiveRowIndex = -1;
+ this.fpSpread1_Sheet1.AutoGenerateColumns = false;
+ this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 0).Value = "Date";
+ this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 1).Value = "Stat";
+ this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 2).Value = "Title";
+ this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 3).Value = "User";
+ this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 4).Value = "Req.Dept";
+ this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 5).Value = "Req.Staff";
+ this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 6).Value = "Start";
+ this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 7).Value = "End";
+ this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 8).Value = "Release";
+ this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 28F;
+ this.fpSpread1_Sheet1.Columns.Get(0).CellType = textCellType11;
+ this.fpSpread1_Sheet1.Columns.Get(0).DataField = "pdate";
+ this.fpSpread1_Sheet1.Columns.Get(0).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(0).Label = "Date";
+ this.fpSpread1_Sheet1.Columns.Get(0).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(0).Width = 113F;
+ this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType12;
+ this.fpSpread1_Sheet1.Columns.Get(1).DataField = "statusName";
+ this.fpSpread1_Sheet1.Columns.Get(1).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(1).Label = "Stat";
+ this.fpSpread1_Sheet1.Columns.Get(1).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(1).Width = 113F;
+ this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType13;
+ this.fpSpread1_Sheet1.Columns.Get(2).DataField = "name";
+ this.fpSpread1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
+ this.fpSpread1_Sheet1.Columns.Get(2).Label = "Title";
+ this.fpSpread1_Sheet1.Columns.Get(2).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(2).Width = 113F;
+ this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType14;
+ this.fpSpread1_Sheet1.Columns.Get(3).DataField = "usermain";
+ this.fpSpread1_Sheet1.Columns.Get(3).Label = "User";
+ this.fpSpread1_Sheet1.Columns.Get(3).Width = 70F;
+ this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType15;
+ this.fpSpread1_Sheet1.Columns.Get(4).DataField = "request";
+ this.fpSpread1_Sheet1.Columns.Get(4).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(4).Label = "Req.Dept";
+ this.fpSpread1_Sheet1.Columns.Get(4).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(4).Width = 113F;
+ this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType16;
+ this.fpSpread1_Sheet1.Columns.Get(5).DataField = "reqstaff";
+ this.fpSpread1_Sheet1.Columns.Get(5).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(5).Label = "Req.Staff";
+ this.fpSpread1_Sheet1.Columns.Get(5).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(5).Width = 113F;
+ this.fpSpread1_Sheet1.Columns.Get(6).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
+ this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType17;
+ this.fpSpread1_Sheet1.Columns.Get(6).DataField = "sdate";
+ this.fpSpread1_Sheet1.Columns.Get(6).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(6).Label = "Start";
+ this.fpSpread1_Sheet1.Columns.Get(6).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(6).Width = 113F;
+ this.fpSpread1_Sheet1.Columns.Get(7).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
+ this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType18;
+ this.fpSpread1_Sheet1.Columns.Get(7).DataField = "edate";
+ this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(7).Label = "End";
+ this.fpSpread1_Sheet1.Columns.Get(7).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(7).Width = 113F;
+ this.fpSpread1_Sheet1.Columns.Get(8).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
+ this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType19;
+ this.fpSpread1_Sheet1.Columns.Get(8).DataField = "odate";
+ this.fpSpread1_Sheet1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(8).Label = "Release";
+ this.fpSpread1_Sheet1.Columns.Get(8).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(8).Width = 113F;
+ this.fpSpread1_Sheet1.Columns.Get(9).CellType = textCellType20;
+ this.fpSpread1_Sheet1.Columns.Get(9).DataField = "memo";
+ this.fpSpread1_Sheet1.Columns.Get(9).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
+ this.fpSpread1_Sheet1.Columns.Get(9).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(9).Width = 113F;
+ this.fpSpread1_Sheet1.DataAutoSizeColumns = false;
+ this.fpSpread1_Sheet1.DataSource = this.bs;
+ this.fpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false;
+ this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1;
+ //
+ // toolStrip1
+ //
+ this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.lbStt,
+ this.dtSD,
+ this.lbEnd,
+ this.dtED,
+ this.toolStripSeparator2,
+ this.toolStripLabel1,
+ this.cmbState,
+ this.toolStripSeparator3,
+ this.toolStripLabel3,
+ this.tbRequest,
+ this.btSearch});
+ this.toolStrip1.Location = new System.Drawing.Point(0, 0);
+ this.toolStrip1.Name = "toolStrip1";
+ this.toolStrip1.Size = new System.Drawing.Size(736, 25);
+ this.toolStrip1.TabIndex = 4;
+ this.toolStrip1.Text = "toolStrip1";
+ //
+ // lbStt
+ //
+ this.lbStt.Name = "lbStt";
+ this.lbStt.Size = new System.Drawing.Size(41, 22);
+ this.lbStt.Text = "Period";
+ //
+ // dtSD
+ //
+ this.dtSD.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.dtSD.Name = "dtSD";
+ this.dtSD.Size = new System.Drawing.Size(90, 25);
+ this.dtSD.Text = "1982-11-23";
+ this.dtSD.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+ //
+ // lbEnd
+ //
+ this.lbEnd.Name = "lbEnd";
+ this.lbEnd.Size = new System.Drawing.Size(15, 22);
+ this.lbEnd.Text = "~";
+ //
+ // dtED
+ //
+ this.dtED.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.dtED.Name = "dtED";
+ this.dtED.Size = new System.Drawing.Size(90, 25);
+ this.dtED.Text = "1982-11-23";
+ this.dtED.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+ //
+ // toolStripSeparator2
+ //
+ this.toolStripSeparator2.Name = "toolStripSeparator2";
+ this.toolStripSeparator2.Size = new System.Drawing.Size(6, 25);
+ //
+ // toolStripLabel1
+ //
+ this.toolStripLabel1.Name = "toolStripLabel1";
+ this.toolStripLabel1.Size = new System.Drawing.Size(34, 22);
+ this.toolStripLabel1.Text = "State";
+ //
+ // cmbState
+ //
+ this.cmbState.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.cmbState.Name = "cmbState";
+ this.cmbState.Size = new System.Drawing.Size(100, 25);
+ //
+ // toolStripSeparator3
+ //
+ this.toolStripSeparator3.Name = "toolStripSeparator3";
+ this.toolStripSeparator3.Size = new System.Drawing.Size(6, 25);
+ //
+ // toolStripLabel3
+ //
+ this.toolStripLabel3.Name = "toolStripLabel3";
+ this.toolStripLabel3.Size = new System.Drawing.Size(66, 22);
+ this.toolStripLabel3.Text = "User Name";
+ this.toolStripLabel3.Click += new System.EventHandler(this.toolStripLabel3_Click);
+ //
+ // tbRequest
+ //
+ this.tbRequest.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.tbRequest.Name = "tbRequest";
+ this.tbRequest.Size = new System.Drawing.Size(70, 25);
+ this.tbRequest.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+ //
+ // btSearch
+ //
+ this.btSearch.Image = ((System.Drawing.Image)(resources.GetObject("btSearch.Image")));
+ this.btSearch.ImageTransparentColor = System.Drawing.Color.Magenta;
+ this.btSearch.Name = "btSearch";
+ this.btSearch.Size = new System.Drawing.Size(81, 22);
+ this.btSearch.Text = "Refresh(&R)";
+ this.btSearch.Click += new System.EventHandler(this.btSearch_Click);
+ //
+ // scheduleToolStripMenuItem
+ //
+ this.scheduleToolStripMenuItem.Name = "scheduleToolStripMenuItem";
+ this.scheduleToolStripMenuItem.Size = new System.Drawing.Size(225, 36);
+ this.scheduleToolStripMenuItem.Text = "Schedule";
+ this.scheduleToolStripMenuItem.Click += new System.EventHandler(this.scheduleToolStripMenuItem_Click);
+ //
// fProjectList
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(738, 389);
- this.Controls.Add(this.dv1);
+ this.ClientSize = new System.Drawing.Size(736, 471);
+ this.Controls.Add(this.fpSpread1);
+ this.Controls.Add(this.toolStrip1);
this.Controls.Add(this.bn);
this.Name = "fProjectList";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
@@ -380,8 +540,11 @@
this.bn.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.dv1)).EndInit();
this.cm.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).EndInit();
+ this.toolStrip1.ResumeLayout(false);
+ this.toolStrip1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
@@ -406,22 +569,31 @@
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2;
private System.Windows.Forms.ToolStripButton projectsBindingNavigatorSaveItem;
- private System.Windows.Forms.DataGridView dv1;
- private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
- private System.Windows.Forms.DataGridViewTextBoxColumn status;
- private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
- private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
- private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;
- private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn5;
- private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn6;
- private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn7;
- private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn8;
- private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn9;
private System.Windows.Forms.ContextMenuStrip cm;
private System.Windows.Forms.ToolStripMenuItem refreshToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem1;
private System.Windows.Forms.ToolStripMenuItem partListToolStripMenuItem;
- private System.Windows.Forms.ToolStripButton toolStripButton1;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
+ private FarPoint.Win.Spread.FpSpread fpSpread1;
+ private System.Windows.Forms.ToolStripMenuItem columnSizeToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem autoToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem resetToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem saveToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem loadToolStripMenuItem;
+ private System.Windows.Forms.ToolStripSeparator toolStripMenuItem2;
+ private System.Windows.Forms.ToolStrip toolStrip1;
+ private System.Windows.Forms.ToolStripLabel lbStt;
+ private System.Windows.Forms.ToolStripTextBox dtSD;
+ private System.Windows.Forms.ToolStripLabel lbEnd;
+ private System.Windows.Forms.ToolStripTextBox dtED;
+ private System.Windows.Forms.ToolStripSeparator toolStripSeparator2;
+ private System.Windows.Forms.ToolStripLabel toolStripLabel1;
+ private System.Windows.Forms.ToolStripComboBox cmbState;
+ private System.Windows.Forms.ToolStripSeparator toolStripSeparator3;
+ private System.Windows.Forms.ToolStripLabel toolStripLabel3;
+ private System.Windows.Forms.ToolStripTextBox tbRequest;
+ private System.Windows.Forms.ToolStripButton btSearch;
+ private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1;
+ private System.Windows.Forms.ToolStripMenuItem scheduleToolStripMenuItem;
}
}
\ No newline at end of file
diff --git a/SubProject/FPJ0000/fProjectList.cs b/SubProject/FPJ0000/fProjectList.cs
index 80af50e..73de434 100644
--- a/SubProject/FPJ0000/fProjectList.cs
+++ b/SubProject/FPJ0000/fProjectList.cs
@@ -6,47 +6,65 @@ using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
+using util = FCOMMON.Util;
namespace FPJ0000
{
- public partial class fProjectList : Form
+ public partial class fProjectList : FCOMMON.fBase
{
+ string fn_fpcolsize = "";
public fProjectList()
{
InitializeComponent();
+ fn_fpcolsize = util.MakeFilePath(util.CurrentPath, "formSetting", "fp_" + this.Name + ".ini");
+ this.dsMSSQL.Projects.TableNewRow += Projects_TableNewRow;
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.tbRequest.Text = FCOMMON.info.Login.nameK;
- RefreshList();
-
+ //state list
+ var stList = FCOMMON.DBM.getCodeList("01");
+ this.cmbState.Items.Clear();
+ cmbState.Items.Add("-- All --");
+ // cmbState.Items.Add("-- incomplete --");
+ foreach (var item in stList)
+ cmbState.Items.Add(item);
+ this.cmbState.SelectedIndex = 0;
+
+ refreshData();
+ FPUtil.ColSizeLoad(ref this.fpSpread1, fn_fpcolsize);
}
- void RefreshList()
+ void refreshData()
{
- this.ta.Fill(this.dsMSSQL.Projects);
- this.dsMSSQL.Projects.TableNewRow += Projects_TableNewRow;
- dv1.AutoResizeColumns();
+
+ string state = "%";
+ if (cmbState.SelectedIndex > 0) state = cmbState.Text.Split(',')[0].Substring(1);
+ string request = "%";
+ if (tbRequest.Text.Trim() != "") request = "%" + this.tbRequest.Text.Trim() + "%";
+
+ this.ta.Fill(this.dsMSSQL.Projects,"%");
}
- private void projectsBindingNavigatorSaveItem_Click(object sender, EventArgs e)
+ void saveData()
{
this.Validate();
this.bs.EndEdit();
this.tam.UpdateAll(this.dsMSSQL);
+ }
+
+ private void projectsBindingNavigatorSaveItem_Click(object sender, EventArgs e)
+ {
+ saveData();
}
void Projects_TableNewRow(object sender, DataTableNewRowEventArgs e)
@@ -55,14 +73,9 @@ namespace FPJ0000
e.Row["wdate"] = DateTime.Now;
}
- private void toolStripButton1_Click(object sender, EventArgs e)
- {
- RefreshList();
- }
-
private void refreshToolStripMenuItem_Click(object sender, EventArgs e)
{
- RefreshList();
+ refreshData();
}
private void partListToolStripMenuItem_Click(object sender, EventArgs e)
@@ -75,9 +88,54 @@ namespace FPJ0000
f.Show();
}
- private void dv1_DataError(object sender, DataGridViewDataErrorEventArgs e)
- {
+ private void autoToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ this.fpSpread1.ActiveSheet.DataAutoSizeColumns = true;
+
+ for (int i = 0; i < this.fpSpread1.ActiveSheet.Rows.Count; i++)
+ this.fpSpread1.ActiveSheet.SetRowHeight(i, 25);
+ //dv1.AutoResizeColumns();
+ }
+
+ private void resetToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ foreach (FarPoint.Win.Spread.Column col in this.fpSpread1.ActiveSheet.Columns)
+ {
+ col.Width = 100;
+ }
+ }
+
+ private void saveToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ FPUtil.ColsizeSave(this.fpSpread1, fn_fpcolsize);
+ }
+
+ private void loadToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ FPUtil.ColSizeLoad(ref this.fpSpread1, fn_fpcolsize);
+ }
+
+ private void btSearch_Click(object sender, EventArgs e)
+ {
+ refreshData();
+ }
+
+ private void toolStripLabel3_Click(object sender, EventArgs e)
+ {
+ //사용자목록처리
+ tbRequest.Text = string.Empty;
+ refreshData();
+ }
+
+ private void scheduleToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ var drv = this.bs.Current as DataRowView;
+ if (drv == null) return;
+ var dr = drv.Row as dsPRJ.ProjectsRow;
+ var f = new fProjectSchedule(dr.idx);
+ f.MdiParent = this.MdiParent;
+ f.Show();
}
}
}
diff --git a/SubProject/FPJ0000/fProjectList.resx b/SubProject/FPJ0000/fProjectList.resx
index 61c162a..1d7c9e1 100644
--- a/SubProject/FPJ0000/fProjectList.resx
+++ b/SubProject/FPJ0000/fProjectList.resx
@@ -198,31 +198,72 @@
dtINAGGiDUDGyGpoawAxeNSAQWkAORiqnRLAwAAA9EMMU8Daa3MAAAAASUVORK5CYII=
-
-
- iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
- YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG
- YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9
- 0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw
- bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc
- VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9
- c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32
- Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo
- mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+
- kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D
- TgDQASA1MVpwzwAAAABJRU5ErkJggg==
-
-
-
- True
+
+ 17, 17
387, 17
+
+
+ R0lGODlhEAAQAIQfAJXG2JXa+ZLO5ChrlkCy4TZ1kiVvpCN0trvo9SN5xTd4lrfh7iR9zo3S+EGz7JDJ
+ 4TaCromrvC9ymyV+0Dd3mTl1koe72YvN7LTj+9ne6N3g6v7+/0Cw2Stoh////////yH/C05FVFNDQVBF
+ Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAInwA/CBzooaAHgQUHKvRQoUABCgUlHFT4IYMCBAsQIIBg
+ wcBEgh0WCBDAgcAFDAc+fvDQIUKHDgMeEHDQIIFKlgoMGgjQoAGDmwUOehhg4EACBhM+GlzKVOkEBgkO
+ GBggNOhCBhgCBPBYUEGHmwkCOCDwYMCAll8XHghwgQCHkQDSLjRgAcKDBwAAKNCwgaIHiR4oOKygkuDE
+ pRQTK6YYEAA7
+
+
+
+
+ R0lGODlhEAAQAIQfALnik2aXQv7+/dPut73llbfala3LmW6gSWqdQ2eYRGqaSLfck568iYrUQN7yzF6R
+ PLTXlYjUP8XwmYfQQLbYl4jRQGiaQsPumNbyu7nglNPzsLXYlf7+/lCHK////////yH/C05FVFNDQVBF
+ Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAIlgA/CBzooaAHgQUHEvSgIEAABQUfHFTIwQECDAMwYDhg
+ oENCgRw8dBgAAECFBgsweJxYsAODDjApTIhAwCMHkCItGOxwgUCGlQQTeAgJsyhQg0iTGvzQ0qhND0IX
+ dtBwQcJKDxZsIhQpIcIECkVffmwpYUGDCiUheBQg1cCBAgU2QFDg4KZCDxIZOoQ48S7LpQoDCx4cEAA7
+
+
+
+
+ R0lGODlhEAAQAIQAAJXD9Iasxm6MqnSn2lZtjVaRyEpXbYu767TX/2KZztvr/4Gy5KrT/3ut32+gzlFh
+ e+r0/0RNX9/u/9Ln+8Xg//n8/4e36CkxQz9GVkSCvKjL35/N/Je91K7T5bDS4////yH/C05FVFNDQVBF
+ Mi4wAwEBAAAh+QQAAAAAACwAAAAAEAAQAAAIuQA/CBxIsKDACRwScggQwIGAhwIICBDYQcEEgwg+bNjw
+ QKCHCQgkQBgpQcKBCg0AEBCoAaRIkhIsVBigUiAHCgwkKNjJU8GAAx0/3NwIAMABCwsaDHCwIGgAChuK
+ HjiQdMDSAQYEPpWKtKqDBA6yfgiAwGhXpUsTJIgg0AGCo0nRfi1QgO0HAQyQNpCrtkAGDAIFbKi69GsC
+ un8FEohqdEFavxkyXAhMoPKDBwYMRIiAAcOFoAZDCwwIADs=
+
+
+
+
+ R0lGODlhEAAQAIQfAJfL/OTs9HWVsW6aUqnT+6bnZldwkYiux7TZ/O3z+UlVa/P2+ZfTW36wWJDLV4m7
+ 69nn78bi/qjL3qDP+VJhe4rAVa7S40NLXJ3bYJrA1ikxQz5FVdDU22OPRf///////yH/C05FVFNDQVBF
+ Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAIwQA9CBxIcOCHgx4gWLAgIUOGAwcESBTgAaEFCAEGaBwQ
+ IGOABwYqerCQsYBJBho7JHgAUqCEDjAxYGBQgYHKBAsoCMzQIUIEmA6CdkCAIOfOBT5/MnBQYSgBozCj
+ SoVJ4KkCDx1MFhhKFEFVAhMCXM1aAANMoh2qTgh7AWvZmQ6igp0AIEDbDg0aLA06YC4AABA2eBjgYcHG
+ vmv/Akgg2IMBDgsSdJwcAEICDhoECjDAmQIFBQouXNiwQYPOgqgLBgQAOw==
+
+
186, 17
248, 17
+
+ 17, 56
+
+
+ 607, 17
+
+
+
+ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
+ YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAE4SURBVDhPtZPPasJAEMbzPn0FwWA92JtP4NGKB1/DP7ei
+ QSsovkChh7ZBrCfpyR4sikopUgq9StFzM/UbZ5asSS4FfzAkO7vft5udiZMEnSBpk5dhFJmncjdHxXaG
+ A+9K4SbFT1luEwQBbXavVO5d0nI3ovnW5yeiMriiu+kt5asXbABEdgRigAUQDr+aHLU3lxoLl/yPJhvF
+ GsiYJ/vPdX5qPK3bVJ25VFukafztGQNsKHJ791I3w+8KcpNth8XDz5YxACI/gsR1J8sTYcO4UIzwv1gG
+ cTshgJ5IT8hChTMHsHi+v+fvffmxywVwN2FDkdsGEOK2ceu4feQ0tDqKyKMGqDfqjvprLzyswuX7Tf4E
+ dBo6zn/3OB7XHovRyuhQ6+hhYKA9DpL+A1keRebNAhkaJH0OHOcP031C4EjYr6wAAAAASUVORK5CYII=
+
+
\ No newline at end of file