public AdjustDebitNoteFormView(AdjustDebitNoteViewModel model)
        {
            InitializeComponent();

            this._ViewModel = model;
            //  this.pandsViewModel = PurchaseQuotationViewModel.GetInstance();
            this.DataContext = this._ViewModel;
            if (_ViewModel.PQDetailsEntity != null)
            {
                //this.dg1.ItemsSource = this._ViewModel.PQDetailsEntity;
            }
            if (_ViewModel.MustCompare == true)
            {
                AdjustDebitdDatePicker.IsEnabled = false;
                PART_TextBox.IsReadOnly          = true;
                AmountAdjust.IsReadOnly          = true;
            }
            else
            {
                AdjustDebitdDatePicker.IsEnabled = true;
                PART_TextBox.IsReadOnly          = false;
                AmountAdjust.IsReadOnly          = false;
            }
            CustomGridLines.ItemsSource = DataGridTableCollection.GridLines(6, 50).AsEnumerable();
        }
        public AdjustDebitNoteFormView(AdjustDebitNoteViewModel model)
        {
            InitializeComponent();

            this._ViewModel = model;
            //  this.pandsViewModel = PurchaseQuotationViewModel.GetInstance();
            this.DataContext = this._ViewModel;
            if (_ViewModel.PQDetailsEntity != null)
            {
                //this.dg1.ItemsSource = this._ViewModel.PQDetailsEntity;
            }
            CustomGridLines.ItemsSource = DataGridTableCollection.GridLines(6, 50).AsEnumerable();
        }