Commit c2c1acac6f30e64d18279516cc0da3e84c32cb54

Authored by r-ujihara
1 parent 3a24af2b

レビュー内容反映(1回目)

@@ -70,6 +70,10 @@ @@ -70,6 +70,10 @@
70 this.button5 = new System.Windows.Forms.Button(); 70 this.button5 = new System.Windows.Forms.Button();
71 this.button6 = new System.Windows.Forms.Button(); 71 this.button6 = new System.Windows.Forms.Button();
72 this.panel1 = new System.Windows.Forms.Panel(); 72 this.panel1 = new System.Windows.Forms.Panel();
  73 + this.textBox38 = new System.Windows.Forms.TextBox();
  74 + this.textBox37 = new System.Windows.Forms.TextBox();
  75 + this.textBox36 = new System.Windows.Forms.TextBox();
  76 + this.textBox35 = new System.Windows.Forms.TextBox();
73 this.textBox30 = new System.Windows.Forms.TextBox(); 77 this.textBox30 = new System.Windows.Forms.TextBox();
74 this.textBox29 = new System.Windows.Forms.TextBox(); 78 this.textBox29 = new System.Windows.Forms.TextBox();
75 this.textBox28 = new System.Windows.Forms.TextBox(); 79 this.textBox28 = new System.Windows.Forms.TextBox();
@@ -85,13 +89,23 @@ @@ -85,13 +89,23 @@
85 this.textBox18 = new System.Windows.Forms.TextBox(); 89 this.textBox18 = new System.Windows.Forms.TextBox();
86 this.textBox17 = new System.Windows.Forms.TextBox(); 90 this.textBox17 = new System.Windows.Forms.TextBox();
87 this.textBox3 = new System.Windows.Forms.TextBox(); 91 this.textBox3 = new System.Windows.Forms.TextBox();
  92 + this.label21 = new System.Windows.Forms.Label();
  93 + this.button7 = new System.Windows.Forms.Button();
  94 + this.textBox31 = new System.Windows.Forms.TextBox();
  95 + this.textBox32 = new System.Windows.Forms.TextBox();
  96 + this.label22 = new System.Windows.Forms.Label();
  97 + this.label23 = new System.Windows.Forms.Label();
  98 + this.label24 = new System.Windows.Forms.Label();
  99 + this.label25 = new System.Windows.Forms.Label();
  100 + this.textBox33 = new System.Windows.Forms.TextBox();
  101 + this.textBox34 = new System.Windows.Forms.TextBox();
