摘要: 表结构:People表,PeopleDetail表1.简单游标declare m_cursor cursor scroll for select Address,PeopleId from PeopleDetailopen m_cursordeclare @Address varchar(5... 阅读全文
posted @ 2014-06-21 15:30 Wythe 阅读(21213) 评论(0) 推荐(0) 编辑
摘要: 1.通过对比保存的Rtf 发现 少了\ul0 结束符号将其中{\ul \'8e\'a9\},替换为{\ul \'8e\'a9\ul0}2.正则查找下划线文字,添加结束符 /// <summary> /// 匹配Rtf中下划线 如:将其中{\ul \'8e\'a9\},替换为{\ul \'8e\'a9\ul0} /// (应为FlowDocument转换 带有下划线的文字时丢失下划线结束符ul0) /// </summary> /// <param name="rtf">< 阅读全文
posted @ 2012-08-31 14:44 Wythe 阅读(1217) 评论(0) 推荐(0) 编辑
摘要: 1,需求 对象属性发生变化 更新UI2, 方法: 在对象中定义事件,在属性中调用事件 // 属性 public string EmrTitle { get { return _category.EmrTitle.Text; } set { if (_category.EmrTitle.Text != value) { // 出发事件 if (OnEmrTitleChanged ... 阅读全文
posted @ 2012-06-20 00:14 Wythe 阅读(3456) 评论(0) 推荐(0) 编辑
摘要: 刷机教程 http://wenku.baidu.com/view/4ab6238d680203d8ce2f2450.html刷机包 联系本人 发送708895310 阅读全文
posted @ 2011-12-26 17:01 Wythe 阅读(158) 评论(0) 推荐(0) 编辑
摘要: public class MessageUtil { /// <summary> /// 显示一般的提示信息 /// </summary> /// <param name="message">提示信息</param> public static DialogResult ShowTips(string message) { return MessageBox.Show(message, "提示信息",MessageBoxButtons.OK, MessageBoxIcon.Info... 阅读全文
posted @ 2011-11-23 08:53 Wythe 阅读(515) 评论(0) 推荐(1) 编辑
摘要: 1,指定的word模版2,生成word类添加com Microsoft word 11.0 Object Library 引用using System;using System.Collections.Generic;using System.Data;using System.Windows.Forms;using Word = Microsoft.Office.Interop.Word;using System.IO;namespace Headfree.DefUI{ public class WordUtility { private object tempFi... 阅读全文
posted @ 2011-11-22 14:45 Wythe 阅读(13289) 评论(4) 推荐(2) 编辑
摘要: 统计中常用的日期函数:select @StatDate=DATEADD(dd,DATEDIFF(dd,0,getdate()),0)--今天凌晨select dateadd(dd,-1,@StatDate)--昨天凌晨DATEADD(mm,DATEDIFF(mm,0,getdate())-1,0)--上月的第一天DATEADD(mm,DATEDIFF(mm,0,getdate()),0)--本月的第一天if(DatePart(w,getdate())=1)--当前是星期天begin select DATEADD(wk,DATEDIFF(wk,0,getdate())-2,0)--上上周的第一天 阅读全文
posted @ 2011-09-22 11:26 Wythe 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 解决方法://checkMethod()是自己写的js验证方法OnClientClick(Page_ClientValidate();if(Page_IsValid){return checkMethod();}) 阅读全文
posted @ 2011-08-09 11:43 Wythe 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 图均来自网络,如下,这几幅图对理解控件的继承关系很有帮助:DispatcherObject: WPF/Silverlight 中有许多类继承自DispatcherObject,DispatcherObject提供了处理同步和并发的基本构造。DependencyObject :构建WPF/Silverlight的一个主要思想是属性优先于方法和事件。WPF/Silverlight 提供了丰富的属性系统,其核心是DependencyObject。Visual:该类的主要作用是为WPF/Silverlight 提供2D呈现支持,主要包括输出显示,坐标转换,区域剪切等。UIElement:该类继承自Vi 阅读全文
posted @ 2011-08-01 22:43 Wythe 阅读(969) 评论(0) 推荐(0) 编辑
摘要: 1,角色权限2. <link href="../Scripts/jsTree/themes/default/style.css" rel="stylesheet" type="text/css" /> <script src="../Scripts/jsTree/jquery-1.6.min.js" type="text/javascript"></script> <script src="../Scripts/jsTree/jquery.js 阅读全文
posted @ 2011-07-28 09:11 Wythe 阅读(16557) 评论(4) 推荐(0) 编辑