Example #1
0
        private DataTable GetData(string name)
        {
            var data = new MilestoneXFeatureDataModel();
            var dt   = MilestoneXFeatureDataManager.Search(data, SessionVariables.RequestProfile);

            return(dt);
        }
Example #2
0
        private DataTable GetData()
        {
            // TODO: on all export pages
            var data = new MilestoneXFeatureDataModel();

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

            return(dt);
        }
Example #3
0
        protected override DataTable GetEntityData(int?entityKey)
        {
            var milestoneXFeaturedata = new MilestoneXFeatureDataModel();

            milestoneXFeaturedata.MilestoneXFeatureId = entityKey;
            var results = MilestoneXFeatureDataManager.Search(milestoneXFeaturedata, SessionVariables.RequestProfile);

            return(results);
        }
Example #4
0
        private DataTable GetMilestoneXFeatureData(int milestoneId)
        {
            var data = new MilestoneXFeatureDataModel();

            data.MilestoneId = milestoneId;

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

            return(dt);
        }
Example #5
0
        protected override DataTable UpdateData()
        {
            var UpdatedData = new DataTable();
            var data        = new MilestoneXFeatureDataModel();

            UpdatedData = MilestoneXFeatureDataManager.Search(data, SessionVariables.RequestProfile).Clone();
            for (var i = 0; i < SelectedData.Rows.Count; i++)
            {
                data.MilestoneXFeatureId =
                    Convert.ToInt32(SelectedData.Rows[i][MilestoneXFeatureDataModel.DataColumns.MilestoneXFeatureId].ToString());

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

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

                data.Memo = SelectedData.Rows[i][MilestoneXFeatureDataModel.DataColumns.Memo].ToString();

                MilestoneXFeatureDataManager.Update(data, SessionVariables.RequestProfile);
                data = new MilestoneXFeatureDataModel();
                data.MilestoneXFeatureId = Convert.ToInt32(SelectedData.Rows[i][MilestoneXFeatureDataModel.DataColumns.MilestoneXFeatureId].ToString());
                var dt = MilestoneXFeatureDataManager.Search(data, SessionVariables.RequestProfile);

                if (dt.Rows.Count == 1)
                {
                    UpdatedData.ImportRow(dt.Rows[0]);
                }
            }
            return(UpdatedData);
        }
Example #6
0
        protected override DataTable GetData()
        {
            var dt = MilestoneXFeatureDataManager.Search(oSearchFilter.SearchParameters, SessionVariables.RequestProfile);

            return(dt);
        }