04 2014 档案

wpf 进度条 下拉
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;using System.Threading.Tasks;using... 阅读全文

posted @ 2014-04-29 15:10 听哥哥的话 阅读(286) 评论(0) 推荐(0)

进度条与执行过程
摘要:Client Side Pagination - jQuery EasyUI Demo Client Side Pagination ddf Start This sample shows how to implement client side pagina... 阅读全文

posted @ 2014-04-29 00:33 听哥哥的话 阅读(173) 评论(0) 推荐(0)

属性表格 datagridproperty
摘要:http://www.cnblogs.com/yxlblogs/p/3468921.html 阅读全文

posted @ 2014-04-27 17:21 听哥哥的话 阅读(249) 评论(0) 推荐(0)

Jquery easyui开启行编辑模式增删改操作
摘要:http://www.cnblogs.com/nyzhai/archive/2013/05/14/3077152.html翟中龙北纬30度---路漫漫其修远兮,吾将上下而求索!博客园首页博问闪存新随笔联系订阅管理随笔- 49 文章- 0 评论- 48Jquery easyui开启行编辑模式增删改操作... 阅读全文

posted @ 2014-04-24 16:39 听哥哥的话 阅读(102123) 评论(5) 推荐(3)

asp.net (jquery easy-ui datagrid)通用Excel文件导出(NPOI)
摘要:http://www.cnblogs.com/datacool/archive/2013/03/12/easy-ui_datagrid_export_excel_asp_net.html 阅读全文

posted @ 2014-04-24 16:34 听哥哥的话 阅读(378) 评论(0) 推荐(0)

easyui datagrid编辑
摘要:--%> Editable DataGrid 阅读全文

posted @ 2014-04-24 16:32 听哥哥的话 阅读(360) 评论(0) 推荐(0)

datagrid分页 从后端获取数据也很简单
摘要:--%> using System;using System.Collections.Generic;using System.Linq;using System.Web;//using System.ServiceModel.Web;using System.Data;using... 阅读全文

posted @ 2014-04-23 15:34 听哥哥的话 阅读(493) 评论(0) 推荐(0)

json的转换
摘要:using System;using System.Collections.Generic;using System.Text;using System.Data;using System.Reflection;using System.Collections;using System.Data.C... 阅读全文

posted @ 2014-04-23 15:15 听哥哥的话 阅读(167) 评论(0) 推荐(0)

