private void btnSearch_Click(object sender, EventArgs e) { Cursor.Current = Cursors.WaitCursor; try { // Search will put the input mode to barcode mode inputMode = NumPadMode.Barcode; string selectedItemId = numPad1.EnteredValue; // Show the search dialog through the item service if (!StockCount.InternalApplication.Services.Item.ItemSearch(ref selectedItemId, 500)) { return; } numPad1.EnteredValue = selectedItemId; InventoryLookup(numPad1.EnteredValue); numPad1.Focus(); } finally { Cursor.Current = Cursors.Default; } }
private void SetInputMode(NumPadMode mode) { if (mode == NumPadMode.Barcode) { this.isEdit = false; PurchaseOrderReceiving.InternalApplication.Services.Peripherals.Scanner.ReEnableForScan(); numPad1.EntryType = NumpadEntryTypes.Barcode; numPad1.PromptText = ApplicationLocalizer.Language.Translate(103154); //Scan or enter barcode } else if (mode == NumPadMode.Quantity) { PurchaseOrderReceiving.InternalApplication.Services.Peripherals.Scanner.DisableForScan(); numPad1.EntryType = NumpadEntryTypes.Quantity; numPad1.PromptText = ApplicationLocalizer.Language.Translate(103155); //Scan or enter barcode } inputMode = mode; }
private void SetInputMode(NumPadMode mode) { if (mode == NumPadMode.Barcode) { StockCount.InternalApplication.Services.Peripherals.Scanner.ReEnableForScan(); numPad1.EntryType = NumpadEntryTypes.Barcode; numPad1.PromptText = ApplicationLocalizer.Language.Translate(103110); //Scan or enter barcode numPad1.EnteredValue = string.Empty; isEdit = false; } else { StockCount.InternalApplication.Services.Peripherals.Scanner.DisableForScan(); numPad1.EntryType = NumpadEntryTypes.Quantity; numPad1.PromptText = ApplicationLocalizer.Language.Translate(103111); //Scan or enter barcode numPad1.EnteredValue = string.Empty; } inputMode = mode; }