Example #1
0
        public override void OnAddNew()
        {
            base.OnAddNew();
            TRN300_MovePartEntry dialog = new TRN300_MovePartEntry();

            if (dialog.ShowDialog(this) == DialogResult.OK)
            {
                LoadData(dtPeriodBegin.NZValue, dtPeriodEnd.NZValue);
            }
        }
Example #2
0
        private void OpenMovePartEntryScreen()
        {
            if (!ActivePermission.Edit)
            {
                return;
            }

            MovePartUIDM uidm = new MovePartUIDM();

            uidm.CUSTOMER_CD       = new NZString(null, shtMovePartList.GetValue(shtMovePartList.ActiveRowIndex, (int)eColView.CUSTOMER_CD));
            uidm.CUSTOMER_NAME     = new NZString(null, shtMovePartList.GetValue(shtMovePartList.ActiveRowIndex, (int)eColView.CUSTOMER_NAME));
            uidm.FROM_PROCESS      = new NZString(null, shtMovePartList.GetValue(shtMovePartList.ActiveRowIndex, (int)eColView.FROM_PROCESS));
            uidm.FROM_PROCESS_NAME = new NZString(null, shtMovePartList.GetValue(shtMovePartList.ActiveRowIndex, (int)eColView.FROM_PROCESS_NAME));
            uidm.LOT_NO            = new NZString(null, shtMovePartList.GetValue(shtMovePartList.ActiveRowIndex, (int)eColView.LOT_NO));
            uidm.MASTER_NO         = new NZString(null, shtMovePartList.GetValue(shtMovePartList.ActiveRowIndex, (int)eColView.MASTER_NO));
            uidm.MOVE_DATE         = new NZDateTime(null, shtMovePartList.GetValue(shtMovePartList.ActiveRowIndex, (int)eColView.MOVE_DATE));
            uidm.MOVE_NO           = new NZString(null, shtMovePartList.GetValue(shtMovePartList.ActiveRowIndex, (int)eColView.MOVE_NO));
            uidm.MOVE_QTY          = new NZDecimal(null, shtMovePartList.GetValue(shtMovePartList.ActiveRowIndex, (int)eColView.MOVE_QTY));
            uidm.PART_NO           = new NZString(null, shtMovePartList.GetValue(shtMovePartList.ActiveRowIndex, (int)eColView.PART_NO));
            uidm.REASON            = new NZString(null, shtMovePartList.GetValue(shtMovePartList.ActiveRowIndex, (int)eColView.REASON));
            uidm.REASON_NAME       = new NZString(null, shtMovePartList.GetValue(shtMovePartList.ActiveRowIndex, (int)eColView.REASON_NAME));
            uidm.REMARK            = new NZString(null, shtMovePartList.GetValue(shtMovePartList.ActiveRowIndex, (int)eColView.REMARK));
            uidm.SHIFT_CLS         = new NZString(null, shtMovePartList.GetValue(shtMovePartList.ActiveRowIndex, (int)eColView.SHIFT_CLS));
            uidm.SHIFT_CLS_NAME    = new NZString(null, shtMovePartList.GetValue(shtMovePartList.ActiveRowIndex, (int)eColView.SHIFT_CLS_NAME));
            uidm.TO_PROCESS        = new NZString(null, shtMovePartList.GetValue(shtMovePartList.ActiveRowIndex, (int)eColView.TO_PROCESS));
            uidm.TO_PROCESS_NAME   = new NZString(null, shtMovePartList.GetValue(shtMovePartList.ActiveRowIndex, (int)eColView.TO_PROCESS_NAME));
            uidm.TRANS_ID_FROM     = new NZString(null, shtMovePartList.GetValue(shtMovePartList.ActiveRowIndex, (int)eColView.TRANS_ID_FROM));
            uidm.TRANS_ID_TO       = new NZString(null, shtMovePartList.GetValue(shtMovePartList.ActiveRowIndex, (int)eColView.TRANS_ID_TO));
            uidm.WEIGHT            = new NZDecimal(null, shtMovePartList.GetValue(shtMovePartList.ActiveRowIndex, (int)eColView.WEIGHT));

            TRN300_MovePartEntry dialog = new TRN300_MovePartEntry(uidm);

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