public InventoryTransactionView(InventoryTransaction transaction)
        {
            InitializeComponent();
            this.Name = "TransactionViewNewTransaction";
            isNewTransaction = false;
            displayOrHideForm();
            lockItemFields();
            mTransaction = transaction;
            LoadTransaction();

        }
 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);
 }
 public InventoryTransactionView(Site site)
 {
     InitializeComponent();
     this.Name = "TransactionViewNewTransaction";
     isNewTransaction = true;
     txtReciever.Text = site.GetSiteName();
     displayOrHideForm();
     lockItemFields();
     ClearFields();
     db.BeginTransaction();
     mTransaction = new InventoryTransaction(site.GetSiteID());
     mTransaction.SetClientType(InventoryTransaction.ClientType.Builder);
 }
 public InventoryTransactionView()
 {
     InitializeComponent();
     this.Name = "TransactionViewNewTransaction";
     isNewTransaction = true;
     displayOrHideForm();
     lockItemFields();
     ClearFields();
     db.BeginTransaction();
     isRestock = true;
     txtReciever.Text = "Inventory";
     mTransaction = new InventoryTransaction("0");
     mTransaction.SetClientType(InventoryTransaction.ClientType.Inventory);
 }