原创 wdinster

wo de sheng huo@Service("entityDao")public class AbstractHibernateDao<T> ex

原创 my de sheng ho

/** * 根據ID刪除記錄 * * @param id */ public void removeByIdForAnnotation(Se

原创 ext js 鼠標事件

listeners:{ 'blur' : function(){

原创 SQL判斷數據庫、表、存儲過程、視圖、函數是否存在

--判斷數據庫是否存在 if exists(select * from master..sysdatabases where name=N'庫名')

原创 annotation解釋

1 annotation是一種特殊的interface(@interface),成員用函數表示,使用時用成員=值列表表示,值可爲String,prim

原创 java讀取資源文件

Properties props = new Properties();props.load(new FileInputStream("db.prop

原创 annotation

package com.gelc.annotation.demo.reflect; import java.lang.annotation.Ann

原创 Dao

/** * 取得Entity的Criteria. */ public Criteria getEntityCriteria() { return

原创 ext store

var mpCsncm = new Ext.grid.ColumnModel([ {header: '節點名稱',width: 150,sort

原创 js 中的map

Array.prototype.remove = function(s) { for (var i = 0; i < this.length; i++

原创 ext js動態加載checkbox的值及取值方法

DoctorWorkStation_CommonDoctorAdvice.CreateYZCheckBoxWin = function(store,

原创 複選框的ext js

function getComboBoxMpCsnList(){ var comboBoxCsnList= new Ext.form.ComboBox

原创 製作Java Applet簽名驗證

1.keytool -genkey -dname "cn=BeanSoft Studio, ou=Java Software, o=BeanSoft Studio, c=China" -alias bean

原创 list的排序方法

1.實現Comparator接口再實現方法public class ComparatorAnswer implements Comparator{ /** * 排序方法 */ public int c

原创 Java中常用設計模式總結

1、工廠模式:客戶類和工廠類分開。消費者任何時候需要某種產品,只需向工廠請求即可。消費者無須修改就可以接納新產品。缺點是當產品修改時,工廠類也要做相應的修改。如:如何創建及如何向客戶端提供。   2、建造