예제 #1
0
        protected override void ShowData(int skillXPersonXSkillLevelId)
        {
            oDetailButtonPanel.SetId = SetId;
            var data = new SkillXPersonXSkillLevelDataModel();

            data.SkillXPersonXSkillLevelId = skillXPersonXSkillLevelId;

            var dt = SkillXPersonXSkillLevelDataManager.GetDetails(data, SessionVariables.RequestProfile);

            if (dt.Rows.Count == 1)
            {
                var row = dt.Rows[0];

                lblSkillXPersonXSkillLevelId.Text = Convert.ToString(row[SkillXPersonXSkillLevelDataModel.DataColumns.SkillXPersonXSkillLevelId]);
                lblSkillLevel.Text = Convert.ToString(row[SkillXPersonXSkillLevelDataModel.DataColumns.SkillLevel]);
                lblSkill.Text      = Convert.ToString(row[SkillXPersonXSkillLevelDataModel.DataColumns.Skill]);
                lblPerson.Text     = Convert.ToString(row[SkillXPersonXSkillLevelDataModel.DataColumns.Person]);

                oUpdateInfo.LoadText(dt.Rows[0]);

                oHistoryList.Setup((int)SystemEntity.SkillXPersonXSkillLevel, skillXPersonXSkillLevelId, "SkillXPersonXSkillLevel");
                dynAuditHistory.Visible = PerferenceUtility.GetUserPreferenceByKeyAsBoolean(ApplicationCommon.HistoryGridVisibilityKey, "SkillXPersonXSkillLevel");
            }
            else
            {
                Clear();
            }
        }
예제 #2
0
        protected override void ShowData(int projectTimeLineId)
        {
            base.ShowData(projectTimeLineId);

            oDetailButtonPanel.SetId = SetId;

            Clear();

            var data = new ProjectTimeLineDataModel();

            data.ProjectTimeLineId = projectTimeLineId;

            var entityList = ProjectTimeLineDataManager.GetEntityDetails(data, SessionVariables.RequestProfile);

            if (entityList.Count == 1)
            {
                foreach (var entityItem in entityList)
                {
                    lblProjectTimeLineId.Text = entityItem.ProjectTimeLineId.ToString();
                    lblProjectId.Text         = entityItem.Project.ToString();
                    lblStartDate.Text         = entityItem.StartDate.ToString();
                    lblEndDate.Text           = entityItem.EndDate.ToString();

                    oUpdateInfo.LoadText(entityItem.UpdatedDate, entityItem.UpdatedBy, entityItem.LastAction);

                    oHistoryList.Setup((int)Framework.Components.DataAccess.SystemEntity.ProjectTimeLine, projectTimeLineId, "ProjectTimeLine");
                    dynAuditHistory.Visible = PerferenceUtility.GetUserPreferenceByKeyAsBoolean(ApplicationCommon.HistoryGridVisibilityKey, "ProjectTimeLine");
                }
            }
        }
예제 #3
0
        protected override void OnPreRender(EventArgs e)
        {
            base.OnPreRender(e);

            // set SubMenuCore default values
            SubMenuCore.SettingCategory = SettingCategory + "SubMenuControl";
            SubMenuCore.Setup();
            SubMenuCore.GenerateMenu();

            // get visiblilty
            var isSubMenuVisible       = PerferenceUtility.GetUserPreferenceByKeyAsBoolean(ApplicationCommon.ControlVisible, SubMenuCore.SettingCategory);
            var isSearchControlVisible = PerferenceUtility.GetUserPreferenceByKeyAsBoolean(ApplicationCommon.ControlVisible, SearchFilterCore.SettingCategory);
            var isBreadCrumbVisible    = PerferenceUtility.GetUserPreferenceByKeyAsBoolean(ApplicationCommon.ControlVisible, BreadCrumbObject.SettingCategory);

            // set visibility
            SearchFilterCore.Visible = isSearchControlVisible;
            SubMenuCore.Visible      = isSubMenuVisible;
            BreadCrumbObject.Visible = isBreadCrumbVisible;

            // update custom visivblity control
            VisibilityManagerCore.ClearChildMenuItems();

            VisibilityManagerCore.AddChildControl(SearchFilterCore.Title, isSearchControlVisible);
            VisibilityManagerCore.AddChildControl(SubMenuCore.Title, isSubMenuVisible);
            VisibilityManagerCore.AddChildControl("Bread Crumb", isBreadCrumbVisible);

            BreadCrumbObject.IsAddedInVisibilityManager = true;
        }
