初始化

This commit is contained in:
2025-11-25 17:41:24 +08:00
commit 4cdf0f0f85
3383 changed files with 1050962 additions and 0 deletions

View File

@@ -0,0 +1,296 @@

@{
ViewBag.Title = "AddCheckinfo";
Layout = "~/Areas/App/Views/Shared/_Layout.cshtml";
List<Face.Domain.Entities.Hotels> hllist = Face.Services.Cache.CacheHelp.GetHotelslist();
}
<link href="~/Theme/css/plugins/datapicker/datepicker3.css" rel="stylesheet">
<style>
.table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td {
padding: 0px;
border: 0px;
}
.table > tbody > tr > td, .table > tbody > tr > th, .table > tfoot > tr > td, .table > tfoot > tr > th, .table > thead > tr > td, .table > thead > tr > th {
padding: 1px;
}
#order {
border-top: solid 2px #ddd;
}
</style>
<div class="content-wrapper">
<section class="content" style="padding:0px;">
<div class="container-fluid">
<div class="row">
<div class="col-sm-8">
<!-- Default box -->
<div class="card">
<div class="card-header">
</div>
<div class="card-body">
@*条件筛选*@<div><h4>新增测试人员</h4></div>
</div>
@*内容筛选*@
<div class="ibox-content" style="padding:0px;">
<div id="project">
<div class="card-body">
<form class="form-horizontal" id="AddresidentFrom">
<div class="form-group">
<label for="exampleInputEmail1"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">测试人员名称</font></font></label>
<input type="email" class="form-control" id="name" placeholder="输入名字">
<p></p>
<label for="exampleInputEmail1"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">测试人员身份证</font></font></label>
<input type="email" class="form-control" id="id_no" placeholder="输入身份证">
<p></p>
<label for="exampleInputEmail1"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">测试人员电话号码</font></font></label>
<input type="email" class="form-control" id="phones" placeholder="输入电话">
<p></p>
<label for="exampleInputEmail1"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">性别</font></font></label>
<select class="form-control" id="OrgId" style=" float:left">
<option value="1">
</option>
<option value="0">
</option>
</select>
<p></p>
<label for="exampleInputFile"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">测试人员照片</font></font></label>
<div class="form-group">
<div class="input-group">
<div class="custom-file">
<input type="file" onchange="uploadimg()" class=" custom-file-input" accept="image/*" id="photo">
<label class="custom-file-label" id="exampleInputFile"></label>
</div>
<div class="input-group-append">
<span class="input-group-text" onclick="Upload()">上传</span>
</div>
</div>
</div>
<div></div>
<img id="img1" style="width:100px; height:100px; display:none" src=""alt="" />
<div id="pictureShow"></div>
<p></p>
</div>
<p></p>
<div class="col-md-offset-3 col-md-9">
<button class="btn btn-md btn-primary" type="button" id="btnAddShow">保存</button>
</div>
</form>
</div>
</div>
<div id="btn" onclick="tip()"></div>
</div>
</div>
<!-- /.card-body -->
</div>
</div>
<!-- /.card -->
<div class="col-sm-4" id="faceDetailsBox">
</div>
</div>
</div>
</section>
</div>
<script src="~/Theme/js/plugins/datapicker/bootstrap-datepicker.js"></script>
<script src="~/Theme/js/plugins/datapicker/locales/bootstrap-datepicker.zh-CN.js"></script>
<script>
var picturebase64;
$(function () {
$('#photo').on("change", function () {
var file = this.files[0];
if (this.files && file) {
let reader = new FileReader();
reader.onload = function (e) {
console.log(e.target.result);
$('#img1').attr('src', e.target.result);
document.getElementById("img1").style.display = "inline";
//document.getElementById("btnturn").style.display = "inline";
}
reader.readAsDataURL(file);
picturebase64 = file;
}
});
})
var srclocation;
var url = "/Theme/js/jquery.form.min.js";
$.getScript(url);
$('#data_ovform .input-daterange').datepicker({
language: "zh-CN",//语言
todayBtn: "linked",//今日按钮
keyboardNavigation: false,
forceParse: false,
autoclose: true,
format: "yyyy/mm/dd"//日期格式
});
function ToUploadPictures(file, back) {
var reader = new FileReader();
var AllowImgFileSize = 2100000; //上传图片最大值(单位字节) 2 M = 2097152 B 超过2M上传失败
var imgUrlBase64;
if (file) {
//将文件以Data URL形式读入页面
imgUrlBase64 = reader.readAsDataURL(file);
reader.onload = function (e) {
var ImgFileSize = reader.result.substring(reader.result.indexOf(",") + 1);//截取base64码部分可选可不选需要与后台沟通
if (AllowImgFileSize != 0 && AllowImgFileSize < reader.result.length) {
alert('上传失败请上传不大于2M的图片');
return;
} else {
//执行上传操作
console.log(ImgFileSize);
back(ImgFileSize)
}
}
}
}
function uploadimg(type) {
let files = $("#photo").prop("files");
if (files.length <= 0)
return;
$("#photo").closest(".input-group").find("label").html(files[0].name);
if (type != 1)
return;
uploads();
}
//上传图片
function Upload() {
uploads();
}
function uploads() {
var formData = new FormData() //创建一个forData
formData.append('img', $('#photo')[0].files[0]) //把file添加进去 name命名为img
$.ajax({
url: "/ImgServer/Update",
data: formData,
type: "POST",
async: false,
cache: false,
contentType: false,
processData: false,
success: function (data) {//成功
console.log(data.data.src);
srclocation = data.data.src;
alert("上传成功");
//document.getElementById("btnturn").style.display = "none";
$('#img1').remove();
$("#pictureShow").html('<img id="images" src="/ImgServer/FileImage?url=' + data.data.src + '">')
},
error: function () {
alert("上传失败")
}
})
}
$("#btnAddShow").click(function () {
var name1 = $('#name').val();
var id_no = $('#id_no').val();
var photo = srclocation;
var sex1 = $('#OrgId').val();
var phone1 = $('#phones').val();
if (name1 === null || name1 === undefined || name1 === "" ) {
alert('用户名称不能为空值')
return;
}
if (id_no === null || id_no === undefined || id_no === "") {
alert('身份证号码不能为空值')
return;
}
const reg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
if (!reg.test(id_no)) {
alert('身份证号码格式不正确')
return;
}
if (phone1 === null || phone1 === undefined || phone1 === "") {
alert('手机号码不能为空值')
return;
}
const regs = /^1[3-9]\d{9}$/;
if (!regs.test(phone1)) {
alert('手机号码格式不正确')
return;
}
var InfoBodyShow = {
name: name1,
idNumber: id_no,
picture: photo,
sex: sex1,
phone: phone1
};
$.ajax({
url: "/App/Lodger/addcheckin",
type: "post",
data: InfoBodyShow,
async: true,
success: function (res) { //请求成功后的回调函数其中的参数data为controller返回的map,也就是说然后通过data这个参数取JSON数据中的值
if (res.Status == 200) {
window.location.href = "/App/Test/TestOpen";
alert('添加成功');
} else if (res.Status == 300) {
alert('请选择照片点击上传')
}
else if (res.Status == 700) {
alert('手机号码重复了,请重新输入')
}
else if (res.Status == 800) {
alert('身份证号码重复了,请重新输入')
}
else if (res.Status == 100) {
alert('不可为空')
} else {
alert('添加失败')
}
}
});
});
$('#hotelShow').change(function () {
var myType = document.getElementById("hotelShow");//获取select对象
var index = myType.selectedIndex;//获取选项中的索引selectIndex表示的是当前所选中的index
var code = myType.options[index].value;//获取酒店编号
document.getElementById('RoomShow').innerHTML = "";
$.ajax({
url: "/App/Lodger/officialRoom",
type: "post",
data: { "hotelId": code },
success: function (res) {
res.forEach(x => {
$('#RoomShow').append('<option value=' + x.Id + '>' + x.RoomNumber + '</option>')
});
}
});
});
//function turn() {
// var formData = new FormData() //创建一个forData
// formData.append('img', $('#photo')[0].files[0]) //把file添加进去 name命名为img
// $('#img1').css('webkit-transform', ' scaleX(-1)');
// $.ajax({
// url: "/App/Lodger/Base64StringToImage",
// data: formData,
// type: "POST",
// async: false,
// cache: false,
// contentType: false,
// processData: false,
// success: function (res) {
// console.log(res);
// document.getElementById('photo').value = res;
// alert("123")
// }
// });
//}
</script>

