private System.Data.DataTable GetData() { var data = new TaskPackageDataModel(); var dt = TaskPackageDataManager.Search(data, SessionVariables.RequestProfile); return(dt); }
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); }
protected override DataTable GetEntityData(int?entityKey) { var taskPackagedata = new TaskPackageDataModel(); taskPackagedata.TaskPackageId = entityKey; var results = TaskPackageDataManager.Search(taskPackagedata, SessionVariables.RequestProfile); return(results); }
protected override DataTable GetData() { var dt = TaskPackageDataManager.Search(oSearchFilter.SearchParameters, SessionVariables.RequestProfile); return(dt); }
private void ReBindEditableGrid() { var data = new TaskPackageDataModel(); var dtTaskPackage = TaskPackageDataManager.Search(data, SessionVariables.RequestProfile); }