public void OnUpdateOutputWindowState(object sender, UpdateTestArgs args) { try { switch (args.eAction) { case UpdateTestAction.RunAction: QFManager.Port.Close(PortName); break; case UpdateTestAction.TestDoneAction: QFManager.Port.Open(PortName); break; } } catch { } }
public void OnUpdateDashboard(object sender, UpdateTestArgs args) { switch (args.eAction) { case UpdateTestAction.RunAction: textBoxActiveTest.Text = args.Text1; DoRun(); break; case UpdateTestAction.SetNameUpdate: textBoxCurrentSet.Text = args.Text2; break; case UpdateTestAction.TestDoneAction: DoStop(); break; } }
public async Task <bool> UpdateTest(UpdateTestArgs updatetestArgs) { await DbContext.ExecuteNonQueryAsync(DataConstants.PR_UPDATE_TEST, CommandType.StoredProcedure, args => { args.Add("@TestID", updatetestArgs.TestID); //args.Add("@UserID", userContext.GetContext().FullName); args.Add("@ContainerTypeID", updatetestArgs.ContainerTypeID); args.Add("@Isolated", updatetestArgs.Isolated); args.Add("@MaterialTypeID", updatetestArgs.MaterialTypeID); args.Add("@MaterialStateID", updatetestArgs.MaterialStateID); args.Add("@PlannedDate", updatetestArgs.PlannedDate); args.Add("@TestTypeID", updatetestArgs.TestTypeID); args.Add("@ExpectedDate", updatetestArgs.ExpectedDate); args.Add("@Cumulate", updatetestArgs.Cumulate); }); return(true); }
public void OnUpdateLog(object sender, UpdateTestArgs args) { WriteMessage(args.Text1, args.Text2); }
//[Authorize(Roles = AppRoles.PUBLIC)] public async Task <IHttpActionResult> UpdateTest(UpdateTestArgs args) { var result = await testService.UpdateTest(args); return(Ok(result)); }