예제 #4
0
        protected override void ShowData(int useCasePackageXUseCaseId)
        {
            oDetailButtonPanel.SetId = SetId;
            var data = new UseCasePackageXUseCaseDataModel();

            data.UseCasePackageXUseCaseId = useCasePackageXUseCaseId;

            var dt = TaskTimeTracker.Components.BusinessLayer.RequirementAnalysis.UseCasePackageXUseCaseDataManager.GetDetails(data, SessionVariables.RequestProfile);

            if (dt.Rows.Count == 1)
            {
                var row = dt.Rows[0];

                lblUseCasePackageXUseCaseId.Text = Convert.ToString(row[UseCasePackageXUseCaseDataModel.DataColumns.UseCasePackageXUseCaseId]);
                lblUseCasePackage.Text           = Convert.ToString(row[UseCasePackageXUseCaseDataModel.DataColumns.UseCasePackage]);
                lblUseCase.Text = Convert.ToString(row[UseCasePackageXUseCaseDataModel.DataColumns.UseCase]);

                oUpdateInfo.LoadText(dt.Rows[0]);

                oHistoryList.Setup((int)Framework.Components.DataAccess.SystemEntity.UseCasePackageXUseCase, useCasePackageXUseCaseId, "UseCasePackageXUseCase");
                dynAuditHistory.Visible = PerferenceUtility.GetUserPreferenceByKeyAsBoolean(ApplicationCommon.HistoryGridVisibilityKey, "UseCasePackageXUseCase");
            }
            else
            {
                Clear();
            }
        }
예제 #5
0
        protected override void ShowData(int HelpPageContextId)
        {
            oDetailButtonPanel.SetId = SetId;
            var data = new HelpPageContextDataModel();

            data.HelpPageContextId = HelpPageContextId;

            var dt = HelpPageContextDataManager.GetDetails(data, SessionVariables.RequestProfile);

            if (dt.Rows.Count == 1)
            {
                var row = dt.Rows[0];

                lblHelpPageContextId.Text = Convert.ToString(row[HelpPageContextDataModel.DataColumns.HelpPageContextId]);
                lblName.Text        = Convert.ToString(row[StandardDataModel.StandardDataColumns.Name]);
                lblDescription.Text = Convert.ToString(row[StandardDataModel.StandardDataColumns.Description]);
                lblSortOrder.Text   = Convert.ToString(row[StandardDataModel.StandardDataColumns.SortOrder]);

                oUpdateInfo.LoadText(dt.Rows[0]);

                oHistoryList.Setup((int)SystemEntity.HelpPageContext, HelpPageContextId, "HelpPageContext");
                dynAuditHistory.Visible = PerferenceUtility.GetUserPreferenceByKeyAsBoolean(ApplicationCommon.HistoryGridVisibilityKey, "Client");
            }
            else
            {
                Clear();
            }
        }
예제 #6
0
        protected override void ShowData(int HelpPageid)
        {
            oDetailButtonPanel.SetId = SetId;
            var data = new HelpPageDataModel();

            data.HelpPageId = HelpPageid;
            var dt = Framework.Components.Core.HelpPageDataManager.GetDetails(data, SessionVariables.RequestProfile);

            if (dt.Rows.Count == 1)
            {
                var row = dt.Rows[0];

                lblHelpPageId.Text         = Convert.ToString(row[HelpPageDataModel.DataColumns.HelpPageId]);
                lblName.Text               = Convert.ToString(row[HelpPageDataModel.DataColumns.Name]);
                lblContent.Text            = Convert.ToString(row[HelpPageDataModel.DataColumns.Content]);
                lblSortOrder.Text          = Convert.ToString(row[HelpPageDataModel.DataColumns.SortOrder]);
                lblSystemEntityTypeId.Text = Convert.ToString(row[HelpPageDataModel.DataColumns.SystemEntityType]);
                lblHelpPageContextId.Text  = Convert.ToString(row[HelpPageDataModel.DataColumns.HelpPageContext]);

                oUpdateInfo.LoadText(dt.Rows[0]);

                oHistoryList.Setup("AuditHistory", "", "AuditHistoryId", true, true, (int)Framework.Components.DataAccess.SystemEntity.HelpPage, HelpPageid, "HelpPage");
                dynAuditHistory.Visible = PerferenceUtility.GetUserPreferenceByKeyAsBoolean(ApplicationCommon.HistoryGridVisibilityKey, "HelpPage");
            }
            else
            {
                Clear();
            }
        }
예제 #7
0
        protected override void ShowData(int SuperKeyDetailid)
        {
            oDetailButtonPanel.SetId = SetId;
            var data = new SuperKeyDetailDataModel();

            data.SuperKeyDetailId = SuperKeyDetailid;
            var dt = Framework.Components.Core.SuperKeyDetailDataManager.GetDetails(data, SessionVariables.RequestProfile);

            if (dt.Rows.Count == 1)
            {
                var row = dt.Rows[0];

                lblSuperKeyDetailId.Text = Convert.ToString(row[SuperKeyDetailDataModel.DataColumns.SuperKeyDetailId]);
                lblSuperKeyId.Text       = Convert.ToString(row[SuperKeyDetailDataModel.DataColumns.SuperKey]);
                lblEntityKey.Text        = Convert.ToString(row[SuperKeyDetailDataModel.DataColumns.EntityKey]);

                oUpdateInfo.LoadText(dt.Rows[0]);

                oHistoryList.Setup("AuditHistory", "", "AuditHistoryId", true, true, (int)Framework.Components.DataAccess.SystemEntity.SuperKeyDetail, SuperKeyDetailid, "SuperKeyDetail");
                dynAuditHistory.Visible = PerferenceUtility.GetUserPreferenceByKeyAsBoolean(ApplicationCommon.HistoryGridVisibilityKey, "SuperKeyDetail");
            }
            else
            {
                Clear();
            }
        }
