Esempio n. 1
0
        public void StopWorker(string project)
        {
            var data = WorkData.WorkData.ToList().First(w => w.Project.IDProject == int.Parse(project));

            data.Status = 1;
            data.Date   = WorkData.Date;
            Hour.CreateUpdate(data);
        }
Esempio n. 2
0
        public void UpdateWorker(string project, string worktime, string overtime)
        {
            var data = WorkData.WorkData.ToList().First(w => w.Project.IDProject == int.Parse(project));

            data.Status   = 3;
            data.Worktime = TimeSpan.Parse(worktime);
            data.Overtime = TimeSpan.Parse(overtime);
            data.Date     = WorkData.Date;
            Hour.CreateUpdate(data);
        }