Showing
10 changed files
with
1467 additions
and
18 deletions
.gitignore
0 → 100644
| ... | ... | @@ -153,5 +153,27 @@ namespace MedicalCheckInputTool |
| 153 | 153 | |
| 154 | 154 | |
| 155 | 155 | } |
| 156 | + | |
| 157 | + private void button2_Click(object sender, EventArgs e) | |
| 158 | + { | |
| 159 | + if ("".Equals(comboBox1.SelectedItem.ToString())) | |
| 160 | + { | |
| 161 | + MessageBox.Show("入力者を選択してください"); | |
| 162 | + return; | |
| 163 | + } | |
| 164 | + if ("".Equals(comboBox2.SelectedItem.ToString())) | |
| 165 | + { | |
| 166 | + MessageBox.Show("ロットを選択してください"); | |
| 167 | + return; | |
| 168 | + } | |
| 169 | + | |
| 170 | + EditParam.inputUser = comboBox1.SelectedItem.ToString(); | |
| 171 | + EditParam.lotNo = comboBox2.SelectedItem.ToString(); | |
| 172 | + | |
| 173 | + Form3 frm = new Form3(); | |
| 174 | + frm.ShowDialog(); | |
| 175 | + frm.Dispose(); | |
| 176 | + | |
| 177 | + } | |
| 156 | 178 | } |
| 157 | 179 | } | ... | ... |
| ... | ... | @@ -66,6 +66,7 @@ |
| 66 | 66 | this.button4 = new System.Windows.Forms.Button(); |
| 67 | 67 | this.label3 = new System.Windows.Forms.Label(); |
| 68 | 68 | this.label19 = new System.Windows.Forms.Label(); |
| 69 | + this.label20 = new System.Windows.Forms.Label(); | |
| 69 | 70 | this.SuspendLayout(); |
| 70 | 71 | // |
| 71 | 72 | // textBox1 |
| ... | ... | @@ -78,6 +79,7 @@ |
| 78 | 79 | this.textBox1.TabIndex = 0; |
| 79 | 80 | this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged); |
| 80 | 81 | this.textBox1.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox1_KeyPress); |
| 82 | + this.textBox1.Validating += new System.ComponentModel.CancelEventHandler(this.textBox1_Validating); | |
| 81 | 83 | // |
| 82 | 84 | // label1 |
| 83 | 85 | // |
| ... | ... | @@ -412,6 +414,7 @@ |
| 412 | 414 | this.button4.TabIndex = 37; |
| 413 | 415 | this.button4.Text = "前の入力へ"; |
| 414 | 416 | this.button4.UseVisualStyleBackColor = true; |
| 417 | + this.button4.Click += new System.EventHandler(this.button4_Click); | |
| 415 | 418 | // |
| 416 | 419 | // label3 |
| 417 | 420 | // |
| ... | ... | @@ -425,17 +428,27 @@ |
| 425 | 428 | // label19 |
| 426 | 429 | // |
| 427 | 430 | this.label19.AutoSize = true; |
| 428 | - this.label19.Location = new System.Drawing.Point(332, 18); | |
| 431 | + this.label19.Location = new System.Drawing.Point(258, 18); | |
| 429 | 432 | this.label19.Name = "label19"; |
| 430 | 433 | this.label19.Size = new System.Drawing.Size(23, 12); |
| 431 | 434 | this.label19.TabIndex = 39; |
| 432 | 435 | this.label19.Text = "0件"; |
| 433 | 436 | // |
| 437 | + // label20 | |
| 438 | + // | |
| 439 | + this.label20.AutoSize = true; | |
| 440 | + this.label20.Location = new System.Drawing.Point(105, 47); | |
| 441 | + this.label20.Name = "label20"; | |
| 442 | + this.label20.Size = new System.Drawing.Size(56, 12); | |
| 443 | + this.label20.TabIndex = 40; | |
| 444 | + this.label20.Text = "エラー表示"; | |
| 445 | + // | |
| 434 | 446 | // Form2 |
| 435 | 447 | // |
| 436 | 448 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); |
| 437 | 449 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
| 438 | 450 | this.ClientSize = new System.Drawing.Size(367, 517); |
| 451 | + this.Controls.Add(this.label20); | |
| 439 | 452 | this.Controls.Add(this.label19); |
| 440 | 453 | this.Controls.Add(this.label3); |
| 441 | 454 | this.Controls.Add(this.button4); |
| ... | ... | @@ -521,5 +534,6 @@ |
| 521 | 534 | private System.Windows.Forms.Button button4; |
| 522 | 535 | private System.Windows.Forms.Label label3; |
| 523 | 536 | private System.Windows.Forms.Label label19; |
| 537 | + private System.Windows.Forms.Label label20; | |
| 524 | 538 | } |
| 525 | 539 | } |
| \ No newline at end of file | ... | ... |
| ... | ... | @@ -14,13 +14,19 @@ namespace MedicalCheckInputTool |
| 14 | 14 | { |
| 15 | 15 | public partial class Form2 : Form |
| 16 | 16 | { |
| 17 | + private List<string> history = new List<string>(); | |
| 18 | + private const int historyMax = 10; | |
| 19 | + private int historyPos = 0; | |
| 20 | + | |
| 17 | 21 | public Form2() |
| 18 | 22 | { |
| 19 | 23 | InitializeComponent(); |
| 20 | 24 | |
| 21 | 25 | this.Text = "ロット:" + Global.lotNo + " " + Global.times + " " + "ユーザ:" + Global.inputUser; |
| 22 | 26 | |
| 23 | - label3.Text = "ロット" + " " + Global.lotNo + " 行政区番号 " + Global.adminCode; | |
| 27 | + label3.Text = "ロット " + Global.lotNo + " 行政区番号 " + Global.adminCode; | |
| 28 | + | |
| 29 | + label20.Text = ""; //エラーメッセージなし | |
| 24 | 30 | |
| 25 | 31 | dspCount(); |
| 26 | 32 | } |
| ... | ... | @@ -36,7 +42,6 @@ namespace MedicalCheckInputTool |
| 36 | 42 | |
| 37 | 43 | conn.Close(); |
| 38 | 44 | |
| 39 | - cnt++; | |
| 40 | 45 | label19.Text = "入力済み " + cnt + "件"; |
| 41 | 46 | } |
| 42 | 47 | |
| ... | ... | @@ -51,21 +56,34 @@ namespace MedicalCheckInputTool |
| 51 | 56 | return; |
| 52 | 57 | } |
| 53 | 58 | |
| 59 | + SaveData sv = makeSaveData(); //保存用データ生成(パディング済み) | |
| 60 | + | |
| 54 | 61 | //マッチングチェック |
| 55 | 62 | if("2回目".Equals(Global.times)) |
| 56 | 63 | { |
| 57 | 64 | //1回目と比較 |
| 65 | + bool matchErr = matchInput(sv); | |
| 58 | 66 | //一致しない場合、エラー表示はするが保存は実行してしまう |
| 67 | + if(matchErr) | |
| 68 | + { | |
| 69 | + //保存へ進む | |
| 70 | + } | |
| 71 | + else | |
| 72 | + { | |
| 73 | + //エラーなしは完了フラグを立てる | |
| 74 | + match = true; | |
| 75 | + } | |
| 59 | 76 | } |
| 60 | 77 | |
| 61 | 78 | //保存処理 |
| 62 | - SaveData sv = makeSaveData(); | |
| 63 | 79 | if(match) |
| 64 | 80 | { |
| 65 | 81 | sv.done = "1"; //マッチングOKの場合、完了フラグを立てる |
| 66 | 82 | } |
| 67 | 83 | bool res = doSave(sv); |
| 68 | 84 | |
| 85 | + historyAdd(sv.serialNo); //履歴に積む | |
| 86 | + | |
| 69 | 87 | dspCount(); |
| 70 | 88 | |
| 71 | 89 | } |
| ... | ... | @@ -240,6 +258,134 @@ namespace MedicalCheckInputTool |
| 240 | 258 | return isExist; |
| 241 | 259 | } |
| 242 | 260 | |
| 261 | + private bool matchInput(SaveData sv) | |
| 262 | + { | |
| 263 | + MySqlConnection conn; | |
| 264 | + string connstr = System.Configuration.ConfigurationManager.AppSettings["Conn"]; | |
| 265 | + conn = new MySqlConnection(connstr); | |
| 266 | + conn.Open(); | |
| 267 | + | |
| 268 | + MySqlCommand cmd = new MySqlCommand("select * from `1回目` where `ロット番号` = @lotNo and `整理番号` = @serialNo", conn); | |
| 269 | + // パラメータ設定 | |
| 270 | + cmd.Parameters.Add(new MySqlParameter("lotNo", sv.lotNo)); | |
| 271 | + cmd.Parameters.Add(new MySqlParameter("serialNo", sv.serialNo)); | |
| 272 | + | |
| 273 | + bool err = false; | |
| 274 | + | |
| 275 | + textBox1.BackColor = Color.Empty; | |
| 276 | + textBox2.BackColor = Color.Empty; | |
| 277 | + textBox4.BackColor = Color.Empty; | |
| 278 | + textBox5.BackColor = Color.Empty; | |
| 279 | + textBox6.BackColor = Color.Empty; | |
| 280 | + textBox7.BackColor = Color.Empty; | |
| 281 | + textBox8.BackColor = Color.Empty; | |
| 282 | + textBox9.BackColor = Color.Empty; | |
| 283 | + textBox10.BackColor = Color.Empty; | |
| 284 | + textBox11.BackColor = Color.Empty; | |
| 285 | + textBox12.BackColor = Color.Empty; | |
| 286 | + textBox13.BackColor = Color.Empty; | |
| 287 | + textBox14.BackColor = Color.Empty; | |
| 288 | + textBox15.BackColor = Color.Empty; | |
| 289 | + textBox16.BackColor = Color.Empty; | |
| 290 | + | |
| 291 | + try | |
| 292 | + { | |
| 293 | + MySqlDataReader reader = cmd.ExecuteReader(); | |
| 294 | + if (!reader.HasRows) | |
| 295 | + { | |
| 296 | + //無かった | |
| 297 | + textBox1.BackColor = Color.Pink; | |
| 298 | + reader.Close(); | |
| 299 | + } | |
| 300 | + else | |
| 301 | + { | |
| 302 | + string[] row = new string[reader.FieldCount]; | |
| 303 | + while (reader.Read()) | |
| 304 | + { | |
| 305 | + if( !sv.adminCode.Equals(isDBNull(reader, "世帯番号"))) | |
| 306 | + { | |
| 307 | + textBox2.BackColor = Color.Pink; | |
| 308 | + err = true; | |
| 309 | + } | |
| 310 | + if (!sv.phone.Equals(isDBNull(reader, "電話番号"))) | |
| 311 | + { | |
| 312 | + textBox4.BackColor = Color.Pink; | |
| 313 | + err = true; | |
| 314 | + } | |
| 315 | + if (!sv.mobilePhone.Equals(isDBNull(reader, "携帯番号"))) | |
| 316 | + { | |
| 317 | + textBox5.BackColor = Color.Pink; | |
| 318 | + err = true; | |
| 319 | + } | |
| 320 | + if (!sv.healthCheck.Equals(isDBNull(reader, "健康診査"))) | |
| 321 | + { | |
| 322 | + textBox6.BackColor = Color.Pink; | |
| 323 | + err = true; | |
| 324 | + } | |
| 325 | + if (!sv.lungCancer.Equals(isDBNull(reader, "結核肺がん"))) | |
| 326 | + { | |
| 327 | + textBox7.BackColor = Color.Pink; | |
| 328 | + err = true; | |
| 329 | + } | |
| 330 | + if (!sv.stomachCancer.Equals(isDBNull(reader, "胃がん"))) | |
| 331 | + { | |
| 332 | + textBox8.BackColor = Color.Pink; | |
| 333 | + err = true; | |
| 334 | + } | |
| 335 | + if (!sv.colorectalCancer.Equals(isDBNull(reader, "大腸がん"))) | |
| 336 | + { | |
| 337 | + textBox9.BackColor = Color.Pink; | |
| 338 | + err = true; | |
| 339 | + } | |
| 340 | + if (!sv.prostateCancer.Equals(isDBNull(reader, "前立腺がん"))) | |
| 341 | + { | |
| 342 | + textBox10.BackColor = Color.Pink; | |
| 343 | + err = true; | |
| 344 | + } | |
| 345 | + if (!sv.osteoporosis.Equals(isDBNull(reader, "骨粗鬆症"))) | |
| 346 | + { | |
| 347 | + textBox11.BackColor = Color.Pink; | |
| 348 | + err = true; | |
| 349 | + } | |
| 350 | + if (!sv.dental.Equals(isDBNull(reader, "成人歯科"))) | |
| 351 | + { | |
| 352 | + textBox12.BackColor = Color.Pink; | |
| 353 | + err = true; | |
| 354 | + } | |
| 355 | + if (!sv.cervicalCancer.Equals(isDBNull(reader, "子宮頸がん"))) | |
| 356 | + { | |
| 357 | + textBox13.BackColor = Color.Pink; | |
| 358 | + err = true; | |
| 359 | + } | |
| 360 | + if (!sv.breastCancer.Equals(isDBNull(reader, "乳がん"))) | |
| 361 | + { | |
| 362 | + textBox14.BackColor = Color.Pink; | |
| 363 | + err = true; | |
| 364 | + } | |
| 365 | + if (sv.place.Equals(isDBNull(reader, "希望場所"))) | |
| 366 | + { | |
| 367 | + textBox15.BackColor = Color.Pink; | |
| 368 | + err = true; | |
| 369 | + } | |
| 370 | + if (!sv.handicapped.Equals(isDBNull(reader, "身体不自由"))) | |
| 371 | + { | |
| 372 | + textBox16.BackColor = Color.Pink; | |
| 373 | + err = true; | |
| 374 | + } | |
| 375 | + } | |
| 376 | + reader.Close(); | |
| 377 | + } | |
| 378 | + } | |
| 379 | + catch (SqlException ex) | |
| 380 | + { | |
| 381 | + } | |
| 382 | + | |
| 383 | + conn.Close(); | |
| 384 | + | |
| 385 | + return err; | |
| 386 | + } | |
| 387 | + | |
| 388 | + | |
| 243 | 389 | private bool insertData(SaveData sv, string tableName, MySqlConnection conn) |
| 244 | 390 | { |
| 245 | 391 | bool err = false; |
| ... | ... | @@ -414,6 +560,22 @@ namespace MedicalCheckInputTool |
| 414 | 560 | |
| 415 | 561 | private void clearForm() |
| 416 | 562 | { |
| 563 | + textBox1.BackColor = Color.Empty; | |
| 564 | + textBox2.BackColor = Color.Empty; | |
| 565 | + textBox4.BackColor = Color.Empty; | |
| 566 | + textBox5.BackColor = Color.Empty; | |
| 567 | + textBox6.BackColor = Color.Empty; | |
| 568 | + textBox7.BackColor = Color.Empty; | |
| 569 | + textBox8.BackColor = Color.Empty; | |
| 570 | + textBox9.BackColor = Color.Empty; | |
| 571 | + textBox10.BackColor = Color.Empty; | |
| 572 | + textBox11.BackColor = Color.Empty; | |
| 573 | + textBox12.BackColor = Color.Empty; | |
| 574 | + textBox13.BackColor = Color.Empty; | |
| 575 | + textBox14.BackColor = Color.Empty; | |
| 576 | + textBox15.BackColor = Color.Empty; | |
| 577 | + textBox16.BackColor = Color.Empty; | |
| 578 | + | |
| 417 | 579 | textBox1.Text = ""; |
| 418 | 580 | textBox2.Text = ""; |
| 419 | 581 | textBox4.Text = ""; |
| ... | ... | @@ -591,37 +753,50 @@ namespace MedicalCheckInputTool |
| 591 | 753 | return; |
| 592 | 754 | } |
| 593 | 755 | |
| 756 | + SaveData sv = makeSaveData(); //保存用データ作成(パディング済み) | |
| 757 | + | |
| 594 | 758 | //マッチングチェック |
| 595 | 759 | if ("2回目".Equals(Global.times)) |
| 596 | 760 | { |
| 597 | 761 | //1回目と比較 |
| 598 | - //一致しない場合、エラーダイアログ表示 | |
| 599 | - DialogResult result = MessageBox.Show("入力内容が1回目と異なりますが保存しますか?", | |
| 600 | - "確認", | |
| 601 | - MessageBoxButtons.OKCancel, | |
| 602 | - MessageBoxIcon.Exclamation, | |
| 603 | - MessageBoxDefaultButton.Button2); | |
| 604 | - | |
| 605 | - //何が選択されたか調べる | |
| 606 | - if (result == DialogResult.OK) | |
| 762 | + bool matchErr = matchInput(sv); | |
| 763 | + if (matchErr) | |
| 607 | 764 | { |
| 608 | - //「OK」が選択された時 | |
| 765 | + //一致しない場合、エラーダイアログ表示 | |
| 766 | + DialogResult result = MessageBox.Show("入力内容が1回目と異なりますが保存しますか?", | |
| 767 | + "確認", | |
| 768 | + MessageBoxButtons.OKCancel, | |
| 769 | + MessageBoxIcon.Exclamation, | |
| 770 | + MessageBoxDefaultButton.Button2); | |
| 771 | + | |
| 772 | + //何が選択されたか調べる | |
| 773 | + if (result == DialogResult.OK) | |
| 774 | + { | |
| 775 | + //「OK」が選択された時 | |
| 776 | + } | |
| 777 | + else if (result == DialogResult.Cancel) | |
| 778 | + { | |
| 779 | + //「キャンセル」が選択された時 | |
| 780 | + return; | |
| 781 | + } | |
| 609 | 782 | } |
| 610 | - else if (result == DialogResult.Cancel) | |
| 783 | + else | |
| 611 | 784 | { |
| 612 | - //「キャンセル」が選択された時 | |
| 613 | - return; | |
| 785 | + //エラーなしは完了フラグを立てる | |
| 786 | + match = true; | |
| 614 | 787 | } |
| 788 | + | |
| 615 | 789 | } |
| 616 | 790 | |
| 617 | 791 | //保存処理 |
| 618 | - SaveData sv = makeSaveData(); | |
| 619 | 792 | if (match) |
| 620 | 793 | { |
| 621 | 794 | sv.done = "1"; //マッチングOKの場合、完了フラグを立てる |
| 622 | 795 | } |
| 623 | 796 | bool res = doSave(sv); |
| 624 | 797 | |
| 798 | + historyAdd(sv.serialNo); //履歴に積む | |
| 799 | + | |
| 625 | 800 | clearForm(); |
| 626 | 801 | dspCount(); |
| 627 | 802 | } |
| ... | ... | @@ -658,13 +833,110 @@ namespace MedicalCheckInputTool |
| 658 | 833 | return; |
| 659 | 834 | } |
| 660 | 835 | |
| 836 | + | |
| 661 | 837 | MySqlConnection conn; |
| 662 | 838 | string connstr = System.Configuration.ConfigurationManager.AppSettings["Conn"]; |
| 663 | 839 | conn = new MySqlConnection(connstr); |
| 664 | 840 | conn.Open(); |
| 665 | 841 | string code = textBox1.Text.PadLeft(10, '0'); |
| 666 | 842 | |
| 843 | + clearForm(); //いったんクリア | |
| 844 | + textBox1.Text = code; //整理番号だけ戻す | |
| 667 | 845 | selectData(Global.times, Global.lotNo, code, conn); |
| 846 | + | |
| 847 | + conn.Close(); | |
| 848 | + } | |
| 849 | + | |
| 850 | + private void historyAdd(string serialNo) | |
| 851 | + { | |
| 852 | + if(history.Count > 0) //要素がある | |
| 853 | + { | |
| 854 | + if (serialNo.Equals(history[historyPos])) //最後と同じ要素はなにもしない | |
| 855 | + { | |
| 856 | + return; | |
| 857 | + } | |
| 858 | + } | |
| 859 | + | |
| 860 | + if((history.Count - 1) > historyPos) //現在地より多く入っているものは消す | |
| 861 | + { | |
| 862 | + int cnt = history.Count -1; //削除前最大位置 | |
| 863 | + for (int i = cnt; i > historyPos; i--) | |
| 864 | + { | |
| 865 | + history.RemoveAt(i); | |
| 866 | + } | |
| 867 | + } | |
| 868 | + if (history.Count >= historyMax) | |
| 869 | + { | |
| 870 | + //最大数入っている | |
| 871 | + history.RemoveAt(0);//古いものを削除 | |
| 872 | + } | |
| 873 | + history.Add(serialNo); | |
| 874 | + historyPos = history.Count - 1; | |
| 875 | + } | |
| 876 | + | |
| 877 | + private string historyGet() | |
| 878 | + { | |
| 879 | + string ret = ""; | |
| 880 | + | |
| 881 | + if (history.Count > 0) | |
| 882 | + { | |
| 883 | + if (historyPos >= 0) | |
| 884 | + { | |
| 885 | + ret = history[historyPos]; | |
| 886 | + historyPos--; | |
| 887 | + if(historyPos < 0) | |
| 888 | + { | |
| 889 | + historyPos = 0; | |
| 890 | + } | |
| 891 | + } | |
| 892 | + } | |
| 893 | + return ret; | |
| 894 | + } | |
| 895 | + | |
| 896 | + //前の入力へ | |
| 897 | + private void button4_Click(object sender, EventArgs e) | |
| 898 | + { | |
| 899 | + string serialNo = historyGet(); | |
| 900 | + | |
| 901 | + MySqlConnection conn; | |
| 902 | + string connstr = System.Configuration.ConfigurationManager.AppSettings["Conn"]; | |
| 903 | + conn = new MySqlConnection(connstr); | |
| 904 | + conn.Open(); | |
| 905 | + | |
| 906 | + selectData(Global.times, Global.lotNo, serialNo, conn); | |
| 907 | + | |
| 908 | + conn.Close(); | |
| 909 | + } | |
| 910 | + | |
| 911 | + //整理番号のチェック | |
| 912 | + private void textBox1_Validating(object sender, CancelEventArgs e) | |
| 913 | + { | |
| 914 | + if ("2回目".Equals(Global.times)) | |
| 915 | + { | |
| 916 | + bool isExist = false; | |
| 917 | + | |
| 918 | + MySqlConnection conn; | |
| 919 | + string connstr = System.Configuration.ConfigurationManager.AppSettings["Conn"]; | |
| 920 | + conn = new MySqlConnection(connstr); | |
| 921 | + conn.Open(); | |
| 922 | + SaveData sv = new SaveData(); | |
| 923 | + | |
| 924 | + sv.serialNo = textBox1.Text.PadLeft(10, '0'); | |
| 925 | + isExist = isExistData(sv, "1回目", conn); | |
| 926 | + | |
| 927 | + conn.Close(); | |
| 928 | + | |
| 929 | + if (isExist) | |
| 930 | + { | |
| 931 | + label20.Text = ""; | |
| 932 | + label20.ForeColor = Color.Empty; | |
| 933 | + } | |
| 934 | + else | |
| 935 | + { | |
| 936 | + label20.Text = "1回目に存在しない整理番号です"; | |
| 937 | + label20.ForeColor = Color.Red; | |
| 938 | + } | |
| 939 | + } | |
| 668 | 940 | } |
| 669 | 941 | |
| 670 | 942 | } | ... | ... |
MedicalCheckInputTool/Form3.Designer.cs
0 → 100644
| 1 | +namespace MedicalCheckInputTool | |
| 2 | +{ | |
| 3 | + partial class Form3 | |
| 4 | + { | |
| 5 | + /// <summary> | |
| 6 | + /// Required designer variable. | |
| 7 | + /// </summary> | |
| 8 | + private System.ComponentModel.IContainer components = null; | |
| 9 | + | |
| 10 | + /// <summary> | |
| 11 | + /// Clean up any resources being used. | |
| 12 | + /// </summary> | |
| 13 | + /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> | |
| 14 | + protected override void Dispose(bool disposing) | |
| 15 | + { | |
| 16 | + if (disposing && (components != null)) | |
| 17 | + { | |
| 18 | + components.Dispose(); | |
| 19 | + } | |
| 20 | + base.Dispose(disposing); | |
| 21 | + } | |
| 22 | + | |
| 23 | + #region Windows Form Designer generated code | |
| 24 | + | |
| 25 | + /// <summary> | |
| 26 | + /// Required method for Designer support - do not modify | |
| 27 | + /// the contents of this method with the code editor. | |
| 28 | + /// </summary> | |
| 29 | + private void InitializeComponent() | |
| 30 | + { | |
| 31 | + this.textBox1 = new System.Windows.Forms.TextBox(); | |
| 32 | + this.label1 = new System.Windows.Forms.Label(); | |
| 33 | + this.button1 = new System.Windows.Forms.Button(); | |
| 34 | + this.button2 = new System.Windows.Forms.Button(); | |
| 35 | + this.checkBox1 = new System.Windows.Forms.CheckBox(); | |
| 36 | + this.dataGridView1 = new System.Windows.Forms.DataGridView(); | |
| 37 | + this.label2 = new System.Windows.Forms.Label(); | |
| 38 | + this.label3 = new System.Windows.Forms.Label(); | |
| 39 | + this.label4 = new System.Windows.Forms.Label(); | |
| 40 | + this.checkBox2 = new System.Windows.Forms.CheckBox(); | |
| 41 | + this.checkBox3 = new System.Windows.Forms.CheckBox(); | |
| 42 | + this.comboBox1 = new System.Windows.Forms.ComboBox(); | |
| 43 | + this.button3 = new System.Windows.Forms.Button(); | |
| 44 | + this.label5 = new System.Windows.Forms.Label(); | |
| 45 | + this.button4 = new System.Windows.Forms.Button(); | |
| 46 | + this.状況 = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |
| 47 | + this.編集1 = new System.Windows.Forms.DataGridViewButtonColumn(); | |
| 48 | + this.f_行政区コード = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |
| 49 | + this.f_整理番号 = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |
| 50 | + this.f_世帯番号 = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |
| 51 | + this.f_電話番号 = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |
| 52 | + this.f_携帯番号 = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |
| 53 | + this.f_健康診査 = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |
| 54 | + this.f_結核肺がん = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |
| 55 | + this.f_胃がん = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |
| 56 | + this.f_大腸がん = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |
| 57 | + this.f_前立腺がん = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |
| 58 | + this.f_骨粗鬆症 = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |
| 59 | + this.f_成人歯科 = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |
| 60 | + this.f_子宮頸がん = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |
| 61 | + this.f_乳がん = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |
| 62 | + this.f_希望場所 = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |
| 63 | + this.f_身体不自由 = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |
| 64 | + this.編集2 = new System.Windows.Forms.DataGridViewButtonColumn(); | |
| 65 | + this.s_行政区コード = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |
| 66 | + this.s_整理番号 = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |
| 67 | + this.s_世帯番号 = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |
| 68 | + this.s_電話番号 = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |
| 69 | + this.s_携帯番号 = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |
| 70 | + this.s_健康診査 = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |
| 71 | + this.s_結核肺がん = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |
| 72 | + this.s_胃がん = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |
| 73 | + this.s_大腸がん = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |
| 74 | + this.s_前立腺がん = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |
| 75 | + this.s_骨粗鬆症 = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |
| 76 | + this.s_成人歯科 = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |
| 77 | + this.s_子宮頸がん = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |
| 78 | + this.s_乳がん = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |
| 79 | + this.s_希望場所 = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |
| 80 | + this.s_身体不自由 = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |
| 81 | + ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); | |
| 82 | + this.SuspendLayout(); | |
| 83 | + // | |
| 84 | + // textBox1 | |
| 85 | + // | |
| 86 | + this.textBox1.Location = new System.Drawing.Point(378, 11); | |
| 87 | + this.textBox1.MaxLength = 10; | |
| 88 | + this.textBox1.Name = "textBox1"; | |
| 89 | + this.textBox1.Size = new System.Drawing.Size(100, 19); | |
| 90 | + this.textBox1.TabIndex = 0; | |
| 91 | + // | |
| 92 | + // label1 | |
| 93 | + // | |
| 94 | + this.label1.AutoSize = true; | |
| 95 | + this.label1.Location = new System.Drawing.Point(13, 14); | |
| 96 | + this.label1.Name = "label1"; | |
| 97 | + this.label1.Size = new System.Drawing.Size(60, 12); | |
| 98 | + this.label1.TabIndex = 1; | |
| 99 | + this.label1.Text = "マッチ件数:"; | |
| 100 | + // | |
| 101 | + // button1 | |
| 102 | + // | |
| 103 | + this.button1.Location = new System.Drawing.Point(484, 9); | |
| 104 | + this.button1.Name = "button1"; | |
| 105 | + this.button1.Size = new System.Drawing.Size(75, 23); | |
| 106 | + this.button1.TabIndex = 2; | |
| 107 | + this.button1.Text = "検索"; | |
| 108 | + this.button1.UseVisualStyleBackColor = true; | |
| 109 | + this.button1.Click += new System.EventHandler(this.button1_Click); | |
| 110 | + // | |
| 111 | + // button2 | |
| 112 | + // | |
| 113 | + this.button2.Location = new System.Drawing.Point(565, 9); | |
| 114 | + this.button2.Name = "button2"; | |
| 115 | + this.button2.Size = new System.Drawing.Size(75, 23); | |
| 116 | + this.button2.TabIndex = 3; | |
| 117 | + this.button2.Text = "チェック"; | |
| 118 | + this.button2.UseVisualStyleBackColor = true; | |
| 119 | + // | |
| 120 | + // checkBox1 | |
| 121 | + // | |
| 122 | + this.checkBox1.AutoSize = true; | |
| 123 | + this.checkBox1.Location = new System.Drawing.Point(134, 13); | |
| 124 | + this.checkBox1.Name = "checkBox1"; | |
| 125 | + this.checkBox1.Size = new System.Drawing.Size(133, 16); | |
| 126 | + this.checkBox1.TabIndex = 4; | |
| 127 | + this.checkBox1.Text = "未完了データのみ表示"; | |
| 128 | + this.checkBox1.UseVisualStyleBackColor = true; | |
| 129 | + // | |
| 130 | + // dataGridView1 | |
| 131 | + // | |
| 132 | + this.dataGridView1.AllowUserToAddRows = false; | |
| 133 | + this.dataGridView1.AllowUserToDeleteRows = false; | |
| 134 | + this.dataGridView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |
| 135 | + | System.Windows.Forms.AnchorStyles.Left) | |
| 136 | + | System.Windows.Forms.AnchorStyles.Right))); | |
| 137 | + this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; | |
| 138 | + this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { | |
| 139 | + this.状況, | |
| 140 | + this.編集1, | |
| 141 | + this.f_行政区コード, | |
| 142 | + this.f_整理番号, | |
| 143 | + this.f_世帯番号, | |
| 144 | + this.f_電話番号, | |
| 145 | + this.f_携帯番号, | |
| 146 | + this.f_健康診査, | |
| 147 | + this.f_結核肺がん, | |
| 148 | + this.f_胃がん, | |
| 149 | + this.f_大腸がん, | |
| 150 | + this.f_前立腺がん, | |
| 151 | + this.f_骨粗鬆症, | |
| 152 | + this.f_成人歯科, | |
| 153 | + this.f_子宮頸がん, | |
| 154 | + this.f_乳がん, | |
| 155 | + this.f_希望場所, | |
| 156 | + this.f_身体不自由, | |
| 157 | + this.編集2, | |
| 158 | + this.s_行政区コード, | |
| 159 | + this.s_整理番号, | |
| 160 | + this.s_世帯番号, | |
| 161 | + this.s_電話番号, | |
| 162 | + this.s_携帯番号, | |
| 163 | + this.s_健康診査, | |
| 164 | + this.s_結核肺がん, | |
| 165 | + this.s_胃がん, | |
| 166 | + this.s_大腸がん, | |
| 167 | + this.s_前立腺がん, | |
| 168 | + this.s_骨粗鬆症, | |
| 169 | + this.s_成人歯科, | |
| 170 | + this.s_子宮頸がん, | |
| 171 | + this.s_乳がん, | |
| 172 | + this.s_希望場所, | |
| 173 | + this.s_身体不自由}); | |
| 174 | + this.dataGridView1.Location = new System.Drawing.Point(12, 100); | |
| 175 | + this.dataGridView1.Name = "dataGridView1"; | |
| 176 | + this.dataGridView1.ReadOnly = true; | |
| 177 | + this.dataGridView1.RowTemplate.Height = 21; | |
| 178 | + this.dataGridView1.Size = new System.Drawing.Size(1040, 381); | |
| 179 | + this.dataGridView1.TabIndex = 5; | |
| 180 | + // | |
| 181 | + // label2 | |
| 182 | + // | |
| 183 | + this.label2.AutoSize = true; | |
| 184 | + this.label2.Location = new System.Drawing.Point(79, 14); | |
| 185 | + this.label2.Name = "label2"; | |
| 186 | + this.label2.Size = new System.Drawing.Size(35, 12); | |
| 187 | + this.label2.TabIndex = 6; | |
| 188 | + this.label2.Text = "label2"; | |
| 189 | + // | |
| 190 | + // label3 | |
| 191 | + // | |
| 192 | + this.label3.AutoSize = true; | |
| 193 | + this.label3.Location = new System.Drawing.Point(313, 14); | |
| 194 | + this.label3.Name = "label3"; | |
| 195 | + this.label3.Size = new System.Drawing.Size(59, 12); | |
| 196 | + this.label3.TabIndex = 7; | |
| 197 | + this.label3.Text = "整理番号:"; | |
| 198 | + // | |
| 199 | + // label4 | |
| 200 | + // | |
| 201 | + this.label4.AutoSize = true; | |
| 202 | + this.label4.Location = new System.Drawing.Point(26, 36); | |
| 203 | + this.label4.Name = "label4"; | |
| 204 | + this.label4.Size = new System.Drawing.Size(47, 12); | |
| 205 | + this.label4.TabIndex = 8; | |
| 206 | + this.label4.Text = "表示軸:"; | |
| 207 | + // | |
| 208 | + // checkBox2 | |
| 209 | + // | |
| 210 | + this.checkBox2.AutoSize = true; | |
| 211 | + this.checkBox2.Checked = true; | |
| 212 | + this.checkBox2.CheckState = System.Windows.Forms.CheckState.Checked; | |
| 213 | + this.checkBox2.Location = new System.Drawing.Point(81, 36); | |
| 214 | + this.checkBox2.Name = "checkBox2"; | |
| 215 | + this.checkBox2.Size = new System.Drawing.Size(77, 16); | |
| 216 | + this.checkBox2.TabIndex = 9; | |
| 217 | + this.checkBox2.Text = "1回目を軸"; | |
| 218 | + this.checkBox2.UseVisualStyleBackColor = true; | |
| 219 | + // | |
| 220 | + // checkBox3 | |
| 221 | + // | |
| 222 | + this.checkBox3.AutoSize = true; | |
| 223 | + this.checkBox3.Checked = true; | |
| 224 | + this.checkBox3.CheckState = System.Windows.Forms.CheckState.Checked; | |
| 225 | + this.checkBox3.Location = new System.Drawing.Point(175, 36); | |
| 226 | + this.checkBox3.Name = "checkBox3"; | |
| 227 | + this.checkBox3.Size = new System.Drawing.Size(77, 16); | |
| 228 | + this.checkBox3.TabIndex = 10; | |
| 229 | + this.checkBox3.Text = "2回目を軸"; | |
| 230 | + this.checkBox3.UseVisualStyleBackColor = true; | |
| 231 | + // | |
| 232 | + // comboBox1 | |
| 233 | + // | |
| 234 | + this.comboBox1.FormattingEnabled = true; | |
| 235 | + this.comboBox1.Location = new System.Drawing.Point(772, 69); | |
| 236 | + this.comboBox1.Name = "comboBox1"; | |
| 237 | + this.comboBox1.Size = new System.Drawing.Size(85, 20); | |
| 238 | + this.comboBox1.TabIndex = 11; | |
| 239 | + // | |
| 240 | + // button3 | |
| 241 | + // | |
| 242 | + this.button3.Location = new System.Drawing.Point(722, 67); | |
| 243 | + this.button3.Name = "button3"; | |
| 244 | + this.button3.Size = new System.Drawing.Size(43, 23); | |
| 245 | + this.button3.TabIndex = 12; | |
| 246 | + this.button3.Text = "<"; | |
| 247 | + this.button3.UseVisualStyleBackColor = true; | |
| 248 | + // | |
| 249 | + // label5 | |
| 250 | + // | |
| 251 | + this.label5.AutoSize = true; | |
| 252 | + this.label5.Location = new System.Drawing.Point(863, 72); | |
| 253 | + this.label5.Name = "label5"; | |
| 254 | + this.label5.Size = new System.Drawing.Size(35, 12); | |
| 255 | + this.label5.TabIndex = 13; | |
| 256 | + this.label5.Text = "ページ"; | |
| 257 | + // | |
| 258 | + // button4 | |
| 259 | + // | |
| 260 | + this.button4.Location = new System.Drawing.Point(904, 67); | |
| 261 | + this.button4.Name = "button4"; | |
| 262 | + this.button4.Size = new System.Drawing.Size(43, 23); | |
| 263 | + this.button4.TabIndex = 14; | |
| 264 | + this.button4.Text = ">"; | |
| 265 | + this.button4.UseVisualStyleBackColor = true; | |
| 266 | + // | |
| 267 | + // 状況 | |
| 268 | + // | |
| 269 | + this.状況.HeaderText = "状況"; | |
| 270 | + this.状況.Name = "状況"; | |
| 271 | + this.状況.ReadOnly = true; | |
| 272 | + this.状況.Width = 50; | |
| 273 | + // | |
| 274 | + // 編集1 | |
| 275 | + // | |
| 276 | + this.編集1.HeaderText = "編集(1)"; | |
| 277 | + this.編集1.Name = "編集1"; | |
| 278 | + this.編集1.ReadOnly = true; | |
| 279 | + this.編集1.Resizable = System.Windows.Forms.DataGridViewTriState.True; | |
| 280 | + this.編集1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; | |
| 281 | + this.編集1.Width = 30; | |
| 282 | + // | |
| 283 | + // f_行政区コード | |
| 284 | + // | |
| 285 | + this.f_行政区コード.HeaderText = "l_行政区コード"; | |
| 286 | + this.f_行政区コード.Name = "f_行政区コード"; | |
| 287 | + this.f_行政区コード.ReadOnly = true; | |
| 288 | + // | |
| 289 | + // f_整理番号 | |
| 290 | + // | |
| 291 | + this.f_整理番号.HeaderText = "l_整理番号"; | |
| 292 | + this.f_整理番号.Name = "f_整理番号"; | |
| 293 | + this.f_整理番号.ReadOnly = true; | |
| 294 | + // | |
| 295 | + // f_世帯番号 | |
| 296 | + // | |
| 297 | + this.f_世帯番号.HeaderText = "l_世帯番号"; | |
| 298 | + this.f_世帯番号.Name = "f_世帯番号"; | |
| 299 | + this.f_世帯番号.ReadOnly = true; | |
| 300 | + // | |
| 301 | + // f_電話番号 | |
| 302 | + // | |
| 303 | + this.f_電話番号.HeaderText = "l_電話番号"; | |
| 304 | + this.f_電話番号.Name = "f_電話番号"; | |
| 305 | + this.f_電話番号.ReadOnly = true; | |
| 306 | + // | |
| 307 | + // f_携帯番号 | |
| 308 | + // | |
| 309 | + this.f_携帯番号.HeaderText = "l_携帯番号"; | |
| 310 | + this.f_携帯番号.Name = "f_携帯番号"; | |
| 311 | + this.f_携帯番号.ReadOnly = true; | |
| 312 | + // | |
| 313 | + // f_健康診査 | |
| 314 | + // | |
| 315 | + this.f_健康診査.HeaderText = "l_健康診査"; | |
| 316 | + this.f_健康診査.Name = "f_健康診査"; | |
| 317 | + this.f_健康診査.ReadOnly = true; | |
| 318 | + this.f_健康診査.Width = 20; | |
| 319 | + // | |
| 320 | + // f_結核肺がん | |
| 321 | + // | |
| 322 | + this.f_結核肺がん.HeaderText = "l_結核肺がん"; | |
| 323 | + this.f_結核肺がん.Name = "f_結核肺がん"; | |
| 324 | + this.f_結核肺がん.ReadOnly = true; | |
| 325 | + this.f_結核肺がん.Width = 20; | |
| 326 | + // | |
| 327 | + // f_胃がん | |
| 328 | + // | |
| 329 | + this.f_胃がん.HeaderText = "l_胃がん"; | |
| 330 | + this.f_胃がん.Name = "f_胃がん"; | |
| 331 | + this.f_胃がん.ReadOnly = true; | |
| 332 | + this.f_胃がん.Width = 20; | |
| 333 | + // | |
| 334 | + // f_大腸がん | |
| 335 | + // | |
| 336 | + this.f_大腸がん.HeaderText = "l_大腸がん"; | |
| 337 | + this.f_大腸がん.Name = "f_大腸がん"; | |
| 338 | + this.f_大腸がん.ReadOnly = true; | |
| 339 | + this.f_大腸がん.Width = 20; | |
| 340 | + // | |
| 341 | + // f_前立腺がん | |
| 342 | + // | |
| 343 | + this.f_前立腺がん.HeaderText = "l_前立腺がん"; | |
| 344 | + this.f_前立腺がん.Name = "f_前立腺がん"; | |
| 345 | + this.f_前立腺がん.ReadOnly = true; | |
| 346 | + this.f_前立腺がん.Width = 20; | |
| 347 | + // | |
| 348 | + // f_骨粗鬆症 | |
| 349 | + // | |
| 350 | + this.f_骨粗鬆症.HeaderText = "l_骨粗鬆症"; | |
| 351 | + this.f_骨粗鬆症.Name = "f_骨粗鬆症"; | |
| 352 | + this.f_骨粗鬆症.ReadOnly = true; | |
| 353 | + this.f_骨粗鬆症.Width = 20; | |
| 354 | + // | |
| 355 | + // f_成人歯科 | |
| 356 | + // | |
| 357 | + this.f_成人歯科.HeaderText = "l_成人歯科"; | |
| 358 | + this.f_成人歯科.Name = "f_成人歯科"; | |
| 359 | + this.f_成人歯科.ReadOnly = true; | |
| 360 | + this.f_成人歯科.Width = 20; | |
| 361 | + // | |
| 362 | + // f_子宮頸がん | |
| 363 | + // | |
| 364 | + this.f_子宮頸がん.HeaderText = "l_子宮頸がん"; | |
| 365 | + this.f_子宮頸がん.Name = "f_子宮頸がん"; | |
| 366 | + this.f_子宮頸がん.ReadOnly = true; | |
| 367 | + this.f_子宮頸がん.Width = 20; | |
| 368 | + // | |
| 369 | + // f_乳がん | |
| 370 | + // | |
| 371 | + this.f_乳がん.HeaderText = "l_乳がん"; | |
| 372 | + this.f_乳がん.Name = "f_乳がん"; | |
| 373 | + this.f_乳がん.ReadOnly = true; | |
| 374 | + this.f_乳がん.Width = 20; | |
| 375 | + // | |
| 376 | + // f_希望場所 | |
| 377 | + // | |
| 378 | + this.f_希望場所.HeaderText = "l_希望場所"; | |
| 379 | + this.f_希望場所.Name = "f_希望場所"; | |
| 380 | + this.f_希望場所.ReadOnly = true; | |
| 381 | + this.f_希望場所.Width = 20; | |
| 382 | + // | |
| 383 | + // f_身体不自由 | |
| 384 | + // | |
| 385 | + this.f_身体不自由.HeaderText = "l_身体不自由"; | |
| 386 | + this.f_身体不自由.Name = "f_身体不自由"; | |
| 387 | + this.f_身体不自由.ReadOnly = true; | |
| 388 | + this.f_身体不自由.Width = 20; | |
| 389 | + // | |
| 390 | + // 編集2 | |
| 391 | + // | |
| 392 | + this.編集2.HeaderText = "編集(2)"; | |
| 393 | + this.編集2.Name = "編集2"; | |
| 394 | + this.編集2.ReadOnly = true; | |
| 395 | + this.編集2.Width = 30; | |
| 396 | + // | |
| 397 | + // s_行政区コード | |
| 398 | + // | |
| 399 | + this.s_行政区コード.HeaderText = "r_行政区コード"; | |
| 400 | + this.s_行政区コード.Name = "s_行政区コード"; | |
| 401 | + this.s_行政区コード.ReadOnly = true; | |
| 402 | + this.s_行政区コード.Resizable = System.Windows.Forms.DataGridViewTriState.True; | |
| 403 | + this.s_行政区コード.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; | |
| 404 | + // | |
| 405 | + // s_整理番号 | |
| 406 | + // | |
| 407 | + this.s_整理番号.HeaderText = "r_整理番号"; | |
| 408 | + this.s_整理番号.Name = "s_整理番号"; | |
| 409 | + this.s_整理番号.ReadOnly = true; | |
| 410 | + this.s_整理番号.Resizable = System.Windows.Forms.DataGridViewTriState.True; | |
| 411 | + this.s_整理番号.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; | |
| 412 | + // | |
| 413 | + // s_世帯番号 | |
| 414 | + // | |
| 415 | + this.s_世帯番号.HeaderText = "r_世帯番号"; | |
| 416 | + this.s_世帯番号.Name = "s_世帯番号"; | |
| 417 | + this.s_世帯番号.ReadOnly = true; | |
| 418 | + this.s_世帯番号.Resizable = System.Windows.Forms.DataGridViewTriState.True; | |
| 419 | + this.s_世帯番号.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; | |
| 420 | + // | |
| 421 | + // s_電話番号 | |
| 422 | + // | |
| 423 | + this.s_電話番号.HeaderText = "r_電話番号"; | |
| 424 | + this.s_電話番号.Name = "s_電話番号"; | |
| 425 | + this.s_電話番号.ReadOnly = true; | |
| 426 | + this.s_電話番号.Resizable = System.Windows.Forms.DataGridViewTriState.True; | |
| 427 | + this.s_電話番号.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; | |
| 428 | + // | |
| 429 | + // s_携帯番号 | |
| 430 | + // | |
| 431 | + this.s_携帯番号.HeaderText = "r_携帯番号"; | |
| 432 | + this.s_携帯番号.Name = "s_携帯番号"; | |
| 433 | + this.s_携帯番号.ReadOnly = true; | |
| 434 | + this.s_携帯番号.Resizable = System.Windows.Forms.DataGridViewTriState.True; | |
| 435 | + this.s_携帯番号.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; | |
| 436 | + // | |
| 437 | + // s_健康診査 | |
| 438 | + // | |
| 439 | + this.s_健康診査.HeaderText = "r_健康診査"; | |
| 440 | + this.s_健康診査.Name = "s_健康診査"; | |
| 441 | + this.s_健康診査.ReadOnly = true; | |
| 442 | + this.s_健康診査.Resizable = System.Windows.Forms.DataGridViewTriState.True; | |
| 443 | + this.s_健康診査.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; | |
| 444 | + this.s_健康診査.Width = 20; | |
| 445 | + // | |
| 446 | + // s_結核肺がん | |
| 447 | + // | |
| 448 | + this.s_結核肺がん.HeaderText = "r_結核肺がん"; | |
| 449 | + this.s_結核肺がん.Name = "s_結核肺がん"; | |
| 450 | + this.s_結核肺がん.ReadOnly = true; | |
| 451 | + this.s_結核肺がん.Resizable = System.Windows.Forms.DataGridViewTriState.True; | |
| 452 | + this.s_結核肺がん.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; | |
| 453 | + this.s_結核肺がん.Width = 20; | |
| 454 | + // | |
| 455 | + // s_胃がん | |
| 456 | + // | |
| 457 | + this.s_胃がん.HeaderText = "r_胃がん"; | |
| 458 | + this.s_胃がん.Name = "s_胃がん"; | |
| 459 | + this.s_胃がん.ReadOnly = true; | |
| 460 | + this.s_胃がん.Resizable = System.Windows.Forms.DataGridViewTriState.True; | |
| 461 | + this.s_胃がん.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; | |
| 462 | + this.s_胃がん.Width = 20; | |
| 463 | + // | |
| 464 | + // s_大腸がん | |
| 465 | + // | |
| 466 | + this.s_大腸がん.HeaderText = "r_大腸がん"; | |
| 467 | + this.s_大腸がん.Name = "s_大腸がん"; | |
| 468 | + this.s_大腸がん.ReadOnly = true; | |
| 469 | + this.s_大腸がん.Resizable = System.Windows.Forms.DataGridViewTriState.True; | |
| 470 | + this.s_大腸がん.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; | |
| 471 | + this.s_大腸がん.Width = 20; | |
| 472 | + // | |
| 473 | + // s_前立腺がん | |
| 474 | + // | |
| 475 | + this.s_前立腺がん.HeaderText = "r_前立腺がん"; | |
| 476 | + this.s_前立腺がん.Name = "s_前立腺がん"; | |
| 477 | + this.s_前立腺がん.ReadOnly = true; | |
| 478 | + this.s_前立腺がん.Resizable = System.Windows.Forms.DataGridViewTriState.True; | |
| 479 | + this.s_前立腺がん.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; | |
| 480 | + this.s_前立腺がん.Width = 20; | |
| 481 | + // | |
| 482 | + // s_骨粗鬆症 | |
| 483 | + // | |
| 484 | + this.s_骨粗鬆症.HeaderText = "r_骨粗鬆症"; | |
| 485 | + this.s_骨粗鬆症.Name = "s_骨粗鬆症"; | |
| 486 | + this.s_骨粗鬆症.ReadOnly = true; | |
| 487 | + this.s_骨粗鬆症.Resizable = System.Windows.Forms.DataGridViewTriState.True; | |
| 488 | + this.s_骨粗鬆症.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; | |
| 489 | + this.s_骨粗鬆症.Width = 20; | |
| 490 | + // | |
| 491 | + // s_成人歯科 | |
| 492 | + // | |
| 493 | + this.s_成人歯科.HeaderText = "r_成人歯科"; | |
| 494 | + this.s_成人歯科.Name = "s_成人歯科"; | |
| 495 | + this.s_成人歯科.ReadOnly = true; | |
| 496 | + this.s_成人歯科.Resizable = System.Windows.Forms.DataGridViewTriState.True; | |
| 497 | + this.s_成人歯科.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; | |
| 498 | + this.s_成人歯科.Width = 20; | |
| 499 | + // | |
| 500 | + // s_子宮頸がん | |
| 501 | + // | |
| 502 | + this.s_子宮頸がん.HeaderText = "r_子宮頸がん"; | |
| 503 | + this.s_子宮頸がん.Name = "s_子宮頸がん"; | |
| 504 | + this.s_子宮頸がん.ReadOnly = true; | |
| 505 | + this.s_子宮頸がん.Resizable = System.Windows.Forms.DataGridViewTriState.True; | |
| 506 | + this.s_子宮頸がん.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; | |
| 507 | + this.s_子宮頸がん.Width = 20; | |
| 508 | + // | |
| 509 | + // s_乳がん | |
| 510 | + // | |
| 511 | + this.s_乳がん.HeaderText = "r_乳がん"; | |
| 512 | + this.s_乳がん.Name = "s_乳がん"; | |
| 513 | + this.s_乳がん.ReadOnly = true; | |
| 514 | + this.s_乳がん.Resizable = System.Windows.Forms.DataGridViewTriState.True; | |
| 515 | + this.s_乳がん.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; | |
| 516 | + this.s_乳がん.Width = 20; | |
| 517 | + // | |
| 518 | + // s_希望場所 | |
| 519 | + // | |
| 520 | + this.s_希望場所.HeaderText = "r_希望場所"; | |
| 521 | + this.s_希望場所.Name = "s_希望場所"; | |
| 522 | + this.s_希望場所.ReadOnly = true; | |
| 523 | + this.s_希望場所.Resizable = System.Windows.Forms.DataGridViewTriState.True; | |
| 524 | + this.s_希望場所.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; | |
| 525 | + this.s_希望場所.Width = 20; | |
| 526 | + // | |
| 527 | + // s_身体不自由 | |
| 528 | + // | |
| 529 | + this.s_身体不自由.HeaderText = "r_身体不自由"; | |
| 530 | + this.s_身体不自由.Name = "s_身体不自由"; | |
| 531 | + this.s_身体不自由.ReadOnly = true; | |
| 532 | + this.s_身体不自由.Resizable = System.Windows.Forms.DataGridViewTriState.True; | |
| 533 | + this.s_身体不自由.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; | |
| 534 | + this.s_身体不自由.Width = 20; | |
| 535 | + // | |
| 536 | + // Form3 | |
| 537 | + // | |
| 538 | + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); | |
| 539 | + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | |
| 540 | + this.ClientSize = new System.Drawing.Size(1064, 493); | |
| 541 | + this.Controls.Add(this.button4); | |
| 542 | + this.Controls.Add(this.label5); | |
| 543 | + this.Controls.Add(this.button3); | |
| 544 | + this.Controls.Add(this.comboBox1); | |
| 545 | + this.Controls.Add(this.checkBox3); | |
| 546 | + this.Controls.Add(this.checkBox2); | |
| 547 | + this.Controls.Add(this.label4); | |
| 548 | + this.Controls.Add(this.label3); | |
| 549 | + this.Controls.Add(this.label2); | |
| 550 | + this.Controls.Add(this.dataGridView1); | |
| 551 | + this.Controls.Add(this.checkBox1); | |
| 552 | + this.Controls.Add(this.button2); | |
| 553 | + this.Controls.Add(this.button1); | |
| 554 | + this.Controls.Add(this.label1); | |
| 555 | + this.Controls.Add(this.textBox1); | |
| 556 | + this.Name = "Form3"; | |
| 557 | + this.Text = "Form3"; | |
| 558 | + ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); | |
| 559 | + this.ResumeLayout(false); | |
| 560 | + this.PerformLayout(); | |
| 561 | + | |
| 562 | + } | |
| 563 | + | |
| 564 | + #endregion | |
| 565 | + | |
| 566 | + private System.Windows.Forms.TextBox textBox1; | |
| 567 | + private System.Windows.Forms.Label label1; | |
| 568 | + private System.Windows.Forms.Button button1; | |
| 569 | + private System.Windows.Forms.Button button2; | |
| 570 | + private System.Windows.Forms.CheckBox checkBox1; | |
| 571 | + private System.Windows.Forms.DataGridView dataGridView1; | |
| 572 | + private System.Windows.Forms.Label label2; | |
| 573 | + private System.Windows.Forms.Label label3; | |
| 574 | + private System.Windows.Forms.Label label4; | |
| 575 | + private System.Windows.Forms.CheckBox checkBox2; | |
| 576 | + private System.Windows.Forms.CheckBox checkBox3; | |
| 577 | + private System.Windows.Forms.ComboBox comboBox1; | |
| 578 | + private System.Windows.Forms.Button button3; | |
| 579 | + private System.Windows.Forms.Label label5; | |
| 580 | + private System.Windows.Forms.Button button4; | |
| 581 | + private System.Windows.Forms.DataGridViewTextBoxColumn 状況; | |
| 582 | + private System.Windows.Forms.DataGridViewButtonColumn 編集1; | |
| 583 | + private System.Windows.Forms.DataGridViewTextBoxColumn f_行政区コード; | |
| 584 | + private System.Windows.Forms.DataGridViewTextBoxColumn f_整理番号; | |
| 585 | + private System.Windows.Forms.DataGridViewTextBoxColumn f_世帯番号; | |
| 586 | + private System.Windows.Forms.DataGridViewTextBoxColumn f_電話番号; | |
| 587 | + private System.Windows.Forms.DataGridViewTextBoxColumn f_携帯番号; | |
| 588 | + private System.Windows.Forms.DataGridViewTextBoxColumn f_健康診査; | |
| 589 | + private System.Windows.Forms.DataGridViewTextBoxColumn f_結核肺がん; | |
| 590 | + private System.Windows.Forms.DataGridViewTextBoxColumn f_胃がん; | |
| 591 | + private System.Windows.Forms.DataGridViewTextBoxColumn f_大腸がん; | |
| 592 | + private System.Windows.Forms.DataGridViewTextBoxColumn f_前立腺がん; | |
| 593 | + private System.Windows.Forms.DataGridViewTextBoxColumn f_骨粗鬆症; | |
| 594 | + private System.Windows.Forms.DataGridViewTextBoxColumn f_成人歯科; | |
| 595 | + private System.Windows.Forms.DataGridViewTextBoxColumn f_子宮頸がん; | |
| 596 | + private System.Windows.Forms.DataGridViewTextBoxColumn f_乳がん; | |
| 597 | + private System.Windows.Forms.DataGridViewTextBoxColumn f_希望場所; | |
| 598 | + private System.Windows.Forms.DataGridViewTextBoxColumn f_身体不自由; | |
| 599 | + private System.Windows.Forms.DataGridViewButtonColumn 編集2; | |
| 600 | + private System.Windows.Forms.DataGridViewTextBoxColumn s_行政区コード; | |
| 601 | + private System.Windows.Forms.DataGridViewTextBoxColumn s_整理番号; | |
| 602 | + private System.Windows.Forms.DataGridViewTextBoxColumn s_世帯番号; | |
| 603 | + private System.Windows.Forms.DataGridViewTextBoxColumn s_電話番号; | |
| 604 | + private System.Windows.Forms.DataGridViewTextBoxColumn s_携帯番号; | |
| 605 | + private System.Windows.Forms.DataGridViewTextBoxColumn s_健康診査; | |
| 606 | + private System.Windows.Forms.DataGridViewTextBoxColumn s_結核肺がん; | |
| 607 | + private System.Windows.Forms.DataGridViewTextBoxColumn s_胃がん; | |
| 608 | + private System.Windows.Forms.DataGridViewTextBoxColumn s_大腸がん; | |
| 609 | + private System.Windows.Forms.DataGridViewTextBoxColumn s_前立腺がん; | |
| 610 | + private System.Windows.Forms.DataGridViewTextBoxColumn s_骨粗鬆症; | |
| 611 | + private System.Windows.Forms.DataGridViewTextBoxColumn s_成人歯科; | |
| 612 | + private System.Windows.Forms.DataGridViewTextBoxColumn s_子宮頸がん; | |
| 613 | + private System.Windows.Forms.DataGridViewTextBoxColumn s_乳がん; | |
| 614 | + private System.Windows.Forms.DataGridViewTextBoxColumn s_希望場所; | |
| 615 | + private System.Windows.Forms.DataGridViewTextBoxColumn s_身体不自由; | |
| 616 | + } | |
| 617 | +} | |
| \ No newline at end of file | ... | ... |
MedicalCheckInputTool/Form3.cs
0 → 100644
| 1 | +using System; | |
| 2 | +using System.Collections.Generic; | |
| 3 | +using System.ComponentModel; | |
| 4 | +using System.Data; | |
| 5 | +using System.Drawing; | |
| 6 | +using System.Linq; | |
| 7 | +using System.Text; | |
| 8 | +using System.Threading.Tasks; | |
| 9 | +using System.Windows.Forms; | |
| 10 | +using MySql.Data.MySqlClient; | |
| 11 | +using System.Data.SqlClient; | |
| 12 | + | |
| 13 | +namespace MedicalCheckInputTool | |
| 14 | +{ | |
| 15 | + public partial class Form3 : Form | |
| 16 | + { | |
| 17 | + private const int PAGEMAX = 100; | |
| 18 | + private int currentPageNo = 1; | |
| 19 | + private int maxPageNo = 1; | |
| 20 | + | |
| 21 | + public Form3() | |
| 22 | + { | |
| 23 | + InitializeComponent(); | |
| 24 | + | |
| 25 | + this.Text = "ロット: " + EditParam.lotNo + " ユーザ: " + EditParam.inputUser; | |
| 26 | + } | |
| 27 | + | |
| 28 | + private void setPage() | |
| 29 | + { | |
| 30 | + string connstr = System.Configuration.ConfigurationManager.AppSettings["Conn"]; | |
| 31 | + MySqlConnection readerCon = new MySqlConnection(connstr); | |
| 32 | + readerCon.Open(); | |
| 33 | + string countQuery = "select count(*) from page_compare where "; | |
| 34 | + string orderby = " order by `f_行政区コード`, `f_整理番号`"; | |
| 35 | + | |
| 36 | + // ロットの指定は必須 | |
| 37 | + countQuery += "(`f_ロット番号` = " + EditParam.lotNo + " or `s_ロット番号` = " + EditParam.lotNo + ") "; | |
| 38 | + | |
| 39 | + if (!"".Equals(textBox1.Text)) | |
| 40 | + { | |
| 41 | + countQuery += " and (`f_整理番号` like '%" + textBox1.Text + "%' or `s_整理番号` like '%" + textBox1.Text + "%')"; | |
| 42 | + } | |
| 43 | + | |
| 44 | + if (this.checkBox1.Checked) | |
| 45 | + { | |
| 46 | + countQuery += " and (`f_完了` <> 1 or `s_完了` <> 1)"; | |
| 47 | + } | |
| 48 | + | |
| 49 | + if (this.checkBox2.Checked && this.checkBox3.Checked) | |
| 50 | + { | |
| 51 | + | |
| 52 | + } | |
| 53 | + else | |
| 54 | + { | |
| 55 | + if (this.checkBox2.Checked) | |
| 56 | + { | |
| 57 | + countQuery += " and `f_整理番号` is not null"; | |
| 58 | + } | |
| 59 | + if (this.checkBox3.Checked) | |
| 60 | + { | |
| 61 | + countQuery += " and `s_整理番号` is not null"; | |
| 62 | + } | |
| 63 | + } | |
| 64 | + // 並び順 | |
| 65 | + countQuery += orderby; | |
| 66 | + | |
| 67 | + //ページ設定 | |
| 68 | + MySqlCommand cntCmd = new MySqlCommand(countQuery, readerCon); | |
| 69 | + MySqlDataReader cntreader = cntCmd.ExecuteReader(); | |
| 70 | + int dataCnt = 0; | |
| 71 | + while (cntreader.Read()) | |
| 72 | + { | |
| 73 | + dataCnt = cntreader.GetInt32(0); | |
| 74 | + } | |
| 75 | + cntreader.Close(); | |
| 76 | + | |
| 77 | + maxPageNo = 1; | |
| 78 | + if (dataCnt > 0) | |
| 79 | + { | |
| 80 | + maxPageNo = (dataCnt / PAGEMAX) + ((dataCnt % PAGEMAX == 0) ? 0 : 1); | |
| 81 | + } | |
| 82 | + | |
| 83 | + comboBox1.Items.Clear(); //クリアする | |
| 84 | + for (int i = 0; i < maxPageNo; i++) | |
| 85 | + { | |
| 86 | + comboBox1.Items.Add((i + 1).ToString()); | |
| 87 | + } | |
| 88 | + // 読み取り専用(テキストボックスは編集不可)にする | |
| 89 | + comboBox1.DropDownStyle = ComboBoxStyle.DropDownList; | |
| 90 | + comboBox1.SelectedIndex = 0; // 先頭の項目を選択 | |
| 91 | + currentPageNo = 1; | |
| 92 | + readerCon.Close(); | |
| 93 | + } | |
| 94 | + | |
| 95 | + private void search() | |
| 96 | + { | |
| 97 | + string connstr = System.Configuration.ConfigurationManager.AppSettings["Conn"]; | |
| 98 | + MySqlConnection readerCon = new MySqlConnection(connstr); | |
| 99 | + readerCon.Open(); | |
| 100 | + string readQuery = "select * from page_compare where "; | |
| 101 | + string orderby = " order by `f_行政区コード`, `f_整理番号`"; | |
| 102 | + string pageing = " limit " + PAGEMAX + " offset " + ((currentPageNo - 1) * PAGEMAX); | |
| 103 | + | |
| 104 | + // ロットの指定は必須 | |
| 105 | + readQuery += "(`f_ロット番号` = " + EditParam.lotNo + " or `s_ロット番号` = " + EditParam.lotNo + ") "; | |
| 106 | + | |
| 107 | + if (!"".Equals(textBox1.Text)) | |
| 108 | + { | |
| 109 | + readQuery += " and (`f_整理番号` like '%" + textBox1.Text + "%' or `s_整理番号` like '%" + textBox1.Text + "%')"; | |
| 110 | + } | |
| 111 | + | |
| 112 | + if (this.checkBox1.Checked) | |
| 113 | + { | |
| 114 | + readQuery += " and (`f_完了` <> 1 or `s_完了` <> 1)"; | |
| 115 | + } | |
| 116 | + | |
| 117 | + if (this.checkBox2.Checked && this.checkBox3.Checked) | |
| 118 | + { | |
| 119 | + | |
| 120 | + } | |
| 121 | + else | |
| 122 | + { | |
| 123 | + if (this.checkBox2.Checked) | |
| 124 | + { | |
| 125 | + readQuery += " and `f_整理番号` is not null"; | |
| 126 | + } | |
| 127 | + if (this.checkBox3.Checked) | |
| 128 | + { | |
| 129 | + readQuery += " and `s_整理番号` is not null"; | |
| 130 | + } | |
| 131 | + } | |
| 132 | + // 並び順 | |
| 133 | + readQuery += orderby; | |
| 134 | + | |
| 135 | + //ページ指定 | |
| 136 | + readQuery += pageing; | |
| 137 | + | |
| 138 | + MySqlCommand readCmd = new MySqlCommand(readQuery, readerCon); | |
| 139 | + MySqlDataReader reader = readCmd.ExecuteReader(); | |
| 140 | + | |
| 141 | + this.dataGridView1.Rows.Clear(); | |
| 142 | + //adapter.Fill(ds); | |
| 143 | + while (reader.Read()) | |
| 144 | + { | |
| 145 | + DataGridViewRow row = new DataGridViewRow(); | |
| 146 | + row.CreateCells(this.dataGridView1); | |
| 147 | + row.Cells[0].Value = (this.isDBNull(reader, "s_完了") == "1") ? "一致" : "不一致"; ; | |
| 148 | + this.dataGridView1.Rows.Add(row); | |
| 149 | + foreach (string prefix in new string[2] { "f_", "s_" }) | |
| 150 | + { | |
| 151 | + row.Cells[prefix + "行政区コード"].Value = this.isDBNull(reader, prefix + "行政区コード"); | |
| 152 | + row.Cells[prefix + "整理番号"].Value = this.isDBNull(reader, prefix + "整理番号"); | |
| 153 | + row.Cells[prefix + "世帯番号"].Value = this.isDBNull(reader, prefix + "世帯番号"); | |
| 154 | + row.Cells[prefix + "電話番号"].Value = this.isDBNull(reader, prefix + "電話番号"); | |
| 155 | + row.Cells[prefix + "携帯番号"].Value = this.isDBNull(reader, prefix + "携帯番号"); | |
| 156 | + row.Cells[prefix + "健康診査"].Value = this.isDBNull(reader, prefix + "健康診査"); | |
| 157 | + row.Cells[prefix + "結核肺がん"].Value = this.isDBNull(reader, prefix + "結核肺がん"); | |
| 158 | + row.Cells[prefix + "胃がん"].Value = this.isDBNull(reader, prefix + "胃がん"); | |
| 159 | + row.Cells[prefix + "大腸がん"].Value = this.isDBNull(reader, prefix + "大腸がん"); | |
| 160 | + row.Cells[prefix + "前立腺がん"].Value = this.isDBNull(reader, prefix + "前立腺がん"); | |
| 161 | + row.Cells[prefix + "骨粗鬆症"].Value = this.isDBNull(reader, prefix + "骨粗鬆症"); | |
| 162 | + row.Cells[prefix + "成人歯科"].Value = this.isDBNull(reader, prefix + "成人歯科"); | |
| 163 | + row.Cells[prefix + "子宮頸がん"].Value = this.isDBNull(reader, prefix + "子宮頸がん"); | |
| 164 | + row.Cells[prefix + "乳がん"].Value = this.isDBNull(reader, prefix + "乳がん"); | |
| 165 | + row.Cells[prefix + "希望場所"].Value = this.isDBNull(reader, prefix + "希望場所"); | |
| 166 | + row.Cells[prefix + "身体不自由"].Value = this.isDBNull(reader, prefix + "身体不自由"); | |
| 167 | + } | |
| 168 | + if (!row.Cells["f_整理番号"].Value.ToString().Equals(row.Cells["s_整理番号"].Value.ToString())) | |
| 169 | + { | |
| 170 | + row.Cells["f_整理番号"].Style.BackColor = Color.Pink; | |
| 171 | + row.Cells["s_整理番号"].Style.BackColor = Color.Pink; | |
| 172 | + } | |
| 173 | + if (!row.Cells["f_世帯番号"].Value.ToString().Equals(row.Cells["s_世帯番号"].Value.ToString())) | |
| 174 | + { | |
| 175 | + row.Cells["f_世帯番号"].Style.BackColor = Color.Pink; | |
| 176 | + row.Cells["s_世帯番号"].Style.BackColor = Color.Pink; | |
| 177 | + } | |
| 178 | + if (!row.Cells["f_電話番号"].Value.ToString().Equals(row.Cells["s_電話番号"].Value.ToString())) | |
| 179 | + { | |
| 180 | + row.Cells["f_電話番号"].Style.BackColor = Color.Pink; | |
| 181 | + row.Cells["s_電話番号"].Style.BackColor = Color.Pink; | |
| 182 | + } | |
| 183 | + if (!row.Cells["f_携帯番号"].Value.ToString().Equals(row.Cells["s_携帯番号"].Value.ToString())) | |
| 184 | + { | |
| 185 | + row.Cells["f_携帯番号"].Style.BackColor = Color.Pink; | |
| 186 | + row.Cells["s_携帯番号"].Style.BackColor = Color.Pink; | |
| 187 | + } | |
| 188 | + if (!row.Cells["f_健康診査"].Value.ToString().Equals(row.Cells["s_健康診査"].Value.ToString())) | |
| 189 | + { | |
| 190 | + row.Cells["f_健康診査"].Style.BackColor = Color.Pink; | |
| 191 | + row.Cells["s_健康診査"].Style.BackColor = Color.Pink; | |
| 192 | + } | |
| 193 | + if (!row.Cells["f_結核肺がん"].Value.ToString().Equals(row.Cells["s_結核肺がん"].Value.ToString())) | |
| 194 | + { | |
| 195 | + row.Cells["f_結核肺がん"].Style.BackColor = Color.Pink; | |
| 196 | + row.Cells["s_結核肺がん"].Style.BackColor = Color.Pink; | |
| 197 | + } | |
| 198 | + if (!row.Cells["f_胃がん"].Value.ToString().Equals(row.Cells["s_胃がん"].Value.ToString())) | |
| 199 | + { | |
| 200 | + row.Cells["f_胃がん"].Style.BackColor = Color.Pink; | |
| 201 | + row.Cells["s_胃がん"].Style.BackColor = Color.Pink; | |
| 202 | + } | |
| 203 | + if (!row.Cells["f_大腸がん"].Value.ToString().Equals(row.Cells["s_大腸がん"].Value.ToString())) | |
| 204 | + { | |
| 205 | + row.Cells["f_大腸がん"].Style.BackColor = Color.Pink; | |
| 206 | + row.Cells["s_大腸がん"].Style.BackColor = Color.Pink; | |
| 207 | + } | |
| 208 | + if (!row.Cells["f_前立腺がん"].Value.ToString().Equals(row.Cells["s_前立腺がん"].Value.ToString())) | |
| 209 | + { | |
| 210 | + row.Cells["f_前立腺がん"].Style.BackColor = Color.Pink; | |
| 211 | + row.Cells["s_前立腺がん"].Style.BackColor = Color.Pink; | |
| 212 | + } | |
| 213 | + if (!row.Cells["f_骨粗鬆症"].Value.ToString().Equals(row.Cells["s_骨粗鬆症"].Value.ToString())) | |
| 214 | + { | |
| 215 | + row.Cells["f_骨粗鬆症"].Style.BackColor = Color.Pink; | |
| 216 | + row.Cells["s_骨粗鬆症"].Style.BackColor = Color.Pink; | |
| 217 | + } | |
| 218 | + if (!row.Cells["f_成人歯科"].Value.ToString().Equals(row.Cells["s_成人歯科"].Value.ToString())) | |
| 219 | + { | |
| 220 | + row.Cells["f_成人歯科"].Style.BackColor = Color.Pink; | |
| 221 | + row.Cells["s_成人歯科"].Style.BackColor = Color.Pink; | |
| 222 | + } | |
| 223 | + if (!row.Cells["f_子宮頸がん"].Value.ToString().Equals(row.Cells["s_子宮頸がん"].Value.ToString())) | |
| 224 | + { | |
| 225 | + row.Cells["f_子宮頸がん"].Style.BackColor = Color.Pink; | |
| 226 | + row.Cells["s_子宮頸がん"].Style.BackColor = Color.Pink; | |
| 227 | + } | |
| 228 | + if (!row.Cells["f_乳がん"].Value.ToString().Equals(row.Cells["s_乳がん"].Value.ToString())) | |
| 229 | + { | |
| 230 | + row.Cells["f_乳がん"].Style.BackColor = Color.Pink; | |
| 231 | + row.Cells["s_乳がん"].Style.BackColor = Color.Pink; | |
| 232 | + } | |
| 233 | + if (!row.Cells["f_希望場所"].Value.ToString().Equals(row.Cells["s_希望場所"].Value.ToString())) | |
| 234 | + { | |
| 235 | + row.Cells["f_希望場所"].Style.BackColor = Color.Pink; | |
| 236 | + row.Cells["s_希望場所"].Style.BackColor = Color.Pink; | |
| 237 | + } | |
| 238 | + if (!row.Cells["f_身体不自由"].Value.ToString().Equals(row.Cells["s_身体不自由"].Value.ToString())) | |
| 239 | + { | |
| 240 | + row.Cells["f_身体不自由"].Style.BackColor = Color.Pink; | |
| 241 | + row.Cells["s_身体不自由"].Style.BackColor = Color.Pink; | |
| 242 | + } | |
| 243 | + } | |
| 244 | + readerCon.Close(); | |
| 245 | + | |
| 246 | + readerCon.Open(); | |
| 247 | + MySqlCommand countCmd = new MySqlCommand("select count(`完了`) as cnt from `2回目` where `完了` = 1 and `ロット番号` = " + EditParam.lotNo, readerCon); | |
| 248 | + MySqlDataReader countReader = countCmd.ExecuteReader(); | |
| 249 | + | |
| 250 | + while (countReader.Read()) | |
| 251 | + { | |
| 252 | + this.label2.Text = countReader.GetString("cnt"); | |
| 253 | + } | |
| 254 | + countReader.Close(); | |
| 255 | + readerCon.Close(); | |
| 256 | + | |
| 257 | + } | |
| 258 | + | |
| 259 | + private string isDBNull(MySqlDataReader reader, string column) | |
| 260 | + { | |
| 261 | + int index = reader.GetOrdinal(column); | |
| 262 | + if (reader.IsDBNull(index)) | |
| 263 | + { | |
| 264 | + return ""; | |
| 265 | + } | |
| 266 | + else | |
| 267 | + { | |
| 268 | + return reader.GetString(column); | |
| 269 | + } | |
| 270 | + } | |
| 271 | + | |
| 272 | + //検索 | |
| 273 | + private void button1_Click(object sender, EventArgs e) | |
| 274 | + { | |
| 275 | + this.setPage(); | |
| 276 | + this.search(); | |
| 277 | + } | |
| 278 | + | |
| 279 | + } | |
| 280 | +} | ... | ... |
MedicalCheckInputTool/Form3.resx
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<root> | |
| 3 | + <!-- | |
| 4 | + Microsoft ResX Schema | |
| 5 | + | |
| 6 | + Version 2.0 | |
| 7 | + | |
| 8 | + The primary goals of this format is to allow a simple XML format | |
| 9 | + that is mostly human readable. The generation and parsing of the | |
| 10 | + various data types are done through the TypeConverter classes | |
| 11 | + associated with the data types. | |
| 12 | + | |
| 13 | + Example: | |
| 14 | + | |
| 15 | + ... ado.net/XML headers & schema ... | |
| 16 | + <resheader name="resmimetype">text/microsoft-resx</resheader> | |
| 17 | + <resheader name="version">2.0</resheader> | |
| 18 | + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | |
| 19 | + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | |
| 20 | + <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | |
| 21 | + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | |
| 22 | + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | |
| 23 | + <value>[base64 mime encoded serialized .NET Framework object]</value> | |
| 24 | + </data> | |
| 25 | + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |
| 26 | + <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | |
| 27 | + <comment>This is a comment</comment> | |
| 28 | + </data> | |
| 29 | + | |
| 30 | + There are any number of "resheader" rows that contain simple | |
| 31 | + name/value pairs. | |
| 32 | + | |
| 33 | + Each data row contains a name, and value. The row also contains a | |
| 34 | + type or mimetype. Type corresponds to a .NET class that support | |
| 35 | + text/value conversion through the TypeConverter architecture. | |
| 36 | + Classes that don't support this are serialized and stored with the | |
| 37 | + mimetype set. | |
| 38 | + | |
| 39 | + The mimetype is used for serialized objects, and tells the | |
| 40 | + ResXResourceReader how to depersist the object. This is currently not | |
| 41 | + extensible. For a given mimetype the value must be set accordingly: | |
| 42 | + | |
| 43 | + Note - application/x-microsoft.net.object.binary.base64 is the format | |
| 44 | + that the ResXResourceWriter will generate, however the reader can | |
| 45 | + read any of the formats listed below. | |
| 46 | + | |
| 47 | + mimetype: application/x-microsoft.net.object.binary.base64 | |
| 48 | + value : The object must be serialized with | |
| 49 | + : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | |
| 50 | + : and then encoded with base64 encoding. | |
| 51 | + | |
| 52 | + mimetype: application/x-microsoft.net.object.soap.base64 | |
| 53 | + value : The object must be serialized with | |
| 54 | + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter | |
| 55 | + : and then encoded with base64 encoding. | |
| 56 | + | |
| 57 | + mimetype: application/x-microsoft.net.object.bytearray.base64 | |
| 58 | + value : The object must be serialized into a byte array | |
| 59 | + : using a System.ComponentModel.TypeConverter | |
| 60 | + : and then encoded with base64 encoding. | |
| 61 | + --> | |
| 62 | + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | |
| 63 | + <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | |
| 64 | + <xsd:element name="root" msdata:IsDataSet="true"> | |
| 65 | + <xsd:complexType> | |
| 66 | + <xsd:choice maxOccurs="unbounded"> | |
| 67 | + <xsd:element name="metadata"> | |
| 68 | + <xsd:complexType> | |
| 69 | + <xsd:sequence> | |
| 70 | + <xsd:element name="value" type="xsd:string" minOccurs="0" /> | |
| 71 | + </xsd:sequence> | |
| 72 | + <xsd:attribute name="name" use="required" type="xsd:string" /> | |
| 73 | + <xsd:attribute name="type" type="xsd:string" /> | |
| 74 | + <xsd:attribute name="mimetype" type="xsd:string" /> | |
| 75 | + <xsd:attribute ref="xml:space" /> | |
| 76 | + </xsd:complexType> | |
| 77 | + </xsd:element> | |
| 78 | + <xsd:element name="assembly"> | |
| 79 | + <xsd:complexType> | |
| 80 | + <xsd:attribute name="alias" type="xsd:string" /> | |
| 81 | + <xsd:attribute name="name" type="xsd:string" /> | |
| 82 | + </xsd:complexType> | |
| 83 | + </xsd:element> | |
| 84 | + <xsd:element name="data"> | |
| 85 | + <xsd:complexType> | |
| 86 | + <xsd:sequence> | |
| 87 | + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |
| 88 | + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | |
| 89 | + </xsd:sequence> | |
| 90 | + <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | |
| 91 | + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | |
| 92 | + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | |
| 93 | + <xsd:attribute ref="xml:space" /> | |
| 94 | + </xsd:complexType> | |
| 95 | + </xsd:element> | |
| 96 | + <xsd:element name="resheader"> | |
| 97 | + <xsd:complexType> | |
| 98 | + <xsd:sequence> | |
| 99 | + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |
| 100 | + </xsd:sequence> | |
| 101 | + <xsd:attribute name="name" type="xsd:string" use="required" /> | |
| 102 | + </xsd:complexType> | |
| 103 | + </xsd:element> | |
| 104 | + </xsd:choice> | |
| 105 | + </xsd:complexType> | |
| 106 | + </xsd:element> | |
| 107 | + </xsd:schema> | |
| 108 | + <resheader name="resmimetype"> | |
| 109 | + <value>text/microsoft-resx</value> | |
| 110 | + </resheader> | |
| 111 | + <resheader name="version"> | |
| 112 | + <value>2.0</value> | |
| 113 | + </resheader> | |
| 114 | + <resheader name="reader"> | |
| 115 | + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |
| 116 | + </resheader> | |
| 117 | + <resheader name="writer"> | |
| 118 | + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |
| 119 | + </resheader> | |
| 120 | + <metadata name="状況.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |
| 121 | + <value>True</value> | |
| 122 | + </metadata> | |
| 123 | + <metadata name="編集1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |
| 124 | + <value>True</value> | |
| 125 | + </metadata> | |
| 126 | + <metadata name="f_行政区コード.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |
| 127 | + <value>True</value> | |
| 128 | + </metadata> | |
| 129 | + <metadata name="f_整理番号.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |
| 130 | + <value>True</value> | |
| 131 | + </metadata> | |
| 132 | + <metadata name="f_世帯番号.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |
| 133 | + <value>True</value> | |
| 134 | + </metadata> | |
| 135 | + <metadata name="f_電話番号.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |
| 136 | + <value>True</value> | |
| 137 | + </metadata> | |
| 138 | + <metadata name="f_携帯番号.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |
| 139 | + <value>True</value> | |
| 140 | + </metadata> | |
| 141 | + <metadata name="f_健康診査.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |
| 142 | + <value>True</value> | |
| 143 | + </metadata> | |
| 144 | + <metadata name="f_結核肺がん.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |
| 145 | + <value>True</value> | |
| 146 | + </metadata> | |
| 147 | + <metadata name="f_胃がん.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |
| 148 | + <value>True</value> | |
| 149 | + </metadata> | |
| 150 | + <metadata name="f_大腸がん.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |
| 151 | + <value>True</value> | |
| 152 | + </metadata> | |
| 153 | + <metadata name="f_前立腺がん.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |
| 154 | + <value>True</value> | |
| 155 | + </metadata> | |
| 156 | + <metadata name="f_骨粗鬆症.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |
| 157 | + <value>True</value> | |
| 158 | + </metadata> | |
| 159 | + <metadata name="f_成人歯科.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |
| 160 | + <value>True</value> | |
| 161 | + </metadata> | |
| 162 | + <metadata name="f_子宮頸がん.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |
| 163 | + <value>True</value> | |
| 164 | + </metadata> | |
| 165 | + <metadata name="f_乳がん.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |
| 166 | + <value>True</value> | |
| 167 | + </metadata> | |
| 168 | + <metadata name="f_希望場所.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |
| 169 | + <value>True</value> | |
| 170 | + </metadata> | |
| 171 | + <metadata name="f_身体不自由.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |
| 172 | + <value>True</value> | |
| 173 | + </metadata> | |
| 174 | + <metadata name="編集2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |
| 175 | + <value>True</value> | |
| 176 | + </metadata> | |
| 177 | + <metadata name="s_行政区コード.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |
| 178 | + <value>True</value> | |
| 179 | + </metadata> | |
| 180 | + <metadata name="s_整理番号.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |
| 181 | + <value>True</value> | |
| 182 | + </metadata> | |
| 183 | + <metadata name="s_世帯番号.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |
| 184 | + <value>True</value> | |
| 185 | + </metadata> | |
| 186 | + <metadata name="s_電話番号.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |
| 187 | + <value>True</value> | |
| 188 | + </metadata> | |
| 189 | + <metadata name="s_携帯番号.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |
| 190 | + <value>True</value> | |
| 191 | + </metadata> | |
| 192 | + <metadata name="s_健康診査.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |
| 193 | + <value>True</value> | |
| 194 | + </metadata> | |
| 195 | + <metadata name="s_結核肺がん.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |
| 196 | + <value>True</value> | |
| 197 | + </metadata> | |
| 198 | + <metadata name="s_胃がん.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |
| 199 | + <value>True</value> | |
| 200 | + </metadata> | |
| 201 | + <metadata name="s_大腸がん.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |
| 202 | + <value>True</value> | |
| 203 | + </metadata> | |
| 204 | + <metadata name="s_前立腺がん.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |
| 205 | + <value>True</value> | |
| 206 | + </metadata> | |
| 207 | + <metadata name="s_骨粗鬆症.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |
| 208 | + <value>True</value> | |
| 209 | + </metadata> | |
| 210 | + <metadata name="s_成人歯科.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |
| 211 | + <value>True</value> | |
| 212 | + </metadata> | |
| 213 | + <metadata name="s_子宮頸がん.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |
| 214 | + <value>True</value> | |
| 215 | + </metadata> | |
| 216 | + <metadata name="s_乳がん.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |
| 217 | + <value>True</value> | |
| 218 | + </metadata> | |
| 219 | + <metadata name="s_希望場所.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |
| 220 | + <value>True</value> | |
| 221 | + </metadata> | |
| 222 | + <metadata name="s_身体不自由.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |
| 223 | + <value>True</value> | |
| 224 | + </metadata> | |
| 225 | +</root> | |
| \ No newline at end of file | ... | ... |
| ... | ... | @@ -63,6 +63,12 @@ |
| 63 | 63 | <Compile Include="Form2.Designer.cs"> |
| 64 | 64 | <DependentUpon>Form2.cs</DependentUpon> |
| 65 | 65 | </Compile> |
| 66 | + <Compile Include="Form3.cs"> | |
| 67 | + <SubType>Form</SubType> | |
| 68 | + </Compile> | |
| 69 | + <Compile Include="Form3.Designer.cs"> | |
| 70 | + <DependentUpon>Form3.cs</DependentUpon> | |
| 71 | + </Compile> | |
| 66 | 72 | <Compile Include="Global.cs" /> |
| 67 | 73 | <Compile Include="Program.cs" /> |
| 68 | 74 | <Compile Include="Properties\AssemblyInfo.cs" /> |
| ... | ... | @@ -73,6 +79,9 @@ |
| 73 | 79 | <EmbeddedResource Include="Form2.resx"> |
| 74 | 80 | <DependentUpon>Form2.cs</DependentUpon> |
| 75 | 81 | </EmbeddedResource> |
| 82 | + <EmbeddedResource Include="Form3.resx"> | |
| 83 | + <DependentUpon>Form3.cs</DependentUpon> | |
| 84 | + </EmbeddedResource> | |
| 76 | 85 | <EmbeddedResource Include="Properties\Resources.resx"> |
| 77 | 86 | <Generator>ResXFileCodeGenerator</Generator> |
| 78 | 87 | <LastGenOutput>Resources.Designer.cs</LastGenOutput> | ... | ... |
Please
register
or
login
to post a comment