コード例 #1
0
        private void OpenIssueScreen()
        {
            int activeRow          = shtDelivery.ActiveRowIndex;
            ShipmentEntryUIDM uidm = new ShipmentEntryUIDM();

            uidm.TRANS_DATE.Value     = shtDelivery.Cells[activeRow, (int)eColView.TRANS_DATE].Value;
            uidm.SLIP_NO.Value        = shtDelivery.Cells[activeRow, (int)eColView.SLIP_NO].Value;
            uidm.DEALING_NO.Value     = shtDelivery.Cells[activeRow, (int)eColView.DEALING_NO].Value;
            uidm.LOC_DESC.Value       = shtDelivery.Cells[activeRow, (int)eColView.LOC_DESC].Value;
            uidm.ITEM_CD.Value        = shtDelivery.Cells[activeRow, (int)eColView.ITEM_CD].Value;
            uidm.SHORT_NAME.Value     = shtDelivery.Cells[activeRow, (int)eColView.SHORT_NAME].Value;
            uidm.PO_ON.Value          = shtDelivery.Cells[activeRow, (int)eColView.PO_NO].Value;
            uidm.ORDER_NO.Value       = shtDelivery.Cells[activeRow, (int)eColView.ORDER_NO].Value;
            uidm.SHIP_QTY.Value       = shtDelivery.Cells[activeRow, (int)eColView.SHIP_QTY].Value;
            uidm.REMARK.Value         = shtDelivery.Cells[activeRow, (int)eColView.REMARK].Value;
            uidm.PACK_NO.Value        = shtDelivery.Cells[activeRow, (int)eColView.PACK_NO].Value;
            uidm.LOT_NO.Value         = shtDelivery.Cells[activeRow, (int)eColView.LOT_NO].Value;
            uidm.LOT_QTY.Value        = shtDelivery.Cells[activeRow, (int)eColView.LOT_QTY].Value;
            uidm.LOC_CD.Value         = shtDelivery.Cells[activeRow, (int)eColView.LOC_CD].Value;
            uidm.CURRENCY.Value       = shtDelivery.Cells[activeRow, (int)eColView.CURRENCY].Value;
            uidm.GROUP_TRANS_ID.Value = shtDelivery.Cells[activeRow, (int)eColView.GROUP_TRANS_ID].Value;
            uidm.REF_SLIP_NO2.Value   = shtDelivery.Cells[activeRow, (int)eColView.REF_SLIP_NO2].Value;
            TRN100_DeliveryEntry frmTRN100 = new TRN100_DeliveryEntry(uidm);

            if (frmTRN100.ShowDialog(this) == DialogResult.OK)
            {
                LoadData();
            }
        }
コード例 #2
0
        private void OnNew()
        {
            TRN100_DeliveryEntry frmTRN100 = new TRN100_DeliveryEntry();

            frmTRN100.ShowDialog();

            LoadData();
        }