01 2013 档案
摘要:<%Dim arrMobile(1) arrMobile(1) = "613926666677" Call ean13(FomratEanCode(arrMobile(1)),2,100) '生成条码Function EAN13(code,w,h) Dim Guide,Dict,Lencode,Rencode,cStart,cMid,cEnd,Barcode,Lmethod Dim i Guide = array("AAAAAA","AABABB","AABBAB","ABAABB"
阅读全文
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head><meta content="text/html; charset=gb2312" http-equiv="Content-T
阅读全文
摘要:.x-grid-tpl { white-space: normal; }是的,加上这个就可以了。
阅读全文
摘要:--处理表重复记录(查询和删除)/******************************************************************************************************************************************************1、Num、Name相同的重复值记录,没有大小关系只保留一条2、Name相同,ID有大小关系时,保留大或小其中一个记录整理人:中国风(Roy)日期:2008.06.06*************************************************
阅读全文
摘要:--合并分拆表/******************************************************************************************************************************************************合并分拆表数据整理人:中国风(Roy)日期:2008.06.06**************************************************************************************************************
阅读全文
摘要:--> 生成测试数据: @tb --drop table tbcreate table Tb (商品id INT,商品名称 VARCHAR(4),客户名称 VARCHAR(4),日期 DATETIME,销量 INT)INSERT INTO tbSELECT 1,'a','张三','2009-1-1',1 UNION ALLSELECT 1,'a','李四','2009-1-5',2 UNION ALLSELECT 2,'b','王二','2009-1-5
阅读全文
摘要:--行列互转/******************************************************************************************************************************************************以学生成绩为例子,比较形象易懂整理人:中国风(Roy)日期:2008.06.06*******************************************************************************************************
阅读全文
摘要:下载地址另外,如果开着远程桌面连接,也会出现这种情况,因为默认会把本地的剪贴板内容带到远程,其中可能有什么不为人知的问题,导致了复制无效。。
阅读全文
摘要:PageContext.RegisterStartupScript(ActiveWindow.GetConfirmHidePostBackReference() + Alert.GetShowInTopReference("保存成功"));
阅读全文
摘要:PageContext.RegisterStartupScript(WinCreateType.GetShowReference(string.Format("/InspectType/Create.aspx?ClassID={0}",id),"创建新类型"));
阅读全文
摘要:/// <summary> ///CreateTable 的测试 ///</summary> [TestMethod()] public void CreateTableTest() { Role target = new Role(); //预期值 bool expected = false; //实测值 bool actual; actual = target.CreateT...
阅读全文
摘要:正常代码 Button1.Icon = Icon.Home特殊情况:private Icon GetIcon(strig icon){ return (Icon)Enum.Parse(typeof(Icon), icon);}Button1.Icon = GetIcon("Home");
阅读全文
摘要:public static class StringExtensions { /// <summary> /// 转换为Int32 /// </summary> /// <param name="num"></param> /// <returns></returns> public static int ToInt32(this string num) { int i; return (!Int32.TryParse(num, out i...
阅读全文
摘要:public static class DateTimeExtensions { /// <summary> /// 获取格式化日期,默认为 yyyy-mm-dd h:m:s /// yyyy:数字年份,m/mm数字月,d/dd数字日 /// YYYY:汉字年份,如二〇一二,M/MM汉字月,D/DD汉字日 /// </summary> /// <param name="dt">要处理的日期时间</param> /// <param name="sFormat">格式化字符串,以ymd...
阅读全文
摘要:public static class Int32Extensions { public static string ToChineseMonth(int num) { if (num == 0 || num > 12) throw new Exception("月份错误"); string[] arr = { "〇", "一", "二", "三", "四", "五", "六", "七", "八&qu
阅读全文
摘要:public static class DataTableExtensions { public static List<T> ToList<T>(this DataTable dt) where T : new() { var list = new List<T>(); if (dt == null) return list; var len = dt.Rows.Count; for (var i = 0; i < len; i++) { ...
阅读全文
摘要:public class FileHelper { #region 文件名/扩展名/路径名 /// <summary> /// 获取文件名 /// </summary> /// <param name="filepath"></param> /// <returns></returns> public static string GetFileName(string filepath) { return File.Exists(filepath) ...
阅读全文
摘要:1、C# 监控摄像头数据流的存储。(未完成)通过TCP获取媒体数据并存储为文件文件按时间存储使用缓存存储文件2、C# 网络通讯框架(未完成)参考fastCSharp3、HTML5框架(未完成)4、SSAS(未完成)http://bbs.csdn.net/topics/3900351095、伪造HTT...
阅读全文
posted @ 2013-01-09 11:47
黑冰.org
摘要:Private Sub Command1_Click() Dim H, x1, x2, m As Double x1 = Val(Text1.Text) x2 = Val(Text2.Text) If f(x1) * f(x2) < 0 Then Do m = (x1 + x2) / 2 If f(m) = 0 Then x1 = m x2 = m End If If f(x1) * f(m) > 0 Then...
阅读全文
摘要:/// <summary> /// 统一ParameterExpression /// </summary> internal class ParameterReplacer : ExpressionVisitor { public ParameterReplacer(ParameterExpression paramExpr) { ParameterExpression = paramExpr; } public ParameterExpression ParameterExpres...
阅读全文
摘要:/// <summary> /// 反转字符顺序 /// </summary> /// <param name="str"></param> /// <returns></returns> public static string EncodePassword(string str) { return str.Aggregate("", (current, s) => s + current); }
阅读全文
摘要:const string str = "01001000 00110100 01110011 01001001 01000001 01000011 01001010 01001011 " + "01101110 01101100 01000001 01000001 01000001 00101011 00110001 01011010 " + "01000010 00110001 01010010 01010100 01010011 00110111 ...
阅读全文
摘要:public class TestClass { public static void TestIt() { var ds = DateTime.Now; var list = new List<MA>(); list.Add(new MA { ma001 = "A", ma002 = "1" }); list.Add(new MA { ma001 = "A", ma002 = "2" }); list.Add(new MA { ma001 =...
阅读全文
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta content="text/html; charset=utf-8" http-equiv="Content-Typ
阅读全文
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta content="zh-cn" http-equiv="Content-Language" />&l
阅读全文
摘要:通常,我们要在线程中更新UI的话,都会采用Invoke private void button1_Click(object sender, EventArgs e){ Thread asd = new Thread(new ThreadStart(DoProgressEnd)); asd.Start();} private void DoProgressEnd() { Invoke(new Action(() => { button1.Text = "准备就绪"; ...
阅读全文
摘要:static void Main(string[] args) { /* * 命题:计算 加 减 乘 除,不含括号 */ var str = "8*8*8-100*2"; //计算乘法 str = Calc(str, '*'); str = Calc(str, '/'); str = Calc(str, '+'); str = Calc(str, '-'); ...
阅读全文

浙公网安备 33010602011771号