Пример #1
0
        private DataTable GetData(string name)
        {
            var data = new TaskXDeliverableArtifactDataModel();
            var dt   = TaskXDeliverableArtifactDataManager.Search(data, SessionVariables.RequestProfile);

            return(dt);
        }
Пример #2
0
        protected override DataTable GetEntityData(int?entityKey)
        {
            var TaskXDeliverableArtifactdata = new TaskXDeliverableArtifactDataModel();

            TaskXDeliverableArtifactdata.TaskXDeliverableArtifactId = entityKey;
            var results = TaskXDeliverableArtifactDataManager.Search(TaskXDeliverableArtifactdata, SessionVariables.RequestProfile);

            return(results);
        }
Пример #3
0
        private DataTable GetData()
        {
            // TODO: on all export pages
            var data = new TaskXDeliverableArtifactDataModel();

            var dt = TaskXDeliverableArtifactDataManager.Search(data, SessionVariables.RequestProfile);

            return(dt);
        }
Пример #4
0
        protected override DataTable UpdateData()
        {
            var UpdatedData = new DataTable();

            var data = new TaskXDeliverableArtifactDataModel();

            UpdatedData = TaskXDeliverableArtifactDataManager.Search(data, SessionVariables.RequestProfile).Clone();
            for (var i = 0; i < SelectedData.Rows.Count; i++)
            {
                data.TaskXDeliverableArtifactId =
                    Convert.ToInt32(SelectedData.Rows[i][TaskXDeliverableArtifactDataModel.DataColumns.TaskXDeliverableArtifactId].ToString());
                data.TaskId =
                    !string.IsNullOrEmpty(CheckAndGetRepeaterTextBoxValue(TaskXDeliverableArtifactDataModel.DataColumns.TaskId))
                                        ? int.Parse(CheckAndGetRepeaterTextBoxValue(TaskXDeliverableArtifactDataModel.DataColumns.TaskId))
                                        : int.Parse(SelectedData.Rows[i][TaskXDeliverableArtifactDataModel.DataColumns.TaskId].ToString());
                data.DeliverableArtifactId =
                    !string.IsNullOrEmpty(CheckAndGetRepeaterTextBoxValue(TaskXDeliverableArtifactDataModel.DataColumns.DeliverableArtifactId))
                                        ? int.Parse(CheckAndGetRepeaterTextBoxValue(TaskXDeliverableArtifactDataModel.DataColumns.DeliverableArtifactId))
                                        : int.Parse(SelectedData.Rows[i][TaskXDeliverableArtifactDataModel.DataColumns.DeliverableArtifactId].ToString());

                data.DeliverableArtifactStatusId =
                    !string.IsNullOrEmpty(CheckAndGetRepeaterTextBoxValue(TaskXDeliverableArtifactDataModel.DataColumns.DeliverableArtifactStatusId))
                                                                ? int.Parse(CheckAndGetRepeaterTextBoxValue(TaskXDeliverableArtifactDataModel.DataColumns.DeliverableArtifactStatusId).ToString())
                                                                : int.Parse(SelectedData.Rows[i][TaskXDeliverableArtifactDataModel.DataColumns.DeliverableArtifactStatusId].ToString());

                TaskXDeliverableArtifactDataManager.Update(data, SessionVariables.RequestProfile);
                data = new TaskXDeliverableArtifactDataModel();
                data.TaskXDeliverableArtifactId = Convert.ToInt32(SelectedData.Rows[i][TaskXDeliverableArtifactDataModel.DataColumns.TaskXDeliverableArtifactId].ToString());
                var dt = TaskXDeliverableArtifactDataManager.Search(data, SessionVariables.RequestProfile);

                if (dt.Rows.Count == 1)
                {
                    UpdatedData.ImportRow(dt.Rows[0]);
                }
            }
            return(UpdatedData);
        }
Пример #5
0
        protected override DataTable GetData()
        {
            var dt = TaskXDeliverableArtifactDataManager.Search(oSearchFilter.SearchParameters, SessionVariables.RequestProfile);

            return(dt);
        }