- 博客(20)
- 收藏
- 关注
转载 委托列子
public class card { public delegate void shua(object txt); public event shua shuashijian; public void yanzheng(string num, object txt) { if (num == "1...
2017-12-02 10:01:00 97
转载 工厂模式
private void Form1_Load(object sender, EventArgs e) { //调用 car p = dric.get("ben"); string nam = p.drice(); MessageBox.Show(nam); }...
2017-12-02 10:00:00 77
转载 委托事件
后台 namespace WindowsFormsApplication1{ /// <summary> /// 刷卡验证 类 /// </summary> public class Card { public delegate void shuaka(object txt); public event s...
2017-11-30 11:56:00 83
转载 存储过程分页 练习
后台 /// <summary> /// 存储过程分页 /// </summary> /// <param name="PageIndex"></param> /// <param name="PageSize"></param> /// <...
2017-11-30 11:34:00 89
转载 批量
前台 $("#Checkbox1").click(function () { $("input[type='checkbox']").prop("checked", this.checked); }) function pi() { var id=""; $("input[type='ch...
2017-11-23 11:52:00 64
转载 图片水印
后台 [HttpPost] public ActionResult uploadfile(HttpPostedFileBase pic) { string warning = ""; string files = Server.MapPath(pic.FileName); string fi...
2017-11-23 11:07:00 71
转载 add
前台 <input id="Button1" type="button" value="button" onclick="add()" /> <input id="save" onclick="saveadd()" type="button" value="批量保存" /> <div> <table> ...
2017-11-22 19:48:00 77
转载 分页
API的控制器 DAL /// <summary> /// 万能 /// </summary> /// <param name="Pageindex"></param> /// <param name="Pagesize"></param> ...
2017-11-22 19:42:00 73
转载 mvc控制器
控制器 using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;using System.Net.Http;using Newtonsoft.Json;using WebApplication1.Models;using Webdiyer....
2017-11-21 19:43:00 64
转载 API的控制器
// GET: api/showApi /// <summary> /// 显示 查询 /// </summary> /// <param name="name"></param> /// <param name="type"></param> ...
2017-11-21 19:39:00 488
转载 MVC跨域API
API using System;using System.Collections.Generic;using System.Linq;using System.Net;using System.Net.Http;using System.Web.Http;using System.Web.Http.Cors;using yue5API.Models; namespace yue5A...
2017-11-19 19:53:00 75
转载 WindowsForms 调用API
WindowsForms 后台 using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;...
2017-11-19 19:29:00 247
转载 触发器
--数据库表名 CREATE TABLE BANKUSER( BID INT PRIMARY KEY IDENTITY, BNUM NVARCHAR(50), BNAME NVARCHAR(50) , BPWD NVARCHAR(50), BMONEY DECIMAL ) --数据库表名 CREATE TABLE BANKLOGS( LID INT PRIMAR...
2017-11-19 19:05:00 94
转载 视图
StringBuilder sql = new StringBuilder(); sql.Append(@"if exists(select * from sys.objects where name='V_stu') drop view V_stu" ); //判断是否有视图 ...
2017-11-19 19:04:00 63
转载 分页的存储过程的用法
数据库的存储 alter PROCEDURE Proc_stu @PageIndex int, //页数 @PageSize int,//显示条数 @where nvarchar(50),//条件 @Tocount int output, //返回值 @totName nvarchar(50),//表名 @order nvarchar(50)//排序ASBE...
2017-11-19 19:00:00 97
转载 MVC架构
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;using WebApplication1.Models;using Model;using BLL;using NPOI.SS.UserModel; //引用NPOI.dllusing...
2017-11-14 21:01:00 99
转载 导出 导入 解压 压缩
前台 @{ Layout = null;}@model List<Model.stuModel><!DOCTYPE html> <html><head> <meta name="viewport" content="width=device-width" /> <title>Index</...
2017-11-14 14:14:00 94
转载 Com 调用word和excel
using Microsoft.Office.Interop.Word;using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using Syst...
2017-11-14 14:10:00 179
转载 Sockets使用
服务端 using System.Text;using System.Threading.Tasks;using System.Windows.Forms;using System.Threading;using System.Net.Sockets;using System.Net; namespace Client{ public partial class Form1 :...
2017-11-14 14:08:00 235
转载 水印文字 图片
@{ Layout = null;} <!DOCTYPE html> <html><head> <meta name="viewport" content="width=device-width" /> <title>Index</title> <script src="~/Scri...
2017-11-14 14:03:00 179
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人