Exemplo n.º 1
0
        public void ChangeReceivedNotes(int techProblemId, string receivedNotes)
        {
            var rows = TechnologyProblemsTable.Select("TechnologyProblemID = " + techProblemId);

            if (!rows.Any())
            {
                return;
            }

            var techProblemRow = rows.First();

            techProblemRow["ReceivedNotes"] = receivedNotes;

            UpdateTechnologyProblems();
        }
Exemplo n.º 2
0
        public void DeleteTechnologyProblem(int techProblemId)
        {
            var rows = TechnologyProblemsTable.Select("TechnologyProblemID = " + techProblemId);

            if (!rows.Any())
            {
                return;
            }

            var deletingRow = rows.First();

            deletingRow["Enable"] = false;

            UpdateTechnologyProblems();
        }
Exemplo n.º 3
0
        public void FillReceivedInfo(int techProblemId, DateTime receivedDate, int receivedWorkerId, string receivedNote)
        {
            var rows = TechnologyProblemsTable.Select("TechnologyProblemID = " + techProblemId);

            if (!rows.Any())
            {
                return;
            }

            var receivedRow = rows.First();

            receivedRow["ReceivedDate"]     = receivedDate;
            receivedRow["ReceivedWorkerID"] = receivedWorkerId;
            receivedRow["ReceivedNotes"]    = receivedNote;
            UpdateTechnologyProblems();
        }
Exemplo n.º 4
0
        public void FillPlannedCompletionDate(int techProblemId, object plannedCompleteDate, DateTime editingDate,
                                              int editingWorkerId)
        {
            var rows = TechnologyProblemsTable.Select("TechnologyProblemID = " + techProblemId);

            if (!rows.Any())
            {
                return;
            }

            var additionalRow = rows.First();

            additionalRow["PlanedCompletionDate"] = plannedCompleteDate;
            additionalRow["EditingDate"]          = editingDate;
            additionalRow["EditingWorkerID"]      = editingWorkerId;
            UpdateTechnologyProblems();
        }
Exemplo n.º 5
0
        public void FillCompletionInfo(string globalId, DateTime completionDate, int completionWorkerId)
        {
            var rows = TechnologyProblemsTable.Select("GlobalID = " + globalId);

            if (!rows.Any())
            {
                CompleteRequest(globalId, completionDate, completionWorkerId);
                return;
            }

            var completionRow = rows.First();

            completionRow["CompletionDate"]     = completionDate;
            completionRow["CompletionWorkerID"] = completionWorkerId;

            UpdateTechnologyProblems();
        }
Exemplo n.º 6
0
        public void CompleteRequest(int techProblemId, DateTime completionDate, int completionWorkerId,
                                    string completionNote)
        {
            var rows = TechnologyProblemsTable.Select("TechnologyProblemID = " + techProblemId);

            if (!rows.Any())
            {
                return;
            }

            var completionRow = rows.First();

            completionRow["CompletionDate"]     = completionDate;
            completionRow["CompletionWorkerID"] = completionWorkerId;
            completionRow["CompletionNotes"]    = completionNote;
            completionRow["RequestClose"]       = true;

            UpdateTechnologyProblems();
        }