예제 #8
0
        protected override void ShowData(int ClientXProjectId)
        {
            oDetailButtonPanel.SetId = SetId;
            var data = new ClientXProjectDataModel();

            data.ClientXProjectId = ClientXProjectId;

            var dt = ClientXProjectDataManager.GetDetails(data, SessionVariables.RequestProfile);

            if (dt.Rows.Count == 1)
            {
                var row = dt.Rows[0];

                lblClientXProjectId.Text = Convert.ToString(row[ClientXProjectDataModel.DataColumns.ClientXProjectId]);
                lblClient.Text           = Convert.ToString(row[ClientXProjectDataModel.DataColumns.Client]);
                lblProject.Text          = Convert.ToString(row[ClientXProjectDataModel.DataColumns.Project]);

                oUpdateInfo.LoadText(dt.Rows[0]);

                oHistoryList.Setup((int)SystemEntity.ClientXProject, ClientXProjectId, "ClientXProject");
                dynAuditHistory.Visible = PerferenceUtility.GetUserPreferenceByKeyAsBoolean(ApplicationCommon.HistoryGridVisibilityKey, "ClientXProject");
            }
            else
            {
                Clear();
            }
        }
예제 #9
0
        protected override void ShowData(int applicationoperationid)
        {
            oDetailButtonPanel.SetId = SetId;
            var data = new ApplicationOperationDataModel();

            data.ApplicationOperationId = applicationoperationid;
            var dt = Framework.Components.ApplicationUser.ApplicationOperationDataManager.GetDetails(data, SessionVariables.RequestProfile);

            if (dt.Rows.Count == 1)
            {
                var row = dt.Rows[0];

                lblApplicationOperationId.Text = Convert.ToString(row[ApplicationOperationDataModel.DataColumns.ApplicationOperationId]);
                lblName.Text               = Convert.ToString(row[StandardDataModel.StandardDataColumns.Name]);
                lblDescription.Text        = Convert.ToString(row[StandardDataModel.StandardDataColumns.Description]);
                lblSortOrder.Text          = Convert.ToString(row[StandardDataModel.StandardDataColumns.SortOrder]);
                lblApplicationId.Text      = Convert.ToString(row[ApplicationOperationDataModel.DataColumns.Application]);
                lblSystemEntityTypeId.Text = Convert.ToString(row[ApplicationOperationDataModel.DataColumns.SystemEntityType]);
                lblOperationValue.Text     = Convert.ToString(row[ApplicationOperationDataModel.DataColumns.OperationValue]);

                oUpdateInfo.LoadText(dt.Rows[0]);

                oHistoryList.Setup((int)Framework.Components.DataAccess.SystemEntity.ApplicationOperation, applicationoperationid, "ApplicationOperation");
                dynAuditHistory.Visible = PerferenceUtility.GetUserPreferenceByKeyAsBoolean(ApplicationCommon.HistoryGridVisibilityKey, "ApplicationOperation");
            }
            else
            {
                Clear();
            }
        }
예제 #10
0
        protected override void ShowData(int allEntityDetailId)
        {
            base.ShowData(allEntityDetailId);

            oDetailButtonPanel.SetId = SetId;

            Clear();

            var data = new AllEntityDetailDataModel();

            data.AllEntityDetailId = allEntityDetailId;

            var entityList = TaskTimeTracker.Components.Module.ApplicationDevelopment.AllEntityDetailDataManager.GetEntityDetails(data, SessionVariables.RequestProfile);

            if (entityList.Count == 1)
            {
                foreach (var entityItem in entityList)
                {
                    lblAllEntityDetailId.Text      = entityItem.AllEntityDetailId.ToString();
                    lblEntityName.Text             = entityItem.EntityName.ToString();
                    lblDB_Name.Text                = entityItem.DB_Name.ToString();
                    lblDB_Project_Name.Text        = entityItem.DB_Project_Name.ToString();
                    lblComponent_Project_Name.Text = entityItem.Component_Project_Name.ToString();

                    oUpdateInfo.LoadText(entityItem.UpdatedDate, entityItem.UpdatedBy, entityItem.LastAction);

                    oHistoryList.Setup((int)Framework.Components.DataAccess.SystemEntity.AllEntityDetail, allEntityDetailId, "AllEntityDetail");
                    dynAuditHistory.Visible = PerferenceUtility.GetUserPreferenceByKeyAsBoolean(ApplicationCommon.HistoryGridVisibilityKey, "AllEntityDetail");
                }
            }
        }