88 this.panel1.SuspendLayout(); 102 this.panel1.SuspendLayout();
89 this.SuspendLayout(); 103 this.SuspendLayout();
90 // 104 //
91 // textBox1 105 // textBox1
92 // 106 //
93 this.textBox1.ImeMode = System.Windows.Forms.ImeMode.Off; 107 this.textBox1.ImeMode = System.Windows.Forms.ImeMode.Off;
94 - this.textBox1.Location = new System.Drawing.Point(105, 65); 108 + this.textBox1.Location = new System.Drawing.Point(163, 78);
95 this.textBox1.MaxLength = 10; 109 this.textBox1.MaxLength = 10;
96 this.textBox1.Name = "textBox1"; 110 this.textBox1.Name = "textBox1";
97 this.textBox1.Size = new System.Drawing.Size(100, 19); 111 this.textBox1.Size = new System.Drawing.Size(100, 19);
@@ -103,7 +117,7 @@ @@ -103,7 +117,7 @@
103 // label1 117 // label1
104 // 118 //
105 this.label1.AutoSize = true; 119 this.label1.AutoSize = true;
106 - this.label1.Location = new System.Drawing.Point(32, 68); 120 + this.label1.Location = new System.Drawing.Point(94, 81);
107 this.label1.Name = "label1"; 121 this.label1.Name = "label1";
108 this.label1.Size = new System.Drawing.Size(53, 12); 122 this.label1.Size = new System.Drawing.Size(53, 12);
109 this.label1.TabIndex = 1; 123 this.label1.TabIndex = 1;
@@ -112,7 +126,7 @@ @@ -112,7 +126,7 @@
112 // label2 126 // label2
113 // 127 //
114 this.label2.AutoSize = true; 128 this.label2.AutoSize = true;
115 - this.label2.Location = new System.Drawing.Point(32, 93); 129 + this.label2.Location = new System.Drawing.Point(94, 106);
116 this.label2.Name = "label2"; 130 this.label2.Name = "label2";
117 this.label2.Size = new System.Drawing.Size(53, 12); 131 this.label2.Size = new System.Drawing.Size(53, 12);
118 this.label2.TabIndex = 2; 132 this.label2.TabIndex = 2;
@@ -121,7 +135,7 @@ @@ -121,7 +135,7 @@
121 // textBox2 135 // textBox2
122 // 136 //
123 this.textBox2.ImeMode = System.Windows.Forms.ImeMode.Off; 137 this.textBox2.ImeMode = System.Windows.Forms.ImeMode.Off;
124 - this.textBox2.Location = new System.Drawing.Point(105, 90); 138 + this.textBox2.Location = new System.Drawing.Point(163, 103);
125 this.textBox2.MaxLength = 10; 139 this.textBox2.MaxLength = 10;
126 this.textBox2.Name = "textBox2"; 140 this.textBox2.Name = "textBox2";
127 this.textBox2.Size = new System.Drawing.Size(100, 19); 141 this.textBox2.Size = new System.Drawing.Size(100, 19);
@@ -132,7 +146,7 @@ @@ -132,7 +146,7 @@
132 // label4 146 // label4
133 // 147 //
134 this.label4.AutoSize = true; 148 this.label4.AutoSize = true;
135 - this.label4.Location = new System.Drawing.Point(56, 118); 149 + this.label4.Location = new System.Drawing.Point(118, 131);
136 this.label4.Name = "label4"; 150 this.label4.Name = "label4";
137 this.label4.Size = new System.Drawing.Size(29, 12); 151 this.label4.Size = new System.Drawing.Size(29, 12);
138 this.label4.TabIndex = 6; 152 this.label4.TabIndex = 6;
@@ -141,7 +155,7 @@ @@ -141,7 +155,7 @@
141 // label5 155 // label5
142 // 156 //
143 this.label5.AutoSize = true; 157 this.label5.AutoSize = true;
144 - this.label5.Location = new System.Drawing.Point(56, 143); 158 + this.label5.Location = new System.Drawing.Point(118, 156);
145 this.label5.Name = "label5"; 159 this.label5.Name = "label5";
146 this.label5.Size = new System.Drawing.Size(29, 12); 160 this.label5.Size = new System.Drawing.Size(29, 12);
147 this.label5.TabIndex = 7; 161 this.label5.TabIndex = 7;
@@ -150,7 +164,7 @@ @@ -150,7 +164,7 @@
150 // textBox4 164 // textBox4
151 // 165 //
152 this.textBox4.ImeMode = System.Windows.Forms.ImeMode.Off; 166 this.textBox4.ImeMode = System.Windows.Forms.ImeMode.Off;
153 - this.textBox4.Location = new System.Drawing.Point(105, 115); 167 + this.textBox4.Location = new System.Drawing.Point(163, 128);
154 this.textBox4.MaxLength = 15; 168 this.textBox4.MaxLength = 15;
155 this.textBox4.Name = "textBox4"; 169 this.textBox4.Name = "textBox4";
156 this.textBox4.Size = new System.Drawing.Size(100, 19); 170 this.textBox4.Size = new System.Drawing.Size(100, 19);
@@ -161,7 +175,7 @@ @@ -161,7 +175,7 @@
161 // textBox5 175 // textBox5
162 // 176 //
163 this.textBox5.ImeMode = System.Windows.Forms.ImeMode.Off; 177 this.textBox5.ImeMode = System.Windows.Forms.ImeMode.Off;
164 - this.textBox5.Location = new System.Drawing.Point(105, 140); 178 + this.textBox5.Location = new System.Drawing.Point(163, 153);
165 this.textBox5.MaxLength = 15; 179 this.textBox5.MaxLength = 15;
166 this.textBox5.Name = "textBox5"; 180 this.textBox5.Name = "textBox5";
167 this.textBox5.Size = new System.Drawing.Size(100, 19); 181 this.textBox5.Size = new System.Drawing.Size(100, 19);
@@ -173,7 +187,7 @@ @@ -173,7 +187,7 @@
173 // 187 //
174 this.label6.AutoSize = true; 188 this.label6.AutoSize = true;
175 this.label6.ForeColor = System.Drawing.SystemColors.ActiveBorder; 189 this.label6.ForeColor = System.Drawing.SystemColors.ActiveBorder;
176 - this.label6.Location = new System.Drawing.Point(12, 162); 190 + this.label6.Location = new System.Drawing.Point(12, 175);
177 this.label6.Name = "label6"; 191 this.label6.Name = "label6";
178 this.label6.Size = new System.Drawing.Size(269, 12); 192 this.label6.Size = new System.Drawing.Size(269, 12);
179 this.label6.TabIndex = 10; 193 this.label6.TabIndex = 10;
@@ -182,7 +196,7 @@ @@ -182,7 +196,7 @@
182 // label7 196 // label7
183 // 197 //
184 this.label7.AutoSize = true; 198 this.label7.AutoSize = true;
185 - this.label7.Location = new System.Drawing.Point(32, 180); 199 + this.label7.Location = new System.Drawing.Point(94, 189);
186 this.label7.Name = "label7"; 200 this.label7.Name = "label7";
187 this.label7.Size = new System.Drawing.Size(53, 12); 201 this.label7.Size = new System.Drawing.Size(53, 12);
188 this.label7.TabIndex = 11; 202 this.label7.TabIndex = 11;
@@ -191,7 +205,7 @@ @@ -191,7 +205,7 @@
191 // textBox6 205 // textBox6
192 // 206 //
193 this.textBox6.ImeMode = System.Windows.Forms.ImeMode.Off; 207 this.textBox6.ImeMode = System.Windows.Forms.ImeMode.Off;
194 - this.textBox6.Location = new System.Drawing.Point(105, 177); 208 + this.textBox6.Location = new System.Drawing.Point(163, 186);
195 this.textBox6.MaxLength = 1; 209 this.textBox6.MaxLength = 1;
196 this.textBox6.Name = "textBox6"; 210 this.textBox6.Name = "textBox6";
197 this.textBox6.Size = new System.Drawing.Size(31, 19); 211 this.textBox6.Size = new System.Drawing.Size(31, 19);
@@ -202,7 +216,7 @@ @@ -202,7 +216,7 @@
202 // label8 216 // label8
203 // 217 //
204 this.label8.AutoSize = true; 218 this.label8.AutoSize = true;
205 - this.label8.Location = new System.Drawing.Point(18, 205); 219 + this.label8.Location = new System.Drawing.Point(80, 214);
206 this.label8.Name = "label8"; 220 this.label8.Name = "label8";
207 this.label8.Size = new System.Drawing.Size(67, 12); 221 this.label8.Size = new System.Drawing.Size(67, 12);
208 this.label8.TabIndex = 13; 222 this.label8.TabIndex = 13;
@@ -211,7 +225,7 @@ @@ -211,7 +225,7 @@
211 // textBox7 225 // textBox7
212 // 226 //
213 this.textBox7.ImeMode = System.Windows.Forms.ImeMode.Off; 227 this.textBox7.ImeMode = System.Windows.Forms.ImeMode.Off;
214 - this.textBox7.Location = new System.Drawing.Point(105, 202); 228 + this.textBox7.Location = new System.Drawing.Point(163, 211);
215 this.textBox7.MaxLength = 1; 229 this.textBox7.MaxLength = 1;
216 this.textBox7.Name = "textBox7"; 230 this.textBox7.Name = "textBox7";
217 this.textBox7.Size = new System.Drawing.Size(31, 19); 231 this.textBox7.Size = new System.Drawing.Size(31, 19);
@@ -222,7 +236,7 @@ @@ -222,7 +236,7 @@
222 // label9 236 // label9
223 // 237 //
224 this.label9.AutoSize = true; 238 this.label9.AutoSize = true;
225 - this.label9.Location = new System.Drawing.Point(48, 230); 239 + this.label9.Location = new System.Drawing.Point(110, 239);
226 this.label9.Name = "label9"; 240 this.label9.Name = "label9";
227 this.label9.Size = new System.Drawing.Size(37, 12); 241 this.label9.Size = new System.Drawing.Size(37, 12);
228 this.label9.TabIndex = 15; 242 this.label9.TabIndex = 15;
@@ -231,7 +245,7 @@ @@ -231,7 +245,7 @@
231 // label10 245 // label10
232 // 246 //
233 this.label10.AutoSize = true; 247 this.label10.AutoSize = true;
234 - this.label10.Location = new System.Drawing.Point(36, 255); 248 + this.label10.Location = new System.Drawing.Point(98, 264);
235 this.label10.Name = "label10"; 249 this.label10.Name = "label10";
236 this.label10.Size = new System.Drawing.Size(49, 12); 250 this.label10.Size = new System.Drawing.Size(49, 12);
237 this.label10.TabIndex = 16; 251 this.label10.TabIndex = 16;
@@ -240,7 +254,7 @@ @@ -240,7 +254,7 @@
240 // label11 254 // label11
241 // 255 //
242 this.label11.AutoSize = true; 256 this.label11.AutoSize = true;
243 - this.label11.Location = new System.Drawing.Point(24, 280); 257 + this.label11.Location = new System.Drawing.Point(86, 289);
244 this.label11.Name = "label11"; 258 this.label11.Name = "label11";
245 this.label11.Size = new System.Drawing.Size(61, 12); 259 this.label11.Size = new System.Drawing.Size(61, 12);
246 this.label11.TabIndex = 17; 260 this.label11.TabIndex = 17;
@@ -249,7 +263,7 @@ @@ -249,7 +263,7 @@
249 // label12 263 // label12
250 // 264 //
251 this.label12.AutoSize = true; 265 this.label12.AutoSize = true;
252 - this.label12.Location = new System.Drawing.Point(32, 305); 266 + this.label12.Location = new System.Drawing.Point(94, 314);
253 this.label12.Name = "label12"; 267 this.label12.Name = "label12";
254 this.label12.Size = new System.Drawing.Size(53, 12); 268 this.label12.Size = new System.Drawing.Size(53, 12);
255 this.label12.TabIndex = 18; 269 this.label12.TabIndex = 18;
@@ -258,7 +272,7 @@ @@ -258,7 +272,7 @@
258 // label13 272 // label13
259 // 273 //
260 this.label13.AutoSize = true; 274 this.label13.AutoSize = true;
261 - this.label13.Location = new System.Drawing.Point(32, 330); 275 + this.label13.Location = new System.Drawing.Point(94, 339);
262 this.label13.Name = "label13"; 276 this.label13.Name = "label13";
263 this.label13.Size = new System.Drawing.Size(53, 12); 277 this.label13.Size = new System.Drawing.Size(53, 12);
264 this.label13.TabIndex = 19; 278 this.label13.TabIndex = 19;
@@ -267,25 +281,25 @@ @@ -267,25 +281,25 @@
267 // label14 281 // label14
268 // 282 //
269 this.label14.AutoSize = true; 283 this.label14.AutoSize = true;
270 - this.label14.Location = new System.Drawing.Point(24, 355); 284 + this.label14.Location = new System.Drawing.Point(8, 364);
271 this.label14.Name = "label14"; 285 this.label14.Name = "label14";
272 - this.label14.Size = new System.Drawing.Size(61, 12); 286 + this.label14.Size = new System.Drawing.Size(139, 12);
273 this.label14.TabIndex = 20; 287 this.label14.TabIndex = 20;
274 - this.label14.Text = "子宮頸がん"; 288 + this.label14.Text = "子宮頸がん-総合支所集団";
275 // 289 //
276 // label15 290 // label15
277 // 291 //
278 this.label15.AutoSize = true; 292 this.label15.AutoSize = true;
279 - this.label15.Location = new System.Drawing.Point(48, 380); 293 + this.label15.Location = new System.Drawing.Point(32, 414);
280 this.label15.Name = "label15"; 294 this.label15.Name = "label15";
281 - this.label15.Size = new System.Drawing.Size(37, 12); 295 + this.label15.Size = new System.Drawing.Size(115, 12);
282 this.label15.TabIndex = 21; 296 this.label15.TabIndex = 21;
283 - this.label15.Text = "乳がん"; 297 + this.label15.Text = "乳がん-総合支所集団";
284 // 298 //
285 // textBox8 299 // textBox8
286 // 300 //
287 this.textBox8.ImeMode = System.Windows.Forms.ImeMode.Off; 301 this.textBox8.ImeMode = System.Windows.Forms.ImeMode.Off;
288 - this.textBox8.Location = new System.Drawing.Point(105, 227); 302 + this.textBox8.Location = new System.Drawing.Point(163, 236);
289 this.textBox8.MaxLength = 1; 303 this.textBox8.MaxLength = 1;
290 this.textBox8.Name = "textBox8"; 304 this.textBox8.Name = "textBox8";
291 this.textBox8.Size = new System.Drawing.Size(31, 19); 305 this.textBox8.Size = new System.Drawing.Size(31, 19);
@@ -296,7 +310,7 @@ @@ -296,7 +310,7 @@
296 // textBox9 310 // textBox9
297 // 311 //
298 this.textBox9.ImeMode = System.Windows.Forms.ImeMode.Off; 312 this.textBox9.ImeMode = System.Windows.Forms.ImeMode.Off;
299 - this.textBox9.Location = new System.Drawing.Point(105, 252); 313 + this.textBox9.Location = new System.Drawing.Point(163, 261);
300 this.textBox9.MaxLength = 1; 314 this.textBox9.MaxLength = 1;
301 this.textBox9.Name = "textBox9"; 315 this.textBox9.Name = "textBox9";
302 this.textBox9.Size = new System.Drawing.Size(31, 19); 316 this.textBox9.Size = new System.Drawing.Size(31, 19);
@@ -307,7 +321,7 @@ @@ -307,7 +321,7 @@
307 // textBox10 321 // textBox10
308 // 322 //
309 this.textBox10.ImeMode = System.Windows.Forms.ImeMode.Off; 323 this.textBox10.ImeMode = System.Windows.Forms.ImeMode.Off;
310 - this.textBox10.Location = new System.Drawing.Point(105, 277); 324 + this.textBox10.Location = new System.Drawing.Point(163, 286);
311 this.textBox10.MaxLength = 1; 325 this.textBox10.MaxLength = 1;
312 this.textBox10.Name = "textBox10"; 326 this.textBox10.Name = "textBox10";
313 this.textBox10.Size = new System.Drawing.Size(31, 19); 327 this.textBox10.Size = new System.Drawing.Size(31, 19);
@@ -318,7 +332,7 @@ @@ -318,7 +332,7 @@
318 // textBox11 332 // textBox11
319 // 333 //
320 this.textBox11.ImeMode = System.Windows.Forms.ImeMode.Off; 334 this.textBox11.ImeMode = System.Windows.Forms.ImeMode.Off;
321 - this.textBox11.Location = new System.Drawing.Point(105, 302); 335 + this.textBox11.Location = new System.Drawing.Point(163, 311);
322 this.textBox11.MaxLength = 1; 336 this.textBox11.MaxLength = 1;
323 this.textBox11.Name = "textBox11"; 337 this.textBox11.Name = "textBox11";
324 this.textBox11.Size = new System.Drawing.Size(31, 19); 338 this.textBox11.Size = new System.Drawing.Size(31, 19);
@@ -329,7 +343,7 @@ @@ -329,7 +343,7 @@
329 // textBox12 343 // textBox12
330 // 344 //
331 this.textBox12.ImeMode = System.Windows.Forms.ImeMode.Off; 345 this.textBox12.ImeMode = System.Windows.Forms.ImeMode.Off;
332 - this.textBox12.Location = new System.Drawing.Point(105, 327); 346 + this.textBox12.Location = new System.Drawing.Point(163, 336);
333 this.textBox12.MaxLength = 1; 347 this.textBox12.MaxLength = 1;
334 this.textBox12.Name = "textBox12"; 348 this.textBox12.Name = "textBox12";
335 this.textBox12.Size = new System.Drawing.Size(31, 19); 349 this.textBox12.Size = new System.Drawing.Size(31, 19);
@@ -340,7 +354,7 @@ @@ -340,7 +354,7 @@
340 // textBox13 354 // textBox13
341 // 355 //
342 this.textBox13.ImeMode = System.Windows.Forms.ImeMode.Off; 356 this.textBox13.ImeMode = System.Windows.Forms.ImeMode.Off;
343 - this.textBox13.Location = new System.Drawing.Point(105, 352); 357 + this.textBox13.Location = new System.Drawing.Point(163, 361);
344 this.textBox13.MaxLength = 1; 358 this.textBox13.MaxLength = 1;
345 this.textBox13.Name = "textBox13"; 359 this.textBox13.Name = "textBox13";
346 this.textBox13.Size = new System.Drawing.Size(31, 19); 360 this.textBox13.Size = new System.Drawing.Size(31, 19);
@@ -351,11 +365,11 @@ @@ -351,11 +365,11 @@
351 // textBox14 365 // textBox14
352 // 366 //
353 this.textBox14.ImeMode = System.Windows.Forms.ImeMode.Off; 367 this.textBox14.ImeMode = System.Windows.Forms.ImeMode.Off;
354 - this.textBox14.Location = new System.Drawing.Point(105, 377); 368 + this.textBox14.Location = new System.Drawing.Point(163, 411);
355 this.textBox14.MaxLength = 1; 369 this.textBox14.MaxLength = 1;
356 this.textBox14.Name = "textBox14"; 370 this.textBox14.Name = "textBox14";
357 this.textBox14.Size = new System.Drawing.Size(31, 19); 371 this.textBox14.Size = new System.Drawing.Size(31, 19);
358 - this.textBox14.TabIndex = 28; 372 + this.textBox14.TabIndex = 29;
359 this.textBox14.TextChanged += new System.EventHandler(this.textBox14_TextChanged); 373 this.textBox14.TextChanged += new System.EventHandler(this.textBox14_TextChanged);
360 this.textBox14.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox14_KeyPress); 374 this.textBox14.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox14_KeyPress);
361 // 375 //
@@ -363,7 +377,7 @@ @@ -363,7 +377,7 @@
363 // 377 //
364 this.label16.AutoSize = true; 378 this.label16.AutoSize = true;
365 this.label16.ForeColor = System.Drawing.SystemColors.ActiveBorder; 379 this.label16.ForeColor = System.Drawing.SystemColors.ActiveBorder;
366 - this.label16.Location = new System.Drawing.Point(12, 399); 380 + this.label16.Location = new System.Drawing.Point(8, 457);
367 this.label16.Name = "label16"; 381 this.label16.Name = "label16";
368 this.label16.Size = new System.Drawing.Size(269, 12); 382 this.label16.Size = new System.Drawing.Size(269, 12);
369 this.label16.TabIndex = 29; 383 this.label16.TabIndex = 29;
@@ -372,16 +386,16 @@ @@ -372,16 +386,16 @@
372 // label17 386 // label17
373 // 387 //
374 this.label17.AutoSize = true; 388 this.label17.AutoSize = true;
375 - this.label17.Location = new System.Drawing.Point(32, 417); 389 + this.label17.Location = new System.Drawing.Point(70, 475);
376 this.label17.Name = "label17"; 390 this.label17.Name = "label17";
377 - this.label17.Size = new System.Drawing.Size(53, 12); 391 + this.label17.Size = new System.Drawing.Size(77, 12);
378 this.label17.TabIndex = 30; 392 this.label17.TabIndex = 30;
379 - this.label17.Text = "希望場所"; 393 + this.label17.Text = "総合健診希望";
380 // 394 //
381 // label18 395 // label18
382 // 396 //
383 this.label18.AutoSize = true; 397 this.label18.AutoSize = true;
384 - this.label18.Location = new System.Drawing.Point(20, 444); 398 + this.label18.Location = new System.Drawing.Point(82, 550);
385 this.label18.Name = "label18"; 399 this.label18.Name = "label18";
386 this.label18.Size = new System.Drawing.Size(65, 12); 400 this.label18.Size = new System.Drawing.Size(65, 12);
387 this.label18.TabIndex = 31; 401 this.label18.TabIndex = 31;
@@ -390,48 +404,48 @@ @@ -390,48 +404,48 @@
390 // textBox15 404 // textBox15
391 // 405 //
392 this.textBox15.ImeMode = System.Windows.Forms.ImeMode.Off; 406 this.textBox15.ImeMode = System.Windows.Forms.ImeMode.Off;
393 - this.textBox15.Location = new System.Drawing.Point(105, 414); 407 + this.textBox15.Location = new System.Drawing.Point(163, 472);
394 this.textBox15.MaxLength = 1; 408 this.textBox15.MaxLength = 1;
395 this.textBox15.Name = "textBox15"; 409 this.textBox15.Name = "textBox15";
396 this.textBox15.Size = new System.Drawing.Size(31, 19); 410 this.textBox15.Size = new System.Drawing.Size(31, 19);
397 - this.textBox15.TabIndex = 32; 411 + this.textBox15.TabIndex = 31;
398 this.textBox15.TextChanged += new System.EventHandler(this.textBox15_TextChanged); 412 this.textBox15.TextChanged += new System.EventHandler(this.textBox15_TextChanged);
399 this.textBox15.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox15_KeyPress); 413 this.textBox15.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox15_KeyPress);
400 // 414 //
401 // textBox16 415 // textBox16
402 // 416 //
403 this.textBox16.ImeMode = System.Windows.Forms.ImeMode.Off; 417 this.textBox16.ImeMode = System.Windows.Forms.ImeMode.Off;
404 - this.textBox16.Location = new System.Drawing.Point(105, 441); 418 + this.textBox16.Location = new System.Drawing.Point(163, 547);
405 this.textBox16.MaxLength = 1; 419 this.textBox16.MaxLength = 1;
406 this.textBox16.Name = "textBox16"; 420 this.textBox16.Name = "textBox16";
407 this.textBox16.Size = new System.Drawing.Size(31, 19); 421 this.textBox16.Size = new System.Drawing.Size(31, 19);
408 - this.textBox16.TabIndex = 33; 422 + this.textBox16.TabIndex = 34;
409 this.textBox16.TextChanged += new System.EventHandler(this.textBox16_TextChanged); 423 this.textBox16.TextChanged += new System.EventHandler(this.textBox16_TextChanged);
410 this.textBox16.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox16_KeyPress); 424 this.textBox16.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox16_KeyPress);
411 // 425 //
412 // button1 426 // button1
413 // 427 //
414 - this.button1.Location = new System.Drawing.Point(231, 482); 428 + this.button1.Location = new System.Drawing.Point(232, 608);
415 this.button1.Name = "button1"; 429 this.button1.Name = "button1";
416 this.button1.Size = new System.Drawing.Size(75, 23); 430 this.button1.Size = new System.Drawing.Size(75, 23);
417 - this.button1.TabIndex = 34; 431 + this.button1.TabIndex = 35;
418 this.button1.Text = "保存"; 432 this.button1.Text = "保存";
419 this.button1.UseVisualStyleBackColor = true; 433 this.button1.UseVisualStyleBackColor = true;
420 this.button1.Click += new System.EventHandler(this.button1_Click); 434 this.button1.Click += new System.EventHandler(this.button1_Click);
421 // 435 //
422 // button2 436 // button2
423 // 437 //
424 - this.button2.Location = new System.Drawing.Point(315, 482); 438 + this.button2.Location = new System.Drawing.Point(313, 608);
425 this.button2.Name = "button2"; 439 this.button2.Name = "button2";
426 this.button2.Size = new System.Drawing.Size(86, 23); 440 this.button2.Size = new System.Drawing.Size(86, 23);
427 - this.button2.TabIndex = 35; 441 + this.button2.TabIndex = 36;
428 this.button2.Text = "保存して次へ"; 442 this.button2.Text = "保存して次へ";
429 this.button2.UseVisualStyleBackColor = true; 443 this.button2.UseVisualStyleBackColor = true;
430 this.button2.Click += new System.EventHandler(this.button2_Click); 444 this.button2.Click += new System.EventHandler(this.button2_Click);
431 // 445 //
432 // button3 446 // button3
433 // 447 //
434 - this.button3.Location = new System.Drawing.Point(211, 63); 448 + this.button3.Location = new System.Drawing.Point(269, 76);
435 this.button3.Name = "button3"; 449 this.button3.Name = "button3";
436 this.button3.Size = new System.Drawing.Size(75, 23); 450 this.button3.Size = new System.Drawing.Size(75, 23);
437 this.button3.TabIndex = 36; 451 this.button3.TabIndex = 36;
@@ -442,7 +456,7 @@ @@ -442,7 +456,7 @@
442 // 456 //
443 // button4 457 // button4
444 // 458 //
445 - this.button4.Location = new System.Drawing.Point(10, 482); 459 + this.button4.Location = new System.Drawing.Point(10, 608);
446 this.button4.Name = "button4"; 460 this.button4.Name = "button4";
447 this.button4.Size = new System.Drawing.Size(75, 23); 461 this.button4.Size = new System.Drawing.Size(75, 23);
448 this.button4.TabIndex = 37; 462 this.button4.TabIndex = 37;
@@ -454,16 +468,17 @@ @@ -454,16 +468,17 @@
454 // label3 468 // label3
455 // 469 //
456 this.label3.AutoSize = true; 470 this.label3.AutoSize = true;
457 - this.label3.Location = new System.Drawing.Point(12, 18); 471 + this.label3.Font = new System.Drawing.Font("MS UI Gothic", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
  472 + this.label3.Location = new System.Drawing.Point(12, 9);
458 this.label3.Name = "label3"; 473 this.label3.Name = "label3";
459 - this.label3.Size = new System.Drawing.Size(65, 12); 474 + this.label3.Size = new System.Drawing.Size(36, 13);
460 this.label3.TabIndex = 38; 475 this.label3.TabIndex = 38;
461 - this.label3.Text = "行政区番号"; 476 + this.label3.Text = "ロット";
462 // 477 //
463 // label19 478 // label19
464 // 479 //
465 this.label19.AutoSize = true; 480 this.label19.AutoSize = true;
466 - this.label19.Location = new System.Drawing.Point(209, 18); 481 + this.label19.Location = new System.Drawing.Point(13, 32);
467 this.label19.Name = "label19"; 482 this.label19.Name = "label19";
468 this.label19.Size = new System.Drawing.Size(23, 12); 483 this.label19.Size = new System.Drawing.Size(23, 12);
469 this.label19.TabIndex = 39; 484 this.label19.TabIndex = 39;
@@ -472,7 +487,7 @@ @@ -472,7 +487,7 @@
472 // label20 487 // label20
473 // 488 //
474 this.label20.AutoSize = true; 489 this.label20.AutoSize = true;
475 - this.label20.Location = new System.Drawing.Point(105, 47); 490 + this.label20.Location = new System.Drawing.Point(161, 63);
476 this.label20.Name = "label20"; 491 this.label20.Name = "label20";
477 this.label20.Size = new System.Drawing.Size(56, 12); 492 this.label20.Size = new System.Drawing.Size(56, 12);
478 this.label20.TabIndex = 40; 493 this.label20.TabIndex = 40;
@@ -480,7 +495,7 @@ @@ -480,7 +495,7 @@
480 // 495 //
481 // button5 496 // button5
482 // 497 //
483 - this.button5.Location = new System.Drawing.Point(91, 482); 498 + this.button5.Location = new System.Drawing.Point(91, 608);
484 this.button5.Name = "button5"; 499 this.button5.Name = "button5";
485 this.button5.Size = new System.Drawing.Size(75, 23); 500 this.button5.Size = new System.Drawing.Size(75, 23);
486 this.button5.TabIndex = 41; 501 this.button5.TabIndex = 41;
@@ -491,17 +506,21 @@ @@ -491,17 +506,21 @@
491 // 506 //
492 // button6 507 // button6
493 // 508 //
494 - this.button6.Location = new System.Drawing.Point(317, 12); 509 + this.button6.Location = new System.Drawing.Point(371, 43);
495 this.button6.Name = "button6"; 510 this.button6.Name = "button6";
496 this.button6.Size = new System.Drawing.Size(84, 23); 511 this.button6.Size = new System.Drawing.Size(84, 23);
497 this.button6.TabIndex = 42; 512 this.button6.TabIndex = 42;
498 this.button6.TabStop = false; 513 this.button6.TabStop = false;
499 - this.button6.Text = "1回目の入力"; 514 + this.button6.Text = "1回目の表示";
500 this.button6.UseVisualStyleBackColor = true; 515 this.button6.UseVisualStyleBackColor = true;
501 this.button6.Click += new System.EventHandler(this.button6_Click); 516 this.button6.Click += new System.EventHandler(this.button6_Click);
502 // 517 //
503 // panel1 518 // panel1
504 // 519 //
  520 + this.panel1.Controls.Add(this.textBox38);
  521 + this.panel1.Controls.Add(this.textBox37);
  522 + this.panel1.Controls.Add(this.textBox36);
  523 + this.panel1.Controls.Add(this.textBox35);
505 this.panel1.Controls.Add(this.textBox30); 524 this.panel1.Controls.Add(this.textBox30);
506 this.panel1.Controls.Add(this.textBox29); 525 this.panel1.Controls.Add(this.textBox29);
507 this.panel1.Controls.Add(this.textBox28); 526 this.panel1.Controls.Add(this.textBox28);
@@ -517,152 +536,333 @@ @@ -517,152 +536,333 @@
517 this.panel1.Controls.Add(this.textBox18); 536 this.panel1.Controls.Add(this.textBox18);
518 this.panel1.Controls.Add(this.textBox17); 537 this.panel1.Controls.Add(this.textBox17);
519 this.panel1.Controls.Add(this.textBox3); 538 this.panel1.Controls.Add(this.textBox3);
520 - this.panel1.Location = new System.Drawing.Point(292, 59); 539 + this.panel1.Location = new System.Drawing.Point(371, 72);
521 this.panel1.Name = "panel1"; 540 this.panel1.Name = "panel1";
522 - this.panel1.Size = new System.Drawing.Size(109, 417); 541 + this.panel1.Size = new System.Drawing.Size(109, 506);
523 this.panel1.TabIndex = 43; 542 this.panel1.TabIndex = 43;
524 this.panel1.Visible = false; 543 this.panel1.Visible = false;
525 // 544 //
  545 + // textBox38
  546 + //
  547 + this.textBox38.Location = new System.Drawing.Point(4, 450);
  548 + this.textBox38.MaxLength = 1;
  549 + this.textBox38.Name = "textBox38";
  550 + this.textBox38.ReadOnly = true;
  551 + this.textBox38.Size = new System.Drawing.Size(30, 19);
  552 + this.textBox38.TabIndex = 18;
  553 + this.textBox38.TabStop = false;
  554 + this.textBox38.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox38_KeyPress);
  555 + //
  556 + // textBox37
  557 + //
  558 + this.textBox37.Location = new System.Drawing.Point(4, 422);
  559 + this.textBox37.MaxLength = 1;
  560 + this.textBox37.Name = "textBox37";
  561 + this.textBox37.ReadOnly = true;
  562 + this.textBox37.Size = new System.Drawing.Size(30, 19);
  563 + this.textBox37.TabIndex = 17;
  564 + this.textBox37.TabStop = false;
  565 + this.textBox37.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox37_KeyPress);
  566 + //
  567 + // textBox36
  568 + //
  569 + this.textBox36.Location = new System.Drawing.Point(3, 365);
  570 + this.textBox36.MaxLength = 1;
  571 + this.textBox36.Name = "textBox36";
  572 + this.textBox36.ReadOnly = true;
  573 + this.textBox36.Size = new System.Drawing.Size(31, 19);
  574 + this.textBox36.TabIndex = 16;
  575 + this.textBox36.TabStop = false;
  576 + this.textBox36.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox36_KeyPress);
  577 + //
  578 + // textBox35
  579 + //
  580 + this.textBox35.Location = new System.Drawing.Point(3, 314);
  581 + this.textBox35.MaxLength = 1;
  582 + this.textBox35.Name = "textBox35";
  583 + this.textBox35.ReadOnly = true;
  584 + this.textBox35.Size = new System.Drawing.Size(31, 19);
  585 + this.textBox35.TabIndex = 15;
  586 + this.textBox35.TabStop = false;
  587 + this.textBox35.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox35_KeyPress);
  588 + //
