码迷,mamicode.com
首页 > Web开发 > 详细

.net core酒店管理 例

时间:2020-08-27 13:10:20      阅读:61      评论:0      收藏:0      [点我收藏+]

标签:pdo   nta   summary   --   注册   end   omd   row   microsoft   

Api:

数据访问层:技术图片


public interface Iromdal
{
//显示房间信息表
List<Room> GetRooms();
//显示房间类别
List<Roomtype> Roomtypes();
//详情反填
Room Fant(int uid);
//登录token
UserInfo LoginTok(UserInfo u);
//用户登录
int UserLogin(string Name, string Pwd);
//员工登录
int JobLogin(string Name, string Pwd);
//
List<JobInfo> JobInfoShow();
//显示用户
List<UserInfo> GetShow();
//删除用户
int UserDelete(int cid);
//反填用户信息
UserInfo UserFan(int aid);
//修改用户信息
int UserUpdate(UserInfo u);
//修改房间表
int RoomUpdate(Room r);
//管理员登录
int ManagerLogin(string Name, string Pwd);
//员工反填
JobInfo fanJob(int qid);
//删除房间
int RoomDelete(int rid);
//添加员工
int JobAdd(JobInfo j);
//删除员工
int jobDelete(int fid);
//修改员工信息
int JobUpdate(JobInfo j);
//cookie传值
UserInfo GetUser(int uid);
//显示订单
List<RoomReservation> getReser();
//注册(添加)用户8
int AddUser(UserInfo u);
//删除订单
int DeleteUser(int eid);
//结算
int FK(int Id, int RoomId, int WId);
//添加房间
int AddRoom(Room r);
//订单(3表)
List<Room> ShowRoom();
//显示留言
List<CaLiu> showCaLiu();
//添加留言
int AddCaLiu(CaLiu c);
//删除留言
int DeleteCaLiu(int gid);
//财务
List<CwMoeny> GetMoney();

 

using Model;
using System;
using System.Collections.Generic;
using Dapper;
using System.Data.SqlClient;
using System.Linq;

namespace DAL
{
public class romdal : Iromdal
{
//详情
public Room Fant(int uid)
{
using (SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=hotel;Integrated Security=True"))
{
var list = GetRooms();
var mod = list.Where(m => m.RoomId == uid).FirstOrDefault();
return mod;
}
}
//显示房间信息
public List<Room> GetRooms()
{
using (SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=hotel;Integrated Security=True"))
{
return conn.Query<Room>("select r.*,s.* from Room r join Roomtype s on r.ORStatId = s.ORStatId ").ToList();
}
}
//下拉框显示房间类型
public List<Roomtype> Roomtypes()
{
using (SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=hotel;Integrated Security=True"))
{
return conn.Query<Roomtype>("select * from Roomtype ").ToList();
}
}
//用户登录
public int UserLogin(string Name, string Pwd)
{
using (SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=hotel;Integrated Security=True"))
{
return Convert.ToInt32(conn.ExecuteScalar($"select * from UserInfo where Phone=‘{Name}‘ and pass=‘{Pwd}‘"));
}
}
//显示员工信息
public List<JobInfo> JobInfoShow()
{
using (SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=hotel;Integrated Security=True"))
{
return conn.Query<JobInfo>("select * from JobInfo ").ToList();
}
}
//显示用户
public List<UserInfo> GetShow()
{
using (SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=hotel;Integrated Security=True"))
{
return conn.Query<UserInfo>($"select * from UserInfo").ToList();
}
}
/// <summary>
/// cookie传值
/// </summary>
/// <param name="uid"></param>
/// <returns></returns>
public UserInfo GetUser(int uid)
{
using (SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=hotel;Integrated Security=True"))
{
return conn.Query<UserInfo>($"select * from UserInfo where Id={uid}").FirstOrDefault();
}
}
//员工登录

public int JobLogin(string Name, string Pwd)
{
using (SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=hotel;Integrated Security=True"))
{
return Convert.ToInt32(conn.ExecuteScalar($"select * from JobInfo where Jtatu=‘{Name}‘ and JPass=‘{Pwd}‘"));
}
}
//修改房间表
public int RoomUpdate(Room r)
{
using (SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=hotel;Integrated Security=True"))
{
return conn.Execute($"update Room set RoId=‘{r.RoId}‘, ORStatId=‘{r.ORStatId}‘,RoShu=‘{r.RoShu}‘,Romney=‘{r.Romney}‘ where RoomId=‘{r.RoomId}‘");
}
}
//管理员登录
public int ManagerLogin(string Name, string Pwd)
{
using (SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=hotel;Integrated Security=True"))
{
return Convert.ToInt32(conn.ExecuteScalar($"select * from Manager where ManagerName=‘{Name}‘ and ManagerPass=‘{Pwd}‘"));
}
}
//员工反填
public JobInfo fanJob(int qid)
{
using (SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=hotel;Integrated Security=True"))
{
var list = JobInfoShow();
var mod = list.Where(m => m.JId == qid).FirstOrDefault();
return mod;
}
}
//删除房间
public int RoomDelete(int rid)
{
using (SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=hotel;Integrated Security=True"))
{
return conn.Execute($"delete from Room where RoomId=‘{rid}‘");
}
}
//员工添加
public int JobAdd(JobInfo j)
{
using (SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=hotel;Integrated Security=True"))
{
return conn.Execute($"insert into JobInfo values(‘{j.JName}‘,‘{j.JSex}‘,‘{j.Jtatu}‘,‘{j.JPass}‘,‘{j.JJob}‘,‘{j.JMoeny}‘)");
}
}
//删除员工
public int jobDelete(int fid)
{
using (SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=hotel;Integrated Security=True"))
{
return conn.Execute($"delete from JobInfo where JId=‘{fid}‘");
}
}
//修改员工信息
public int JobUpdate(JobInfo j)
{
using (SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=hotel;Integrated Security=True"))
{
return conn.Execute($"update JobInfo set JName=‘{j.JName}‘,JSex=‘{j.JSex}‘,Jtatu=‘{j.Jtatu}‘,JPass=‘{j.JPass}‘,JJob=‘{j.JJob}‘,JMoeny=‘{j.JMoeny}‘ where JId={j.JId}");
}
}
//删除用户
public int UserDelete(int cid)
{
using (SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=hotel;Integrated Security=True"))
{
return conn.Execute($"delete from UserInfo where Id=‘{cid}‘");
}
}
//反填用户信息
public UserInfo UserFan(int aid)
{
using (SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=hotel;Integrated Security=True"))
{
var list = GetShow();
var mod = list.Where(m => m.Id == aid).FirstOrDefault();
return mod;
}
}
//修改用户信息
public int UserUpdate(UserInfo u)
{
using (SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=hotel;Integrated Security=True"))
{
return conn.Execute($"update UserInfo set UserId=‘{u.UserId}‘,UName=‘{u.UName}‘,Sex=‘{u.Sex}‘,statu=‘{u.statu}‘,HeiId=‘{u.HeiId}‘,BTime=‘{u.BTime}‘,OTime=‘{u.OTime}‘,pass=‘{u.pass}‘,Email=‘{u.Email}‘,sites=‘{u.sites}‘,Phone=‘{u.Phone}‘,SMoney=‘{u.SMoney}‘ where Id=‘{u.Id}‘ ");
}
}
//显示订单
public List<RoomReservation> getReser()
{
using (SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=hotel;Integrated Security=True"))
{
return conn.Query<RoomReservation>($"select r.*,u.UName from RoomReservation r join UserInfo u on r.ORUserId = u.Id").ToList();
}
}
//注册(添加)用户
public int AddUser(UserInfo u)
{
using (SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=hotel;Integrated Security=True"))
{
return conn.Execute($"insert into UserInfo values(‘{u.UserId}‘,‘{u.UName}‘,‘{u.Sex}‘,‘{u.statu}‘,‘{u.HeiId}‘,‘{u.BTime}‘,‘{u.OTime}‘,‘{u.pass}‘,‘{u.Email}‘,‘{u.Phone}‘,‘{u.SMoney}‘) ");
}
}
//删除订单
public int DeleteUser(int eid)
{
using (SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=hotel;Integrated Security=True"))
{
return conn.Execute($"delete from RoomReservation where ORId=‘{eid}‘");
}
}
//房间添加
public int AddRoom(Room r)
{
{
using (SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=hotel;Integrated Security=True"))
{
return conn.Execute($"insert into Room values(‘{r.RoId}‘,‘{r.ORStatId}‘,‘{r.RoShu}‘,‘{r.Romney}‘)");
}
}
////结算
//public int JIeShuan(int id, int ORId)
//{
// using (SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=hotel;Integrated Security=True"))
// {
// object b=conn.Execute("")
// }
//}
}
/// <summary>
/// 还款
/// </summary>
/// <param name="Id">客户Id</param>
/// <param name="RoomId">房间Id</param>
/// <returns></returns>
public int FK(int Id, int RoomId, int WId)
{
using (SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=hotel;Integrated Security=True"))
{
object ud = conn.ExecuteScalar($"select SMoney from UserInfo where Id={Id}");
object rd = conn.ExecuteScalar($"select Romney from Room where RoomId={RoomId}");
object sl = conn.ExecuteScalar($"select RoShu from Room where RoomId={RoomId}");
if (Convert.ToInt32(ud) >= Convert.ToInt32(rd))
{

int n = conn.Execute($"update UserInfo set SMoney=SMoney-{rd} where Id={Id} ");
if (n > 0)
{
if (Convert.ToInt32(sl) > 0)
{
int m = conn.Execute($"update Room set RoShu=RoShu-{1} where RoomId={RoomId} ");
if (m > 0)
{
conn.Execute($"update CwMoeny set Wmoney=Wmoney+{rd} where WId={WId} ");
}

return m;
}
else
{
return -1;
}

}
return n;
}
else
{
return -1;
}
}
}
//订单(3表)
public List<Room> ShowRoom()
{
using (SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=hotel;Integrated Security=True"))
{
return conn.Query<Room>($"select u.Id,r.RoomId,r.RoId,r.RoId,r.RoShu,r.Romney,c.WId,u.UName,u.BTime,u.OTime from UserInfo u join Room r on u.Id = r.RoomId join CwMoeny c on c.WId = r.RoomId").ToList();
}
}
//留言显示
public List<CaLiu> showCaLiu()
{
using (SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=hotel;Integrated Security=True"))
{
return conn.Query<CaLiu>($"select * from CaLiu").ToList();
}
}
//添加留言
public int AddCaLiu(CaLiu c)
{
using (SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=hotel;Integrated Security=True"))
{
return conn.Execute($"insert into CaLiu values(‘{c.Lleave}‘);");
}
}
//删除留言
public int DeleteCaLiu(int gid)
{
using (SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=hotel;Integrated Security=True"))
{
return conn.Execute($"delete from CaLiu where LId=‘{gid}‘");
}
}
//登录token
public UserInfo LoginTok(UserInfo u)
{
using (SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=hotel;Integrated Security=True"))
{
return conn.Query<UserInfo>($"select * from UserInfo where Phone=‘{u.Phone}‘ and pass=‘{u.pass}‘").FirstOrDefault();
}
}
//财务
public List<CwMoeny> GetMoney()
{
using (SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=hotel;Integrated Security=True"))
{
return conn.Query<CwMoeny>($"select * from CwMoeny").ToList();
}
}
}
}

 

controller:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices.ComTypes;
using System.Threading.Tasks;
using DAL;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Model;
using WebApplication1.Models;

namespace WebApplication1.Controllers
{
[Route("api/[controller]/[action]")]
[ApiController]
public class ValuesController : ControllerBase
{
private Iromdal _bll;
public ValuesController(Iromdal Iromdal)
{
_bll = Iromdal;
}
[HttpGet]
//显示房间信息
public async Task<pageRoom> GetRooms(int pageIndex = 1, int pageSize = 3)
{
List<Room> rooms = await Task.Run(() => { return _bll.GetRooms(); });
pageRoom fanrom = new pageRoom();
fanrom.TotalCount = rooms.Count / pageSize + (rooms.Count % pageSize > 0 ? 1 : 0);
fanrom.Rooms = rooms.Skip((pageIndex - 1) * pageSize).Take(pageSize).ToList();
return fanrom;
}
[HttpGet]
//下拉框房间类型
public List<Roomtype> Roomtypes()
{
return _bll.Roomtypes();
}
//显示房间类型
[HttpGet]

//详情
public Room Fant(int uid)
{
return _bll.Fant(uid);
}
//用户登录
[HttpGet]
public int UserLogin(string Name, string Pwd)
{
return _bll.UserLogin(Name, Pwd);
}
//员工登录
[HttpGet]
public int JobLogin(string Name, string Pwd)
{
return _bll.JobLogin(Name, Pwd);
}
[HttpGet]
//显示员工信息
public async Task<PageTouZi> JobInfoShow(int pageIndex = 1, int pagSize = 3)
{
List<JobInfo> list = await Task.Run(() => { return _bll.JobInfoShow(); });
PageTouZi touZi = new PageTouZi();
touZi.TotalCount = list.Count / pagSize + (list.Count % pagSize > 0 ? 1 : 0);
touZi.List = list.Skip((pageIndex - 1) * pagSize).Take(pagSize).ToList();
return touZi;
}
[HttpGet]
//显示用户
public List<UserInfo> GetShow()
{
return _bll.GetShow();
}

[HttpPost]
//删除用户
public int UserDelete(int cid)
{
return _bll.UserDelete(cid);
}
[HttpGet]
//反填用户信息
public UserInfo UserFan(int aid)
{
return _bll.UserFan(aid);
}
[HttpPost]
//修改房间表
public int RoomUpdate([FromForm] Room r)
{
return _bll.RoomUpdate(r);
}
[HttpGet]
//管理员登录
public int ManagerLogin(string Name, string Pwd)
{
return _bll.ManagerLogin(Name, Pwd);
}
//员工反填
[HttpGet]
public JobInfo fanJob(int qid)
{
return _bll.fanJob(qid);
}
//删除房间
[HttpPost]
public int RoomDelete(int rid)
{
return _bll.RoomDelete(rid);
}
//员工添加
[HttpPost]
public int JobAdd([FromForm] JobInfo j)
{
return _bll.JobAdd(j);
}
//删除员工
[HttpPost]
public int jobDelete(int fid)
{
return _bll.jobDelete(fid);
}
[HttpPost]
//修改员工信息
public int JobUpdate([FromForm] JobInfo j)
{
return _bll.JobUpdate(j);
}
//cookie传值
[HttpGet]
public UserInfo GetUser(int uid)
{
return _bll.GetUser(uid);
}
[HttpGet]
//显示订单
public List<RoomReservation> getReser()
{
return _bll.getReser();
}
[HttpPost]
//注册(添加)用户
public int AddUser(UserInfo u)
{
return _bll.AddUser(u);
}
//退订单
[HttpPost]
public int DeleteUser(int eid)
{
return _bll.DeleteUser(eid);
}
[HttpPost]
//房间添加
public int AddRoom([FromForm]Room r)
{
return _bll.AddRoom(r);
}
[HttpPost]
//修改用户信息
public int UserUpdate([FromForm]UserInfo u)
{
return _bll.UserUpdate(u);
}
[HttpPost]
/// <summary>
/// 还款
/// </summary>
/// <param name="Id">客户Id</param>
/// <param name="RoomId">房间Id</param>
/// <returns></returns>
public int FK(int Id, int RoomId, int WId)
{
return _bll.FK(Id, RoomId, WId);
}
[HttpGet]
//显示房间xin
public List<Room> ShowRoom()
{
return _bll.ShowRoom();
}
//留言显示
[HttpGet]
public List<CaLiu> showCaLiu()
{
return _bll.showCaLiu();
}
//添加留言
[HttpPost]
public int AddCaLiu([FromForm]CaLiu c)
{
return _bll.AddCaLiu(c);
}
//删除留言
[HttpPost]
public int DeleteCaLiu(int gid)
{
return _bll.DeleteCaLiu(gid);
}
//登录Token
public string LoginTok(UserInfo u)
{
UserInfo user = _bll.LoginTok(u);
if (user!=null)
{
JWTHelper jwt = new JWTHelper();
Dictionary<string, object> dic = new Dictionary<string, object>();
dic.Add("Phone", user.Phone);
dic.Add("Id", user.Id);
dic.Add("pass", user.pass);
string token = jwt.GetToken(dic, 3000);
return token;
}
else
{
return null;
}
}
//发送邮箱
[HttpPost]
public int SendMailMethod([FromForm]EmailModel model)
{
try
{
string[] arr = null;
if (model.RecMails.Contains(","))
{
arr = model.RecMails.Split(‘,‘);
}
else
{
arr = new string[] { model.RecMails };
}

SendMail mail = new SendMail(arr, "31900477@qq.com", model.BodyContent, model.Title, "sfeamvgjafykbgdh");
mail.Send();
return 1;
}
catch (Exception)
{
return 0;
}
}
//财务
[HttpGet]
public List<CwMoeny> GetMoney()
{
return _bll.GetMoney();
}
}
}

MVC:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;

namespace WebApplication1.Controllers
{
public class jobController2 : Controller
{
//员工登录
public IActionResult LoginJob()
{
return View();
}
//员工显示
public IActionResult ShowJob()
{
return View();
}
//所有房间信息
public IActionResult RoomShowN()
{
return View();
}
//详情修改房间信息
public IActionResult RoomUp(int RoomId)
{
ViewBag.Sid = RoomId;
return View();
}
//预订单
public IActionResult YVDing()
{
return View();
}
//注册
public IActionResult AddJobInfo()
{
return View();
}
//留言板
public IActionResult LIYYan()
{
return View();
}
//邮箱
public IActionResult YXian()
{
return View();
}
}
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;

namespace WebApplication1.Controllers
{
public class ManaController : Controller
{
//管理员登录
public IActionResult HuanLogin()
{
return View();
}
//显示员工页面
public IActionResult HuanShow()
{
return View();
}
//显示员工页面
public IActionResult FangShow()
{
return View();
}
//修改员工信息
public IActionResult XiuJob(int JId)
{
ViewBag.Cid = JId;
return View();
}
//添加改员工信息
public IActionResult AddJob()
{
return View();
}
//修改房间
public IActionResult XiuRoom(int RoomId)
{
ViewBag.Sid = RoomId;
return View();
}
//添加房间
public IActionResult AddRoom()
{
return View();
}
//显示客户页面
public IActionResult UserShow()
{
return View();
}
//修改客户信息
public IActionResult XiuUser(int id)
{
ViewBag.cid = id;
return View();
}
//订单信息表
public IActionResult DingDan()
{
return View();
}
//财务表
public IActionResult CMoney()
{
return View();
}
}
}

 

view://显示发送邮箱


@{
ViewData["Title"] = "ShowJob";
}

<script src="~/layui/layui.js"></script>
<link href="~/layui/css/layui.css" rel="stylesheet" />
<ul class="layui-nav" lay-filter="">
<li class="layui-nav-item layui-this"><a href="">首页</a></li>
<li class="layui-nav-item "><a href="JavaScript:da()">所有房间信息</a></li>
<li class="layui-nav-item "><a href="JavaScript:stsrr()">订单信息</a></li>
<li class="layui-nav-item "><a href="JavaScript:liyt()">留言板</a></li>
<li class="layui-nav-item">
<a href="javascript:;">更多服务</a>
<dl class="layui-nav-child">
<!-- 二级菜单 -->
<dd><a href="JavaScript:eamil()">发送邮件</a></dd>
<dd><a href="">服务2</a></dd>
<dd><a href="">服务3</a></dd>
</dl>
</li>
<li class="layui-nav-item"><a href="">社区</a></li>
</ul>
<html>
<head>
<meta charset="utf-8">
<title>carousel模块快速使用</title>
<link rel="stylesheet" href="/layui/css/layui.css" media="all">
</head>
<div>
<ul class="layui-nav layui-bg-cyan" lay-filter="">

<li class="layui-nav-item layui-this"><a href="">用户信息</a></li>
<li class="layui-nav-item" style="float:right">
<a href="">我</a>
<dl class="layui-nav-child">
<dd><a href="javascript:;">安全管理</a></dd>
<dd><a href="javascript:sd();">退出</a></dd>
</dl>
</li>


</ul>

<script>
//注意:导航 依赖 element 模块,否则无法进行功能性操作
layui.use(‘element‘, function () {
var element = layui.element;

//…
});
function sd() {
if (confirm("确认退出吗?")) {
location.href = ‘/jobController2/LoginJob.cshtml‘;
}
else {
return;
}
}
</script>
<br />
<br />
<br />
<br />
<div>
<table class="layui-table">
<colgroup>
<col width="150">
<col width="200">
<col>
</colgroup>
<thead>
<tr class="layui-bg-blue">
<td>客户编号</td>
<td>姓名</td>
<td>客户性别</td>
<td>身份证号</td>
<td>客户类型</td>
<td>入住时间</td>
<td>结束时间</td>
<td>邮箱</td>
<td>联系地址</td>
<td>联系电话</td>
</tr>
</thead>
<tbody id="tbod">
</tbody>
</table>
</div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<!-- 条目中可以是任意内容,如:<img src=""> -->


<script src="/layui/layui.js"></script>
<script>
layui.use(‘carousel‘, function () {
var carousel = layui.carousel;
//建造实例
carousel.render({
elem: ‘#test1‘
, width: ‘100%‘ //设置容器宽度
, arrow: ‘always‘ //始终显示箭头
//,anim: ‘updown‘ //切换动画方式
});
});
</script>
</div>
</html>
<script>
//注意:导航 依赖 element 模块,否则无法进行功能性操作
layui.use(‘element‘, function () {
var element = layui.element;

//…
});
function da() {
location.href = ‘/jobController2/RoomShowN‘;
}
//退出账号
function sd() {
location.href = ‘/jobController2/LoginJob‘;
}
$(function () {
gshow();
});
function gshow() {
$.ajax({
url: "https://localhost:44342/api/values/GetShow",
dataType: "json",
type: "get",
success: function (data) {
$("#tbod").empty();
$(data).each(function () {
var str = ‘<tr>‘ +
‘<td>‘ + this.userId + ‘</td>‘ +
‘<td>‘ + this.uName + ‘</td>‘ +
‘<td>‘ + (this.sex?"男":"女") + ‘</td>‘ +
‘<td>‘ + this.statu + ‘</td>‘ +
‘<td>‘ + this.heiId + ‘</td>‘ +
‘<td>‘ + (this.bTime.substring(0, this.bTime.indexOf("T"))) + ‘</td>‘ +
‘<td>‘ + (this.oTime.substring(0, this.oTime.indexOf("T"))) + ‘</td>‘ +
‘<td>‘ + this.email + ‘</td>‘ +
‘<td>‘ + this.sites + ‘</td>‘ +
‘<td>‘ + this.phone + ‘</td>‘ +
‘</tr>‘;
$("#tbod").append(str);
})
}
})
}
function stsrr() {
location.href = ‘/jobController2/YVDing‘;
}
function liyt() {
location.href = ‘/jobController2/YVDing‘;
}
//发送邮箱
function eamil() {
location.href = ‘/jobController2/YXian‘;
}
</script>

 

.net core酒店管理 例

标签:pdo   nta   summary   --   注册   end   omd   row   microsoft   

原文地址:https://www.cnblogs.com/lgc200421/p/13544346.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!