摘要:
线程一 class LoginThread extends Thread{ public void StartThread() { Thread a = new Thread(this); a.start(); } @Override public void run() { tr... 阅读全文
摘要:
/**//获取当天日期 返回yyyy-mth-day 的格式* 对日期格式的转换* @param 无--返回当天* '+num' 返回当天的后几天* '-num' 返回当天的前num天* @returns yyyy-mth-day 的格式**/function getDate(){var param = arguments,date = new Date();if(param.length==0){return changeDateType(date);}else if(param.length==1){if(param[0].toString().indexO 阅读全文
摘要:
多线程简单使用ThreadStart threadStart1 = new ThreadStart(MethodName);方法的名称或者是delegate Thread thread1 = new Thread(threadStart1); thread1.Start(); 阅读全文
摘要:
2.js获取html页面传参function GetQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)","i"); var r = window.location.search.substr(1).match(reg); if (r!=null) return (r[2]); return null;}alert(GetQueryString("参数名1"));alert(GetQueryStri 阅读全文
摘要:
/// <summary> /// 将金额转换为汉字 /// </summary> public class Converter { public static string Convert(double money) { string strMoney = money.ToString(); string[] arraryMoney = strMoney.Split('.'); //整数部分 StringBuilder builerInt = new ... 阅读全文
摘要:
首先要把 EFCodeFirst类库工程里,添加EntityFramework的引用。/// <summary> /// FileInfo:实体类名要和数据表名的名称一样。 /// </summary> [Serializable] public partial class t_FileInfo { public t_FileInfo() {} #region Model private int _id; private string _fileulr; private DateTime _uploadtime; private int _infotype; priva 阅读全文
摘要:
/// <summary> /// 绑定实体,把控件装在Panel里 /// </summary> /// <param name="spanel"></param> /// <param name="entity"></param> public void BinToEntity(Panel spanel, object entity) { ArrayList al = new ArrayList(); List<PropertyInfo> PI2list = e... 阅读全文
摘要:
public delegate bool EqualsComparer<T>(T x, T y); /// <summary> /// 过滤重复数据 /// </summary> public class Comparint<T> : IEqualityComparer<T> { private EqualsComparer<T> ec; public Comparint() { } public Comparint(EqualsComparer<T> e)... 阅读全文
摘要:
string ReplaceChat(string EE) { string[] dd ={"◎", "■", "●", "№", "↑", "→", "↓" + "!", "@", "#", "$", "%", "^", "&", "*", "(", ")&q 阅读全文
摘要:
/// 上传文件 /// </summary> /// <param name="path">文件保存位置</param> /// <param name="oFile">文件</param> /// <returns></returns> public string UpLoadFile( System.Web.UI.WebControls.FileUpload fu) { bool Isftp = true; if (Isftp) { ... 阅读全文