public MastersController() { result = new Result(); countryUtil = new CountryUtil(); stateUtil = new StateUtil(); cityUtil = new CityUtil(); }
public JsonController() { Result = new Result(); countryUtil = new CountryUtil(); stateUtil = new StateUtil(); areaUtil = new AreaUtil(); userUtil = new UserUtil(); subareaUtil = new SubAreaUtil(); appointmentTypeUtil = new AppointmentTypeUtil(); currencyUtil = new CurrencyUtil(); dateFormatUtil = new DateFormatUtil(); languageUtil = new LanguageUtil(); religionUtil = new ReligionUtil(); durationDaysUtil = new DurationDaysUtil(); sourceUtil = new SourceUtil(); packageUtil = new PackageUtil(); cityUtil = new CityUtil(); //scoreColumnUtil = new ScoreColumnUtil(); nationalityUtil = new NationalityUtil(); timeFormatUtil = new TimeFormatUtil(); industryUtil = new IndustryUtil(); paymentModeUtil = new PaymentModeUtil(); applicationTemplatePlaceHolderUtil = new ApplicationTemplatePlaceHolderUtil(); jobTypeUtill = new JobTypeUtill(); jobStatusUtill = new JobStatusUtill(); packageTypeUtill = new PackageTypeUtill(); paperTypeUtill = new PaperTypeUtill(); paperSubTypeUtill = new PaperSubTypeUtill(); paymentStatusUtill = new PaymentStatusUtill(); currencyUtil = new CurrencyUtil(); leminationTypeUtill = new LeminationTypeUtill(); }
public MastersController() { result = new Result(); countryUtil = new CountryUtil(); stateUtil = new StateUtil(); cityUtil = new CityUtil(); areaUtil = new AreaUtil(); subareaUtil = new SubAreaUtil(); appointmentTypeUtil = new AppointmentTypeUtil(); currencyUtil = new CurrencyUtil(); dateFormatUtil = new DateFormatUtil(); documentTypeUtil = new DocumentTypeUtil(); languageUtil = new LanguageUtil(); religionUtil = new ReligionUtil(); nationalityUtil = new NationalityUtil(); sourceUtil = new SourceUtil(); durationDaysUtil = new DurationDaysUtil(); packageUtil = new PackageUtil(); // scoreColumnUtil = new ScoreColumnUtil(); timeFormatUtil = new TimeFormatUtil(); industryUtil = new IndustryUtil(); paymentModeUtil = new PaymentModeUtil(); applicationTemplatePlaceHolderUtil = new ApplicationTemplatePlaceHolderUtil(); }
public JsonController() { Result = new Result(); countryUtil = new CountryUtil(); stateUtil = new StateUtil(); userUtil = new UserUtil(); }
public static void UpdateAlignerStatus(string name, string status) { Form manual = Application.OpenForms["FormManual"]; if (manual == null) { return; } if (manual.InvokeRequired) { UpdateAlignerStatus_D ph = new UpdateAlignerStatus_D(UpdateAlignerStatus); manual.BeginInvoke(ph, name, status); } else { StateUtil.Init(); AlignerState aligner = StateUtil.GetDeviceState(name) != null ? (AlignerState)StateUtil.GetDeviceState(name) : null; if (aligner == null) { return; } //update robot status switch (name) { case "Aligner01": Control tbA1Status = manual.Controls.Find("tbA1Status", true).FirstOrDefault() as Control; tbA1Status.Text = status; switch (status) { case "RUN": tbA1Status.BackColor = Color.Lime; break; case "IDLE": tbA1Status.BackColor = Color.Yellow; break; } break; case "Aligner02": Control tbA2Status = manual.Controls.Find("tbA2Status", true).FirstOrDefault() as Control; tbA2Status.Text = status; switch (status) { case "RUN": tbA2Status.BackColor = Color.Lime; break; case "IDLE": tbA2Status.BackColor = Color.Yellow; break; } break; } } }
public CompanySettingController() { CompanyId = SessionUtil.GetCompanyID(); result = new Result(); companyUtil = new CompanyUtil(); stateUtil = new StateUtil(); countryUtil = new CountryUtil(); packageUtil = new PackageUtil(); }
public void getStatus() { StateUtil.Init(); foreach (Node each in NodeManagement.GetList()) { string Message = ""; try { IController Ctrl = ControllerManagement.Get(each.Controller); //string ctrl_status = ControllerManagement.Get(each.Controller).Status; string ctrl_status = ControllerManagement.Get(each.Controller) != null?ControllerManagement.Get(each.Controller).GetStatus() : ""; if (ctrl_status.Equals("Connected") && each.ByPass == false) { string seq = ""; Transaction txn = new Transaction(); if (each.Brand.ToUpper().Equals("KAWASAKI")) { seq = Ctrl.GetNextSeq(); } else { seq = ""; } switch (each.Type) { case "ROBOT": txn.Method = Transaction.Command.RobotType.GetStatus; break; case "ALIGNER": txn.Method = Transaction.Command.AlignerType.GetStatus; break; case "LOADPORT": txn.Method = Transaction.Command.LoadPortType.ReadStatus; break; } txn.FormName = "FormStatus"; txn.AdrNo = each.AdrNo; txn.Seq = seq; if (!txn.Method.Equals("")) { each.SendCommand(txn, out Message); } } } catch (Exception e) { logger.Error(e.StackTrace); } } }
public void ForceUpdate() { this._changed = false; TState fixedState; lock (this._state) { // Prevent writing state object fixedState = (TState)this._state.Clone(); // The function may slow StateUtil.ResetStateChanged(this._state); } this.Subject.OnNext(fixedState); }
public void ForceUpdate() { this._changed = false; TState fixedState; lock (this._state) { // Prevent writing state object var action = this._state.LastAction; fixedState = (TState)this._state.Clone(); fixedState.LastAction = action; // The function may slow StateUtil.ResetStateChanged(this._state); } if (this._subject == null) { this._subject = new Subject <TState>(); } this._subject.OnNext(fixedState); }
public FinancialController(LabContext context, ILogger <FinancialController> logger, StateUtil state) { _context = context; _logger = logger; util = state; }
public static void UpdateStatus(string device) { Form manual = Application.OpenForms["FormManual"]; if (manual == null) { return; } if (manual.InvokeRequired) { UpdateStatus_D ph = new UpdateStatus_D(UpdateStatus); manual.BeginInvoke(ph, device); } else { StateUtil.Init(); AlignerState aligner = StateUtil.GetDeviceState(device) != null ? (AlignerState)StateUtil.GetDeviceState(device) : null; if (aligner == null) { return; } Control tbStatus = null; Control tbServo = null; Control tbWaferSensor = null; Control tbVacSolenoid = null; NumericUpDown nudSpeed = null; Control tbError = null; ComboBox cbMode = null; if (device.Equals("ALIGNER01")) { tbStatus = manual.Controls.Find("tbA1Status", true).FirstOrDefault() as Control; tbServo = manual.Controls.Find("tbA1Servo", true).FirstOrDefault() as Control; tbWaferSensor = manual.Controls.Find("tbA1WaferSensor", true).FirstOrDefault() as Control; tbVacSolenoid = manual.Controls.Find("tbA1VacSolenoid", true).FirstOrDefault() as Control; nudSpeed = manual.Controls.Find("nudA1Speed", true).FirstOrDefault() as NumericUpDown; tbError = manual.Controls.Find("tbA1Error", true).FirstOrDefault() as Control; cbMode = manual.Controls.Find("cbA1Mode", true).FirstOrDefault() as ComboBox; } else if (device.Equals("ALIGNER02")) { tbStatus = manual.Controls.Find("tbA2Status", true).FirstOrDefault() as Control; tbServo = manual.Controls.Find("tbA2Servo", true).FirstOrDefault() as Control; tbWaferSensor = manual.Controls.Find("tbA2WaferSensor", true).FirstOrDefault() as Control; tbVacSolenoid = manual.Controls.Find("tbA2VacSolenoid", true).FirstOrDefault() as Control; nudSpeed = manual.Controls.Find("nudA2Speed", true).FirstOrDefault() as NumericUpDown; tbError = manual.Controls.Find("tbA2Error", true).FirstOrDefault() as Control; cbMode = manual.Controls.Find("cbA2Mode", true).FirstOrDefault() as ComboBox; } if (tbServo != null) { tbServo.Text = aligner.Servo; Color color = new Color(); switch (tbServo.Text) { case "OFF": color = Color.MintCream; break; case "ON": color = Color.LightGreen; break; default: color = Color.White; break; } tbServo.BackColor = color; } if (tbWaferSensor != null) { tbWaferSensor.Text = aligner.Present.Equals("1") ? "ON" : "OFF"; Color color = new Color(); switch (tbWaferSensor.Text) { case "OFF": color = Color.MintCream; break; case "ON": color = Color.LightGreen; break; default: color = Color.White; break; } tbWaferSensor.BackColor = color; } if (tbVacSolenoid != null) { tbVacSolenoid.Text = aligner.Vacuum.Equals("1") ? "ON" : "OFF"; Color color = new Color(); switch (tbVacSolenoid.Text) { case "OFF": color = Color.MintCream; break; case "ON": color = Color.LightGreen; break; default: color = Color.White; break; } tbVacSolenoid.BackColor = color; } if (nudSpeed != null) { try { nudSpeed.Text = aligner.Speed.Equals("00") ? "100" : Int32.Parse(aligner.Speed).ToString(); } catch (Exception) { nudSpeed.Text = aligner.Speed; } } if (tbError != null) { tbError.Text = aligner.Error; } if (cbMode != null) { switch (aligner.Mode.ToUpper()) { case "REAL": cbMode.SelectedIndex = 0; //kawasaki break; case "SIMU": cbMode.SelectedIndex = 1; //kawasaki break; case "": cbMode.SelectedIndex = -1; break; default: cbMode.SelectedIndex = Int32.Parse(aligner.Mode); break; } } } }
public static void UpdateGUI(Transaction txn, string name, string msg) { try { string method = txn.Method; Form manual = Application.OpenForms["FormManual"]; if (manual == null) { return; } if (manual.InvokeRequired) { UpdateGUI_D ph = new UpdateGUI_D(UpdateGUI); manual.BeginInvoke(ph, txn, name, msg); } else { switch (method) { case Transaction.Command.AlignerType.GetStatus: StateUtil.UpdateSTS(name, msg); break; case Transaction.Command.RobotType.GetCombineStatus: StateUtil.UpdateCombineStatus(name, msg); break; case Transaction.Command.AlignerType.GetSpeed: StateUtil.UpdateSP(name, msg); break; case Transaction.Command.AlignerType.GetRIO: StateUtil.UpdateRIO(name, msg); break; case Transaction.Command.AlignerType.GetError: StateUtil.UpdateError(name, msg); break; case Transaction.Command.AlignerType.GetMode: StateUtil.UpdateMode(name, msg); break; case Transaction.Command.AlignerType.GetSV: StateUtil.UpdateSV(name, msg); break; default: manual.Cursor = Cursors.Default; Control tbcManual = manual.Controls.Find("tbcManual", true).FirstOrDefault() as Control; tbcManual.Enabled = true; return; } UpdateStatus(name); } } catch (Exception e) { logger.Error("Aligner Manual Function: fail."); Console.WriteLine("Exception caught: {0}", e); } }
public static void UpdateStatus(string device) { Form manual = Application.OpenForms["FormManual"]; if (manual == null) { return; } if (manual.InvokeRequired) { UpdateStatus_D ph = new UpdateStatus_D(UpdateStatus); manual.BeginInvoke(ph, device); } else { StateUtil.Init(); RobotState robot = StateUtil.GetDeviceState(device) != null ? (RobotState)StateUtil.GetDeviceState(device) : null; if (robot == null) { return; } Control nudRSpeed = manual.Controls.Find("nudRSpeed", true).FirstOrDefault() as Control; if (nudRSpeed != null) { try { nudRSpeed.Text = robot.Speed.Equals("00") ? "100" : Int32.Parse(robot.Speed).ToString(); } catch (Exception) { nudRSpeed.Text = robot.Speed; } } Control tbRRwaferSensor = manual.Controls.Find("tbRRwaferSensor", true).FirstOrDefault() as Control; if (tbRRwaferSensor != null) { tbRRwaferSensor.Text = robot.Present_R.Equals("1") ? "ON" : "OFF"; Color color = new Color(); switch (tbRRwaferSensor.Text) { case "OFF": color = Color.MintCream; break; case "ON": color = Color.LightGreen; break; default: color = Color.White; break; } tbRRwaferSensor.BackColor = color; } Control tbRRVacuSolenoid = manual.Controls.Find("tbRRVacuSolenoid", true).FirstOrDefault() as Control; if (tbRRVacuSolenoid != null) { tbRRVacuSolenoid.Text = robot.Vacuum_R.Equals("1") ? "ON" : "OFF"; Color color = new Color(); switch (tbRRVacuSolenoid.Text) { case "OFF": color = Color.MintCream; break; case "ON": color = Color.LightGreen; break; default: color = Color.White; break; } tbRRVacuSolenoid.BackColor = color; } Control tbRLwaferSensor = manual.Controls.Find("tbRLwaferSensor", true).FirstOrDefault() as Control; if (tbRLwaferSensor != null) { tbRLwaferSensor.Text = robot.Present_L.Equals("1") ? "ON" : "OFF"; Color color = new Color(); switch (tbRLwaferSensor.Text) { case "OFF": color = Color.MintCream; break; case "ON": color = Color.LightGreen; break; default: color = Color.White; break; } tbRLwaferSensor.BackColor = color; } Control tbRLVacuSolenoid = manual.Controls.Find("tbRLVacuSolenoid", true).FirstOrDefault() as Control; if (tbRLVacuSolenoid != null) { tbRLVacuSolenoid.Text = robot.Vacuum_L.Equals("1") ? "ON" : "OFF"; Color color = new Color(); switch (tbRLVacuSolenoid.Text) { case "OFF": color = Color.MintCream; break; case "ON": color = Color.LightGreen; break; default: color = Color.White; break; } tbRLVacuSolenoid.BackColor = color; } string state = robot.State != null?robot.State.Trim() : ""; Control tbRServo = manual.Controls.Find("tbRServo", true).FirstOrDefault() as Control; if (tbRServo != null) { tbRServo.Text = robot.Servo; Color color = new Color(); switch (tbRServo.Text) { case "OFF": color = Color.MintCream; break; case "ON": color = Color.LightGreen; break; default: color = Color.White; break; } tbRServo.BackColor = color; } Control tbRError = manual.Controls.Find("tbRError", true).FirstOrDefault() as Control; if (tbRError != null) { tbRError.Text = robot.Error; } Control tbRErrorMsg = manual.Controls.Find("tbRErrorMsg", true).FirstOrDefault() as Control; if (tbRErrorMsg != null) { //AlarmMessage Detail = AlmMappin.Get("ROBOT01", robot.Error); //tbRErrorMsg.Text = Detail.Code_Cause_English; } ComboBox cbRMode = manual.Controls.Find("cbRMode", true).FirstOrDefault() as ComboBox; if (cbRMode != null) { switch (robot.Mode.ToUpper()) { case "REAL": cbRMode.SelectedIndex = 0; //kawasaki break; case "SIMU": cbRMode.SelectedIndex = 1; //kawasaki break; case "": cbRMode.SelectedIndex = -1; break; default: cbRMode.SelectedIndex = Int32.Parse(robot.Mode); break; } } } }
public EntityController(LabContext context, ILogger <EntityController> logger, StateUtil state) { _context = context; _logger = logger; util = state; }
public DeclarationController(LabContext context, ILogger <DeclarationController> logger, StateUtil state) { _context = context; _logger = logger; util = state; }