自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(30)
  • 收藏
  • 关注

转载 SQL 只取重复记录一条记录并且是最小值

select pid,* from v_RolseFolw as a where a.StateValue>1 and not exists( select 1 from v_RolseFolw where a.mid = mid and a.userid=userid and StateValue>1 and a.StateValue>StateVa...

2018-05-15 16:49:00 526

转载 SQL 函数:树结构指定父节点遍历所有的子节点

CREATE function [dbo].[Get_DepChildren]( @ID int)RETURNS @Tree Table (ID [int] IDENTITY (1, 1),PID Int,FID Int,SN Varchar(50), Name Varchar(150))asbegin --declare @ID Int--s...

2018-05-01 15:25:00 207

转载 EasyUI treegrid 删除一条或多条记录

function del_dg() { $.messager.defaults = { ok: "是", cancel: "否" }; var node = $('#tbClientClass').treegrid('getSelected'); //单条记录删除 ...

2017-01-01 10:22:00 202

转载 String.Format数字格式化输出 {0:N2} {0:D2} {0:C2} (转)

String.Format数字格式化输出 {0:N2} {0:D2} {0:C2} (转)//格式为sring输出// Label1.Text = string.Format("asdfadsf{0}adsfasdf",a);// Label2.Text = "asdfadsf"+a.ToString()+"adsfasdf";// Label1.Te...

2016-12-31 22:44:00 257

转载 EasyUI 左,右(上、下)布局

左,右(上、下)布局<body class="easyui-layout"> <div data-options="region:'west',collapsed:false,title:'合同分类'" style="width:200px"></div> <div data-options="region:'...

2016-12-29 11:14:00 269

转载 DataTable 树形构造加全部

DataTable dtGx = new DataTable(); dtGx = SqlHelper.SqlGetDataTable(StrSql, "tbUserGx"); this.treeListGx.DataSource = dtGx; DataRow drGx = dtGx...

2016-12-29 07:59:00 321

转载 easyui datagrid 格式化列显示两位小数、千分位

{ field: "contractmoney", title: "合同总价", width: 72, formatter: function (value, row, index) { if (row != null) { return parseFloat(value)....

2016-12-28 15:44:00 1404

转载 c# 判断文件是否已使用

string path = Server.MapPath(" PDFs"); bool tfOpenTemp= IsFileInUse(path + " /Doc1.pdf "); if (!tfOpenTemp) { } el...

2016-12-20 10:00:00 81

转载 中文字体font-family常用列表

中文字体font-family常用列表Windows:新細明體:PMingLiU細明體: MingLiU標楷體: DFKai-SB黑体: SimHei新宋体: NSimSun仿宋: FangSong楷体: KaiTi仿宋_GB2312:FangSong_GB2312楷体_GB2312:KaiTi_GB2312微軟...

2016-12-19 16:56:00 1031

转载 PdfPCell对齐方式,边框,边框颜色的使用 (转)

原文:http://www.cnblogs.com/LifelongLearning/archive/2011/06/22/2086802.htmlPdfPTable和PdfPCell对象,我们可以制作出丰富多彩的表格,可以制作出跨行、跨列,不同表格线,单元格中的文字旋转等效果,如下所示:1、文本模式:PdfPCell cell = new PdfPCell(new Pa...

2016-12-18 23:48:00 1340

转载 ITextSharp Table使用 (转)

原文:http://www.cnblogs.com/LifelongLearning/archive/2011/05/16/2048116.html表格是我们在制作文档时,经常使用的一个元素。对布局的控制非常精确。在ITextSharp中表格对象是下面两个元素:PdfTable,PdfCell下面从ITextSharp In Action截取一段代码:从代码中,...

2016-12-18 23:43:00 438

转载 ITextSharp使用说明 (转)

原文:http://www.cnblogs.com/LifelongLearning/archive/2010/12/28/1919138.htmlTextSharp是一个生成Pdf文件的开源项目,最近在项目中有使用到这个项目,对使用中的经验作一个小结.ITextSharp中相关的概念:一、Document这个对象有三个构造函数:隐藏行号 复制代码 ?这是一段程...

2016-12-18 23:16:00 148

转载 EasyUI 读数据库图

EasyUI 读数据库图 function edit_dg() { //选中一行,获取这一行的主键值 var idImg = $("#tbDeviceClassBrowstab").datagrid('getSelected').pid; $("#imgId").attr("src", "/...

2016-10-20 00:13:00 114

转载 easyui-combotree 只能选叶子未级

easyui-combotree 只能选叶子未级 function edit_dg() { //选中一行,获取这一行的属性的值 var selected = $('#tbClientListBrows').datagrid('getSelected'); //判断是否选中 if (selected != null) { ...

2016-10-17 17:40:00 176

转载 easyui tree 加载展开全部节点

$(function () { $('#tbClientListCont').tree({ checkbox: false, url: '/ashx/Client/tbClientList.ashx?action=listcont', onB...

2016-10-14 17:03:00 181

转载 EasyUI treegrid 加载checked

EasyUI treegrid 加载checked $(function () { $('#tbDictContTree').treegrid({ title: '数据字典目录管理', iconCls: 'icon-ok', //width: 700, ...

2016-10-12 16:23:00 382

转载 html 文字垂直居中

html 文字垂直居中<span style="float:right; padding-right:30px;line-height:64px" class="head" ">欢迎 <a href="#" id="A1">修改密码</a> <a href="#" id="A2">退出系统</a></span&...

2016-09-26 15:12:00 201

转载 SQLSERVER 2008 查询数据字段名类型

SELECT * FROM Master..SysDatabases ORDER BY NameSELECT Name,* FROM Master..SysDatabases where Name='TestDB'SELECT COLUMN_NAME,DATA_TYPE FROM INFORMATION_SCHEMA.columns WHERE TABLE_CATALO...

2016-09-24 21:46:00 148

转载 EasyUI TreeJson

1. TreeJsonstr = GetTreeJsonByTable(dt, "id", "fid", "0"); StringBuilder treeResult = new StringBuilder(); StringBuilder treesb = new StringBuilder(); public stri...

2016-09-24 09:50:00 117

转载 win7 网站发布备注

1、更改 .NET Framework 版本(改原设置v2.0为v4.0)2、程序池设置3、基本设置4、Web.config (debug="false")<system.web> <compilation debug="false"/> </system.web>5、防火墙端口...

2016-09-23 20:38:00 73

转载 FileStream 常用的属性和方法

FileStream常用的属性和方法 (转)对流进行操作时要引用 using System.IO; 命名空间 FileStream常用的属性和方法:属性: CanRead 判断当前流是否支持读取,返回bool值,True表示可以读取 CanWrite 判断当前流是否支持写入,返回bool值,True表示可以写入方法: Read() 从流中...

2016-09-17 10:09:00 146

转载 C# 保存文件如有重名在原名后加(*)

C#保存文件如有重名加() **(1) //Myadd 处理重名 private string GetNewPathForDupes(string path) { string directory = Path.GetDirectoryName(path); string filen...

2016-09-14 18:37:00 274

转载 SQL 由人员汇总到部门树递归合计总数函数

1、由人员计算出总数,在部门树(tree)按结构汇总(主父绑定)CREATE function [dbo].[GetEmpDepNum]( @ID int)RETURNS @Tree Table (ID [int] IDENTITY (1, 1),PID Int,FID Int,SN Varchar(150), Name Varchar(150), Num...

2016-09-06 18:13:00 437

转载 SQL 用;with 由所有的子节点查询到树结构中所有父节点

1、所有的子节点查询到树结构中所有父节点RETURNS @Tree Table(PID int,FID int ,Name VARCHAR(300))asbegin --DECLARE @ID VARCHAR(3)--SET @ID = '16';with rolDepList as( select PID,FID,Name from tbDepLi...

2016-09-06 09:14:00 149

转载 DevExpress TreeList GridView 样式设置

1、GridView 样式设置 this.gridViewUser.PaintStyleName = "Flat";2、TreeList 样式设置this.treeListDep.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Flat;this.treeListDep.Loo...

2016-09-05 09:55:00 227

转载 C# winfrom FastReport 变量设计加载

1、源码 DataTable dt5 = new DataTable(); dt5 = SqlHelper.SqlGetDataTable(StrSql, "tbEmpCont"); dst.Tables.Add(dt5.Copy()); //string reportpath ...

2016-09-03 10:13:00 202

转载 输入的数字键、小数等控制

private void textEditMobile_KeyPress(object sender, KeyPressEventArgs e) { //如果输入的不是数字键,也不是回车键、Backspace键,则取消该输入 //if (!(Char.IsNumber(e.KeyChar)) &&am...

2016-09-01 17:21:00 71

转载 C# winfrom ComboBox 调整下拉菜单的高度

1.设置属性 // 1、属性设置 DrawMode ->OwnerDrawVariable this.cboBoxPostID.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawVariable; this.cboBoxPostID.DrawItem ...

2016-08-24 17:31:00 1318

转载 C# winfrom FastReport Print

1、引用using FastReport;using FastReport.Barcode;2、code private void toolStripButtonPrint_Click(object sender, EventArgs e) { string textNewdate = DateTime.N...

2016-08-23 07:57:00 120

转载 SQL 从身份证号得到出生日期、年龄、男女

select CONVERT(varchar(100), CONVERT(smalldatetime, SUBSTRING(b.IDCard, 7, 8)), 23) AS BrithDate_Name, DATEDIFF(year, CONVERT(smalldatetime, SUBSTRING(ISNULL(b.IDCard, 0), 7, 8)),...

2016-08-23 07:43:00 1541

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除