摘要: 第一步连接 TFS 第二步 选中项目的总文件夹(也可选择项目内你想指定的文件) 第三部,单击上图的图标 阅读全文
posted @ 2017-11-09 15:05 段十八丶 阅读(1220) 评论(0) 推荐(0) 编辑
摘要: $("#mainAccrdion table a").click(function () { $("#mainAccrdion table td").css("background-image", "none"); $(this).parent().css("background-image", "url(/Content/img/home_index_td_backgroud.... 阅读全文
posted @ 2017-10-15 00:00 段十八丶 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 如上图我做Dome时出现这个错误。 找了快俩小时,最后发现真TM坑死了。 竟然是我的MVC项目没有引用Models 。 所以在MVC项目中把SMS.Models引用进来就可以了。 如果有人一样出现这种错误时,不妨看看自己是否和我一样遇到这样的情况。 阅读全文
posted @ 2017-10-11 20:15 段十八丶 阅读(7272) 评论(0) 推荐(0) 编辑
摘要: 逗号隔开的字符串转表 自己创建表函数自己试吧。下面就不上图了。 阅读全文
posted @ 2017-09-21 11:26 段十八丶 阅读(3591) 评论(0) 推荐(0) 编辑
摘要: public static DataTable GetPageDataTable(DataTable dt2,int page, int size) { //测试栗子 //DataTable dt2 = new DataTable("DT1"); //dt2.Columns.Add("id", typeof... 阅读全文
posted @ 2017-08-21 19:16 段十八丶 阅读(425) 评论(0) 推荐(0) 编辑
摘要: 个人想到的办法是,EF实质也是Ado那一套进化而来,所以想着肯定会有点联系。翻阅官方文档之后 看到一句解释:db.Database.Connection 返回上下文使用的链接。然后接着断点调试发现返回的就是 webcofing 里面的 <connectionStrings>连接数据库配置</conn 阅读全文
posted @ 2017-08-07 14:16 段十八丶 阅读(3119) 评论(0) 推荐(0) 编辑
摘要: #region 获取DataSet返回结构集 public DataSet GetDataSet(string sql, params SqlParameter[] para) { for (int i = 0; i < para.Length; i++) { SqlPara... 阅读全文
posted @ 2017-08-04 18:04 段十八丶 阅读(1091) 评论(0) 推荐(0) 编辑
摘要: if object_id('tempdb..#ApprovalTable') is not null drop table #ApprovalTable if exists (select * from tempdb.dbo.sysobjects where id = object_id(N'tem 阅读全文
posted @ 2017-07-14 10:58 段十八丶 阅读(2356) 评论(1) 推荐(0) 编辑
摘要: //添加 刷新 指定刷新 define(function (require, exports, module) { if (!window.cms) window.cms = {}; cms = { //添加新Tab页 addTab: function (data) { var content = ''; ... 阅读全文
posted @ 2017-07-03 15:03 段十八丶 阅读(268) 评论(0) 推荐(0) 编辑
摘要: public static System.Collections.Generic.IEnumerable RunSP(this Database self, string spName, params SqlParameter[] paras) { System.Collections.Generic.IEnumerable entityList = n... 阅读全文
posted @ 2017-06-30 12:06 段十八丶 阅读(1390) 评论(0) 推荐(0) 编辑