protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         User_lg user = new User_lg();
         Account_lg account = new Account_lg();
         Data data = new Data();
         if (user.isLogin(Session) == true)
         {
             data.add("user_id", user.getUserSession(Session));
             name.Text = user.getUser(data).getString("name");
             Data accountList = account.select(data);
             if (accountList.Count > 0)
             {
                 hidden_account.Value = "1";
             }
             else
             {
                 hidden_account.Value = "0";
             }
             balance.Text = account.select(data).getString("balance");
             Data result = account.selectTransaction(data);
             transaction.DataSource = result.Source;
             transaction.DataBind();
         }
         else
         {
             go("../Transaction/Login.aspx");
         }
     }
 }
Example #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     User_lg user = new User_lg();
     if (user.isLogin(Session) == true)
     {
         Data data = new Data();
         Lucene_lg lucene = new Lucene_lg();
         Data result = lucene.searchLucene(Param);
         account.DataSource = result.Source;
         account.DataBind();
     }
     else
     {
         go("../Transaction/Login.aspx");
     }
 }
    protected void Page_Load(object sender, EventArgs e)
    {
        User_lg user = new User_lg();

        if (user.isLogin(Session) == true)
        {
            Data data = new Data();
            target_id.Value = Param.getString("user_id");
            data.add("user_id", user.getUserSession(Session));
            from.Text = user.getUser(data).getString("name");
            to.Text = user.getUser(Param).getString("name");
        }
        else
        {
            go("../Transaction/Login.aspx");
        }
    }