Beispiel #1
0
        private void ButtonDelivery_Click(object sender, RoutedEventArgs e)
        {
            ProcessOrderColorDetail    processOrderColorDetail            = (ProcessOrderColorDetail)(DataGridOrderColorFactoryShippingDetail.SelectedItem);
            ProcessOrderFlowDateDetail LastProcessOrderFlowDateDetailItem = DataGridProcessOrderFlowDateDetail.Items.Cast <ProcessOrderFlowDateDetail>().Last();

            ProcessOrderFlowDateDetail processOrderFlowDateDetail = ProcessOrderFlowDateDetail == null ? LastProcessOrderFlowDateDetailItem : ProcessOrderFlowDateDetail;

            DeliveryNumberCheckDialog deliveryNumberCheckDialog = new DeliveryNumberCheckDialog(processOrderFlowDateDetail.Name, ProcessOrder.OrderString, ProcessOrder.Fabric, processOrderColorDetail);

            deliveryNumberCheckDialog.Show();
            deliveryNumberCheckDialog.Closed += DeliveryNumberCheckDialogClosed;
        }
Beispiel #2
0
        private void ButtonAddFactory_Click(object sender, RoutedEventArgs e)
        {
            Factory = ComboBoxFactoryNames.SelectedItem as Factory;
            ProcessOrderPage processOrderPage = (ProcessOrderPage)this.DataContext;

            Factory      factory      = (Factory)ComboBoxFactoryNames.SelectedItem;
            ProcessOrder processOrder = (ProcessOrder)processOrderPage.DataGridProcessOrder.SelectedItem;
            IEnumerable <ProcessOrderColorFactoryShippingDetail> processOrderColorDetails = processOrderPage.DataGridOrderColorFactoryShippingDetail.SelectedItems.Cast <ProcessOrderColorFactoryShippingDetail>();
            ProcessOrderColorDetail processOrderColorDetail = (ProcessOrderColorDetail)processOrderPage.DataGridOrderColorFactoryShippingDetail.SelectedItem;


            int count = ProcessModule.NewProcessOrderFlow(new ProcessOrderFlow {
                OrderNo = processOrder.OrderNo, FactoryID = factory.FactoryID,
            }
                                                          , processOrderColorDetails.Select(s => s.OrderColorDetailNo));

            processOrderPage.RefrashDataGridProcessOrderFlowDateDetail(new List <int> {
                processOrderColorDetail.OrderColorDetailNo
            });
            this.Close();
        }
Beispiel #3
0
 public DeliveryNumberCheckDialog(string factoryName, string orderString, string fabric, ProcessOrderColorDetail processOrderQuantity)
 {
     InitializeComponent();
     ProcessOrderDelivery = new ProcessOrderDelivery
     {
         //StorageNumber = textileColorInventory?.CountInventory ?? 0,
         //StorageSpace = textileColorInventory?.StorageSpaces ?? string.Empty,
         FactoryName = factoryName,
         OrderString = orderString,
         Fabric      = fabric,
         Color       = processOrderQuantity.Color,
         Number      = processOrderQuantity.Quantity
     };
     TextBoxFactoryName.Text    = factoryName;
     TextBoxDeliveryNumber.Text = processOrderQuantity.Quantity.ToString();
     TextBlockFabric.Text       = string.Concat("布種:", fabric);
     TextBlockColor.Text        = string.Concat("顏色:", processOrderQuantity.Color);
 }