protected override DataTable GetData() { try { SuperKey = ApplicationCommon.GetSuperKey(); SetId = ApplicationCommon.GetSetId(); var selectedrows = new DataTable(); var useCaseStepdata = new UseCaseStepDataModel(); selectedrows = TaskTimeTracker.Components.BusinessLayer.RequirementAnalysis.UseCaseStepDataManager.GetDetails(useCaseStepdata, SessionVariables.RequestProfile).Clone(); if (!string.IsNullOrEmpty(SuperKey)) { var systemEntityTypeId = (int)PrimaryEntity; var lstEntityKeys = ApplicationCommon.GetSuperKeyDetails(systemEntityTypeId, SuperKey); foreach (var entityKey in lstEntityKeys) { useCaseStepdata.UseCaseStepId = entityKey; var result = TaskTimeTracker.Components.BusinessLayer.RequirementAnalysis.UseCaseStepDataManager.GetDetails(useCaseStepdata, SessionVariables.RequestProfile); selectedrows.ImportRow(result.Rows[0]); } } else { useCaseStepdata.UseCaseStepId = SetId; var result = TaskTimeTracker.Components.BusinessLayer.RequirementAnalysis.UseCaseStepDataManager.GetDetails(useCaseStepdata, SessionVariables.RequestProfile); selectedrows.ImportRow(result.Rows[0]); } return(selectedrows); } catch (Exception ex) { Response.Write(ex.Message); } return(null); }
protected override DataTable GetData() { try { SuperKey = ApplicationCommon.GetSuperKey(); SetId = ApplicationCommon.GetSetId(); var selectedrows = new DataTable(); var applicationOperationdata = new ApplicationOperationDataModel(); selectedrows = Framework.Components.ApplicationUser.ApplicationOperationDataManager.GetDetails(applicationOperationdata, SessionVariables.RequestProfile).Clone(); if (!string.IsNullOrEmpty(SuperKey)) { var systemEntityTypeId = (int)PrimaryEntity; var lstEntityKeys = ApplicationCommon.GetSuperKeyDetails(systemEntityTypeId, SuperKey); foreach (var entityKey in lstEntityKeys) { applicationOperationdata.ApplicationOperationId = entityKey; var result = Framework.Components.ApplicationUser.ApplicationOperationDataManager.GetDetails(applicationOperationdata, SessionVariables.RequestProfile); selectedrows.ImportRow(result.Rows[0]); } } else { applicationOperationdata.ApplicationOperationId = SetId; var result = Framework.Components.ApplicationUser.ApplicationOperationDataManager.GetDetails(applicationOperationdata, SessionVariables.RequestProfile); selectedrows.ImportRow(result.Rows[0]); } return(selectedrows); } catch (Exception ex) { Response.Write(ex.Message); } return(null); }
protected override DataTable GetData() { try { SuperKey = ApplicationCommon.GetSuperKey(); SetId = ApplicationCommon.GetSetId(); var selectedrows = new DataTable(); var functionalitydata = new FunctionalityDataModel(); selectedrows = TaskTimeTracker.Components.Module.ApplicationDevelopment.FunctionalityDataManager.GetDetails(functionalitydata, SessionVariables.RequestProfile).Clone(); if (!string.IsNullOrEmpty(SuperKey)) { var systemEntityTypeId = (int)PrimaryEntity; var lstEntityKeys = ApplicationCommon.GetSuperKeyDetails(systemEntityTypeId, SuperKey); foreach (var entityKey in lstEntityKeys) { functionalitydata.FunctionalityId = entityKey; var result = TaskTimeTracker.Components.Module.ApplicationDevelopment.FunctionalityDataManager.GetDetails(functionalitydata, SessionVariables.RequestProfile); selectedrows.ImportRow(result.Rows[0]); } } else { functionalitydata.FunctionalityId = SetId; var result = TaskTimeTracker.Components.Module.ApplicationDevelopment.FunctionalityDataManager.GetDetails(functionalitydata, SessionVariables.RequestProfile); selectedrows.ImportRow(result.Rows[0]); } return(selectedrows); } catch (Exception ex) { Response.Write(ex.Message); } return(null); }
protected void Page_Load(object sender, EventArgs e) { if (!SessionVariables.UserAuthorized) { Response.Redirect("~/UnauthorizedAccess.htm", true); } Page.Header.DataBind(); StartupCheck(); //var isTesting = SessionVariables.IsTesting; lblPerson.Text = "Logged in User: "******" (" + SessionVariables.RequestProfile.AuditId + ")"; if (!IsPostBack) { lblStatus.ToolTip = "ApplicationMode = " + oSliderMenu.ApplicationMode + " \n" + " MenuCategory = " + oSliderMenu.MenuCategory; var applicationInfo = ApplicationCommon.ApplicationCache[SessionVariables.RequestProfile.ApplicationId]; lblProjectTitle.InnerText = applicationInfo.Description; } var strURL = String.Empty; if (ApplicationCommon.GetSetId() != 0) { strURL = Page.AppRelativeVirtualPath.Substring(0, Page.AppRelativeVirtualPath.LastIndexOf(".", System.StringComparison.Ordinal)) + "/" + ApplicationCommon.GetSetId(); } else { strURL = Page.AppRelativeVirtualPath; } AddUserLoginHistoryRecord(); QuickSearchControlId.OnSearch += new EventHandler(QuickSearch_buttonClick); QuickSearchControlId.SetUp(); }
protected override DataTable GetData() { try { var superKey = ApplicationCommon.GetSuperKey(); var setId = ApplicationCommon.GetSetId(); var selectedrows = new DataTable(); var skillXPersonXSkillLeveldata = new DataModel.TaskTimeTracker.Competency.SkillXPersonXSkillLevelDataModel(); selectedrows = SkillXPersonXSkillLevelDataManager.GetDetails(skillXPersonXSkillLeveldata, SessionVariables.RequestProfile).Clone(); if (!string.IsNullOrEmpty(SuperKey)) { var systemEntityTypeId = (int)PrimaryEntity; var lstEntityKeys = ApplicationCommon.GetSuperKeyDetails(systemEntityTypeId, SuperKey); foreach (var entityKey in lstEntityKeys) { skillXPersonXSkillLeveldata.SkillLevelId = entityKey; var result = SkillXPersonXSkillLevelDataManager.GetDetails(skillXPersonXSkillLeveldata, SessionVariables.RequestProfile); selectedrows.ImportRow(result.Rows[0]); } } else { skillXPersonXSkillLeveldata.SkillLevelId = SetId; var result = SkillXPersonXSkillLevelDataManager.GetDetails(skillXPersonXSkillLeveldata, SessionVariables.RequestProfile); selectedrows.ImportRow(result.Rows[0]); } return(selectedrows); } catch (Exception ex) { Response.Write(ex.Message); } return(null); }
protected void Page_Load(object sender, EventArgs e) { SuperKey = ApplicationCommon.GetSuperKey(); SetId = ApplicationCommon.GetSetId(); // load on first direct loading of this page // don't want to reload everttime, as it would // reset the values the user had put. if (!IsPostBack) { try { myGenericControl.SetId(SetId, true); } catch (Exception ex) { System.Diagnostics.Debug.WriteLine(ex.Message); //throw } //LoadData(setId); } }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); SuperKey = ApplicationCommon.GetSuperKey(); if (!string.IsNullOrEmpty(SuperKey)) { var lstEntityKeys = ApplicationCommon.GetSuperKeyDetails(PrimaryEntity.Value(), SuperKey); foreach (var entityKey in lstEntityKeys) { AddDetailControl(false, entityKey); } return; } SetId = ApplicationCommon.GetSetId(); if (SetId != 0) { AddDetailControl(true, SetId); } }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); ViewName = "CommonUpdate"; DynamicUpdatePanelCore.AddColumns(GetColumns()); SuperKey = ApplicationCommon.GetSuperKey(); SetId = ApplicationCommon.GetSetId(); var results = GetEntityData(null).Clone(); if (!string.IsNullOrEmpty(SuperKey)) { var lstEntityKeys = ApplicationCommon.GetSuperKeyDetails(PrimaryEntity.Value(), SuperKey); foreach (var entityKey in lstEntityKeys) { var dt = GetEntityData(entityKey); if (dt.Rows.Count == 1) { results.ImportRow(dt.Rows[0]); } } } else { var dt = GetEntityData(SetId); if (dt.Rows.Count == 1) { results.ImportRow(dt.Rows[0]); } } SelectedData = results.Copy(); DynamicUpdatePanelCore.SetUp(GetColumns(), PrimaryEntityKey, GetData()); }
protected void Page_Load(object sender, EventArgs e) { if (!SessionVariables.UserAuthorized) { Response.Redirect("~/UnauthorizedAccess.htm", true); } var isTesting = SessionVariables.IsTesting; lblPerson.Text = "Logged in User: "******" (" + SessionVariables.RequestProfile.AuditId + ")"; var applicationInfo = ApplicationCommon.ApplicationCache[SessionVariables.RequestProfile.ApplicationId]; lblProjectTitle.InnerText = applicationInfo.Description; if (!IsPostBack) { lblStatus.Text = "[I]"; lblStatus.ToolTip = "ApplicationMode = " + oSliderMenu.ApplicationMode + " \n" + " MenuCategory = " + oSliderMenu.MenuCategory; } MenuHelper.GenerateUserPreferenceMenu(NavigationMenu); var strURL = String.Empty; if (ApplicationCommon.GetSetId() != 0) { strURL = Page.AppRelativeVirtualPath.Substring(0, Page.AppRelativeVirtualPath.LastIndexOf(".")) + "/" + ApplicationCommon.GetSetId(); } else { strURL = Page.AppRelativeVirtualPath; } QuickSearchControlId.OnSearch += new EventHandler(QuickSearch_buttonClick); QuickSearchControlId.SetUp(); }
protected override void OnInit(EventArgs e) { base.OnInit(e); try { var detailsControlPath = "~/ClientXProject/Controls/Details.ascx"; var superKey = ApplicationCommon.GetSuperKey(); var setId = ApplicationCommon.GetSetId(); if (!string.IsNullOrEmpty(superKey)) { var data = new SuperKeyDetailDataModel(); data.SuperKeyId = Convert.ToInt32(superKey); // Change System Entity Type data.SystemEntityTypeId = (int)SystemEntity.ClientXProject; var dt = SuperKeyDetailDataManager.Search(data, SessionVariables.RequestProfile); if (dt != null && dt.Rows.Count > 0) { foreach (DataRow dr in dt.Rows) { var key = Convert.ToInt32(dr[SuperKeyDetailDataModel.DataColumns.EntityKey]); if (string.IsNullOrEmpty(DeleteIds)) { DeleteIds = key.ToString(); } else { DeleteIds += "," + key.ToString(); } var detailsControl = (Controls.Details)Page.LoadControl(detailsControlPath); detailsControl.SetId = key; detailsControl.BorderClass = ApplicationCommon.DetailsBorderClassName; plcDetailsList.Controls.Add(detailsControl); plcDetailsList.Controls.Add(new LiteralControl("<br />")); //chkVisible.Checked = detailsControl.IsHistoryVisible; } } } else { var key = setId; DeleteIds = setId.ToString(); var detailsControl = (Controls.Details)Page.LoadControl(detailsControlPath); detailsControl.SetId = key; plcDetailsList.Controls.Add(detailsControl); } ShowAuditHistory(true); } catch (Exception ex) { Response.Write(ex.Message); } }
protected void Page_Load(object sender, EventArgs e) { if (!SessionVariables.UserAuthorized) { Response.Redirect("~/UnauthorizedAccess.htm", true); } var isTesting = SessionVariables.IsTesting; lblPerson.Text = "Logged in User: "******" (" + SessionVariables.AuditId + ")"; if (!IsPostBack) { lblStatus.Text = "[I]"; lblStatus.ToolTip = "ApplicationMode = " + oSliderMenu.ApplicationMode + " \n" + " MenuCategory = " + oSliderMenu.MenuCategory; } MenuHelper.GenerateUserPreferenceMenu(NavigationMenu); var strURL = String.Empty; if (ApplicationCommon.GetSetId() != 0) { strURL = Page.AppRelativeVirtualPath.Substring(0, Page.AppRelativeVirtualPath.LastIndexOf(".")) + "/" + ApplicationCommon.GetSetId(); } else { strURL = Page.AppRelativeVirtualPath; } var data = new UserLoginHistoryDataModel(); data.UserId = SessionVariables.AuditId; data.UserName = ApplicationCommon.GetApplicationUserName(); data.URL = strURL; data.ServerName = Environment.MachineName; UserLoginHistoryDataManager.Create(data, SessionVariables.AuditId); QuickSearchControlId.OnSearch += new EventHandler(QuickSearch_buttonClick); QuickSearchControlId.SetUp(); }
protected void Page_Load(object sender, EventArgs e) { if (!SessionVariables.UserAuthorized) { Response.Redirect("~/UnauthorizedAccess.htm", true); } Page.Header.DataBind(); StartupCheck(); lblPerson.Text = "Logged in User: "******" (" + SessionVariables.RequestProfile.AuditId + ")"; if (!IsPostBack) { lblStatus.ToolTip = "ApplicationMode = " + oSliderMenu.ApplicationMode + " \n" + " MenuCategory = " + oSliderMenu.MenuCategory; } //MenuHelper.GenerateUserPreferenceMenu(NavigationMenu); var strURL = String.Empty; if (ApplicationCommon.GetSetId() != 0) { strURL = Page.AppRelativeVirtualPath.Substring(0, Page.AppRelativeVirtualPath.LastIndexOf(".", System.StringComparison.Ordinal)) + "/" + ApplicationCommon.GetSetId(); } else { strURL = Page.AppRelativeVirtualPath; } AddUserLoginHistoryRecord(); }
protected override void OnInit(EventArgs e) { try { base.OnInit(e); var path = "~/Shared/Admin/SystemIntegrity/SystemDevNumbers/Controls/Details.ascx"; var genericcontrolpath = "~/Shared/Admin/SystemIntegrity/SystemDevNumbers/Controls/Generic.ascx"; SuperKey = ApplicationCommon.GetSuperKey(); SetId = ApplicationCommon.GetSetId(); if (!string.IsNullOrEmpty(SuperKey)) { btnCancel.Visible = true; btnUpdate.Visible = true; showMultipleUpdateView = true; } else if (Request.QueryString["SetId"] != null) { setId = int.Parse(Request.QueryString["SetId"]); btnUpdate.Visible = true; btnCancel.Visible = true; } if (showMultipleUpdateView) { var data = new SuperKeyDetailDataModel(); data.SuperKeyId = Convert.ToInt32(SuperKey); // Change System Entity Type data.SystemEntityTypeId = (int)Framework.Components.DataAccess.SystemEntity.SystemDevNumbers; var dt = Framework.Components.Core.SuperKeyDetailDataManager.Search(data, SessionVariables.RequestProfile); if (dt != null && dt.Rows.Count > 0) { foreach (System.Data.DataRow dr in dt.Rows) { var key = Convert.ToInt32(dr[SuperKeyDetailDataModel.DataColumns.EntityKey]); var SystemDevNumbersupdateControl = (Controls.Generic)Page.LoadControl(genericcontrolpath); SystemDevNumbersupdateControl.SetId(key, false); plcUpdateList.Controls.Add(SystemDevNumbersupdateControl); if (dt.Rows.Count > 1) { SystemDevNumbersupdateControl.BorderClass = ApplicationCommon.DetailsBorderClassName; SystemDevNumbersupdateControl.Controls.Add(new LiteralControl("<br />")); } chkVisible.Checked = SystemDevNumbersupdateControl.IsHistoryVisible; } } } else if (SetId != 0) { var SystemDevNumbersupdateControl = (Controls.Generic)Page.LoadControl(genericcontrolpath); SystemDevNumbersupdateControl.SetId(SetId, false); plcUpdateList.Controls.Add(SystemDevNumbersupdateControl); chkVisible.Checked = SystemDevNumbersupdateControl.IsHistoryVisible; } } catch (Exception ex) { System.Diagnostics.Debug.WriteLine(ex.Message); //throw } }
protected override void OnInit(EventArgs e) { try { base.OnInit(e); SuperKey = ApplicationCommon.GetSuperKey(); SetId = ApplicationCommon.GetSetId(); var path = "~/Shared/Configuration/ApplicationEntityFieldLabelMode/Controls/Details.ascx"; var genericcontrolpath = "~/Shared/Configuration/ApplicationEntityFieldLabelMode/Controls/Generic.ascx"; if (!string.IsNullOrEmpty(SuperKey)) { btnCancel.Visible = true; btnUpdate.Visible = true; btnClone.Visible = false; showMultipleUpdateView = true; } else if (SetId != 0) { btnUpdate.Visible = true; btnCancel.Visible = true; btnClone.Visible = false; } if (showMultipleUpdateView) { var data = new Framework.Components.Core.SuperKeyDetail.Data(); data.SuperKeyId = Convert.ToInt32(SuperKey); // Change System Entity Type data.SystemEntityTypeId = (int)Framework.Components.DataAccess.SystemEntity.ApplicationEntityFieldLabelMode; var dt = Framework.Components.Core.SuperKeyDetail.Search(data, SessionVariables.AuditId); if (dt != null && dt.Rows.Count > 0) { foreach (System.Data.DataRow dr in dt.Rows) { var key = Convert.ToInt32(dr[Framework.Components.Core.SuperKeyDetail.DataColumns.EntityKey]); var ApplicationEntityFieldLabelupdatecontrol = (Controls.Generic)Page.LoadControl(genericcontrolpath); ApplicationEntityFieldLabelupdatecontrol.SetId(key, false); plcUpdateList.Controls.Add(ApplicationEntityFieldLabelupdatecontrol); if (dt.Rows.Count > 1) { ApplicationEntityFieldLabelupdatecontrol.BorderClass = ApplicationCommon.DetailsBorderClassName; ApplicationEntityFieldLabelupdatecontrol.Controls.Add(new LiteralControl("<br />")); } chkVisible.Checked = ApplicationEntityFieldLabelupdatecontrol.IsHistoryVisible; } } } else { var key = SetId; var ApplicationEntityFieldLabelupdatecontrol = (Controls.Generic)Page.LoadControl(genericcontrolpath); ApplicationEntityFieldLabelupdatecontrol.SetId(key, false); plcUpdateList.Controls.Add(ApplicationEntityFieldLabelupdatecontrol); chkVisible.Checked = ApplicationEntityFieldLabelupdatecontrol.IsHistoryVisible; } } catch (Exception ex) { System.Diagnostics.Debug.WriteLine(ex.Message); //throw } }