예제 #11
0
        protected override void ShowData(int testSuiteXTestCaseArchiveid)
        {
            //oDetailButtonPanel.SetId = SetId;
            var data = new TestSuiteXTestCaseArchiveDataModel();

            data.TestSuiteXTestCaseArchiveId = testSuiteXTestCaseArchiveid;
            var dt = TestCaseManagement.Components.DataAccess.TestSuiteXTestCaseArchiveDataManager.GetDetails(data, SessionVariables.RequestProfile);

            if (dt.Rows.Count == 1)
            {
                var row = dt.Rows[0];

                lblTestSuiteXTestCaseArchiveId.Text = Convert.ToString(row[TestSuiteXTestCaseArchiveDataModel.DataColumns.TestSuiteXTestCaseArchiveId]);
                lblRecordDate.Text           = Convert.ToString(row[TestSuiteXTestCaseArchiveDataModel.DataColumns.RecordDate]);
                lblTestSuite.Text            = Convert.ToString(row[TestSuiteXTestCaseArchiveDataModel.DataColumns.TestSuite]);
                lblTestCase.Text             = Convert.ToString(row[TestSuiteXTestCaseArchiveDataModel.DataColumns.TestCase]);
                lblTestCaseStatus.Text       = Convert.ToString(row[TestSuiteXTestCaseArchiveDataModel.DataColumns.TestCaseStatus]);
                lblTestCasePriority.Text     = Convert.ToString(row[TestSuiteXTestCaseArchiveDataModel.DataColumns.TestCasePriority]);
                lblTestSuiteXTestCaseId.Text = Convert.ToString(row[TestSuiteXTestCaseArchiveDataModel.DataColumns.TestSuiteXTestCaseId]);

                lblKnowledgeDate.Text = Convert.ToString(row[TestSuiteXTestCaseArchiveDataModel.DataColumns.KnowledgeDate]);


                oUpdateInfo.LoadText(dt.Rows[0]);

                oHistoryList.Setup((int)Framework.Components.DataAccess.SystemEntity.TestSuiteXTestCaseArchive, testSuiteXTestCaseArchiveid, "TestSuiteXTestCaseArchive");
                dynAuditHistory.Visible = PerferenceUtility.GetUserPreferenceByKeyAsBoolean(ApplicationCommon.HistoryGridVisibilityKey, "TestSuiteXTestCaseArchive");
            }
            else
            {
                Clear();
            }
        }
예제 #12
0
        protected override void OnPreRender(EventArgs e)
        {
            base.OnPreRender(e);

            var sbm = Master.SubMenuObject;

            sbm.SettingCategory = SettingCategory + "SubMenuControl";
            sbm.Setup();
            sbm.GenerateMenu();

            var bcControl = Master.BreadCrumbObject;

            bcControl.SettingCategory = SettingCategory + "BreadCrumbControl";
            bcControl.Setup(string.Empty);
            bcControl.GenerateMenu();

            VisibilityManagerCore = oVC;

            var isSubMenuVisible       = PerferenceUtility.GetUserPreferenceByKeyAsBoolean(ApplicationCommon.ControlVisible, sbm.SettingCategory);
            var isSearchControlVisible = PerferenceUtility.GetUserPreferenceByKeyAsBoolean(ApplicationCommon.ControlVisible, oSearchFilter.SearchControl.SettingCategory);

            // set visibility
            oSearchFilter.Visible = isSearchControlVisible;
            sbm.Visible           = isSubMenuVisible;

            VisibilityManagerCore.ClearChildMenuItems();

            VisibilityManagerCore.AddChildControl(oSearchFilter.SearchControl.Title, isSearchControlVisible);
            VisibilityManagerCore.AddChildControl(sbm.Title, isSubMenuVisible);

            // bccontrol.SettingCategory = SettingCategory + "BreadCrumbControl";
            // bccontrol.Setup("");
            // bccontrol.GenerateMenu();
        }
예제 #13
0
        protected override void ShowData(int FieldConfigurationModeXApplicationRoleId)
        {
            base.ShowData(FieldConfigurationModeXApplicationRoleId);

            oDetailButtonPanel.SetId = SetId;

            Clear();

            var data = new FieldConfigurationModeXApplicationRoleDataModel();

            data.FieldConfigurationModeXApplicationRoleId = FieldConfigurationModeXApplicationRoleId;

            var entityList = FieldConfigurationModeXApplicationRoleDataManager.GetEntityList(data, SessionVariables.RequestProfile);

            if (entityList.Count == 1)
            {
                foreach (var entityItem in entityList)
                {
                    lblFieldConfigurationModeXApplicationRoleId.Text = entityItem.FieldConfigurationModeXApplicationRoleId.ToString();
                    lblFieldConfigurationMode.Text           = entityItem.FieldConfigurationMode;
                    lblApplicationRole.Text                  = entityItem.ApplicationRole;
                    lblFieldConfigurationModeAccessMode.Text = entityItem.FieldConfigurationModeAccessMode;

                    oUpdateInfo.LoadText(entityItem.UpdatedDate, entityItem.UpdatedBy, entityItem.LastAction);

                    oHistoryList.Setup((int)Framework.Components.DataAccess.SystemEntity.FieldConfigurationModeXApplicationRole, FieldConfigurationModeXApplicationRoleId, "FieldConfigurationModeXApplicationRole");
                    dynAuditHistory.Visible = PerferenceUtility.GetUserPreferenceByKeyAsBoolean(ApplicationCommon.HistoryGridVisibilityKey, "FieldConfigurationModeXApplicationRole");
                }
            }
        }
