|
@@ -19,6 +19,7 @@ using System.Windows.Media;
|
|
|
using System.Windows.Media.Imaging;
|
|
|
using System.Windows.Navigation;
|
|
|
using System.Windows.Shapes;
|
|
|
+using FastReport.Data;
|
|
|
|
|
|
namespace PRSDesktop
|
|
|
{
|
|
@@ -186,10 +187,15 @@ namespace PRSDesktop
|
|
|
|
|
|
private void TemplateButton_Click(object sender, RoutedEventArgs e)
|
|
|
{
|
|
|
+ Dictionary<String, String>? group = null;
|
|
|
+ if (!String.IsNullOrWhiteSpace(Packet.Group.Code))
|
|
|
+ group = new Dictionary<string, string>() { { "Group.Code", Packet.Group.Code } };
|
|
|
+
|
|
|
var templates = new PopupList(
|
|
|
typeof(ManufacturingTemplate),
|
|
|
Guid.Empty,
|
|
|
- new string[] { nameof(ManufacturingTemplate.Code) });
|
|
|
+ new string[] { nameof(ManufacturingTemplate.Code) },
|
|
|
+ group);
|
|
|
if(templates.ShowDialog() == true)
|
|
|
{
|
|
|
Packet.Template.ID = templates.ID;
|