View File

@@ -0,0 +1,209 @@

@{
ViewBag.Title = "Addedpersonnel";
Layout = "~/Areas/App/Views/Shared/_Layout.cshtml";
List<Face.Domain.Entities.Hotels> Hotellist = Face.Services.Cache.CacheHelp.GetHotelslist();
}
<style>
.table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td {
padding: 0px;
border: 0px;
}
.table > tbody > tr > td, .table > tbody > tr > th, .table > tfoot > tr > td, .table > tfoot > tr > th, .table > thead > tr > td, .table > thead > tr > th {
padding: 1px;
}
#order {
border-top: solid 2px #ddd;
}
</style>
<div class="content-wrapper">
<section class="content" style="padding:0px;">
<div class="container-fluid">
<div class="row">
<div class="col-sm-8">
<!-- Default box -->
<div class="card">
<div class="card-header">
<div class="card-tools">
<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse"></button>
<button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
<i class="fas fa-times"></i>
</button>
</div>
</div>
<div class="card-body">
@*条件筛选*@<div><h4>新增住客信息</h4></div>
</div>
@*内容筛选*@
<div class="ibox-content" style="padding:0px;">
<div id="project">
<div class="card-body">
<form class="form-horizontal" id="AddresidentFrom">
<div class="form-group">
<label for="exampleInputEmail1"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">选择酒店</font></font></label>
<select class="form-control" id="OrgId">
@{
List<int> sum = (List<int>)Session["list"];
foreach (int item in sum)
{
foreach (var iten in Hotellist)
{
if (iten.Id == item)
{
<option class="ComboBox" value="@iten.Id" )>
@iten.Name
</option>
}
}
}
}
</select>
<p></p>
<label for="exampleInputEmail1"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">客户名字</font></font></label>
<input type="email" class="form-control" id="name" placeholder="输入客户名字">
<p></p>
<label for="exampleInputEmail1"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">客户身份证</font></font></label>
<input type="email" class="form-control" id="id_no" placeholder="输入客户身份证">
<p></p>
<label for="exampleInputEmail1"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">&nbsp</font></font></label>
<select class="form-control" id="Sex" style="width:300px; float:left">
<option value="1">男</option>
<option value="0">女</option>
</select>
<p></p>
<p></p>
<label for="exampleInputEmail1"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">客户电话号码</font></font></label>
<input type="email" class="form-control" id="weekly" placeholder="请输入客户电话号码">
<p></p>
<label for="exampleInputEmail1"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">备注</font></font></label>
<input type="email" class="form-control" id="remark" placeholder="可不填">
<p></p>
<div class="col-md-offset-3 col-md-9">
<button class="btn btn-md btn-primary" type="button" id="btnAddShow">保存</button>
</div>
</div>
</form>
</div>
<div id="btn" onclick="tip()"></div>
</div>
</div>
<!-- /.card-body -->
</div>
</div>
<!-- /.card -->
<div class="col-sm-4" id="faceDetailsBox">
</div>
</div>
</div>
</section>
</div>
<script src="~/Scripts/jquery.js"></script>
<script src="~/Scripts/jquery.datetimepicker.js"></script>
<script>
var srclocation
function ToUploadPictures(file,back) {
var reader = new FileReader();
var AllowImgFileSize = 2100000; //上传图片最大值(单位字节) 2 M = 2097152 B 超过2M上传失败
var imgUrlBase64;
if (file) {
//将文件以Data URL形式读入页面
imgUrlBase64 = reader.readAsDataURL(file);
reader.onload = function (e) {
var ImgFileSize = reader.result.substring(reader.result.indexOf(",") + 1);//截取base64码部分可选可不选需要与后台沟通
if (AllowImgFileSize != 0 && AllowImgFileSize < reader.result.length) {
alert('上传失败请上传不大于2M的图片');
return;
} else {
//执行上传操作
console.log(ImgFileSize);
back(ImgFileSize)
}
}
}
}
function uploadimg(type) {
let files = $("#photo").prop("files");
if (files.length <= 0)
return;
$("#photo").closest(".input-group").find("label").html(files[0].name);
if (type != 1)
return;
console.log(files[0])
upload();
}
//上传图片
function Upload() {
upload();
}
function upload() {
var formData = new FormData() //创建一个forData
formData.append('img', $('#photo')[0].files[0]) //把file添加进去 name命名为img
$.ajax({
url: "/App/ImgServer/Update",
data: formData,
type: "POST",
async: false,
cache: false,
contentType: false,
processData: false,
success: function (data) {//成功
srclocation = data.data.src;
alert("上传成功");
$("#pictureShow").html('<img id="images" src="/ImgServer/FileImage?url=' + data.data.src + '">')
},
error: function () {
alert("上传失败")
}
});
}
$("#btnAddShow").click(function () {
var name = $('#name').val();
var hotelCode = $('#OrgId').val();
var id_no = $('#id_no').val();
var sex = $("#Sex").val();
var photo = srclocation;
var weekly = $('#weekly').val();
var Remark = $("#remark").val();
var InfoBodyShow = {
LodgerNmae: name,
IDNumber: id_no,
Sex: sex,
phonenumber: weekly,
remark: Remark,
HotelCode: hotelCode
};
$.ajax({
url: "/App/Lodger/Addpeople",
type: "post",
data: InfoBodyShow,
async: true,
success: function (res) { // 请求成功后的回调函数其中的参数data为controller返回的map,也就是说然后通过data这个参数取JSON数据中的值
console.log(res.Status)
if (res.Status == 200) {
alert('添加成功');
var link = "/App/Lodger/LodgerInfo"
window.location.href = link;
} else if (res.Status == 300) {
alert('请选择照片点击上传')
} else if (res.Status == 100) {
alert('不可为空')
} else {
alert('添加失败')
}
}
});
})
</script>

