Beispiel #1
0
        ///////////////////////////////////////////////////
        //ボタンクリック処理                            //
        //////////////////////////////////////////////////
        private void Button_Click(object sender, EventArgs e)
        {
            //変数定義
            CTCommon.CTPartsClassMSSearch frmPartsClassSearch = new CTCommon.CTPartsClassMSSearch();
            CTCommon.CTHumanMSSearch      frmHumanSearch      = new CTCommon.CTHumanMSSearch();
            CTCommon.CTPartsMSSearch      frmPartsSearch      = new CTCommon.CTPartsMSSearch();

            //部品マスタ検索を押下
            if (sender.Equals(this.btnSearchPartsCodeSearch))
            {
                string strReturnValue = frmPartsSearch.Showminiform();
                txtSearchPartsCode.Text = strReturnValue;
            }

            //部品分類NO検索を押下
            if (sender.Equals(this.btnPartsClassNoSearch))
            {
                string strReturnValue = frmPartsClassSearch.Showminiform();
                txtPartsClassNo.Text = strReturnValue;
            }

            //更新担当者検索を押下
            if (sender.Equals(this.btnHumanNoSearch))
            {
                string strReturnValue = frmHumanSearch.ShowminiForm();
                txtHumanNo.Text = strReturnValue;
            }

            if (sender.Equals(this.btnSearch))
            {
                Search_Main();
            }                                                     //検索ボタン押下
            if (sender.Equals(this.btnSubmit))
            {
                Submit_Main();
            }                                                     //更新ボタン押下
            if (sender.Equals(this.btnDelete))
            {
                Delete_Main();
            }                                                     //削除ボタン押下
            if (sender.Equals(this.btnClear))
            {
                smClear();
            }                                                //クリアボタン押下
            if (sender.Equals(this.btnEnd))
            {
                this.Close();
            }                                                 //終了ボタン押下
        }
Beispiel #2
0
        //////////////////////////////////////////////////
        //ボタンクリック処理                            //
        //////////////////////////////////////////////////
        private void Button_Click(object sender, EventArgs e)
        {
            if (sender.Equals(this.btnSearch))
            {
                Search_Main();
            }                                                     //検索ボタン押下処理
            if (sender.Equals(this.btnSubmit))
            {
                Submit_Main();
            }                                                     //登録、削除ボタン押下処理
            if (sender.Equals(this.btnClear))
            {
                smClear();
            }                                                //クリア処理
            if (sender.Equals(this.btnEnd))
            {
                this.Close();
            }                                                 //クローズ処理



            //製品コード検索ボタン押下
            if (sender.Equals(this.btnPartsMSSearch))
            {
                //変数定義
                CTCommon.CTPartsMSSearch frmSearch = new CTCommon.CTPartsMSSearch();
                string strPartsCode = frmSearch.Showminiform();
                txtPartsCode.Text = strPartsCode;
                //部品名取得
                CTCommon.NameSubmit NameSubmit = new CTCommon.NameSubmit();
                string strPartsName            = NameSubmit.PartsName_Submit(txtPartsCode.Text);
                lblPartsName.Text = strPartsName;
            }

            //更新担当者検索ボタン押下
            if (sender.Equals(this.btnHumanMSSearch))
            {
                //変数定義
                CTCommon.CTHumanMSSearch frmSearch = new CTCommon.CTHumanMSSearch();
                string strHumanNo = frmSearch.ShowminiForm();
                txtHumanMSNo.Text = strHumanNo;
            }
        }
Beispiel #3
0
        //////////////////////////////////////////////////
        //ボタン押下処理                                //
        //////////////////////////////////////////////////
        private void Button_Click(object sender, EventArgs e)
        {
            //変数定義
            CTCommon.CTWarehouseMSSearch frmWarehouse = new CTCommon.CTWarehouseMSSearch();
            CTCommon.CTHumanMSSearch     frmHuman     = new CTCommon.CTHumanMSSearch();
            CTCommon.CTPartsMSSearch     frmParts     = new CTCommon.CTPartsMSSearch();
            CTCommon.CTProductMSSearch   frmProduct   = new CTCommon.CTProductMSSearch();
            CTCommon.NameSubmit          NameSubmit   = new CTCommon.NameSubmit();


            if (sender.Equals(this.btnSearch))
            {
                Search_Main();
            }                                                     //検索処理
            if (sender.Equals(this.btnSubmit))
            {
                Submit_Main();
            }                                                     //更新処理
            if (sender.Equals(this.btnDelete))
            {
                Delete_Main();
            }                                                     //削除処理
            if (sender.Equals(this.btnClear))
            {
                smClear();
            }                                                //クリア処理
            if (sender.Equals(this.btnEnd))
            {
                this.Close();
            }                                                 //終了処理

            //製品コード検索ボタン押下
            if (sender.Equals(this.btnSearchProductCodeSearch))
            {
                string strReciveValue = frmProduct.Showminiform();
                txtSearchProductCode.Text = strReciveValue;
            }

            //倉庫NO検索ボタン押下
            if (sender.Equals(this.btnWarehouseNoSearch))
            {
                string strReciveValue = frmWarehouse.Showminiform();
                txtWarehouseNo.Text = strReciveValue;
            }

            //部品コード1検索ボタン押下
            if (sender.Equals(this.btn01PartsCodeSearch))
            {
                string strReciveValue = frmParts.Showminiform();
                txt01PartsCode.Text = strReciveValue;
                //部品名を取得
                string strResiveValue2 = NameSubmit.PartsName_Submit(txt01PartsCode.Text);
                lbl01PartsName.Text = strResiveValue2;
            }

            //部品コード2検索ボタン押下
            if (sender.Equals(this.btn02PartsCodeSearch))
            {
                string strReciveValue = frmParts.Showminiform();
                txt02PartsCode.Text = strReciveValue;
                //部品名を取得
                string strResiveValue2 = NameSubmit.PartsName_Submit(txt02PartsCode.Text);
                lbl02PartsName.Text = strResiveValue2;
            }

            //部品コード3検索ボタン押下
            if (sender.Equals(this.btn03PartsCodeSearch))
            {
                string strReciveValue = frmParts.Showminiform();
                txt03PartsCode.Text = strReciveValue;
                //部品名を取得
                string strResiveValue2 = NameSubmit.PartsName_Submit(txt03PartsCode.Text);
                lbl03PartsName.Text = strResiveValue2;
            }



            //更新担当者ボタン押下
            if (sender.Equals(this.btnHumanNoSearch))
            {
                string strReciveValue = frmHuman.ShowminiForm();
                txtHumanNo.Text = strReciveValue;
            }
        }