Commit 2935c554637cc1acea5bbc1c341428c188b386b4

Authored by r-ujihara
0 parents

初回登録

  1 +
  2 +Microsoft Visual Studio Solution File, Format Version 12.00
  3 +# Visual Studio 2013
  4 +VisualStudioVersion = 12.0.40629.0
  5 +MinimumVisualStudioVersion = 10.0.40219.1
  6 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MedicalCheckInputTool", "MedicalCheckInputTool\MedicalCheckInputTool.csproj", "{A86BDC88-F890-495A-ADE5-7193C0019FBD}"
  7 +EndProject
  8 +Global
  9 + GlobalSection(SolutionConfigurationPlatforms) = preSolution
  10 + Debug|Any CPU = Debug|Any CPU
  11 + Release|Any CPU = Release|Any CPU
  12 + EndGlobalSection
  13 + GlobalSection(ProjectConfigurationPlatforms) = postSolution
  14 + {A86BDC88-F890-495A-ADE5-7193C0019FBD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
  15 + {A86BDC88-F890-495A-ADE5-7193C0019FBD}.Debug|Any CPU.Build.0 = Debug|Any CPU
  16 + {A86BDC88-F890-495A-ADE5-7193C0019FBD}.Release|Any CPU.ActiveCfg = Release|Any CPU
  17 + {A86BDC88-F890-495A-ADE5-7193C0019FBD}.Release|Any CPU.Build.0 = Release|Any CPU
  18 + EndGlobalSection
  19 + GlobalSection(SolutionProperties) = preSolution
  20 + HideSolutionNode = FALSE
  21 + EndGlobalSection
  22 +EndGlobal
  1 +<?xml version="1.0" encoding="utf-8" ?>
  2 +<configuration>
  3 + <startup>
  4 + <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
  5 + </startup>
  6 + <appSettings>
  7 + <add key="InputUser" value="AA,BB,CC" />
  8 + <add key="LotNo" value="1,2,3,4,5,6" />
  9 + <!---<add key="Conn" value="Data Source=192.168.0.101;Database=assets;User ID=root;password=root" />-->
  10 + <add key="Conn" value="Data Source=localhost;Database=medical;User ID=medicaluser;password=medical!user" />
  11 + </appSettings>
  12 +</configuration>
  1 +namespace MedicalCheckInputTool
  2 +{
  3 + partial class Form1
  4 + {
  5 + /// <summary>
  6 + /// 必要なデザイナー変数です。
  7 + /// </summary>
  8 + private System.ComponentModel.IContainer components = null;
  9 +
  10 + /// <summary>
  11 + /// 使用中のリソースをすべてクリーンアップします。
  12 + /// </summary>
  13 + /// <param name="disposing">マネージ リソースが破棄される場合 true、破棄されない場合は 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 フォーム デザイナーで生成されたコード
  24 +
  25 + /// <summary>
  26 + /// デザイナー サポートに必要なメソッドです。このメソッドの内容を
  27 + /// コード エディターで変更しないでください。
  28 + /// </summary>
  29 + private void InitializeComponent()
  30 + {
  31 + this.comboBox1 = new System.Windows.Forms.ComboBox();
  32 + this.comboBox2 = new System.Windows.Forms.ComboBox();
  33 + this.comboBox3 = new System.Windows.Forms.ComboBox();
  34 + this.label1 = new System.Windows.Forms.Label();
  35 + this.label2 = new System.Windows.Forms.Label();
  36 + this.label3 = new System.Windows.Forms.Label();
  37 + this.button1 = new System.Windows.Forms.Button();
  38 + this.button2 = new System.Windows.Forms.Button();
  39 + this.SuspendLayout();
  40 + //
  41 + // comboBox1
  42 + //
  43 + this.comboBox1.FormattingEnabled = true;
  44 + this.comboBox1.Location = new System.Drawing.Point(96, 27);
  45 + this.comboBox1.Name = "comboBox1";
  46 + this.comboBox1.Size = new System.Drawing.Size(121, 20);
  47 + this.comboBox1.TabIndex = 0;
  48 + //
  49 + // comboBox2
  50 + //
  51 + this.comboBox2.FormattingEnabled = true;
  52 + this.comboBox2.Location = new System.Drawing.Point(96, 77);
  53 + this.comboBox2.Name = "comboBox2";
  54 + this.comboBox2.Size = new System.Drawing.Size(121, 20);
  55 + this.comboBox2.TabIndex = 1;
  56 + //
  57 + // comboBox3
  58 + //
  59 + this.comboBox3.FormattingEnabled = true;
  60 + this.comboBox3.Location = new System.Drawing.Point(96, 128);
  61 + this.comboBox3.Name = "comboBox3";
  62 + this.comboBox3.Size = new System.Drawing.Size(121, 20);
  63 + this.comboBox3.TabIndex = 2;
  64 + //
  65 + // label1
  66 + //
  67 + this.label1.AutoSize = true;
  68 + this.label1.Location = new System.Drawing.Point(13, 30);
  69 + this.label1.Name = "label1";
  70 + this.label1.Size = new System.Drawing.Size(41, 12);
  71 + this.label1.TabIndex = 3;
  72 + this.label1.Text = "入力者";
  73 + //
  74 + // label2
  75 + //
  76 + this.label2.AutoSize = true;
  77 + this.label2.Location = new System.Drawing.Point(12, 80);
  78 + this.label2.Name = "label2";
  79 + this.label2.Size = new System.Drawing.Size(53, 12);
  80 + this.label2.TabIndex = 4;
  81 + this.label2.Text = "ロット番号";
  82 + //
  83 + // label3
  84 + //
  85 + this.label3.AutoSize = true;
  86 + this.label3.Location = new System.Drawing.Point(9, 131);
  87 + this.label3.Name = "label3";
  88 + this.label3.Size = new System.Drawing.Size(81, 12);
  89 + this.label3.TabIndex = 5;
  90 + this.label3.Text = "1回目/2回目";
  91 + //
  92 + // button1
  93 + //
  94 + this.button1.Location = new System.Drawing.Point(15, 191);
  95 + this.button1.Name = "button1";
  96 + this.button1.Size = new System.Drawing.Size(105, 58);
  97 + this.button1.TabIndex = 6;
  98 + this.button1.Text = "入力";
  99 + this.button1.UseVisualStyleBackColor = true;
  100 + this.button1.Click += new System.EventHandler(this.button1_Click);
  101 + //
  102 + // button2
  103 + //
  104 + this.button2.Location = new System.Drawing.Point(167, 191);
  105 + this.button2.Name = "button2";
  106 + this.button2.Size = new System.Drawing.Size(105, 58);
  107 + this.button2.TabIndex = 7;
  108 + this.button2.Text = "修正";
  109 + this.button2.UseVisualStyleBackColor = true;
  110 + //
  111 + // Form1
  112 + //
  113 + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
  114 + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
  115 + this.ClientSize = new System.Drawing.Size(284, 261);
  116 + this.Controls.Add(this.button2);
  117 + this.Controls.Add(this.button1);
  118 + this.Controls.Add(this.label3);
  119 + this.Controls.Add(this.label2);
  120 + this.Controls.Add(this.label1);
  121 + this.Controls.Add(this.comboBox3);
  122 + this.Controls.Add(this.comboBox2);
  123 + this.Controls.Add(this.comboBox1);
  124 + this.Name = "Form1";
  125 + this.Text = "Form1";
  126 + this.ResumeLayout(false);
  127 + this.PerformLayout();
  128 +
  129 + }
  130 +
  131 + #endregion
  132 +
  133 + private System.Windows.Forms.ComboBox comboBox1;
  134 + private System.Windows.Forms.ComboBox comboBox2;
  135 + private System.Windows.Forms.ComboBox comboBox3;
  136 + private System.Windows.Forms.Label label1;
  137 + private System.Windows.Forms.Label label2;
  138 + private System.Windows.Forms.Label label3;
  139 + private System.Windows.Forms.Button button1;
  140 + private System.Windows.Forms.Button button2;
  141 + }
  142 +}
  143 +
  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 +
  11 +namespace MedicalCheckInputTool
  12 +{
  13 + public partial class Form1 : Form
  14 + {
  15 + public Form1()
  16 + {
  17 + InitializeComponent();
  18 +
  19 + this.Text = "検診申込データ入力";
  20 +
  21 + //画面初期化
  22 + string usersString = System.Configuration.ConfigurationManager.AppSettings["InputUser"];
  23 + if (usersString != null)
  24 + {
  25 + string[] users = usersString.Split(',');
  26 + comboBox1.Items.Add("");
  27 + foreach (string user in users)
  28 + {
  29 + comboBox1.Items.Add(user);
  30 + }
  31 +
  32 +
  33 + // 読み取り専用(テキストボックスは編集不可)にする
  34 + comboBox1.DropDownStyle = ComboBoxStyle.DropDownList;
  35 +
  36 + comboBox1.SelectedIndex = 0; // 先頭の項目を選択
  37 + }
  38 +
  39 + string lotString = System.Configuration.ConfigurationManager.AppSettings["LotNo"];
  40 + if (lotString != null)
  41 + {
  42 + string[] lots = lotString.Split(',');
  43 + comboBox2.Items.Add("");
  44 + foreach (string lot in lots)
  45 + {
  46 + comboBox2.Items.Add(lot);
  47 + }
  48 +
  49 +
  50 + // 読み取り専用(テキストボックスは編集不可)にする
  51 + comboBox2.DropDownStyle = ComboBoxStyle.DropDownList;
  52 +
  53 + comboBox2.SelectedIndex = 0; // 先頭の項目を選択
  54 + }
  55 +
  56 + comboBox3.Items.Add("");
  57 + comboBox3.Items.Add("1回目");
  58 + comboBox3.Items.Add("2回目");
  59 + // 読み取り専用(テキストボックスは編集不可)にする
  60 + comboBox3.DropDownStyle = ComboBoxStyle.DropDownList;
  61 + comboBox3.SelectedIndex = 0; // 先頭の項目を選択
  62 +
  63 + }
  64 +
  65 + private void button1_Click(object sender, EventArgs e)
  66 + {
  67 + if ("".Equals(comboBox1.SelectedItem.ToString()))
  68 + {
  69 + MessageBox.Show("入力者を選択してください");
  70 + return;
  71 + }
  72 + if ("".Equals(comboBox2.SelectedItem.ToString()))
  73 + {
  74 + MessageBox.Show("ロットを選択してください");
  75 + return;
  76 + }
  77 + if ("".Equals(comboBox3.SelectedItem.ToString()))
  78 + {
  79 + MessageBox.Show("回数を選択してください");
  80 + return;
  81 + }
  82 + Global.inputUser = comboBox1.SelectedItem.ToString();
  83 + Global.lotNo = comboBox2.SelectedItem.ToString();
  84 + Global.times = comboBox3.SelectedItem.ToString();
  85 +
  86 + Form2 frm = new Form2();
  87 + frm.ShowDialog();
  88 + frm.Dispose();
  89 +
  90 + }
  91 + }
  92 +}
  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 +</root>
  1 +namespace MedicalCheckInputTool
  2 +{
  3 + partial class Form2
  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.label2 = new System.Windows.Forms.Label();
  34 + this.textBox2 = new System.Windows.Forms.TextBox();
  35 + this.label3 = new System.Windows.Forms.Label();
  36 + this.textBox3 = new System.Windows.Forms.TextBox();
  37 + this.label4 = new System.Windows.Forms.Label();
  38 + this.label5 = new System.Windows.Forms.Label();
  39 + this.textBox4 = new System.Windows.Forms.TextBox();
  40 + this.textBox5 = new System.Windows.Forms.TextBox();
  41 + this.label6 = new System.Windows.Forms.Label();
  42 + this.label7 = new System.Windows.Forms.Label();
  43 + this.textBox6 = new System.Windows.Forms.TextBox();
  44 + this.label8 = new System.Windows.Forms.Label();
  45 + this.textBox7 = new System.Windows.Forms.TextBox();
  46 + this.label9 = new System.Windows.Forms.Label();
  47 + this.label10 = new System.Windows.Forms.Label();
  48 + this.label11 = new System.Windows.Forms.Label();
  49 + this.label12 = new System.Windows.Forms.Label();
  50 + this.label13 = new System.Windows.Forms.Label();
  51 + this.label14 = new System.Windows.Forms.Label();
  52 + this.label15 = new System.Windows.Forms.Label();
  53 + this.textBox8 = new System.Windows.Forms.TextBox();
  54 + this.textBox9 = new System.Windows.Forms.TextBox();
  55 + this.textBox10 = new System.Windows.Forms.TextBox();
  56 + this.textBox11 = new System.Windows.Forms.TextBox();
  57 + this.textBox12 = new System.Windows.Forms.TextBox();
  58 + this.textBox13 = new System.Windows.Forms.TextBox();
  59 + this.textBox14 = new System.Windows.Forms.TextBox();
  60 + this.label16 = new System.Windows.Forms.Label();
  61 + this.label17 = new System.Windows.Forms.Label();
  62 + this.label18 = new System.Windows.Forms.Label();
  63 + this.textBox15 = new System.Windows.Forms.TextBox();
  64 + this.textBox16 = new System.Windows.Forms.TextBox();
  65 + this.button1 = new System.Windows.Forms.Button();
  66 + this.button2 = new System.Windows.Forms.Button();
  67 + this.button3 = new System.Windows.Forms.Button();
  68 + this.button4 = new System.Windows.Forms.Button();
  69 + this.SuspendLayout();
  70 + //
  71 + // textBox1
  72 + //
  73 + this.textBox1.ImeMode = System.Windows.Forms.ImeMode.Off;
  74 + this.textBox1.Location = new System.Drawing.Point(105, 12);
  75 + this.textBox1.MaxLength = 10;
  76 + this.textBox1.Name = "textBox1";
  77 + this.textBox1.Size = new System.Drawing.Size(100, 19);
  78 + this.textBox1.TabIndex = 0;
  79 + //
  80 + // label1
  81 + //
  82 + this.label1.AutoSize = true;
  83 + this.label1.Location = new System.Drawing.Point(32, 15);
  84 + this.label1.Name = "label1";
  85 + this.label1.Size = new System.Drawing.Size(53, 12);
  86 + this.label1.TabIndex = 1;
  87 + this.label1.Text = "整理番号";
  88 + //
  89 + // label2
  90 + //
  91 + this.label2.AutoSize = true;
  92 + this.label2.Location = new System.Drawing.Point(32, 40);
  93 + this.label2.Name = "label2";
  94 + this.label2.Size = new System.Drawing.Size(53, 12);
  95 + this.label2.TabIndex = 2;
  96 + this.label2.Text = "世帯番号";
  97 + //
  98 + // textBox2
  99 + //
  100 + this.textBox2.ImeMode = System.Windows.Forms.ImeMode.Off;
  101 + this.textBox2.Location = new System.Drawing.Point(105, 37);
  102 + this.textBox2.MaxLength = 10;
  103 + this.textBox2.Name = "textBox2";
  104 + this.textBox2.Size = new System.Drawing.Size(100, 19);
  105 + this.textBox2.TabIndex = 3;
  106 + //
  107 + // label3
  108 + //
  109 + this.label3.AutoSize = true;
  110 + this.label3.Location = new System.Drawing.Point(20, 65);
  111 + this.label3.Name = "label3";
  112 + this.label3.Size = new System.Drawing.Size(65, 12);
  113 + this.label3.TabIndex = 4;
  114 + this.label3.Text = "行政区番号";
  115 + //
  116 + // textBox3
  117 + //
  118 + this.textBox3.ImeMode = System.Windows.Forms.ImeMode.Off;
  119 + this.textBox3.Location = new System.Drawing.Point(105, 62);
  120 + this.textBox3.MaxLength = 6;
  121 + this.textBox3.Name = "textBox3";
  122 + this.textBox3.Size = new System.Drawing.Size(100, 19);
  123 + this.textBox3.TabIndex = 5;
  124 + //
  125 + // label4
  126 + //
  127 + this.label4.AutoSize = true;
  128 + this.label4.Location = new System.Drawing.Point(56, 90);
  129 + this.label4.Name = "label4";
  130 + this.label4.Size = new System.Drawing.Size(29, 12);
  131 + this.label4.TabIndex = 6;
  132 + this.label4.Text = "電話";
  133 + //
  134 + // label5
  135 + //
  136 + this.label5.AutoSize = true;
  137 + this.label5.Location = new System.Drawing.Point(56, 115);
  138 + this.label5.Name = "label5";
  139 + this.label5.Size = new System.Drawing.Size(29, 12);
  140 + this.label5.TabIndex = 7;
  141 + this.label5.Text = "携帯";
  142 + //
  143 + // textBox4
  144 + //
  145 + this.textBox4.ImeMode = System.Windows.Forms.ImeMode.Off;
  146 + this.textBox4.Location = new System.Drawing.Point(105, 87);
  147 + this.textBox4.MaxLength = 15;
  148 + this.textBox4.Name = "textBox4";
  149 + this.textBox4.Size = new System.Drawing.Size(100, 19);
  150 + this.textBox4.TabIndex = 8;
  151 + //
  152 + // textBox5
  153 + //
  154 + this.textBox5.ImeMode = System.Windows.Forms.ImeMode.Off;
  155 + this.textBox5.Location = new System.Drawing.Point(105, 112);
  156 + this.textBox5.MaxLength = 15;
  157 + this.textBox5.Name = "textBox5";
  158 + this.textBox5.Size = new System.Drawing.Size(100, 19);
  159 + this.textBox5.TabIndex = 9;
  160 + //
  161 + // label6
  162 + //
  163 + this.label6.AutoSize = true;
  164 + this.label6.ForeColor = System.Drawing.SystemColors.ActiveBorder;
  165 + this.label6.Location = new System.Drawing.Point(12, 134);
  166 + this.label6.Name = "label6";
  167 + this.label6.Size = new System.Drawing.Size(269, 12);
  168 + this.label6.TabIndex = 10;
  169 + this.label6.Text = "――――――――――――――――――――――";
  170 + //
  171 + // label7
  172 + //
  173 + this.label7.AutoSize = true;
  174 + this.label7.Location = new System.Drawing.Point(32, 152);
  175 + this.label7.Name = "label7";
  176 + this.label7.Size = new System.Drawing.Size(53, 12);
  177 + this.label7.TabIndex = 11;
  178 + this.label7.Text = "健康診査";
  179 + //
  180 + // textBox6
  181 + //
  182 + this.textBox6.ImeMode = System.Windows.Forms.ImeMode.Off;
  183 + this.textBox6.Location = new System.Drawing.Point(105, 149);
  184 + this.textBox6.MaxLength = 1;
  185 + this.textBox6.Name = "textBox6";
  186 + this.textBox6.Size = new System.Drawing.Size(31, 19);
  187 + this.textBox6.TabIndex = 12;
  188 + //
  189 + // label8
  190 + //
  191 + this.label8.AutoSize = true;
  192 + this.label8.Location = new System.Drawing.Point(18, 177);
  193 + this.label8.Name = "label8";
  194 + this.label8.Size = new System.Drawing.Size(67, 12);
  195 + this.label8.TabIndex = 13;
  196 + this.label8.Text = "結核・肺がん";
  197 + //
  198 + // textBox7
  199 + //
  200 + this.textBox7.ImeMode = System.Windows.Forms.ImeMode.Off;
  201 + this.textBox7.Location = new System.Drawing.Point(105, 174);
  202 + this.textBox7.MaxLength = 1;
  203 + this.textBox7.Name = "textBox7";
  204 + this.textBox7.Size = new System.Drawing.Size(31, 19);
  205 + this.textBox7.TabIndex = 14;
  206 + //
  207 + // label9
  208 + //
  209 + this.label9.AutoSize = true;
  210 + this.label9.Location = new System.Drawing.Point(44, 202);
  211 + this.label9.Name = "label9";
  212 + this.label9.Size = new System.Drawing.Size(37, 12);
  213 + this.label9.TabIndex = 15;
  214 + this.label9.Text = "胃がん";
  215 + //
  216 + // label10
  217 + //
  218 + this.label10.AutoSize = true;
  219 + this.label10.Location = new System.Drawing.Point(36, 227);
  220 + this.label10.Name = "label10";
  221 + this.label10.Size = new System.Drawing.Size(49, 12);
  222 + this.label10.TabIndex = 16;
  223 + this.label10.Text = "大腸がん";
  224 + //
  225 + // label11
  226 + //
  227 + this.label11.AutoSize = true;
  228 + this.label11.Location = new System.Drawing.Point(24, 252);
  229 + this.label11.Name = "label11";
  230 + this.label11.Size = new System.Drawing.Size(61, 12);
  231 + this.label11.TabIndex = 17;
  232 + this.label11.Text = "前立腺がん";
  233 + //
  234 + // label12
  235 + //
  236 + this.label12.AutoSize = true;
  237 + this.label12.Location = new System.Drawing.Point(32, 277);
  238 + this.label12.Name = "label12";
  239 + this.label12.Size = new System.Drawing.Size(53, 12);
  240 + this.label12.TabIndex = 18;
  241 + this.label12.Text = "骨粗鬆症";
  242 + //
  243 + // label13
  244 + //
  245 + this.label13.AutoSize = true;
  246 + this.label13.Location = new System.Drawing.Point(32, 302);
  247 + this.label13.Name = "label13";
  248 + this.label13.Size = new System.Drawing.Size(53, 12);
  249 + this.label13.TabIndex = 19;
  250 + this.label13.Text = "成人歯科";
  251 + //
  252 + // label14
  253 + //
  254 + this.label14.AutoSize = true;
  255 + this.label14.Location = new System.Drawing.Point(24, 327);
  256 + this.label14.Name = "label14";
  257 + this.label14.Size = new System.Drawing.Size(61, 12);
  258 + this.label14.TabIndex = 20;
  259 + this.label14.Text = "子宮頸がん";
  260 + //
  261 + // label15
  262 + //
  263 + this.label15.AutoSize = true;
  264 + this.label15.Location = new System.Drawing.Point(48, 352);
  265 + this.label15.Name = "label15";
  266 + this.label15.Size = new System.Drawing.Size(37, 12);
  267 + this.label15.TabIndex = 21;
  268 + this.label15.Text = "乳がん";
  269 + //
  270 + // textBox8
  271 + //
  272 + this.textBox8.ImeMode = System.Windows.Forms.ImeMode.Off;
  273 + this.textBox8.Location = new System.Drawing.Point(105, 199);
  274 + this.textBox8.MaxLength = 1;
  275 + this.textBox8.Name = "textBox8";
  276 + this.textBox8.Size = new System.Drawing.Size(31, 19);
  277 + this.textBox8.TabIndex = 22;
  278 + //
  279 + // textBox9
  280 + //
  281 + this.textBox9.ImeMode = System.Windows.Forms.ImeMode.Off;
  282 + this.textBox9.Location = new System.Drawing.Point(105, 224);
  283 + this.textBox9.MaxLength = 1;
  284 + this.textBox9.Name = "textBox9";
  285 + this.textBox9.Size = new System.Drawing.Size(31, 19);
  286 + this.textBox9.TabIndex = 23;
  287 + //
  288 + // textBox10
  289 + //
  290 + this.textBox10.ImeMode = System.Windows.Forms.ImeMode.Off;
  291 + this.textBox10.Location = new System.Drawing.Point(105, 249);
  292 + this.textBox10.MaxLength = 1;
  293 + this.textBox10.Name = "textBox10";
  294 + this.textBox10.Size = new System.Drawing.Size(31, 19);
  295 + this.textBox10.TabIndex = 24;
  296 + //
  297 + // textBox11
  298 + //
  299 + this.textBox11.ImeMode = System.Windows.Forms.ImeMode.Off;
  300 + this.textBox11.Location = new System.Drawing.Point(105, 274);
  301 + this.textBox11.MaxLength = 1;
  302 + this.textBox11.Name = "textBox11";
  303 + this.textBox11.Size = new System.Drawing.Size(31, 19);
  304 + this.textBox11.TabIndex = 25;
  305 + //
  306 + // textBox12
  307 + //
  308 + this.textBox12.ImeMode = System.Windows.Forms.ImeMode.Off;
  309 + this.textBox12.Location = new System.Drawing.Point(105, 299);
  310 + this.textBox12.MaxLength = 1;
  311 + this.textBox12.Name = "textBox12";
  312 + this.textBox12.Size = new System.Drawing.Size(31, 19);
  313 + this.textBox12.TabIndex = 26;
  314 + //
  315 + // textBox13
  316 + //
  317 + this.textBox13.ImeMode = System.Windows.Forms.ImeMode.Off;
  318 + this.textBox13.Location = new System.Drawing.Point(105, 324);
  319 + this.textBox13.MaxLength = 1;
  320 + this.textBox13.Name = "textBox13";
  321 + this.textBox13.Size = new System.Drawing.Size(31, 19);
  322 + this.textBox13.TabIndex = 27;
  323 + //
  324 + // textBox14
  325 + //
  326 + this.textBox14.ImeMode = System.Windows.Forms.ImeMode.Off;
  327 + this.textBox14.Location = new System.Drawing.Point(105, 349);
  328 + this.textBox14.MaxLength = 1;
  329 + this.textBox14.Name = "textBox14";
  330 + this.textBox14.Size = new System.Drawing.Size(31, 19);
  331 + this.textBox14.TabIndex = 28;
  332 + //
  333 + // label16
  334 + //
  335 + this.label16.AutoSize = true;
  336 + this.label16.ForeColor = System.Drawing.SystemColors.ActiveBorder;
  337 + this.label16.Location = new System.Drawing.Point(12, 371);
  338 + this.label16.Name = "label16";
  339 + this.label16.Size = new System.Drawing.Size(269, 12);
  340 + this.label16.TabIndex = 29;
  341 + this.label16.Text = "――――――――――――――――――――――";
  342 + //
  343 + // label17
  344 + //
  345 + this.label17.AutoSize = true;
  346 + this.label17.Location = new System.Drawing.Point(32, 389);
  347 + this.label17.Name = "label17";
  348 + this.label17.Size = new System.Drawing.Size(53, 12);
  349 + this.label17.TabIndex = 30;
  350 + this.label17.Text = "希望場所";
  351 + //
  352 + // label18
  353 + //
  354 + this.label18.AutoSize = true;
  355 + this.label18.Location = new System.Drawing.Point(20, 414);
  356 + this.label18.Name = "label18";
  357 + this.label18.Size = new System.Drawing.Size(65, 12);
  358 + this.label18.TabIndex = 31;
  359 + this.label18.Text = "身体不自由";
  360 + //
  361 + // textBox15
  362 + //
  363 + this.textBox15.ImeMode = System.Windows.Forms.ImeMode.Off;
  364 + this.textBox15.Location = new System.Drawing.Point(105, 386);
  365 + this.textBox15.MaxLength = 1;
  366 + this.textBox15.Name = "textBox15";
  367 + this.textBox15.Size = new System.Drawing.Size(31, 19);
  368 + this.textBox15.TabIndex = 32;
  369 + //
  370 + // textBox16
  371 + //
  372 + this.textBox16.ImeMode = System.Windows.Forms.ImeMode.Off;
  373 + this.textBox16.Location = new System.Drawing.Point(105, 411);
  374 + this.textBox16.MaxLength = 1;
  375 + this.textBox16.Name = "textBox16";
  376 + this.textBox16.Size = new System.Drawing.Size(31, 19);
  377 + this.textBox16.TabIndex = 33;
  378 + //
  379 + // button1
  380 + //
  381 + this.button1.Location = new System.Drawing.Point(186, 458);
  382 + this.button1.Name = "button1";
  383 + this.button1.Size = new System.Drawing.Size(75, 23);
  384 + this.button1.TabIndex = 34;
  385 + this.button1.Text = "保存";
  386 + this.button1.UseVisualStyleBackColor = true;
  387 + this.button1.Click += new System.EventHandler(this.button1_Click);
  388 + //
  389 + // button2
  390 + //
  391 + this.button2.Location = new System.Drawing.Point(276, 458);
  392 + this.button2.Name = "button2";
  393 + this.button2.Size = new System.Drawing.Size(86, 23);
  394 + this.button2.TabIndex = 35;
  395 + this.button2.Text = "保存して次へ";
  396 + this.button2.UseVisualStyleBackColor = true;
  397 + //
  398 + // button3
  399 + //
  400 + this.button3.Location = new System.Drawing.Point(211, 10);
  401 + this.button3.Name = "button3";
  402 + this.button3.Size = new System.Drawing.Size(75, 23);
  403 + this.button3.TabIndex = 36;
  404 + this.button3.Text = "復元";
  405 + this.button3.UseVisualStyleBackColor = true;
  406 + //
  407 + // button4
  408 + //
  409 + this.button4.Location = new System.Drawing.Point(10, 458);
  410 + this.button4.Name = "button4";
  411 + this.button4.Size = new System.Drawing.Size(75, 23);
  412 + this.button4.TabIndex = 37;
  413 + this.button4.Text = "前の入力へ";
  414 + this.button4.UseVisualStyleBackColor = true;
  415 + //
  416 + // Form2
  417 + //
  418 + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
  419 + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
  420 + this.ClientSize = new System.Drawing.Size(367, 493);
  421 + this.Controls.Add(this.button4);
  422 + this.Controls.Add(this.button3);
  423 + this.Controls.Add(this.button2);
  424 + this.Controls.Add(this.button1);
  425 + this.Controls.Add(this.textBox16);
  426 + this.Controls.Add(this.textBox15);
  427 + this.Controls.Add(this.label18);
  428 + this.Controls.Add(this.label17);
  429 + this.Controls.Add(this.label16);
  430 + this.Controls.Add(this.textBox14);
  431 + this.Controls.Add(this.textBox13);
  432 + this.Controls.Add(this.textBox12);
  433 + this.Controls.Add(this.textBox11);
  434 + this.Controls.Add(this.textBox10);
  435 + this.Controls.Add(this.textBox9);
  436 + this.Controls.Add(this.textBox8);
  437 + this.Controls.Add(this.label15);
  438 + this.Controls.Add(this.label14);
  439 + this.Controls.Add(this.label13);
  440 + this.Controls.Add(this.label12);
  441 + this.Controls.Add(this.label11);
  442 + this.Controls.Add(this.label10);
  443 + this.Controls.Add(this.label9);
  444 + this.Controls.Add(this.textBox7);
  445 + this.Controls.Add(this.label8);
  446 + this.Controls.Add(this.textBox6);
  447 + this.Controls.Add(this.label7);
  448 + this.Controls.Add(this.label6);
  449 + this.Controls.Add(this.textBox5);
  450 + this.Controls.Add(this.textBox4);
  451 + this.Controls.Add(this.label5);
  452 + this.Controls.Add(this.label4);
  453 + this.Controls.Add(this.textBox3);
  454 + this.Controls.Add(this.label3);
  455 + this.Controls.Add(this.textBox2);
  456 + this.Controls.Add(this.label2);
  457 + this.Controls.Add(this.label1);
  458 + this.Controls.Add(this.textBox1);
  459 + this.Name = "Form2";
  460 + this.Text = "Form2";
  461 + this.ResumeLayout(false);
  462 + this.PerformLayout();
  463 +
  464 + }
  465 +
  466 + #endregion
  467 +
  468 + private System.Windows.Forms.TextBox textBox1;
  469 + private System.Windows.Forms.Label label1;
  470 + private System.Windows.Forms.Label label2;
  471 + private System.Windows.Forms.TextBox textBox2;
  472 + private System.Windows.Forms.Label label3;
  473 + private System.Windows.Forms.TextBox textBox3;
  474 + private System.Windows.Forms.Label label4;
  475 + private System.Windows.Forms.Label label5;
  476 + private System.Windows.Forms.TextBox textBox4;
  477 + private System.Windows.Forms.TextBox textBox5;
  478 + private System.Windows.Forms.Label label6;
  479 + private System.Windows.Forms.Label label7;
  480 + private System.Windows.Forms.TextBox textBox6;
  481 + private System.Windows.Forms.Label label8;
  482 + private System.Windows.Forms.TextBox textBox7;
  483 + private System.Windows.Forms.Label label9;
  484 + private System.Windows.Forms.Label label10;
  485 + private System.Windows.Forms.Label label11;
  486 + private System.Windows.Forms.Label label12;
  487 + private System.Windows.Forms.Label label13;
  488 + private System.Windows.Forms.Label label14;
  489 + private System.Windows.Forms.Label label15;
  490 + private System.Windows.Forms.TextBox textBox8;
  491 + private System.Windows.Forms.TextBox textBox9;
  492 + private System.Windows.Forms.TextBox textBox10;
  493 + private System.Windows.Forms.TextBox textBox11;
  494 + private System.Windows.Forms.TextBox textBox12;
  495 + private System.Windows.Forms.TextBox textBox13;
  496 + private System.Windows.Forms.TextBox textBox14;
  497 + private System.Windows.Forms.Label label16;
  498 + private System.Windows.Forms.Label label17;
  499 + private System.Windows.Forms.Label label18;
  500 + private System.Windows.Forms.TextBox textBox15;
  501 + private System.Windows.Forms.TextBox textBox16;
  502 + private System.Windows.Forms.Button button1;
  503 + private System.Windows.Forms.Button button2;
  504 + private System.Windows.Forms.Button button3;
  505 + private System.Windows.Forms.Button button4;
  506 + }
  507 +}
  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 Form2 : Form
  16 + {
  17 + public Form2()
  18 + {
  19 + InitializeComponent();
  20 +
  21 + this.Text = "ロット:" + Global.lotNo + " " + Global.times + " " + "ユーザ:" + Global.inputUser;
  22 + }
  23 +
  24 + //保存
  25 + private void button1_Click(object sender, EventArgs e)
  26 + {
  27 + bool match = false;
  28 + //入力チェック
  29 + if("".Equals(textBox1.Text)) //必須は整理番号のみ
  30 + {
  31 + MessageBox.Show("整理番号が入力されていません");
  32 + return;
  33 + }
  34 +
  35 + //マッチングチェック
  36 + if("2回目".Equals(Global.times))
  37 + {
  38 + //1回目と比較
  39 + //一致しない場合、エラー表示はするが保存は実行してしまう
  40 + }
  41 +
  42 + //保存処理
  43 + SaveData sv = makeSaveData();
  44 + if(match)
  45 + {
  46 + sv.done = "1"; //マッチングOKの場合、完了フラグを立てる
  47 + }
  48 + bool res = doSave(sv);
  49 +
  50 + }
  51 +
  52 + private SaveData makeSaveData()
  53 + {
  54 + SaveData sv = new SaveData();
  55 +
  56 + sv.lotNo = int.Parse(Global.lotNo); //ロット番号
  57 + sv.adminCode = textBox3.Text.PadLeft(6,'0'); //行政区コード
  58 + sv.adminName = ""; //行政区名称
  59 + sv.healthArea = ""; //保健区
  60 + sv.serialNo = textBox1.Text.PadLeft(10,'0'); //整理番号
  61 + sv.houseNo = textBox2.Text.PadLeft(10,'0'); //世帯番号
  62 + sv.healthCheck = textBox6.Text; //健康診査
  63 + sv.lungCancer = textBox7.Text; //結核肺がん
  64 + sv.stomachCancer = textBox8.Text; //胃がん
  65 + sv.colorectalCancer = textBox9.Text; //大腸がん
  66 + sv.prostateCancer = textBox10.Text; //前立腺がん
  67 + sv.osteoporosis = textBox11.Text; //骨粗鬆症
  68 + sv.dental = textBox12.Text; //成人歯科
  69 + sv.cervicalCancer = textBox13.Text; //子宮頸がん
  70 + sv.breastCancer = textBox14.Text; //乳がん
  71 + sv.place = textBox15.Text; //希望場所
  72 + sv.handicapped = "".Equals(textBox16.Text) ? "" : "8"; //身体不自由
  73 + sv.phone = textBox4.Text; //電話番号
  74 + sv.mobilePhone = textBox5.Text; //携帯番号
  75 + sv.inputDate = null; //入力日
  76 + sv.inputUser = null; //入力者
  77 + sv.updateDate = null; //修正日
  78 + sv.updateUser = null; //修正者
  79 + sv.done = null; //完了
  80 +
  81 + return sv;
  82 + }
  83 +
  84 + private bool doSave(SaveData sv)
  85 + {
  86 + bool err = false;
  87 +
  88 + MySqlConnection conn;
  89 + string connstr = System.Configuration.ConfigurationManager.AppSettings["Conn"];
  90 + conn = new MySqlConnection(connstr);
  91 + conn.Open();
  92 +
  93 + bool isExist = isExistData(sv, Global.times, conn);
  94 +// bool isExist = false;
  95 + if (isExist)
  96 + {
  97 + sv.updateUser = Global.inputUser;
  98 + err = updateData(sv, Global.times, conn);
  99 + }
  100 + else
  101 + {
  102 + sv.inputUser = Global.inputUser;
  103 + err = insertData(sv, Global.times, conn);
  104 + }
  105 + conn.Close();
  106 + return err;
  107 + }
  108 +
  109 + private bool isExistData(SaveData sv, string tableName, MySqlConnection conn)
  110 + {
  111 + bool isExist = false;
  112 +// new MySqlCommand("select exists (select 1 from @tableName where `整理番号` = @serialNo)", conn);
  113 + // パラメータ設定
  114 +// cmd.Parameters.Add(new MySqlParameter("tableName", tableName));
  115 + MySqlCommand cmd = new MySqlCommand("select * from `" + tableName + "` where `整理番号` = @serialNo ", conn);
  116 + // パラメータ設定
  117 +
  118 + cmd.Parameters.Add(new MySqlParameter("serialNo", sv.serialNo));
  119 +
  120 + try
  121 + {
  122 + // 実行
  123 + MySqlDataReader reader = cmd.ExecuteReader();
  124 + if (reader.HasRows)
  125 + {
  126 + isExist = true;
  127 + }
  128 + reader.Close();
  129 +// reader.Read();
  130 +// isExist = reader.GetBoolean(0);
  131 +// reader.Close();
  132 + }
  133 + catch (SqlException ex)
  134 + {
  135 + }
  136 +
  137 + return isExist;
  138 + }
  139 +
  140 + private bool insertData(SaveData sv, string tableName, MySqlConnection conn)
  141 + {
  142 + bool err = false;
  143 + // コマンドを作成
  144 + MySqlCommand cmd =
  145 + new MySqlCommand("insert into `" + tableName + "` (`ロット番号`,"
  146 + + "`行政区コード`,"
  147 + + "`行政区名称`,"
  148 + + "`保健区`,"
  149 + + "`整理番号`,"
  150 + + "`世帯番号`,"
  151 + + "`健康診査`,"
  152 + + "`結核肺がん`,"
  153 + + "`胃がん`,"
  154 + + "`大腸がん`,"
  155 + + "`前立腺がん`,"
  156 + + "`骨粗鬆症`,"
  157 + + "`成人歯科`,"
  158 + + "`子宮頸がん`,"
  159 + + "`乳がん`,"
  160 + + "`希望場所`,"
  161 + + "`身体不自由`,"
  162 + + "`電話番号`,"
  163 + + "`携帯番号`,"
  164 + + "`入力日`,"
  165 + + "`入力者`,"
  166 + + "`修正日`,"
  167 + + "`修正者`,"
  168 + + "`完了`) "
  169 + + "values (@lotNo,"
  170 + + "@adminCode, "
  171 + + "@adminName, "
  172 + + "@healthArea, "
  173 + + "@serialNo, "
  174 + + "@houseNo,"
  175 + + "@healthCheck,"
  176 + + "@lungCancer,"
  177 + + "@stomachCancer,"
  178 + + "@colorectalCancer,"
  179 + + "@prostateCancer,"
  180 + + "@osteoporosis,"
  181 + + "@dental,"
  182 + + "@cervicalCancer,"
  183 + + "@breastCancer,"
  184 + + "@place,"
  185 + + "@handicapped,"
  186 + + "@phone,"
  187 + + "@mobilePhone,"
  188 + + "@inputDate,"
  189 + + "@inputUser,"
  190 + + "@updateDate,"
  191 + + "@updateUser,"
  192 + + "@done)", conn);
  193 + // パラメータ設定
  194 + cmd.Parameters.Add(new MySqlParameter("lotNo", sv.lotNo));
  195 + cmd.Parameters.Add(new MySqlParameter("adminCode", sv.adminCode));
  196 + cmd.Parameters.Add(new MySqlParameter("adminName", sv.adminName));
  197 + cmd.Parameters.Add(new MySqlParameter("healthArea", sv.healthArea));
  198 + cmd.Parameters.Add(new MySqlParameter("serialNo", sv.serialNo));
  199 + cmd.Parameters.Add(new MySqlParameter("houseNo", sv.houseNo));
  200 + cmd.Parameters.Add(new MySqlParameter("healthCheck", sv.healthCheck));
  201 + cmd.Parameters.Add(new MySqlParameter("lungCancer", sv.lungCancer));
  202 + cmd.Parameters.Add(new MySqlParameter("stomachCancer", sv.stomachCancer));
  203 + cmd.Parameters.Add(new MySqlParameter("colorectalCancer", sv.colorectalCancer));
  204 + cmd.Parameters.Add(new MySqlParameter("prostateCancer", sv.prostateCancer));
  205 + cmd.Parameters.Add(new MySqlParameter("osteoporosis", sv.osteoporosis));
  206 + cmd.Parameters.Add(new MySqlParameter("dental", sv.dental));
  207 + cmd.Parameters.Add(new MySqlParameter("cervicalCancer", sv.cervicalCancer));
  208 + cmd.Parameters.Add(new MySqlParameter("breastCancer", sv.breastCancer));
  209 + cmd.Parameters.Add(new MySqlParameter("place", sv.place));
  210 + cmd.Parameters.Add(new MySqlParameter("handicapped", sv.handicapped));
  211 + cmd.Parameters.Add(new MySqlParameter("phone", sv.phone));
  212 + cmd.Parameters.Add(new MySqlParameter("mobilePhone", sv.mobilePhone));
  213 + cmd.Parameters.Add(new MySqlParameter("inputDate", DateTime.Now));
  214 + cmd.Parameters.Add(new MySqlParameter("inputUser", sv.inputUser));
  215 + cmd.Parameters.Add(new MySqlParameter("updateDate", sv.updateDate));
  216 + cmd.Parameters.Add(new MySqlParameter("updateUser", sv.updateUser));
  217 + cmd.Parameters.Add(new MySqlParameter("done", sv.done));
  218 +
  219 + try
  220 + {
  221 + // 実行
  222 + cmd.ExecuteNonQuery();
  223 + }
  224 + catch (SqlException ex)
  225 + {
  226 + // 例外処理
  227 + MessageBox.Show("例外発生:" + ex.Message);
  228 + return true;
  229 + }
  230 +
  231 + return err;
  232 + }
  233 +
  234 + private bool updateData(SaveData sv, string tableName, MySqlConnection conn)
  235 + {
  236 + bool err = false;
  237 + string sql = "update `" + tableName + "` set `ロット番号` = @lotNo,"
  238 + + "`行政区コード` = @adminCode,"
  239 + + "`行政区名称` = @adminName,"
  240 + + "`保健区` = @healthArea,"
  241 + + "`整理番号` = @serialNo,"
  242 + + "`世帯番号` = @houseNo,"
  243 + + "`健康診査` = @healthCheck,"
  244 + + "`結核肺がん` = @lungCancer,"
  245 + + "`胃がん` = @stomachCancer,"
  246 + + "`大腸がん` = @colorectalCancer,"
  247 + + "`前立腺がん` = @prostateCancer,"
  248 + + "`骨粗鬆症` = @osteoporosis,"
  249 + + "`成人歯科` = @dental,"
  250 + + "`子宮頸がん` = @cervicalCancer,"
  251 + + "`乳がん` = @breastCancer,"
  252 + + "`希望場所` = @place,"
  253 + + "`身体不自由` = @handicapped,"
  254 + + "`電話番号` = @phone,"
  255 + + "`携帯番号` = @mobilePhone,"
  256 + + "`修正日` = @updateDate,"
  257 + + "`修正者` = @updateUser,"
  258 + + "`完了` = @done "
  259 + + "where `整理番号` = @serialNo";
  260 +
  261 + // コマンドを作成
  262 + MySqlCommand cmd = new MySqlCommand(sql, conn);
  263 +
  264 + // パラメータ設定
  265 + cmd.Parameters.Add(new MySqlParameter("lotNo", sv.lotNo));
  266 + cmd.Parameters.Add(new MySqlParameter("adminCode", sv.adminCode));
  267 + cmd.Parameters.Add(new MySqlParameter("adminName", sv.adminName));
  268 + cmd.Parameters.Add(new MySqlParameter("healthArea", sv.healthArea));
  269 + cmd.Parameters.Add(new MySqlParameter("serialNo", sv.serialNo));
  270 + cmd.Parameters.Add(new MySqlParameter("houseNo", sv.houseNo));
  271 + cmd.Parameters.Add(new MySqlParameter("healthCheck", sv.healthCheck));
  272 + cmd.Parameters.Add(new MySqlParameter("lungCancer", sv.lungCancer));
  273 + cmd.Parameters.Add(new MySqlParameter("stomachCancer", sv.stomachCancer));
  274 + cmd.Parameters.Add(new MySqlParameter("colorectalCancer", sv.colorectalCancer));
  275 + cmd.Parameters.Add(new MySqlParameter("prostateCancer", sv.prostateCancer));
  276 + cmd.Parameters.Add(new MySqlParameter("osteoporosis", sv.osteoporosis));
  277 + cmd.Parameters.Add(new MySqlParameter("dental", sv.dental));
  278 + cmd.Parameters.Add(new MySqlParameter("cervicalCancer", sv.cervicalCancer));
  279 + cmd.Parameters.Add(new MySqlParameter("breastCancer", sv.breastCancer));
  280 + cmd.Parameters.Add(new MySqlParameter("place", sv.place));
  281 + cmd.Parameters.Add(new MySqlParameter("handicapped", sv.handicapped));
  282 + cmd.Parameters.Add(new MySqlParameter("phone", sv.phone));
  283 + cmd.Parameters.Add(new MySqlParameter("mobilePhone", sv.mobilePhone));
  284 + cmd.Parameters.Add(new MySqlParameter("updateDate", DateTime.Now));
  285 + cmd.Parameters.Add(new MySqlParameter("updateUser", sv.updateUser));
  286 + cmd.Parameters.Add(new MySqlParameter("done", sv.done));
  287 +
  288 + try
  289 + {
  290 + // 実行
  291 + cmd.ExecuteNonQuery();
  292 + }
  293 + catch (SqlException ex)
  294 + {
  295 + // 例外処理
  296 + MessageBox.Show("例外発生:" + ex.Message);
  297 + return true;
  298 + }
  299 +
  300 + return err;
  301 +
  302 + }
  303 + }
  304 +}
  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 +</root>
  1 +using System;
  2 +using System.Collections.Generic;
  3 +using System.Linq;
  4 +using System.Text;
  5 +using System.Threading.Tasks;
  6 +
  7 +namespace MedicalCheckInputTool
  8 +{
  9 + class Global
  10 + {
  11 + public static string inputUser;
  12 + public static string lotNo;
  13 + public static string times;
  14 + }
  15 +}
  1 +<?xml version="1.0" encoding="utf-8"?>
  2 +<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3 + <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
  4 + <PropertyGroup>
  5 + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
  6 + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
  7 + <ProjectGuid>{A86BDC88-F890-495A-ADE5-7193C0019FBD}</ProjectGuid>
  8 + <OutputType>WinExe</OutputType>
  9 + <AppDesignerFolder>Properties</AppDesignerFolder>
  10 + <RootNamespace>MedicalCheckInputTool</RootNamespace>
  11 + <AssemblyName>MedicalCheckInputTool</AssemblyName>
  12 + <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
  13 + <FileAlignment>512</FileAlignment>
  14 + </PropertyGroup>
  15 + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
  16 + <PlatformTarget>AnyCPU</PlatformTarget>
  17 + <DebugSymbols>true</DebugSymbols>
  18 + <DebugType>full</DebugType>
  19 + <Optimize>false</Optimize>
  20 + <OutputPath>bin\Debug\</OutputPath>
  21 + <DefineConstants>DEBUG;TRACE</DefineConstants>
  22 + <ErrorReport>prompt</ErrorReport>
  23 + <WarningLevel>4</WarningLevel>
  24 + </PropertyGroup>
  25 + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
  26 + <PlatformTarget>AnyCPU</PlatformTarget>
  27 + <DebugType>pdbonly</DebugType>
  28 + <Optimize>true</Optimize>
  29 + <OutputPath>bin\Release\</OutputPath>
  30 + <DefineConstants>TRACE</DefineConstants>
  31 + <ErrorReport>prompt</ErrorReport>
  32 + <WarningLevel>4</WarningLevel>
  33 + </PropertyGroup>
  34 + <ItemGroup>
  35 + <Reference Include="MySql.Data, Version=6.9.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL">
  36 + <SpecificVersion>False</SpecificVersion>
  37 + <HintPath>mysql\MySql.Data.dll</HintPath>
  38 + </Reference>
  39 + <Reference Include="System" />
  40 + <Reference Include="System.Configuration" />
  41 + <Reference Include="System.Core" />
  42 + <Reference Include="System.Xml.Linq" />
  43 + <Reference Include="System.Data.DataSetExtensions" />
  44 + <Reference Include="Microsoft.CSharp" />
  45 + <Reference Include="System.Data" />
  46 + <Reference Include="System.Deployment" />
  47 + <Reference Include="System.Drawing" />
  48 + <Reference Include="System.Windows.Forms" />
  49 + <Reference Include="System.Xml" />
  50 + </ItemGroup>
  51 + <ItemGroup>
  52 + <Compile Include="Form1.cs">
  53 + <SubType>Form</SubType>
  54 + </Compile>
  55 + <Compile Include="Form1.Designer.cs">
  56 + <DependentUpon>Form1.cs</DependentUpon>
  57 + </Compile>
  58 + <Compile Include="Form2.cs">
  59 + <SubType>Form</SubType>
  60 + </Compile>
  61 + <Compile Include="Form2.Designer.cs">
  62 + <DependentUpon>Form2.cs</DependentUpon>
  63 + </Compile>
  64 + <Compile Include="Global.cs" />
  65 + <Compile Include="Program.cs" />
  66 + <Compile Include="Properties\AssemblyInfo.cs" />
  67 + <Compile Include="SaveData.cs" />
  68 + <EmbeddedResource Include="Form1.resx">
  69 + <DependentUpon>Form1.cs</DependentUpon>
  70 + </EmbeddedResource>
  71 + <EmbeddedResource Include="Form2.resx">
  72 + <DependentUpon>Form2.cs</DependentUpon>
  73 + </EmbeddedResource>
  74 + <EmbeddedResource Include="Properties\Resources.resx">
  75 + <Generator>ResXFileCodeGenerator</Generator>
  76 + <LastGenOutput>Resources.Designer.cs</LastGenOutput>
  77 + <SubType>Designer</SubType>
  78 + </EmbeddedResource>
  79 + <Compile Include="Properties\Resources.Designer.cs">
  80 + <AutoGen>True</AutoGen>
  81 + <DependentUpon>Resources.resx</DependentUpon>
  82 + </Compile>
  83 + <None Include="Properties\Settings.settings">
  84 + <Generator>SettingsSingleFileGenerator</Generator>
  85 + <LastGenOutput>Settings.Designer.cs</LastGenOutput>
  86 + </None>
  87 + <Compile Include="Properties\Settings.Designer.cs">
  88 + <AutoGen>True</AutoGen>
  89 + <DependentUpon>Settings.settings</DependentUpon>
  90 + <DesignTimeSharedInput>True</DesignTimeSharedInput>
  91 + </Compile>
  92 + </ItemGroup>
  93 + <ItemGroup>
  94 + <None Include="App.config" />
  95 + </ItemGroup>
  96 + <ItemGroup>
  97 + <Content Include="mysql\MySql.Data.dll">
  98 + <CopyToOutputDirectory>Always</CopyToOutputDirectory>
  99 + </Content>
  100 + </ItemGroup>
  101 + <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  102 + <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
  103 + Other similar extension points exist, see Microsoft.Common.targets.
  104 + <Target Name="BeforeBuild">
  105 + </Target>
  106 + <Target Name="AfterBuild">
  107 + </Target>
  108 + -->
  109 +</Project>
  1 +using System;
  2 +using System.Collections.Generic;
  3 +using System.Linq;
  4 +using System.Threading.Tasks;
  5 +using System.Windows.Forms;
  6 +
  7 +namespace MedicalCheckInputTool
  8 +{
  9 + static class Program
  10 + {
  11 + /// <summary>
  12 + /// アプリケーションのメイン エントリ ポイントです。
  13 + /// </summary>
  14 + [STAThread]
  15 + static void Main()
  16 + {
  17 + Application.EnableVisualStyles();
  18 + Application.SetCompatibleTextRenderingDefault(false);
  19 + Application.Run(new Form1());
  20 + }
  21 + }
  22 +}
  1 +using System.Reflection;
  2 +using System.Runtime.CompilerServices;
  3 +using System.Runtime.InteropServices;
  4 +
  5 +// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。
  6 +// アセンブリに関連付けられている情報を変更するには、
  7 +// これらの属性値を変更してください。
  8 +[assembly: AssemblyTitle("MedicalCheckInputTool")]
  9 +[assembly: AssemblyDescription("")]
  10 +[assembly: AssemblyConfiguration("")]
  11 +[assembly: AssemblyCompany("")]
  12 +[assembly: AssemblyProduct("MedicalCheckInputTool")]
  13 +[assembly: AssemblyCopyright("Copyright © 2017")]
  14 +[assembly: AssemblyTrademark("")]
  15 +[assembly: AssemblyCulture("")]
  16 +
  17 +// ComVisible を false に設定すると、その型はこのアセンブリ内で COM コンポーネントから
  18 +// 参照不可能になります。COM からこのアセンブリ内の型にアクセスする場合は、
  19 +// その型の ComVisible 属性を true に設定してください。
  20 +[assembly: ComVisible(false)]
  21 +
  22 +// 次の GUID は、このプロジェクトが COM に公開される場合の、typelib の ID です
  23 +[assembly: Guid("d6ba4019-70ad-45e3-84a8-ed1177b4b234")]
  24 +
  25 +// アセンブリのバージョン情報は、以下の 4 つの値で構成されています:
  26 +//
  27 +// Major Version
  28 +// Minor Version
  29 +// Build Number
  30 +// Revision
  31 +//
  32 +// すべての値を指定するか、下のように '*' を使ってビルドおよびリビジョン番号を
  33 +// 既定値にすることができます:
  34 +// [assembly: AssemblyVersion("1.0.*")]
  35 +[assembly: AssemblyVersion("1.0.0.0")]
  36 +[assembly: AssemblyFileVersion("1.0.0.0")]
  1 +//------------------------------------------------------------------------------
  2 +// <auto-generated>
  3 +// このコードはツールによって生成されました。
  4 +// ランタイム バージョン:4.0.30319.42000
  5 +//
  6 +// このファイルへの変更は、以下の状況下で不正な動作の原因になったり、
  7 +// コードが再生成されるときに損失したりします
  8 +// </auto-generated>
  9 +//------------------------------------------------------------------------------
  10 +
  11 +namespace MedicalCheckInputTool.Properties
  12 +{
  13 +
  14 +
  15 + /// <summary>
  16 + /// ローカライズされた文字列などを検索するための、厳密に型指定されたリソース クラスです。
  17 + /// </summary>
  18 + // このクラスは StronglyTypedResourceBuilder クラスが ResGen
  19 + // または Visual Studio のようなツールを使用して自動生成されました。
  20 + // メンバーを追加または削除するには、.ResX ファイルを編集して、/str オプションと共に
  21 + // ResGen を実行し直すか、または VS プロジェクトをリビルドします。
  22 + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
  23 + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  24 + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  25 + internal class Resources
  26 + {
  27 +
  28 + private static global::System.Resources.ResourceManager resourceMan;
  29 +
  30 + private static global::System.Globalization.CultureInfo resourceCulture;
  31 +
  32 + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
  33 + internal Resources()
  34 + {
  35 + }
  36 +
  37 + /// <summary>
  38 + /// このクラスに使用される、キャッシュされた ResourceManager のインスタンスを返します。
  39 + /// </summary>
  40 + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
  41 + internal static global::System.Resources.ResourceManager ResourceManager
  42 + {
  43 + get
  44 + {
  45 + if ((resourceMan == null))
  46 + {
  47 + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("MedicalCheckInputTool.Properties.Resources", typeof(Resources).Assembly);
  48 + resourceMan = temp;
  49 + }
  50 + return resourceMan;
  51 + }
  52 + }
  53 +
  54 + /// <summary>
  55 + /// 厳密に型指定されたこのリソース クラスを使用して、すべての検索リソースに対し、
  56 + /// 現在のスレッドの CurrentUICulture プロパティをオーバーライドします。
  57 + /// </summary>
  58 + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
  59 + internal static global::System.Globalization.CultureInfo Culture
  60 + {
  61 + get
  62 + {
  63 + return resourceCulture;
  64 + }
  65 + set
  66 + {
  67 + resourceCulture = value;
  68 + }
  69 + }
  70 + }
  71 +}
  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.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:element name="root" msdata:IsDataSet="true">
  64 + <xsd:complexType>
  65 + <xsd:choice maxOccurs="unbounded">
  66 + <xsd:element name="metadata">
  67 + <xsd:complexType>
  68 + <xsd:sequence>
  69 + <xsd:element name="value" type="xsd:string" minOccurs="0" />
  70 + </xsd:sequence>
  71 + <xsd:attribute name="name" type="xsd:string" />
  72 + <xsd:attribute name="type" type="xsd:string" />
  73 + <xsd:attribute name="mimetype" type="xsd:string" />
  74 + </xsd:complexType>
  75 + </xsd:element>
  76 + <xsd:element name="assembly">
  77 + <xsd:complexType>
  78 + <xsd:attribute name="alias" type="xsd:string" />
  79 + <xsd:attribute name="name" type="xsd:string" />
  80 + </xsd:complexType>
  81 + </xsd:element>
  82 + <xsd:element name="data">
  83 + <xsd:complexType>
  84 + <xsd:sequence>
  85 + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
  86 + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
  87 + </xsd:sequence>
  88 + <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
  89 + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
  90 + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
  91 + </xsd:complexType>
  92 + </xsd:element>
  93 + <xsd:element name="resheader">
  94 + <xsd:complexType>
  95 + <xsd:sequence>
  96 + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
  97 + </xsd:sequence>
  98 + <xsd:attribute name="name" type="xsd:string" use="required" />
  99 + </xsd:complexType>
  100 + </xsd:element>
  101 + </xsd:choice>
  102 + </xsd:complexType>
  103 + </xsd:element>
  104 + </xsd:schema>
  105 + <resheader name="resmimetype">
  106 + <value>text/microsoft-resx</value>
  107 + </resheader>
  108 + <resheader name="version">
  109 + <value>2.0</value>
  110 + </resheader>
  111 + <resheader name="reader">
  112 + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
  113 + </resheader>
  114 + <resheader name="writer">
  115 + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
  116 + </resheader>
  117 +</root>
  1 +//------------------------------------------------------------------------------
  2 +// <auto-generated>
  3 +// This code was generated by a tool.
  4 +// Runtime Version:4.0.30319.42000
  5 +//
  6 +// Changes to this file may cause incorrect behavior and will be lost if
  7 +// the code is regenerated.
  8 +// </auto-generated>
  9 +//------------------------------------------------------------------------------
  10 +
  11 +namespace MedicalCheckInputTool.Properties
  12 +{
  13 +
  14 +
  15 + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  16 + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
  17 + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
  18 + {
  19 +
  20 + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
  21 +
  22 + public static Settings Default
  23 + {
  24 + get
  25 + {
  26 + return defaultInstance;
  27 + }
  28 + }
  29 + }
  30 +}
  1 +<?xml version='1.0' encoding='utf-8'?>
  2 +<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
  3 + <Profiles>
  4 + <Profile Name="(Default)" />
  5 + </Profiles>
  6 + <Settings />
  7 +</SettingsFile>
  1 +using System;
  2 +using System.Collections.Generic;
  3 +using System.Linq;
  4 +using System.Text;
  5 +using System.Threading.Tasks;
  6 +
  7 +namespace MedicalCheckInputTool
  8 +{
  9 + class SaveData
  10 + {
  11 + public int lotNo; //ロット番号
  12 + public string adminCode; //行政区コード
  13 + public string adminName; //行政区名称
  14 + public string healthArea; //保健区
  15 + public string serialNo; //整理番号
  16 + public string houseNo; //世帯番号
  17 + public string healthCheck; //健康診査
  18 + public string lungCancer; //結核肺がん
  19 + public string stomachCancer; //胃がん
  20 + public string colorectalCancer; //大腸がん
  21 + public string prostateCancer; //前立腺がん
  22 + public string osteoporosis; //骨粗鬆症
  23 + public string dental; //成人歯科
  24 + public string cervicalCancer; //子宮頸がん
  25 + public string breastCancer; //乳がん
  26 + public string place; //希望場所
  27 + public string handicapped; //身体不自由
  28 + public string phone; //電話番号
  29 + public string mobilePhone; //携帯番号
  30 + public string inputDate; //入力日
  31 + public string inputUser; //入力者
  32 + public string updateDate; //修正日
  33 + public string updateUser; //修正者
  34 + public string done; //完了
  35 + }
  36 +}
No preview for this file type
Please register or login to post a comment