上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 22 下一页
摘要: https://documentation.devexpress.com/#WPF/CustomDocument6129http://www.mindfiresolutions.com/DevExpress-GridView-How-to-Calculate-Customized-Summary-3... 阅读全文
posted @ 2014-05-16 16:27 quietwalk 阅读(1764) 评论(0) 推荐(0) 编辑
摘要: Window window = Utilities.GetVisualParent(this); if (window != null) { windo... 阅读全文
posted @ 2014-04-16 15:08 quietwalk 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 与框架中的视图等大的弹出窗口: View v = this.LayoutManager.OpenCustomDialogWithWidthAndHeight (this.GetResourceText("ResPackage"), ImageManager.GetImage16("medication_detail_management_16.png"), this.ActualWidth, this.ActualHeight, args); 阅读全文
posted @ 2014-03-11 19:54 quietwalk 阅读(183) 评论(0) 推荐(0) 编辑
摘要: ComboBox 阅读全文
posted @ 2014-03-05 08:41 quietwalk 阅读(482) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Windows;using System.Windows.Input;using System.Windows.Markup;using System.Windows.Media;using System.Windows.Threading;using Drawing = System.Drawing;using Forms = System.Windows.Forms;namespace WpfApplication1{ 阅读全文
posted @ 2014-02-24 14:36 quietwalk 阅读(7260) 评论(0) 推荐(0) 编辑
摘要: 绝对路径:img.Source=new BitmapImage(new Uri(@"d:\photo\backgrpunds\arch.jpb"));相对路径:img.Source=new BitmapImage(new Uri("images/winter.jpg", UriKind.Relative)); 阅读全文
posted @ 2014-02-20 16:24 quietwalk 阅读(693) 评论(0) 推荐(0) 编辑
摘要: Expender 在展开时,Header 不展示;不展开时,展示 Header ... 阅读全文
posted @ 2014-02-19 10:46 quietwalk 阅读(747) 评论(0) 推荐(0) 编辑
摘要: 汇总HL7 消息入出转消息ADTA01,A03,A04,A08免疫消息VXUV04电子处方消息NEWRX Messagev8.1 EDIFACT, v8.1 XML, v10.6 EDIFACT or 10.6 XML或NCPDP SCRIPT version 10.6, in either XML or EDI format检验消息ORUR01HL7 文档HL7 DocumentsHL7 CCD1) Inpatient/Ambulatory Summary2) Cancer registries (仅门诊)HL7 ASTM CCRC-CDAHITSP/C32 documentMU Stage 阅读全文
posted @ 2014-02-14 10:10 quietwalk 阅读(1635) 评论(0) 推荐(1) 编辑
摘要: //Get Registry item value of key, item name=name public string GetValue(RegistryKey rootKey, string path, string itemName) { if (string.IsNullOrEmpty(itemName) || rootKey == null || string.IsNullOrEmpty(path)) return null; try { ... 阅读全文
posted @ 2014-02-13 09:08 quietwalk 阅读(314) 评论(0) 推荐(0) 编辑
摘要: private ... 阅读全文
posted @ 2014-02-11 13:23 quietwalk 阅读(836) 评论(0) 推荐(0) 编辑
摘要: 方法一:使用代码 #region Command private void HelpCanExecute(object sender, CanExecuteRoutedEventArgs e) { e.CanExecute = true; } private void HelpExecuted(object sender, ExecutedRoutedEventArgs e) { System.Diagnostics.Process.Start("htt... 阅读全文
posted @ 2014-02-09 16:34 quietwalk 阅读(2114) 评论(0) 推荐(1) 编辑
摘要: ... 阅读全文
posted @ 2014-02-08 15:08 quietwalk 阅读(1252) 评论(1) 推荐(0) 编辑
摘要: OutAdmissionBookingEditor admissionBookingEditor = this.LayoutManager.OpenDialog ( this.GetResourceText("ResAdmissionBooking"), null, this.ActualWidth * 0.7, new object[] { "modification", res[0], this.functi... 阅读全文
posted @ 2014-02-08 12:45 quietwalk 阅读(441) 评论(0) 推荐(0) 编辑
摘要: private void txtSearchPatientName_KeyDown_1(object sender, KeyEventArgs e) { if (e.Key == Key.Enter) { string searchStr = txtSearchPatientName.EditValue as string; if (searchStr != null) { SearchPa... 阅读全文
posted @ 2014-02-08 09:13 quietwalk 阅读(3204) 评论(0) 推荐(0) 编辑
摘要: 属性触发器;数据触发器;事件触发器 阅读全文
posted @ 2014-02-07 22:01 quietwalk 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 从本地加载图片 public class OpenPictureCommand : Command { protected override void Executed(object sender, ExecutedRoutedEventArgs e) { System.Windows.Forms.OpenFileDialog ofd = new System.Windows.Forms.OpenFileDialog(); //EventBinder.BindControl... 阅读全文
posted @ 2014-01-29 15:02 quietwalk 阅读(2115) 评论(0) 推荐(0) 编辑
摘要: public void getMedicationAndEncounterInfo() throws Exception { String sql = getParameter("sql"); if (sql == null || sql.trim().length() > list = new MedicationDAO() .getMedicationAndEncounterInfo(sql); List medicationList = list != null && list.size() > 0 ?... 阅读全文
posted @ 2014-01-27 18:31 quietwalk 阅读(258) 评论(0) 推荐(0) 编辑
摘要: request 对象获取客户端提交的汉字字符时,会出现乱码问题,所以对含有汉字字符的信息必须进行特殊处理。将获取的字符串用 ISO-8859-1 进行编码,并将编码存放到一个字节数组中,再将这个数组转化这字符串对象即可。String str=request.getParameer("girl");byte b[]=str.getBytes("ISO-8859-1");str=new String(b); 阅读全文
posted @ 2014-01-23 20:54 quietwalk 阅读(478) 评论(0) 推荐(0) 编辑
摘要: style="table-layout: fixed;WORD-BREAK: break-all; WORD-WRAP: break-word"语法: word-break : normal | break-all | keep-all 参数: normal : 依照亚洲语言和非亚洲语言的文本规则,允许在字内换行 break-all : 该行为与亚洲语言的normal相同。也允许非亚洲语言文本行的任意字内断开。该值适合包含一些非亚洲文本的亚洲文本 keep-all : 与所有非亚洲语言的normal相同。对于中文,韩文,日文,不允许字断开。适合包含少量亚洲文本的非亚洲文本 阅读全文
posted @ 2014-01-23 20:51 quietwalk 阅读(577) 评论(0) 推荐(0) 编辑
摘要: public List searchTplReleaseById(TplRelease tr)throws Exception{ DBOperator dbo = getDBOperator(); try{ List tplReleaseList = new ArrayList(); String sqlWhere = "select b.* from "+ "(SELECT max(a.CREATE_TIME) AS CREATE_TIME , a.TPL_ID ... 阅读全文
posted @ 2014-01-23 20:49 quietwalk 阅读(450) 评论(0) 推荐(0) 编辑
摘要: public int searchProblemDistinctCount() throws Exception { DBOperator dbo = getDBOperator(); try { PatientproblemTableAdapter adapter = new PatientproblemTableAdapter(dbo); PreparedStatement st = dbo.prepareStatement("select distinct patientid from " ... 阅读全文
posted @ 2014-01-23 20:46 quietwalk 阅读(415) 评论(0) 推荐(0) 编辑
摘要: Java: public List searchAccountingdisclosuresBySql(String sqlStr)throws Exception { DBOperator dbo = getDBOperator(); try { AccountingdisclosureTableAdapter adapter = new AccountingdisclosureTableAdapter(dbo); return adapter.select(sqlStr); } catch (Exce... 阅读全文
posted @ 2014-01-23 20:45 quietwalk 阅读(411) 评论(0) 推荐(0) 编辑
摘要: UUID.randomUUID().toString() 阅读全文
posted @ 2014-01-23 20:43 quietwalk 阅读(1070) 评论(0) 推荐(0) 编辑
摘要: private static SimpleDateFormat sdf = new SimpleDateFormat( "yyyy-MM-dd HH:mm:ss.SSS");webBrowserURL.setCreatedate(sdf.format(new Date()));import java.util.Date; 阅读全文
posted @ 2014-01-23 20:42 quietwalk 阅读(3662) 评论(0) 推荐(0) 编辑
摘要: 正确写法1 bool bTemplatecontent2 = strtemplateContentInDB.Equals(strTemplateContentInDesignPanel, StringComparison.Ordinal); bTemplatecontent2 = true;正确写法2bool bEqual = String.Equals(strtemplateContentInDB, strTemplateContentInDesignPanel, StringComparison.Ordinal);bEqual = true; 阅读全文
posted @ 2014-01-23 20:41 quietwalk 阅读(1101) 评论(0) 推荐(0) 编辑
摘要: • 浮点数不能直接用算数操作符比较大小,如:==, !=, >=, <= operators and Equals 方法,要用以下形式:Math.Abs(x - y) < Single.Epsilon;Single.Epsilon 字段表示大于零的最小正 Single 值。此字段为常数。 Double.Epsilon 字段 表示大于零的最小正 Double 值。此字段为常数。 阅读全文
posted @ 2014-01-23 20:40 quietwalk 阅读(2050) 评论(0) 推荐(0) 编辑
摘要: bool Double.TryParse(string, out double)Int32.TryParse string strInt="37"; int iOut; if (Int32.TryParse(strInt, out iOut)) { int iRet = iOut; }double.TryParse string strNumber = "123"; double dRet; if (doub... 阅读全文
posted @ 2014-01-23 20:38 quietwalk 阅读(1379) 评论(0) 推荐(0) 编辑
摘要: 如果用foreach,会造成被遍历的集合更改后带来异常问题。方法一:用for循环可有效的解决这个问题。for(int i=0;i newlists=new List();foreach(T t in List){ lists.add(t);}foreach(T t in newlists){ List.Remove(t);} 阅读全文
posted @ 2014-01-23 20:37 quietwalk 阅读(1926) 评论(0) 推荐(0) 编辑
摘要: out: 也是通过引用传值,但不需初始化ref 参数 :迫使值参数通过引用传送对于ref传参,只要记住一点:对于值类型来说传的是值的地址,对于引用类型来说传的是地址的地址。对于引用类型,同样记住一点:引用类型本身的地址是一个值类型。直观的理解:引用类型对象本身不改变,只改变对象的属性时,我们在操作同一个对象;如果连对象本身都可能会改变,就用ref传引用类型的对象吧! 阅读全文
posted @ 2014-01-23 20:36 quietwalk 阅读(138) 评论(0) 推荐(0) 编辑
摘要: C#的一个新特征是也可以给类编写无参数的静态构造函数。这种构造函数只执行一次,而前面的构造函数是实例构造函数,只要创建类的对象,就会执行它。 1.编写静态构造函数的一个原因是,类有一些静态字段或属性,需要在第1次使用类之前,从外部源中初始化这些静态字段和属性。2..Net 运行库没有确保什么时候执行静态构造函数,所以不应把要求在某个特定时刻(例如,加载程序集时)执行的代码放在静态构造函数中。也不能预计不同类的静态构造函数按照什么顺序执行。但是,可以确保静态构造函数至多运行一次,即在代码引用类之前调用它。在唧中,通常在第一次调用类的任何成员之前执行静态构造函数。3.静态构造函数没有访问修饰符,其 阅读全文
posted @ 2014-01-23 20:34 quietwalk 阅读(1611) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 22 下一页