protected void Tab_Host_TabClick(object sender, RadTabStripEventArgs e) { if (Grid_StudentList.SelectedValue != null) { switch (Convert.ToInt32(Tab_Host.SelectedIndex)) { case 0: // Request Detail PageViewVisible(true, false, false, false); break; case 1: //Request History PageViewVisible(false, true, false, false); GridHistory.Rebind(); break; case 2: // Placement by School PageViewVisible(false, false, true, false); Grid_HomestayPlacement.Rebind(); break; case 3: // Placement by Agency PageViewVisible(false, false, false, true); Grid_PlacementAgency.Rebind(); Download.Visible = false; break; } } }
protected void Page_Load(object sender, EventArgs e) { HttpCookie LoginCookie = Request.Cookies.Get("Credentials"); string currentUserEmail = LoginCookie["CurrentUserEmail"].ToString(); string SessionloginEmail = string.Empty; SessionloginEmail = Convert.ToString(Session["UserCurrentEmail"]); if (SessionloginEmail != currentUserEmail) { Response.Redirect("login.aspx"); } if (!IsPostBack) { SqlConnection conn = new SqlConnection("Server=.;" + "Database= safeMeDb;" + "Integrated Security= true;"); conn.Open(); using (conn) { SqlCommand cmd = new SqlCommand("Select id, status, inputText, outputText from encryptionDecryptionHistory where email=@currentUserEmail", conn); cmd.Parameters.Add(new SqlParameter("@currentUserEmail", currentUserEmail)); SqlDataReader reader = cmd.ExecuteReader(); GridHistory.DataSource = reader; GridHistory.DataBind(); } } }
public void GameEnd() { GridHistory newRecord = new GridHistory(); history.Add(newRecord); foreach (var item in history) { Debug.Log(item.timeToClear); } Reset(); }
private void ctrlListCommandHistory_Load(object sender, EventArgs e) { lblInfo.Text = Info; var lst = new List <T_TaxiOperation_SendCommand>(); GridHistory.DataSource = lst; GridHistory.RefreshDataSource(); if (Id != null && Id > 0) { lst = T_TaxiOperation_SendCommand.Inst.GetAllById(Id); if (lst != null) { GridHistory.SetDataSource(lst); } } }
protected void Grid_StudentList_SelectedIndexChanged(object sender, EventArgs e) { if (Grid_StudentList.SelectedValue != null) { int OriginalId = Convert.ToInt32(Grid_StudentList.SelectedValue); RadToolBar3.Items[2].Enabled = true; //Placement RadToolBar3.Items[4].Enabled = true; //Shcedule Change RadToolBar3.Items[6].Enabled = true; //Cancel RadToolBar3.Items[8].Enabled = true; // Invoice and Payment //Show Placement Request Detail ShowPlacementRequestDetail(Convert.ToInt32(Grid_StudentList.SelectedValue)); PageViewVisible(true, true, true, true); GridHistory.Rebind(); Grid_DormitoryPlacement.Rebind(); } }
protected void Grid_StudentList_SelectedIndexChanged(object sender, EventArgs e) { if (Grid_StudentList.SelectedValue != null) { int OriginalId = Convert.ToInt32(Grid_StudentList.SelectedValue); RadToolBar3.Items[2].Enabled = true; RadToolBar3.Items[4].Enabled = true; RadToolBar3.Items[6].Enabled = true; RadToolBar3.Items[8].Enabled = true; RadToolBar3.Items[10].Enabled = true; RadToolBar3.Items[12].Enabled = true; //Show Placement Request Detail ShowPlacementRequestDetail(Convert.ToInt32(Grid_StudentList.SelectedValue)); PageViewVisible(true, true, true, true); GridHistory.Rebind(); Grid_HomestayPlacement.Rebind(); Grid_PlacementAgency.Rebind(); Download.Visible = false; } }