/// <summary>Begin page running after session validations</summary> private void Go() { this.user = (ApplicationUser)Session["User"]; this.Dictionary = Session["Dictionary"] as Dictionary <string, string>; // Security access control if (!this.user.HasGrantToRead(ApplicationGrant.JobPosition)) { this.Response.Redirect("NoPrivileges.aspx", Constant.EndResponse); Context.ApplicationInstance.CompleteRequest(); } this.master = this.Master as Giso; this.master.AdminPage = true; string serverPath = this.Request.Url.AbsoluteUri.Replace(this.Request.RawUrl.Substring(1), string.Empty); this.master.AddBreadCrumb("Item_JobPositions"); this.master.Titulo = "Item_JobPositions"; this.RenderJobPositionData(); if (this.user.HasGrantToWrite(ApplicationGrant.JobPosition)) { this.master.ButtonNewItem = UIButton.NewItemButton("Item_JobPosition_Button_New", "CargosView.aspx"); } }
/// <summary> /// Begin page running after session validations /// </summary> private void Go() { if (this.Page.Request.QueryString["ItemType"] != null) { this.ItemType = Convert.ToInt32(this.Page.Request.QueryString["ItemType"]); } this.user = (ApplicationUser)Session["User"]; this.dictionary = Session["Dictionary"] as Dictionary <string, string>; this.master = this.Master as Giso; this.master.AdminPage = this.AdminPage; string serverPath = this.Request.Url.AbsoluteUri.Replace(this.Request.RawUrl.Substring(1), string.Empty); var item = Item.GetByCode(this.ItemType, this.dictionary); this.ItemName = item.ItemType; this.master.AddBreadCrumbInvariant(item.NamePlural); this.master.Titulo = item.NamePlural; this.master.TitleInvariant = true; if (this.user.HasGrantToWrite(ApplicationGrant.Department)) { this.master.ButtonNewItem = item.NewButton; } this.DataHeader = item.Headers[0]; }
/// <summary>Begin page running after session validations</summary> private void Go() { this.user = new ApplicationUser(Convert.ToInt32(Session["UserId"])); this.Dictionary = Session["Dictionary"] as Dictionary <string, string>; this.master = this.Master as Giso; this.master.AdminPage = true; this.master.AddBreadCrumb("Item_Employees"); this.master.Titulo = "Item_Employees"; this.company = (Company)Session["Company"]; this.RenderEmployeeData(); if (this.user.HasGrantToWrite(ApplicationGrant.Employee)) { this.master.ButtonNewItem = UIButton.NewItemButton("Item_Employee_Button_New", "EmployeesView.aspx"); } this.DataHeader = new UIDataHeader { Id = "ListDataHeader", ActionsItem = 2 };; this.DataHeader.AddItem(new UIDataHeaderItem { Id = "th0", HeaderId = "ListDataHeader", DataId = "ListDataTable", Text = this.Dictionary["Common_Name"], Sortable = true, Filterable = true }); this.DataHeader.AddItem(new UIDataHeaderItem { Id = "th1", HeaderId = "ListDataHeader", DataId = "ListDataTable", Text = this.Dictionary["Item_JobPosition"] }); this.DataHeader.AddItem(new UIDataHeaderItem { Id = "th2", HeaderId = "ListDataHeader", DataId = "ListDataTable", Text = this.Dictionary["Item_Departments"] }); }
/// <summary>Begin page running after session validations</summary> private void Go() { this.user = Session["User"] as ApplicationUser; this.company = Session["company"] as Company; this.Dictionary = Session["Dictionary"] as Dictionary <string, string>; // Security access control if (!this.user.HasGrantToRead(ApplicationGrant.Questionary)) { this.Response.Redirect("NoPrivileges.aspx", Constant.EndResponse); Context.ApplicationInstance.CompleteRequest(); } // Parameters control if (this.Request.QueryString["c"] != null) { this.questionnaireId = Convert.ToInt32(this.Request.QueryString["c"]); } this.Auditory = Auditory.Empty; if (this.Request.QueryString["a"] != null) { this.auditoryId = Convert.ToInt32(this.Request.QueryString["a"]); this.Auditory = Auditory.ById(this.auditoryId, this.company.Id); } this.master = this.Master as Giso; this.master.AdminPage = true; string serverPath = this.Request.Url.AbsoluteUri.Replace(this.Request.RawUrl.Substring(1), string.Empty); this.formFooter = new FormFooter(); if (this.questionnaireId > 0) { this.Questionary = Questionary.ById(this.questionnaireId, this.company.Id); if (this.Questionary.CompanyId != this.company.Id) { this.Response.Redirect("NoAccesible.aspx", Constant.EndResponse); Context.ApplicationInstance.CompleteRequest(); } this.formFooter.ModifiedBy = this.Questionary.ModifiedBy.Description; this.formFooter.ModifiedOn = this.Questionary.ModifiedOn; this.master.TitleInvariant = true; this.observations = AuditoryCuestionarioObservations.ById(this.questionnaireId, this.auditoryId, this.company.Id); } else { this.Questionary = Questionary.Empty; } string label = this.questionnaireId == -1 ? "Item_Questionary_BreadCrumb_Edit" : string.Format("{0}: <strong>{1}</strong>", this.Dictionary["Item_Questionary"], this.Questionary.Description); this.master.AddBreadCrumb("Item_Questionaries", "QuestionaryList.aspx", Constant.NotLeaft); this.master.AddBreadCrumb("Item_Questionary_BreadCrumb_Edit"); this.master.Titulo = label; this.FillLists(); }
/// <summary>Begin page running after session validations</summary> private void Go() { this.ApplicationUser = (ApplicationUser)Session["User"]; this.Company = (Company)Session["company"]; if (Session["IncidentFilter"] == null) { this.Filter = "null"; } else { this.Filter = Session["IncidentFilter"].ToString(); } this.Dictionary = Session["Dictionary"] as Dictionary <string, string>; this.master = this.Master as Giso; string serverPath = this.Request.Url.AbsoluteUri.Replace(this.Request.RawUrl.Substring(1), string.Empty); this.master.AddBreadCrumb("Item_Indicents"); this.master.Titulo = "Item_Indicents"; if (this.ApplicationUser.HasGrantToWrite(ApplicationGrant.Incident)) { this.master.ButtonNewItem = UIButton.NewItemButton("Item_Incident_Button_New", "IncidentView.aspx"); } }
/// <summary>Begin page running after session validations</summary> private void Go() { this.master = this.Master as Giso; this.master.AdminPage = true; this.master.AddBreadCrumb("Item_Users"); this.master.Titulo = "Item_Users"; this.user = new ApplicationUser(Convert.ToInt32(Session["UserId"])); this.company = (Company)Session["Company"]; this.dictionary = Session["Dictionary"] as Dictionary <string, string>; string serverPath = this.Request.Url.AbsoluteUri.Replace(this.Request.RawUrl.Substring(1), string.Empty); this.RenderUserData(); if (this.user.HasGrantToWrite(ApplicationGrant.User)) { this.master.ButtonNewItem = UIButton.NewItemButton("Item_User_Button_New", "UserView.aspx"); } this.DataHeader = new UIDataHeader { Id = "ListDataHeader", ActionsItem = 2 }; this.DataHeader.AddItem(new UIDataHeaderItem { Id = "th1", HeaderId = "ListDataHeader", DataId = "ListDataTable", Text = this.dictionary["Item_User_List_Header_UserName"], Sortable = true, Filterable = true }); this.DataHeader.AddItem(new UIDataHeaderItem { Id = "th2", HeaderId = "ListDataHeader", DataId = "ListDataTable", Text = this.dictionary["Item_User_List_Header_EmployeeName"], Sortable = true, Filterable = true }); this.DataHeader.AddItem(new UIDataHeaderItem { Id = "th3", HeaderId = "ListDataHeader", DataId = "ListDataTable", Text = this.dictionary["Item_User_List_Header_Email"], Sortable = true, Filterable = true }); }
/// <summary> /// Page's load event /// </summary> /// <param name="sender">Loaded page</param> /// <param name="e">Event's arguments</param> protected void Page_Load(object sender, EventArgs e) { if (Session["User"] == null) { this.Response.Redirect("Default.aspx"); } if (this.Request.QueryString["id"] != null) { this.employeeId = Convert.ToInt32(this.Request.QueryString["id"].ToString()); } this.company = (Company)Session["company"]; this.dictionary = Session["Dictionary"] as Dictionary <string, string>; string label = this.employeeId == -1 ? "Añadir nuevo empleado" : "Detalle del empleado"; this.master = this.Master as Giso; string serverPath = this.Request.Url.AbsoluteUri.Replace(this.Request.RawUrl.Substring(1), string.Empty); this.master.AddBreadCrumb("Documentos", "Employees.aspx", false); this.master.AddBreadCrumb(label); this.master.Titulo = label; if (employeeId > 0) { this.employee = new Employee(this.employeeId); } else { this.employee = Employee.Empty; } }
/// <summary>Begin page running after session validations</summary> private void Go() { this.user = (ApplicationUser)Session["User"]; this.Dictionary = Session["Dictionary"] as Dictionary <string, string>; // Security access control if (!this.user.HasGrantToRead(ApplicationGrant.Customer)) { this.Response.Redirect("NoPrivileges.aspx", Constant.EndResponse); Context.ApplicationInstance.CompleteRequest(); } this.master = this.Master as Giso; this.master.AdminPage = true; string serverPath = this.Request.Url.AbsoluteUri.Replace(this.Request.RawUrl.Substring(1), string.Empty); this.master.AddBreadCrumb("Item_Rules"); this.master.Titulo = "Item_Rules"; this.RenderCustomersData(); if (this.user.HasGrantToWrite(ApplicationGrant.Department)) { this.master.ButtonNewItem = new UIButton() { Text = this.Dictionary["Item_Rules_Btn_New"], Action = "success", Icon = "icon-plus", Id = "BtnNewRule" }; } }
/// <summary>Begin page running after session validations</summary> private void Go() { this.ApplicationUser = (ApplicationUser)Session["User"]; this.company = (Company)Session["company"]; if (Session["IndicadorFilter"] == null) { this.Filter = "null"; } else { this.Filter = Session["IndicadorFilter"].ToString(); } this.Dictionary = this.Session["Dictionary"] as Dictionary <string, string>; this.master = this.Master as Giso; this.master.AddBreadCrumb("Item_Indicadores"); this.master.Titulo = "Item_Indicadores"; if (this.ApplicationUser.HasGrantToWrite(ApplicationGrant.Incident)) { this.master.ButtonNewItem = UIButton.NewItemButton("Item_Indicador_Button_New", "IndicadorView.aspx"); } this.RenderProcessTypeList(); this.RenderProcessList(); this.RenderObjetivoList(); }
/// <summary>Begin page running after session validations</summary> private void Go() { this.user = (ApplicationUser)this.Session["User"]; this.Dictionary = this.Session["Dictionary"] as Dictionary <string, string>; this.master = this.Master as Giso; this.master.AdminPage = true; this.master.AddBreadCrumb("Item_CostDefinition"); this.master.Titulo = "Item_CostDefinitions"; this.RenderDepartmentData(); if (this.user.HasGrantToWrite(ApplicationGrant.Department)) { this.master.ButtonNewItem = UIButton.NewItemButton("Item_CostDefinition_Button_New", "CostDefinitionView.aspx"); } this.DataHeader = new UIDataHeader { Id = "ListDataHeader", ActionsItem = 2 }; this.DataHeader.AddItem(new UIDataHeaderItem { Id = "th0", HeaderId = "ListDataHeader", DataId = "ListDataTable", Text = this.Dictionary["Item_CostDefinition_ListHeader_Name"], Sortable = true, Filterable = true }); this.DataHeader.AddItem(new UIDataHeaderItem { Id = "th1", HeaderId = "ListDataHeader", DataId = "ListDataTable", Text = this.Dictionary["Item_CostDefinition_ListHeader_Amount"], HiddenMobile = true }); }
protected void Page_Load(object sender, EventArgs e) { this.master = this.Master as Giso; string serverPath = this.Request.Url.AbsoluteUri.Replace(this.Request.RawUrl.Substring(1), string.Empty); this.master.AddBreadCrumb("Cuadro de mandos"); this.master.Titulo = "Cuadro de mandos"; this.documents = Document.GetByCompany(master.Company); }
/// <summary>Begin page running after session validations</summary> private void Go() { this.company = (Company)Session["company"]; this.dictionary = Session["Dictionary"] as Dictionary <string, string>; this.user = Session["User"] as ApplicationUser; if (this.Request.QueryString["id"] != null) { this.unidadId = Convert.ToInt32(this.Request.QueryString["id"]); } string label = "Item_Unidad"; this.master = this.Master as Giso; this.master.AdminPage = true; string serverPath = this.Request.Url.AbsoluteUri.Replace(this.Request.RawUrl.Substring(1), string.Empty); this.master.AddBreadCrumb("Item_Unidades", "UnidadList.aspx", Constant.NotLeaft); this.master.AddBreadCrumb("Item_Unidad_Title"); this.master.Titulo = "Item_Unidad_Title"; this.formFooter = new FormFooter(); this.formFooter.AddButton(new UIButton { Id = "BtnSave", Icon = "icon-ok", Action = "success", Text = this.Dictionary["Common_Accept"] }); this.formFooter.AddButton(new UIButton { Id = "BtnCancel", Icon = "icon-undo", Text = this.dictionary["Common_Cancel"] }); if (this.unidadId != -1) { this.unidad = Unidad.GetById(this.unidadId, this.company.Id); if (this.unidad.CompanyId != this.company.Id) { this.Response.Redirect("NoAccesible.aspx", Constant.EndResponse); Context.ApplicationInstance.CompleteRequest(); this.unidad = Unidad.Empty; } this.formFooter.ModifiedBy = this.UnidadItem.ModifiedBy.Description; this.formFooter.ModifiedOn = this.UnidadItem.ModifiedOn; label = string.Format(CultureInfo.InvariantCulture, "{0}: <strong>{1}</strong>", this.dictionary["Item_Unidad"], this.unidad.Description); this.master.TitleInvariant = true; this.master.Titulo = label; } else { this.unidad = Unidad.Empty; } this.tabBar.AddTab(new Tab { Id = "home", Available = true, Active = true, Selected = true, Label = this.dictionary["Item_Unidad_Tab_Principal"] }); //// this.tabBar.AddTab(new Tab() { Id = "trazas", Label = this.dictionary["Item_Provider_Tab_Traces"], Active = this.ProviderId > 0, Available = this.user.HasTraceGrant() }); }
/// <summary>Begin page running after session validations</summary> private void Go() { this.user = (ApplicationUser)Session["User"]; Session["User"] = this.user; this.master = this.Master as Giso; this.company = Session["Company"] as Company; this.Dictionary = Session["Dictionary"] as Dictionary <string, string>; this.master.AddBreadCrumb("Page_DashboarReports"); this.master.Titulo = "Page_DashboarReports"; }
/// <summary>Page's load event</summary> /// <param name="sender">Loaded page</param> /// <param name="e">Event's arguments</param> protected void Page_Load(object sender, EventArgs e) { this.company = Session["company"] as Company; this.Dictionary = Session["Dictionary"] as Dictionary <string, string>; this.master = this.Master as Giso; string serverPath = this.Request.Url.AbsoluteUri.Replace(this.Request.RawUrl.Substring(1), string.Empty); string label = "Item_User_List_Header_UserName"; this.master.AddBreadCrumb(label); this.master.Titulo = label; }
/// <summary>Begin page running after session validations</summary> private void Go() { this.user = (ApplicationUser)Session["User"]; Session["User"] = this.user; this.master = this.Master as Giso; this.company = Session["Company"] as Company; this.Dictionary = Session["Dictionary"] as Dictionary <string, string>; this.master.AddBreadCrumb("Item_ScheduledTasks"); this.master.Titulo = "Item_ScheduledTasks"; this.RenderScheludedTasksList(); }
/// <summary> /// Page's load event /// </summary> /// <param name="sender">Loaded page</param> /// <param name="e">Event's arguments</param> protected void Page_Load(object sender, EventArgs e) { if (Session["User"] == null) { this.Response.Redirect("Default.aspx"); } else { this.user = Session["user"] as ApplicationUser; } if (this.Request.QueryString["id"] != null) { this.documentId = Convert.ToInt32(this.Request.QueryString["id"].ToString()); } string label = this.documentId == -1 ? "Nuevo documento" : "Detalle del documento"; this.dictionary = Session["Dictionary"] as Dictionary <string, string>; this.master = this.Master as Giso;; string serverPath = this.Request.Url.AbsoluteUri.Replace(this.Request.RawUrl.Substring(1), string.Empty); this.master.AddBreadCrumb("Documentos", "Documents.aspx", false); this.master.AddBreadCrumb(label); this.master.Titulo = label; if (this.documentId != -1) { this.documento = Document.GetById(this.documentId, (Company)Session["Company"]); this.LtUser.Text = this.documento.ModifiedBy.Employee.FullName; this.LtFecha.Text = string.Format("{0:dd/MM/yyyy}", this.documento.ModifiedOn); } else { this.documento = new Document(); this.LtUser.Text = "-"; this.LtFecha.Text = this.dictionary["Nuevo"]; } this.RenderHistorico(); this.RenderTrazas(); if (!this.IsPostBack) { this.dictionary = Session["Dictionary"] as Dictionary <string, string>; this.FillCmbConservacion(); this.FillCmbOrigen(); this.FillCmbCategorias(); this.FillCmbProcedencias(); } }
/// <summary> /// Page's load event /// </summary> /// <param name="sender">Loaded page</param> /// <param name="e">Event's arguments</param> protected void Page_Load(object sender, EventArgs e) { if (Session["User"] == null) { this.Response.Redirect("Default.aspx"); } this.master = this.Master as Giso; string serverPath = this.Request.Url.AbsoluteUri.Replace(this.Request.RawUrl.Substring(1), string.Empty); this.master.AddBreadCrumb("Procesos"); this.master.Titulo = "Procesos"; this.RenderProcesosData(); }
/// <summary>Begin page running after session validations</summary> private void Go() { this.company = (Company)Session["Company"]; this.user = (ApplicationUser)Session["User"]; this.master = this.Master as Giso; this.dictionary = Session["Dictionary"] as Dictionary <string, string>; this.master.AddBreadCrumb("Item_Documents"); this.master.Titulo = "Item_Documents"; this.RenderDocumentData(); if (this.user.HasGrantToWrite(ApplicationGrant.Department)) { this.master.ButtonNewItem = UIButton.NewItemButton("Item_Document_Button_New", "DocumentView.aspx"); } }
/// <summary> /// Page's load event /// </summary> /// <param name="sender">Loaded page</param> /// <param name="e">Event's arguments</param> protected void Page_Load(object sender, EventArgs e) { if (Session["User"] == null) { this.Response.Redirect("Default.aspx"); } this.company = (Company)Session["company"]; this.dictionary = Session["Dictionary"] as Dictionary <string, string>; this.master = this.Master as Giso; string serverPath = this.Request.Url.AbsoluteUri.Replace(this.Request.RawUrl.Substring(1), string.Empty); this.master.AddBreadCrumb("Formación"); this.master.Titulo = "Formación"; this.RenderLearningData(); }
/// <summary>Begin page running after session validations</summary> private void Go() { this.user = (ApplicationUser)Session["User"]; this.company = (Company)Session["company"]; this.dictionary = Session["Dictionary"] as Dictionary <string, string>; this.master = this.Master as Giso; string serverPath = this.Request.Url.AbsoluteUri.Replace(this.Request.RawUrl.Substring(1), string.Empty); this.master.AddBreadCrumb("Item_ScheduledTasks"); this.master.Titulo = "Item_ScheduledTasks"; this.RenderScheludedTasksList(); //this.Tasks = ScheduledTask.ByEmployeeJson(this.user, this.company.Id); /*var tasksJson = new StringBuilder("["); * var tasks = ScheduledTask.ByEmployee(this.user, this.company.Id).Where(t => t.Expiration >= Constant.Now.AddYears(-1)).ToList(); * var printedTasks = new List<ScheduledTask>(); * var res = new StringBuilder(); * tasks = tasks.OrderByDescending(t => t.Expiration).ToList(); * bool first = true; * foreach (var task in tasks) * { * if (printedTasks.Any(t => t.Action == task.Action && t.Equipment.Id == task.Equipment.Id && task.TaskType == t.TaskType)) * { * continue; * } * * if (first) * { * first = false; * } * else * { * tasksJson.Append(","); * } * * printedTasks.Add(task); * tasksJson.Append(task.Json); * } * * tasksJson.Append("]"); * this.Tasks = tasksJson.ToString();*/ }
/// <summary>Event load of page</summary> /// <param name="sender">Page loades</param> /// <param name="e">Arguments of event</param> protected void Page_Load(object sender, EventArgs e) { if (this.Session["User"] == null) { this.Response.Redirect("Default.aspx", Constant.EndResponse); Context.ApplicationInstance.CompleteRequest(); } this.user = Session["User"] as ApplicationUser; this.Company = Session["company"] as Company; this.Dictionary = Session["Dictionary"] as Dictionary <string, string>; this.master = this.Master as Giso; this.master.AdminPage = true; string serverPath = this.Request.Url.AbsoluteUri.Replace(this.Request.RawUrl.Substring(1), string.Empty); this.master.AddBreadCrumb("Common_NoGrants"); this.master.Titulo = "Common_NoGrants"; }
private void Go() { this.user = Session["User"] as ApplicationUser; this.company = Session["company"] as Company; this.user = new ApplicationUser(this.user.Id); this.dictionary = Session["Dictionary"] as Dictionary <string, string>; this.master = this.Master as Giso; this.master.AddBreadCrumbInvariant(this.user.UserName); this.master.Titulo = "Item_Backup"; this.formFooter = new FormFooter(); this.formFooter.AddButton(new SbrinnaCoreFramework.UI.UIButton { Id = "BtnSave", Text = this.dictionary["Common_Accept"], Icon = "icon-ok", Action = "success" }); this.formFooter.AddButton(new SbrinnaCoreFramework.UI.UIButton { Id = "BtnCancel", Text = this.dictionary["Common_Cancel"], Icon = "icon-undo" }); this.LtExplain.Text = this.dictionary["Item_Backup_Explain"]; }
/// <summary>Page's load event</summary> /// <param name="sender">Loaded page</param> /// <param name="e">Event arguments</param> protected void Page_Load(object sender, EventArgs e) { if (this.Session["User"] == null) { this.Response.Redirect("Default.aspx", Constant.EndResponse); } this.company = (Company)Session["company"]; this.dictionary = Session["Dictionary"] as Dictionary <string, string>; string label = this.dictionary["Item_Employee_Button_New"]; this.master = this.Master as Giso; string serverPath = this.Request.Url.AbsoluteUri.Replace(this.Request.RawUrl.Substring(1), string.Empty); this.master.AddBreadCrumb(this.dictionary["Item_Employees"], "EmployeesList.aspx", Constant.NotLeaft); this.master.AddBreadCrumb(label); this.master.Titulo = label; Context.ApplicationInstance.CompleteRequest(); }
/// <summary> /// Page's load event /// </summary> /// <param name="sender">Loaded page</param> /// <param name="e">Event's arguments</param> protected void Page_Load(object sender, EventArgs e) { if (Session["User"] == null) { this.Response.Redirect("Default.aspx"); } if (this.Request.QueryString["id"] != null) { this.processId = Convert.ToInt32(this.Request.QueryString["id"].ToString()); } this.company = (Company)Session["company"]; this.dictionary = Session["Dictionary"] as Dictionary <string, string>; if (processId > 0) { this.process = new Process(this.processId, this.company.Id); this.LtModificado.Text = string.Format("<strong>{0}</strong><br />{1}", this.process.ModifiedBy.FullName, this.process.ModifiedOn); } else { this.process = Process.Empty; this.LtModificado.Text = string.Format("<i>({0})</i>", this.dictionary["Nuevo"]); } string label = this.processId == -1 ? "Nuevo proceso" : "Editar proceso"; this.master = this.Master as Giso; string serverPath = this.Request.Url.AbsoluteUri.Replace(this.Request.RawUrl.Substring(1), string.Empty); this.master.AddBreadCrumb("Procesos", "ProcesosList.aspx", false); this.master.AddBreadCrumb(label); this.master.Titulo = label; if (!IsPostBack) { //this.RenderEmployees(); //this.RenderDepartamentos(); //this.GetEmployeeDepartmentMemberShip(); } }
/// <summary>Begin page running after session validations</summary> private void Go() { this.user = Session["User"] as ApplicationUser; this.Dictionary = Session["Dictionary"] as Dictionary <string, string>; this.master = this.Master as Giso; this.master.AdminPage = true; this.master.AddBreadCrumb("Item_Alerts"); this.master.Titulo = "Item_Alerts"; this.RenderAlerts(); this.DataHeader = new UIDataHeader { Id = "ListDataHeader", ActionsItem = 2 }; this.DataHeader.AddItem(new UIDataHeaderItem { Id = "th0", HeaderId = "ListDataHeader", DataId = "ListDataTable", Text = this.Dictionary["Item_Alert_ListHeader_Reason"], Sortable = true, Filterable = true }); this.DataHeader.AddItem(new UIDataHeaderItem { Id = "th1", HeaderId = "ListDataHeader", DataId = "ListDataTable", Text = this.Dictionary["Item_Alert_ListHeader_Description"], HiddenMobile = true }); }
/// <summary>Begin page running after session validations</summary> private void Go() { this.user = (ApplicationUser)Session["User"]; this.Dictionary = Session["Dictionary"] as Dictionary <string, string>; // Security access control if (!this.user.HasGrantToRead(ApplicationGrant.Provider)) { this.Response.Redirect("NoPrivileges.aspx", Constant.EndResponse); Context.ApplicationInstance.CompleteRequest(); } this.master = this.Master as Giso; this.master.AdminPage = true; string serverPath = this.Request.Url.AbsoluteUri.Replace(this.Request.RawUrl.Substring(1), string.Empty); this.master.AddBreadCrumb("Item_Providers"); this.master.Titulo = "Item_Providers"; this.RenderProvidersData(); if (this.user.HasGrantToWrite(ApplicationGrant.Department)) { this.master.ButtonNewItem = UIButton.NewItemButton("Item_Provider_Btn_New", "ProvidersView.aspx"); } this.DataHeader = new UIDataHeader { Id = "ListDataHeader", ActionsItem = 2 }; this.DataHeader.AddItem(new UIDataHeaderItem { Id = "th0", HeaderId = "ListDataHeader", DataId = "ListDataTable", Text = this.Dictionary["Item_Customer_ListHeader_Name"], Sortable = true, Filterable = true }); }
/// <summary>Begin page running after session validations</summary> private void Go() { this.user = (ApplicationUser)Session["User"]; this.company = (Company)Session["company"]; this.LearningFilterData = this.Session["LearningFilter"] as string; this.learningFilter = new LearningFilter(this.company.Id); this.dictionary = Session["Dictionary"] as Dictionary <string, string>; this.master = this.Master as Giso; string serverPath = this.Request.Url.AbsoluteUri.Replace(this.Request.RawUrl.Substring(1), string.Empty); this.master.AddBreadCrumb("Item_Learnings"); this.master.Titulo = "Item_Learning"; this.RenderLearningData(); if (this.user.HasGrantToWrite(ApplicationGrant.Learning)) { this.master.ButtonNewItem = UIButton.NewItemButton("Item_Learning_Button_New", "FormacionView.aspx"); } }
/// <summary> /// Page's load event /// </summary> /// <param name="sender">Loaded page</param> /// <param name="e">Event arguments</param> protected void Page_Load(object sender, EventArgs e) { if (Session["User"] == null) { this.Response.Redirect("Default.aspx"); } if (this.Request.QueryString["userid"] != null) { this.userId = Convert.ToInt32(this.Request.QueryString["userid"].ToString()); this.applicationUser = new ApplicationUser(this.userId); this.employee = new Employee(this.applicationUser.Employee.Id, true); } this.company = (Company)Session["company"]; this.dictionary = Session["Dictionary"] as Dictionary <string, string>; this.master = this.Master as Giso; this.master.AddBreadCrumbInvariant(this.employee.FullName); this.master.Titulo = this.employee.FullName; this.master.TitleInvariant = true; }
private void Go() { this.user = Session["User"] as ApplicationUser; this.company = Session["company"] as Company; this.dictionary = Session["Dictionary"] as Dictionary <string, string>; this.master = this.Master as Giso; this.master.AdminPage = true; string serverPath = this.Request.Url.AbsoluteUri.Replace(this.Request.RawUrl.Substring(1), string.Empty); this.master.AddBreadCrumb("Paises"); this.master.Titulo = "Paises"; this.formFooter = new FormFooter(); this.formFooter.AddButton(new UIButton() { Id = "BtnSave", Text = this.Dictionary["Common_Accept"], Icon = "icon-ok", Action = "success" }); this.formFooter.AddButton(new UIButton() { Id = "BtnCancel", Text = this.Dictionary["Common_Cancel"], Icon = "icon-undo" }); StringBuilder selected = new StringBuilder(); StringBuilder availables = new StringBuilder(); foreach (Country country in Country.GetAll(this.company.Id)) { if (country.Selected) { selected.Append(country.SelectedTag); } else { availables.Append(country.AvailableTag); } } this.LtSelected.Text = selected.ToString(); this.LtAvailables.Text = availables.ToString(); }
/// <summary>Page's load event</summary> /// <param name="sender">Loaded page</param> /// <param name="e">Event arguments</param> protected void Page_Load(object sender, EventArgs e) { if (this.Session["User"] == null) { this.Response.Redirect("Default.aspx", Constant.EndResponse); Context.ApplicationInstance.CompleteRequest(); } this.company = (Company)Session["company"]; this.dictionary = Session["Dictionary"] as Dictionary <string, string>; string label = "Item_Employee_Button_New"; this.master = this.Master as Giso; string serverPath = this.Request.Url.AbsoluteUri.Replace(this.Request.RawUrl.Substring(1), string.Empty); this.master.AddBreadCrumb("Item_Employees", "EmployeesList.aspx", false); this.master.AddBreadCrumb(label); this.master.Titulo = label; var bt = new UIButton { Icon = "icon-plus-sign", Id = "01", Text = this.Dictionary["Item_Employee"], Action = "success" }; var tx = new TextBox { Label = this.Dictionary["Item_Document"], Name = "TxtDocumento", Id = "TxtDocumento", Placeholder = this.Dictionary["Item_Document"], Required = true }; this.lt.Text = bt.Render; this.lt.Text += tx.Html; }