Пример #1
0
        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 { }
        }
Пример #2
0
        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;
            }
        }
Пример #3
0
        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);
        }
Пример #4
0
 public void OnUpdateLog(object sender, UpdateTestArgs args)
 {
     WriteMessage(args.Text1, args.Text2);
 }
Пример #5
0
        //[Authorize(Roles = AppRoles.PUBLIC)]
        public async Task <IHttpActionResult> UpdateTest(UpdateTestArgs args)
        {
            var result = await testService.UpdateTest(args);

            return(Ok(result));
        }