Beispiel #1
0
        private void dgvOrdersList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            //選択された受注情報を抽出
            Orders o = _list[dgvOrdersList.SelectedRows[0].Index];

            //デバッガーに選択した情報を表示
            Debug.WriteLine("-----選択データ-----");
            Debug.WriteLine("no: " + o.getNo());

            //受注情報を遷移先に格納
            OrderInformationConfirmationScreen f = new OrderInformationConfirmationScreen();

            this.Hide();

            f.receiveMode(OrderInformationConfirmationScreen.EDIT_MODE); //編集のみのモードに移行
            f.receiveOrder(o);                                           //選択した受注情報を送信
            f.receiveRep(getRep(o));
            f.receiveCustomer(getCustomer(o));
            f.ShowDialog();

            this.Dispose();
        }
Beispiel #2
0
        /// <summary>
        /// 決定/受注消込ボタン押下時のメソッド
        /// </summary>
        private void btSubmit_Click(object sender, EventArgs e)
        {
            inputOrder(true);

            switch (this._mode)
            {
            case INPUT_MODE:
                openOrdersList();
                break;

            case MODIFICATION_MODE:
                this.Hide();
                OrderInformationConfirmationScreen f = new OrderInformationConfirmationScreen();
                f.receiveMode(OrderInformationConfirmationScreen.PRINTING_MODE);
                f.receiveOrder(this._order);
                f.receiveRep(this._rep);
                f.ShowDialog();
                this.Dispose();

                break;
            }
        }