526 // textBox30 589 // textBox30
527 // 590 //
528 - this.textBox30.Location = new System.Drawing.Point(3, 378); 591 + this.textBox30.Location = new System.Drawing.Point(4, 475);
  592 + this.textBox30.MaxLength = 1;
529 this.textBox30.Name = "textBox30"; 593 this.textBox30.Name = "textBox30";
530 this.textBox30.ReadOnly = true; 594 this.textBox30.ReadOnly = true;
531 - this.textBox30.Size = new System.Drawing.Size(31, 19); 595 + this.textBox30.Size = new System.Drawing.Size(30, 19);
532 this.textBox30.TabIndex = 14; 596 this.textBox30.TabIndex = 14;
533 this.textBox30.TabStop = false; 597 this.textBox30.TabStop = false;
  598 + this.textBox30.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox30_KeyPress);
534 // 599 //
535 // textBox29 600 // textBox29
536 // 601 //
537 - this.textBox29.Location = new System.Drawing.Point(3, 351); 602 + this.textBox29.Location = new System.Drawing.Point(3, 396);
  603 + this.textBox29.MaxLength = 1;
538 this.textBox29.Name = "textBox29"; 604 this.textBox29.Name = "textBox29";
539 this.textBox29.ReadOnly = true; 605 this.textBox29.ReadOnly = true;
540 this.textBox29.Size = new System.Drawing.Size(31, 19); 606 this.textBox29.Size = new System.Drawing.Size(31, 19);
541 this.textBox29.TabIndex = 13; 607 this.textBox29.TabIndex = 13;
542 this.textBox29.TabStop = false; 608 this.textBox29.TabStop = false;
  609 + this.textBox29.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox29_KeyPress);
543 // 610 //
544 // textBox28 611 // textBox28
545 // 612 //
546 - this.textBox28.Location = new System.Drawing.Point(3, 314); 613 + this.textBox28.Location = new System.Drawing.Point(3, 339);
  614 + this.textBox28.MaxLength = 1;
547 this.textBox28.Name = "textBox28"; 615 this.textBox28.Name = "textBox28";
548 this.textBox28.ReadOnly = true; 616 this.textBox28.ReadOnly = true;
549 this.textBox28.Size = new System.Drawing.Size(31, 19); 617 this.textBox28.Size = new System.Drawing.Size(31, 19);
550 this.textBox28.TabIndex = 12; 618 this.textBox28.TabIndex = 12;
551 this.textBox28.TabStop = false; 619 this.textBox28.TabStop = false;
  620 + this.textBox28.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox28_KeyPress);
552 // 621 //
553 // textBox27 622 // textBox27
554 // 623 //
555 this.textBox27.Location = new System.Drawing.Point(3, 289); 624 this.textBox27.Location = new System.Drawing.Point(3, 289);
  625 + this.textBox27.MaxLength = 1;
556 this.textBox27.Name = "textBox27"; 626 this.textBox27.Name = "textBox27";
557 this.textBox27.ReadOnly = true; 627 this.textBox27.ReadOnly = true;
558 this.textBox27.Size = new System.Drawing.Size(31, 19); 628 this.textBox27.Size = new System.Drawing.Size(31, 19);
559 this.textBox27.TabIndex = 11; 629 this.textBox27.TabIndex = 11;
560 this.textBox27.TabStop = false; 630 this.textBox27.TabStop = false;
  631 + this.textBox27.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox27_KeyPress);
561 // 632 //
562 // textBox26 633 // textBox26
563 // 634 //
564 this.textBox26.Location = new System.Drawing.Point(3, 264); 635 this.textBox26.Location = new System.Drawing.Point(3, 264);
  636 + this.textBox26.MaxLength = 1;
565 this.textBox26.Name = "textBox26"; 637 this.textBox26.Name = "textBox26";
566 this.textBox26.ReadOnly = true; 638 this.textBox26.ReadOnly = true;
567 this.textBox26.Size = new System.Drawing.Size(31, 19); 639 this.textBox26.Size = new System.Drawing.Size(31, 19);
568 this.textBox26.TabIndex = 10; 640 this.textBox26.TabIndex = 10;
569 this.textBox26.TabStop = false; 641 this.textBox26.TabStop = false;
  642 + this.textBox26.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox26_KeyPress);
570 // 643 //
571 // textBox25 644 // textBox25
572 // 645 //
573 this.textBox25.Location = new System.Drawing.Point(3, 239); 646 this.textBox25.Location = new System.Drawing.Point(3, 239);
  647 + this.textBox25.MaxLength = 1;
574 this.textBox25.Name = "textBox25"; 648 this.textBox25.Name = "textBox25";
575 this.textBox25.ReadOnly = true; 649 this.textBox25.ReadOnly = true;
576 this.textBox25.Size = new System.Drawing.Size(31, 19); 650 this.textBox25.Size = new System.Drawing.Size(31, 19);
577 this.textBox25.TabIndex = 9; 651 this.textBox25.TabIndex = 9;
578 this.textBox25.TabStop = false; 652 this.textBox25.TabStop = false;
  653 + this.textBox25.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox25_KeyPress);
579 // 654 //
580 // textBox24 655 // textBox24
581 // 656 //
582 this.textBox24.Location = new System.Drawing.Point(3, 214); 657 this.textBox24.Location = new System.Drawing.Point(3, 214);
  658 + this.textBox24.MaxLength = 1;
583 this.textBox24.Name = "textBox24"; 659 this.textBox24.Name = "textBox24";
584 this.textBox24.ReadOnly = true; 660 this.textBox24.ReadOnly = true;
585 this.textBox24.Size = new System.Drawing.Size(31, 19); 661 this.textBox24.Size = new System.Drawing.Size(31, 19);
586 this.textBox24.TabIndex = 8; 662 this.textBox24.TabIndex = 8;
587 this.textBox24.TabStop = false; 663 this.textBox24.TabStop = false;
  664 + this.textBox24.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox24_KeyPress);
588 // 665 //
589 // textBox23 666 // textBox23
590 // 667 //
591 this.textBox23.Location = new System.Drawing.Point(3, 189); 668 this.textBox23.Location = new System.Drawing.Point(3, 189);
  669 + this.textBox23.MaxLength = 1;
592 this.textBox23.Name = "textBox23"; 670 this.textBox23.Name = "textBox23";
593 this.textBox23.ReadOnly = true; 671 this.textBox23.ReadOnly = true;
594 this.textBox23.Size = new System.Drawing.Size(31, 19); 672 this.textBox23.Size = new System.Drawing.Size(31, 19);
595 this.textBox23.TabIndex = 7; 673 this.textBox23.TabIndex = 7;
596 this.textBox23.TabStop = false; 674 this.textBox23.TabStop = false;
  675 + this.textBox23.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox23_KeyPress);
597 // 676 //
598 // textBox22 677 // textBox22
599 // 678 //
600 this.textBox22.Location = new System.Drawing.Point(3, 164); 679 this.textBox22.Location = new System.Drawing.Point(3, 164);
  680 + this.textBox22.MaxLength = 1;