예제 #14
0
        protected override void ShowData(int competencyXSkillId)
        {
            base.ShowData(competencyXSkillId);

            oDetailButtonPanel.SetId = SetId;

            Clear();

            var data = new DataModel.CompetencyTimeTracker.Skill.CompetencyXSkillDataModel();

            data.CompetencyXSkillId = competencyXSkillId;

            var entityList = TaskTimeTracker.Components.Module.Competency.CompetencyXSkillDataManager.GetEntityDetails(data, SessionVariables.RequestProfile);

            if (entityList.Count == 1)
            {
                foreach (var entityItem in entityList)
                {
                    lblCompetencyXSkillId.Text = entityItem.CompetencyXSkillId.ToString();
                    lblCompetency.Text         = entityItem.Competency;
                    lblSkill.Text = entityItem.Skill;

                    oUpdateInfo.LoadText(entityItem.UpdatedDate, entityItem.UpdatedBy, entityItem.LastAction);

                    oHistoryList.Setup((int)Framework.Components.DataAccess.SystemEntity.CompetencyXSkill, competencyXSkillId, "CompetencyXSkill");
                    dynAuditHistory.Visible = PerferenceUtility.GetUserPreferenceByKeyAsBoolean(ApplicationCommon.HistoryGridVisibilityKey, "CompetencyXSkill");
                }
            }
        }
예제 #15
0
        protected override void ShowData(int StoredProcedureLogRawId)
        {
            var data = new Framework.Components.LogAndTrace.StoredProcedureLogRawDataModel();

            data.StoredProcedureLogRawId = StoredProcedureLogRawId;

            var dt = Framework.Components.LogAndTrace.StoredProcedureLogRawDataManager.GetStoredProcedureLogRaws(data, SessionVariables.RequestProfile);

            if (dt.Rows.Count == 1)
            {
                var row = dt.Rows[0];

                lblStoredProcedureLogRawId.Text = Convert.ToString(row[Framework.Components.LogAndTrace.StoredProcedureLogRawDataModel.DataColumns.StoredProcedureLogRawId]);
                lblStoredProcedureLogId.Text    = Convert.ToString(row[Framework.Components.LogAndTrace.StoredProcedureLogRawDataModel.DataColumns.StoredProcedureLogId]);
                lblInputParameters.Text         = Convert.ToString(row[Framework.Components.LogAndTrace.StoredProcedureLogRawDataModel.DataColumns.InputParameters]);
                lblInputValues.Text             = Convert.ToString(row[Framework.Components.LogAndTrace.StoredProcedureLogRawDataModel.DataColumns.InputValues]);

                //oHistoryList.Setup((int)Framework.Components.DataAccess.SystemEntity.StoredProcedureLogRaw, StoredProcedureLogRawId, "StoredProcedureLogRaw");
                dynAuditHistory.Visible = PerferenceUtility.GetUserPreferenceByKeyAsBoolean(ApplicationCommon.HistoryGridVisibilityKey, "StoredProcedureLogRaw");
            }
            else
            {
                Clear();
            }
        }
예제 #16
0
        protected override void ShowData(int notificationPublisherXEventTypeId)
        {
            oDetailButtonPanel.SetId = SetId;

            var dataQuery = new NotificationPublisherXEventTypeDataModel();

            dataQuery.NotificationPublisherXEventTypeId = notificationPublisherXEventTypeId;

            var entityList = Framework.Components.EventMonitoring.NotificationPublisherXEventTypeDataManager.GetEntityList(dataQuery, SessionVariables.RequestProfile);

            if (entityList.Count == 1)
            {
                foreach (var entityItem in entityList)
                {
                    lblNotificationPublisherXEventTypeId.Text = entityItem.NotificationPublisherXEventTypeId.ToString();
                    lblNotificationEventType.Text             = entityItem.NotificationEventTypeId.ToString();
                    lblNotificationPublisher.Text             = entityItem.NotificationPublisherId.ToString();
                    lblCreatedDateId.Text = entityItem.CreatedDateId.ToString() + entityItem.CreatedTimeId.ToString();

                    oUpdateInfo.LoadText(entityItem.UpdatedDate, entityItem.UpdatedBy, entityItem.LastAction);

                    oHistoryList.Setup((int)Framework.Components.DataAccess.SystemEntity.NotificationPublisherXEventType, notificationPublisherXEventTypeId, "NotificationPublisherXEventType");
                    dynAuditHistory.Visible = PerferenceUtility.GetUserPreferenceByKeyAsBoolean(ApplicationCommon.HistoryGridVisibilityKey, "NotificationPublisherXEventType");
                }
            }
            else
            {
                Clear();
            }
        }
