///<summary>
        ///addTanaorosi
        ///テキストボックス内のデータをDBに登録
        ///</summary>
        private void addTanaorosi()
        {
            if (blnAddDataCheck() != true)
            {
                return;
            }

            //データ渡し用
            List <string> lstString = new List <string>();

            //データ渡し用
            lstString.Add(txtYMD.Text);
            lstString.Add(labelSet_Eigyousho.CodeTxtText);
            lstString.Add(txtShouhinCD.Text);
            lstString.Add(txtTanasuu.Text);
            lstString.Add(labelSet_Tanaban_Edit.CodeTxtText);
            lstString.Add(txtBiko.Text);

            DBConnective con = null;

            KATO.Business.A0010_JuchuInput.A0010_JuchuInput_B juchuB = new KATO.Business.A0010_JuchuInput.A0010_JuchuInput_B();

            con = new DBConnective();

            try
            {
                F0140_TanaorosiInput_B tanaorosiinputB = new F0140_TanaorosiInput_B();
                tanaorosiinputB.addTanaoroshi(lstString);

                con.BeginTrans();
                juchuB.updZaiko(txtShouhinCD.Text, labelSet_Eigyousho.CodeTxtText, txtYMD.Text, Environment.UserName, con);
                con.Commit();

                //特定の値確保
                string strYMD      = txtYMD.Text;
                string strDibunCd  = labelSet_Daibunrui.CodeTxtText;
                string strChubunCd = labelSet_Chubunrui.CodeTxtText;
                string strEigyoCd  = labelSet_Eigyousho.CodeTxtText;
                string strMakerCd  = labelSet_Maker.CodeTxtText;
                string strTanaban  = labelSet_Tanaban.CodeTxtText;

                //画面内削除
                delFormClear(this, gridRireki);

                //確保した値を元に戻す
                txtYMD.Text = strYMD;
                labelSet_Daibunrui.CodeTxtText = strDibunCd;
                labelSet_Chubunrui.CodeTxtText = strChubunCd;
                labelSet_Eigyousho.CodeTxtText = strEigyoCd;
                labelSet_Maker.CodeTxtText     = strMakerCd;
                labelSet_Tanaban.CodeTxtText   = strTanaban;

                setViewGrid();

                //各ラベルセットのLeave処理
                if (labelSet_Daibunrui.chkTxtDaibunrui())
                {
                    return;
                }

                if (labelSet_Chubunrui.chkTxtChubunrui(labelSet_Daibunrui.CodeTxtText))
                {
                    return;
                }

                if (labelSet_Eigyousho.chkTxtEigyousho())
                {
                    return;
                }

                if (labelSet_Maker.chkTxtMaker())
                {
                    return;
                }

                if (labelSet_Tanaban.chkTxtTanaban())
                {
                    return;
                }

                txtTyoubosuu.Text = "0";

                //メッセージボックスの処理、登録完了のウィンドウ(OK)
                BaseMessageBox basemessagebox = new BaseMessageBox(this, CommonTeisu.TEXT_TOUROKU, CommonTeisu.LABEL_TOUROKU, CommonTeisu.BTN_OK, CommonTeisu.DIAG_INFOMATION);
                basemessagebox.ShowDialog();

                txtKensaku.Focus();
            }
            catch (Exception ex)
            {
                if (con != null)
                {
                    con.Rollback();
                }
                //データロギング
                new CommonException(ex);
                //例外発生メッセージ(OK)
                BaseMessageBox basemessagebox = new BaseMessageBox(this, CommonTeisu.TEXT_ERROR, CommonTeisu.LABEL_ERROR_MESSAGE, CommonTeisu.BTN_OK, CommonTeisu.DIAG_ERROR);
                basemessagebox.ShowDialog();
                return;
            }
        }
        ///<summary>
        ///updKoshin
        ///データの更新
        ///</summary>
        private void updKoshin()
        {
            //変更する発注IDがない場合
            if (strHachuID == "")
            {
                return;
            }

            //発注数空チェック
            if (txtHachusu.blIsEmpty() == false)
            {
                // メッセージボックスの処理、項目が日付でない場合のウィンドウ(OK)
                BaseMessageBox basemessagebox = new BaseMessageBox(this, CommonTeisu.TEXT_INPUT, "項目が空です。数値を入力してください。", CommonTeisu.BTN_OK, CommonTeisu.DIAG_ERROR);
                basemessagebox.ShowDialog();

                txtHachusu.Focus();

                return;
            }

            //発注数の数値チェック
            if (txtHachusu.chkMoneyText())
            {
                // メッセージボックスの処理、項目が日付でない場合のウィンドウ(OK)
                BaseMessageBox basemessagebox = new BaseMessageBox(this, CommonTeisu.TEXT_INPUT, "入力された数値が正しくありません。", CommonTeisu.BTN_OK, CommonTeisu.DIAG_ERROR);
                basemessagebox.ShowDialog();

                txtHachusu.Focus();

                return;
            }

            //発注数が仕入数以下の場合
            if (int.Parse(txtHachusu.Text) < int.Parse(txtShiresu.Text))
            {
                //発注数が仕入数以下の場合のメッセージ(OK)
                BaseMessageBox basemessagebox = new BaseMessageBox(this, CommonTeisu.TEXT_ERROR, "発注数は仕入数以上を入力してください", CommonTeisu.BTN_OK, CommonTeisu.DIAG_ERROR);
                basemessagebox.ShowDialog();
                return;
            }

            //ビジネス層のインスタンス生成
            A0470_Hachusuhenko_B hachusuhenkoB = new A0470_Hachusuhenko_B();

            DBConnective con = null;

            KATO.Business.A0010_JuchuInput.A0010_JuchuInput_B juchuB = new KATO.Business.A0010_JuchuInput.A0010_JuchuInput_B();

            con = new DBConnective();

            try
            {
                DataTable dt = hachusuhenkoB.getHatchuData(strHachuID);
                hachusuhenkoB.updKoushin(txtHachusu.Text, strHachuID);

                if (dt != null && dt.Rows.Count > 0)
                {
                    con.BeginTrans();
                    juchuB.updZaiko(dt.Rows[0]["商品コード"].ToString(), dt.Rows[0]["営業所コード"].ToString(), dt.Rows[0]["納期"].ToString(), Environment.UserName, con);
                    con.Commit();
                }

                //メッセージボックスの処理、登録完了のウィンドウ(OK)
                BaseMessageBox basemessagebox = new BaseMessageBox(this, CommonTeisu.TEXT_TOUROKU, CommonTeisu.LABEL_TOUROKU, CommonTeisu.BTN_OK, CommonTeisu.DIAG_INFOMATION);
                basemessagebox.ShowDialog();

                //下部のみ取消動作
                txtHinmei_Katashiki.Clear();
                txtHachusu.Clear();
                txtShiresu.Clear();
                txtTanka.Clear();

                //グリッド表示
                setHachusuhenko();
            }
            catch (Exception ex)
            {
                if (con != null)
                {
                    con.Rollback();
                }
                //エラーロギング
                new CommonException(ex);
                //例外発生メッセージ(OK)
                BaseMessageBox basemessagebox = new BaseMessageBox(this, CommonTeisu.TEXT_ERROR, CommonTeisu.LABEL_ERROR_MESSAGE, CommonTeisu.BTN_OK, CommonTeisu.DIAG_ERROR);
                basemessagebox.ShowDialog();
                return;
            }
        }