摘要: 安装Xampp和Zend Studio就不介绍了,直奔主题。第一步:配置Xdebug环境打开Xampp安装目录的php\php.ini配置文件找到[XDebug]项,开启以下配置;扩展dll引用路径(安装好Xampp后php\ext目录下就已有了php_xdebug.dll)zend_extension = "D:\xampp\php\ext\php_xdebug.dll";创建文件的概要输出目录xdebug.profiler_enable = 1;设定效能监测信息输出文件的路径xdebug.profiler_output_dir = "D:\xampp\tmp& 阅读全文
posted @ 2012-10-23 13:45 Lyle Blog 阅读(2554) 评论(0) 推荐(1) 编辑
摘要: View Code 1 [DllImport("User32.DLL")] 2 public static extern int SendMessage(IntPtr hWnd, uint Msg, int wParam, int lParam); 3 [DllImport("User32.DLL")] 4 public static extern bool ReleaseCapture(); 5 public const uint WM_SYSCOMMAND = 0x0112; 6 public... 阅读全文
posted @ 2012-09-27 17:33 Lyle Blog 阅读(299) 评论(1) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1- transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf- 阅读全文
posted @ 2011-11-02 15:57 Lyle Blog 阅读(1782) 评论(2) 推荐(0) 编辑
摘要: 首先声明一个打印机状态枚举: public enum PrinterStatus { [Description("其他状态")] Other = 1, [Description("未知")] Unknown = 2, [Description("空闲")] Idle = 3, [Description("正在打印")] Printing = 4, [Description("预热")] Warmup = 5, [Description("停止打印")] Stopped = 6 阅读全文
posted @ 2011-10-11 15:47 Lyle Blog 阅读(2374) 评论(1) 推荐(0) 编辑
摘要: 下面有个简单的方法可以轻松的获取到子窗体中的数据 父窗体中代码: childForm cf = new childFrom(); DialogResult res = cf.ShowDialog();//这里使用模式对话框可以获取到子窗体中的回应消息 if(res == DialogResult.OK) { MessageBox.Show("子窗体中输入的用户名为:"+cf.userName); } 子窗体中代码: public partial classchildFrom: Form { public s... 阅读全文
posted @ 2011-10-11 15:13 Lyle Blog 阅读(1530) 评论(0) 推荐(0) 编辑
摘要: 实例: public IList<Print_ExpressSetout> Test(int fastId, IList<string> expressNo) { var q = (from p in db.Print_ExpressSetout where p.expressType == fastId && expressNo.ToArray<string>().Contains(p.expressNo) select p); return q.ToList<Print_ExpressSetout>(); }解析出的sql语句 阅读全文
posted @ 2011-10-08 11:39 Lyle Blog 阅读(747) 评论(0) 推荐(0) 编辑
摘要: 在多线程中,我们经常要在工作线程中去更新界面显示,而在多线程中直接调用界面控件的方法时会报错的,Invoke 和 BeginInvoke 就是为了解决这个问题而出现的,使你在多线程中安全的更新界面显示。正确的做法是将工作线程中涉及更新界面的代码封装为一个方法,通过 Invoke 或者 BeginInvoke 去调用,两者的区别就是一个导致工作线程等待,而另外一个则不会。而所谓的“一面响应操作,一面添加节点”永远只能是相对的,使 UI 线程的负担不至于太大而已,因为界面的正确更新始终要通过 UI 线程去做,我们要做的事情是在工作线程中包揽大部分的运算,而将对纯粹的界面更新放到 UI 线程中去做, 阅读全文
posted @ 2011-09-30 14:03 Lyle Blog 阅读(588) 评论(0) 推荐(0) 编辑
摘要: 以前写过但是给忘了,这次又碰上了,还是做个笔记吧public void SettleOrderToExcel(HttpResponse resp, string fileName, string columnNames, IList<MixedLot_SettleOrder> mSOrder) { //设置编码和附件格式 resp.AddHeader("content-disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode(fileName, System 阅读全文
posted @ 2011-08-09 15:26 Lyle Blog 阅读(427) 评论(0) 推荐(0) 编辑
摘要: CREATE PROCEDURE [dbo].[P_DOCGetTest]--20,2,0@orderCellName NVARCHAR(50),@sortOrder NVARCHAR(50),@pageSize INT,@pageIndex INT,@RowCount INT OUTPUTASBEGIN DECLARE @SQL NVARCHAR(MAX) DECLARE @SQL_COUNT NVARCHAR(MAX) DECLARE @BEGIN INT DECLARE @END INT SET @BEGIN = CAST(((@PageIndex - 1) * @PageSize + 阅读全文
posted @ 2011-05-24 10:36 Lyle Blog 阅读(422) 评论(3) 推荐(0) 编辑
摘要: private string SwitchToJson<T>(IList<T> li) where T : class { if (li.Count <= 0) return ""; Type tp = typeof(T); BindingFlags bf = BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Static;//反射标识 PropertyInfo[] proInfo = tp.GetProperties(bf); 阅读全文
posted @ 2011-03-14 20:20 Lyle Blog 阅读(1914) 评论(2) 推荐(0) 编辑