public GenratePurchaseSalesOrderChildWindow(GeneratePurchaseViewModel viewModel)
        {
            InitializeComponent();

            DataContext = viewModel;
            _viewModel  = viewModel;
        }
 public GeneratePurchaseChild(GeneratePurchaseViewModel viewModel, bool Collect = false)
 {
     InitializeComponent();
     DataContext = viewModel;
     viewModel.GetMaindata();
     collect = Collect;
 }
 public PurchaseOrderDetailChild(GeneratePurchaseViewModel viewModel, int i)
 {
     InitializeComponent();
     DataContext = viewModel;
     _temp       = i;
     if (i == 1)
     {
         DetailGrid2.Visibility = Visibility.Collapsed;
         viewModel.GetDetailData();
     }
     else
     {
         DetailGrid.Visibility = Visibility.Collapsed;
         viewModel.GetDetail2Data();
     }
 }
Esempio n. 4
0
 public GeneratePurchase()
 {
     InitializeComponent();
     _viewModel  = LayoutRoot.DataContext as GeneratePurchaseViewModel;
     DataContext = _viewModel;
 }
Esempio n. 5
0
 public PurchaseOrderBomChild(GeneratePurchaseViewModel viewModel)
 {
     InitializeComponent();
     DataContext = viewModel;
     viewModel.GetPurchaseBom();
 }