예제 #1
0
        void OpenItem(int id)
        {
            _edit   = true;
            _itemId = id;
            Inventory inventory = _inventoryRepository.GetById(_itemId);

            OpenGroup(inventory.GroupId.Value);
            pbItemPicture.Image   = _pictures.RetrievePicture(inventory.Picture.ToArray());
            txtItemCode.Text      = inventory.ItemCode;
            txtItemName.Text      = inventory.ItemName;
            txtBarcode.Text       = inventory.Barcode;
            txtUnit.Text          = inventory.Unit;
            txtPurchasePrice.Text = inventory.PurchasePrice.ToString();
            txtSalePrice.Text     = inventory.SalePrice.ToString();
            txtPurchaseTax.Text   = inventory.PurchaseTax.ToString();
            txtSaleTax.Text       = inventory.SaleTax.ToString();
        }