コード例 #1
0
 protected void createOnClick(object sender, EventArgs e)
 {
     Data data = new Data();
     Account_lg account = new Account_lg();
     Lucene_lg lucene = new Lucene_lg();
     User_lg user = new User_lg();
     data.add("user_id", user.getUserSession(Session));
     account.insert(data);
     lucene.addLucene(data);
     go("../Transaction/Account.aspx");
 }
コード例 #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");
     }
 }