摘要: 问题说明:当选择子节点时,它的父节点只有一个子节点的情况下,默认会选中父节点。当前应用场景:不需要选中当前的父节点实验截图:修改部分:jstree.js 信息 阅读全文
posted @ 2015-06-26 10:10 Space Tian 阅读(2128) 评论(0) 推荐(0) 编辑
摘要: ().OrderBy(e => e.Name)) { fileManager.StartNewFile(entity.Name + ".cs"); BeginNamespace(namespaceName, code); bool entityHasNullableFKs = entity.NavigationProperties.Any(np => np.GetD... 阅读全文
posted @ 2015-03-17 18:01 Space Tian 阅读(339) 评论(0) 推荐(0) 编辑
摘要: 数据导出的结果:步骤1、新建一个Excel 文档,模板根据自己需要设置步骤2、使用OpenXml 打开Excel 文件步骤3、点击ReflectCode 功能,生成相应的代码文档using DocumentFormat.OpenXml.Packaging;using Ap = DocumentFor... 阅读全文
posted @ 2015-01-30 11:39 Space Tian 阅读(5048) 评论(0) 推荐(0) 编辑
摘要: CREATE FUNCTION [dbo].[GetMaxLevel]() RETURNS INT AS BEGIN DECLARE @maxLevel INT; SET @maxLevel = 1; DECLARE @level INT ; DECLARE @parentidVal NVARCHAR(50); DECLARE @natureid NVARCHAR(5... 阅读全文
posted @ 2015-01-21 15:34 Space Tian 阅读(339) 评论(0) 推荐(0) 编辑
摘要: 存储过程分页 SELECT * FROM ( SELECT ROW_NUMBER() OVER(ORDER BY CreateDate DESC) AS RowNo, EstateAddress, EstateCode, SurveyBy, CreateDate,QSName, QName, QDName FROM #QS_RESULT ... 阅读全文
posted @ 2015-01-15 09:51 Space Tian 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 字符串拆分: ALTER FUNCTION [dbo].[f_Split](@sText nvarchar(max),@split NVARCHAR(20)) RETURNS @t TABLE (idx INT IDENTITY(1,1) Primary Key , [value] nvarchar(4000)) AS BEGIN DECLARE @temp NVARCHAR(1000)... 阅读全文
posted @ 2015-01-14 15:37 Space Tian 阅读(325) 评论(0) 推荐(0) 编辑
摘要: DECLARE @daysNum INT DECLARE @currentDay DATETIME DECLARE @index INT; DECLARE @NewTable TABLE ( currentDate DATETIME, realDate DATETIME ) SET @daysNum = 30 SET @index = 1; ... 阅读全文
posted @ 2014-12-24 09:45 Space Tian 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 1、UpdatePanel 使用中protected void Button1_Click(object sender, EventArgs e) { this.Label1.Text = "测试时间:" + DateTime.Now.ToString();ScriptManager.Regi... 阅读全文
posted @ 2014-12-23 17:42 Space Tian 阅读(968) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Data;using System.IO;using System.Xml;using DocumentFormat.OpenXml.Packag... 阅读全文
posted @ 2014-09-15 10:35 Space Tian 阅读(4490) 评论(0) 推荐(0) 编辑
摘要: IE Javascript快捷键操作 1. oncontextmenu="window.event.returnValue=false" 将彻底屏蔽鼠标右键 no 可用于Table 2. 取消选取、防止复制 3. onpaste="return false" 不准粘贴 4. oncopy="ret... 阅读全文
posted @ 2014-07-23 11:35 Space Tian 阅读(641) 评论(0) 推荐(0) 编辑