예제 #1
0
        protected void JPSLogin_Click(object sender, EventArgs e)
        {
            JPSService.JPSServiceSoapClient jpsopap = new JPSService.JPSServiceSoapClient();

            if (jpsopap.Login(user.Id, user.Password))
            {
                jpsUser["name"]    = jpsopap.GetUsername();
                jpsUser["id"]      = jpsopap.GetUserId();
                jpsUser["email"]   = jpsopap.GetUserEmail();
                jpsUser["balance"] = jpsopap.GetUserBalance();
                jpsUser["linked"]  = jpsopap.GetUserLinkedStatus();
                user.Jps           = true;
                UserTableAdapters.UsersTableAdapter uta = new UserTableAdapters.UsersTableAdapter();
                uta.UpdateJps(user.Jps, user.Id);
                GV.JpsUser = jpsUser;
            }
        }
예제 #2
0
 protected void jpsUnlink_Click(object sender, EventArgs e)
 {
     user.Jps = false;
     UserTableAdapters.UsersTableAdapter uta = new UserTableAdapters.UsersTableAdapter();
     uta.UpdateJps(user.Jps, user.Id);
 }