easyui datagrid 分页 客户分页
摘要:1.写好json 数据 { "total":21, "rows":[ {"code":"001","name":"Name zhangsanfeng","addr":"莆田 11","wang":"xiao"}, {"code":"002","name":"Name 2","addr":" 阅读全文

posted @ 2014-04-23 11:24 听哥哥的话 阅读(457) 评论(0) 推荐(0)

设计模式之观察者模式
摘要:.NET设计模式:观察者模式(Observer Pattern)作者: TerryLee来源: 博客园发布时间: 2009-10-19 18:17阅读: 9759 次推荐: 8 原文链接 [收藏] 概述(源地址:http://kb.cnblogs.com/page/49989/) 在软件构建过程... 阅读全文

posted @ 2014-04-20 14:33 听哥哥的话 阅读(184) 评论(0) 推荐(0)

设计模式之备忘录模式
摘要:设计模式之备忘录模式(Memento)生活中大家可能都幻 想过如果当初我没怎么样怎么样就好了,当产生这样的想法的时候一定是发生什么不如意的事。生活是现实的,时间也永远不会回到做错事之前的一刹那。软件虽服 务于生活,模拟生活却也和生活有所不同,应用软件时,我们可以比较容易的进行备忘,比如编辑word或... 阅读全文

posted @ 2014-04-20 13:58 听哥哥的话 阅读(259) 评论(0) 推荐(0)

设计模式之策略模式
摘要:java设计模式之——策略模式设计模式Java算法java设计模式之——策略模式(源地址:http://yangguangfu.iteye.com/blog/815107)1,什么是策略模式?策略模式,又叫算法簇模式,就是定义了不同的算法族,并且之间可以互相替换,此模式让算法的变化独立于使用算法的客... 阅读全文

posted @ 2014-04-20 13:10 听哥哥的话 阅读(159) 评论(0) 推荐(0)

设计模式之迭代器模式
摘要:概述 源地址:http://blog.csdn.net/lilu_leo/article/details/7609496 迭代器(Iterator)模式,又叫做游标(Cursor)模式。GOF给出的定义为:提供一种方法访问一个容器(container)对象中各个元素,而又不需暴露该对象的内部细节... 阅读全文

posted @ 2014-04-19 16:39 听哥哥的话 阅读(216) 评论(0) 推荐(0)

设计模式之访问者模式
摘要:设计模式——访问者模式(Visitor) (2011-06-19 18:33:46)转载▼标签:软件架构设计模式访问者新需求开闭原则封装性杂谈分类: Architect 访问者模式可在不修改已有程序结构前提下,定义该类层次结构的操作,通过添加额外的访问者来完成对已有代码功能的提升,满足新增加的需... 阅读全文

posted @ 2014-04-19 15:58 听哥哥的话 阅读(234) 评论(0) 推荐(0)

中介者模式(QQ聊天室我觉得是个很生动的例子简单易懂)
摘要:设计模式之中介者模式(Mediator)一、初识中介者模式那些年,我们一起上过的大学,班级里有班长,有团书记。想一想如果没有QQ这种通讯工具的话,那么班长或者团支书该怎样下达消息呢??同时,班级上两个同学之间也可惜沟通啊,沟通一下,院里哪个女生,哪个帅哥呀~~~如果没有QQ的话,大概就是下面的情景:... 阅读全文

posted @ 2014-04-19 00:15 听哥哥的话 阅读(1260) 评论(0) 推荐(0)

设计模式之中介者模式
摘要:源地址:http://blog.sina.com.cn/s/blog_636415010100va8s.html设计模式——中介者模式(Mediator) (2011-06-19 17:18:51)转载▼Mediator中介者模式:当多个对象彼此间都有联系时,可应用Mediator将对象间的多对多关... 阅读全文

posted @ 2014-04-18 17:28 听哥哥的话 阅读(254) 评论(0) 推荐(0)

解释器模式(行为模式)
摘要:设计模式之Interpreter - 解释器模式 2008-06-24 10:41:46分类: 项目管理源地址:http://blog.chinaunix.net/uid-20384806-id-1954236.htmlInterpreter模式也叫解释器模式,是由GoF提出的23种设计模式中的一... 阅读全文

posted @ 2014-04-18 16:28 听哥哥的话 阅读(226) 评论(0) 推荐(0)

设计模式之职责链模式
摘要:重温设计模式(三)——职责链模式(chain of responsibility)一. 写在前面的这么多的设计模式,我觉得职责链是我第一次看上去最简单,可是回想起来却又最复杂的一个模式。因此,这个文章我酝酿了很久,一直也没有胆量发出来,例子也是改了又改,可是仍然觉得不够合理。所以希望各位多多指教。二... 阅读全文

posted @ 2014-04-18 14:57 听哥哥的话 阅读(287) 评论(0) 推荐(0)

设计模式之代理模式
摘要:很久没有更新设计模式系列的文章了,有了很多热心朋友的反馈,我决定继续将这个系列赶快写完,最近由于过年了,有很多相关的事宜要做,所以没有时间来写,也是对大家的说下抱歉,感觉写文章的时间越来越少了,不过我会努力,尽快将这个系列写完,与大家共勉,希望大家有什么意见或建议,都可以帮我提出来,我好改进,谢谢... 阅读全文

posted @ 2014-04-17 18:59 听哥哥的话 阅读(252) 评论(0) 推荐(0)

设计模式之flyweight享元模式
摘要:运用共享技术支持大量细粒度对象的使用 Flyweight模式(享元)Java深入到一定程度,就不可避免的碰到设计模式这一概念,了解设计模式,将使自己对java中的接口或抽象类应用有更深的理解.设计模式在java的中型系统中应用广泛,遵循一定的编程模式,才能使自己的代码便于理解,易于交流,Flywei... 阅读全文

posted @ 2014-04-17 17:43 听哥哥的话 阅读(251) 评论(0) 推荐(0)

设计模式之外观模式
摘要:【外观模式应用场景举例】 这是我网上找的一个笔记对于初学者比较直观易懂所以就借鉴一下 比如在玩“极品飞车”这款游戏,你只需要等待的就是倒计时到0时以最快的车速冲到第一名,但游戏者根本没有想过在车冲出去之前要做哪些工作,比如挂档,离 合器,油箱检测,调整方向等等的微操作,将这些微操作封装起来变成一个接... 阅读全文

posted @ 2014-04-17 16:15 听哥哥的话 阅读(183) 评论(0) 推荐(0)

设计模式之装饰模式
摘要:装饰着模式比较简单也比较实用当要扩展的时候只要传入要包装的对象就好了,比起扩展方法需要一个静态类和一个静态方法比较好用点也比较直观明白using System;using System.Collections.Generic;using System.Linq;using System.Text;u... 阅读全文

posted @ 2014-04-17 15:48 听哥哥的话 阅读(191) 评论(0) 推荐(0)

组合模式更清晰的例子
摘要:原作王波洋设计模式系列-组合模式 今天下班客厅的灯确实亮堂了许多,照照镜子感觉自己一下苍老许多,看来还是灯光暗比较好,看不出来自己的憔悴啊,哈哈,其实还是头发长了,决定出去剪发。 进到美发店,便有热情的服务生招呼,显示洗头,挑选造型师,开始剪发,剪发中被造型师推荐了各种各样的收费项目,我只选择了一样... 阅读全文

posted @ 2014-04-16 13:12 听哥哥的话 阅读(2568) 评论(0) 推荐(0)

设计模式之组合模式
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace bridge{ public abstract class... 阅读全文

posted @ 2014-04-16 11:22 听哥哥的话 阅读(135) 评论(0) 推荐(0)

设计模式之桥接模式
摘要:设计模式探索系列之Bridge模式博客园2006-02-24 16:36分享到:我要吐槽 现在该是Bridge模式粉墨登场的时候了,我们需要解耦这两个方向的变化,把它们之间的强耦合关系改成弱联系。我们把日志记录方式和不同平台上的实现分别当作两个独立的部分来对待,对于日志记录方式,类结构图仍然是:图... 阅读全文

posted @ 2014-04-15 17:07 听哥哥的话 阅读(220) 评论(0) 推荐(0)

设计模式之Adapter设计模式
摘要:这个设计模式是我这两天刚学的,这儿算是我的读书笔记发布出来是供大家一起学习,后面有我自己的感悟,下面是我网上整理的以下情况使用适配器模式• 你想使用一个已经存在的类,而它的接口不符合你的需求。• 你想创建一个可以复用的类,该类可以与其他不相关的类或不可预见的类(即那些接口可能不一定兼容的类)协同工作... 阅读全文

posted @ 2014-04-15 15:13 听哥哥的话 阅读(290) 评论(0) 推荐(0)

设计模式之prototype(原型模型)
摘要:以我的理解原型模式的重点就几个字 用于克隆易变对象设计模式主要是为了解决new对象时的耦合问题,这是要克隆某个易变对象时只要直接传入要克隆的对象就可以实现克隆一下是我复制网上的一些代码 摘自《设计模式之美》 Dennis Gao 设计模式之美:Prototype(原型)索引别名意图结构参与者适用性... 阅读全文

posted @ 2014-04-15 13:44 听哥哥的话 阅读(738) 评论(0) 推荐(0)

文件上传以及生成缩略图的代码
摘要:简单的文件上传的代码html页面的代码 如果要上传,就必须 设置 表单 method=post,而且 enctype=multipart/form-data 一旦设置了 enctype=multipart/form-data,那么浏览器生成请求报文的时候,就会生成 数据分割符 并且更换 请求报文体 的数据 组织格式(使用 分隔符 来 分开不同 html 表单控件的 内容) 一般处理程序C08Upload.ashx的代码using System;using System.Collectio... 阅读全文

posted @ 2014-04-12 14:22 听哥哥的话 阅读(960) 评论(0) 推荐(0)

aspx导出文件
摘要:System.IO.StringWriter sw = new System.IO.StringWriter(); HtmlTextWriter htw = new HtmlTextWriter(sw); // reptype.RenderControl(htw);//reptype为要导出的对象,当前是reptype,如果是DataGrid,DataList等都可以 Response.Buffer = true; Response.Clear(); Response.ClearCon... 阅读全文

posted @ 2014-04-12 14:21 听哥哥的话 阅读(362) 评论(0) 推荐(0)

文件流的读写操作
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.IO;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;namespace C01文件流{ public partial class Form1 : Form { stri... 阅读全文

posted @ 2014-04-12 14:20 听哥哥的话 阅读(576) 评论(0) 推荐(0)

创建cookie
摘要:cookie的创建using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;namespace AspDotNet04{ public partial class C10CookieLogin : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { ... 阅读全文

posted @ 2014-04-12 14:18 听哥哥的话 阅读(223) 评论(0) 推荐(0)

sql删除重复记录
摘要:DELETE E FROM t E where E.id> ( SELECT MIN(X.id) FROM t X WHERE X.name = E.name ); 阅读全文

posted @ 2014-04-12 14:17 听哥哥的话 阅读(136) 评论(0) 推荐(0)

淘宝星星的思路c#
摘要: 阅读全文

posted @ 2014-04-12 14:16 听哥哥的话 阅读(124) 评论(0) 推荐(0)

强制另存文件和加扩展名的代码c#
摘要:强制另存为文件+扩展名的代码using System;using System.Collections.Generic;using System.Linq;using System.Web;namespace AspDotNet03{ /// /// C11Down 负责 读取请求文件并 提示浏览器 另存为 /// public class C11Down : IHttpHandler { public void ProcessRequest(HttpContext context) { //1.获取要下载的文... 阅读全文

posted @ 2014-04-12 14:15 听哥哥的话 阅读(314) 评论(0) 推荐(0)

数据帮助类DBhelper的定义
摘要:数据库帮助类的使用DBhelperusing System;using System.Collections.Generic;using System.Text;using System.Data;using System.Data.SqlClient;using System.Reflection;//反射命名空间namespace AjaxCRUD.DAL{ /// /// 数据层 - 数据库 操作类 /// internal class DbHelperSQL { //获得配置文件的连接字符串 public static st... 阅读全文

posted @ 2014-04-12 14:14 听哥哥的话 阅读(1133) 评论(0) 推荐(0)

数据分页c#
摘要:存储过程分页的全套代码aspx页面的代码using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Data;using System.Data.SqlClient;namespace AspDotNet07_AjaxCRUD.View{ public partial class WebForm1 : System.Web.UI.Page { p... 阅读全文

posted @ 2014-04-12 14:13 听哥哥的话 阅读(731) 评论(0) 推荐(0)

跨页传值c#
摘要:Application(4)URL地址中的参数(5)通过隐藏字段来传递数据(6)Server.Transfer(7)通过序列化对象(8)........下面就分别一一介绍:(1)使用Sessionsession对象是用来记录浏览器端的变量,是个别浏览器端专用的变量,对于每一个浏览器访问时都会自动产生一个seseion对象,该对象提供一个存储场所,用来存储仅仅对该访问者在会话的活动期间打开的网页可用的变量和对象。这样就用可以用来在Web间传递专对单个浏览器端使用的数据。其定义方法:session(“变量名”)=数值如:Session["testTransmitVaraint" 阅读全文

posted @ 2014-04-12 14:12 听哥哥的话 阅读(391) 评论(0) 推荐(0)

c#递归实现螺旋数组
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication5{ class Program { public static int[,] a = new int[7, 7]; public static int count = 0; public static int row = 0; public sta... 阅读全文

posted @ 2014-04-12 14:10 听哥哥的话 阅读(491) 评论(0) 推荐(0)

递归改进(在左侧树形不仅可以显示目录还可以显示跟要查询子目录统计的所有文件)
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;using System.IO;using System.Reflection;namespace WindowsFormsApplication1{ public partial c... 阅读全文

posted @ 2014-04-12 14:06 听哥哥的话 阅读(160) 评论(0) 推荐(0)

递归生成treeview树形节点(没有用递归函数之后会有补充,这里只用系统的内置方法去生成)
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.IO;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;namespace C11_资源管理器{ public partial class Form1 : Form { string path = @"d:\广州传智"; ... 阅读全文

posted @ 2014-04-12 14:02 听哥哥的话 阅读(164) 评论(0) 推荐(0)

jqueryAjax的使用
摘要:1. 导入等下我们要使用的文件AjaxMsgHelper.cs和DataHelper.cs他们的代码如下using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace WebApplication1{ /// /// 生成 Ajax 响应消息 字符串 /// 数据格式:{"statu":"err","msg":"出错啦~~","data":[{},{}],"nextU 阅读全文

posted @ 2014-04-12 13:55 听哥哥的话 阅读(376) 评论(0) 推荐(0)

工作流入门(流程图-控制台应用程序)
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Activities;namespace WorkflowConsoleApplication3{ public sealed class InputDataActivity : CodeActivity { // 定义一个字符串类型的活动输入参数 public OutArgument Money { get; set; } // 如果活动返回值,则从 CodeActivity // 派生并... 阅读全文

posted @ 2014-04-10 09:36 听哥哥的话 阅读(405) 评论(0) 推荐(0)

一个简单的反射例子(通过类型或者类型参数获取类的名称)
摘要:msg 类的定义using System; using System.Collections.Generic;using System.Linq;using System.Reflection;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication2{ public class user where T :class,new() { public string getClassName() { return typeof(T).Name.ToString(); } }}user 类的定义u... 阅读全文

posted @ 2014-04-09 09:24 听哥哥的话 阅读(216) 评论(0) 推荐(0)

泛型约束where条件的使用(通过类型参数动态反射创建实例)
摘要:定义抽象的人类using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;namespace ConsoleApplication1{ public abstract class person { public abstract string ting(); public abstract string shuo(); }}定义子类 girl 和boy 类using System; using System.Collect.. 阅读全文

posted @ 2014-04-08 14:00 听哥哥的话 阅读(293) 评论(0) 推荐(0)

泛型约束where条件的使用(可以通过类型参数动态反射创建实例)
摘要:定义抽象的人类using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;namespace ConsoleApplication1{ public abstract class person { public abstract string ting(); public abstract string shuo(); }}定义子类 girl 和boy 类using System; using System.Collect.. 阅读全文

posted @ 2014-04-08 14:00 听哥哥的话 阅读(201) 评论(0) 推荐(0)

设计模式之java源码-工厂方法模式
摘要:工厂方法模式8.1 女娲造人的故事 东汉《风俗通》记录了一则神话故事:“开天辟辟,未有人民,女娲搏,黄土作人……”,讲述的内容就是大家非常熟悉的女娲造人的故事。开天辟地之初,大地上并没有生物,只有苍茫大地,纯粹而洁净的自然环境,寂静而又寂寞,于是女娲决定创造一个新物种(即人类)来增加世界的繁荣,怎么制造呢? 别忘了女娲是神仙,没有办不到的事情,造人的过程是这样的:首先,女娲采集黄土捏成人的形状,然后放到八卦炉中烧制,最后放置到大地上生长,工艺过程是没有错的,但是意外随时都会发生: 第一次烤泥人,兹兹兹兹,感觉应该熟了,往大地上一放,哇,没烤熟!于是一个白人诞生了!(这也是缺乏经验的最好证明) 阅读全文

posted @ 2014-04-08 10:28 听哥哥的话 阅读(399) 评论(0) 推荐(0)

设计模式-生成者模式之c#代码
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;namespace BuilderModel{ public class Bike { private int wheels; public int Wheels { get { return wheels; } set { wheels = value; } } private int frams; public int Frams { get ... 阅读全文

posted @ 2014-04-08 09:56 听哥哥的话 阅读(177) 评论(0) 推荐(0)

设计模式之生成者模式java源代码
摘要:假设要组装一辆自行车,并且自行车就是车轮和车架组成。Builder对应于组装自行车所使用的车轮和车架ConcreteBuiler对应于自行车的车轮和车架,同时可以返回一辆自行车。Product对应于自行车。Director表示组装过程。此时我们再来理解下面这句话:“在软件系统中,有时候面临着“一个复杂对象”的创建工作,其通常由各个部分的子对象用一定的算法构成;由于需求的变化,这个复杂对象的各个部分经常面临着剧烈的变化,但是将它们组合在一起的算法确相对稳定。”自行车就是“一个复杂对象”,它有车轮和车架组成,但不管车轮和车架这两个部件怎么变化,生产一辆自行车的过程是不会变的,即组装过程是不会变的。 阅读全文

posted @ 2014-04-08 09:27 听哥哥的话 阅读(359) 评论(0) 推荐(0)

.net中反射技术的应用
摘要:using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Web; using System.Web.UI; using System.Web.UI.WebControls;namespace WebApplication2 { public partial class WebForm1 : System.Web.UI.Page { protected void Page_Load(object sen... 阅读全文

posted @ 2014-04-04 14:39 听哥哥的话 阅读(120) 评论(0) 推荐(0)

导航