Exemple #1
0
        protected override DataTable GetEntityData(int?entityKey)
        {
            var taskPriorityTypedata = new TaskPriorityTypeDataModel();

            taskPriorityTypedata.TaskPriorityTypeId = entityKey;
            var results = TaskPriorityTypeDataManager.Search(taskPriorityTypedata, SessionVariables.RequestProfile);

            return(results);
        }
Exemple #2
0
        private System.Data.DataTable GetData()
        {
            // TODO: on all export pages
            var data = new TaskPriorityTypeDataModel();

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

            return(dt);
        }
Exemple #3
0
        protected override DataTable UpdateData()
        {
            var UpdatedData = new DataTable();
            var data        = new TaskPriorityTypeDataModel();

            UpdatedData = TaskPriorityTypeDataManager.Search(data, SessionVariables.RequestProfile).Clone();
            for (var i = 0; i < SelectedData.Rows.Count; i++)
            {
                data.TaskPriorityTypeId =
                    Convert.ToInt32(SelectedData.Rows[i][TaskPriorityTypeDataModel.DataColumns.TaskPriorityTypeId].ToString());
                data.Name        = SelectedData.Rows[i][StandardDataModel.StandardDataColumns.Name].ToString();
                data.Description =
                    !string.IsNullOrEmpty(CheckAndGetRepeaterTextBoxValue(StandardDataModel.StandardDataColumns.Description))
                                        ? CheckAndGetRepeaterTextBoxValue(StandardDataModel.StandardDataColumns.Description)
                                        : SelectedData.Rows[i][StandardDataModel.StandardDataColumns.Description].ToString();

                data.SortOrder =
                    !string.IsNullOrEmpty(CheckAndGetRepeaterTextBoxValue(StandardDataModel.StandardDataColumns.SortOrder))
                                        ? int.Parse(CheckAndGetRepeaterTextBoxValue(StandardDataModel.StandardDataColumns.SortOrder))
                                        : int.Parse(SelectedData.Rows[i][StandardDataModel.StandardDataColumns.SortOrder].ToString());

                data.Weight =
                    !string.IsNullOrEmpty(CheckAndGetRepeaterTextBoxValue(TaskPriorityTypeDataModel.DataColumns.Weight))
                                        ? decimal.Parse(CheckAndGetRepeaterTextBoxValue(TaskPriorityTypeDataModel.DataColumns.Weight))
                                        : decimal.Parse(SelectedData.Rows[i][TaskPriorityTypeDataModel.DataColumns.Weight].ToString());

                TaskPriorityTypeDataManager.Update(data, SessionVariables.RequestProfile);
                data = new TaskPriorityTypeDataModel();
                data.TaskPriorityTypeId = Convert.ToInt32(SelectedData.Rows[i][TaskPriorityTypeDataModel.DataColumns.TaskPriorityTypeId].ToString());
                var dt = TaskPriorityTypeDataManager.Search(data, SessionVariables.RequestProfile);

                if (dt.Rows.Count == 1)
                {
                    UpdatedData.ImportRow(dt.Rows[0]);
                }
            }
            return(UpdatedData);
        }
Exemple #4
0
 private void ReBindEditableGrid()
 {
     var data = new TaskPriorityTypeDataModel();
     var dtTaskPriorityType = TaskPriorityTypeDataManager.Search(data, SessionVariables.RequestProfile);
 }
Exemple #5
0
        protected override DataTable GetData()
        {
            var dt = TaskPriorityTypeDataManager.Search(oSearchFilter.SearchParameters, SessionVariables.RequestProfile);

            return(dt);
        }