2011年4月1日
摘要: Application.Configuration.DynamicColumnModels = { SimplePersonSearch: [ { header:'ID', id:'ID', dataIndex:'ID', hidden:true, width:5, sortable:false }, { header:'LastName', dataIndex:'LastName', hidden:false, width:80, sortable:false }, { header:'FirstName 阅读全文
posted @ 2011-04-01 21:53 鱼不爱水 阅读(250) 评论(0) 推荐(0)
  2011年3月31日
摘要: 获得所有user以及相关personfn_User_GetAllUserPerson with userSectorCte(userid, sectorid) as ( select u.id, us.SectorId from [User] u inner join User_Sector us on us.UserId = u.id where u.Validity = 1 and u.Level = @UserLevel UNION ALL SELECT userid,s.Id FROM Sector s INNER JOIN userSectorCte us ON us.sector 阅读全文
posted @ 2011-03-31 17:09 鱼不爱水 阅读(115) 评论(0) 推荐(0)
  2011年3月28日
摘要: <xsl:element name="a"> <xsl:attribute name="href"> javascript:clickRow(''<xsl:value-of select="../childName"/>'') </xsl:attribute> <xsl:element name="img"> <xsl:attribute name="src"> images/euristhe 阅读全文
posted @ 2011-03-28 16:10 鱼不爱水 阅读(312) 评论(0) 推荐(0)
摘要: //firefox ,如果是ie 用block 替代function doToggleRows(idTrToDisplay) { var trID = document.getElementById(idTrToDisplay); var img = document.getElementById(parseInt(idTrToDisplay) + 90000); if(trID.style.display=="none") { trID.style.display ="table-row"; img.src = "images/index.j 阅读全文
posted @ 2011-03-28 16:08 鱼不爱水 阅读(870) 评论(0) 推荐(0)
  2011年3月10日
摘要: hbm.xml mapping [function] <!-- fnGetListOfChildSector --> <sql-query name="fnSalesGetRegroupmentsByParents" resultset-ref="SalesRegroupments"> <return class="Application.Core.BusinessObjects.Sales.SalesRegroupments" /> <![CDATA[ select * from dbo.f 阅读全文
posted @ 2011-03-10 17:26 鱼不爱水 阅读(857) 评论(0) 推荐(1)
  2011年3月3日
摘要: 1)第一种带root的写法var dataJson = { 'root':[{'ID':1,'Level':1,'MaxLevel':3,'Name':'marker1','ParentId':0}, {'ID':1,'Level':1,'MaxLevel':3,'Name':'marker1','ParentId':0}]} var store = new Ext.data.JsonSt 阅读全文
posted @ 2011-03-03 19:03 鱼不爱水 阅读(775) 评论(0) 推荐(0)
  2011年1月14日
摘要: 1)检查指定的当前标识值 DBCC CHECKIDENT select MAX(Id) from [Table]xxx = MAX(Id)dbcc checkident('Table',Reseed,xxx)2)with as ALTER FUNCTION [dbo].[fn_Cte_Split_Inline]( @list nvarchar(MAX), @delim nchar(1) = ',') RETURNS TABLE AS RETURN WITH csvtbl(debut, fin) AS ( SELECT debut = convert(bigint 阅读全文
posted @ 2011-01-14 16:50 鱼不爱水 阅读(250) 评论(0) 推荐(0)
  2011年1月12日
摘要: firefox:self.Controller.userStore.on({ 'load':function(){ console.log('load',arguments); } });render: function(combo) { console.log(combo.store); window.store = combo.store; combo.store.load({ params: { userId: Application.Main.State.User.ID, userLevel: Application.Main.State.User.Le 阅读全文
posted @ 2011-01-12 00:59 鱼不爱水 阅读(175) 评论(0) 推荐(0)
  2011年1月5日
摘要: 方法1:function(selectiones, values) { var selectionsSpecialityIDs = []; var selectionsSpecialities = ''; if (!isUndefinedOrNull(selectiones)) { if (selectiones.data.items.length > 0) { for (var i = 0; i < selectiones.data.items.length; i++) { // Used for WEB Service selectionsSpecialityI 阅读全文
posted @ 2011-01-05 23:59 鱼不爱水 阅读(469) 评论(0) 推荐(0)
  2010年12月31日
摘要: 1)Datetime FormatData TypeLanguage-Neutral FormatsExamplesDATETIME'YYYYMMDD hh:mm:ss.nnn''YYYY-MM-DDThh:mm:ss.nnn' 'YYYYMMDD''20090212 12:30:15.123''2009-02-12T12:30:15.123' '20090212'SMALLDATETIME'YYYYMMDD hh:mm''YYYY-MM-DDThh:mm' 'YYYYMMDD''20090212 12:30''2009-02-12T12:30' '20090212'DATE'YYYYMMDD 阅读全文
posted @ 2010-12-31 23:38 鱼不爱水 阅读(1211) 评论(0) 推荐(0)