Пример #1
0
        private void SaveTaskXApplicationUser(int taskId, List <int> ApplicationUserIds)
        {
            var data = new TaskDataModel();

            data.TaskId = taskId;
            var taskdata         = TaskDataManager.Search(data, SessionVariables.RequestProfile);
            var row              = taskdata.Rows[0];
            var taskStatusTypeId = Convert.ToString(row[TaskXApplicationUserDataModel.DataColumns.TaskStatusTypeId]);

            TaskXApplicationUserDataManager.DeleteByTask(taskId, SessionVariables.RequestProfile);
            TaskXApplicationUserDataManager.CreateByTask(taskId, ApplicationUserIds.ToArray(), SessionVariables.RequestProfile);
        }
Пример #2
0
        private DataTable GetApplicationUserData(int taskId)
        {
            var dt       = TaskXApplicationUserDataManager.GetByTask(taskId, SessionVariables.RequestProfile);
            var audt     = ApplicationUserDataManager.GetList(SessionVariables.RequestProfile);
            var resultdt = audt.Clone();

            foreach (DataRow row in dt.Rows)
            {
                var rows = audt.Select("ApplicationUserId = " + row[ApplicationUserDataModel.DataColumns.ApplicationUserId]);
                resultdt.ImportRow(rows[0]);
            }
            return(resultdt);
        }
Пример #3
0
        private DataTable GetAssociatedApplicationUsers(int taskId)
        {
            var dt = TaskXApplicationUserDataManager.GetByTask(taskId, SessionVariables.RequestProfile);

            return(dt);
        }