摘要:
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u
阅读全文
posted @ 2018-11-22 19:25
浦东区分晏
阅读(126)
推荐(0)
编辑
摘要:
首先创建一个分页的类:int 当前页数 int 总页数 object 页面数据 在api界面创建一个常量,显示几页,public const int PAGECOUNT=3; 用一个list接收所有查询的数据。list list=bll.get(); 实例化一个分页的类,page pa=new page(); 分页的当前页=方法的参数代表当前页; 分页的总页数=list.count/PAGECO...
阅读全文
posted @ 2018-11-22 19:05
浦东区分晏
阅读(91)
推荐(0)
编辑
摘要:
当前时间: qiandao方法: public int qiandao(string time) { //获取规定上班的时间 string times = ConfigurationManager.AppSettings["up"].ToString(); if (DateTime.Parse(t...
阅读全文
posted @ 2018-11-22 18:45
浦东区分晏
阅读(151)
推荐(0)
编辑
摘要:
url:"/cxl/zhuce?name=" + $("#zhanghao").val() + "", success: location.href = "/cxl/huiyuan"; 控制器: ///不要视图 public int zhuce(string name) { Session["name"] = name; retu...
阅读全文
posted @ 2018-11-22 18:38
浦东区分晏
阅读(121)
推荐(0)
编辑
摘要:
创建一个借口类IDAL:不需要方法体的方法。将class装换成interfaceMVC:web.config <add key="CDAL" value="DAL"/>API的web.config <add key="CDAL" value="DAL"/>添加到<appSettings> 创建一个接
阅读全文
posted @ 2018-11-22 18:22
浦东区分晏
阅读(294)
推荐(0)
编辑