Exemplo n.º 1
0
        protected override DataTable UpdateData()
        {
            var UpdatedData = new DataTable();

            var data = new MilestoneFeatureStateDataModel();

            UpdatedData = MilestoneFeatureStateDataManager.Search(data, SessionVariables.RequestProfile).Clone();
            for (var i = 0; i < SelectedData.Rows.Count; i++)
            {
                data.MilestoneFeatureStateId =
                    Convert.ToInt32(SelectedData.Rows[i][MilestoneFeatureStateDataModel.DataColumns.MilestoneFeatureStateId].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());

                MilestoneFeatureStateDataManager.Update(data, SessionVariables.RequestProfile);
                data = new MilestoneFeatureStateDataModel();
                data.MilestoneFeatureStateId = Convert.ToInt32(SelectedData.Rows[i][MilestoneFeatureStateDataModel.DataColumns.MilestoneFeatureStateId].ToString());
                var dt = MilestoneFeatureStateDataManager.Search(data, SessionVariables.RequestProfile);

                if (dt.Rows.Count == 1)
                {
                    UpdatedData.ImportRow(dt.Rows[0]);
                }
            }
            return(UpdatedData);
        }
Exemplo n.º 2
0
        protected override DataTable GetEntityData(int?entityKey)
        {
            var milestoneFeatureStatedata = new MilestoneFeatureStateDataModel();

            milestoneFeatureStatedata.MilestoneFeatureStateId = entityKey;
            var results = MilestoneFeatureStateDataManager.Search(milestoneFeatureStatedata, SessionVariables.RequestProfile);

            return(results);
        }
Exemplo n.º 3
0
        private DataTable GetData()
        {
            // TODO: on all export pages
            var data = new MilestoneFeatureStateDataModel();

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

            return(dt);
        }
Exemplo n.º 4
0
        private DataTable GetData(string name)
        {
            var data = new MilestoneFeatureStateDataModel();

            data.Name = name;

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

            return(dt);
        }
Exemplo n.º 5
0
        protected override DataTable GetData()
        {
            var dt = MilestoneFeatureStateDataManager.Search(oSearchFilter.SearchParameters, SessionVariables.RequestProfile);

            return(dt);
        }
Exemplo n.º 6
0
 private void ReBindEditableGrid()
 {
     var data = new MilestoneFeatureStateDataModel();
     var dtMilestoneFeatureState = MilestoneFeatureStateDataManager.Search(data, SessionVariables.RequestProfile);
 }