601 this.textBox22.Name = "textBox22"; 681 this.textBox22.Name = "textBox22";
602 this.textBox22.ReadOnly = true; 682 this.textBox22.ReadOnly = true;
603 this.textBox22.Size = new System.Drawing.Size(31, 19); 683 this.textBox22.Size = new System.Drawing.Size(31, 19);
604 this.textBox22.TabIndex = 6; 684 this.textBox22.TabIndex = 6;
605 this.textBox22.TabStop = false; 685 this.textBox22.TabStop = false;
  686 + this.textBox22.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox22_KeyPress);
606 // 687 //
607 // textBox21 688 // textBox21
608 // 689 //
609 this.textBox21.Location = new System.Drawing.Point(3, 139); 690 this.textBox21.Location = new System.Drawing.Point(3, 139);
  691 + this.textBox21.MaxLength = 1;
610 this.textBox21.Name = "textBox21"; 692 this.textBox21.Name = "textBox21";
611 this.textBox21.ReadOnly = true; 693 this.textBox21.ReadOnly = true;
612 this.textBox21.Size = new System.Drawing.Size(31, 19); 694 this.textBox21.Size = new System.Drawing.Size(31, 19);
613 this.textBox21.TabIndex = 5; 695 this.textBox21.TabIndex = 5;
614 this.textBox21.TabStop = false; 696 this.textBox21.TabStop = false;
  697 + this.textBox21.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox21_KeyPress);
615 // 698 //
616 // textBox20 699 // textBox20
617 // 700 //
618 this.textBox20.Location = new System.Drawing.Point(3, 114); 701 this.textBox20.Location = new System.Drawing.Point(3, 114);
  702 + this.textBox20.MaxLength = 1;
619 this.textBox20.Name = "textBox20"; 703 this.textBox20.Name = "textBox20";
620 this.textBox20.ReadOnly = true; 704 this.textBox20.ReadOnly = true;
621 this.textBox20.Size = new System.Drawing.Size(31, 19); 705 this.textBox20.Size = new System.Drawing.Size(31, 19);
622 this.textBox20.TabIndex = 4; 706 this.textBox20.TabIndex = 4;
623 this.textBox20.TabStop = false; 707 this.textBox20.TabStop = false;
  708 + this.textBox20.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox20_KeyPress);
624 // 709 //
625 // textBox19 710 // textBox19
626 // 711 //
627 this.textBox19.Location = new System.Drawing.Point(3, 81); 712 this.textBox19.Location = new System.Drawing.Point(3, 81);
  713 + this.textBox19.MaxLength = 15;
628 this.textBox19.Name = "textBox19"; 714 this.textBox19.Name = "textBox19";
629 this.textBox19.ReadOnly = true; 715 this.textBox19.ReadOnly = true;
630 this.textBox19.Size = new System.Drawing.Size(100, 19); 716 this.textBox19.Size = new System.Drawing.Size(100, 19);
631 this.textBox19.TabIndex = 3; 717 this.textBox19.TabIndex = 3;
632 this.textBox19.TabStop = false; 718 this.textBox19.TabStop = false;
  719 + this.textBox19.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox19_KeyPress);
633 // 720 //
634 // textBox18 721 // textBox18
635 // 722 //
636 this.textBox18.Location = new System.Drawing.Point(3, 56); 723 this.textBox18.Location = new System.Drawing.Point(3, 56);
  724 + this.textBox18.MaxLength = 15;
637 this.textBox18.Name = "textBox18"; 725 this.textBox18.Name = "textBox18";
638 this.textBox18.ReadOnly = true; 726 this.textBox18.ReadOnly = true;
639 this.textBox18.Size = new System.Drawing.Size(100, 19); 727 this.textBox18.Size = new System.Drawing.Size(100, 19);
640 this.textBox18.TabIndex = 2; 728 this.textBox18.TabIndex = 2;
641 this.textBox18.TabStop = false; 729 this.textBox18.TabStop = false;
  730 + this.textBox18.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox18_KeyPress);
642 // 731 //
643 // textBox17 732 // textBox17
644 // 733 //
645 this.textBox17.Location = new System.Drawing.Point(3, 31); 734 this.textBox17.Location = new System.Drawing.Point(3, 31);
  735 + this.textBox17.MaxLength = 10;
646 this.textBox17.Name = "textBox17"; 736 this.textBox17.Name = "textBox17";
647 this.textBox17.ReadOnly = true; 737 this.textBox17.ReadOnly = true;
648 this.textBox17.Size = new System.Drawing.Size(100, 19); 738 this.textBox17.Size = new System.Drawing.Size(100, 19);
649 this.textBox17.TabIndex = 1; 739 this.textBox17.TabIndex = 1;
650 this.textBox17.TabStop = false; 740 this.textBox17.TabStop = false;
  741 + this.textBox17.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox17_KeyPress);
651 // 742 //
652 // textBox3 743 // textBox3
653 // 744 //
654 this.textBox3.Location = new System.Drawing.Point(3, 6); 745 this.textBox3.Location = new System.Drawing.Point(3, 6);
  746 + this.textBox3.MaxLength = 10;
655 this.textBox3.Name = "textBox3"; 747 this.textBox3.Name = "textBox3";
656 this.textBox3.ReadOnly = true; 748 this.textBox3.ReadOnly = true;
657 this.textBox3.Size = new System.Drawing.Size(100, 19); 749 this.textBox3.Size = new System.Drawing.Size(100, 19);
658 this.textBox3.TabIndex = 0; 750 this.textBox3.TabIndex = 0;
659 this.textBox3.TabStop = false; 751 this.textBox3.TabStop = false;
  752 + this.textBox3.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox3_KeyPress);
  753 + //
  754 + // label21
  755 + //
  756 + this.label21.AutoSize = true;
  757 + this.label21.Font = new System.Drawing.Font("MS UI Gothic", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
  758 + this.label21.Location = new System.Drawing.Point(88, 7);
  759 + this.label21.Name = "label21";
  760 + this.label21.Size = new System.Drawing.Size(87, 15);
  761 + this.label21.TabIndex = 44;
  762 + this.label21.Text = "行政区番号";
  763 + //
  764 + // button7
  765 + //
  766 + this.button7.Location = new System.Drawing.Point(405, 608);
  767 + this.button7.Name = "button7";
  768 + this.button7.Size = new System.Drawing.Size(75, 23);
  769 + this.button7.TabIndex = 45;
  770 + this.button7.TabStop = false;
  771 + this.button7.Text = "閉じる";
  772 + this.button7.UseVisualStyleBackColor = true;
  773 + this.button7.Click += new System.EventHandler(this.button7_Click);
  774 + //
  775 + // textBox31
  776 + //
  777 + this.textBox31.Location = new System.Drawing.Point(163, 386);
  778 + this.textBox31.MaxLength = 1;
  779 + this.textBox31.Name = "textBox31";
  780 + this.textBox31.Size = new System.Drawing.Size(31, 19);
  781 + this.textBox31.TabIndex = 28;
  782 + this.textBox31.TextChanged += new System.EventHandler(this.textBox31_TextChanged);
  783 + this.textBox31.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox31_KeyPress);
  784 + //
  785 + // textBox32
  786 + //
  787 + this.textBox32.Location = new System.Drawing.Point(163, 436);
  788 + this.textBox32.MaxLength = 1;
  789 + this.textBox32.Name = "textBox32";
  790 + this.textBox32.Size = new System.Drawing.Size(31, 19);
  791 + this.textBox32.TabIndex = 30;
  792 + this.textBox32.TextChanged += new System.EventHandler(this.textBox32_TextChanged);
  793 + this.textBox32.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox32_KeyPress);
  794 + //
  795 + // label22
  796 + //
  797 + this.label22.AutoSize = true;
  798 + this.label22.Location = new System.Drawing.Point(8, 389);
  799 + this.label22.Name = "label22";
  800 + this.label22.Size = new System.Drawing.Size(139, 12);
  801 + this.label22.TabIndex = 48;
  802 + this.label22.Text = "子宮頸がん-指定医療機関";
  803 + //
  804 + // label23
  805 + //
  806 + this.label23.AutoSize = true;
  807 + this.label23.Location = new System.Drawing.Point(32, 440);
  808 + this.label23.Name = "label23";
  809 + this.label23.Size = new System.Drawing.Size(115, 12);
  810 + this.label23.TabIndex = 49;
  811 + this.label23.Text = "乳がん-石巻市医師会";
  812 + //
  813 + // label24
  814 + //
  815 + this.label24.AutoSize = true;
  816 + this.label24.Location = new System.Drawing.Point(46, 500);
  817 + this.label24.Name = "label24";
  818 + this.label24.Size = new System.Drawing.Size(101, 12);
  819 + this.label24.TabIndex = 50;
  820 + this.label24.Text = "本庁個別健診希望";
  821 + //
  822 + // label25
  823 + //
  824 + this.label25.AutoSize = true;
  825 + this.label25.Location = new System.Drawing.Point(32, 525);
  826 + this.label25.Name = "label25";
  827 + this.label25.Size = new System.Drawing.Size(115, 12);
  828 + this.label25.TabIndex = 51;
  829 + this.label25.Text = "石巻ロイヤル病院希望";
  830 + //
  831 + // textBox33
  832 + //
  833 + this.textBox33.Location = new System.Drawing.Point(163, 497);
  834 + this.textBox33.MaxLength = 1;
  835 + this.textBox33.Name = "textBox33";
  836 + this.textBox33.Size = new System.Drawing.Size(31, 19);
  837 + this.textBox33.TabIndex = 32;
  838 + this.textBox33.TextChanged += new System.EventHandler(this.textBox33_TextChanged);
  839 + this.textBox33.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox33_KeyPress);
  840 + //
  841 + // textBox34
  842 + //
  843 + this.textBox34.Location = new System.Drawing.Point(163, 522);
  844 + this.textBox34.MaxLength = 1;
  845 + this.textBox34.Name = "textBox34";
  846 + this.textBox34.Size = new System.Drawing.Size(31, 19);
  847 + this.textBox34.TabIndex = 33;
  848 + this.textBox34.TextChanged += new System.EventHandler(this.textBox34_TextChanged);
  849 + this.textBox34.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox34_KeyPress);
660 // 850 //
661 // Form2 851 // Form2
662 // 852 //
663 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); 853 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
664 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 854 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
665 - this.ClientSize = new System.Drawing.Size(411, 517); 855 + this.ClientSize = new System.Drawing.Size(492, 643);
  856 + this.Controls.Add(this.textBox34);
  857 + this.Controls.Add(this.textBox33);
  858 + this.Controls.Add(this.label25);
  859 + this.Controls.Add(this.label24);
  860 + this.Controls.Add(this.label23);
  861 + this.Controls.Add(this.label22);
  862 + this.Controls.Add(this.textBox32);
  863 + this.Controls.Add(this.textBox31);
  864 + this.Controls.Add(this.button7);
  865 + this.Controls.Add(this.label21);
666 this.Controls.Add(this.panel1); 866 this.Controls.Add(this.panel1);
667 this.Controls.Add(this.button6); 867 this.Controls.Add(this.button6);
668 this.Controls.Add(this.button5); 868 this.Controls.Add(this.button5);
@@ -775,5 +975,19 @@ @@ -775,5 +975,19 @@
775 private System.Windows.Forms.TextBox textBox18; 975 private System.Windows.Forms.TextBox textBox18;
776 private System.Windows.Forms.TextBox textBox17; 976 private System.Windows.Forms.TextBox textBox17;
777 private System.Windows.Forms.TextBox textBox3; 977 private System.Windows.Forms.TextBox textBox3;
  978 + private System.Windows.Forms.Label label21;
  979 + private System.Windows.Forms.Button button7;
  980 + private System.Windows.Forms.TextBox textBox31;
  981 + private System.Windows.Forms.TextBox textBox32;
  982 + private System.Windows.Forms.Label label22;
  983 + private System.Windows.Forms.Label label23;
  984 + private System.Windows.Forms.Label label24;
  985 + private System.Windows.Forms.Label label25;
  986 + private System.Windows.Forms.TextBox textBox33;
  987 + private System.Windows.Forms.TextBox textBox34;
  988 + private System.Windows.Forms.TextBox textBox38;
  989 + private System.Windows.Forms.TextBox textBox37;
  990 + private System.Windows.Forms.TextBox textBox36;
  991 + private System.Windows.Forms.TextBox textBox35;
778 } 992 }
779 } 993 }
@@ -29,7 +29,8 @@ namespace MedicalCheckInputTool @@ -29,7 +29,8 @@ namespace MedicalCheckInputTool
29 29
30 this.Text = "ロット:" + Global.lotNo + " " + Global.times + " " + "ユーザ:" + Global.inputUser; 30 this.Text = "ロット:" + Global.lotNo + " " + Global.times + " " + "ユーザ:" + Global.inputUser;
31 31
32 - label3.Text = "ロット " + Global.lotNo + " 行政区番号 " + Global.adminCode; 32 + label3.Text = "ロット:" + Global.lotNo;
  33 + label21.Text = "行政区番号:" + Global.adminCode + " " + Global.adminName;