예제 #17
0
        public void LoadData(int SuperKeyDetailId, bool showId)
        {
            var data = new SuperKeyDetailDataModel();

            data.SuperKeyDetailId = SuperKeyDetailId;
            var oApplicationTable = Framework.Components.Core.SuperKeyDetailDataManager.GetDetails(data, SessionVariables.RequestProfile);

            if (oApplicationTable.Rows.Count == 1)
            {
                var row = oApplicationTable.Rows[0];

                if (!showId)
                {
                    txtSuperKeyDetailId.Text = Convert.ToString(row[SuperKeyDetailDataModel.DataColumns.SuperKeyDetailId]);
                    oHistoryList.Setup("AuditHistory", "", "AuditHistoryId", true, true, (int)Framework.Components.DataAccess.SystemEntity.SuperKeyDetail, SuperKeyDetailId, "SuperKeyDetail");
                    dynAuditHistory.Visible = PerferenceUtility.GetUserPreferenceByKeyAsBoolean(ApplicationCommon.HistoryGridVisibilityKey, "SuperKeyDetail");
                }
                else
                {
                    txtSuperKeyDetailId.Text = String.Empty;
                }

                drpSuperKey.SelectedValue = Convert.ToString(row[SuperKeyDetailDataModel.DataColumns.SuperKeyId]);
                txtEntityKey.Text         = Convert.ToString(row[SuperKeyDetailDataModel.DataColumns.EntityKey]);
            }
            else
            {
                txtSuperKeyId.Text = String.Empty;
                txtEntityKey.Text  = String.Empty;
            }
        }
예제 #18
0
        protected void SearchParametersRepeater_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
            {
                var label        = (Label)e.Item.FindControl("label");
                var hdnfield     = (HiddenField)e.Item.FindControl("hdnfield");
                var txtbox       = (TextBox)e.Item.FindControl("txtbox");
                var txtbox1      = (TextBox)e.Item.FindControl("txtbox1");
                var dropdownlist = (DropDownList)e.Item.FindControl("dropdownlist");

                if (label != null && dropdownlist != null)
                {
                    var name = hdnfield.Value;
                    var data = new FieldConfigurationDataModel();
                    data.Name = name;
                    data.FieldConfigurationModeId = SessionVariables.SearchControlColumnsModeId;
                    var dt = FieldConfigurationDataManager.Search(data, SessionVariables.RequestProfile);
                    if (dt.Rows.Count >= 1)
                    {
                        var controltype = dt.Rows[0]
                                          [FieldConfigurationDataModel.DataColumns.ControlType].ToString();
                        if (controltype.Equals("TextBox"))
                        {
                            txtbox.Visible       = true;
                            txtbox1.Visible      = false;
                            dropdownlist.Visible = false;
                        }
                        else
                        if (controltype.Equals("DropDownList"))
                        {
                            txtbox.Visible       = false;
                            txtbox1.Visible      = true;
                            dropdownlist.Visible = true;

                            if (name.Equals("FunctionalityId"))
                            {
                                var functionalityData = TaskTimeTracker.Components.Module.ApplicationDevelopment.FunctionalityDataManager.GetList(SessionVariables.RequestProfile);
                                UIHelper.LoadDropDown(functionalityData, dropdownlist,
                                                      StandardDataModel.StandardDataColumns.Name,
                                                      FunctionalityDataModel.DataColumns.FunctionalityId);
                            }

                            if (name.Equals("FunctionalityActiveStatusId"))
                            {
                                var FunctionalityActiveStatusData = TaskTimeTracker.Components.Module.ApplicationDevelopment.FunctionalityActiveStatusDataManager.GetList(SessionVariables.RequestProfile);
                                UIHelper.LoadDropDown(FunctionalityActiveStatusData, dropdownlist,
                                                      StandardDataModel.StandardDataColumns.Name,
                                                      FunctionalityActiveStatusDataModel.DataColumns.FunctionalityActiveStatusId);
                            }
                            dropdownlist.Items.Insert(0, new ListItem("All", "-1"));
                            dropdownlist.SelectedIndex = 0;
                        }
                    }
                    e.Item.Visible = PerferenceUtility.GetUserPreferenceByKeyAsBoolean(name + "Visibility", SettingCategory);
                }
            }
        }
