///<summary> ///txtKensakuLeave //検索ウィンドウか別テキストボックスに移動 ///作成者:大河内 ///作成日:2017/3/15 ///更新者:大河内 ///更新日:2017/3/15 ///カラム論理名 ///</summary> public void txtKensakuLeave(object sender, EventArgs e) { if (txtKensaku.TextLength > 0) { ShouhinList shouhinlist = new ShouhinList(); shouhinlist.Left = 100; shouhinlist.StartPosition = FormStartPosition.Manual; shouhinlist.intFrmKind = CommonTeisu.FRM_TANAOROSHI; shouhinlist.strYMD = txtYMD.Text; shouhinlist.strEigyoushoCode = txtEigyousyo.Text; shouhinlist.strDaibunruiCode = txtDaibunrui.Text; shouhinlist.strChubunruiCode = txtChubunrui.Text; shouhinlist.strMakerCode = txtMaker.Text; shouhinlist.strKensaku = txtKensaku.Text; shouhinlist.Show(); } }
///<summary> ///showtShohinList ///商品リストに移動(前提) ///</summary> private void showShohinList() { //商品リストを一回以上開いたことがない場合 if (shouhinlist == null) { shouhinlist = new ShouhinList(this); try { //検索項目に一つでも記入がある場合 if (labelSet_Daibunrui.codeTxt.blIsEmpty() == false && labelSet_Chubunrui.codeTxt.blIsEmpty() == false && labelSet_Maker.codeTxt.blIsEmpty() == false && txtKensaku.blIsEmpty() == false) { shouhinlist.blKensaku = false; } else { shouhinlist.blKensaku = true; } shouhinlist.intFrmKind = CommonTeisu.FRM_SHOHIN; shouhinlist.strYMD = ""; shouhinlist.strEigyoushoCode = ""; shouhinlist.lsDaibunrui = labelSet_Daibunrui; shouhinlist.lsChubunrui = labelSet_Chubunrui; shouhinlist.lsMaker = labelSet_Maker; shouhinlist.btxtKensaku = txtKensaku; shouhinlist.btxtHinC1 = txtData1; shouhinlist.btxtHinC2 = txtData2; shouhinlist.btxtHinC3 = txtData3; shouhinlist.btxtHinC4 = txtData4; shouhinlist.btxtHinC5 = txtData5; shouhinlist.btxtHinC6 = txtData6; shouhinlist.bmtxtHyojunBaika = txtHyojun; shouhinlist.bmtxtShireTanka = txtShire; shouhinlist.bmtxtHyokaTanka = txtHyoka; shouhinlist.bmtxtTateneShire = txtTatene; shouhinlist.btxtZaikokbn = txtZaiko; shouhinlist.lsTanabanH = labelSet_TanabanHonsha; shouhinlist.lsTanabanG = labelSet_TanabanGihu; shouhinlist.btxtMemo = txtMemo; shouhinlist.bmtxtTeika = txtTeika; shouhinlist.bmtxtHakosu = txtHako; shouhinlist.btxtComment = txtComment; shouhinlist.lblGrayYM = lblGrayToroku; shouhinlist.btxtShohinCd = txtShohinCd; shouhinlist.lblGrayHinMakerDaiCdChuCdHinban = lblGrayShohin; shouhinlist.blShohinMaster = true; shouhinlist.chbxHontoroku = chbxHontoroku; shouhinlist.ShowDialog(); shouhinlist.Close(); shouhinlist.Dispose(); shouhinlist = null; //初回時用、二回目以降は無くても動作する if (txtShohinCd.Text != "") { txtData1.Focus(); } } catch (Exception ex) { //データロギング 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; } } else { //既に1回以上商品リストを表示しているので、hideを元に戻す shouhinlist.Show(); //再検索 shouhinlist.setShohinView(); } }