摘要: public ActionResult Index() { return View(GetStudetPage()); } [HttpPost] public ActionResult Index(string StuName, DateTime? StuKTime, DateTime? StuJT 阅读全文
posted @ 2018-07-29 20:44 Caryon 阅读(102) 评论(0) 推荐(0) 编辑
摘要: public stuclass UPDA(int id) { SqlParameter[] par = new SqlParameter[] { new SqlParameter ("StuID",id) }; DataTable dt = DbHelperSQL.ExecuteDataTable( 阅读全文
posted @ 2018-07-29 20:38 Caryon 阅读(78) 评论(0) 推荐(0) 编辑
摘要: public Pages<stuclass> GetStudetPage(PageParams pagePar) { int size = pagePar.PageSize; string sql = "[dbo].[p_paging]"; SqlParameter[] par = new SqlP 阅读全文
posted @ 2018-07-29 20:37 Caryon 阅读(101) 评论(0) 推荐(0) 编辑
摘要: public class PageParams { /// <summary> /// 表名、视图名 /// </summary> public string TableName { get; set; } /// <summary> /// 标识列名(如:比如主键、标识,推荐使用索引列) /// 阅读全文
posted @ 2018-07-29 20:36 Caryon 阅读(105) 评论(0) 推荐(0) 编辑
摘要: public class Pages<T> where T:class { /// <summary> /// 数据总条数 /// </summary> public int SumCount { get; set; } /// <summary> /// 数据总页数 /// </summary> 阅读全文
posted @ 2018-07-29 20:34 Caryon 阅读(54) 评论(0) 推荐(0) 编辑
摘要: @model List<Model.stuclass> <table style="width:100%;"> <tr> <td>&nbsp;学生编号</td> <td>&nbsp;学生姓名</td> <td>&nbsp;学生性别</td> <td>&nbsp;学生年龄</td> <td>&nbsp 阅读全文
posted @ 2018-07-29 20:30 Caryon 阅读(174) 评论(0) 推荐(0) 编辑
摘要: public List<Drop> Select() { string sql = "select * from StuClass"; DataTable dt = DbHelperSQL.ExecuteDataTable(DbHelperSQL.ConnB2c, CommandType.Text, 阅读全文
posted @ 2018-07-29 20:23 Caryon 阅读(71) 评论(0) 推荐(0) 编辑
摘要: create database Exam001 --数据库名 use Exam001 --使用数据库 create table Student --创建表 ( StuID int identity,--学生ID StuName varchar(50),--学生姓名 StuSex bit,--学生性别 阅读全文
posted @ 2018-07-29 20:12 Caryon 阅读(133) 评论(0) 推荐(0) 编辑