摘要: 1、实体类与XML相互转换 将实体类转换成XML需要使用XmlSerializer类的Serialize方法,将实体类序列化。 把XML转换成相应的实体类,需要使用到XmlSerializer类的Deserialize方法,将XML进行反序列化。 创建XML序列化公共处理类(XmlSerialize 阅读全文
posted @ 2020-04-14 22:17 .net&new 阅读(772) 评论(0) 推荐(0) 编辑
摘要: #region 判断excel表内是否有重复的体检卡卡密 //判断excel表内是否有重复的体检卡卡密-2020/3/12-update string tagCode = null; if (IsRepeatCard(strAllDeviceCode.Trim().Trim(',').Split(' 阅读全文
posted @ 2020-04-14 22:08 .net&new 阅读(645) 评论(0) 推荐(0) 编辑
摘要: //add-wgh-2020/3/25 function addClickHandler(content,marke){ marke.addEventListener("click",function(e){ openInfo(content,e)} ); } var opts = { width 阅读全文
posted @ 2020-04-14 22:07 .net&new 阅读(296) 评论(0) 推荐(0) 编辑
摘要: String[] str = {"aa","kser","bdf","ope","aa"}; String[] str2 = str.Distinct().ToArray(); 阅读全文
posted @ 2020-04-14 22:03 .net&new 阅读(169) 评论(0) 推荐(0) 编辑
摘要: public class Staff { public string Name { get; set; } public int Age { get; set; } public string Gender { get; set; } public string DepartmentName { g 阅读全文
posted @ 2020-04-14 21:56 .net&new 阅读(559) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 获取时间戳 /// </summary> /// <returns></returns> public static string GetTimeStamp() { TimeSpan ts = DateTime.UtcNow - new DateTime(1970 阅读全文
posted @ 2020-04-14 21:49 .net&new 阅读(941) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace Elight.Infrastructure{ publi 阅读全文
posted @ 2020-04-14 21:45 .net&new 阅读(2830) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Net;using System.Net.NetworkInformation;using System.Net.Sockets;using Sy 阅读全文
posted @ 2020-04-14 21:44 .net&new 阅读(935) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections;using System.Collections.Generic;using System.IO;using System.Net;using System.Net.Http;using System.Net.Securit 阅读全文
posted @ 2020-04-14 21:43 .net&new 阅读(505) 评论(0) 推荐(0) 编辑
摘要: using System;using System.IO;using System.Text;using System.Security.Cryptography; namespace Elight.Infrastructure{ /// <summary> /// 字符串加密解密方法扩展类。 // 阅读全文
posted @ 2020-04-14 21:41 .net&new 阅读(266) 评论(0) 推荐(0) 编辑
摘要: CREATE PROCEDURE TransTest(in p1 VARCHAR(20),in p2 VARCHAR(50)) BEGIN declare err int default 0; /*如果出现sql异常,则将err设置为1后继续执行后面的操作 */ declare continue h 阅读全文
posted @ 2020-04-14 21:37 .net&new 阅读(156) 评论(0) 推荐(0) 编辑
摘要: /*--名称:MYSQL版查询分页存储过程 by peace 2013-8-14--输入参数:@fields -- 要查询的字段用逗号隔开--输入参数:@tables -- 要查询的表--输入参数:@where -- 查询条件--输入参数:@orderby -- 排序字段--输出参数:@page - 阅读全文
posted @ 2020-04-14 21:36 .net&new 阅读(124) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 执行多条SQL语句,实现数据库事务。 /// </summary> /// <param name="SQLStringList">多条SQL语句</param> public static int ExecuteSqlTran(List<String> SQLS 阅读全文
posted @ 2020-04-14 21:29 .net&new 阅读(661) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Demo1 { class Program { 阅读全文
posted @ 2020-04-14 21:26 .net&new 阅读(656) 评论(0) 推荐(0) 编辑
摘要: function checkPhone(){ var phone = document.getElementById('phone').value; if(!(/^1(3|4|5|6|7|8|9)\d{9}$/.test(phone))){ alert("手机号码有误,请重填"); return f 阅读全文
posted @ 2020-04-14 21:24 .net&new 阅读(8212) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls; namespace Person 阅读全文
posted @ 2020-04-14 21:23 .net&new 阅读(143) 评论(0) 推荐(0) 编辑