绿色环保
千呼万唤死出来,一生一世很精彩
摘要: 准备三台服务器,部署方案如下: 1、安装mongodb,详细不用说; 2、创建实例分别创建目录config、configServer、shard1、shard2、shard3、logs,分别存放实例配置文件 3、配置服务器实例configServer.conf: /usr/local/server/ 阅读全文
posted @ 2019-06-28 17:13 骷髅人 阅读(230) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2016-12-15 15:19 骷髅人 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 一、定义和用法encodeURI() 函数可把字符串作为 URI 进行编码。语法encodeURI(URIstring)参数描述URIstring必需。一个字符串,含有 URI 或其他要编码的文本。返回值URIstring 的副本,其中的某些字符将被十六进制的转义序列进行替换。说明该方法不会对 AS... 阅读全文
posted @ 2014-12-10 16:22 骷髅人 阅读(184) 评论(0) 推荐(0) 编辑
摘要: ... 阅读全文
posted @ 2014-10-14 16:26 骷髅人 阅读(480) 评论(0) 推荐(0) 编辑
摘要: create or replace function Fun_GetRoleIDList(d_fid char) return varchar is rolelist varchar(2000);begin rolelist := ''; ---定义游标declare cursor role_cur... 阅读全文
posted @ 2014-09-12 17:29 骷髅人 阅读(1983) 评论(0) 推荐(0) 编辑
摘要: 1.MSDN(http://msdn.microsoft.com/zh-cn/)作为一名.NET开发人员,这个网站肯定是经常用到的;2.CSDN (http://www.csdn.net)这个我就不多说了,论坛的活跃程度很高,牛人也很多,遇到不懂的问题可以多去问问;3.Codeplex(http:/... 阅读全文
posted @ 2014-07-10 17:28 骷髅人 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 引用就不说明,直接贴上:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.ServiceModel;using System.Configuration;usi... 阅读全文
posted @ 2014-06-13 10:35 骷髅人 阅读(1307) 评论(0) 推荐(0) 编辑
摘要: 相当于windows系统中的任务管理器,功能是通过系统的API实现的本机的监视,代码如下using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Runtime.Int... 阅读全文
posted @ 2014-05-27 16:17 骷髅人 阅读(623) 评论(0) 推荐(0) 编辑
摘要: 0 阅读全文
posted @ 2014-02-21 15:58 骷髅人 阅读(410) 评论(0) 推荐(0) 编辑
摘要: =CONCATENATE("insert into 表名 (字段名1,字段名2)values (3, '"&C3&"');")用CONCATENATE(" ") 阅读全文
posted @ 2013-10-11 10:53 骷髅人 阅读(349) 评论(0) 推荐(0) 编辑
摘要: 动态调用web服务,该方法只针对Web service, WCF的服务不行,如果是WCF的就通过工具直接生产代理类,把代理类配置到调用的项目中,通过配置客户端的终结点动态的取实现: 通过Svcutil.exe 工具生成代理类调用1.找到如下地址“C:\Windows\System32\cmd.exe” 命令行工具,右键以管理员身份运行(视系统是否为win7 而定) 2.输入如下命令:"C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\SvcUtil.exe" /out:C:\WCFClint\ClientCode.cs /c 阅读全文
posted @ 2013-10-09 11:18 骷髅人 阅读(461) 评论(0) 推荐(0) 编辑
摘要: 可以再onLoadSuccess的方法里处理下var rows=$('#tbList').datagrid("getRows");//获取行的数据 for(var i=0;i<rows.length;i++){ //根据情况判断相同的数据,我这里是根据ID var id=rows[i].ID; var rowspan=0; for(var j=0;j<rows.length;j++){ if(id==a[j].ID){ //计算合并多少行 rowspan++; } } if(rowspan!=0) {//mergeCells这个方法是合并单元格, 阅读全文
posted @ 2013-06-03 10:59 骷髅人 阅读(2033) 评论(1) 推荐(0) 编辑
摘要: <div id="divProcess" style=" display:none"> <div class="" style="position:absolute;width:100%;height:1400px;background:#b8b8b8;top:0;bottom:0;right:0;left:0; opacity: 0.5;filter:alpha(opacity=50)" > </div> <div class="iconMsg" st 阅读全文
posted @ 2013-04-02 09:22 骷髅人 阅读(304) 评论(0) 推荐(0) 编辑
摘要: SELECTCONVERT(varchar(100), GETDATE(), 0): 05 16 2006 10:57AM SELECTCONVERT(varchar(100), GETDATE(), 1): 05/16/06 SELECTCONVERT(varchar(100), GETDATE(), 2): 06.05.16 SELECTCONVERT(varchar(100), GETDATE(), 3): 16/05/06 SELECTCONVERT(varchar(100), GETDATE(), 4): 16.05.06 SELECTCONVERT(varchar(100), GE 阅读全文
posted @ 2013-03-06 15:37 骷髅人 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 1.与google日历连接,别忘记加入<script type='text/javascript' src='js/gcal.js'/>events: $.fullCalendar.gcalFeed("http://www.google.com/calendar/feeds/xuqi86@gmail.com/private-660ae86cc26345cff3430480e8eea4bb/basic",{className:'gcal-event',editable:true,currentTimezone: 阅读全文
posted @ 2013-02-21 09:18 骷髅人 阅读(496) 评论(0) 推荐(0) 编辑
摘要: 首先启动数据库“SQL Server代理”,启动方式分两种一、SQL Servers 配置管理器,将SQL Server 2005 服务中的SQL Server代理(SQL Server Agent)启用。二、右击我的电脑——管理——服务和应用程序——服务,找到SQL Server代理(SQL Server Agent),进行启用。SQL Server代理启动后—>右键点击作业->新建作业 —>"常规"中输入作业的名称—>新建步骤,类型选T-SQL,在下面的命令中输入下面语句DECLARE @strPath varchar(200)set @strP 阅读全文
posted @ 2013-01-29 16:08 骷髅人 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 先见excel加入到文件流:FileStream fs = new FileStream(filePath, FileMode.Open, FileAccess.Read, FileShare.Read);DataTable table = ImportExcel.ReadExcel("Sheet1", fs);fs.Dispose();using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Data;using System.Data.Ole 阅读全文
posted @ 2013-01-28 16:36 骷髅人 阅读(746) 评论(0) 推荐(0) 编辑
摘要: 通过下载定制的excel模板,在excel模板上添加数据实现对数据的批量上传于修改,获取excel内容返回DataTable,再DataTable中验证处理上传的数据保存到数据库,代码如下using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Data;using System.Data.OleDb;using System.IO;namespace ExcelDemo{ public class Excel { public Excel() { // // T. 阅读全文
posted @ 2012-12-28 10:11 骷髅人 阅读(1021) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Text;using System.Web;using System.Collections;using System.Web.Caching;namespace yang.Utility{ public static class CacheHelper { static Cache WebCache; static HWCache TempCache=new HWCache (); static bool IsWebCacheGet() { if (WebCache == n 阅读全文
posted @ 2012-11-29 10:55 骷髅人 阅读(289) 评论(0) 推荐(0) 编辑
摘要: public static void DataTableExcel(System.Data.DataTable dtData, String FileName) { System.Web.UI.WebControls.GridView dgExport = null; System.Web.HttpContext curContext = System.Web.HttpContext.Current; System.IO.StringWriter strWriter = null; System.Web.UI.HtmlTextWriter htmlWriter = null; if (dtD. 阅读全文
posted @ 2012-11-24 11:16 骷髅人 阅读(1790) 评论(0) 推荐(0) 编辑