コード例 #1
0
        public override void OnAddNew()
        {
            base.OnAddNew();
            TRN270_ReturnProductEntry dialog = new TRN270_ReturnProductEntry();

            if (dialog.ShowDialog(this) == DialogResult.OK)
            {
                LoadData(dtPeriodBegin.NZValue, dtPeriodEnd.NZValue);
            }
        }
コード例 #2
0
        //private void OnNew()
        //{
        //    TRN020 dialog = new TRN020();
        //    if (dialog.ShowDialog(this) == DialogResult.OK)
        //    {
        //        LoadData(dtPeriodBegin.NZValue, dtPeriodEnd.NZValue);
        //    }
        //}

        private void OnEdit()
        {
            if (!ActivePermission.Edit)
            {
                return;
            }
            if (shtReturnProductList.RowCount <= 0)
            {
                return;
            }
            int             activeRow = shtReturnProductList.ActiveRowIndex;
            ReturnEntryUIDM uidm      = new ReturnEntryUIDM();

            uidm.TRANS_DATE.Value = shtReturnProductList.Cells[activeRow, (int)eColView.TRANS_DATE].Value;
            uidm.REF_NO.Value     = shtReturnProductList.Cells[activeRow, (int)eColView.DELIVERY_TRANS_ID].Value;
            uidm.SLIP_NO.Value    = shtReturnProductList.Cells[activeRow, (int)eColView.SLIP_NO].Value;
            uidm.DEALING_NO.Value = shtReturnProductList.Cells[activeRow, (int)eColView.DEALING_NO].Value;
            uidm.LOC_DESC.Value   = shtReturnProductList.Cells[activeRow, (int)eColView.LOC_DESC].Value;
            uidm.ITEM_CD.Value    = shtReturnProductList.Cells[activeRow, (int)eColView.ITEM_CD].Value;
            uidm.SHORT_NAME.Value = shtReturnProductList.Cells[activeRow, (int)eColView.SHORT_NAME].Value;
            uidm.PO_ON.Value      = shtReturnProductList.Cells[activeRow, (int)eColView.PO_NO].Value;
            uidm.ORDER_NO.Value   = shtReturnProductList.Cells[activeRow, (int)eColView.ORDER_NO].Value;
            uidm.REMARK.Value     = shtReturnProductList.Cells[activeRow, (int)eColView.REMARK].Value;
            uidm.PACK_NO.Value    = shtReturnProductList.Cells[activeRow, (int)eColView.PACK_NO].Value;
            uidm.FG_NO.Value      = shtReturnProductList.Cells[activeRow, (int)eColView.FG_NO].Value;
            uidm.LOT_NO.Value     = shtReturnProductList.Cells[activeRow, (int)eColView.LOT_NO].Value;
            uidm.LOT_QTY.Value    = shtReturnProductList.Cells[activeRow, (int)eColView.RETURN_QTY].Value;
            uidm.LOC_CD.Value     = shtReturnProductList.Cells[activeRow, (int)eColView.RETURN_LOC].Value;

            TRN270_ReturnProductEntry dialog = new TRN270_ReturnProductEntry(uidm);

            if (dialog.ShowDialog(this) == DialogResult.OK)
            {
                LoadData(dtPeriodBegin.NZValue, dtPeriodEnd.NZValue);
            }
        }