private void Treatment_Status() { txtAllStudents.Text = StudentList.Count().ToString(); txtInProgress.Text = StudentList.Where(x => x.Student_Status_Id < 14 || x.Student_Status_Id > 15).Count().ToString(); txtSuccessfully.Text = StudentList.Where(x => x.Student_Status_Id == 14).Count().ToString(); txtFailure.Text = StudentList.Where(x => x.Student_Status_Id == 15).Count().ToString(); string str = FieldNames.getFieldName("Default-Update", "Update") + " : "; txtLastUpdateOne.Text = str + DateTime.Now.ToShortTimeString(); txtLastUpdateTwo.Text = str + DateTime.Now.ToShortTimeString(); txtLastUpdateThree.Text = str + DateTime.Now.ToShortTimeString(); txtLastUpdateFour.Text = str + DateTime.Now.ToShortTimeString(); }
protected void Page_Load(object sender, EventArgs e) { db = new REU_RegistrationEntities(); if (!Request.IsLocal && !Request.IsSecureConnection) { string redirectUrl = Request.Url.ToString().Replace("http:", "https:"); Response.Redirect(redirectUrl, false); //HttpContext.ApplicationInstance.CompleteRequest(); } Session["IsECMS"] = true; //ListPermissions = db.Permissions.ToList(); if (SessionWrapper.LoggedUser != null) { if (SessionWrapper.IsLocked) { Response.Redirect("~/Pages/admin/LockScreen.aspx"); } } else { Response.Redirect("~/Pages/Auth/Login.aspx"); } //Change Layout to RTL if (SessionWrapper.LoggedUser.Language_id != null) { if (SessionWrapper.LoggedUser.Language_id == 1) { Style.Text = FieldNames.getSTyleRTL(); Script.Text = FieldNames.getJavaScriptRTL(); //this.html.Attributes.Add("dir", "ltr"); //Page.ClientScript.RegisterStartupScript(this.GetType(), "CallMyFunction", "RTL_Layout();", true); } } ListPermissions = SessionWrapper.Permssions; Employee_Name(); LoadBreadcrumb(ListPermissions); LoadMenu(ListPermissions); currentUserId = SessionWrapper.LoggedUser.Employee_Id; currentStructureUserId = SessionWrapper.EmpStructure; loadNotification(); LoadStructure(); Page.ClientScript.RegisterStartupScript(this.GetType(), "CallMyFunction", "exportdata();", true); // ViewData(60); }
private void getStyleScript() { StyleRTL.Text = FieldNames.getSTyleRTLHome(); ScriptRTL.Text = FieldNames.getJavaScriptRTLHome(); }