public DebitNoteView(DebitNoteViewModel model)
 {
     InitializeComponent();
     this.debitViewModel = model;
     //  this.pandsViewModel = PurchaseQuotationViewModel.GetInstance();
     this.DataContext = this.debitViewModel;
     if (debitViewModel.PQDetailsEntity != null)
     {
         this.grdPandS.ItemsSource = this.debitViewModel.PQDetailsEntity;
     }
     CustomGridLines.ItemsSource = DataGridTableCollection.GridLines(8, 50).AsEnumerable();
 }
        public DebitNoteReportViewer()
        {
            InitializeComponent();
            Type type = typeof(DebitNoteViewModel);

            //SalesInvoiceViewModel instance = (SalesInvoiceViewModel)Activator.CreateInstance(type);
            object obj = System.Runtime.Serialization.FormatterServices
                         .GetUninitializedObject(type);

            _ViewModel = (DebitNoteViewModel)obj;

            this.DataContext = obj;
        }
 public DebitNoteView(DebitNoteViewModel model)
 {
     InitializeComponent();
     this.debitViewModel = model;
     //  this.pandsViewModel = PurchaseQuotationViewModel.GetInstance();
     this.DataContext = this.debitViewModel;
     if (debitViewModel.PQDetailsEntity != null)
     {
         this.grdPandS.ItemsSource = this.debitViewModel.PQDetailsEntity;
     }
     if (debitViewModel.MustCompare == true)
     {
         SupplierCNDatepicker.IsEnabled = true;
         PART_TextBox.IsReadOnly        = false;
     }
     else
     {
         SupplierCNDatepicker.IsEnabled = false;
         PART_TextBox.IsReadOnly        = true;
     }
     CustomGridLines.ItemsSource = DataGridTableCollection.GridLines(8, 50).AsEnumerable();
 }
 public DebitNoteReportViewer(DebitNoteViewModel model) : this()
 {
     InitializeComponent();
     this.DataContext = _ViewModel;
     _ViewModel       = model;
 }
 public IActionResult DebitNote(DebitNoteViewModel creditNoteViewModel)
 {
     return(View());
 }