View File

@@ -0,0 +1,217 @@
@model PagedList.IPagedList<Face.Domain.Entities.Lodger>
@using PagedList.Mvc;
@using Face.Domain.Entities;
@using Face.Web.Areas.App.Models;
@using Face.Domain.Application
@{
ViewBag.Title = "LodgerInfo";
Layout = "~/Areas/App/Views/Shared/_Layout.cshtml";
List<Hotels> hotels = (List<Hotels>)Session["HotelList"];
List<Hosts> hosts = (List<Hosts>)Session["roomlist"];
List<TBL_ROOM_BASIC_INFO> ZongRoominfo = (List<TBL_ROOM_BASIC_INFO>)Session["ZongRoominfo"];
}
<script src="~/Plugin/user.js"></script>
<style>
.table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td {
padding: 0px;
border: 0px;
}
.table > tbody > tr > td, .table > tbody > tr > th, .table > tfoot > tr > td, .table > tfoot > tr > th, .table > thead > tr > td, .table > thead > tr > th {
padding: 5px;
}
#style-format {
float: right;
}
#btnaddPLine {
float: right;
}
</style>
<div class="content-wrapper">
<section class="content" style="padding:0px;">
<div class="container-fluid">
<div class="row">
<div class="col-sm-8">
<!-- Default box -->
<div class="card">
<div class="card-header">
<span style="font-size:30px">入住客户信息</span>
@*<div class="card-tools">
<button class="btn btn-md btn-primary" type="button" id="Hotelsearch">添加住客信息</button>
</div>*@
</div>
<div class="card-body">
<div class="input-group " style="width:300px; float:left;">
<input type="search" style="height:40px;" id="txtOpname" class="form-control form-control-lg" placeholder="进行名字筛选">
<div class="input-group-append">
<button type="submit" class="btn btn-lg btn-default" onclick="search()" id="Btnmodify">
<i class="fa fa-search"></i>
</button>
</div>
</div>
@*<input type="text" placeholder="进行名字筛选" name="username" style="height:33px;" id="txtOpname"><button class="btn btn-md btn-primary" id="Btnmodify" onclick="search()">搜索</button>*@
@*条件筛选*@
</div>
@*内容筛选*@
<div class="ibox-content" style="padding:0px;">
@foreach (var item in Model)
{
<div class="yhxx" onclick="Show(this)">
<div class="info-box" style="padding: 0px; margin-bottom: 0.5rem; overflow-wrap: break-word;">
<span class="info-box-icon" style="height:85px;overflow:hidden;">
@if (ViewData["storage"] != null)
{
List<CheckInInfo> checkIns = (List<CheckInInfo>)ViewData["storage"];
foreach (var ite in checkIns)
{
if (item.IDNumber == ite.IdNumber)
{
@*<img id="images" src="/ImgServer/FileImage?url=@ite.picture" style="width:50px;height:50px;">*@
<img id="images" data-src="/ImgServer/FileImage?url=@ite.picture" src="~/Images/Project/tupian.jpg" width="85" style="margin:0px;">
}
}
}
</span>
<div class="info-box-content" style="padding: 5px;">
<span class="text-bold" style="font-size: 17px; line-height: 2;">
@item.LodgerNmae
</span>
<span style="line-height: 1;">
身份证: <span>@item.IDNumber</span>
</span>
<span style="line-height: 1;">
</span>
<span style="line-height: 1;">
注册日期: <span line-height: 1;">@item.CheckInDate.Value.ToString("yyyy/MM/dd")</span>
</span>
</div>
<div class="info-box-content" style="padding: 0px;">
<span style="line-height: 1;">
性别
@if (item.Sex != null)
{
if (item.Sex == 1)
{
<span style="color: rgb(169, 169, 169); line-height: 1;">男</span>
}
else if (item.Sex == 0)
{
<span style="color: rgb(169, 169, 169); line-height: 1;">女</span>
}
}
</span>
<span style="line-height: 1;">
备注:
<span>@item.remark</span>
</span>
</div>
</div>
<div class="acet">
@foreach (var inall in ViewBag.inall)
{
if (item.IDNumber == inall.IdNumber)
{
<div style="margin-left:20px;">
<span> 曾入住:@(hotels.FirstOrDefault(x => x.Id == inall.HotelCode).Name) /</span>
@{TBL_ROOM_BASIC_INFO isok = ZongRoominfo.FirstOrDefault(s => s.ROOM_OLD_ID == inall.Roomid);
<span>@(inall.Roomid.ToString() != "" ? (isok == null ? "" : isok.ROOM_NUMBER) : "") </span>
}
<span>开房时间:@inall.CheckTime</span>
<span>
退房时间
@if (Convert.ToDateTime(inall.checkOutTime) == Convert.ToDateTime("2000/1/1"))
{
<span>入住中</span>
}
else
{
<span>@inall.checkOutTime</span>
}
</span>
</div>
}
}
</div>
</div>
}
<!-- /.card -->
</div>
<div style="text-align:center" class="chaxun">
@*分页主要代码*@
每页 @Model.PageSize 条记录,共 @Model.PageCount 页,当前第 @Model.PageNumber 页
<nav aria-label="Contacts Page Navigation">
<ul class="pagination justify-content-center m-0">
@if (ViewData["infose"] != null)
{
string TiaoJian = ViewData["infose"].ToString();
@Html.PagedListPager(Model, page => Url.Action("LodgerInfo", new { page, TiaoJian }), new PagedListRenderOptions() { DisplayItemSliceAndTotal = false, MaximumPageNumbersToDisplay = 5 });
}
else
{ @Html.PagedListPager(Model, page => Url.Action("LodgerInfo", new { page }), new PagedListRenderOptions() { DisplayItemSliceAndTotal = false, MaximumPageNumbersToDisplay = 5 })}
</ul>
</nav>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
<script type="text/javascript">
$('.acet').hide();
if ($(document).width() >= 764) {
}
else {
$(".content-wrapper *").css("font-size", "11px");
}
function Show(that) {
$(that).find('.acet').toggle();
console.log(that);
}
//if ($(document).width() >= 764) {
//}
//else {
// $(".content-wrapper *").css("font-size", "13px");
//}
//$(".pagination").addClass("pagination pagination-sm");
//$(".pagination").children("li").addClass("page-item");
//$(".page-item").children("a").addClass("page-link");
$(".pagination").addClass("pagination pagination-sm");
$(".pagination").children("li").addClass("page-item");
$(".page-item").children("a").addClass("page-link");
function search() {//查询SN号按钮
var src = document.getElementById("txtOpname").value
console.log(src);
var link = "/App/Lodger/LodgerInfo" + '?TiaoJian=' + src
window.location.href = link;
}
$("#Hotelsearch").click(function () {
window.location.href = "/App/Lodger/Addedpersonnel";
});
</script>

