////////////////////////////////////////////////// //ボタン押下処理 // ////////////////////////////////////////////////// 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; } //作業工程NOマスタボタン押下 if (sender.Equals(this.btnWorkProcessMSSearch)) { //作業工程マスタ検索の小窓を開く CTCommon.CTWorkProcessMSSearch frmSearch = new CTCommon.CTWorkProcessMSSearch(); string strWorkProcessNo = frmSearch.ShowminiForm(); txtWorkProcessMSNo.Text = strWorkProcessNo; frmSearch.Dispose(); //作業工程名の検索 CTCommon.NameSubmit frmSubmit = new CTCommon.NameSubmit(); string strWorkProcessName = frmSubmit.WorkProcessMSName_Submit(txtWorkProcessMSNo.Text); lblWorkProcessMSName.Text = strWorkProcessName; } //更新担当者マスタボタン押下 if (sender.Equals(this.btnHumanMSSearch)) { //更新担当者マスタ検索の小窓を開く CTCommon.CTHumanMSSearch frmSearch = new CTCommon.CTHumanMSSearch(); string strHumanNo = frmSearch.ShowminiForm(); txtHumanMSNo.Text = strHumanNo; frmSearch.Dispose(); } }
////////////////////////////////////////////////// //ボタンクリック処理 // ////////////////////////////////////////////////// private void button_Click(object sender, EventArgs e) { //ファンクションキー:検索ボタン押下 if (sender.Equals(this.btnSearch)) { Search_Main(); } //ファンクションキー:登録、削除ボタン押下 if (sender.Equals(this.btnSubmit)) { Submit(); } //ファンクションキー:クリアボタン押下 if (sender.Equals(this.btnClear)) { smClear(); } //ファンクションキー:終了ボタン押下 if (sender.Equals(this.btnEnd)) { this.Close(); } //検索条件:受注先NOの受注先ボタンを押下 if (sender.Equals(this.btnOrderMSSearch)) { //受注先NO検索を開く 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; } //検索条件:受注NOの受注先ボタンを押下 if (sender.Equals(this.btnOrderNoSerach01)) { //受注先NO検索を開く CTCommon.CTOrderMSSearch frmSearch = new CTCommon.CTOrderMSSearch(); string strOrderNo = frmSearch.ShowMiniForm(); txtOrderNoSearch01.Text = strOrderNo; frmSearch.Dispose(); //受注先名の取得 CTCommon.NameSubmit frmSubmit = new CTCommon.NameSubmit(); string strOrderName = frmSubmit.OrderMSName_Submit(txtOrderNoSearch01.Text); lblOrderNoSearch01.Text = strOrderName; } //検索条件:受注NOの検索ボタン押下 if (sender.Equals(this.btnOrderNoSerach02)) { //受注NO検索を開く CTCommon.CTOrderNOSearch frmSearch = new CTCommon.CTOrderNOSearch(); string strOrderNo = frmSearch.ShowminiForm(txtOrderNoSearch01.Text, dtpOrderNoSearch01.Text, dtpOrderNoSearch02.Text); txtOrderNo.Text = strOrderNo; } //更新担当者のボタン押下 if (sender.Equals(this.btnHumanMSSearch)) { //更新担当者マスタ検索を開く CTCommon.CTHumanMSSearch frmSearch = new CTCommon.CTHumanMSSearch(); string strHumanNo = frmSearch.ShowminiForm(); txtHumanMSNo.Text = strHumanNo; } }
////////////////////////////////////////////////// //ボタン押下処理 // ////////////////////////////////////////////////// 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(); } }