33 34
34 label20.Text = ""; //エラーメッセージなし 35 label20.Text = ""; //エラーメッセージなし
35 36
@@ -50,7 +51,6 @@ namespace MedicalCheckInputTool @@ -50,7 +51,6 @@ namespace MedicalCheckInputTool
50 string code = serialNo.PadLeft(10, '0'); 51 string code = serialNo.PadLeft(10, '0');
51 52
52 textBox1.Text = code; 53 textBox1.Text = code;
53 - bool err = false;  
54 MySqlCommand cmd = new MySqlCommand("select * from `" + Global.times + "` where `ロット番号` = @lotNo and `整理番号` = @serialNo", conn); 54 MySqlCommand cmd = new MySqlCommand("select * from `" + Global.times + "` where `ロット番号` = @lotNo and `整理番号` = @serialNo", conn);
55 // パラメータ設定 55 // パラメータ設定
56 cmd.Parameters.Add(new MySqlParameter("lotNo", Global.lotNo)); 56 cmd.Parameters.Add(new MySqlParameter("lotNo", Global.lotNo));
@@ -80,10 +80,79 @@ namespace MedicalCheckInputTool @@ -80,10 +80,79 @@ namespace MedicalCheckInputTool
80 textBox10.Text = isDBNull(reader, "前立腺がん"); 80 textBox10.Text = isDBNull(reader, "前立腺がん");
81 textBox11.Text = isDBNull(reader, "骨粗鬆症"); 81 textBox11.Text = isDBNull(reader, "骨粗鬆症");
82 textBox12.Text = isDBNull(reader, "成人歯科"); 82 textBox12.Text = isDBNull(reader, "成人歯科");
83 - textBox13.Text = isDBNull(reader, "子宮頸がん");  
84 - textBox14.Text = isDBNull(reader, "乳がん");  
85 - textBox15.Text = isDBNull(reader, "希望場所");  
86 - textBox16.Text = isDBNull(reader, "身体不自由"); 83 +
  84 + string cervicalCancer = isDBNull(reader, "子宮頸がん");
  85 + if ("".Equals(cervicalCancer))
  86 + {
  87 + textBox13.Text = "";
  88 + textBox31.Text = "";
  89 + }
  90 + else if ("9".Equals(cervicalCancer))
  91 + {
  92 + textBox13.Text = "0";
  93 + textBox31.Text = "";
  94 + }
  95 + else if ("0".Equals(cervicalCancer))
  96 + {
  97 + textBox13.Text = "";
  98 + textBox31.Text = "0";
  99 + }
  100 + else
  101 + {
  102 + textBox13.Text = cervicalCancer;
  103 + textBox31.Text = "";
  104 + }
  105 +
  106 + string breastCancer = isDBNull(reader, "乳がん");
  107 + if ("".Equals(breastCancer))
  108 + {
  109 + textBox14.Text = "";
  110 + textBox32.Text = "";
  111 + }
  112 + else if ("9".Equals(breastCancer))
  113 + {
  114 + textBox14.Text = "0";
  115 + textBox32.Text = "";
  116 + }
  117 + else if ("0".Equals(breastCancer))
  118 + {
  119 + textBox14.Text = "";
  120 + textBox32.Text = "0";
  121 + }
  122 + else
  123 + {
  124 + textBox14.Text = breastCancer;
  125 + textBox32.Text = "";
  126 + }
  127 +
  128 + string place = isDBNull(reader, "希望場所");
  129 +
  130 + if ("".Equals(place))
  131 + {
  132 + textBox15.Text = "";
  133 + textBox33.Text = "";
  134 + textBox34.Text = "";
  135 + }
  136 + else if ("1".Equals(place))
  137 + {
  138 + textBox15.Text = "0";
  139 + textBox33.Text = "";
  140 + textBox34.Text = "";
  141 + }
  142 + if ("2".Equals(place))
  143 + {
  144 + textBox15.Text = "";
  145 + textBox33.Text = "0";
  146 + textBox34.Text = "";
  147 + }
  148 + if ("3".Equals(place))
  149 + {
  150 + textBox15.Text = "";
  151 + textBox33.Text = "";
  152 + textBox34.Text = "0";
  153 + }
  154 +
  155 + textBox16.Text = "".Equals(isDBNull(reader, "身体不自由")) ? "" : "0";