예제 #19
0
        protected void SearchParametersRepeater_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
            {
                var label        = (Label)e.Item.FindControl("label");
                var hdnfield     = (HiddenField)e.Item.FindControl("hdnfield");
                var txtbox       = (TextBox)e.Item.FindControl("txtbox");
                var txtbox1      = (TextBox)e.Item.FindControl("txtbox1");
                var dropdownlist = (DropDownList)e.Item.FindControl("dropdownlist");

                if (label != null && txtbox != null && dropdownlist != null)
                {
                    var name = hdnfield.Value;
                    var data = new FieldConfigurationDataModel();
                    data.Name = name;
                    data.FieldConfigurationModeId = SessionVariables.SearchControlColumnsModeId;
                    var dt = FieldConfigurationDataManager.Search(data, SessionVariables.RequestProfile);
                    if (dt.Rows.Count >= 1)
                    {
                        var controltype = dt.Rows[0]
                                          [FieldConfigurationDataModel.DataColumns.ControlType].ToString();
                        if (controltype.Equals("TextBox"))
                        {
                            txtbox.Visible       = true;
                            txtbox1.Visible      = false;
                            dropdownlist.Visible = false;
                        }
                        else if (controltype.Equals("DropDownList"))
                        {
                            txtbox.Visible       = false;
                            txtbox1.Visible      = true;
                            dropdownlist.Visible = true;

                            if (name.Equals("ApplicationUserId"))
                            {
                                var applicationUserData = Framework.Components.ApplicationUser.ApplicationUserDataManager.GetList(SessionVariables.RequestProfile);
                                UIHelper.LoadDropDown(applicationUserData, dropdownlist,
                                                      ApplicationUserDataModel.DataColumns.FullName,
                                                      ApplicationUserDataModel.DataColumns.ApplicationUserId);
                            }

                            if (name.Equals("UserPreferenceKeyId"))
                            {
                                var UserPreferenceKeyData = Framework.Components.UserPreference.UserPreferenceKeyDataManager.GetList(SessionVariables.RequestProfile);
                                UIHelper.LoadDropDown(UserPreferenceKeyData, dropdownlist,
                                                      StandardDataModel.StandardDataColumns.Name,
                                                      UserPreferenceKeyDataModel.DataColumns.UserPreferenceKeyId);
                            }
                        }
                    }
                    e.Item.Visible = PerferenceUtility.GetUserPreferenceByKeyAsBoolean(name + "Visibility", SettingCategory);
                }
            }
        }
예제 #20
0
 protected virtual void Page_Load(object sender, EventArgs e)
 {
     // need re-thinking
     if (SessionVariables.IsTesting)
     {
         PlaceHolderAuditHistory.Visible = true;
     }
     else
     {
         PlaceHolderAuditHistory.Visible = PerferenceUtility.GetUserPreferenceByKeyAsBoolean(ApplicationCommon.HistoryGridVisibilityKey, "Client");
     }
 }
예제 #21
0
        private void SetAutoSearchOn()
        {
            var autoSearchOn = PerferenceUtility.GetUserPreferenceByKeyAsBoolean(ApplicationCommon.AutoSearchOn, SettingCategory);

            if (autoSearchOn)
            {
                drpSearchConditionSuperKey.AutoPostBack = true;
            }
            else
            {
                drpSearchConditionSuperKey.AutoPostBack = false;
            }
        }
예제 #22
0
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            PrimaryEntityKey       = "ProjectPortfolio";
            FolderLocationFromRoot = "ProjectPortfolio";
            PrimaryEntity          = SystemEntity.ProjectPortfolio;

            PlaceHolderCore         = dynProjectPortfolioId;
            PlaceHolderAuditHistory = dynAuditHistory;

            PlaceHolderAuditHistory.Visible = PerferenceUtility.GetUserPreferenceByKeyAsBoolean(ApplicationCommon.HistoryGridVisibilityKey, PrimaryEntityKey);
        }
예제 #23
0
        public void LoadData(int batchFileId, bool showId)
        {
            var data = new BatchFileDataModel();

            data.BatchFileId = batchFileId;
            var oBatchFileTable = Framework.Components.Import.BatchFileDataManager.GetDetails(data, SessionVariables.RequestProfile);

            if (oBatchFileTable.Rows.Count == 1)
            {
                var row = oBatchFileTable.Rows[0];

                if (!showId)
                {
                    txtBatchFileId.Text = Convert.ToString(row[BatchFileDataModel.DataColumns.BatchFileId]);

                    // only show Audit History in case of Update page, not for Clone.
                    oHistoryList.Setup((int)Framework.Components.DataAccess.SystemEntity.BatchFile, batchFileId, "BatchFile");
                    dynAuditHistory.Visible = PerferenceUtility.GetUserPreferenceByKeyAsBoolean(ApplicationCommon.HistoryGridVisibilityKey, "BatchFile");

                    oUpdateInfo.LoadText(oBatchFileTable.Rows[0]);
                }
                else
                {
                    txtBatchFileId.Text = String.Empty;
                }

                txtName.Text               = Convert.ToString(row[BatchFileDataModel.DataColumns.Name]);
                txtDescription.Text        = Convert.ToString(row[StandardDataModel.StandardDataColumns.Description]);
                txtBatchFileSetId.Text     = Convert.ToString(row[BatchFileDataModel.DataColumns.BatchFileSetId]);
                txtFileTypeId.Text         = Convert.ToString(row[BatchFileDataModel.DataColumns.FileTypeId]);
                txtSystemEntityTypeId.Text = Convert.ToString(row[BatchFileDataModel.DataColumns.SystemEntityTypeId]);
                txtBatchFileStatusId.Text  = Convert.ToString(row[BatchFileDataModel.DataColumns.BatchFileStatusId]);

                drpSystemEntityTypeList.SelectedValue = Convert.ToString(row[BatchFileDataModel.DataColumns.SystemEntityTypeId]);
                drpFileTypeList.SelectedValue         = Convert.ToString(row[BatchFileDataModel.DataColumns.FileTypeId]);
                drpBatchFileStatusList.SelectedValue  = Convert.ToString(row[BatchFileDataModel.DataColumns.BatchFileStatusId]);
                drpBatchFileSetList.SelectedValue     = Convert.ToString(row[BatchFileDataModel.DataColumns.BatchFileSetId]);

                oUpdateInfo.LoadText(oBatchFileTable.Rows[0]);
            }
            else
            {
                txtName.Text               = String.Empty;
                txtBatchFileId.Text        = String.Empty;
                txtDescription.Text        = String.Empty;
                txtBatchFileSetId.Text     = String.Empty;
                txtFileTypeId.Text         = String.Empty;
                txtSystemEntityTypeId.Text = String.Empty;
                txtBatchFileStatusId.Text  = String.Empty;
            }
        }
