private void initializeReceiptModel() { _receipt_model = new ReceiptModel() { ItemId = _receipt.ItemId, VendorId = _receipt.VendorId, OfficialReceipt = _receipt.OfficialReceipt, Price = _receipt.Price, Quantity = _receipt.Quantity }; }
public uc_add_item_details(frm_fas main, ItemModel itemModel, ReceiptModel receiptModel) { InitializeComponent(); _main = main; _item_model = itemModel; _receipt_model = receiptModel; AutoCompleteModel(); GetCategories(); SetItemDetails(); }
private ReceiptModel InitializeReceipt() { /* * We will pass this everytime * the user clicks the Back button */ _receipt_model = new ReceiptModel() { ItemId = _item_id, VendorId = Convert.ToInt32(cb_vendors.SelectedValue.ToString()), OfficialReceipt = txt_official_receipt.Text, Price = Convert.ToDecimal(txt_price.Text.ToString()), Quantity = Convert.ToInt32(numericUpDown_quantity.Value) }; return(_receipt_model); }
public uc_item_receipt(frm_fas main, Items items, ReceiptModel receiptModel, List <Serial> serial_list) { InitializeComponent(); txt_price.Text = "0.00"; InitializeVendorList(); _main = main; _items = items; _receipt_model = receiptModel; _serial_list = serial_list; InitializeItemModel(); InitializeReceiptDetails(); if (_item_model.HasSerial == 0) { btn_next.Text = "Save"; } }
public uc_item_receipt(frm_fas main, Items items, ReceiptModel receiptModel) { Console.WriteLine("No Serial Set"); InitializeComponent(); txt_price.Text = "0.00"; InitializeVendorList(); _main = main; _items = items; _receipt_model = receiptModel; InitializeItemModel(); InitializeReceiptDetails(); if (_items.HasSerial == 0) { btn_next.Text = "Save"; } }