摘要: //链接通讯录数据库 ContentResolver content = getContentResolver(); Cursor cursor = content.query(Contacts.People.CONTENT_URI, null, null, null, null); //保存用户名信息 String[] nameList = new String[cursor.getCount()]; //遍历通讯录 for(int i=0; i<cursor.getCount() ;i++) { cursor.moveToPosition(i); //获取人名 nameList[i] 阅读全文
posted @ 2012-10-06 00:35 承志软件.张 阅读(432) 评论(1) 推荐(0) 编辑
摘要: 在EditText控件前面的任意一个控件,比如 TextView 控件,设置两个属性 Focusable = true ,FocusableInTouchMode=true 代表这个控件取得焦点,那么默认输入法就不会跳出来了,如下所示: 1 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 2 xmlns:tools="http://schemas.android.com/tools" 3 android:id="@+id/ScrollView1& 阅读全文
posted @ 2012-10-04 21:27 承志软件.张 阅读(387) 评论(1) 推荐(0) 编辑
摘要: 换新手机号了18681331667 http://www.qmyb.net 专业研发:医院管理系统 居民健康档案档案系统 出生证明管理系统 OA系统 提供专业化产品定制服务,软件项目外包服务,如有需求请联系我,谢谢 阅读全文
posted @ 2012-10-01 18:15 承志软件.张 阅读(747) 评论(3) 推荐(0) 编辑
摘要: ExtASP.NET开发中日历或下拉列表控件被Grid++Report插件挡住的解决办法:只需要在末尾追加下面的几句话就行了:<script type="text/javascript">//防止Ext控件被 ActiveX挡住Ext.useShims = true;</script> 阅读全文
posted @ 2012-09-24 08:47 承志软件.张 阅读(171) 评论(1) 推荐(1) 编辑
摘要: SET QUOTED_IDENTIFIER ON GOSET ANSI_NULLS OFF GOcreate procedure sp_password @old sysname = NULL, -- the old (current) password @new sysname, -- the new password @loginame sysname = NULL -- user to change password onas -- SETUP RUNTIME OPTIONS / DECLARE VARIABLES --set nocount on declare @self int s 阅读全文
posted @ 2012-09-24 08:36 承志软件.张 阅读(737) 评论(0) 推荐(0) 编辑
摘要: SET QUOTED_IDENTIFIER ON GOSET ANSI_NULLS ON GO/*--生成交叉表的简单通用存储过程 根据指定的表名,纵横字段,统计字段,自动生成交叉表 并可根据需要生成纵横两个方向的合计 注意,横向字段数目如果大于纵向字段数目,将自动交换纵横字段 如果不要此功能,则去掉交换处理部分 --邹建 204.06--*/ /*--调用示例 exec p_qry 'syscolumns','id','colid','colid','name like ''s%'' 阅读全文
posted @ 2012-09-24 08:35 承志软件.张 阅读(463) 评论(0) 推荐(0) 编辑
摘要: EXEC sp_attach_single_file_db 'dbname','绝对路径\dbname.mdf' 阅读全文
posted @ 2012-09-24 08:34 承志软件.张 阅读(209) 评论(0) 推荐(0) 编辑
摘要: select filename from master.dbo.sysdatabases where lower(right(filename,3)) = 'mdf' 阅读全文
posted @ 2012-09-24 08:34 承志软件.张 阅读(204) 评论(0) 推荐(0) 编辑
摘要: SELECT COLLATIONPROPERTY( 'chinese_prc_ci_as', 'codepage' )--查看代码页如果是936代表gbk 20936 代表gb2312 阅读全文
posted @ 2012-09-24 08:32 承志软件.张 阅读(1227) 评论(0) 推荐(0) 编辑
摘要: use jktj_netright('00000'+cast(@count as varchar),5)--'00000'的个数为right函数的最后参数,例如这里是5,所以有5个0--@count就是被格式化的正整数--同时,给出个有趣的测试办法,在查询分析里运行就能看到结果declare @count intset @count = 0while (@count < 1000)beginprint right('0000000000'+cast(@count as varchar),10)set @count = @count +1en 阅读全文
posted @ 2012-09-24 08:32 承志软件.张 阅读(448) 评论(0) 推荐(0) 编辑