12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- using System.Windows;
- using MECF.Framework.Common.CommonData;
- using OpenSEMI.ClientBase;
- namespace VirgoUI.Client.Models.Operate.WaferAssociation
- {
- public class ModuleLotCompleteItem : NotifiableItem
- {
- public string Module { get; set; }
- public string LotID { get; set; }
- public string WaferSize { get; set; }
- public string WaferNumber { get; set; }
- public string StartTime { get; set; }
- public string EndTime { get; set; }
- public void Clear()
- {
- Module = "";
- LotID = "";
- WaferSize = "";
- WaferNumber = "";
- StartTime = "";
- EndTime = "";
- }
- }
- public class LotCompleteDialogViewModel : DialogViewModel<string>
- {
- public bool IsDisplayed { get; set; }
- public ModuleLotCompleteItem LP1LotComplete { get; set; }
- public ModuleLotCompleteItem LP2LotComplete { get; set; }
- public Visibility LP1Visibility { get; set; }
- public Visibility LP2Visibility { get; set; }
- public LotCompleteDialogViewModel()
- {
- LP1LotComplete = new ModuleLotCompleteItem();
- LP2LotComplete = new ModuleLotCompleteItem();
- LP1Visibility = Visibility.Hidden;
- LP2Visibility = Visibility.Hidden;
- }
- public void SetVisible(string module, bool isVisible)
- {
- if (module == "LP1")
- {
- LP1Visibility = isVisible ? Visibility.Visible : Visibility.Hidden;
- NotifyOfPropertyChange(nameof(LP1Visibility));
- }
- if (module == "LP2")
- {
- LP2Visibility = isVisible ? Visibility.Visible : Visibility.Hidden;
- NotifyOfPropertyChange(nameof(LP2Visibility));
- }
- }
- public void OK()
- {
- IsCancel = false;
- IsDisplayed = false;
- SetVisible("LP1", false);
- SetVisible("LP2", false);
- TryClose(true);
- }
- }
- }
|