예제 #1
0
        ///<summary>
        ///TanabanList
        ///フォームの初期設定(ラベルセットから)
        ///</summary>
        public TanabanList(Control c, LabelSet_Tanaban lblSetTanabanSelect)
        {
            //画面データが解放されていた時の対策
            if (c == null)
            {
                return;
            }

            //画面位置の指定
            int intWindowWidth  = c.Width;
            int intWindowHeight = c.Height;

            lblSetTanaban = lblSetTanabanSelect;
            InitializeComponent();

            //ウィンドウ位置をマニュアル
            this.StartPosition = FormStartPosition.Manual;
            //親画面の中央を指定
            this.Left = c.Left + (intWindowWidth - this.Width) / 2;
            this.Top  = c.Top + 150;
        }
예제 #2
0
        /// <summary>
        /// ShouhinList
        /// フォーム関係の設定(通常のテキストボックスから)
        /// </summary>
        public ShouhinList(Control c)
        {
            //画面データが解放されていた時の対策
            if (c == null)
            {
                return;
            }
            int intWindowWidth  = c.Width;
            int intWindowHeight = c.Height;

            InitializeComponent();

            //フォームが最大化されないようにする
            this.MaximizeBox = false;
            //フォームが最小化されないようにする
            this.MinimizeBox = false;

            //最大サイズと最小サイズを現在のサイズに設定する
            this.MaximumSize = this.Size;
            this.MinimumSize = this.Size;

            // フォームでもキーイベントを受け取る
            this.KeyPreview  = true;
            this.btnF11.Text = "F11:検索";
            this.btnF12.Text = "F12:戻る";

            Screen s = null;

            s = Screen.FromControl(c);
            this.StartPosition = FormStartPosition.Manual;
            this.Location      = s.Bounds.Location;

            //中分類setデータを読めるようにする
            labelSet_Daibunrui.Lschubundata = labelSet_Chubunrui;

            // 大分類の引き渡しチェック
            if (lsDaibunrui == null)
            {
                lsDaibunrui = new LabelSet_Daibunrui();
            }

            // 中分類の引き渡しチェック
            if (lsChubunrui == null)
            {
                lsChubunrui = new LabelSet_Chubunrui();
            }

            // メーカーの引き渡しチェック
            if (lsMaker == null)
            {
                lsMaker = new LabelSet_Maker();
            }

            // 検索テキストの引き渡しチェック
            if (btxtKensaku == null)
            {
                btxtKensaku = new BaseText();
            }

            // 商品コードの引き渡しチェック
            if (btxtShohinCd == null)
            {
                btxtShohinCd = new BaseText();
            }

            // 品名の引き渡しチェック(C1のみ)(ベーステキスト)
            if (btxtHinC1 == null)
            {
                btxtHinC1 = new BaseText();
            }

            // 品名の引き渡しチェック(C2のみ)(ベーステキスト)
            if (btxtHinC2 == null)
            {
                btxtHinC2 = new BaseText();
            }

            // 品名の引き渡しチェック(C3のみ)(ベーステキスト)
            if (btxtHinC3 == null)
            {
                btxtHinC3 = new BaseText();
            }

            // 品名の引き渡しチェック(C4のみ)(ベーステキスト)
            if (btxtHinC4 == null)
            {
                btxtHinC4 = new BaseText();
            }

            // 品名の引き渡しチェック(C5のみ)(ベーステキスト)
            if (btxtHinC5 == null)
            {
                btxtHinC5 = new BaseText();
            }

            // 品名の引き渡しチェック(C6のみ)(ベーステキスト)
            if (btxtHinC6 == null)
            {
                btxtHinC6 = new BaseText();
            }

            // 品名の引き渡しチェック(C1~C6)(ベーステキスト)
            if (btxtHinC1Hinban == null)
            {
                btxtHinC1Hinban = new BaseText();
            }

            // 品名の引き渡しチェック(中分類名 + C1~C6)(グレイラベル)
            if (lblGrayHinChuHinban == null)
            {
                lblGrayHinChuHinban = new BaseLabelGray();
            }

            // 品名の引き渡しチェック(メーカー名 + C1~C6)(グレイラベル)
            if (lblGrayHinMakerHinban == null)
            {
                lblGrayHinMakerHinban = new BaseLabelGray();
            }

            // 品名の引き渡しチェック(メーカー名 + 中分類名 + C1~C6)(グレイラベル)
            if (lblGrayHinMakerChuHinban == null)
            {
                lblGrayHinMakerChuHinban = new BaseLabelGray();
            }

            // 品名の引き渡しチェック(メーカー名 + 中分類名 + 大分類名 + C1~C6)(グレイラベル)
            if (lblGrayHinMakerChuDaiHinban == null)
            {
                lblGrayHinMakerChuDaiHinban = new BaseLabelGray();
            }

            // 品名の引き渡しチェック(メーカー名 + 中分類コード + 大分類コード + C1~C6)(グレイラベル)
            if (lblGrayHinMakerDaiCdChuCdHinban == null)
            {
                lblGrayHinMakerDaiCdChuCdHinban = new BaseLabelGray();
            }

            // 棚番本社(本社)の引き渡しチェック(ラベルセット)
            if (lsTanabanH == null)
            {
                lsTanabanH = new LabelSet_Tanaban();
            }

            // 棚番本社(岐阜)の引き渡しチェック(ラベルセット)
            if (lsTanabanG == null)
            {
                lsTanabanG = new LabelSet_Tanaban();
            }

            // 棚番本社(本社)の引き渡しチェック(ベーステキスト)
            if (btxtTanabanH == null)
            {
                btxtTanabanH = new BaseText();
            }

            // 棚番本社(岐阜)の引き渡しチェック(ベーステキスト)
            if (btxtTanabanG == null)
            {
                btxtTanabanG = new BaseText();
            }

            // 棚番本社(本社)の引き渡しチェック(グレイラベル)
            if (lblGrayTanabanH == null)
            {
                lblGrayTanabanH = new BaseLabelGray();
            }

            // 棚番本社(岐阜)の引き渡しチェック(グレイラベル)
            if (lblGrayTanabanG == null)
            {
                lblGrayTanabanG = new BaseLabelGray();
            }

            // 年月の引き渡しチェック(グレイラベル)
            if (lblGrayYM == null)
            {
                lblGrayYM = new BaseLabelGray();
            }

            // 標準売価の引き渡しチェック(ベーステキストマネー)
            if (bmtxtHyojunBaika == null)
            {
                bmtxtHyojunBaika = new BaseTextMoney();
            }

            // 仕入単価の引き渡しチェック(ベーステキストマネー)
            if (bmtxtShireTanka == null)
            {
                bmtxtShireTanka = new BaseTextMoney();
            }

            // 評価単価の引き渡しチェック(ベーステキストマネー)
            if (bmtxtHyokaTanka == null)
            {
                bmtxtHyokaTanka = new BaseTextMoney();
            }

            // 建値仕入単価の引き渡しチェック(ベーステキストマネー)
            if (bmtxtTateneShire == null)
            {
                bmtxtTateneShire = new BaseTextMoney();
            }

            // 箱入数初期値の引き渡しチェック(ベーステキストマネー)
            if (bmtxtHakosu == null)
            {
                bmtxtHakosu = new BaseTextMoney();
            }

            // 在庫管理区分の引き渡しチェック(ベーステキストマネー)
            if (btxtZaikokbn == null)
            {
                btxtZaikokbn = new BaseText();
            }

            // 定価の引き渡しチェック(ベーステキストマネー)
            if (bmtxtTeika == null)
            {
                bmtxtTeika = new BaseTextMoney();
            }

            // メモの引き渡しチェック(ベーステキストマネー)
            if (btxtMemo == null)
            {
                btxtMemo = new BaseText();
            }

            // コメントの引き渡しチェック(ベーステキストマネー)
            if (btxtComment == null)
            {
                btxtComment = new BaseText();
            }

            // 仕入単価の引き渡しチェック(コンボボックス)
            if (cbShireTanka == null)
            {
                cbShireTanka = new ComboBox();
            }

            // 本登録されたデータを呼び出した判定
            if (chbxHontoroku == null)
            {
                chbxHontoroku = new CheckBox();
            }
        }