12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- using System;
- using System.Collections.ObjectModel;
- using OpenSEMI.ClientBase;
- namespace VirgoUI.Client.Models.History.JobHistory
- {
- public class JobHistoryViewModel : BaseModel
- {
- public DateTime BeginDate { get; set; }
- public DateTime StartDateTime { get; set; }
- public DateTime EndDateTime { get; set; }
- public ObservableCollection<string> SourceLP { get; set; }
- public string SelectedValueLP { get; set; }
- public ModuleInfo FOUPA { get; set; }
- public JobHistoryItem Wafers { get; set; }
- #region Function
- public JobHistoryViewModel()
- {
- DisplayName = "Job History";
- var now = DateTime.Now;
- this.StartDateTime = now;
- this.BeginDate = now;
- this.StartDateTime = new DateTime(now.Year, now.Month, now.Day, 0, 0, 0, 0);
- this.EndDateTime = new DateTime(now.Year, now.Month, now.Day, 23, 59, 59, 999);
- SourceLP = new ObservableCollection<string>(new[] { "LP1", "LP2" });
- FOUPA = ModuleManager.ModuleInfos["LP1"];
- #region test data for job table
- Wafers = new JobHistoryItem();
- JobHistoryItem job1 = new JobHistoryItem() { JobNmae = "Job name 1", CarrierID = "CarrierID 1" };
- for (int i = 1; i <= 3; i++)
- {
- JobHistoryItem job = new JobHistoryItem() { JobNmae = job1.JobNmae + "_" + i.ToString(), CarrierID = job1.CarrierID + "_" + i.ToString() };
- job1.Children.Add(job);
- }
- JobHistoryItem job2 = new JobHistoryItem() { JobNmae = "Job name 2", CarrierID = "CarrierID 2" };
- for (int i = 1; i <= 2; i++)
- {
- JobHistoryItem job = new JobHistoryItem() { JobNmae = job2.JobNmae + "_" + i.ToString(), CarrierID = job2.CarrierID + "_" + i.ToString() };
- job2.Children.Add(job);
- }
- JobHistoryItem job3 = new JobHistoryItem() { JobNmae = "Job name 3", CarrierID = "CarrierID 3" };
- for (int i = 1; i <= 4; i++)
- {
- JobHistoryItem job = new JobHistoryItem() { JobNmae = job3.JobNmae + "_" + i.ToString(), CarrierID = job3.CarrierID + "_" + i.ToString() };
- job3.Children.Add(job);
- }
- Wafers.Children.Add(job1);
- Wafers.Children.Add(job2);
- Wafers.Children.Add(job3);
- #endregion
- }
- public void Query(string cjid, string carrierid, string loadport, string pjid, string sequencename)
- {
- string start = StartDateTime.ToString("yyyy/MM/dd HH:mm:ss.fff");
- string end = EndDateTime.ToString("yyyy/MM/dd HH:mm:ss.fff");
- }
- public void Export()
- {
- }
- #endregion
- }
- }
|