Exemple #1
0
        public ActionResult TestStart(int id, string emp)
        {
            Carlzhu.Iooin.Business.BaseServices <FormWorkshopInspection> wBaseServices = new Carlzhu.Iooin.Business.BaseServices <FormWorkshopInspection>();
            var models = wBaseServices.LoadEntities(c => c.RowId == id).First();

            models.StartDateTime = DateTime.Now;
            models.Checker       = emp;
            return(Json(wBaseServices.UpdateEntity(models) ? "success" : "fail"));
        }
Exemple #2
0
        public ActionResult SaveTesting(FormWorkshopInspection formWorkshopInspection)
        {
            Carlzhu.Iooin.Business.BaseServices <FormWorkshopInspection> wBaseServices = new Carlzhu.Iooin.Business.BaseServices <FormWorkshopInspection>();
            var models = wBaseServices.LoadEntities(c => c.RowId == formWorkshopInspection.RowId).First();

            models.EndDateTime     = DateTime.Now;
            models.Explan          = formWorkshopInspection.Explan;
            models.DetectionResult = formWorkshopInspection.DetectionResult;
            models.Picture         = formWorkshopInspection.Picture;
            models.CanTakeit       = true;
            wBaseServices.UpdateEntity(models);
            return(RedirectToAction("WattingTest", "Quality", new { area = "eSystem" }));
        }