public DDPerformanceViewModel(UserInformation userInformation, WPF.MDI.MdiChild mdiChild, System.Windows.Controls.DataGrid dgDDPerformance)
 {
     try
     {
         _userInformation                   = userInformation;
         _mdiChild                          = mdiChild;
         _ddPerformanceBll                  = new DDPerformanceBll(_userInformation);
         this.costSheetReceivedCommand      = new DelegateCommand(this.costSheetReceived);
         this.costSheetCompletedCommand     = new DelegateCommand(this.costSheetCompleted);
         this.partNumbersAllottedCommand    = new DelegateCommand(this.partNumbersAllotted);
         this.documentsReleasedCommand      = new DelegateCommand(this.documentsReleased);
         this.samplesSubmittedCommand       = new DelegateCommand(this.samplesSubmitted);
         this.refreshCommand                = new DelegateCommand(this.Refresh);
         this.performanceSummaryCommand     = new DelegateCommand(this.PerformanceSummary);
         this.mOPCommand                    = new DelegateCommand(this.MOPGraph);
         this.showECNCommand                = new DelegateCommand(this.ShowECN);
         this.showPCNCommand                = new DelegateCommand(this.ShowPCN);
         this.showDesignersCommand          = new DelegateCommand(this.ShowDesigners);
         this.printReportCommand            = new DelegateCommand(this.PrintReport);
         this.showProductInformationCommand = new DelegateCommand(this.ShowProductInformation);
         StartDate                          = Convert.ToDateTime("01/" + DateTime.Now.ToString("MM/yyyy"));
         EndDate         = DateTime.Now;
         _perfOption     = performanceOption.CostSheetReceived;
         DgDDPerformance = dgDDPerformance;
         SetCombo();
         Refresh();
     }
     catch (Exception ex)
     {
         throw ex.LogException();
     }
 }
 private void samplesSubmitted()
 {
     try
     {
         _perfOption = performanceOption.SampleSubmitted;
         Refresh();
     }
     catch (Exception ex)
     {
         throw ex.LogException();
     }
 }
 private void documentsReleased()
 {
     try
     {
         _perfOption = performanceOption.DocumentReleased;
         Refresh();
     }
     catch (Exception ex)
     {
         throw ex.LogException();
     }
 }
 private void partNumbersAllotted()
 {
     try
     {
         _perfOption = performanceOption.PartNumberAllotted;
         Refresh();
     }
     catch (Exception ex)
     {
         throw ex.LogException();
     }
 }
 private void costSheetReceived()
 {
     try
     {
         _perfOption = performanceOption.CostSheetReceived;
         Refresh();
     }
     catch (Exception ex)
     {
         throw ex.LogException();
     }
 }
Example #6
0
 public DDPerformanceSummaryViewModel(UserInformation userInformation, WPF.MDI.MdiChild mdiChild, System.Windows.Controls.DataGrid dgDDPerformance)
 {
     try
     {
         _userInformation  = userInformation;
         _mdiChild         = mdiChild;
         _ddPerformanceBll = new DDPerformanceBll(_userInformation);
         DDPerformanceSummaryModelReport      = new DDPerformanceSummaryModel();
         this.awaitingPartNoAllocationCommand = new DelegateCommand(this.AwaitingPartNoAllocation);
         this.samplesSubmittedCommand         = new DelegateCommand(this.SamplesSubmitted);
         this.documentsReleasedCommand        = new DelegateCommand(this.DocumentsReleased);
         this.partNosAllottedCommand          = new DelegateCommand(this.PartNosAllotted);
         DgDDPerformance    = dgDDPerformance;
         _performanceOption = performanceOption.Dummy;
         GetDummyData();
         GetDDPerformanceSummary();
         HeaderDetails = "Result Lists";
     }
     catch (Exception ex)
     {
         throw ex.LogException();
     }
 }
 private void costSheetCompleted()
 {
     _perfOption = performanceOption.CostSheetCompleted;
     Refresh();
 }