public LotRepairsView(Lot pLot)
 {
     InitializeComponent();
     mLot = pLot;
     LoadRepairs();
     this.Name = "RepairsView" + mLot.GetLotID();
 }
        public LotRepairView(Lot pLot)
        {
            InitializeComponent();
            txtLotNumber.Text = "" + pLot.GetLotNumber();
            txtAddress.Text = pLot.GetAddress();
            txtModel.Text = pLot.GetLotType();

            mLot = pLot;

            cmdSaveEdit.IsEnabled = false;
            cmdSaveEdit.Content = saveBtnTxt;
            isNew = true;
            this.Name = "LotRepairViewNewRepair";
            try
            {
                mRepair = new LotRepair(pLot.GetLotID());
                db.BeginTransaction();
            }
            catch (Exception ex)
            {
                LockFields();
                cmdSaveEdit.IsEnabled = false;
                MessageBox.Show("Loading New Lot Repair - " + msgCodes.GetString("M2102") + ex.Message, "Error - 2102", MessageBoxButton.OK, MessageBoxImage.Error);
                return;
            }
            isModified = false;
            LoadRepairActions();

        }
 public InventoryTransactionView(Lot lot)
 {
     InitializeComponent();
     this.Name = "TransactionViewNewTransaction";
     isNewTransaction = true;
     txtReciever.Text = lot.LotDisplayName();
     displayOrHideForm();
     lockItemFields();
     ClearFields();
     db.BeginTransaction();
     mTransaction = new InventoryTransaction(lot.GetLotID());
     mTransaction.SetClientType(InventoryTransaction.ClientType.Client);
 }
예제 #4
0
        public LotView(Lot lot)
        {
            //This represents if the lot is being provided
            InitializeComponent();
            mLot = lot;
            this.Name = "LotView" + mLot.GetLotID();
            lockForm();
            populateFields();
            isNew = false;

            totalPortions[0] = mLot.GetRoughInValue();
            totalPortions[1] = mLot.GetServiceValue();
            totalPortions[2] = mLot.GetFinalValue();

        }