|
@@ -659,6 +659,7 @@ namespace PRSDesktop
|
|
|
}
|
|
}
|
|
|
private SetupActionItem AddSetupAction(Fluent.RibbonTabItem tab, string header, Action action, Bitmap? image)
|
|
private SetupActionItem AddSetupAction(Fluent.RibbonTabItem tab, string header, Action action, Bitmap? image)
|
|
|
=> AddSetupAction(GetSetupActionList(tab), header, action, image);
|
|
=> AddSetupAction(GetSetupActionList(tab), header, action, image);
|
|
|
|
|
+
|
|
|
private SetupActionItem? AddSetupAction(Fluent.RibbonTabItem tab, string header, Action action, Bitmap? image, bool canView)
|
|
private SetupActionItem? AddSetupAction(Fluent.RibbonTabItem tab, string header, Action action, Bitmap? image, bool canView)
|
|
|
{
|
|
{
|
|
|
if (!canView)
|
|
if (!canView)
|
|
@@ -1210,12 +1211,7 @@ namespace PRSDesktop
|
|
|
new FrameworkElement[] { ConsignmentButton });
|
|
new FrameworkElement[] { ConsignmentButton });
|
|
|
|
|
|
|
|
|
|
|
|
|
- AddSetupAction(LogisticsTab, "Requisition Destinations", RequisitionDestinations_Click, PRSDesktop.Resources.milestone,
|
|
|
|
|
- Security.CanView<RequisitionDestination>());
|
|
|
|
|
- AddSetupAction(LogisticsTab, "Delivery Types", DeliveryTypesButton_Click, PRSDesktop.Resources.truck,
|
|
|
|
|
- Security.CanView<ConsignmentType>());
|
|
|
|
|
- AddSetupAction(LogisticsTab, "Consignment Types", ConsignmentTypesButton_Click, PRSDesktop.Resources.service,
|
|
|
|
|
- Security.CanView<DeliveryType>());
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
//LogisticsActions.IsLauncherButtonVisible = Security.IsAllowed<CanCustomiseModules>();
|
|
//LogisticsActions.IsLauncherButtonVisible = Security.IsAllowed<CanCustomiseModules>();
|
|
|
//LogisticsReports.IsLauncherButtonVisible = Security.IsAllowed<CanDesignReports>();
|
|
//LogisticsReports.IsLauncherButtonVisible = Security.IsAllowed<CanDesignReports>();
|
|
@@ -2844,29 +2840,13 @@ namespace PRSDesktop
|
|
|
LoadWindow<ConsignmentsPanel>((Fluent.Button)sender);
|
|
LoadWindow<ConsignmentsPanel>((Fluent.Button)sender);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- private void ConsignmentTypesButton_Click()
|
|
|
|
|
- {
|
|
|
|
|
- var list = new MasterList(typeof(ConsignmentType));
|
|
|
|
|
- list.ShowDialog();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
private void PurchaseOrderCategoriesButton_Click()
|
|
private void PurchaseOrderCategoriesButton_Click()
|
|
|
{
|
|
{
|
|
|
var list = new MasterList(typeof(PurchaseOrderCategory));
|
|
var list = new MasterList(typeof(PurchaseOrderCategory));
|
|
|
list.ShowDialog();
|
|
list.ShowDialog();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- private void RequisitionDestinations_Click()
|
|
|
|
|
- {
|
|
|
|
|
- var list = new MasterList(typeof(RequisitionDestination));
|
|
|
|
|
- list.ShowDialog();
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
- private void DeliveryTypesButton_Click()
|
|
|
|
|
- {
|
|
|
|
|
- var list = new MasterList(typeof(DeliveryType));
|
|
|
|
|
- list.ShowDialog();
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
private void ConfigureModules_Click(object sender, RoutedEventArgs e)
|
|
private void ConfigureModules_Click(object sender, RoutedEventArgs e)
|
|
|
{
|
|
{
|