摘要: function setName(obj) { obj.name = "tgcoy"; obj = new Object(); obj.name = "tg";}var person = new Object();setName(person);alert(person.name);上述JS的结果是:tgcoy 阅读全文
posted @ 2012-05-31 20:57 @version 阅读(168) 评论(0) 推荐(0) 编辑
摘要: alter function GetDtoScheme(@dtoOldName varchar(50),@dtoNewName varchar(50),@dbName varchar(50))returns @scheme table( columnName nvarchar(128), newColumnName nvarchar(128))asbegin insert into @scheme select syscolumns.name,replace(syscolumns.name,@dtoOldName,@dtoNewName) FROM syscolumns... 阅读全文
posted @ 2012-05-26 20:16 @version 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 背景: 在一个数据表中,数据表的表名命名如下:AA_UserDefineArticleDTO_XXXX_Ext,数据表有很多字段命名为:UserDefineArticleDTO_YYYYY,如下图所示。 先需要对表的字段进行重命名,批量修改列名称。 编写下述sql procedure: D... 阅读全文
posted @ 2012-05-26 15:01 @version 阅读(413) 评论(0) 推荐(0) 编辑
摘要: 有时您可能需要将 TreeView 绑定到深度未知的数据源。 如果数据具有递归性质,则可能会发生这种情况;文件系统或公司的组织结构就属于这种数据,在文件系统中,文件夹还可以包含文件夹,在公司的组织结构中,员工又有自己的直属员工。 数据源必须有分层的对象模型。 ... 阅读全文
posted @ 2012-03-19 22:21 @version 阅读(278) 评论(0) 推荐(0) 编辑
摘要: View Code string full = Application.Current.Host.Source.AbsoluteUri; full = full.Substring(0, full.LastIndexOf('/')) + "/../WcfService/socketSeismicSurvey.svc"; sc = new ServiceReference.VertexServiceClient(); sc.Endpoint.Address = new System.ServiceModel.EndpointAddress(full); 阅读全文
posted @ 2012-03-14 19:01 @version 阅读(165) 评论(0) 推荐(0) 编辑