Exemple #1
0
        //////////////////////////////////////////////////
        //ボタン押下処理                                //
        //////////////////////////////////////////////////
        private void Button_Click(object sender, EventArgs e)
        {
            //変数定義
            CTCommon.NameSubmit        NameSubmit = new CTCommon.NameSubmit();
            CTCommon.CTProcessMSSearch frmProcess = new CTCommon.CTProcessMSSearch();
            CTCommon.CTProductMSSearch frmProduct = new CTCommon.CTProductMSSearch();
            CTCommon.CTHumanMSSearch   frmHuman   = new CTCommon.CTHumanMSSearch();

            if (sender.Equals(this.btnSerach))
            {
                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();
            }                                                 //終了ボタン押下



            //工程NOボタン押下
            if (sender.Equals(this.btnProcessNoSearch))
            {
                string strReciveValue = frmProcess.Showminiform();
                txtProcessNo.Text = strReciveValue;
                //工程名の取得
                string strReciveValue2 = NameSubmit.ProcessName_Submit(txtProcessNo.Text.Trim());
                lblProcessName.Text = strReciveValue2;
            }

            //製品コードボタン押下
            if (sender.Equals(this.btnProductCodeSearch))
            {
                string strReciveValue = frmProduct.Showminiform();
                txtProductCode.Text = strReciveValue;
                //製品名の取得
                string strReciveValue2 = NameSubmit.ProductName_Submit(txtProductCode.Text.Trim());
                lblProductName.Text = strReciveValue2;
            }

            //更新担当者ボタン押下
            if (sender.Equals(this.btnHumanMSSearch))
            {
                string strReciveValue = frmHuman.ShowminiForm();
                txtHumanMSNo.Text = strReciveValue;
            }
        }
Exemple #2
0
        //////////////////////////////////////////////////
        //ボタンクリック処理                            //
        //////////////////////////////////////////////////
        private void CT012_ButtonClick(object sender, EventArgs e)
        {
            if (sender.Equals(this.btnSearch))
            {
                CT012_Search();
            }                                                      //検索メイン処理
            if (sender.Equals(this.btnSubmit))
            {
                CT012_Submit();
            }                                                      //登録メイン処理
            if (sender.Equals(this.btnClear))
            {
                CT012_Clear();
            }                                                    //クリア処理
            if (sender.Equals(this.btnEnd))
            {
                this.Close();
            }                                                 //終了処理


            //【説明】:製品コード検索ボタン押下
            if (sender.Equals(this.btnSearchProductMSSearch))
            {
                CTCommon.CTProductMSSearch frmSearch = new CTCommon.CTProductMSSearch();
                txtSearchProductCode.Text = frmSearch.Showminiform();

                CTCommon.NameSubmit NameSubmit = new CTCommon.NameSubmit();
                lblSearchProductName.Text = NameSubmit.ProductName_Submit(txtSearchProductCode.Text);
            }

            //【説明】:更新担当者ボタン押下
            if (sender.Equals(this.btnHumanMSSearch))
            {
                CTCommon.CTHumanMSSearch frmSearch = new CTCommon.CTHumanMSSearch();

                txtHumanMSNo.Text = frmSearch.ShowminiForm();
            }

            //【説明】:使用部品1~3ボタン押下
            Button btn             = sender as Button;
            string ClickButtonName = btn.Name;

            if (ClickButtonName == "btnInputPartsMSSearch1" ||
                ClickButtonName == "btnInputPartsMSSearch2" ||
                ClickButtonName == "btnInputPartsMSSearch3")
            {
                Button_InputParts(ClickButtonName);
            }
        }
Exemple #3
0
        //////////////////////////////////////////////////
        //ボタン押下処理                                //
        //////////////////////////////////////////////////
        private void button_Click(object sender, EventArgs e)
        {
            //F1:検索ボタン押下
            if (sender.Equals(this.btnSubmit))
            {
                smSubmit();
            }

            //F2:クリアボタン押下
            if (sender.Equals(this.btnClear))
            {
                smClear();
            }

            //F3:終了ボタン押下
            if (sender.Equals(this.btnEnd))
            {
                this.Close();
            }

            //受注先マスタボタン押下
            if (sender.Equals(this.btnOrderMSSearch))
            {
                //受注先マスタ検索の小窓を開く
                CTCommon.CTOrderMSSearch frmSearch = new CTCommon.CTOrderMSSearch();
                string strOrderNo = frmSearch.ShowMiniForm();
                txtOrderMSNo.Text = strOrderNo;
                frmSearch.Dispose();
                //受注先名の検索
                CTCommon.NameSubmit frmSubmit = new CTCommon.NameSubmit();
                string strOrderName           = frmSubmit.OrderMSName_Submit(txtOrderMSNo.Text);
                lblOrderMSName.Text = strOrderName;
            }

            //製品マスタボタン押下
            if (sender.Equals(this.btnProductMSSearch))
            {
                //製品マスタ検索の小窓を開く
                CTCommon.CTProductMSSearch frmSearch = new CTCommon.CTProductMSSearch();
                string strProductNo = frmSearch.Showminiform();
                txtProductCode.Text = strProductNo;
                frmSearch.Dispose();
                //製品名の検索
                CTCommon.NameSubmit frmSubmit = new CTCommon.NameSubmit();
                string strProductName         = frmSubmit.ProductName_Submit(txtProductCode.Text);
                lblProductName.Text = strProductName;
                //単価の検索
                SearchClass SearchClass  = new SearchClass();
                string      strUnitPrice = SearchClass.Search_UnitPrice(txtProductCode.Text);
                txtOrderUnitPrice.Text = strUnitPrice;
                //受注金額の計算
                SubmitClass SubmitClass = new SubmitClass();
                string      strPrice    = SubmitClass.Submit_OrderPrice(txtOrderNumber.Text.Trim(), txtOrderUnitPrice.Text.Trim());
                txtOrderPrice.Text = strPrice;
                //作業ラインの初期化
                txtWorklineMSNo.Clear();
                lblWorklineMSName.Text = "";
            }


            //作業ラインNOマスタボタン押下
            if (sender.Equals(this.btnWorklineMSSearch))
            {
                //作業ラインマスタ検索の小窓を開く
                CTCommon.CTWorklineMSSearch frmSearch = new CTCommon.CTWorklineMSSearch();
                string strWorklineNo = frmSearch.ShowminiForm(txtProductCode.Text.Trim());
                txtWorklineMSNo.Text = strWorklineNo;
                frmSearch.Dispose();
                //作業工程名の検索
                CTCommon.NameSubmit frmSubmit = new CTCommon.NameSubmit();
                string strWorklineName        = frmSubmit.WorklineName_Submit(txtWorklineMSNo.Text);
                lblWorklineMSName.Text = strWorklineName;
            }

            //更新担当者マスタボタン押下
            if (sender.Equals(this.btnHumanMSSearch))
            {
                //更新担当者マスタ検索の小窓を開く
                CTCommon.CTHumanMSSearch frmSearch = new CTCommon.CTHumanMSSearch();
                string strHumanNo = frmSearch.ShowminiForm();
                txtHumanMSNo.Text = strHumanNo;
                frmSearch.Dispose();
            }
        }
Exemple #4
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;
            }
        }