text: function chaxun(){var JsonData={"userName":getCookie("userName"),"password":getCookie("password"),"roomNumber":getCookie("roomNumber"),"hasStayDate":getCookie("Date"),};$.ajax({cache:true,type:"POST",url:getUrl()+"/HotelPMS/EditSelectDataServlet",data:{"strEditData":JSON.stringify(JsonData)},async:false,error:function(request){alert("获取状态失败，请稍后")},success:function(data){var objs=eval(data);if(objs[0].clientType=="2"){document.getElementById("clientType").value="入住"}else{document.getElementById("clientType").value="预定"}document.getElementById("cilentName").value=objs[0].cilentName;document.getElementById("clientCellNumber").value=objs[0].clientCellNumber;document.getElementById("idCardNumber").value=objs[0].idCardNumber;document.getElementById("clientSource").value=objs[0].clientSource;document.getElementById("startDay").value=objs[0].startDay;document.getElementById("stayDays").value=objs[0].stayDays;document.getElementById("paymentWays").value=objs[0].paymentWays;document.getElementById("truePayment").value=objs[0].truePayment;document.getElementById("note").value=objs[0].note;document.getElementById("endDay").value=objs[0].endDay}});return false}function stayIn(B){var A={"userName":getCookie("userName"),"password":getCookie("password"),"roomNumber":getCookie("roomNumber"),"hasStayDate":getCookie("Date"),};$.ajax({cache:true,type:"POST",url:getUrl()+"/HotelPMS/EditRuzhuServlet",data:{"strEditRuzhu":JSON.stringify(A)},async:false,error:function(C){alert("获取状态失败，请稍后")},success:function(C){if(C=="200"){alert("入住成功！");closethis()}else{alert("入住失败！")}}});return false}function deleteRoom(B){if(confirm("确认删除吗")){}else{return}var A={"userName":getCookie("userName"),"password":getCookie("password"),"roomNumber":getCookie("roomNumber"),"hasStayDate":getCookie("Date"),};$.ajax({cache:true,type:"POST",url:getUrl()+"/HotelPMS/EditDeleteServlet",data:{"strDeleteEdit":JSON.stringify(A)},async:false,error:function(C){alert("获取状态失败，请稍后")},success:function(C){if(C=="200"){alert("删除成功！");closethis()}else{alert("删除失败！")}}});return false}function changeInfo(B){var A={"userName":getCookie("userName"),"password":getCookie("password"),"clientType":B.clientType,"cilentName":B.cilentName,"clientCellNumber":B.clientCellNumber,"idCardNumber":B.idCardNumber,"clientSource":B.clientSource,"hasStayDate":getCookie("Date"),"stayDays":B.stayDays,"enterRoomPrice":B.enterRoomPrice,"truePayment":B.getPrice,"paymentWays":B.priceFrom,"note":B.note,"roomNumber":getCookie("roomNumber"),};$.ajax({cache:true,type:"POST",url:getUrl()+"/HotelPMS/EditUpdateServlet",data:{"strEditUpdate":JSON.stringify(A)},async:false,error:function(C){alert("获取状态失败，请稍后")},success:function(C){if(C=="200"){alert("修改成功！");closethis()}else{alert("修改未成功，请稍后重试！")}}});return false}function editMesName(){document.getElementById("cilentName").disabled=false}function editMesTel(){document.getElementById("clientCellNumber").disabled=false}function editMesIdcard(){document.getElementById("idCardNumber").disabled=false}function editMesTrueMoney(){document.getElementById("truePayment").disabled=false}function editMesNote(){document.getElementById("note").disabled=false};