| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- using Comal.Classes;
- using PRSDesktop.Panels.Staging;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Data;
- using System.Windows.Documents;
- using System.Windows.Input;
- using System.Windows.Media;
- using System.Windows.Media.Imaging;
- using System.Windows.Navigation;
- using System.Windows.Shapes;
- namespace PRSDesktop
- {
- /// <summary>
- /// Interaction logic for ManufacturingPacketApprovalControl.xaml
- /// </summary>
- public partial class ManufacturingPacketApprovalControl : UserControl
- {
- private StagingSetout stagingsetout;
- public StagingSetout StagingSetout
- {
- get => stagingsetout;
- set
- {
- stagingsetout = value;
- packetGrid.StagingSetout = value;
- }
- }
- public ManufacturingPacketApprovalControl()
- {
- InitializeComponent();
- }
- private void CreatePacketButton_Click(object sender, RoutedEventArgs e)
- {
- var packet = new StagingManufacturingPacket();
- packet.StagingSetout.ID = stagingsetout.ID;
- packet.Job.ID = stagingsetout.JobLink.ID;
- var page = new StagingManufacturingPacketGrid();
- if (page.EditItems(new[] { packet }))
- packetGrid.Refresh(false, true);
- }
- }
- }
|