87 156
88 Global.adminCode = isDBNull(reader, "行政区コード"); 157 Global.adminCode = isDBNull(reader, "行政区コード");
89 Global.adminName = isDBNull(reader, "行政区名称"); 158 Global.adminName = isDBNull(reader, "行政区名称");
@@ -129,7 +198,7 @@ namespace MedicalCheckInputTool @@ -129,7 +198,7 @@ namespace MedicalCheckInputTool
129 SaveData sv = makeSaveData(); //保存用データ生成(パディング済み) 198 SaveData sv = makeSaveData(); //保存用データ生成(パディング済み)
130 199
131 //マッチングチェック 200 //マッチングチェック
132 - bool matchErr = matchInput(sv); 201 + bool matchErr = matchInput(sv, Global.times);
133 //一致しない場合、エラー表示はするが保存は実行してしまう 202 //一致しない場合、エラー表示はするが保存は実行してしまう
134 if(matchErr) 203 if(matchErr)
135 { 204 {
@@ -178,9 +247,65 @@ namespace MedicalCheckInputTool @@ -178,9 +247,65 @@ namespace MedicalCheckInputTool
178 sv.prostateCancer = textBox10.Text; //前立腺がん 247 sv.prostateCancer = textBox10.Text; //前立腺がん
179 sv.osteoporosis = textBox11.Text; //骨粗鬆症 248 sv.osteoporosis = textBox11.Text; //骨粗鬆症
180 sv.dental = textBox12.Text; //成人歯科 249 sv.dental = textBox12.Text; //成人歯科
181 - sv.cervicalCancer = textBox13.Text; //子宮頸がん  
182 - sv.breastCancer = textBox14.Text; //乳がん  
183 - sv.place = textBox15.Text; //希望場所 250 + if ("".Equals(textBox13.Text) && "".Equals(textBox31.Text))
  251 + {
  252 + sv.cervicalCancer = ""; //子宮頸がん
  253 + }
  254 + else
  255 + {
  256 + if("0".Equals(textBox13.Text))
  257 + {
  258 + sv.cervicalCancer = "9"; //子宮頸がん
  259 + }
  260 + else if("0".Equals(textBox31.Text))
  261 + {
  262 + sv.cervicalCancer = "0"; //子宮頸がん
  263 + }
  264 + else
  265 + {
  266 + sv.cervicalCancer = "".Equals(textBox31) ? textBox13.Text : textBox31.Text; //子宮頸がん
  267 + }
  268 + }
  269 +
  270 + if ("".Equals(textBox14.Text) && "".Equals(textBox32.Text))
  271 + {
  272 + sv.breastCancer = ""; //乳がん
  273 + }
  274 + else
  275 + {
  276 + if ("0".Equals(textBox14.Text))
  277 + {
  278 + sv.breastCancer = "9"; //乳がん
  279 + }
  280 + else if ("0".Equals(textBox32.Text))
  281 + {
  282 + sv.breastCancer = "0"; //乳がん
  283 + }
  284 + else
  285 + {
  286 + sv.breastCancer = "".Equals(textBox32) ? textBox14.Text : textBox32.Text; //乳がん
  287 + }
  288 + }
  289 +
  290 + if ("".Equals(textBox15) && "".Equals(textBox33.Text) && "".Equals(textBox34))
  291 + {
  292 + sv.place = ""; //希望場所
  293 + }
  294 + else
  295 + {
  296 + if("0".Equals(textBox15.Text))
  297 + {
  298 + sv.place = "1"; //希望場所
  299 + }
  300 + else if ("0".Equals(textBox33.Text))
  301 + {
  302 + sv.place = "2"; //希望場所
  303 + }
  304 + else if ("0".Equals(textBox34.Text))
  305 + {
  306 + sv.place = "3"; //希望場所
  307 + }
  308 + }
184 sv.handicapped = "".Equals(textBox16.Text) ? "" : "8"; //身体不自由 309 sv.handicapped = "".Equals(textBox16.Text) ? "" : "8"; //身体不自由
185 sv.phone = textBox4.Text; //電話番号 310 sv.phone = textBox4.Text; //電話番号
186 sv.mobilePhone = textBox5.Text; //携帯番号 311 sv.mobilePhone = textBox5.Text; //携帯番号
@@ -280,10 +405,79 @@ namespace MedicalCheckInputTool @@ -280,10 +405,79 @@ namespace MedicalCheckInputTool
280 textBox10.Text = isDBNull(reader, "前立腺がん"); 405 textBox10.Text = isDBNull(reader, "前立腺がん");
281 textBox11.Text = isDBNull(reader, "骨粗鬆症"); 406 textBox11.Text = isDBNull(reader, "骨粗鬆症");
282 textBox12.Text = isDBNull(reader, "成人歯科"); 407 textBox12.Text = isDBNull(reader, "成人歯科");
283 - textBox13.Text = isDBNull(reader, "子宮頸がん");  
284 - textBox14.Text = isDBNull(reader, "乳がん");  
285 - textBox15.Text = isDBNull(reader, "希望場所");  
286 - textBox16.Text = isDBNull(reader, "身体不自由"); 408 +
  409 + string cervicalCancer = isDBNull(reader, "子宮頸がん");
  410 + if ("".Equals(cervicalCancer))
  411 + {
  412 + textBox13.Text = "";
  413 + textBox31.Text = "";
  414 + }
  415 + else if ("9".Equals(cervicalCancer))
  416 + {
  417 + textBox13.Text = "0";
  418 + textBox31.Text = "";
  419 + }
  420 + else if ("0".Equals(cervicalCancer))
  421 + {
  422 + textBox13.Text = "";
  423 + textBox31.Text = "0";
  424 + }
  425 + else
  426 + {
  427 + textBox13.Text = cervicalCancer;
  428 + textBox31.Text = "";
  429 + }
  430 +
  431 + string breastCancer = isDBNull(reader, "乳がん");
  432 + if ("".Equals(breastCancer))
  433 + {
  434 + textBox14.Text = "";
  435 + textBox32.Text = "";
  436 + }
  437 + else if ("9".Equals(breastCancer))
  438 + {
  439 + textBox14.Text = "0";
  440 + textBox32.Text = "";
  441 + }
  442 + else if ("0".Equals(breastCancer))
  443 + {
  444 + textBox14.Text = "";
  445 + textBox32.Text = "0";
  446 + }
  447 + else
  448 + {
  449 + textBox14.Text = breastCancer;
  450 + textBox32.Text = "";
  451 + }
  452 +
  453 + string place = isDBNull(reader, "希望場所");
  454 +
  455 + if("".Equals(place))
  456 + {
  457 + textBox15.Text = "";
  458 + textBox33.Text = "";
  459 + textBox34.Text = "";
  460 + }
  461 + else if ("1".Equals(place))
  462 + {
  463 + textBox15.Text = "0";
  464 + textBox33.Text = "";
  465 + textBox34.Text = "";
  466 + }
  467 + if ("2".Equals(place))
  468 + {
  469 + textBox15.Text = "";
  470 + textBox33.Text = "0";
  471 + textBox34.Text = "";
  472 + }
  473 + if ("3".Equals(place))
  474 + {
  475 + textBox15.Text = "";
  476 + textBox33.Text = "";
  477 + textBox34.Text = "0";
  478 + }
  479 +
  480 + textBox16.Text = "".Equals(isDBNull(reader, "身体不自由")) ? "" : "0";
287 } 481 }
288 reader.Close(); 482 reader.Close();
289 } 483 }
@@ -331,14 +525,14 @@ namespace MedicalCheckInputTool @@ -331,14 +525,14 @@ namespace MedicalCheckInputTool
331 return isExist; 525 return isExist;
332 } 526 }
333 527
334 - private bool matchInput(SaveData sv) 528 + private bool matchInput(SaveData sv, string times)
335 { 529 {
336 MySqlConnection conn; 530 MySqlConnection conn;
337 string connstr = System.Configuration.ConfigurationManager.AppSettings["Conn"]; 531 string connstr = System.Configuration.ConfigurationManager.AppSettings["Conn"];
338 conn = new MySqlConnection(connstr); 532 conn = new MySqlConnection(connstr);
339 conn.Open(); 533 conn.Open();
340 534
341 - string tableName = "1回目".Equals(Global.times) ? "2回目" : "1回目"; 535 + string tableName = "1回目".Equals(times) ? "2回目" : "1回目";
342 MySqlCommand cmd = new MySqlCommand("select * from `" + tableName + "` where `ロット番号` = @lotNo and `整理番号` = @serialNo", conn); 536 MySqlCommand cmd = new MySqlCommand("select * from `" + tableName + "` where `ロット番号` = @lotNo and `整理番号` = @serialNo", conn);
343 // パラメータ設定 537 // パラメータ設定
344 cmd.Parameters.Add(new MySqlParameter("lotNo", sv.lotNo)); 538 cmd.Parameters.Add(new MySqlParameter("lotNo", sv.lotNo));
@@ -358,8 +552,12 @@ namespace MedicalCheckInputTool @@ -358,8 +552,12 @@ namespace MedicalCheckInputTool
358 textBox11.BackColor = Color.Empty; 552 textBox11.BackColor = Color.Empty;
359 textBox12.BackColor = Color.Empty; 553 textBox12.BackColor = Color.Empty;
360 textBox13.BackColor = Color.Empty; 554 textBox13.BackColor = Color.Empty;
  555 + textBox31.BackColor = Color.Empty;
361 textBox14.BackColor = Color.Empty; 556 textBox14.BackColor = Color.Empty;
  557 + textBox32.BackColor = Color.Empty;
362 textBox15.BackColor = Color.Empty; 558 textBox15.BackColor = Color.Empty;
  559 + textBox33.BackColor = Color.Empty;
  560 + textBox34.BackColor = Color.Empty;
363 textBox16.BackColor = Color.Empty; 561 textBox16.BackColor = Color.Empty;
364 562
365 try 563 try
@@ -368,7 +566,7 @@ namespace MedicalCheckInputTool @@ -368,7 +566,7 @@ namespace MedicalCheckInputTool
368 if (!reader.HasRows) 566 if (!reader.HasRows)
369 { 567 {
370 //無かった 568 //無かった
371 - if("2回目".Equals(Global.times)) 569 + if("2回目".Equals(times))
372 { 570 {
373 textBox1.BackColor = Color.Pink; 571 textBox1.BackColor = Color.Pink;
374 } 572 }
@@ -382,7 +580,7 @@ namespace MedicalCheckInputTool @@ -382,7 +580,7 @@ namespace MedicalCheckInputTool
382 { 580 {
383 if (!sv.houseNo.Equals(isDBNull(reader, "世帯番号"))) 581 if (!sv.houseNo.Equals(isDBNull(reader, "世帯番号")))
384 { 582 {
385 - if("2回目".Equals(Global.times)) 583 + if("2回目".Equals(times))
386 { 584 {
387 textBox2.BackColor = Color.Pink; 585 textBox2.BackColor = Color.Pink;
388 } 586 }
@@ -390,7 +588,7 @@ namespace MedicalCheckInputTool @@ -390,7 +588,7 @@ namespace MedicalCheckInputTool
390 } 588 }
391 if (!sv.phone.Equals(isDBNull(reader, "電話番号"))) 589 if (!sv.phone.Equals(isDBNull(reader, "電話番号")))
392 { 590 {
393 - if("2回目".Equals(Global.times)) 591 + if("2回目".Equals(times))
394 { 592 {
395 textBox4.BackColor = Color.Pink; 593 textBox4.BackColor = Color.Pink;
396 } 594 }
@@ -398,7 +596,7 @@ namespace MedicalCheckInputTool @@ -398,7 +596,7 @@ namespace MedicalCheckInputTool
398 } 596 }
399 if (!sv.mobilePhone.Equals(isDBNull(reader, "携帯番号"))) 597 if (!sv.mobilePhone.Equals(isDBNull(reader, "携帯番号")))
400 { 598 {
401 - if("2回目".Equals(Global.times)) 599 + if("2回目".Equals(times))
402 { 600 {
403 textBox5.BackColor = Color.Pink; 601 textBox5.BackColor = Color.Pink;
404 } 602 }
@@ -406,12 +604,15 @@ namespace MedicalCheckInputTool @@ -406,12 +604,15 @@ namespace MedicalCheckInputTool
406 } 604 }
407 if (!sv.healthCheck.Equals(isDBNull(reader, "健康診査"))) 605 if (!sv.healthCheck.Equals(isDBNull(reader, "健康診査")))
408 { 606 {
409 - textBox6.BackColor = Color.Pink; 607 + if ("2回目".Equals(times))
  608 + {
  609 + textBox6.BackColor = Color.Pink;
  610 + }
410 err = true; 611 err = true;
411 } 612 }
412 if (!sv.lungCancer.Equals(isDBNull(reader, "結核肺がん"))) 613 if (!sv.lungCancer.Equals(isDBNull(reader, "結核肺がん")))
413 { 614 {
414 - if("2回目".Equals(Global.times)) 615 + if("2回目".Equals(times))
415 { 616 {
416 textBox7.BackColor = Color.Pink; 617 textBox7.BackColor = Color.Pink;
417 } 618 }
@@ -419,7 +620,7 @@ namespace MedicalCheckInputTool @@ -419,7 +620,7 @@ namespace MedicalCheckInputTool
419 } 620 }
420 if (!sv.stomachCancer.Equals(isDBNull(reader, "胃がん"))) 621 if (!sv.stomachCancer.Equals(isDBNull(reader, "胃がん")))
421 { 622 {
422 - if("2回目".Equals(Global.times)) 623 + if("2回目".Equals(times))
423 { 624 {
424 textBox8.BackColor = Color.Pink; 625 textBox8.BackColor = Color.Pink;
425 } 626 }
@@ -427,7 +628,7 @@ namespace MedicalCheckInputTool @@ -427,7 +628,7 @@ namespace MedicalCheckInputTool
427 } 628 }
428 if (!sv.colorectalCancer.Equals(isDBNull(reader, "大腸がん"))) 629 if (!sv.colorectalCancer.Equals(isDBNull(reader, "大腸がん")))
429 { 630 {
430 - if("2回目".Equals(Global.times)) 631 + if("2回目".Equals(times))
431 { 632 {
432 textBox9.BackColor = Color.Pink; 633 textBox9.BackColor = Color.Pink;
433 } 634 }
@@ -435,7 +636,7 @@ namespace MedicalCheckInputTool @@ -435,7 +636,7 @@ namespace MedicalCheckInputTool
435 } 636 }
436 if (!sv.prostateCancer.Equals(isDBNull(reader, "前立腺がん"))) 637 if (!sv.prostateCancer.Equals(isDBNull(reader, "前立腺がん")))
437 { 638 {
438 - if("2回目".Equals(Global.times)) 639 + if("2回目".Equals(times))
439 { 640 {
440 textBox10.BackColor = Color.Pink; 641 textBox10.BackColor = Color.Pink;
441 } 642 }
@@ -443,7 +644,7 @@ namespace MedicalCheckInputTool @@ -443,7 +644,7 @@ namespace MedicalCheckInputTool
443 } 644 }
444 if (!sv.osteoporosis.Equals(isDBNull(reader, "骨粗鬆症"))) 645 if (!sv.osteoporosis.Equals(isDBNull(reader, "骨粗鬆症")))
445 { 646 {
446 - if("2回目".Equals(Global.times)) 647 + if("2回目".Equals(times))
447 { 648 {
448 textBox11.BackColor = Color.Pink; 649 textBox11.BackColor = Color.Pink;
449 } 650 }
@@ -451,7 +652,7 @@ namespace MedicalCheckInputTool @@ -451,7 +652,7 @@ namespace MedicalCheckInputTool
451 } 652 }
452 if (!sv.dental.Equals(isDBNull(reader, "成人歯科"))) 653 if (!sv.dental.Equals(isDBNull(reader, "成人歯科")))
453 { 654 {
454 - if("2回目".Equals(Global.times)) 655 + if("2回目".Equals(times))
455 { 656 {
456 textBox12.BackColor = Color.Pink; 657 textBox12.BackColor = Color.Pink;
457 } 658 }
@@ -459,31 +660,35 @@ namespace MedicalCheckInputTool @@ -459,31 +660,35 @@ namespace MedicalCheckInputTool
459 } 660 }
460 if (!sv.cervicalCancer.Equals(isDBNull(reader, "子宮頸がん"))) 661 if (!sv.cervicalCancer.Equals(isDBNull(reader, "子宮頸がん")))
461 { 662 {
462 - if("2回目".Equals(Global.times)) 663 + if("2回目".Equals(times))
463 { 664 {
464 textBox13.BackColor = Color.Pink; 665 textBox13.BackColor = Color.Pink;
  666 + textBox31.BackColor = Color.Pink;
465 } 667 }
466 err = true; 668 err = true;
467 } 669 }
468 if (!sv.breastCancer.Equals(isDBNull(reader, "乳がん"))) 670 if (!sv.breastCancer.Equals(isDBNull(reader, "乳がん")))
469 { 671 {
470 - if("2回目".Equals(Global.times)) 672 + if("2回目".Equals(times))
471 { 673 {
472 textBox14.BackColor = Color.Pink; 674 textBox14.BackColor = Color.Pink;
  675 + textBox32.BackColor = Color.Pink;
473 } 676 }
474 err = true; 677 err = true;
475 } 678 }
476 if (!sv.place.Equals(isDBNull(reader, "希望場所"))) 679 if (!sv.place.Equals(isDBNull(reader, "希望場所")))
477 { 680 {
478 - if("2回目".Equals(Global.times)) 681 + if("2回目".Equals(times))
479 { 682 {
480 textBox15.BackColor = Color.Pink; 683 textBox15.BackColor = Color.Pink;
  684 + textBox33.BackColor = Color.Pink;
  685 + textBox34.BackColor = Color.Pink;
481 } 686 }
482 err = true; 687 err = true;
483 } 688 }
484 if (!sv.handicapped.Equals(isDBNull(reader, "身体不自由"))) 689 if (!sv.handicapped.Equals(isDBNull(reader, "身体不自由")))
485 { 690 {
486 - if("2回目".Equals(Global.times)) 691 + if("2回目".Equals(times))
487 { 692 {
488 textBox16.BackColor = Color.Pink; 693 textBox16.BackColor = Color.Pink;
489 } 694 }
@@ -747,8 +952,12 @@ namespace MedicalCheckInputTool @@ -747,8 +952,12 @@ namespace MedicalCheckInputTool
747 textBox11.BackColor = Color.Empty; 952 textBox11.BackColor = Color.Empty;
748 textBox12.BackColor = Color.Empty; 953 textBox12.BackColor = Color.Empty;
749 textBox13.BackColor = Color.Empty; 954 textBox13.BackColor = Color.Empty;
  955 + textBox31.BackColor = Color.Empty;
750 textBox14.BackColor = Color.Empty; 956 textBox14.BackColor = Color.Empty;
  957 + textBox32.BackColor = Color.Empty;
751 textBox15.BackColor = Color.Empty; 958 textBox15.BackColor = Color.Empty;
  959 + textBox33.BackColor = Color.Empty;
  960 + textBox34.BackColor = Color.Empty;
752 textBox16.BackColor = Color.Empty; 961 textBox16.BackColor = Color.Empty;
753 962
754 textBox1.Text = ""; 963 textBox1.Text = "";
@@ -763,8 +972,12 @@ namespace MedicalCheckInputTool @@ -763,8 +972,12 @@ namespace MedicalCheckInputTool
763 textBox11.Text = ""; 972 textBox11.Text = "";
764 textBox12.Text = ""; 973 textBox12.Text = "";
765 textBox13.Text = ""; 974 textBox13.Text = "";
  975 + textBox31.Text = "";
766 textBox14.Text = ""; 976 textBox14.Text = "";
  977 + textBox32.Text = "";
767 textBox15.Text = ""; 978 textBox15.Text = "";
  979 + textBox33.Text = "";
  980 + textBox34.Text = "";
768 textBox16.Text = ""; 981 textBox16.Text = "";
769 982
770 label20.Text = ""; 983 label20.Text = "";
@@ -772,6 +985,7 @@ namespace MedicalCheckInputTool @@ -772,6 +985,7 @@ namespace MedicalCheckInputTool
772 textBox1.Focus(); 985 textBox1.Focus();
773 986
774 panel1.Visible = false; 987 panel1.Visible = false;
  988 + button6.Text = "1回目の表示";
775 } 989 }
776 990
777 private void textBox1_TextChanged(object sender, EventArgs e) //整理番号 991 private void textBox1_TextChanged(object sender, EventArgs e) //整理番号
@@ -796,126 +1010,87 @@ namespace MedicalCheckInputTool @@ -796,126 +1010,87 @@ namespace MedicalCheckInputTool
796 1010
797 private void textBox6_TextChanged(object sender, EventArgs e) //健康診査 1011 private void textBox6_TextChanged(object sender, EventArgs e) //健康診査
798 { 1012 {
799 - if("".Equals(textBox6.Text))  
800 - {  
801 - label7.ForeColor = Color.Black;  
802 - }  
803 - else  
804 - {  
805 - label7.ForeColor = Color.Blue;  
806 - } 1013 + dspModify(textBox6, label7);
807 sendTabKey(textBox6, 1); 1014 sendTabKey(textBox6, 1);
808 } 1015 }
809 1016
810 private void textBox7_TextChanged(object sender, EventArgs e) //結核肺がん 1017 private void textBox7_TextChanged(object sender, EventArgs e) //結核肺がん
811 { 1018 {
812 - if ("".Equals(textBox7.Text))  
813 - {  
814 - label8.ForeColor = Color.Black;  
815 - }  
816 - else  
817 - {  
818 - label8.ForeColor = Color.Blue;  
819 - } 1019 + dspModify(textBox7, label8);
820 sendTabKey(textBox7, 1); 1020 sendTabKey(textBox7, 1);
821 } 1021 }
822 1022
823 private void textBox8_TextChanged(object sender, EventArgs e) //胃がん 1023 private void textBox8_TextChanged(object sender, EventArgs e) //胃がん
824 { 1024 {
825 - if ("".Equals(textBox8.Text))  
826 - {  
827 - label9.ForeColor = Color.Black;  
828 - }  
829 - else  
830 - {  
831 - label9.ForeColor = Color.Blue;  
832 - } 1025 + dspModify(textBox8, label9);
833 sendTabKey(textBox8, 1); 1026 sendTabKey(textBox8, 1);
834 } 1027 }
835 1028
836 private void textBox9_TextChanged(object sender, EventArgs e) //大腸がん 1029 private void textBox9_TextChanged(object sender, EventArgs e) //大腸がん
837 { 1030 {
838 - if ("".Equals(textBox9.Text))  
839 - {  
840 - label10.ForeColor = Color.Black;  
841 - }  
842 - else  
843 - {  
844 - label10.ForeColor = Color.Blue;  
845 - } 1031 + dspModify(textBox9, label10);
846 sendTabKey(textBox9, 1); 1032 sendTabKey(textBox9, 1);
847 } 1033 }
848 1034
849 private void textBox10_TextChanged(object sender, EventArgs e) //前立腺がん 1035 private void textBox10_TextChanged(object sender, EventArgs e) //前立腺がん
850 { 1036 {
851 - if ("".Equals(textBox10.Text))  
852 - {  
853 - label11.ForeColor = Color.Black;  
854 - }  
855 - else  
856 - {  
857 - label11.ForeColor = Color.Blue;  
858 - } 1037 + dspModify(textBox10, label11);
859 sendTabKey(textBox10, 1); 1038 sendTabKey(textBox10, 1);
860 } 1039 }
861 1040
862 private void textBox11_TextChanged(object sender, EventArgs e) //骨粗鬆症 1041 private void textBox11_TextChanged(object sender, EventArgs e) //骨粗鬆症
863 { 1042 {
864 - if ("".Equals(textBox11.Text))  
865 - {  
866 - label12.ForeColor = Color.Black;  
867 - }  
868 - else  
869 - {  
870 - label12.ForeColor = Color.Blue;  
871 - } 1043 + dspModify(textBox11, label12);
872 sendTabKey(textBox11, 1); 1044 sendTabKey(textBox11, 1);
873 } 1045 }
874 1046
875 private void textBox12_TextChanged(object sender, EventArgs e) //成人歯科 1047 private void textBox12_TextChanged(object sender, EventArgs e) //成人歯科
876 { 1048 {
877 - if ("".Equals(textBox12.Text))  
878 - {  
879 - label13.ForeColor = Color.Black;  
880 - }  
881 - else  
882 - {  
883 - label13.ForeColor = Color.Blue;  
884 - } 1049 + dspModify(textBox12, label13);
885 sendTabKey(textBox12, 1); 1050 sendTabKey(textBox12, 1);
886 } 1051 }
887 1052
888 private void textBox13_TextChanged(object sender, EventArgs e) //子宮頸がん 1053 private void textBox13_TextChanged(object sender, EventArgs e) //子宮頸がん
889 { 1054 {
890 - if ("".Equals(textBox13.Text))  
891 - {  
892 - label14.ForeColor = Color.Black;  
893 - }  
894 - else  
895 - {  
896 - label14.ForeColor = Color.Blue;  
897 - } 1055 + dspModify(textBox13, label14);
898 sendTabKey(textBox13, 1); 1056 sendTabKey(textBox13, 1);
899 } 1057 }
900 1058
  1059 + private void textBox31_TextChanged(object sender, EventArgs e) //子宮頸がん(指定医療機関)
  1060 + {
  1061 + dspModify(textBox31, label22);
  1062 + sendTabKey(textBox31, 1);
  1063 + }
  1064 +
901 private void textBox14_TextChanged(object sender, EventArgs e) //乳がん 1065 private void textBox14_TextChanged(object sender, EventArgs e) //乳がん
902 { 1066 {
903 - if ("".Equals(textBox14.Text))  
904 - {  
905 - label15.ForeColor = Color.Black;  
906 - }  
907 - else  
908 - {  
909 - label15.ForeColor = Color.Blue;  
910 - } 1067 + dspModify(textBox14, label15);
911 sendTabKey(textBox14, 1); 1068 sendTabKey(textBox14, 1);
912 } 1069 }
913 1070
  1071 + private void textBox32_TextChanged(object sender, EventArgs e) //石巻市医師会
  1072 + {
  1073 + dspModify(textBox32, label23);
  1074 + sendTabKey(textBox32, 1);
  1075 +
  1076 + }
  1077 +
914 private void textBox15_TextChanged(object sender, EventArgs e) //希望場所 1078 private void textBox15_TextChanged(object sender, EventArgs e) //希望場所
915 { 1079 {
916 sendTabKey(textBox15, 1); 1080 sendTabKey(textBox15, 1);
917 } 1081 }
918 1082
  1083 + private void textBox33_TextChanged(object sender, EventArgs e) //希望場所(本庁個別)
  1084 + {
  1085 + sendTabKey(textBox15, 1);
  1086 + }
  1087 +
  1088 + private void textBox34_TextChanged(object sender, EventArgs e)//希望場所(石巻ロイヤル)
  1089 + {
  1090 + sendTabKey(textBox15, 1);
  1091 + }
  1092 +
  1093 +
919 private void textBox16_TextChanged(object sender, EventArgs e) //身体不自由 1094 private void textBox16_TextChanged(object sender, EventArgs e) //身体不自由
920 { 1095 {
921 sendTabKey(textBox16, 1); 1096 sendTabKey(textBox16, 1);
@@ -934,7 +1109,7 @@ namespace MedicalCheckInputTool @@ -934,7 +1109,7 @@ namespace MedicalCheckInputTool
934 1109
935 SaveData sv = makeSaveData(); //保存用データ作成(パディング済み) 1110 SaveData sv = makeSaveData(); //保存用データ作成(パディング済み)
936 1111
937 - bool matchErr = matchInput(sv); 1112 + bool matchErr = matchInput(sv, Global.times);
938 if (matchErr) 1113 if (matchErr)
939 { 1114 {
940 if ("2回目".Equals(Global.times)) 1115 if ("2回目".Equals(Global.times))
@@ -1070,6 +1245,13 @@ namespace MedicalCheckInputTool @@ -1070,6 +1245,13 @@ namespace MedicalCheckInputTool
1070 { 1245 {
1071 if ("2回目".Equals(Global.times)) 1246 if ("2回目".Equals(Global.times))
1072 { 1247 {
  1248 + if ("".Equals(textBox1.Text))
  1249 + {
  1250 + label20.Text = "";
  1251 + label20.ForeColor = Color.Empty;
  1252 + return;
  1253 + }
  1254 +
1073 bool isExist = false; 1255 bool isExist = false;
1074 1256
1075 MySqlConnection conn; 1257 MySqlConnection conn;
@@ -1096,122 +1278,195 @@ namespace MedicalCheckInputTool @@ -1096,122 +1278,195 @@ namespace MedicalCheckInputTool
1096 } 1278 }
1097 } 1279 }
1098 1280
1099 - private void shortcutKey(object sender, KeyPressEventArgs e) 1281 + //入力可能(数字とハイフンとBS)
  1282 + private void inputAllNumber(object sender, KeyPressEventArgs e)
1100 { 1283 {
1101 - if (e.KeyChar == '/') // 「/」BackSpace 1284 + if ((e.KeyChar < '0' || e.KeyChar > '9') && (e.KeyChar != '\b') && (e.KeyChar != '-'))
1102 { 1285 {
1103 - SendKeys.Send("{BS}");  
1104 e.Handled = true; 1286 e.Handled = true;
1105 } 1287 }
1106 - if (e.KeyChar == '+') // 「+」次へ 1288 + }
  1289 +
  1290 + //入力可能(0~5とBS)
  1291 + private void inputNumber(object sender, KeyPressEventArgs e)
  1292 + {
  1293 + if ((e.KeyChar < '0' || e.KeyChar > '5') && (e.KeyChar != '\b'))
1107 { 1294 {
1108 -// button2.Focus();  
1109 -// button2.PerformClick();  
1110 e.Handled = true; 1295 e.Handled = true;
1111 } 1296 }
1112 - if (e.KeyChar == '*') // 「*」Tab 1297 + }
  1298 +
  1299 + //入力可能(0とBS)
  1300 + private void inputZero(object sender, KeyPressEventArgs e)
  1301 + {
  1302 + if ((e.KeyChar != '0') && (e.KeyChar != '\b'))
1113 { 1303 {
1114 -// SendKeys.Send("{Tab}");  
1115 e.Handled = true; 1304 e.Handled = true;
1116 } 1305 }
1117 } 1306 }
1118 1307
  1308 + private void dspModify(TextBox tb, Label lb)
  1309 + {
  1310 + if ("".Equals(tb.Text))
  1311 + {
  1312 + lb.ForeColor = Color.Black;
  1313 + lb.Font = new Font(lb.Font, FontStyle.Regular);
  1314 + }
  1315 + else
  1316 + {
  1317 + if ("0".Equals(tb.Text))
  1318 + {
  1319 + lb.ForeColor = Color.Red;
  1320 + lb.Font = new Font(lb.Font, FontStyle.Bold);
  1321 + }
  1322 + else
  1323 + {
  1324 + lb.ForeColor = Color.Blue;
  1325 + lb.Font = new Font(lb.Font, FontStyle.Regular);
  1326 + }
  1327 + }
  1328 + }
  1329 +
1119 private void textBox1_KeyPress(object sender, KeyPressEventArgs e) 1330 private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
1120 { 1331 {
1121 - shortcutKey(sender, e); 1332 + inputAllNumber(sender, e);
1122 } 1333 }
1123 1334
1124 private void textBox2_KeyPress(object sender, KeyPressEventArgs e) 1335 private void textBox2_KeyPress(object sender, KeyPressEventArgs e)
1125 { 1336 {
1126 - shortcutKey(sender, e); 1337 + inputAllNumber(sender, e);
1127 } 1338 }
1128 1339
1129 private void textBox4_KeyPress(object sender, KeyPressEventArgs e) 1340 private void textBox4_KeyPress(object sender, KeyPressEventArgs e)
1130 { 1341 {
1131 - shortcutKey(sender, e); 1342 + inputAllNumber(sender, e);
1132 } 1343 }
1133 1344
1134 private void textBox5_KeyPress(object sender, KeyPressEventArgs e) 1345 private void textBox5_KeyPress(object sender, KeyPressEventArgs e)
1135 { 1346 {
1136 - shortcutKey(sender, e); 1347 + inputAllNumber(sender, e);
1137 } 1348 }
1138 1349
1139 private void textBox6_KeyPress(object sender, KeyPressEventArgs e) 1350 private void textBox6_KeyPress(object sender, KeyPressEventArgs e)
1140 { 1351 {
1141 - shortcutKey(sender, e); 1352 + inputNumber(sender, e);
1142 } 1353 }
1143 1354
1144 private void textBox7_KeyPress(object sender, KeyPressEventArgs e) 1355 private void textBox7_KeyPress(object sender, KeyPressEventArgs e)
1145 { 1356 {
1146 - shortcutKey(sender, e); 1357 + inputNumber(sender, e);
1147 } 1358 }
1148 1359
1149 private void textBox8_KeyPress(object sender, KeyPressEventArgs e) 1360 private void textBox8_KeyPress(object sender, KeyPressEventArgs e)
1150 { 1361 {
1151 - shortcutKey(sender, e); 1362 + inputNumber(sender, e);
1152 } 1363 }
1153 1364
1154 private void textBox9_KeyPress(object sender, KeyPressEventArgs e) 1365 private void textBox9_KeyPress(object sender, KeyPressEventArgs e)
1155 { 1366 {
1156 - shortcutKey(sender, e); 1367 + inputNumber(sender, e);
1157 } 1368 }
1158 1369
1159 private void textBox10_KeyPress(object sender, KeyPressEventArgs e) 1370 private void textBox10_KeyPress(object sender, KeyPressEventArgs e)
1160 { 1371 {
1161 - shortcutKey(sender, e); 1372 + inputNumber(sender, e);
1162 } 1373 }
1163 1374
1164 private void textBox11_KeyPress(object sender, KeyPressEventArgs e) 1375 private void textBox11_KeyPress(object sender, KeyPressEventArgs e)
1165 { 1376 {
1166 - shortcutKey(sender, e); 1377 + inputNumber(sender, e);
1167 } 1378 }
1168 1379
1169 private void textBox12_KeyPress(object sender, KeyPressEventArgs e) 1380 private void textBox12_KeyPress(object sender, KeyPressEventArgs e)
1170 { 1381 {
1171 - shortcutKey(sender, e); 1382 + inputNumber(sender, e);
1172 } 1383 }
1173 1384
1174 private void textBox13_KeyPress(object sender, KeyPressEventArgs e) 1385 private void textBox13_KeyPress(object sender, KeyPressEventArgs e)
1175 { 1386 {
1176 - shortcutKey(sender, e); 1387 + if ("".Equals(textBox31.Text)) //どちらかにしか入れさせない
  1388 + {
  1389 + inputNumber(sender, e);
  1390 + }
  1391 + else
  1392 + {
  1393 + e.Handled = true;
  1394 + }
  1395 + }
  1396 +
  1397 + private void textBox31_KeyPress(object sender, KeyPressEventArgs e) //子宮頸がん(指定医療機関)
  1398 + {
  1399 + if ("".Equals(textBox13.Text)) //どちらかにしか入れさせない
  1400 + {
  1401 + inputNumber(sender, e);
  1402 + }
  1403 + else
  1404 + {
  1405 + e.Handled = true;
  1406 + }
1177 } 1407 }
1178 1408
1179 private void textBox14_KeyPress(object sender, KeyPressEventArgs e) 1409 private void textBox14_KeyPress(object sender, KeyPressEventArgs e)
1180 { 1410 {
1181 - shortcutKey(sender, e); 1411 + if ("".Equals(textBox32.Text)) //どちらかにしか入れさせない
  1412 + {
  1413 + inputNumber(sender, e);
  1414 + }
  1415 + else
  1416 + {
  1417 + e.Handled = true;
  1418 + }
1182 } 1419 }
1183 1420
  1421 + private void textBox32_KeyPress(object sender, KeyPressEventArgs e)//乳がん(石巻医師会)
  1422 + {
  1423 + if ("".Equals(textBox14.Text)) //どちらかにしか入れさせない
  1424 + {
  1425 + inputNumber(sender, e);
  1426 + }
  1427 + else
  1428 + {
  1429 + e.Handled = true;
  1430 + }
  1431 + }
  1432 +
  1433 +
1184 private void textBox15_KeyPress(object sender, KeyPressEventArgs e) 1434 private void textBox15_KeyPress(object sender, KeyPressEventArgs e)
1185 { 1435 {
1186 - shortcutKey(sender, e); 1436 + inputZero(sender, e);
  1437 + }
  1438 +
  1439 + private void textBox33_KeyPress(object sender, KeyPressEventArgs e)//本庁個別
  1440 + {
  1441 + inputZero(sender, e);
  1442 + }
  1443 +
  1444 + private void textBox34_KeyPress(object sender, KeyPressEventArgs e)//石巻ロイヤル
  1445 + {
  1446 + inputZero(sender, e);
1187 } 1447 }
1188 1448
1189 - private void textBox16_KeyPress(object sender, KeyPressEventArgs e) 1449 + private void textBox16_KeyPress(object sender, KeyPressEventArgs e)//身体不自由
1190 { 1450 {
1191 - shortcutKey(sender, e); 1451 + inputZero(sender, e);
1192 } 1452 }
1193 1453
  1454 +
1194 private void Form2_KeyDown(object sender, KeyEventArgs e) 1455 private void Form2_KeyDown(object sender, KeyEventArgs e)
1195 { 1456 {
1196 - if(e.KeyCode == Keys.Multiply) 1457 + if (e.KeyCode == Keys.Enter)
1197 { 1458 {
1198 SendKeys.Send("{Tab}"); 1459 SendKeys.Send("{Tab}");
1199 e.Handled = true; 1460 e.Handled = true;
1200 } 1461 }
1201 1462
1202 - if(e.KeyCode == Keys.Add) 1463 + if(e.KeyCode == Keys.Escape)
1203 { 1464 {
1204 button2.Focus(); 1465 button2.Focus();
1205 button2.PerformClick(); 1466 button2.PerformClick();
1206 e.Handled = true; 1467 e.Handled = true;
1207 } 1468 }
1208 1469
1209 - if(e.KeyCode == Keys.Enter)  
1210 - {  
1211 -// button1.Focus();  
1212 - button1.PerformClick();  
1213 - e.Handled = true;  
1214 - }  
1215 } 1470 }
1216 1471
1217 //削除 1472 //削除
@@ -1243,6 +1498,11 @@ namespace MedicalCheckInputTool @@ -1243,6 +1498,11 @@ namespace MedicalCheckInputTool
1243 dspCount(); 1498 dspCount();
1244 } 1499 }
1245 1500
  1501 +
  1502 + /***************************************************************/
  1503 + /***************2回目時入力時の1回目修正用********************/
  1504 + /***************************************************************/
  1505 +
1246 private bool selectDataOnce(string tableName, string lotNo, string serialNo, MySqlConnection conn) 1506 private bool selectDataOnce(string tableName, string lotNo, string serialNo, MySqlConnection conn)
1247 { 1507 {
1248 bool err = false; 1508 bool err = false;
@@ -1306,7 +1566,113 @@ namespace MedicalCheckInputTool @@ -1306,7 +1566,113 @@ namespace MedicalCheckInputTool
1306 return err; 1566 return err;
1307 } 1567 }
1308 1568
1309 - //1回目の入力 1569 + //1回目の修正
  1570 + private void updateDataOnce(MySqlConnection conn)
  1571 + {
  1572 + bool match = false;
  1573 + //入力チェック
  1574 + if ("".Equals(textBox3.Text)) //必須は整理番号のみ
  1575 + {
  1576 + MessageBox.Show("整理番号が入力されていません");
  1577 + return;
  1578 + }
  1579 +
  1580 + SaveData sv = makeSaveDataOnce(); //保存用データ生成(パディング済み)
  1581 +
  1582 + //マッチングチェック
  1583 + bool matchErr = matchInput(sv, "1回目");
  1584 + //一致しない場合、エラー表示はするが保存は実行してしまう
  1585 + if (matchErr)
  1586 + {
  1587 + //保存へ進む
  1588 + }
  1589 + else
  1590 + {
  1591 + //エラーなしは完了フラグを立てる
  1592 + match = true;
  1593 + }
  1594 +
  1595 + //保存処理
  1596 + if (match)
  1597 + {
  1598 + sv.done = "1"; //マッチングOKの場合、完了フラグを立てる
  1599 + }
  1600 +
  1601 + sv.updateUser = Global.inputUser;
  1602 + bool err = updateData(sv, "1回目", conn);
  1603 +
  1604 + SaveData sv1 = new SaveData();
  1605 + sv1.lotNo = int.Parse(Global.lotNo);
  1606 + sv1.serialNo = sv.serialNo;
  1607 + sv1.done = sv.done;
  1608 + string tableName = "2回目";
  1609 + updateDoneFlag(sv1, tableName, conn);//別の回の完了フラグも立てる
  1610 +
  1611 + }
  1612 +
  1613 + private SaveData makeSaveDataOnce()
  1614 + {
  1615 + SaveData sv = new SaveData();
  1616 +
  1617 + sv.lotNo = int.Parse(Global.lotNo); //ロット番号
  1618 + sv.adminCode = Global.adminCode; //行政区コード
  1619 + sv.adminName = Global.adminName; //行政区名称
  1620 + sv.healthArea = Global.healthArea; //保健区
  1621 + sv.serialNo = textBox3.Text.PadLeft(10, '0'); //整理番号
  1622 + if ("".Equals(textBox17.Text))
  1623 + {
  1624 + sv.houseNo = "";
  1625 + }
  1626 + else
  1627 + {
  1628 + sv.houseNo = textBox17.Text.PadLeft(10, '0'); //世帯番号
  1629 + }
  1630 + sv.healthCheck = textBox20.Text; //健康診査
  1631 + sv.lungCancer = textBox21.Text; //結核肺がん
  1632 + sv.stomachCancer = textBox22.Text; //胃がん
  1633 + sv.colorectalCancer = textBox23.Text; //大腸がん
  1634 + sv.prostateCancer = textBox24.Text; //前立腺がん
  1635 + sv.osteoporosis = textBox25.Text; //骨粗鬆症
  1636 + sv.dental = textBox26.Text; //成人歯科
  1637 + sv.cervicalCancer = textBox27.Text; //子宮頸がん
  1638 + sv.breastCancer = textBox28.Text; //乳がん
  1639 + sv.place = textBox29.Text; //希望場所
  1640 + sv.handicapped = "".Equals(textBox30.Text) ? "" : "8"; //身体不自由
  1641 + sv.phone = textBox18.Text; //電話番号
  1642 + sv.mobilePhone = textBox19.Text; //携帯番号
  1643 + sv.inputDate = null; //入力日
  1644 + sv.inputUser = null; //入力者
  1645 + sv.updateDate = null; //修正日
  1646 + sv.updateUser = null; //修正者
  1647 + sv.done = ""; //完了
  1648 +
  1649 + return sv;
  1650 + }
  1651 +
  1652 + //編集可能に変更
  1653 + private void enableEdit()
  1654 + {
  1655 + textBox17.ReadOnly = false;
  1656 + textBox18.ReadOnly = false;
  1657 + textBox19.ReadOnly = false;
  1658 + textBox20.ReadOnly = false;
  1659 + textBox21.ReadOnly = false;
  1660 + textBox22.ReadOnly = false;
  1661 + textBox23.ReadOnly = false;
  1662 + textBox24.ReadOnly = false;
  1663 + textBox25.ReadOnly = false;
  1664 + textBox26.ReadOnly = false;
  1665 + textBox27.ReadOnly = false;
  1666 + textBox35.ReadOnly = false;
  1667 + textBox28.ReadOnly = false;
  1668 + textBox36.ReadOnly = false;
  1669 + textBox29.ReadOnly = false;
  1670 + textBox37.ReadOnly = false;
  1671 + textBox38.ReadOnly = false;
  1672 + textBox30.ReadOnly = false;
  1673 + }
  1674 +
  1675 + //1回目の表示
1310 private void button6_Click(object sender, EventArgs e) 1676 private void button6_Click(object sender, EventArgs e)
1311 { 1677 {
1312 if("".Equals(textBox1.Text)) 1678 if("".Equals(textBox1.Text))
@@ -1320,7 +1686,23 @@ namespace MedicalCheckInputTool @@ -1320,7 +1686,23 @@ namespace MedicalCheckInputTool
1320 conn.Open(); 1686 conn.Open();
1321 1687
1322 string serialNo = textBox1.Text.PadLeft(10, '0'); 1688 string serialNo = textBox1.Text.PadLeft(10, '0');
1323 - selectDataOnce("1回目", Global.lotNo, serialNo, conn);//削除 1689 +
  1690 + if ("1回目の表示".Equals(button6.Text))
  1691 + {
  1692 + selectDataOnce("1回目", Global.lotNo, serialNo, conn);//表示
  1693 + button6.Text = "1回目の編集";
  1694 + }
  1695 + else if("1回目の編集".Equals(button6.Text))
  1696 + {
  1697 + //編集可能に変更(整理番号だけダメにしたほうがいい?)
  1698 + enableEdit();
  1699 + button6.Text = "1回目の保存";
  1700 + }
  1701 + else if ("1回目の保存".Equals(button6.Text))
  1702 + {
  1703 + //データ保存
  1704 + updateDataOnce(conn);
  1705 + }
1324 1706
1325 panel1.Visible = true; 1707 panel1.Visible = true;
1326 1708
@@ -1328,6 +1710,107 @@ namespace MedicalCheckInputTool @@ -1328,6 +1710,107 @@ namespace MedicalCheckInputTool
1328 1710
1329 } 1711 }
1330 1712
  1713 + //閉じる
  1714 + private void button7_Click(object sender, EventArgs e)
  1715 + {
  1716 + this.Close();
  1717 + }
  1718 +
  1719 + private void textBox3_KeyPress(object sender, KeyPressEventArgs e)
  1720 + {
  1721 +
  1722 + }
  1723 +
  1724 + private void textBox17_KeyPress(object sender, KeyPressEventArgs e)
  1725 + {
  1726 +
  1727 + }
  1728 +
  1729 + private void textBox18_KeyPress(object sender, KeyPressEventArgs e)
  1730 + {
  1731 +
  1732 + }
  1733 +
  1734 + private void textBox19_KeyPress(object sender, KeyPressEventArgs e)
  1735 + {
  1736 +
  1737 + }
  1738 +
  1739 + private void textBox20_KeyPress(object sender, KeyPressEventArgs e)
  1740 + {
  1741 +
  1742 + }
  1743 +
  1744 + private void textBox21_KeyPress(object sender, KeyPressEventArgs e)
  1745 + {
  1746 +
  1747 + }
  1748 +
  1749 + private void textBox22_KeyPress(object sender, KeyPressEventArgs e)
  1750 + {
  1751 +
  1752 + }
  1753 +
  1754 + private void textBox23_KeyPress(object sender, KeyPressEventArgs e)
  1755 + {
  1756 +
  1757 + }
  1758 +
  1759 + private void textBox24_KeyPress(object sender, KeyPressEventArgs e)
  1760 + {
  1761 +
  1762 + }
  1763 +
  1764 + private void textBox25_KeyPress(object sender, KeyPressEventArgs e)
  1765 + {
  1766 +
  1767 + }
  1768 +
  1769 + private void textBox26_KeyPress(object sender, KeyPressEventArgs e)
  1770 + {
  1771 +
  1772 + }
  1773 +
  1774 + private void textBox27_KeyPress(object sender, KeyPressEventArgs e)
  1775 + {
  1776 +
  1777 + }
  1778 +
  1779 + private void textBox35_KeyPress(object sender, KeyPressEventArgs e)
  1780 + {
  1781 +
  1782 + }
  1783 +
  1784 + private void textBox28_KeyPress(object sender, KeyPressEventArgs e)
  1785 + {
  1786 +
  1787 + }
  1788 +
  1789 + private void textBox36_KeyPress(object sender, KeyPressEventArgs e)
  1790 + {
  1791 +
  1792 + }
  1793 +
  1794 + private void textBox29_KeyPress(object sender, KeyPressEventArgs e)
  1795 + {
  1796 +
  1797 + }
  1798 +
  1799 + private void textBox37_KeyPress(object sender, KeyPressEventArgs e)
  1800 + {
  1801 +
  1802 + }
  1803 +
  1804 + private void textBox38_KeyPress(object sender, KeyPressEventArgs e)
  1805 + {
  1806 +
  1807 + }
  1808 +
  1809 + private void textBox30_KeyPress(object sender, KeyPressEventArgs e)
  1810 + {
  1811 +
  1812 + }
  1813 +
1331 1814
1332 } 1815 }
1333 } 1816 }
@@ -15,7 +15,7 @@ namespace MedicalCheckInputTool @@ -15,7 +15,7 @@ namespace MedicalCheckInputTool
15 { 15 {
16 public partial class Form3 : Form 16 public partial class Form3 : Form
17 { 17 {
18 - private const int PAGEMAX = 10; 18 + private const int PAGEMAX = 100;
19 private int currentPageNo = 1; 19 private int currentPageNo = 1;
20 private int maxPageNo = 1; 20 private int maxPageNo = 1;
21 21
@@ -451,7 +451,7 @@ namespace MedicalCheckInputTool @@ -451,7 +451,7 @@ namespace MedicalCheckInputTool
451 MySqlCommand readCmd = new MySqlCommand(readQuery, readerCon); 451 MySqlCommand readCmd = new MySqlCommand(readQuery, readerCon);
452 readCmd.Parameters.AddWithValue("lotNo", EditParam.lotNo); 452 readCmd.Parameters.AddWithValue("lotNo", EditParam.lotNo);
453 453
454 - string countQuery = "select count(`世帯番号`) from `1回目` where `行政区コード`= @adminCode and `ロット番号` = @lotNo group by `行政区コード`"; 454 + string countQuery = "select count(distinct `世帯番号`) from `1回目` where `行政区コード`= @adminCode and `ロット番号` = @lotNo";
455 MySqlCommand countCmd = new MySqlCommand(countQuery, readerCon); 455 MySqlCommand countCmd = new MySqlCommand(countQuery, readerCon);
456 456
457 try 457 try
@@ -476,6 +476,7 @@ namespace MedicalCheckInputTool @@ -476,6 +476,7 @@ namespace MedicalCheckInputTool
476 reader.Close(); 476 reader.Close();
477 477
478 StreamWriter writer = new StreamWriter("SummaryAdmin.csv", false, System.Text.Encoding.GetEncoding("shift_jis")); //ファイルストリーム 478 StreamWriter writer = new StreamWriter("SummaryAdmin.csv", false, System.Text.Encoding.GetEncoding("shift_jis")); //ファイルストリーム
  479 + writer.WriteLine("行政区コード,行政区名称,データ作成件数,世帯数");
479 480
480 foreach (SummaryAdmin sa in adminList) 481 foreach (SummaryAdmin sa in adminList)
481 { 482 {
@@ -515,7 +516,7 @@ namespace MedicalCheckInputTool @@ -515,7 +516,7 @@ namespace MedicalCheckInputTool
515 string readQuery = "select `行政区コード`,`行政区名称`,count(行政区コード) from `1回目` where (`ロット番号` = @lotNo) and (`保健区` = @healthArea) group by `行政区コード` order by `行政区コード`"; 516 string readQuery = "select `行政区コード`,`行政区名称`,count(行政区コード) from `1回目` where (`ロット番号` = @lotNo) and (`保健区` = @healthArea) group by `行政区コード` order by `行政区コード`";
516 MySqlCommand readCmd = new MySqlCommand(readQuery, readerCon); 517 MySqlCommand readCmd = new MySqlCommand(readQuery, readerCon);
517 518
518 - string countQuery = "select count(`世帯番号`) from `1回目` where (`行政区コード`= @adminCode) and (`ロット番号` = @lotNo) and (`保健区` = @healthArea) group by `行政区コード`"; 519 + string countQuery = "select count(distinct `世帯番号`) from `1回目` where (`行政区コード`= @adminCode) and (`ロット番号` = @lotNo) and (`保健区` = @healthArea) ";
519 MySqlCommand countCmd = new MySqlCommand(countQuery, readerCon); 520 MySqlCommand countCmd = new MySqlCommand(countQuery, readerCon);
520 521
521 try 522 try
@@ -561,6 +562,7 @@ namespace MedicalCheckInputTool @@ -561,6 +562,7 @@ namespace MedicalCheckInputTool
561 reader.Close(); 562 reader.Close();
562 563
563 StreamWriter writer = new StreamWriter("SummaryHealthArea_" + ha + ".csv", false, System.Text.Encoding.GetEncoding("shift_jis")); //ファイルストリーム 564 StreamWriter writer = new StreamWriter("SummaryHealthArea_" + ha + ".csv", false, System.Text.Encoding.GetEncoding("shift_jis")); //ファイルストリーム
  565 + writer.WriteLine("行政区コード,行政区名称,件数,世帯数");
564 566
565 foreach (SummaryAdmin sa in adminList) 567 foreach (SummaryAdmin sa in adminList)
566 { 568 {
@@ -91,6 +91,12 @@ @@ -91,6 +91,12 @@
91 <AutoGen>True</AutoGen> 91 <AutoGen>True</AutoGen>
92 <DependentUpon>Resources.resx</DependentUpon> 92 <DependentUpon>Resources.resx</DependentUpon>
93 </Compile> 93 </Compile>
  94 + <None Include="adminName.json">
  95 + <CopyToOutputDirectory>Always</CopyToOutputDirectory>
  96 + </None>
  97 + <None Include="healthArea.json">
  98 + <CopyToOutputDirectory>Always</CopyToOutputDirectory>
  99 + </None>
94 <None Include="Properties\Settings.settings"> 100 <None Include="Properties\Settings.settings">
95 <Generator>SettingsSingleFileGenerator</Generator> 101 <Generator>SettingsSingleFileGenerator</Generator>
96 <LastGenOutput>Settings.Designer.cs</LastGenOutput> 102 <LastGenOutput>Settings.Designer.cs</LastGenOutput>
  1 +--broken encoding: UTF-16BE
  2 + "adminName": {
  3 + "001011":"’†‰›ˆê’š–Ú‘æ‚P",
  4 + "001012":"’†‰›ˆê’š–Ú‘æ‚Q",
  5 + "001021":"’†‰›“ñ’š–Ú‘æ‚P",
  6 + "001022":"’†‰›“ñ’š–Ú‘æ‚Q",
  7 + "001090":"—§’¬ˆê’š–Ú"
  8 + }
  9 +}
  1 +{
  2 + "healthArea": {
  3 + "001011":"ΊŞ",
  4 + "001012":"ΊŞ",
  5 + "001021":"ΊŞ",
  6 + "001022":"ΊŞ",
  7 + "001090":"ŹZ‹g"
  8 + }
  9 +}
Please register or login to post a comment