示例#1
0
        private System.Data.DataTable GetData()
        {
            var data = new TaskPackageDataModel();
            var dt   = TaskPackageDataManager.Search(data, SessionVariables.RequestProfile);

            return(dt);
        }
示例#2
0
        protected override DataTable UpdateData()
        {
            var UpdatedData = new DataTable();

            var data = new TaskPackageDataModel();

            UpdatedData = TaskPackageDataManager.Search(data, SessionVariables.RequestProfile).Clone();
            for (var i = 0; i < SelectedData.Rows.Count; i++)
            {
                data.TaskPackageId =
                    Convert.ToInt32(SelectedData.Rows[i][TaskPackageDataModel.DataColumns.TaskPackageId].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).ToString())
                    : int.Parse(SelectedData.Rows[i][StandardDataModel.StandardDataColumns.SortOrder].ToString());

                TaskPackageDataManager.Update(data, SessionVariables.RequestProfile);
                data = new TaskPackageDataModel();
                data.TaskPackageId = Convert.ToInt32(SelectedData.Rows[i][TaskPackageDataModel.DataColumns.TaskPackageId].ToString());
                var dt = TaskPackageDataManager.Search(data, SessionVariables.RequestProfile);

                if (dt.Rows.Count == 1)
                {
                    UpdatedData.ImportRow(dt.Rows[0]);
                }
            }
            return(UpdatedData);
        }
示例#3
0
        protected override DataTable GetEntityData(int?entityKey)
        {
            var taskPackagedata = new TaskPackageDataModel();

            taskPackagedata.TaskPackageId = entityKey;
            var results = TaskPackageDataManager.Search(taskPackagedata, SessionVariables.RequestProfile);

            return(results);
        }
示例#4
0
        protected override DataTable GetData()
        {
            var dt = TaskPackageDataManager.Search(oSearchFilter.SearchParameters, SessionVariables.RequestProfile);

            return(dt);
        }
示例#5
0
 private void ReBindEditableGrid()
 {
     var data          = new TaskPackageDataModel();
     var dtTaskPackage = TaskPackageDataManager.Search(data, SessionVariables.RequestProfile);
 }