Пример #1
0
 void SearchStudent(int accountid)
 {
     Account account = new Account();
     if (account.CheckIfAccountExist(accountid))
     {
         Account user = account.GetAccountInfo(accountid);
         LblStudentName.Text = Helper.ConvertToNameFormat(user.FirstName, user.MiddleName, user.LastName);
         lblUsertype.Text = user.UserType;
         lblBalance.Text = user.EPurseBalance.ToString();
         lblStatus.Text = user.AccountStatus;
         grdEPurse.DataSource = ep.GetEPurseRecordByAccountID(accountid);
         grdEPurse.DataBind();
         PanelAccountInfo.Visible = true;
         lblMessage.Visible = false;
         PanelControl.Visible = true;
         PanelSearch.Visible = false;
     }
     else
     {
         lblMessage.Visible = true;
         lblMessage.Text = "<i class='icon-remove-sign'></i>&nbsp;&nbsp;No Account found!";
     }
 }