• R/O
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

練習用です。いろんなものがごちゃまぜです。


コミットメタ情報

リビジョン367 (tree)
日時2017-10-11 13:33:24
作者bellyoshi

ログメッセージ

変更サマリ

差分

--- vbdb/accdb1/accdb1/commonUtils.vb (nonexistent)
+++ vbdb/accdb1/accdb1/commonUtils.vb (revision 367)
@@ -0,0 +1,7 @@
1+Public Class commonUtils
2+ Public Shared Sub Setdrv(ByVal drv As Data.DataRowView, ByVal itemName As String, itemValue As Integer)
3+ If IsDBNull(drv(itemName)) OrElse drv(itemName) <> itemValue Then
4+ drv(itemName) = itemValue
5+ End If
6+ End Sub
7+End Class
--- vbdb/accdb1/accdb1/frmStaff.Designer.vb (revision 366)
+++ vbdb/accdb1/accdb1/frmStaff.Designer.vb (revision 367)
@@ -23,78 +23,134 @@
2323 <System.Diagnostics.DebuggerStepThrough()> _
2424 Private Sub InitializeComponent()
2525 Me.components = New System.ComponentModel.Container()
26- Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(frmStaff))
2726 Dim Staff_codeLabel As System.Windows.Forms.Label
2827 Dim Staff_nameLabel As System.Windows.Forms.Label
2928 Dim Staff_kanaLabel As System.Windows.Forms.Label
30- Dim Staff_sexLabel As System.Windows.Forms.Label
3129 Dim Staff_sectionLabel As System.Windows.Forms.Label
3230 Dim EmailLabel As System.Windows.Forms.Label
3331 Dim Ext_phoneLabel As System.Windows.Forms.Label
3432 Dim MemoLabel As System.Windows.Forms.Label
3533 Dim Input_dateLabel As System.Windows.Forms.Label
36- Me.ProjectManageDataSet = New accdb1.projectManageDataSet()
37- Me.Tbl_staffBindingSource = New System.Windows.Forms.BindingSource(Me.components)
38- Me.Tbl_staffTableAdapter = New accdb1.projectManageDataSetTableAdapters.tbl_staffTableAdapter()
39- Me.TableAdapterManager = New accdb1.projectManageDataSetTableAdapters.TableAdapterManager()
34+ Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(frmStaff))
4035 Me.Tbl_staffBindingNavigator = New System.Windows.Forms.BindingNavigator(Me.components)
36+ Me.BindingNavigatorAddNewItem = New System.Windows.Forms.ToolStripButton()
37+ Me.BindingNavigatorCountItem = New System.Windows.Forms.ToolStripLabel()
38+ Me.BindingNavigatorDeleteItem = New System.Windows.Forms.ToolStripButton()
4139 Me.BindingNavigatorMoveFirstItem = New System.Windows.Forms.ToolStripButton()
4240 Me.BindingNavigatorMovePreviousItem = New System.Windows.Forms.ToolStripButton()
4341 Me.BindingNavigatorSeparator = New System.Windows.Forms.ToolStripSeparator()
4442 Me.BindingNavigatorPositionItem = New System.Windows.Forms.ToolStripTextBox()
45- Me.BindingNavigatorCountItem = New System.Windows.Forms.ToolStripLabel()
4643 Me.BindingNavigatorSeparator1 = New System.Windows.Forms.ToolStripSeparator()
4744 Me.BindingNavigatorMoveNextItem = New System.Windows.Forms.ToolStripButton()
4845 Me.BindingNavigatorMoveLastItem = New System.Windows.Forms.ToolStripButton()
4946 Me.BindingNavigatorSeparator2 = New System.Windows.Forms.ToolStripSeparator()
50- Me.BindingNavigatorAddNewItem = New System.Windows.Forms.ToolStripButton()
51- Me.BindingNavigatorDeleteItem = New System.Windows.Forms.ToolStripButton()
5247 Me.Tbl_staffBindingNavigatorSaveItem = New System.Windows.Forms.ToolStripButton()
5348 Me.Staff_codeTextBox = New System.Windows.Forms.TextBox()
5449 Me.Staff_nameTextBox = New System.Windows.Forms.TextBox()
5550 Me.Staff_kanaTextBox = New System.Windows.Forms.TextBox()
56- Me.Staff_sexTextBox = New System.Windows.Forms.TextBox()
57- Me.Staff_sectionTextBox = New System.Windows.Forms.TextBox()
5851 Me.EmailTextBox = New System.Windows.Forms.TextBox()
5952 Me.Ext_phoneTextBox = New System.Windows.Forms.TextBox()
6053 Me.Resign_flagCheckBox = New System.Windows.Forms.CheckBox()
6154 Me.MemoTextBox = New System.Windows.Forms.TextBox()
6255 Me.Input_dateDateTimePicker = New System.Windows.Forms.DateTimePicker()
56+ Me.GroupBox1 = New System.Windows.Forms.GroupBox()
57+ Me.rbFemale = New System.Windows.Forms.RadioButton()
58+ Me.rbMale = New System.Windows.Forms.RadioButton()
59+ Me.Tbl_staffBindingSource = New System.Windows.Forms.BindingSource(Me.components)
60+ Me.ProjectManageDataSet = New accdb1.projectManageDataSet()
61+ Me.Tbl_staffTableAdapter = New accdb1.projectManageDataSetTableAdapters.tbl_staffTableAdapter()
62+ Me.TableAdapterManager = New accdb1.projectManageDataSetTableAdapters.TableAdapterManager()
63+ Me.Staff_sectionComboBox = New System.Windows.Forms.ComboBox()
64+ Me.Tbl_sectionBindingSource = New System.Windows.Forms.BindingSource(Me.components)
65+ Me.Tbl_sectionTableAdapter = New accdb1.projectManageDataSetTableAdapters.tbl_sectionTableAdapter()
6366 Staff_codeLabel = New System.Windows.Forms.Label()
6467 Staff_nameLabel = New System.Windows.Forms.Label()
6568 Staff_kanaLabel = New System.Windows.Forms.Label()
66- Staff_sexLabel = New System.Windows.Forms.Label()
6769 Staff_sectionLabel = New System.Windows.Forms.Label()
6870 EmailLabel = New System.Windows.Forms.Label()
6971 Ext_phoneLabel = New System.Windows.Forms.Label()
7072 MemoLabel = New System.Windows.Forms.Label()
7173 Input_dateLabel = New System.Windows.Forms.Label()
72- CType(Me.ProjectManageDataSet, System.ComponentModel.ISupportInitialize).BeginInit()
73- CType(Me.Tbl_staffBindingSource, System.ComponentModel.ISupportInitialize).BeginInit()
7474 CType(Me.Tbl_staffBindingNavigator, System.ComponentModel.ISupportInitialize).BeginInit()
7575 Me.Tbl_staffBindingNavigator.SuspendLayout()
76+ Me.GroupBox1.SuspendLayout()
77+ CType(Me.Tbl_staffBindingSource, System.ComponentModel.ISupportInitialize).BeginInit()
78+ CType(Me.ProjectManageDataSet, System.ComponentModel.ISupportInitialize).BeginInit()
79+ CType(Me.Tbl_sectionBindingSource, System.ComponentModel.ISupportInitialize).BeginInit()
7680 Me.SuspendLayout()
7781 '
78- 'ProjectManageDataSet
82+ 'Staff_codeLabel
7983 '
80- Me.ProjectManageDataSet.DataSetName = "projectManageDataSet"
81- Me.ProjectManageDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema
84+ Staff_codeLabel.AutoSize = True
85+ Staff_codeLabel.Location = New System.Drawing.Point(23, 39)
86+ Staff_codeLabel.Name = "Staff_codeLabel"
87+ Staff_codeLabel.Size = New System.Drawing.Size(80, 15)
88+ Staff_codeLabel.TabIndex = 1
89+ Staff_codeLabel.Text = "スタッフコード"
8290 '
83- 'Tbl_staffBindingSource
91+ 'Staff_nameLabel
8492 '
85- Me.Tbl_staffBindingSource.DataMember = "tbl_staff"
86- Me.Tbl_staffBindingSource.DataSource = Me.ProjectManageDataSet
93+ Staff_nameLabel.AutoSize = True
94+ Staff_nameLabel.Location = New System.Drawing.Point(23, 67)
95+ Staff_nameLabel.Name = "Staff_nameLabel"
96+ Staff_nameLabel.Size = New System.Drawing.Size(62, 15)
97+ Staff_nameLabel.TabIndex = 3
98+ Staff_nameLabel.Text = "スタッフ名"
8799 '
88- 'Tbl_staffTableAdapter
100+ 'Staff_kanaLabel
89101 '
90- Me.Tbl_staffTableAdapter.ClearBeforeFill = True
102+ Staff_kanaLabel.AutoSize = True
103+ Staff_kanaLabel.Location = New System.Drawing.Point(23, 95)
104+ Staff_kanaLabel.Name = "Staff_kanaLabel"
105+ Staff_kanaLabel.Size = New System.Drawing.Size(85, 15)
106+ Staff_kanaLabel.TabIndex = 5
107+ Staff_kanaLabel.Text = "スタッフ名カナ"
91108 '
92- 'TableAdapterManager
109+ 'Staff_sectionLabel
93110 '
94- Me.TableAdapterManager.BackupDataSetBeforeUpdate = False
95- Me.TableAdapterManager.tbl_staffTableAdapter = Me.Tbl_staffTableAdapter
96- Me.TableAdapterManager.UpdateOrder = accdb1.projectManageDataSetTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete
111+ Staff_sectionLabel.AutoSize = True
112+ Staff_sectionLabel.Location = New System.Drawing.Point(23, 151)
113+ Staff_sectionLabel.Name = "Staff_sectionLabel"
114+ Staff_sectionLabel.Size = New System.Drawing.Size(67, 15)
115+ Staff_sectionLabel.TabIndex = 8
116+ Staff_sectionLabel.Text = "所属部署"
97117 '
118+ 'EmailLabel
119+ '
120+ EmailLabel.AutoSize = True
121+ EmailLabel.Location = New System.Drawing.Point(23, 179)
122+ EmailLabel.Name = "EmailLabel"
123+ EmailLabel.Size = New System.Drawing.Size(42, 15)
124+ EmailLabel.TabIndex = 10
125+ EmailLabel.Text = "email:"
126+ '
127+ 'Ext_phoneLabel
128+ '
129+ Ext_phoneLabel.AutoSize = True
130+ Ext_phoneLabel.Location = New System.Drawing.Point(23, 207)
131+ Ext_phoneLabel.Name = "Ext_phoneLabel"
132+ Ext_phoneLabel.Size = New System.Drawing.Size(67, 15)
133+ Ext_phoneLabel.TabIndex = 12
134+ Ext_phoneLabel.Text = "内線番号"
135+ '
136+ 'MemoLabel
137+ '
138+ MemoLabel.AutoSize = True
139+ MemoLabel.Location = New System.Drawing.Point(28, 238)
140+ MemoLabel.Name = "MemoLabel"
141+ MemoLabel.Size = New System.Drawing.Size(37, 15)
142+ MemoLabel.TabIndex = 14
143+ MemoLabel.Text = "備考"
144+ '
145+ 'Input_dateLabel
146+ '
147+ Input_dateLabel.AutoSize = True
148+ Input_dateLabel.Location = New System.Drawing.Point(23, 380)
149+ Input_dateLabel.Name = "Input_dateLabel"
150+ Input_dateLabel.Size = New System.Drawing.Size(52, 15)
151+ Input_dateLabel.TabIndex = 16
152+ Input_dateLabel.Text = "入力日"
153+ '
98154 'Tbl_staffBindingNavigator
99155 '
100156 Me.Tbl_staffBindingNavigator.AddNewItem = Me.BindingNavigatorAddNewItem
@@ -110,10 +166,35 @@
110166 Me.Tbl_staffBindingNavigator.MovePreviousItem = Me.BindingNavigatorMovePreviousItem
111167 Me.Tbl_staffBindingNavigator.Name = "Tbl_staffBindingNavigator"
112168 Me.Tbl_staffBindingNavigator.PositionItem = Me.BindingNavigatorPositionItem
113- Me.Tbl_staffBindingNavigator.Size = New System.Drawing.Size(345, 27)
169+ Me.Tbl_staffBindingNavigator.Size = New System.Drawing.Size(398, 27)
114170 Me.Tbl_staffBindingNavigator.TabIndex = 0
115171 Me.Tbl_staffBindingNavigator.Text = "BindingNavigator1"
116172 '
173+ 'BindingNavigatorAddNewItem
174+ '
175+ Me.BindingNavigatorAddNewItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image
176+ Me.BindingNavigatorAddNewItem.Image = CType(resources.GetObject("BindingNavigatorAddNewItem.Image"), System.Drawing.Image)
177+ Me.BindingNavigatorAddNewItem.Name = "BindingNavigatorAddNewItem"
178+ Me.BindingNavigatorAddNewItem.RightToLeftAutoMirrorImage = True
179+ Me.BindingNavigatorAddNewItem.Size = New System.Drawing.Size(24, 24)
180+ Me.BindingNavigatorAddNewItem.Text = "新規追加"
181+ '
182+ 'BindingNavigatorCountItem
183+ '
184+ Me.BindingNavigatorCountItem.Name = "BindingNavigatorCountItem"
185+ Me.BindingNavigatorCountItem.Size = New System.Drawing.Size(37, 24)
186+ Me.BindingNavigatorCountItem.Text = "/ {0}"
187+ Me.BindingNavigatorCountItem.ToolTipText = "項目の総数"
188+ '
189+ 'BindingNavigatorDeleteItem
190+ '
191+ Me.BindingNavigatorDeleteItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image
192+ Me.BindingNavigatorDeleteItem.Image = CType(resources.GetObject("BindingNavigatorDeleteItem.Image"), System.Drawing.Image)
193+ Me.BindingNavigatorDeleteItem.Name = "BindingNavigatorDeleteItem"
194+ Me.BindingNavigatorDeleteItem.RightToLeftAutoMirrorImage = True
195+ Me.BindingNavigatorDeleteItem.Size = New System.Drawing.Size(24, 24)
196+ Me.BindingNavigatorDeleteItem.Text = "削除"
197+ '
117198 'BindingNavigatorMoveFirstItem
118199 '
119200 Me.BindingNavigatorMoveFirstItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image
@@ -120,7 +201,7 @@
120201 Me.BindingNavigatorMoveFirstItem.Image = CType(resources.GetObject("BindingNavigatorMoveFirstItem.Image"), System.Drawing.Image)
121202 Me.BindingNavigatorMoveFirstItem.Name = "BindingNavigatorMoveFirstItem"
122203 Me.BindingNavigatorMoveFirstItem.RightToLeftAutoMirrorImage = True
123- Me.BindingNavigatorMoveFirstItem.Size = New System.Drawing.Size(24, 22)
204+ Me.BindingNavigatorMoveFirstItem.Size = New System.Drawing.Size(24, 24)
124205 Me.BindingNavigatorMoveFirstItem.Text = "最初に移動"
125206 '
126207 'BindingNavigatorMovePreviousItem
@@ -129,13 +210,13 @@
129210 Me.BindingNavigatorMovePreviousItem.Image = CType(resources.GetObject("BindingNavigatorMovePreviousItem.Image"), System.Drawing.Image)
130211 Me.BindingNavigatorMovePreviousItem.Name = "BindingNavigatorMovePreviousItem"
131212 Me.BindingNavigatorMovePreviousItem.RightToLeftAutoMirrorImage = True
132- Me.BindingNavigatorMovePreviousItem.Size = New System.Drawing.Size(24, 22)
213+ Me.BindingNavigatorMovePreviousItem.Size = New System.Drawing.Size(24, 24)
133214 Me.BindingNavigatorMovePreviousItem.Text = "前に戻る"
134215 '
135216 'BindingNavigatorSeparator
136217 '
137218 Me.BindingNavigatorSeparator.Name = "BindingNavigatorSeparator"
138- Me.BindingNavigatorSeparator.Size = New System.Drawing.Size(6, 25)
219+ Me.BindingNavigatorSeparator.Size = New System.Drawing.Size(6, 27)
139220 '
140221 'BindingNavigatorPositionItem
141222 '
@@ -146,17 +227,10 @@
146227 Me.BindingNavigatorPositionItem.Text = "0"
147228 Me.BindingNavigatorPositionItem.ToolTipText = "現在の場所"
148229 '
149- 'BindingNavigatorCountItem
150- '
151- Me.BindingNavigatorCountItem.Name = "BindingNavigatorCountItem"
152- Me.BindingNavigatorCountItem.Size = New System.Drawing.Size(37, 20)
153- Me.BindingNavigatorCountItem.Text = "/ {0}"
154- Me.BindingNavigatorCountItem.ToolTipText = "項目の総数"
155- '
156230 'BindingNavigatorSeparator1
157231 '
158- Me.BindingNavigatorSeparator1.Name = "BindingNavigatorSeparator"
159- Me.BindingNavigatorSeparator1.Size = New System.Drawing.Size(6, 6)
232+ Me.BindingNavigatorSeparator1.Name = "BindingNavigatorSeparator1"
233+ Me.BindingNavigatorSeparator1.Size = New System.Drawing.Size(6, 27)
160234 '
161235 'BindingNavigatorMoveNextItem
162236 '
@@ -178,47 +252,21 @@
178252 '
179253 'BindingNavigatorSeparator2
180254 '
181- Me.BindingNavigatorSeparator2.Name = "BindingNavigatorSeparator"
182- Me.BindingNavigatorSeparator2.Size = New System.Drawing.Size(6, 6)
255+ Me.BindingNavigatorSeparator2.Name = "BindingNavigatorSeparator2"
256+ Me.BindingNavigatorSeparator2.Size = New System.Drawing.Size(6, 27)
183257 '
184- 'BindingNavigatorAddNewItem
185- '
186- Me.BindingNavigatorAddNewItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image
187- Me.BindingNavigatorAddNewItem.Image = CType(resources.GetObject("BindingNavigatorAddNewItem.Image"), System.Drawing.Image)
188- Me.BindingNavigatorAddNewItem.Name = "BindingNavigatorAddNewItem"
189- Me.BindingNavigatorAddNewItem.RightToLeftAutoMirrorImage = True
190- Me.BindingNavigatorAddNewItem.Size = New System.Drawing.Size(24, 24)
191- Me.BindingNavigatorAddNewItem.Text = "新規追加"
192- '
193- 'BindingNavigatorDeleteItem
194- '
195- Me.BindingNavigatorDeleteItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image
196- Me.BindingNavigatorDeleteItem.Image = CType(resources.GetObject("BindingNavigatorDeleteItem.Image"), System.Drawing.Image)
197- Me.BindingNavigatorDeleteItem.Name = "BindingNavigatorDeleteItem"
198- Me.BindingNavigatorDeleteItem.RightToLeftAutoMirrorImage = True
199- Me.BindingNavigatorDeleteItem.Size = New System.Drawing.Size(24, 24)
200- Me.BindingNavigatorDeleteItem.Text = "削除"
201- '
202258 'Tbl_staffBindingNavigatorSaveItem
203259 '
204260 Me.Tbl_staffBindingNavigatorSaveItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image
205261 Me.Tbl_staffBindingNavigatorSaveItem.Image = CType(resources.GetObject("Tbl_staffBindingNavigatorSaveItem.Image"), System.Drawing.Image)
206262 Me.Tbl_staffBindingNavigatorSaveItem.Name = "Tbl_staffBindingNavigatorSaveItem"
207- Me.Tbl_staffBindingNavigatorSaveItem.Size = New System.Drawing.Size(23, 23)
263+ Me.Tbl_staffBindingNavigatorSaveItem.Size = New System.Drawing.Size(24, 24)
208264 Me.Tbl_staffBindingNavigatorSaveItem.Text = "データの保存"
209265 '
210- 'Staff_codeLabel
211- '
212- Staff_codeLabel.AutoSize = True
213- Staff_codeLabel.Location = New System.Drawing.Point(23, 39)
214- Staff_codeLabel.Name = "Staff_codeLabel"
215- Staff_codeLabel.Size = New System.Drawing.Size(80, 15)
216- Staff_codeLabel.TabIndex = 1
217- Staff_codeLabel.Text = "スタッフコード"
218- '
219266 'Staff_codeTextBox
220267 '
221268 Me.Staff_codeTextBox.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.Tbl_staffBindingSource, "staff_code", True))
269+ Me.Staff_codeTextBox.ImeMode = System.Windows.Forms.ImeMode.Off
222270 Me.Staff_codeTextBox.Location = New System.Drawing.Point(120, 36)
223271 Me.Staff_codeTextBox.MaxLength = 6
224272 Me.Staff_codeTextBox.Name = "Staff_codeTextBox"
@@ -225,108 +273,41 @@
225273 Me.Staff_codeTextBox.Size = New System.Drawing.Size(58, 22)
226274 Me.Staff_codeTextBox.TabIndex = 2
227275 '
228- 'Staff_nameLabel
229- '
230- Staff_nameLabel.AutoSize = True
231- Staff_nameLabel.Location = New System.Drawing.Point(23, 67)
232- Staff_nameLabel.Name = "Staff_nameLabel"
233- Staff_nameLabel.Size = New System.Drawing.Size(62, 15)
234- Staff_nameLabel.TabIndex = 3
235- Staff_nameLabel.Text = "スタッフ名"
236- '
237276 'Staff_nameTextBox
238277 '
239278 Me.Staff_nameTextBox.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.Tbl_staffBindingSource, "staff_name", True))
279+ Me.Staff_nameTextBox.ImeMode = System.Windows.Forms.ImeMode.Hiragana
240280 Me.Staff_nameTextBox.Location = New System.Drawing.Point(120, 64)
241281 Me.Staff_nameTextBox.Name = "Staff_nameTextBox"
242282 Me.Staff_nameTextBox.Size = New System.Drawing.Size(119, 22)
243283 Me.Staff_nameTextBox.TabIndex = 4
244284 '
245- 'Staff_kanaLabel
246- '
247- Staff_kanaLabel.AutoSize = True
248- Staff_kanaLabel.Location = New System.Drawing.Point(23, 95)
249- Staff_kanaLabel.Name = "Staff_kanaLabel"
250- Staff_kanaLabel.Size = New System.Drawing.Size(85, 15)
251- Staff_kanaLabel.TabIndex = 5
252- Staff_kanaLabel.Text = "スタッフ名カナ"
253- '
254285 'Staff_kanaTextBox
255286 '
256287 Me.Staff_kanaTextBox.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.Tbl_staffBindingSource, "staff_kana", True))
288+ Me.Staff_kanaTextBox.ImeMode = System.Windows.Forms.ImeMode.Katakana
257289 Me.Staff_kanaTextBox.Location = New System.Drawing.Point(120, 92)
258290 Me.Staff_kanaTextBox.Name = "Staff_kanaTextBox"
259291 Me.Staff_kanaTextBox.Size = New System.Drawing.Size(119, 22)
260292 Me.Staff_kanaTextBox.TabIndex = 6
261293 '
262- 'Staff_sexLabel
263- '
264- Staff_sexLabel.AutoSize = True
265- Staff_sexLabel.Location = New System.Drawing.Point(23, 123)
266- Staff_sexLabel.Name = "Staff_sexLabel"
267- Staff_sexLabel.Size = New System.Drawing.Size(37, 15)
268- Staff_sexLabel.TabIndex = 7
269- Staff_sexLabel.Text = "性別"
270- '
271- 'Staff_sexTextBox
272- '
273- Me.Staff_sexTextBox.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.Tbl_staffBindingSource, "staff_sex", True))
274- Me.Staff_sexTextBox.Location = New System.Drawing.Point(120, 120)
275- Me.Staff_sexTextBox.MaxLength = 1
276- Me.Staff_sexTextBox.Name = "Staff_sexTextBox"
277- Me.Staff_sexTextBox.Size = New System.Drawing.Size(36, 22)
278- Me.Staff_sexTextBox.TabIndex = 8
279- '
280- 'Staff_sectionLabel
281- '
282- Staff_sectionLabel.AutoSize = True
283- Staff_sectionLabel.Location = New System.Drawing.Point(23, 151)
284- Staff_sectionLabel.Name = "Staff_sectionLabel"
285- Staff_sectionLabel.Size = New System.Drawing.Size(67, 15)
286- Staff_sectionLabel.TabIndex = 9
287- Staff_sectionLabel.Text = "所属部署"
288- '
289- 'Staff_sectionTextBox
290- '
291- Me.Staff_sectionTextBox.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.Tbl_staffBindingSource, "staff_section", True))
292- Me.Staff_sectionTextBox.Location = New System.Drawing.Point(120, 148)
293- Me.Staff_sectionTextBox.Name = "Staff_sectionTextBox"
294- Me.Staff_sectionTextBox.Size = New System.Drawing.Size(58, 22)
295- Me.Staff_sectionTextBox.TabIndex = 10
296- '
297- 'EmailLabel
298- '
299- EmailLabel.AutoSize = True
300- EmailLabel.Location = New System.Drawing.Point(23, 179)
301- EmailLabel.Name = "EmailLabel"
302- EmailLabel.Size = New System.Drawing.Size(42, 15)
303- EmailLabel.TabIndex = 11
304- EmailLabel.Text = "email:"
305- '
306294 'EmailTextBox
307295 '
308296 Me.EmailTextBox.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.Tbl_staffBindingSource, "email", True))
297+ Me.EmailTextBox.ImeMode = System.Windows.Forms.ImeMode.Off
309298 Me.EmailTextBox.Location = New System.Drawing.Point(120, 176)
310299 Me.EmailTextBox.Name = "EmailTextBox"
311300 Me.EmailTextBox.Size = New System.Drawing.Size(200, 22)
312- Me.EmailTextBox.TabIndex = 12
301+ Me.EmailTextBox.TabIndex = 11
313302 '
314- 'Ext_phoneLabel
315- '
316- Ext_phoneLabel.AutoSize = True
317- Ext_phoneLabel.Location = New System.Drawing.Point(23, 207)
318- Ext_phoneLabel.Name = "Ext_phoneLabel"
319- Ext_phoneLabel.Size = New System.Drawing.Size(67, 15)
320- Ext_phoneLabel.TabIndex = 13
321- Ext_phoneLabel.Text = "内線番号"
322- '
323303 'Ext_phoneTextBox
324304 '
325305 Me.Ext_phoneTextBox.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.Tbl_staffBindingSource, "ext_phone", True))
306+ Me.Ext_phoneTextBox.ImeMode = System.Windows.Forms.ImeMode.Off
326307 Me.Ext_phoneTextBox.Location = New System.Drawing.Point(120, 204)
327308 Me.Ext_phoneTextBox.Name = "Ext_phoneTextBox"
328309 Me.Ext_phoneTextBox.Size = New System.Drawing.Size(70, 22)
329- Me.Ext_phoneTextBox.TabIndex = 14
310+ Me.Ext_phoneTextBox.TabIndex = 13
330311 '
331312 'Resign_flagCheckBox
332313 '
@@ -334,37 +315,20 @@
334315 Me.Resign_flagCheckBox.Location = New System.Drawing.Point(263, 376)
335316 Me.Resign_flagCheckBox.Name = "Resign_flagCheckBox"
336317 Me.Resign_flagCheckBox.Size = New System.Drawing.Size(70, 24)
337- Me.Resign_flagCheckBox.TabIndex = 16
318+ Me.Resign_flagCheckBox.TabIndex = 18
338319 Me.Resign_flagCheckBox.Text = "退社"
339320 Me.Resign_flagCheckBox.UseVisualStyleBackColor = True
340321 '
341- 'MemoLabel
342- '
343- MemoLabel.AutoSize = True
344- MemoLabel.Location = New System.Drawing.Point(28, 238)
345- MemoLabel.Name = "MemoLabel"
346- MemoLabel.Size = New System.Drawing.Size(37, 15)
347- MemoLabel.TabIndex = 21
348- MemoLabel.Text = "備考"
349- '
350322 'MemoTextBox
351323 '
352324 Me.MemoTextBox.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.Tbl_staffBindingSource, "memo", True))
325+ Me.MemoTextBox.ImeMode = System.Windows.Forms.ImeMode.Hiragana
353326 Me.MemoTextBox.Location = New System.Drawing.Point(120, 238)
354327 Me.MemoTextBox.Multiline = True
355328 Me.MemoTextBox.Name = "MemoTextBox"
356329 Me.MemoTextBox.Size = New System.Drawing.Size(200, 92)
357- Me.MemoTextBox.TabIndex = 22
330+ Me.MemoTextBox.TabIndex = 15
358331 '
359- 'Input_dateLabel
360- '
361- Input_dateLabel.AutoSize = True
362- Input_dateLabel.Location = New System.Drawing.Point(23, 380)
363- Input_dateLabel.Name = "Input_dateLabel"
364- Input_dateLabel.Size = New System.Drawing.Size(52, 15)
365- Input_dateLabel.TabIndex = 25
366- Input_dateLabel.Text = "入力日"
367- '
368332 'Input_dateDateTimePicker
369333 '
370334 Me.Input_dateDateTimePicker.DataBindings.Add(New System.Windows.Forms.Binding("Value", Me.Tbl_staffBindingSource, "input_date", True))
@@ -371,13 +335,91 @@
371335 Me.Input_dateDateTimePicker.Location = New System.Drawing.Point(102, 376)
372336 Me.Input_dateDateTimePicker.Name = "Input_dateDateTimePicker"
373337 Me.Input_dateDateTimePicker.Size = New System.Drawing.Size(137, 22)
374- Me.Input_dateDateTimePicker.TabIndex = 26
338+ Me.Input_dateDateTimePicker.TabIndex = 17
375339 '
340+ 'GroupBox1
341+ '
342+ Me.GroupBox1.Controls.Add(Me.rbFemale)
343+ Me.GroupBox1.Controls.Add(Me.rbMale)
344+ Me.GroupBox1.Location = New System.Drawing.Point(256, 36)
345+ Me.GroupBox1.Name = "GroupBox1"
346+ Me.GroupBox1.Size = New System.Drawing.Size(99, 77)
347+ Me.GroupBox1.TabIndex = 7
348+ Me.GroupBox1.TabStop = False
349+ Me.GroupBox1.Text = "性別"
350+ '
351+ 'rbFemale
352+ '
353+ Me.rbFemale.AutoSize = True
354+ Me.rbFemale.Location = New System.Drawing.Point(22, 48)
355+ Me.rbFemale.Name = "rbFemale"
356+ Me.rbFemale.Size = New System.Drawing.Size(58, 19)
357+ Me.rbFemale.TabIndex = 1
358+ Me.rbFemale.TabStop = True
359+ Me.rbFemale.Text = "女性"
360+ Me.rbFemale.UseVisualStyleBackColor = True
361+ '
362+ 'rbMale
363+ '
364+ Me.rbMale.AutoSize = True
365+ Me.rbMale.Location = New System.Drawing.Point(22, 23)
366+ Me.rbMale.Name = "rbMale"
367+ Me.rbMale.Size = New System.Drawing.Size(58, 19)
368+ Me.rbMale.TabIndex = 0
369+ Me.rbMale.TabStop = True
370+ Me.rbMale.Text = "男性"
371+ Me.rbMale.UseVisualStyleBackColor = True
372+ '
373+ 'Tbl_staffBindingSource
374+ '
375+ Me.Tbl_staffBindingSource.DataMember = "tbl_staff"
376+ Me.Tbl_staffBindingSource.DataSource = Me.ProjectManageDataSet
377+ '
378+ 'ProjectManageDataSet
379+ '
380+ Me.ProjectManageDataSet.DataSetName = "projectManageDataSet"
381+ Me.ProjectManageDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema
382+ '
383+ 'Tbl_staffTableAdapter
384+ '
385+ Me.Tbl_staffTableAdapter.ClearBeforeFill = True
386+ '
387+ 'TableAdapterManager
388+ '
389+ Me.TableAdapterManager.BackupDataSetBeforeUpdate = False
390+ Me.TableAdapterManager.tbl_sectionTableAdapter = Nothing
391+ Me.TableAdapterManager.tbl_staffTableAdapter = Me.Tbl_staffTableAdapter
392+ Me.TableAdapterManager.UpdateOrder = accdb1.projectManageDataSetTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete
393+ '
394+ 'Staff_sectionComboBox
395+ '
396+ Me.Staff_sectionComboBox.DataBindings.Add(New System.Windows.Forms.Binding("SelectedValue", Me.Tbl_staffBindingSource, "staff_section", True))
397+ Me.Staff_sectionComboBox.DataSource = Me.Tbl_sectionBindingSource
398+ Me.Staff_sectionComboBox.DisplayMember = "section_name"
399+ Me.Staff_sectionComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
400+ Me.Staff_sectionComboBox.FormattingEnabled = True
401+ Me.Staff_sectionComboBox.Location = New System.Drawing.Point(120, 147)
402+ Me.Staff_sectionComboBox.Name = "Staff_sectionComboBox"
403+ Me.Staff_sectionComboBox.Size = New System.Drawing.Size(121, 23)
404+ Me.Staff_sectionComboBox.TabIndex = 9
405+ Me.Staff_sectionComboBox.ValueMember = "section_code"
406+ '
407+ 'Tbl_sectionBindingSource
408+ '
409+ Me.Tbl_sectionBindingSource.DataMember = "tbl_section"
410+ Me.Tbl_sectionBindingSource.DataSource = Me.ProjectManageDataSet
411+ '
412+ 'Tbl_sectionTableAdapter
413+ '
414+ Me.Tbl_sectionTableAdapter.ClearBeforeFill = True
415+ '
376416 'frmStaff
377417 '
378418 Me.AutoScaleDimensions = New System.Drawing.SizeF(8.0!, 15.0!)
379419 Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
380- Me.ClientSize = New System.Drawing.Size(345, 442)
420+ Me.ClientSize = New System.Drawing.Size(398, 442)
421+ Me.Controls.Add(Me.Staff_sectionComboBox)
422+ Me.Controls.Add(Me.GroupBox1)
381423 Me.Controls.Add(Staff_codeLabel)
382424 Me.Controls.Add(Me.Staff_codeTextBox)
383425 Me.Controls.Add(Staff_nameLabel)
@@ -384,10 +426,7 @@
384426 Me.Controls.Add(Me.Staff_nameTextBox)
385427 Me.Controls.Add(Staff_kanaLabel)
386428 Me.Controls.Add(Me.Staff_kanaTextBox)
387- Me.Controls.Add(Staff_sexLabel)
388- Me.Controls.Add(Me.Staff_sexTextBox)
389429 Me.Controls.Add(Staff_sectionLabel)
390- Me.Controls.Add(Me.Staff_sectionTextBox)
391430 Me.Controls.Add(EmailLabel)
392431 Me.Controls.Add(Me.EmailTextBox)
393432 Me.Controls.Add(Ext_phoneLabel)
@@ -400,11 +439,14 @@
400439 Me.Controls.Add(Me.Tbl_staffBindingNavigator)
401440 Me.Name = "frmStaff"
402441 Me.Text = "スタッフマスタ管理"
403- CType(Me.ProjectManageDataSet, System.ComponentModel.ISupportInitialize).EndInit()
404- CType(Me.Tbl_staffBindingSource, System.ComponentModel.ISupportInitialize).EndInit()
405442 CType(Me.Tbl_staffBindingNavigator, System.ComponentModel.ISupportInitialize).EndInit()
406443 Me.Tbl_staffBindingNavigator.ResumeLayout(False)
407444 Me.Tbl_staffBindingNavigator.PerformLayout()
445+ Me.GroupBox1.ResumeLayout(False)
446+ Me.GroupBox1.PerformLayout()
447+ CType(Me.Tbl_staffBindingSource, System.ComponentModel.ISupportInitialize).EndInit()
448+ CType(Me.ProjectManageDataSet, System.ComponentModel.ISupportInitialize).EndInit()
449+ CType(Me.Tbl_sectionBindingSource, System.ComponentModel.ISupportInitialize).EndInit()
408450 Me.ResumeLayout(False)
409451 Me.PerformLayout()
410452
@@ -430,11 +472,15 @@
430472 Friend WithEvents Staff_codeTextBox As Windows.Forms.TextBox
431473 Friend WithEvents Staff_nameTextBox As Windows.Forms.TextBox
432474 Friend WithEvents Staff_kanaTextBox As Windows.Forms.TextBox
433- Friend WithEvents Staff_sexTextBox As Windows.Forms.TextBox
434- Friend WithEvents Staff_sectionTextBox As Windows.Forms.TextBox
435475 Friend WithEvents EmailTextBox As Windows.Forms.TextBox
436476 Friend WithEvents Ext_phoneTextBox As Windows.Forms.TextBox
437477 Friend WithEvents Resign_flagCheckBox As Windows.Forms.CheckBox
438478 Friend WithEvents MemoTextBox As Windows.Forms.TextBox
439479 Friend WithEvents Input_dateDateTimePicker As Windows.Forms.DateTimePicker
480+ Friend WithEvents GroupBox1 As Windows.Forms.GroupBox
481+ Friend WithEvents rbFemale As Windows.Forms.RadioButton
482+ Friend WithEvents rbMale As Windows.Forms.RadioButton
483+ Friend WithEvents Staff_sectionComboBox As Windows.Forms.ComboBox
484+ Friend WithEvents Tbl_sectionBindingSource As Windows.Forms.BindingSource
485+ Friend WithEvents Tbl_sectionTableAdapter As projectManageDataSetTableAdapters.tbl_sectionTableAdapter
440486 End Class
--- vbdb/accdb1/accdb1/frmStaff.vb (revision 366)
+++ vbdb/accdb1/accdb1/frmStaff.vb (revision 367)
@@ -7,8 +7,44 @@
77 End Sub
88
99 Private Sub frmStaff_Load(sender As Object, e As EventArgs) Handles MyBase.Load
10+ 'TODO: このコード行はデータを 'ProjectManageDataSet.tbl_section' テーブルに読み込みます。必要に応じて移動、または削除をしてください。
11+ Me.Tbl_sectionTableAdapter.Fill(Me.ProjectManageDataSet.tbl_section)
1012 'TODO: このコード行はデータを 'ProjectManageDataSet.tbl_staff' テーブルに読み込みます。必要に応じて移動、または削除をしてください。
1113 Me.Tbl_staffTableAdapter.Fill(Me.ProjectManageDataSet.tbl_staff)
1214
1315 End Sub
16+
17+ Private Sub rbMale_CheckedChanged(sender As Object, e As EventArgs) Handles rbMale.CheckedChanged
18+ If Not rbMale.Checked Then Return
19+ commonUtils.Setdrv(Me.Tbl_staffBindingSource.Current, "staff_sex", 1)
20+ End Sub
21+
22+ Private Sub rbFemale_CheckedChanged(sender As Object, e As EventArgs) Handles rbFemale.CheckedChanged
23+ If Not rbFemale.Checked Then Return
24+ commonUtils.Setdrv(Me.Tbl_staffBindingSource.Current, "staff_sex", 2)
25+ End Sub
26+
27+ Private Sub Tbl_staffBindingSource_PositionChanged(sender As Object, e As EventArgs) Handles Tbl_staffBindingSource.PositionChanged
28+ If Me.Tbl_staffBindingSource.Current Is Nothing Then Return
29+ Dim drv = Me.Tbl_staffBindingSource.Current
30+ If IsDBNull(drv("staff_sex")) Then
31+ rbFemale.Checked = False
32+ rbMale.Checked = False
33+ Exit Sub
34+ End If
35+ Select Case drv("staff_sex")
36+ Case 1
37+ rbMale.Checked = True
38+ Case 2
39+ rbFemale.Checked = True
40+ End Select
41+ End Sub
42+
43+ Private Sub frmStaff_Validating(sender As Object, e As ComponentModel.CancelEventArgs) Handles MyBase.Validating
44+ If Trim(Staff_codeTextBox.Text) = String.Empty Then
45+ MsgBox("スタッフコードを入力してください", MsgBoxStyle.Exclamation, "スタッフコード")
46+ e.Cancel = True
47+ Exit Sub
48+ End If
49+ End Sub
1450 End Class
\ No newline at end of file
--- vbdb/accdb1/accdb1/projectManageDataSet.Designer.vb (revision 366)
+++ vbdb/accdb1/accdb1/projectManageDataSet.Designer.vb (revision 367)
@@ -27,6 +27,8 @@
2727
2828 Private tabletbl_staff As tbl_staffDataTable
2929
30+ Private tabletbl_section As tbl_sectionDataTable
31+
3032 Private _schemaSerializationMode As Global.System.Data.SchemaSerializationMode = Global.System.Data.SchemaSerializationMode.IncludeSchema
3133
3234 <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
@@ -59,6 +61,9 @@
5961 If (Not (ds.Tables("tbl_staff")) Is Nothing) Then
6062 MyBase.Tables.Add(New tbl_staffDataTable(ds.Tables("tbl_staff")))
6163 End If
64+ If (Not (ds.Tables("tbl_section")) Is Nothing) Then
65+ MyBase.Tables.Add(New tbl_sectionDataTable(ds.Tables("tbl_section")))
66+ End If
6267 Me.DataSetName = ds.DataSetName
6368 Me.Prefix = ds.Prefix
6469 Me.Namespace = ds.Namespace
@@ -88,6 +93,16 @@
8893
8994 <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
9095 Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
96+ Global.System.ComponentModel.Browsable(false), _
97+ Global.System.ComponentModel.DesignerSerializationVisibility(Global.System.ComponentModel.DesignerSerializationVisibility.Content)> _
98+ Public ReadOnly Property tbl_section() As tbl_sectionDataTable
99+ Get
100+ Return Me.tabletbl_section
101+ End Get
102+ End Property
103+
104+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
105+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
91106 Global.System.ComponentModel.BrowsableAttribute(true), _
92107 Global.System.ComponentModel.DesignerSerializationVisibilityAttribute(Global.System.ComponentModel.DesignerSerializationVisibility.Visible)> _
93108 Public Overrides Property SchemaSerializationMode() As Global.System.Data.SchemaSerializationMode
@@ -156,6 +171,9 @@
156171 If (Not (ds.Tables("tbl_staff")) Is Nothing) Then
157172 MyBase.Tables.Add(New tbl_staffDataTable(ds.Tables("tbl_staff")))
158173 End If
174+ If (Not (ds.Tables("tbl_section")) Is Nothing) Then
175+ MyBase.Tables.Add(New tbl_sectionDataTable(ds.Tables("tbl_section")))
176+ End If
159177 Me.DataSetName = ds.DataSetName
160178 Me.Prefix = ds.Prefix
161179 Me.Namespace = ds.Namespace
@@ -194,6 +212,12 @@
194212 Me.tabletbl_staff.InitVars
195213 End If
196214 End If
215+ Me.tabletbl_section = CType(MyBase.Tables("tbl_section"),tbl_sectionDataTable)
216+ If (initTable = true) Then
217+ If (Not (Me.tabletbl_section) Is Nothing) Then
218+ Me.tabletbl_section.InitVars
219+ End If
220+ End If
197221 End Sub
198222
199223 <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
@@ -206,6 +230,8 @@
206230 Me.SchemaSerializationMode = Global.System.Data.SchemaSerializationMode.IncludeSchema
207231 Me.tabletbl_staff = New tbl_staffDataTable()
208232 MyBase.Tables.Add(Me.tabletbl_staff)
233+ Me.tabletbl_section = New tbl_sectionDataTable()
234+ MyBase.Tables.Add(Me.tabletbl_section)
209235 End Sub
210236
211237 <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
@@ -216,6 +242,12 @@
216242
217243 <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
218244 Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
245+ Private Function ShouldSerializetbl_section() As Boolean
246+ Return false
247+ End Function
248+
249+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
250+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
219251 Private Sub SchemaChanged(ByVal sender As Object, ByVal e As Global.System.ComponentModel.CollectionChangeEventArgs)
220252 If (e.Action = Global.System.ComponentModel.CollectionChangeAction.Remove) Then
221253 Me.InitVars
@@ -275,6 +307,9 @@
275307 <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
276308 Public Delegate Sub tbl_staffRowChangeEventHandler(ByVal sender As Object, ByVal e As tbl_staffRowChangeEvent)
277309
310+ <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
311+ Public Delegate Sub tbl_sectionRowChangeEventHandler(ByVal sender As Object, ByVal e As tbl_sectionRowChangeEvent)
312+
278313 '''<summary>
279314 '''Represents the strongly named DataTable class.
280315 '''</summary>
@@ -702,6 +737,282 @@
702737 End Class
703738
704739 '''<summary>
740+ '''Represents the strongly named DataTable class.
741+ '''</summary>
742+ <Global.System.Serializable(), _
743+ Global.System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")> _
744+ Partial Public Class tbl_sectionDataTable
745+ Inherits Global.System.Data.TypedTableBase(Of tbl_sectionRow)
746+
747+ Private columnsection_code As Global.System.Data.DataColumn
748+
749+ Private columnsection_name As Global.System.Data.DataColumn
750+
751+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
752+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
753+ Public Sub New()
754+ MyBase.New
755+ Me.TableName = "tbl_section"
756+ Me.BeginInit
757+ Me.InitClass
758+ Me.EndInit
759+ End Sub
760+
761+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
762+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
763+ Friend Sub New(ByVal table As Global.System.Data.DataTable)
764+ MyBase.New
765+ Me.TableName = table.TableName
766+ If (table.CaseSensitive <> table.DataSet.CaseSensitive) Then
767+ Me.CaseSensitive = table.CaseSensitive
768+ End If
769+ If (table.Locale.ToString <> table.DataSet.Locale.ToString) Then
770+ Me.Locale = table.Locale
771+ End If
772+ If (table.Namespace <> table.DataSet.Namespace) Then
773+ Me.Namespace = table.Namespace
774+ End If
775+ Me.Prefix = table.Prefix
776+ Me.MinimumCapacity = table.MinimumCapacity
777+ End Sub
778+
779+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
780+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
781+ Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
782+ MyBase.New(info, context)
783+ Me.InitVars
784+ End Sub
785+
786+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
787+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
788+ Public ReadOnly Property section_codeColumn() As Global.System.Data.DataColumn
789+ Get
790+ Return Me.columnsection_code
791+ End Get
792+ End Property
793+
794+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
795+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
796+ Public ReadOnly Property section_nameColumn() As Global.System.Data.DataColumn
797+ Get
798+ Return Me.columnsection_name
799+ End Get
800+ End Property
801+
802+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
803+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
804+ Global.System.ComponentModel.Browsable(false)> _
805+ Public ReadOnly Property Count() As Integer
806+ Get
807+ Return Me.Rows.Count
808+ End Get
809+ End Property
810+
811+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
812+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
813+ Public Default ReadOnly Property Item(ByVal index As Integer) As tbl_sectionRow
814+ Get
815+ Return CType(Me.Rows(index),tbl_sectionRow)
816+ End Get
817+ End Property
818+
819+ <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
820+ Public Event tbl_sectionRowChanging As tbl_sectionRowChangeEventHandler
821+
822+ <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
823+ Public Event tbl_sectionRowChanged As tbl_sectionRowChangeEventHandler
824+
825+ <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
826+ Public Event tbl_sectionRowDeleting As tbl_sectionRowChangeEventHandler
827+
828+ <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
829+ Public Event tbl_sectionRowDeleted As tbl_sectionRowChangeEventHandler
830+
831+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
832+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
833+ Public Overloads Sub Addtbl_sectionRow(ByVal row As tbl_sectionRow)
834+ Me.Rows.Add(row)
835+ End Sub
836+
837+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
838+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
839+ Public Overloads Function Addtbl_sectionRow(ByVal section_code As String, ByVal section_name As String) As tbl_sectionRow
840+ Dim rowtbl_sectionRow As tbl_sectionRow = CType(Me.NewRow,tbl_sectionRow)
841+ Dim columnValuesArray() As Object = New Object() {section_code, section_name}
842+ rowtbl_sectionRow.ItemArray = columnValuesArray
843+ Me.Rows.Add(rowtbl_sectionRow)
844+ Return rowtbl_sectionRow
845+ End Function
846+
847+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
848+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
849+ Public Function FindBysection_code(ByVal section_code As String) As tbl_sectionRow
850+ Return CType(Me.Rows.Find(New Object() {section_code}),tbl_sectionRow)
851+ End Function
852+
853+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
854+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
855+ Public Overrides Function Clone() As Global.System.Data.DataTable
856+ Dim cln As tbl_sectionDataTable = CType(MyBase.Clone,tbl_sectionDataTable)
857+ cln.InitVars
858+ Return cln
859+ End Function
860+
861+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
862+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
863+ Protected Overrides Function CreateInstance() As Global.System.Data.DataTable
864+ Return New tbl_sectionDataTable()
865+ End Function
866+
867+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
868+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
869+ Friend Sub InitVars()
870+ Me.columnsection_code = MyBase.Columns("section_code")
871+ Me.columnsection_name = MyBase.Columns("section_name")
872+ End Sub
873+
874+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
875+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
876+ Private Sub InitClass()
877+ Me.columnsection_code = New Global.System.Data.DataColumn("section_code", GetType(String), Nothing, Global.System.Data.MappingType.Element)
878+ MyBase.Columns.Add(Me.columnsection_code)
879+ Me.columnsection_name = New Global.System.Data.DataColumn("section_name", GetType(String), Nothing, Global.System.Data.MappingType.Element)
880+ MyBase.Columns.Add(Me.columnsection_name)
881+ Me.Constraints.Add(New Global.System.Data.UniqueConstraint("Constraint1", New Global.System.Data.DataColumn() {Me.columnsection_code}, true))
882+ Me.columnsection_code.AllowDBNull = false
883+ Me.columnsection_code.Unique = true
884+ Me.columnsection_code.MaxLength = 4
885+ Me.columnsection_name.MaxLength = 20
886+ End Sub
887+
888+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
889+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
890+ Public Function Newtbl_sectionRow() As tbl_sectionRow
891+ Return CType(Me.NewRow,tbl_sectionRow)
892+ End Function
893+
894+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
895+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
896+ Protected Overrides Function NewRowFromBuilder(ByVal builder As Global.System.Data.DataRowBuilder) As Global.System.Data.DataRow
897+ Return New tbl_sectionRow(builder)
898+ End Function
899+
900+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
901+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
902+ Protected Overrides Function GetRowType() As Global.System.Type
903+ Return GetType(tbl_sectionRow)
904+ End Function
905+
906+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
907+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
908+ Protected Overrides Sub OnRowChanged(ByVal e As Global.System.Data.DataRowChangeEventArgs)
909+ MyBase.OnRowChanged(e)
910+ If (Not (Me.tbl_sectionRowChangedEvent) Is Nothing) Then
911+ RaiseEvent tbl_sectionRowChanged(Me, New tbl_sectionRowChangeEvent(CType(e.Row,tbl_sectionRow), e.Action))
912+ End If
913+ End Sub
914+
915+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
916+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
917+ Protected Overrides Sub OnRowChanging(ByVal e As Global.System.Data.DataRowChangeEventArgs)
918+ MyBase.OnRowChanging(e)
919+ If (Not (Me.tbl_sectionRowChangingEvent) Is Nothing) Then
920+ RaiseEvent tbl_sectionRowChanging(Me, New tbl_sectionRowChangeEvent(CType(e.Row,tbl_sectionRow), e.Action))
921+ End If
922+ End Sub
923+
924+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
925+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
926+ Protected Overrides Sub OnRowDeleted(ByVal e As Global.System.Data.DataRowChangeEventArgs)
927+ MyBase.OnRowDeleted(e)
928+ If (Not (Me.tbl_sectionRowDeletedEvent) Is Nothing) Then
929+ RaiseEvent tbl_sectionRowDeleted(Me, New tbl_sectionRowChangeEvent(CType(e.Row,tbl_sectionRow), e.Action))
930+ End If
931+ End Sub
932+
933+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
934+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
935+ Protected Overrides Sub OnRowDeleting(ByVal e As Global.System.Data.DataRowChangeEventArgs)
936+ MyBase.OnRowDeleting(e)
937+ If (Not (Me.tbl_sectionRowDeletingEvent) Is Nothing) Then
938+ RaiseEvent tbl_sectionRowDeleting(Me, New tbl_sectionRowChangeEvent(CType(e.Row,tbl_sectionRow), e.Action))
939+ End If
940+ End Sub
941+
942+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
943+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
944+ Public Sub Removetbl_sectionRow(ByVal row As tbl_sectionRow)
945+ Me.Rows.Remove(row)
946+ End Sub
947+
948+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
949+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
950+ Public Shared Function GetTypedTableSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
951+ Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
952+ Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
953+ Dim ds As projectManageDataSet = New projectManageDataSet()
954+ Dim any1 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
955+ any1.Namespace = "http://www.w3.org/2001/XMLSchema"
956+ any1.MinOccurs = New Decimal(0)
957+ any1.MaxOccurs = Decimal.MaxValue
958+ any1.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
959+ sequence.Items.Add(any1)
960+ Dim any2 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
961+ any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
962+ any2.MinOccurs = New Decimal(1)
963+ any2.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
964+ sequence.Items.Add(any2)
965+ Dim attribute1 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
966+ attribute1.Name = "namespace"
967+ attribute1.FixedValue = ds.Namespace
968+ type.Attributes.Add(attribute1)
969+ Dim attribute2 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
970+ attribute2.Name = "tableTypeName"
971+ attribute2.FixedValue = "tbl_sectionDataTable"
972+ type.Attributes.Add(attribute2)
973+ type.Particle = sequence
974+ Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable
975+ If xs.Contains(dsSchema.TargetNamespace) Then
976+ Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
977+ Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
978+ Try
979+ Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
980+ dsSchema.Write(s1)
981+ Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
982+ Do While schemas.MoveNext
983+ schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
984+ s2.SetLength(0)
985+ schema.Write(s2)
986+ If (s1.Length = s2.Length) Then
987+ s1.Position = 0
988+ s2.Position = 0
989+
990+ Do While ((s1.Position <> s1.Length) _
991+ AndAlso (s1.ReadByte = s2.ReadByte))
992+
993+
994+ Loop
995+ If (s1.Position = s1.Length) Then
996+ Return type
997+ End If
998+ End If
999+
1000+ Loop
1001+ Finally
1002+ If (Not (s1) Is Nothing) Then
1003+ s1.Close
1004+ End If
1005+ If (Not (s2) Is Nothing) Then
1006+ s2.Close
1007+ End If
1008+ End Try
1009+ End If
1010+ xs.Add(dsSchema)
1011+ Return type
1012+ End Function
1013+ End Class
1014+
1015+ '''<summary>
7051016 '''Represents strongly named DataRow class.
7061017 '''</summary>
7071018 Partial Public Class tbl_staffRow
@@ -1053,6 +1364,60 @@
10531364 End Class
10541365
10551366 '''<summary>
1367+ '''Represents strongly named DataRow class.
1368+ '''</summary>
1369+ Partial Public Class tbl_sectionRow
1370+ Inherits Global.System.Data.DataRow
1371+
1372+ Private tabletbl_section As tbl_sectionDataTable
1373+
1374+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
1375+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
1376+ Friend Sub New(ByVal rb As Global.System.Data.DataRowBuilder)
1377+ MyBase.New(rb)
1378+ Me.tabletbl_section = CType(Me.Table,tbl_sectionDataTable)
1379+ End Sub
1380+
1381+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
1382+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
1383+ Public Property section_code() As String
1384+ Get
1385+ Return CType(Me(Me.tabletbl_section.section_codeColumn),String)
1386+ End Get
1387+ Set
1388+ Me(Me.tabletbl_section.section_codeColumn) = value
1389+ End Set
1390+ End Property
1391+
1392+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
1393+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
1394+ Public Property section_name() As String
1395+ Get
1396+ Try
1397+ Return CType(Me(Me.tabletbl_section.section_nameColumn),String)
1398+ Catch e As Global.System.InvalidCastException
1399+ Throw New Global.System.Data.StrongTypingException("テーブル 'tbl_section' にある列 'section_name' の値は DBNull です。", e)
1400+ End Try
1401+ End Get
1402+ Set
1403+ Me(Me.tabletbl_section.section_nameColumn) = value
1404+ End Set
1405+ End Property
1406+
1407+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
1408+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
1409+ Public Function Issection_nameNull() As Boolean
1410+ Return Me.IsNull(Me.tabletbl_section.section_nameColumn)
1411+ End Function
1412+
1413+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
1414+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
1415+ Public Sub Setsection_nameNull()
1416+ Me(Me.tabletbl_section.section_nameColumn) = Global.System.Convert.DBNull
1417+ End Sub
1418+ End Class
1419+
1420+ '''<summary>
10561421 '''Row event argument class
10571422 '''</summary>
10581423 <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
@@ -1087,6 +1452,42 @@
10871452 End Get
10881453 End Property
10891454 End Class
1455+
1456+ '''<summary>
1457+ '''Row event argument class
1458+ '''</summary>
1459+ <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
1460+ Public Class tbl_sectionRowChangeEvent
1461+ Inherits Global.System.EventArgs
1462+
1463+ Private eventRow As tbl_sectionRow
1464+
1465+ Private eventAction As Global.System.Data.DataRowAction
1466+
1467+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
1468+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
1469+ Public Sub New(ByVal row As tbl_sectionRow, ByVal action As Global.System.Data.DataRowAction)
1470+ MyBase.New
1471+ Me.eventRow = row
1472+ Me.eventAction = action
1473+ End Sub
1474+
1475+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
1476+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
1477+ Public ReadOnly Property Row() As tbl_sectionRow
1478+ Get
1479+ Return Me.eventRow
1480+ End Get
1481+ End Property
1482+
1483+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
1484+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
1485+ Public ReadOnly Property Action() As Global.System.Data.DataRowAction
1486+ Get
1487+ Return Me.eventAction
1488+ End Get
1489+ End Property
1490+ End Class
10901491 End Class
10911492
10921493 Namespace projectManageDataSetTableAdapters
@@ -1787,6 +2188,344 @@
17872188 End Class
17882189
17892190 '''<summary>
2191+ '''Represents the connection and commands used to retrieve and save data.
2192+ '''</summary>
2193+ <Global.System.ComponentModel.DesignerCategoryAttribute("code"), _
2194+ Global.System.ComponentModel.ToolboxItem(true), _
2195+ Global.System.ComponentModel.DataObjectAttribute(true), _
2196+ Global.System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _
2197+ ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), _
2198+ Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
2199+ Partial Public Class tbl_sectionTableAdapter
2200+ Inherits Global.System.ComponentModel.Component
2201+
2202+ Private WithEvents _adapter As Global.System.Data.OleDb.OleDbDataAdapter
2203+
2204+ Private _connection As Global.System.Data.OleDb.OleDbConnection
2205+
2206+ Private _transaction As Global.System.Data.OleDb.OleDbTransaction
2207+
2208+ Private _commandCollection() As Global.System.Data.OleDb.OleDbCommand
2209+
2210+ Private _clearBeforeFill As Boolean
2211+
2212+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
2213+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
2214+ Public Sub New()
2215+ MyBase.New
2216+ Me.ClearBeforeFill = true
2217+ End Sub
2218+
2219+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
2220+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
2221+ Protected Friend ReadOnly Property Adapter() As Global.System.Data.OleDb.OleDbDataAdapter
2222+ Get
2223+ If (Me._adapter Is Nothing) Then
2224+ Me.InitAdapter
2225+ End If
2226+ Return Me._adapter
2227+ End Get
2228+ End Property
2229+
2230+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
2231+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
2232+ Friend Property Connection() As Global.System.Data.OleDb.OleDbConnection
2233+ Get
2234+ If (Me._connection Is Nothing) Then
2235+ Me.InitConnection
2236+ End If
2237+ Return Me._connection
2238+ End Get
2239+ Set
2240+ Me._connection = value
2241+ If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
2242+ Me.Adapter.InsertCommand.Connection = value
2243+ End If
2244+ If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
2245+ Me.Adapter.DeleteCommand.Connection = value
2246+ End If
2247+ If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
2248+ Me.Adapter.UpdateCommand.Connection = value
2249+ End If
2250+ Dim i As Integer = 0
2251+ Do While (i < Me.CommandCollection.Length)
2252+ If (Not (Me.CommandCollection(i)) Is Nothing) Then
2253+ CType(Me.CommandCollection(i),Global.System.Data.OleDb.OleDbCommand).Connection = value
2254+ End If
2255+ i = (i + 1)
2256+ Loop
2257+ End Set
2258+ End Property
2259+
2260+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
2261+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
2262+ Friend Property Transaction() As Global.System.Data.OleDb.OleDbTransaction
2263+ Get
2264+ Return Me._transaction
2265+ End Get
2266+ Set
2267+ Me._transaction = value
2268+ Dim i As Integer = 0
2269+ Do While (i < Me.CommandCollection.Length)
2270+ Me.CommandCollection(i).Transaction = Me._transaction
2271+ i = (i + 1)
2272+ Loop
2273+ If ((Not (Me.Adapter) Is Nothing) _
2274+ AndAlso (Not (Me.Adapter.DeleteCommand) Is Nothing)) Then
2275+ Me.Adapter.DeleteCommand.Transaction = Me._transaction
2276+ End If
2277+ If ((Not (Me.Adapter) Is Nothing) _
2278+ AndAlso (Not (Me.Adapter.InsertCommand) Is Nothing)) Then
2279+ Me.Adapter.InsertCommand.Transaction = Me._transaction
2280+ End If
2281+ If ((Not (Me.Adapter) Is Nothing) _
2282+ AndAlso (Not (Me.Adapter.UpdateCommand) Is Nothing)) Then
2283+ Me.Adapter.UpdateCommand.Transaction = Me._transaction
2284+ End If
2285+ End Set
2286+ End Property
2287+
2288+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
2289+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
2290+ Protected ReadOnly Property CommandCollection() As Global.System.Data.OleDb.OleDbCommand()
2291+ Get
2292+ If (Me._commandCollection Is Nothing) Then
2293+ Me.InitCommandCollection
2294+ End If
2295+ Return Me._commandCollection
2296+ End Get
2297+ End Property
2298+
2299+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
2300+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
2301+ Public Property ClearBeforeFill() As Boolean
2302+ Get
2303+ Return Me._clearBeforeFill
2304+ End Get
2305+ Set
2306+ Me._clearBeforeFill = value
2307+ End Set
2308+ End Property
2309+
2310+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
2311+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
2312+ Private Sub InitAdapter()
2313+ Me._adapter = New Global.System.Data.OleDb.OleDbDataAdapter()
2314+ Dim tableMapping As Global.System.Data.Common.DataTableMapping = New Global.System.Data.Common.DataTableMapping()
2315+ tableMapping.SourceTable = "Table"
2316+ tableMapping.DataSetTable = "tbl_section"
2317+ tableMapping.ColumnMappings.Add("section_code", "section_code")
2318+ tableMapping.ColumnMappings.Add("section_name", "section_name")
2319+ Me._adapter.TableMappings.Add(tableMapping)
2320+ Me._adapter.DeleteCommand = New Global.System.Data.OleDb.OleDbCommand()
2321+ Me._adapter.DeleteCommand.Connection = Me.Connection
2322+ Me._adapter.DeleteCommand.CommandText = "DELETE FROM `tbl_section` WHERE ((`section_code` = ?) AND ((? = 1 AND `section_na"& _
2323+ "me` IS NULL) OR (`section_name` = ?)))"
2324+ Me._adapter.DeleteCommand.CommandType = Global.System.Data.CommandType.Text
2325+ Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.OleDb.OleDbParameter("Original_section_code", Global.System.Data.OleDb.OleDbType.VarWChar, 0, Global.System.Data.ParameterDirection.Input, CType(0,Byte), CType(0,Byte), "section_code", Global.System.Data.DataRowVersion.Original, false, Nothing))
2326+ Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.OleDb.OleDbParameter("IsNull_section_name", Global.System.Data.OleDb.OleDbType.[Integer], 0, Global.System.Data.ParameterDirection.Input, CType(0,Byte), CType(0,Byte), "section_name", Global.System.Data.DataRowVersion.Original, true, Nothing))
2327+ Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.OleDb.OleDbParameter("Original_section_name", Global.System.Data.OleDb.OleDbType.VarWChar, 0, Global.System.Data.ParameterDirection.Input, CType(0,Byte), CType(0,Byte), "section_name", Global.System.Data.DataRowVersion.Original, false, Nothing))
2328+ Me._adapter.InsertCommand = New Global.System.Data.OleDb.OleDbCommand()
2329+ Me._adapter.InsertCommand.Connection = Me.Connection
2330+ Me._adapter.InsertCommand.CommandText = "INSERT INTO `tbl_section` (`section_code`, `section_name`) VALUES (?, ?)"
2331+ Me._adapter.InsertCommand.CommandType = Global.System.Data.CommandType.Text
2332+ Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.OleDb.OleDbParameter("section_code", Global.System.Data.OleDb.OleDbType.VarWChar, 0, Global.System.Data.ParameterDirection.Input, CType(0,Byte), CType(0,Byte), "section_code", Global.System.Data.DataRowVersion.Current, false, Nothing))
2333+ Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.OleDb.OleDbParameter("section_name", Global.System.Data.OleDb.OleDbType.VarWChar, 0, Global.System.Data.ParameterDirection.Input, CType(0,Byte), CType(0,Byte), "section_name", Global.System.Data.DataRowVersion.Current, false, Nothing))
2334+ Me._adapter.UpdateCommand = New Global.System.Data.OleDb.OleDbCommand()
2335+ Me._adapter.UpdateCommand.Connection = Me.Connection
2336+ Me._adapter.UpdateCommand.CommandText = "UPDATE `tbl_section` SET `section_code` = ?, `section_name` = ? WHERE ((`section_"& _
2337+ "code` = ?) AND ((? = 1 AND `section_name` IS NULL) OR (`section_name` = ?)))"
2338+ Me._adapter.UpdateCommand.CommandType = Global.System.Data.CommandType.Text
2339+ Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.OleDb.OleDbParameter("section_code", Global.System.Data.OleDb.OleDbType.VarWChar, 0, Global.System.Data.ParameterDirection.Input, CType(0,Byte), CType(0,Byte), "section_code", Global.System.Data.DataRowVersion.Current, false, Nothing))
2340+ Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.OleDb.OleDbParameter("section_name", Global.System.Data.OleDb.OleDbType.VarWChar, 0, Global.System.Data.ParameterDirection.Input, CType(0,Byte), CType(0,Byte), "section_name", Global.System.Data.DataRowVersion.Current, false, Nothing))
2341+ Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.OleDb.OleDbParameter("Original_section_code", Global.System.Data.OleDb.OleDbType.VarWChar, 0, Global.System.Data.ParameterDirection.Input, CType(0,Byte), CType(0,Byte), "section_code", Global.System.Data.DataRowVersion.Original, false, Nothing))
2342+ Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.OleDb.OleDbParameter("IsNull_section_name", Global.System.Data.OleDb.OleDbType.[Integer], 0, Global.System.Data.ParameterDirection.Input, CType(0,Byte), CType(0,Byte), "section_name", Global.System.Data.DataRowVersion.Original, true, Nothing))
2343+ Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.OleDb.OleDbParameter("Original_section_name", Global.System.Data.OleDb.OleDbType.VarWChar, 0, Global.System.Data.ParameterDirection.Input, CType(0,Byte), CType(0,Byte), "section_name", Global.System.Data.DataRowVersion.Original, false, Nothing))
2344+ End Sub
2345+
2346+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
2347+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
2348+ Private Sub InitConnection()
2349+ Me._connection = New Global.System.Data.OleDb.OleDbConnection()
2350+ Me._connection.ConnectionString = Global.accdb1.Settings.Default.projectManageConnectionString
2351+ End Sub
2352+
2353+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
2354+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
2355+ Private Sub InitCommandCollection()
2356+ Me._commandCollection = New Global.System.Data.OleDb.OleDbCommand(0) {}
2357+ Me._commandCollection(0) = New Global.System.Data.OleDb.OleDbCommand()
2358+ Me._commandCollection(0).Connection = Me.Connection
2359+ Me._commandCollection(0).CommandText = "SELECT section_code, section_name FROM tbl_section"
2360+ Me._commandCollection(0).CommandType = Global.System.Data.CommandType.Text
2361+ End Sub
2362+
2363+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
2364+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
2365+ Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
2366+ Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)> _
2367+ Public Overloads Overridable Function Fill(ByVal dataTable As projectManageDataSet.tbl_sectionDataTable) As Integer
2368+ Me.Adapter.SelectCommand = Me.CommandCollection(0)
2369+ If (Me.ClearBeforeFill = true) Then
2370+ dataTable.Clear
2371+ End If
2372+ Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
2373+ Return returnValue
2374+ End Function
2375+
2376+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
2377+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
2378+ Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
2379+ Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.[Select], true)> _
2380+ Public Overloads Overridable Function GetData() As projectManageDataSet.tbl_sectionDataTable
2381+ Me.Adapter.SelectCommand = Me.CommandCollection(0)
2382+ Dim dataTable As projectManageDataSet.tbl_sectionDataTable = New projectManageDataSet.tbl_sectionDataTable()
2383+ Me.Adapter.Fill(dataTable)
2384+ Return dataTable
2385+ End Function
2386+
2387+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
2388+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
2389+ Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
2390+ Public Overloads Overridable Function Update(ByVal dataTable As projectManageDataSet.tbl_sectionDataTable) As Integer
2391+ Return Me.Adapter.Update(dataTable)
2392+ End Function
2393+
2394+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
2395+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
2396+ Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
2397+ Public Overloads Overridable Function Update(ByVal dataSet As projectManageDataSet) As Integer
2398+ Return Me.Adapter.Update(dataSet, "tbl_section")
2399+ End Function
2400+
2401+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
2402+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
2403+ Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
2404+ Public Overloads Overridable Function Update(ByVal dataRow As Global.System.Data.DataRow) As Integer
2405+ Return Me.Adapter.Update(New Global.System.Data.DataRow() {dataRow})
2406+ End Function
2407+
2408+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
2409+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
2410+ Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
2411+ Public Overloads Overridable Function Update(ByVal dataRows() As Global.System.Data.DataRow) As Integer
2412+ Return Me.Adapter.Update(dataRows)
2413+ End Function
2414+
2415+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
2416+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
2417+ Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
2418+ Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Delete, true)> _
2419+ Public Overloads Overridable Function Delete(ByVal Original_section_code As String, ByVal Original_section_name As String) As Integer
2420+ If (Original_section_code Is Nothing) Then
2421+ Throw New Global.System.ArgumentNullException("Original_section_code")
2422+ Else
2423+ Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_section_code,String)
2424+ End If
2425+ If (Original_section_name Is Nothing) Then
2426+ Me.Adapter.DeleteCommand.Parameters(1).Value = CType(1,Object)
2427+ Me.Adapter.DeleteCommand.Parameters(2).Value = Global.System.DBNull.Value
2428+ Else
2429+ Me.Adapter.DeleteCommand.Parameters(1).Value = CType(0,Object)
2430+ Me.Adapter.DeleteCommand.Parameters(2).Value = CType(Original_section_name,String)
2431+ End If
2432+ Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.DeleteCommand.Connection.State
2433+ If ((Me.Adapter.DeleteCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
2434+ <> Global.System.Data.ConnectionState.Open) Then
2435+ Me.Adapter.DeleteCommand.Connection.Open
2436+ End If
2437+ Try
2438+ Dim returnValue As Integer = Me.Adapter.DeleteCommand.ExecuteNonQuery
2439+ Return returnValue
2440+ Finally
2441+ If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
2442+ Me.Adapter.DeleteCommand.Connection.Close
2443+ End If
2444+ End Try
2445+ End Function
2446+
2447+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
2448+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
2449+ Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
2450+ Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Insert, true)> _
2451+ Public Overloads Overridable Function Insert(ByVal section_code As String, ByVal section_name As String) As Integer
2452+ If (section_code Is Nothing) Then
2453+ Throw New Global.System.ArgumentNullException("section_code")
2454+ Else
2455+ Me.Adapter.InsertCommand.Parameters(0).Value = CType(section_code,String)
2456+ End If
2457+ If (section_name Is Nothing) Then
2458+ Me.Adapter.InsertCommand.Parameters(1).Value = Global.System.DBNull.Value
2459+ Else
2460+ Me.Adapter.InsertCommand.Parameters(1).Value = CType(section_name,String)
2461+ End If
2462+ Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.InsertCommand.Connection.State
2463+ If ((Me.Adapter.InsertCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
2464+ <> Global.System.Data.ConnectionState.Open) Then
2465+ Me.Adapter.InsertCommand.Connection.Open
2466+ End If
2467+ Try
2468+ Dim returnValue As Integer = Me.Adapter.InsertCommand.ExecuteNonQuery
2469+ Return returnValue
2470+ Finally
2471+ If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
2472+ Me.Adapter.InsertCommand.Connection.Close
2473+ End If
2474+ End Try
2475+ End Function
2476+
2477+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
2478+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
2479+ Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
2480+ Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)> _
2481+ Public Overloads Overridable Function Update(ByVal section_code As String, ByVal section_name As String, ByVal Original_section_code As String, ByVal Original_section_name As String) As Integer
2482+ If (section_code Is Nothing) Then
2483+ Throw New Global.System.ArgumentNullException("section_code")
2484+ Else
2485+ Me.Adapter.UpdateCommand.Parameters(0).Value = CType(section_code,String)
2486+ End If
2487+ If (section_name Is Nothing) Then
2488+ Me.Adapter.UpdateCommand.Parameters(1).Value = Global.System.DBNull.Value
2489+ Else
2490+ Me.Adapter.UpdateCommand.Parameters(1).Value = CType(section_name,String)
2491+ End If
2492+ If (Original_section_code Is Nothing) Then
2493+ Throw New Global.System.ArgumentNullException("Original_section_code")
2494+ Else
2495+ Me.Adapter.UpdateCommand.Parameters(2).Value = CType(Original_section_code,String)
2496+ End If
2497+ If (Original_section_name Is Nothing) Then
2498+ Me.Adapter.UpdateCommand.Parameters(3).Value = CType(1,Object)
2499+ Me.Adapter.UpdateCommand.Parameters(4).Value = Global.System.DBNull.Value
2500+ Else
2501+ Me.Adapter.UpdateCommand.Parameters(3).Value = CType(0,Object)
2502+ Me.Adapter.UpdateCommand.Parameters(4).Value = CType(Original_section_name,String)
2503+ End If
2504+ Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.UpdateCommand.Connection.State
2505+ If ((Me.Adapter.UpdateCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
2506+ <> Global.System.Data.ConnectionState.Open) Then
2507+ Me.Adapter.UpdateCommand.Connection.Open
2508+ End If
2509+ Try
2510+ Dim returnValue As Integer = Me.Adapter.UpdateCommand.ExecuteNonQuery
2511+ Return returnValue
2512+ Finally
2513+ If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
2514+ Me.Adapter.UpdateCommand.Connection.Close
2515+ End If
2516+ End Try
2517+ End Function
2518+
2519+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
2520+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
2521+ Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
2522+ Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)> _
2523+ Public Overloads Overridable Function Update(ByVal section_name As String, ByVal Original_section_code As String, ByVal Original_section_name As String) As Integer
2524+ Return Me.Update(Original_section_code, section_name, Original_section_code, Original_section_name)
2525+ End Function
2526+ End Class
2527+
2528+ '''<summary>
17902529 '''TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
17912530 '''</summary>
17922531 <Global.System.ComponentModel.DesignerCategoryAttribute("code"), _
@@ -1801,6 +2540,8 @@
18012540
18022541 Private _tbl_staffTableAdapter As tbl_staffTableAdapter
18032542
2543+ Private _tbl_sectionTableAdapter As tbl_sectionTableAdapter
2544+
18042545 Private _backupDataSetBeforeUpdate As Boolean
18052546
18062547 Private _connection As Global.System.Data.IDbConnection
@@ -1831,6 +2572,20 @@
18312572 End Property
18322573
18332574 <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
2575+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
2576+ Global.System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso"& _
2577+ "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3"& _
2578+ "a", "System.Drawing.Design.UITypeEditor")> _
2579+ Public Property tbl_sectionTableAdapter() As tbl_sectionTableAdapter
2580+ Get
2581+ Return Me._tbl_sectionTableAdapter
2582+ End Get
2583+ Set
2584+ Me._tbl_sectionTableAdapter = value
2585+ End Set
2586+ End Property
2587+
2588+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
18342589 Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
18352590 Public Property BackupDataSetBeforeUpdate() As Boolean
18362591 Get
@@ -1853,6 +2608,10 @@
18532608 AndAlso (Not (Me._tbl_staffTableAdapter.Connection) Is Nothing)) Then
18542609 Return Me._tbl_staffTableAdapter.Connection
18552610 End If
2611+ If ((Not (Me._tbl_sectionTableAdapter) Is Nothing) _
2612+ AndAlso (Not (Me._tbl_sectionTableAdapter.Connection) Is Nothing)) Then
2613+ Return Me._tbl_sectionTableAdapter.Connection
2614+ End If
18562615 Return Nothing
18572616 End Get
18582617 Set
@@ -1869,6 +2628,9 @@
18692628 If (Not (Me._tbl_staffTableAdapter) Is Nothing) Then
18702629 count = (count + 1)
18712630 End If
2631+ If (Not (Me._tbl_sectionTableAdapter) Is Nothing) Then
2632+ count = (count + 1)
2633+ End If
18722634 Return count
18732635 End Get
18742636 End Property
@@ -1889,6 +2651,15 @@
18892651 allChangedRows.AddRange(updatedRows)
18902652 End If
18912653 End If
2654+ If (Not (Me._tbl_sectionTableAdapter) Is Nothing) Then
2655+ Dim updatedRows() As Global.System.Data.DataRow = dataSet.tbl_section.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.ModifiedCurrent)
2656+ updatedRows = Me.GetRealUpdatedRows(updatedRows, allAddedRows)
2657+ If ((Not (updatedRows) Is Nothing) _
2658+ AndAlso (0 < updatedRows.Length)) Then
2659+ result = (result + Me._tbl_sectionTableAdapter.Update(updatedRows))
2660+ allChangedRows.AddRange(updatedRows)
2661+ End If
2662+ End If
18922663 Return result
18932664 End Function
18942665
@@ -1907,6 +2678,14 @@
19072678 allAddedRows.AddRange(addedRows)
19082679 End If
19092680 End If
2681+ If (Not (Me._tbl_sectionTableAdapter) Is Nothing) Then
2682+ Dim addedRows() As Global.System.Data.DataRow = dataSet.tbl_section.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Added)
2683+ If ((Not (addedRows) Is Nothing) _
2684+ AndAlso (0 < addedRows.Length)) Then
2685+ result = (result + Me._tbl_sectionTableAdapter.Update(addedRows))
2686+ allAddedRows.AddRange(addedRows)
2687+ End If
2688+ End If
19102689 Return result
19112690 End Function
19122691
@@ -1917,6 +2696,14 @@
19172696 Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
19182697 Private Function UpdateDeletedRows(ByVal dataSet As projectManageDataSet, ByVal allChangedRows As Global.System.Collections.Generic.List(Of Global.System.Data.DataRow)) As Integer
19192698 Dim result As Integer = 0
2699+ If (Not (Me._tbl_sectionTableAdapter) Is Nothing) Then
2700+ Dim deletedRows() As Global.System.Data.DataRow = dataSet.tbl_section.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Deleted)
2701+ If ((Not (deletedRows) Is Nothing) _
2702+ AndAlso (0 < deletedRows.Length)) Then
2703+ result = (result + Me._tbl_sectionTableAdapter.Update(deletedRows))
2704+ allChangedRows.AddRange(deletedRows)
2705+ End If
2706+ End If
19202707 If (Not (Me._tbl_staffTableAdapter) Is Nothing) Then
19212708 Dim deletedRows() As Global.System.Data.DataRow = dataSet.tbl_staff.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Deleted)
19222709 If ((Not (deletedRows) Is Nothing) _
@@ -1970,6 +2757,10 @@
19702757 AndAlso (Me.MatchTableAdapterConnection(Me._tbl_staffTableAdapter.Connection) = false)) Then
19712758 Throw New Global.System.ArgumentException("TableAdapterManager で管理されるすべての TableAdapter は同一の接続文字列を使用する必要があります。")
19722759 End If
2760+ If ((Not (Me._tbl_sectionTableAdapter) Is Nothing) _
2761+ AndAlso (Me.MatchTableAdapterConnection(Me._tbl_sectionTableAdapter.Connection) = false)) Then
2762+ Throw New Global.System.ArgumentException("TableAdapterManager で管理されるすべての TableAdapter は同一の接続文字列を使用する必要があります。")
2763+ End If
19732764 Dim workConnection As Global.System.Data.IDbConnection = Me.Connection
19742765 If (workConnection Is Nothing) Then
19752766 Throw New Global.System.ApplicationException("TableAdapterManager には接続情報がありません。それぞれの TableAdapterManager TableAdapter プロパティを有効な"& _
@@ -2010,6 +2801,15 @@
20102801 adaptersWithAcceptChangesDuringUpdate.Add(Me._tbl_staffTableAdapter.Adapter)
20112802 End If
20122803 End If
2804+ If (Not (Me._tbl_sectionTableAdapter) Is Nothing) Then
2805+ revertConnections.Add(Me._tbl_sectionTableAdapter, Me._tbl_sectionTableAdapter.Connection)
2806+ Me._tbl_sectionTableAdapter.Connection = CType(workConnection,Global.System.Data.OleDb.OleDbConnection)
2807+ Me._tbl_sectionTableAdapter.Transaction = CType(workTransaction,Global.System.Data.OleDb.OleDbTransaction)
2808+ If Me._tbl_sectionTableAdapter.Adapter.AcceptChangesDuringUpdate Then
2809+ Me._tbl_sectionTableAdapter.Adapter.AcceptChangesDuringUpdate = false
2810+ adaptersWithAcceptChangesDuringUpdate.Add(Me._tbl_sectionTableAdapter.Adapter)
2811+ End If
2812+ End If
20132813 '
20142814 '---- Perform updates -----------
20152815 '
@@ -2074,6 +2874,10 @@
20742874 Me._tbl_staffTableAdapter.Connection = CType(revertConnections(Me._tbl_staffTableAdapter),Global.System.Data.OleDb.OleDbConnection)
20752875 Me._tbl_staffTableAdapter.Transaction = Nothing
20762876 End If
2877+ If (Not (Me._tbl_sectionTableAdapter) Is Nothing) Then
2878+ Me._tbl_sectionTableAdapter.Connection = CType(revertConnections(Me._tbl_sectionTableAdapter),Global.System.Data.OleDb.OleDbConnection)
2879+ Me._tbl_sectionTableAdapter.Transaction = Nothing
2880+ End If
20772881 If (0 < adaptersWithAcceptChangesDuringUpdate.Count) Then
20782882 Dim adapters((adaptersWithAcceptChangesDuringUpdate.Count) - 1) As Global.System.Data.Common.DataAdapter
20792883 adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters)
--- vbdb/accdb1/accdb1/projectManageDataSet.xsd (revision 366)
+++ vbdb/accdb1/accdb1/projectManageDataSet.xsd (revision 367)
@@ -128,6 +128,54 @@
128128 </Mappings>
129129 <Sources />
130130 </TableAdapter>
131+ <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="tbl_sectionTableAdapter" GeneratorDataComponentClassName="tbl_sectionTableAdapter" Name="tbl_section" UserDataComponentName="tbl_sectionTableAdapter">
132+ <MainSource>
133+ <DbSource ConnectionRef="projectManageConnectionString (Settings)" DbObjectName="tbl_section" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
134+ <DeleteCommand>
135+ <DbCommand CommandType="Text" ModifiedByUser="false">
136+ <CommandText>DELETE FROM `tbl_section` WHERE ((`section_code` = ?) AND ((? = 1 AND `section_name` IS NULL) OR (`section_name` = ?)))</CommandText>
137+ <Parameters>
138+ <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Original_section_code" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="section_code" SourceColumnNullMapping="false" SourceVersion="Original" />
139+ <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_section_name" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="section_name" SourceColumnNullMapping="true" SourceVersion="Original" />
140+ <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Original_section_name" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="section_name" SourceColumnNullMapping="false" SourceVersion="Original" />
141+ </Parameters>
142+ </DbCommand>
143+ </DeleteCommand>
144+ <InsertCommand>
145+ <DbCommand CommandType="Text" ModifiedByUser="false">
146+ <CommandText>INSERT INTO `tbl_section` (`section_code`, `section_name`) VALUES (?, ?)</CommandText>
147+ <Parameters>
148+ <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="section_code" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="section_code" SourceColumnNullMapping="false" SourceVersion="Current" />
149+ <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="section_name" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="section_name" SourceColumnNullMapping="false" SourceVersion="Current" />
150+ </Parameters>
151+ </DbCommand>
152+ </InsertCommand>
153+ <SelectCommand>
154+ <DbCommand CommandType="Text" ModifiedByUser="false">
155+ <CommandText>SELECT section_code, section_name FROM tbl_section</CommandText>
156+ <Parameters />
157+ </DbCommand>
158+ </SelectCommand>
159+ <UpdateCommand>
160+ <DbCommand CommandType="Text" ModifiedByUser="false">
161+ <CommandText>UPDATE `tbl_section` SET `section_code` = ?, `section_name` = ? WHERE ((`section_code` = ?) AND ((? = 1 AND `section_name` IS NULL) OR (`section_name` = ?)))</CommandText>
162+ <Parameters>
163+ <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="section_code" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="section_code" SourceColumnNullMapping="false" SourceVersion="Current" />
164+ <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="section_name" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="section_name" SourceColumnNullMapping="false" SourceVersion="Current" />
165+ <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Original_section_code" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="section_code" SourceColumnNullMapping="false" SourceVersion="Original" />
166+ <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_section_name" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="section_name" SourceColumnNullMapping="true" SourceVersion="Original" />
167+ <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Original_section_name" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="section_name" SourceColumnNullMapping="false" SourceVersion="Original" />
168+ </Parameters>
169+ </DbCommand>
170+ </UpdateCommand>
171+ </DbSource>
172+ </MainSource>
173+ <Mappings>
174+ <Mapping SourceColumn="section_code" DataSetColumn="section_code" />
175+ <Mapping SourceColumn="section_name" DataSetColumn="section_name" />
176+ </Mappings>
177+ <Sources />
178+ </TableAdapter>
131179 </Tables>
132180 <Sources />
133181 </DataSource>
@@ -136,7 +184,7 @@
136184 <xs:element name="projectManageDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="projectManageDataSet" msprop:Generator_UserDSName="projectManageDataSet">
137185 <xs:complexType>
138186 <xs:choice minOccurs="0" maxOccurs="unbounded">
139- <xs:element name="tbl_staff" msprop:Generator_TableClassName="tbl_staffDataTable" msprop:Generator_TableVarName="tabletbl_staff" msprop:Generator_TablePropName="tbl_staff" msprop:Generator_RowDeletingName="tbl_staffRowDeleting" msprop:Generator_RowChangingName="tbl_staffRowChanging" msprop:Generator_RowEvHandlerName="tbl_staffRowChangeEventHandler" msprop:Generator_RowDeletedName="tbl_staffRowDeleted" msprop:Generator_UserTableName="tbl_staff" msprop:Generator_RowChangedName="tbl_staffRowChanged" msprop:Generator_RowEvArgName="tbl_staffRowChangeEvent" msprop:Generator_RowClassName="tbl_staffRow">
187+ <xs:element name="tbl_staff" msprop:Generator_TableClassName="tbl_staffDataTable" msprop:Generator_TableVarName="tabletbl_staff" msprop:Generator_RowChangedName="tbl_staffRowChanged" msprop:Generator_TablePropName="tbl_staff" msprop:Generator_RowDeletingName="tbl_staffRowDeleting" msprop:Generator_RowChangingName="tbl_staffRowChanging" msprop:Generator_RowEvHandlerName="tbl_staffRowChangeEventHandler" msprop:Generator_RowDeletedName="tbl_staffRowDeleted" msprop:Generator_RowClassName="tbl_staffRow" msprop:Generator_UserTableName="tbl_staff" msprop:Generator_RowEvArgName="tbl_staffRowChangeEvent">
140188 <xs:complexType>
141189 <xs:sequence>
142190 <xs:element name="staff_code" msprop:Generator_ColumnVarNameInTable="columnstaff_code" msprop:Generator_ColumnPropNameInRow="staff_code" msprop:Generator_ColumnPropNameInTable="staff_codeColumn" msprop:Generator_UserColumnName="staff_code">
@@ -209,6 +257,26 @@
209257 </xs:sequence>
210258 </xs:complexType>
211259 </xs:element>
260+ <xs:element name="tbl_section" msprop:Generator_TableClassName="tbl_sectionDataTable" msprop:Generator_TableVarName="tabletbl_section" msprop:Generator_TablePropName="tbl_section" msprop:Generator_RowDeletingName="tbl_sectionRowDeleting" msprop:Generator_RowChangingName="tbl_sectionRowChanging" msprop:Generator_RowEvHandlerName="tbl_sectionRowChangeEventHandler" msprop:Generator_RowDeletedName="tbl_sectionRowDeleted" msprop:Generator_UserTableName="tbl_section" msprop:Generator_RowChangedName="tbl_sectionRowChanged" msprop:Generator_RowEvArgName="tbl_sectionRowChangeEvent" msprop:Generator_RowClassName="tbl_sectionRow">
261+ <xs:complexType>
262+ <xs:sequence>
263+ <xs:element name="section_code" msprop:Generator_ColumnVarNameInTable="columnsection_code" msprop:Generator_ColumnPropNameInRow="section_code" msprop:Generator_ColumnPropNameInTable="section_codeColumn" msprop:Generator_UserColumnName="section_code">
264+ <xs:simpleType>
265+ <xs:restriction base="xs:string">
266+ <xs:maxLength value="4" />
267+ </xs:restriction>
268+ </xs:simpleType>
269+ </xs:element>
270+ <xs:element name="section_name" msprop:Generator_ColumnVarNameInTable="columnsection_name" msprop:Generator_ColumnPropNameInRow="section_name" msprop:Generator_ColumnPropNameInTable="section_nameColumn" msprop:Generator_UserColumnName="section_name" minOccurs="0">
271+ <xs:simpleType>
272+ <xs:restriction base="xs:string">
273+ <xs:maxLength value="20" />
274+ </xs:restriction>
275+ </xs:simpleType>
276+ </xs:element>
277+ </xs:sequence>
278+ </xs:complexType>
279+ </xs:element>
212280 </xs:choice>
213281 </xs:complexType>
214282 <xs:unique name="Constraint1" msdata:PrimaryKey="true">
@@ -215,5 +283,9 @@
215283 <xs:selector xpath=".//mstns:tbl_staff" />
216284 <xs:field xpath="mstns:staff_code" />
217285 </xs:unique>
286+ <xs:unique name="tbl_section_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
287+ <xs:selector xpath=".//mstns:tbl_section" />
288+ <xs:field xpath="mstns:section_code" />
289+ </xs:unique>
218290 </xs:element>
219291 </xs:schema>
\ No newline at end of file