예제 #24
0
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            PrimaryEntityKey = "ApplicationOperation";
            PrimaryEntity    = Framework.Components.DataAccess.SystemEntity.ApplicationOperation;

            // set object variable reference
            PlaceHolderCore         = dynApplicationOperationId;
            PlaceHolderAuditHistory = dynAuditHistory;
            BorderDiv = borderdiv;

            PlaceHolderAuditHistory.Visible = PerferenceUtility.GetUserPreferenceByKeyAsBoolean(ApplicationCommon.HistoryGridVisibilityKey, PrimaryEntityKey);
        }
예제 #25
0
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            PrimaryEntity          = SystemEntity.TaskPriorityXApplicationUser;
            PrimaryEntityKey       = "TaskPriorityXApplicationUser";
            FolderLocationFromRoot = "TaskPriorityXApplicationUser";

            PlaceHolderCore         = dynTaskPriorityXApplicationUserId;
            PlaceHolderAuditHistory = dynAuditHistory;
            BorderDiv = borderdiv;

            PlaceHolderAuditHistory.Visible = PerferenceUtility.GetUserPreferenceByKeyAsBoolean(ApplicationCommon.HistoryGridVisibilityKey, PrimaryEntityKey);
        }
예제 #26
0
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            PrimaryEntityKey       = "UseCasePackageXUseCase";
            FolderLocationFromRoot = "/RequirementAnalysis";
            PrimaryEntity          = Framework.Components.DataAccess.SystemEntity.UseCasePackageXUseCase;

            PlaceHolderCore         = dynUseCasePackageXUseCaseId;
            PlaceHolderAuditHistory = dynAuditHistory;
            BorderDiv = borderdiv;

            PlaceHolderAuditHistory.Visible = PerferenceUtility.GetUserPreferenceByKeyAsBoolean(ApplicationCommon.HistoryGridVisibilityKey, PrimaryEntityKey);
        }
예제 #27
0
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            PrimaryEntity          = Framework.Components.DataAccess.SystemEntity.TaskRiskRewardRankingXPerson;
            PrimaryEntityKey       = "TaskRiskRewardRankingXPerson";
            FolderLocationFromRoot = "TaskRiskRewardRankingXPerson";

            PlaceHolderCore         = dynTaskRiskRewardRankingXPersonId;
            PlaceHolderAuditHistory = dynAuditHistory;
            BorderDiv = borderdiv;

            PlaceHolderAuditHistory.Visible = PerferenceUtility.GetUserPreferenceByKeyAsBoolean(ApplicationCommon.HistoryGridVisibilityKey, PrimaryEntityKey);
        }
예제 #28
0
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            PrimaryEntityKey       = "FunctionalityOwner";
            FolderLocationFromRoot = "/Shared/QualityAssurance";
            PrimaryEntity          = Framework.Components.DataAccess.SystemEntity.FunctionalityOwner;

            // set object variable reference
            PlaceHolderCore         = dynFunctionalityOwnerId;
            PlaceHolderAuditHistory = dynAuditHistory;
            BorderDiv = borderdiv;

            PlaceHolderAuditHistory.Visible = PerferenceUtility.GetUserPreferenceByKeyAsBoolean(ApplicationCommon.HistoryGridVisibilityKey, PrimaryEntityKey);
        }
예제 #29
0
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            PrimaryEntityKey       = "BatchFileSet";
            FolderLocationFromRoot = "Shared/Admin/BatchFileSet";
            PrimaryEntity          = Framework.Components.DataAccess.SystemEntity.BatchFileSet;

            // set object variable reference
            PlaceHolderCore         = dynBatchFileSetId;
            PlaceHolderAuditHistory = dynAuditHistory;
            BorderDiv = borderdiv;

            PlaceHolderAuditHistory.Visible = PerferenceUtility.GetUserPreferenceByKeyAsBoolean(ApplicationCommon.HistoryGridVisibilityKey, PrimaryEntityKey);
        }
예제 #30
0
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            PrimaryEntityKey       = "UserPreferenceKey";
            FolderLocationFromRoot = "/Shared/Configuration";
            PrimaryEntity          = SystemEntity.UserPreferenceKey;

            // set object variable reference
            PlaceHolderCore         = dynUserPreferenceKeyId;
            PlaceHolderAuditHistory = dynAuditHistory;
            BorderDiv = borderdiv;

            PlaceHolderAuditHistory.Visible = PerferenceUtility.GetUserPreferenceByKeyAsBoolean(ApplicationCommon.HistoryGridVisibilityKey, PrimaryEntityKey);
        }