Ejemplo n.º 1
0
 public string GetAllRoomSeatUsedInfo()
 {
     if (myHeader.UserName.Equals(soapUserName) && SeatManage.SeatManageComm.MD5Algorithm.GetMD5Str32(myHeader.PassWord).Equals(soapPwd))
     {
         SeatManage.MobileAppDataObtainProxy.IMobileAppDataObtianProxy obtainProxy = new SeatManage.MobileAppDataObtainProxy.MobileAppDataObtainProxy(myHeader.SchoolNum);
         string r = obtainProxy.GetAllRoomSeatUsedInfo();
         obtainProxy.Dispose();
         return(r);
     }
     else
     {
         JM_HandleResult result = new JM_HandleResult();
         result.Result = false;
         result.Msg    = "权限验证失败!";
         return(SeatManage.SeatManageComm.JSONSerializer.Serialize(result));
     }
 }
Ejemplo n.º 2
0
 public string GetReaderSeatState(string cardNum)
 {
     if (myHeader.UserName.Equals(soapUserName) && SeatManage.SeatManageComm.MD5Algorithm.GetMD5Str32(myHeader.PassWord).Equals(soapPwd))
     {
         SeatManage.MobileAppDataObtainProxy.IMobileAppDataObtianProxy obtainProxy = new SeatManage.MobileAppDataObtainProxy.MobileAppDataObtainProxy(myHeader.SchoolNum);
         string r = obtainProxy.GetReaderSeatState(cardNum);
         obtainProxy.Dispose();
         return(r);
     }
     else
     {
         return(SeatManage.SeatManageComm.JSONSerializer.Serialize(new SeatManage.JsonModel.JM_HandleResult()
         {
             Result = false, Msg = "没有权限!"
         }));
     }
 }
Ejemplo n.º 3
0
 public string GetViolateDiscipline(string cardNum, int pageIndex, int pageSize)
 {
     if (myHeader.UserName.Equals(soapUserName) && SeatManage.SeatManageComm.MD5Algorithm.GetMD5Str32(myHeader.PassWord).Equals(soapPwd))
     {
         SeatManage.MobileAppDataObtainProxy.IMobileAppDataObtianProxy obtainProxy = new SeatManage.MobileAppDataObtainProxy.MobileAppDataObtainProxy(myHeader.SchoolNum);
         string r = obtainProxy.GetViolateDiscipline(cardNum, pageIndex, pageSize);
         obtainProxy.Dispose();
         return(r);
     }
     else
     {
         JM_HandleResult result = new JM_HandleResult();
         result.Result = false;
         result.Msg    = "权限验证失败!";
         return(SeatManage.SeatManageComm.JSONSerializer.Serialize(result));
     }
 }
Ejemplo n.º 4
0
 public string SubmitBespeakInfoCustomTime(string cardNo, string roomNum, string seatNum, string bespeakDatetime, string remark)
 {
     if (myHeader.UserName.Equals(soapUserName) && SeatManage.SeatManageComm.MD5Algorithm.GetMD5Str32(myHeader.PassWord).Equals(soapPwd))
     {
         SeatManage.MobileAppDataObtainProxy.IMobileAppDataObtianProxy obtainProxy = new SeatManage.MobileAppDataObtainProxy.MobileAppDataObtainProxy(myHeader.SchoolNum);
         string r = obtainProxy.SubmitBespeakInfoCustomTime(cardNo, roomNum, seatNum, bespeakDatetime, remark);
         obtainProxy.Dispose();
         return(r);
     }
     else
     {
         JM_HandleResult result = new JM_HandleResult();
         result.Result = false;
         result.Msg    = "权限验证失败!";
         return(SeatManage.SeatManageComm.JSONSerializer.Serialize(result));
     }
 }
Ejemplo n.º 5
0
 public string GetReaderActualTimeRecord(string cardNum, string getItemsParameter)
 {
     if (myHeader.UserName.Equals(soapUserName) && SeatManage.SeatManageComm.MD5Algorithm.GetMD5Str32(myHeader.PassWord).Equals(soapPwd))
     {
         SeatManage.MobileAppDataObtainProxy.IMobileAppDataObtianProxy obtainProxy = new SeatManage.MobileAppDataObtainProxy.MobileAppDataObtainProxy(myHeader.SchoolNum);
         string r = obtainProxy.GetReaderActualTimeRecord(cardNum, getItemsParameter);
         obtainProxy.Dispose();
         return(r);
     }
     else
     {
         JM_HandleResult result = new JM_HandleResult();
         result.Result = false;
         result.Msg    = "权限验证失败!";
         return(SeatManage.SeatManageComm.JSONSerializer.Serialize(result));
     }
 }