private void EditCustomFields_Click(object sender, EventArgs e) { if (m_SearchForm.SelectedRows.Count <= 0) { return; } DataRow row = m_SearchForm.SelectedRows[0]; string lotId = row["Lot ID"].ToString(); InventoryItem item = Scout.Core.Service <IInventoryService>() .GetItemById(Scout.Core.Data.GetUnitOfWork(), lotId); if (item != null && item.CustomFields != null) { ViewLoader.Instance() .CreateFormWithArgs <ItemCustomFieldsEditView>(false, lotId); } else { Scout.Core.UserInteraction.Dialog .ShowMessage("This item does not have any custom fields defined.", UserMessageType.Error); return; } }
private void resolveLink_OpenLink(object sender, DevExpress.XtraEditors.Controls.OpenLinkEventArgs e) { InventoryHoldDetails holdDetails = resultsView.GetFocusedRow() as InventoryHoldDetails; if (holdDetails == null) { Scout.Core.UserInteraction.Dialog.ShowMessage("Select a hold to resolve.", UserMessageType.Error); return; } if (holdDetails.Hold != null) { if (holdDetails.Hold.Status != HoldStatus.Open) { Scout.Core.UserInteraction.Dialog.ShowMessage ("This hold is " + holdDetails.HoldStatus + " and does not to be resolved.", UserMessageType.Information); return; } if (holdDetails.Hold.Reason == null || !holdDetails.Hold.Reason.Equals("MULTIPLE_CAPTURES")) { ViewLoader.Instance() .CreateFormWithArgs <HoldResolutionForm>(false, holdDetails.Hold); } else { ViewLoader.Instance().CreateFormWithArgs <ResolveMultipleCaptureView> (false, new object[] { holdDetails.Hold }); } // Refresh Search(); } }
public void ShowMaterialsTaskView() { if (m_consumptionView != null) { ViewLoader.Instance().ShowForm(m_consumptionView, false); } }
/// <summary> /// Loads the part family view /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void familyText_ButtonClick(object sender, ButtonPressedEventArgs e) { if (m_part.PartFamily != null) { ViewLoader.Instance() .CreateFormWithArgs <PartFamilyForm>(false, new object[] { m_part.PartFamily }); } }
private void loadDellPreAlertLink_OpenLink(object sender, OpenLinkEventArgs e) { if (!m_po.IsBlanket()) { Scout.Core.UserInteraction.Dialog.ShowMessage("This order already contains line items and a pre-alert cannot be imported.", UserMessageType.Error); return; } ViewLoader.Instance().CreateFormWithArgs <PreAlertImportForm>(false, m_po); }
/// <summary> /// Opens the component replacement form /// </summary> private void AddReplacementComponents() { RouteStationRepair repair = repairsView.GetFocusedRow() as RouteStationRepair; if (repair != null) { ViewLoader.Instance() .CreateFormWithArgs <RepairComponentReplacementForm>(false, repair); } }
private void OpenIncomingOrder() { DfileItem item = dfileItemsView.GetFocusedRow() as DfileItem; if (item != null) { ViewLoader.Instance().CreateFormWithArgs <mainOrderForm>( false, new object[] { item.IncomingOrder }); } }
private void saveAndNewButton_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (Save()) { VerifySaveClose(); if (m_order.CreatedFromTemplate) { FrontController.GetInstance().RunCommand(OrdersCommands.New_FromTemplate); } else { ViewLoader.Instance().CreateFormWithArgs <mainOrderForm>(true, OrderService.CreateOrderAsArg(m_order.OrderType)); } } }
private void resolveLink_OpenLink(object sender, OpenLinkEventArgs e) { var hold = capturedItemsView.GetFocusedRow() as InventoryHold; if (hold != null) { if (hold.Item.Hold == null) { Scout.Core.UserInteraction.Dialog.ShowMessage ("A valid hold was not found. Contact IT to resolve.", UserMessageType.Error); return; } ViewLoader.Instance() .CreateFormWithArgs <HoldResolutionForm>(false, hold); LoadUnresolvedHolds(); } }
private void ChangeSN_Click(object sender, EventArgs e) { if (m_SearchForm.SelectedRows.Count <= 0) { return; } DataRow row = m_SearchForm.SelectedRows[0]; string lotId = row["Lot ID"].ToString(); InventoryItem item = Scout.Core.Service <IInventoryService>() .GetItemById(Scout.Core.Data.GetUnitOfWork(), lotId); if (item != null) { ViewLoader.Instance() .CreateFormWithArgs <SerialNumberChangeForm>(false, item); } }
private void TransferShipments(object sender, EventArgs e) { if (m_searchForm.SelectedRows.Count != 2) { return; } List <Packlist> packlists = GetSelectedPacklists(Scout.Core.Data.GetUnitOfWork()).ToList(); // Packlists programs must match in order to transfer between the two. if (packlists[0].ShippingConfiguration.Id != packlists[1].ShippingConfiguration.Id) { Scout.Core.UserInteraction.Dialog .ShowMessage ("These packlists do not having matching shipping configurations.", UserMessageType.Error); return; } PacklistsContentsTransferView view = new PacklistsContentsTransferView(packlists[0], packlists[1]); ViewLoader.Instance().ShowForm(view, false); }
private void InitNewBatch() { ViewLoader.Instance() .CreateFormWithArgs <InventoryTransactionForm>(true, null); Close(); }
private void showUnitsInWipButton_ItemClick(object sender, ItemClickEventArgs e) { ViewLoader.Instance().CreateFormWithArgs <WipCaptureView>(false, m_capture); }
private void serviceSetupButton_ItemClick(object sender, ItemClickEventArgs e) { ViewLoader.Instance().CreateFormWithArgs <ServiceSetupForm>(false, null); }
public void ShowInspectionTaskView() { ViewLoader.Instance().ShowForm(m_inspectionView, false); }