View File

@@ -0,0 +1,148 @@
@using PagedList.Mvc;
@model PagedList.IPagedList<Face.Domain.Entities.CheckInInfo>
@using PagedList.Mvc;
@using Face.Domain.Application;
@{
ViewBag.Title = "Openhouse";
Layout = "~/Areas/App/Views/Shared/_Layout.cshtml";
List<Face.Domain.Entities.Hotels> hglist = Face.Services.Cache.CacheHelp.GetHotelslist();
List<Face.Domain.Entities.Hosts> hostslist = Face.Services.Cache.CacheHelp.GetRoomGroup();
List<TBL_ROOM_BASIC_INFO> ZongRoominfo = (List<TBL_ROOM_BASIC_INFO>)Session["ZongRoominfo"];
}
<script src="~/Plugin/user.js"></script>
<style>
.table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td {
padding: 0px;
border: 0px;
}
.table > tbody > tr > td, .table > tbody > tr > th, .table > tfoot > tr > td, .table > tfoot > tr > th, .table > thead > tr > td, .table > thead > tr > th {
padding: 5px;
}
#style-format {
float: right;
}
#btnaddPLine {
float: right;
}
</style>
<div class="content-wrapper">
<section class="content" style="padding:0px;">
<div class="container-fluid">
<div class="row">
<div class="col-sm-8">
<!-- Default box -->
<div class="card">
<div class="card-header">
<span style="font-size:30px">开房入住信息</span>
<div class="card-tools">
@*<button class="btn btn-md btn-primary" type="button" id="Hotelsearch">添加入住人员</button>*@
</div>
</div>
<div class="card-body">
<div class="input-group " style="width:300px; float:left;">
<input type="search" style="height:40px;" id="txtOpname" class="form-control form-control-lg" placeholder="进行名字筛选">
<div class="input-group-append">
<button type="submit" class="btn btn-lg btn-default" onclick="search()" id="Btnmodify">
<i class="fa fa-search"></i>
</button>
</div>
</div>
@*<input type="text" placeholder="进行名字筛选" name="username" style="height:33px;" id="txtOpname"><button class="btn btn-md btn-primary" id="Btnmodify" onclick="search()">搜索</button>*@
@*条件筛选*@
</div>
@*内容筛选*@
<div class="ibox-content" style="padding:10px;">
@foreach (var item in Model)
{
<div class="yhxx" style="padding:5px;">
<div class="info-box" style="padding: 0px; margin-bottom: 0.5rem; overflow-wrap: break-word;">
<span class="info-box-icon" style="height:85px;overflow:hidden;"> <img id="images" src="/ImgServer/FileImage?url=@item.picture" style="width:50px; height:50px;"></span>
<div class="info-box-content" style="padding: 7px;">
<span class="text-bold" style="font-size: 16px; line-height: 1;">
@item.Name
</span>
<span style="line-height: 1;">
身份证: <span>@item.IdNumber</span>
</span>
<span style="line-height: 1;">
</span>
<span style="line-height: 1;">
开房日期: <span line-height: 1;">@item.CheckTime.Value.ToString("yyyy/MM/dd hh:mm")</span>
</span>
</div>
<div class="info-box-content" style="padding: 0px;">
<span style="line-height: 1;">
酒店: @(item.HotelCode.ToString() != "" ? (hglist.SingleOrDefault(s => s.Id == item.HotelCode)!=null? hglist.SingleOrDefault(s => s.Id == item.HotelCode).Name: ""): "")
</span>
<span style="line-height: 1;">
房间:
@{TBL_ROOM_BASIC_INFO isok = ZongRoominfo.FirstOrDefault(s => s.ROOM_OLD_ID == item.Roomid);
<span>@(item.Roomid.ToString() != "" ? (isok == null ? "" : isok.ROOM_NUMBER) : "") </span>
}
</span>
@*<span style="line-height: 1;">
退房时间:
<span>@item.checkOutTime.Value.ToString("yyyy/MM/dd")</span>
</span>*@
</div>
</div>
</div>
}
<!-- /.card -->
</div>
<div style="text-align:center" class="chaxun">
@*分页主要代码*@
每页 @Model.PageSize 条记录,共 @Model.PageCount 页,当前第 @Model.PageNumber 页
<nav aria-label="Contacts Page Navigation">
<ul class="pagination justify-content-center m-0">
@if (ViewData["infose2"] != null)
{
string TiaoJian = ViewData["infose2"].ToString();
@Html.PagedListPager(Model, page => Url.Action("Openhouse", new { page, TiaoJian }), new PagedListRenderOptions() { DisplayItemSliceAndTotal = false, MaximumPageNumbersToDisplay = 5 });
}
else
{@Html.PagedListPager(Model, page => Url.Action("Openhouse", new { page }), new PagedListRenderOptions() { DisplayItemSliceAndTotal = false, MaximumPageNumbersToDisplay = 5 })}
</ul>
</nav>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
<script type="text/javascript">
$(".pagination").addClass("pagination pagination-sm");
$(".pagination").children("li").addClass("page-item");
$(".page-item").children("a").addClass("page-link");
if ($(document).width() >= 764) {
}
else {
$(".content-wrapper *").css("font-size", "11px");
}
$("#Hotelsearch").click(function () {
window.location.href = "/App/Lodger/AddCheckinfo";
});
function search() {
var src = document.getElementById("txtOpname").value
console.log(src);
var link = "/App/Lodger/Openhouse" + '?TiaoJian=' + src
window.location.href = link;
}
</script>