Exemplo n.º 1
0
        public void ShowOutWareOrderWindow(int customId)
        {
            var custom = Customs.FirstOrDefault(_ => _.Id == customId);
            WishCustomOutOrder show  = new WishCustomOutOrder(custom);
            Window             onwer = Window.GetWindow(this);

            show.Owner = onwer;
            show.ShowDialog();
        }
Exemplo n.º 2
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public OutOrderView()
 {
     WareOutDetailTypeSource = new ObservableCollection <WareOutDetailType>();
     CustomSource            = new ObservableCollection <CustomViewModel>();
     TransferWare            = new RelayCommand <int>((customId) =>
     {
         CheckOutWare(customId);
     });
     MatchWareType = new RelayCommand(() =>
     {
         MatchWare();
     });
     SaveMatchWare = new RelayCommand(() =>
     {
         SaveWareType();
     });
     StartRead = new RelayCommand(() =>
     {
         StartReadRfid();
     });
     CreateOutOrder = new RelayCommand(() =>
     {
         CreateOutOrderInfo();
     });
     DeleteWareInfo = new RelayCommand <WareOutDetailType>((obj) =>
     {
         DeleteWareInfoByClick(obj);
     });
     ShowOutWareOrder = new RelayCommand <CustomViewModel>((obj) =>
     {
         var custom = _customs.FirstOrDefault(_ => _.Id == obj.Id);
         WishCustomOutOrder show = new WishCustomOutOrder(custom);
         Window onwer            = Window.GetWindow(this);
         show.Owner = onwer;
         show.ShowDialog();
     });
 }