Пример #1
0
 public string BindAppUserInfo(string cardNo, string schoolId, string channelId, string userId)
 {
     if (myHeader.UserName.Equals(soapUserName) && SeatManage.SeatManageComm.MD5Algorithm.GetMD5Str32(myHeader.PassWord).Equals(soapPwd))
     {
         AppUserInfo user = new AppUserInfo();
         user.CardNo    = cardNo;
         user.SchoolId  = int.Parse(schoolId);
         user.ChannelId = channelId;
         user.UserId    = userId;
         bool result = App_UserInfoProxy.BindAppUserInfo(user);
         if (result)
         {
             return(SeatManage.SeatManageComm.JSONSerializer.Serialize(new SeatManage.JsonModel.JM_HandleResult()
             {
                 Result = true, Msg = "操作成功!"
             }));
         }
         else
         {
             return(SeatManage.SeatManageComm.JSONSerializer.Serialize(new SeatManage.JsonModel.JM_HandleResult()
             {
                 Result = false, Msg = "操作失败!"
             }));
         }
     }
     else
     {
         return(SeatManage.SeatManageComm.JSONSerializer.Serialize(new SeatManage.JsonModel.JM_HandleResult()
         {
             Result = false, Msg = "没有权限!"
         }));
     }
 }
Пример #2
0
 public string GetAppUserInfoByCardNoAndSchoolNum(string cardNo, string schoolNum)
 {
     if (myHeader.UserName.Equals(soapUserName) && SeatManage.SeatManageComm.MD5Algorithm.GetMD5Str32(myHeader.PassWord).Equals(soapPwd))
     {
         AppUserInfo app_userInfo = App_UserInfoProxy.GetAppUserInfoByCardNoAndSchoolNum(cardNo, schoolNum);
         if (app_userInfo != null)
         {
             return(SeatManage.SeatManageComm.JSONSerializer.Serialize(app_userInfo));
         }
         else
         {
             return(null);
         }
     }
     else
     {
         return(SeatManage.SeatManageComm.JSONSerializer.Serialize(new SeatManage.JsonModel.JM_HandleResult()
         {
             Result = false, Msg = "没有权限!"
         }));
     }
 }