上一页 1 2 3 4 5 6 7 8 ··· 10 下一页
摘要: 今天是农历2011-2-29 转成正常的DateTime格式 报错Arithmetic overflow error converting expression to data type datetime因为DateTime 2011-2-29不是正确的日期格式 阅读全文
posted @ 2011-04-02 11:48 alex hu 阅读(300) 评论(1) 推荐(0) 编辑
摘要: 数据源:View Code var areaInfo = new Array();areaInfo[0] = new Array();areaInfo[0][0]="1";areaInfo[0][1]="Beijing";areaInfo[0][2]="0";areaInfo[0][3]="0";areaInfo[1] = new Array();areaInfo[1][0]="2";areaInfo[1][1]="Shanghai";areaInfo[1][2]=" 阅读全文
posted @ 2011-03-29 00:21 alex hu 阅读(444) 评论(0) 推荐(0) 编辑
摘要: 前不久公司有个项目是在触摸屏上做产品展示,大家都觉得Iphone或者Android上的滑屏效果不错,我今天也顺便做了一个DEMO,滑屏效果的,预览图如下 演示地址:http://www.chuangyiwu.com/demo/jquery/lyhuctouchslider/下载地址:lyhuctouchslider.rar欢迎交流 阅读全文
posted @ 2011-03-25 15:04 alex hu 阅读(3501) 评论(16) 推荐(3) 编辑
摘要: 前自己两天写了一个Jquery Slider插件,效果图如下: 支持IE 6.0以上 silderShowAdContentTitle_bg.gif silderShowAdContentTitle_overbg.png<!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 阅读全文
posted @ 2011-03-24 12:06 alex hu 阅读(587) 评论(3) 推荐(0) 编辑
摘要: 从几天公司从中正生物采购了一些指纹设备,要用到自己的系统里面,指纹供应商提供的DLL是C++写的,我用C# 重新写了一下using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Runtime.InteropServices;using System.IO;using System.Drawing;using System.Drawing.Imaging;using System.ComponentModel;namespace EC.Shop.WindowsFo 阅读全文
posted @ 2011-03-18 16:11 alex hu 阅读(803) 评论(3) 推荐(0) 编辑
摘要: 这段时间公司有个项目需要用到指纹识别,指纹识别硬件这个提供了一个DLL,DLL有个API 叫 mxUsbGetImage, 当手指头读取指纹的时候,实际上将指纹机的得到的 mxUsgGetImage 返回的byte类型,将byte[] 转成 image 有多种方法,下面是我昨天试过的两种(从网上COPY过来的)private unsafe Bitmap BytesToBmp(byte[] bmpBytes, Size imageSize){Bitmap bmp = new Bitmap(imageSize.Width, imageSize.Height);BitmapData bDa. 阅读全文
posted @ 2011-03-16 10:13 alex hu 阅读(2167) 评论(0) 推荐(0) 编辑
摘要: PHPCMS V9加载顺序PHPCMS V9和V8相比,总体思路方向是一样,不同的是V9把OOP和MVC结合得更加完美。打开根目录下面的index.php 三行代码,相比V8的 index.php来说 更加清楚,phpcms下面的base.php文件,是一个基础类,里面的功能类似于V8的common.inc.php不同的是他把加载系统类于,应用类,数据模型,系统函数,应用函数,配置文件全部常用功能都可以通过pc_base直接调用出来:如 pc_base::load_sys_func('global')是加载系统的函数库,include文件 libs\functions\glob 阅读全文
posted @ 2011-02-10 21:43 alex hu 阅读(475) 评论(0) 推荐(0) 编辑
摘要: 应总公司要求,今年年会不再抓蛋球(去年做了一个FLASH版的没有用上),用电脑抽奖方式,任务分到了我手上,所以就写了一段C# 年会抽奖程序  功能,支持1,2,3,4,5等奖,可以通XML配置奖项名额,和参加抽奖的人员,    分为两个用户控件,EmployeeControl,EmployeeControl  两个窗口MainForm,WinListForm,  效果如图:    源代码请自己下载:  http://files.cnblogs.com/hubj/2011%e5%b9%b4%e4%bc%9a%e6%8a%bd%e5%a5%96.rar 阅读全文
posted @ 2011-01-28 11:08 alex hu 阅读(2159) 评论(5) 推荐(1) 编辑
摘要: 错误应用程序名称: iexplore.exe,版本: 8.0.7600.16700,时间戳: 0x4cd23213错误模块名称: 4348140121.dat_unloaded,版本: 0.0.0.0,时间戳: 0x4d392c68异常代码: 0xc0000005错误偏移量: 0x0392a08b错误进程 ID: 0x13ac错误应用程序启动时间: 0x01cbbb84cce7b8bf错误应用程序路径: C:\Program Files (x86)\Internet Explorer\iexplore.exe错误模块路径: 4348140121.dat报告 ID: 0c73055b-2778- 阅读全文
posted @ 2011-01-24 13:16 alex hu 阅读(737) 评论(0) 推荐(0) 编辑
摘要: 因为我使用了泛型数据合同,使用的名字又是同一个,所以就会报个错误,System.InvalidOperationException: 在调用 WSDL 导出扩展过程中引发异常: System.ServiceModel.Description.DataContractSerializerOperationBehavior协定: http://tempuri.org/:IRetriever ---- System.InvalidOperationException: 无法将类型“EC.DataModel.Paging`1[[EC.DataModel.ProductProperty, EC.Dat 阅读全文
posted @ 2011-01-17 15:18 alex hu 阅读(1111) 评论(0) 推荐(0) 编辑
摘要: 用WCF同步数据,分页SIZE是100,提示这个,需要修改app.config或web.config文件属性maxReceivedMessageSize,建议还是PageSize小一点,多运行几次 阅读全文
posted @ 2011-01-13 14:56 alex hu 阅读(922) 评论(0) 推荐(0) 编辑
摘要: 最新在做Windows服务的时候,本想做的一个功能就是定时向远程服务器异步下载数据,所以先放了一个Timer上去,结果Timer就不运行,后来改用System.Timers.Timer就可以了来源:http://kyzhy.blog.163.com/blog/static/4553908200832242753845/ 阅读全文
posted @ 2011-01-13 10:21 alex hu 阅读(353) 评论(0) 推荐(0) 编辑
摘要: 最新WCF客户端通过获得WCF服务端信息的时候,通过WCFTESTCLIENT老是提示我:WCF测试客户端不支持此操作,因为操作使用类型XXXX  实际上我提使用的泛型数据契约, 原因就在于里面有个DataMember是DataTable,所以WCFTESTCLIENT不支持,就会提示这个。 阅读全文
posted @ 2011-01-11 23:52 alex hu 阅读(3319) 评论(2) 推荐(0) 编辑
摘要: order by convert (field using binary) 阅读全文
posted @ 2011-01-05 22:35 alex hu 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 今天在做.net MSMQ的时候,CODE老是提示我“事务使用无效” ,找了找原因,想起来了,原来是创建队列的时候,没有勾上事务性。 阅读全文
posted @ 2010-12-30 11:02 alex hu 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 原来PHPCMS的支付和定单模块是这样的,必需预存钱到网站,然后根据网站余额来支付,最近公司觉得这个环境是多的,没有必要让用户事先存钱进来,所以需要小改动一下,在pay_user_account增加一个orderid 字段  然后pay的responsd.php中 if ($result){$r=get_order($out_trade_no); showmessage('支付成功',$PHPCMS['siteurl'].'order/index.php?dosubmit=1&action=pay&orderid='.$r[orderid]);} 阅读全文
posted @ 2010-12-24 15:54 alex hu 阅读(446) 评论(0) 推荐(1) 编辑
摘要:   打开image.class.php  Line 28:  替换 if($autocut) 里面的语句为 上面的,(居然不能在IE9中插入到这里,奇怪了) 阅读全文
posted @ 2010-12-14 12:59 alex hu 阅读(677) 评论(0) 推荐(0) 编辑
摘要: 提示:C:\Documents and Settings\Administrator\Application Data\Tencent\QQ\STemp\~TXQQ2052~0\QQ2009 Preview.msi 找不到 ,无法卸载  解决方案:重新安装一下2009,在点击同意这后,打开C:\Documents and Settings\Administrator\Application Dat... 阅读全文
posted @ 2010-11-27 22:31 alex hu 阅读(295) 评论(0) 推荐(0) 编辑
摘要: index.php -> template($mod, 'index') ->判断tpl -> template_compile -> template_parse -> get_tag -> tag 阅读全文
posted @ 2010-11-02 23:06 alex hu 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 谈到phpcms和zen cart这两套开源系统,虽然功能定位不同,分析其架构 phpcms要优于zen-cart ,phpcms是一套标准MVC设计模式,尽可能的将视图和代码分开,页面通过统一入口进行加载,当然zencart 也是统一入口,他们二者区别在于 phpcms不管在任何目录下面都会先引用根目录文件include夹common.inc.php,然后走得标准的一条加载顺序路线,根据需要来初... 阅读全文
posted @ 2010-10-28 12:04 alex hu 阅读(521) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 10 下一页