上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 14 下一页
摘要: 闲话休提~一:自定义Tab按钮如图所示我们的tab按钮左部是文字;右部是关闭按钮;此按钮有两种状态:选中和未选中未选中的按钮鼠标滑上背景色会变为淡蓝色;选中的按钮背景色是黄色关闭按钮鼠标滑上去是深黄色控件中涉及的属性和公开的事件属性 /// <summary> /// Tab标题 /// </summary> public string Caption; /// <summary> /// 是否选中 /// </summary> bool IsSelected = true; ... 阅读全文
posted @ 2011-12-08 00:15 liulun 阅读(8049) 评论(37) 推荐(92)
摘要: 要不是我的朋友乔乔==乔不死跟我聊到领域驱动设计~我也不会发现第一篇中关于“充血实体”的错误说法(至少~我写文章的时候~内心的想法是错的~)我个人不是很喜欢领域驱动设计~感觉这种思路(我们暂且叫它思路~虽然它有一些既有的原则和模式)重点要求架构师深入到业务领域中去~但是在国内往往很难真正的与领域专家做深入交流~架构师划分的领域模型和聚合往往与真实的情况差别较大~即使划分的较好~新的业务和变化的业务也另设计师非常头疼~另外设计师很难将庞大复杂的业务抽象成领域模型往往需要引入更为复杂的模型以对真实业务进行建模-----------xuefly说多放点内容出来~好吧~这次多一些(多了吗?)~奔放的胸 阅读全文
posted @ 2011-12-04 09:19 liulun 阅读(8914) 评论(41) 推荐(50)
摘要: 本系列第一篇发出来之后,与钧梓昊逑讨论了一些问题,现整理出来(钧梓昊逑是我的入门老师~非常牛的技术天才~现在开始涉足西洋乐器领域~希望他能早日超过贝多芬~为山寨党众同仁争光~)一:关于职责问题客户端的主要职责负责呈现,不宜有过多的业务逻辑与业务相关的代码和访问数据库相关的代码放在服务器端与呈现相关的代码放在客户端至于哪些代码是与业务相关的,哪些代码是与呈现相关的呈现的代码是不是包含了业务,业务的代码是不是牵涉到呈现这属于边界划分的问题,仁者见仁~智者见智~也要根据项目具体问题具体分析二:关于容错的问题容错代码服务端和客户端都有业务上的容错放在服务端,交互上的容错放在客户端(如果客户端不是自己做 阅读全文
posted @ 2011-11-30 23:19 liulun 阅读(4181) 评论(23) 推荐(39)
摘要: WinForm企业应用框架设计【一】界限划分与动态创建WCF服务(no svc!no serviceActivations!)WinForm企业应用框架设计【二】团队内部的约定和客户端按约定识别WCF服务WinForm企业应用框架设计【三】框架窗体设计;动态创建菜单;WinForm企业应用框架设计【四】动态创建业务窗体WinForm企业应用框架设计【五】系统登录以及身份验证+源码先来张图片!我们这个系列就是要做一个这样的框架!我曾写过几个“系列”的东西,如 PL/SQL学习笔记 ;T-SQL学习笔记(这是CSDN的精华帖);jquery框架分析jquery框架分析写了一篇就被我送进了“净身房” 阅读全文
posted @ 2011-11-29 23:06 liulun 阅读(8521) 评论(32) 推荐(26)
摘要: 在IIS7.5下配置WCF的TCP绑定经常会遇到如下问题找不到具有绑定 NetTcpBinding 的终结点的与方案 net.tcp 匹配的基址。注册的基址方案是 [http]。一:确定WEBCONFIG配置正确<system.serviceModel> <!--描述绑定--> <bindings> <netTcpBinding> <binding name="netTcpBindConfig" closeTimeout="00:30:00" openTimeout="00:30:00&qu 阅读全文
posted @ 2011-11-25 22:41 liulun 阅读(7912) 评论(9) 推荐(2)
摘要: 客户端代码using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Diagnostics;using System.ServiceProcess;using System.Text;using System.Threading;using System.Management;using System.Configuration;using System.Net;using System.IO;namespace MON.WS{ publ... 阅读全文
posted @ 2011-11-12 15:15 liulun 阅读(1436) 评论(0) 推荐(2)
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Threading;using System.Xml;using System.IO;using System.IO.Compression;using System.Resources;using System.Net;using System.Web.S 阅读全文
posted @ 2011-11-12 15:04 liulun 阅读(1294) 评论(1) 推荐(3)
摘要: var chart_data; var pie_index; //页面载入 $(function () { chart_data = $.parseJSON($("#txtType0").val()); if(chart_data.length<1){ return 0; } pie_index = 0; CreateDChart(); CreatePChart() })... 阅读全文
posted @ 2011-11-11 17:44 liulun 阅读(1005) 评论(0) 推荐(0)
摘要: 先上图片 var dataObj = []; var dataLength = 60; var updateInterval = 3000; var options = { series: { shadowSize: 0,lines: { show: true },points: { show: true } }, grid: { hoverable: true}, yaxis: { min: 0, max: 100 }, xaxis: { show: false ... 阅读全文
posted @ 2011-11-11 16:58 liulun 阅读(1089) 评论(1) 推荐(1)
摘要: using system;using system.runtime.interopservices;namespace myserviceinstaller{ class serviceinstaller { #region private variables private string _servicepath; private string _servicename; private string _servicedisplayname; #endregion private variables ... 阅读全文
posted @ 2011-10-25 14:24 liulun 阅读(681) 评论(1) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Text;using System.Diagnostics;using System.Threading;using System.Management;using System.Runtime.InteropServices;using System.Data;using System.Data.SqlClient;using System.DirectoryServices;using System.Collections;using System.Configuratio 阅读全文
posted @ 2011-10-25 10:18 liulun 阅读(822) 评论(0) 推荐(1)
摘要: 文章修改,新增业务的C#代码[HttpPost] [ValidateInput(false)] public ActionResult AddNew(FormCollection values) { var db = new ddrDBEntities(); XinWen obj = new XinWen(); if (!string.IsNullOrEmpty(Request["id"])) { var id = Guid.Parse... 阅读全文
posted @ 2011-10-01 09:33 liulun 阅读(1455) 评论(0) 推荐(1)
摘要: C# public ActionResult BiaoDan(int? page) { int pageindex = 1; if (page > 0) { pageindex = (int)page; } var pagesize = 6; pageindex = pageindex - 1; var db = new ddrDBEntities(); ... 阅读全文
posted @ 2011-09-24 10:26 liulun 阅读(1052) 评论(4) 推荐(2)
摘要: 程序说明:针对杭州市机动车驾驶员模拟培训预约难的问题,本人开发了此监视工具。此监视工具仅负责监视某段时间内在线预约网站是否可以预约模拟培训。只是提示用户某日可以预约,不会帮助用户进行预约,更不会收集用户的身份信息。使用说明: 使用前请先确认电脑可以访问互联网 使用前请先联系作者激活程序!作者QQ 4-1-2-5-8-8-8-0-11.选择监视截止日期(程序将监视当前时间与此日期之间的时间段)2.选择“阶段一”,“阶段二”(即你要预约那个阶段的模拟培训)3.点击开始监视,系统将执行监视。4.点击退出,系统将停止监视,并退出5.点击最小化到托盘,系统将继续监视并最小化到托盘。 如果在此时间段内,有 阅读全文
posted @ 2011-09-07 08:40 liulun 阅读(2245) 评论(2) 推荐(3)
摘要: void t_GotFocus(object sender, RoutedEventArgs e) { var tb = sender as TextBox; var gt = tb.TransformToVisual(null); Point p = gt.Transform(new Point(0, 0)); MessageBox.Show(p.X + " " + p.Y); } 阅读全文
posted @ 2011-06-21 17:04 liulun 阅读(937) 评论(2) 推荐(0)
摘要: 1.SELECT PRODUCT_NAME, PRODUCT_PRICE*0.8 FROM PRODUCT此处可以直接用乘法,取出的是打折后的价格---------------------------------------------------------------------------------------------------------------2.select user_name,to_char(sysdate,'YYYY')-to_char(user_birthday,'YYYY') as user_age from user此处可以用t 阅读全文
posted @ 2011-06-19 09:02 liulun 阅读(534) 评论(0) 推荐(1)
摘要: 先上个图片:using System;using System.Collections.Generic;using System.Linq;using System.Net;using System.Windows;using System.Windows.Controls;using System.Windows.Documents;using System.Windows.Input;using System.Windows.Media;using System.Windows.Media.Animation;using System.Windows.Media.Imaging;using 阅读全文
posted @ 2011-06-04 14:14 liulun 阅读(1740) 评论(8) 推荐(2)
摘要: IOC的基本概念是:Inversion of ControlIOC也叫依赖注入Dependency Injection不创建对象,但是描述创建它们的方式。在代码中不直接与对象和服务连接,但在配置文件中描述哪一个组件需要哪一项服务。容器负责将这些联系在一起。------------------------------------------------------------多态(Polymorphism)按字面的意思就是“多种状态”。在面向对象语言中,接口的多种不同的实现方式即为多态。多态性是允许你将父对象设置成为和一个或更多的他的子对象相等的技术,赋值之后,父对象就可以根据当前赋值给它的子对 阅读全文
posted @ 2011-05-11 15:48 liulun 阅读(434) 评论(0) 推荐(0)
摘要: 课程简要介绍:课程的重点是系统架构,穿插着讲到了一些技术细节和技术难点。课程假定学员有一定的C#知识,有一定的面向对象的知识。课程从无到有开发了一个呼叫中心的DEMO,并在课程的最后提供源码,整个课程依据作者架构设计的单价为30~50W的呼叫中心系统做讲解,此系统迄今为止仍在开发和完善的过程中(不断有新模块加入进来)。 涉及到的技术:VS2010、C#、.NET、SQLserver2008、windowsform 第1讲项目概述及项目功能演示第2讲DevExpress简要介绍第3讲创建WCF服务及服务封装隔离后端业务逻辑第4讲代理模式 第5讲ClickOnce部署系统 第6讲实现系统登录 第7 阅读全文
posted @ 2011-04-22 13:57 liulun 阅读(1208) 评论(0) 推荐(1)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using Microsoft.Office.Interop.Excel;using System.Reflection;namespace ListToExcel{ class Program { static List<objtype> objs = new List<objtype>(); static void Main(string[] args) { objs.Add(new objtype() 阅读全文
posted @ 2011-04-22 09:16 liulun 阅读(1123) 评论(0) 推荐(0)
摘要: 1:下载文件 void runFile(SharedFile r) { var filepath = Path.Combine(Application.StartupPath, "Doc", r.FileName); if (File.Exists(filepath)) { if (r.Viewed) { System.Diagnostics.Process.Start(filepath); return; } else { File.Delete(filepath); } } dgSharedFile.Enabled = false; waitingFilePanel.V 阅读全文
posted @ 2011-03-06 08:18 liulun 阅读(915) 评论(0) 推荐(0)
摘要: 1.先看图片2.这是styleresource;应该还能精简掉很多;dd <Window.Resources> <Color x:Key="WindowColor">#FFE8EDF9</Color> <Color x:Key="ContentAreaColorLight">#FFC5CBF9</Color> <Color x:Key="ContentAreaColorDark">#FF7381F9</Color> <Color x:Key=&q 阅读全文
posted @ 2010-12-25 16:45 liulun 阅读(3233) 评论(2) 推荐(1)
摘要: 1.新建 mxml组件代码如下<?xml version="1.0" encoding="utf-8"?><s:Group xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" ... 阅读全文
posted @ 2010-11-23 22:25 liulun 阅读(518) 评论(0) 推荐(0)
摘要: 1.项目 右键 新建 包右键单击新建的包,新建 actionscript类代码如下(代码1)package btnEvents{ import flash.events.Event; public class btnEvent1 extends Event { public static var EVENT_NAME:String="customEvent"; //该事件所携带的数据 publi... 阅读全文
posted @ 2010-11-23 08:46 liulun 阅读(1148) 评论(1) 推荐(0)
摘要: 1. 先在项目的src中添加一个文件夹 暂时取名叫Modules 如下图所示 2. 右键单击此文件夹 选择“新建” 选择“MXML模块” 弹出界面如图,并按下图填好内容,单击完成 按此方式多添加借个模块 其中一个模块的代码如下 <?xml version="1.0" encoding="utf-8"?><mx:Module xmlns:fx="http://ns.adobe.... 阅读全文
posted @ 2010-11-21 21:53 liulun 阅读(1006) 评论(0) 推荐(0)
摘要: 需求:在开发多人协作的项目的时候,一般要同时使用多个数据库常见的情况有:一个开发者用的数据库(开发库),一个测试者用的数据库(测试库),一个正式开放给客户的数据库(正式库),那么这三个数据库之间的数据结构的同步就将成为一个问题如:当开发者A在“开发库”中添加了一个表,开发者B修改了一个表...这些数据库结构的变更势必要同步到“测试库”和“... 阅读全文
posted @ 2010-11-21 11:45 liulun 阅读(933) 评论(0) 推荐(1)
摘要: 先看一下我的解决方案的目录结构吧~~~一:先把Controller程序提取出来默认的情况是所有的****Controller.cs文件都会放在Web程序集下的一个叫Controllers的文件夹下这样感觉有点不爽(你懂的...)我们决定把所有的Controller程序放到一个自定义的应用程序集中去(上图中的mrlh.Admin.Controllers)先把web程序集下的Global.asax.cs文件删掉然后把Global.asax的标记代码改为如下:<%@ Application Codebehind="mrlh.Admin.Controllers.App.MvcAppli 阅读全文
posted @ 2010-11-18 12:05 liulun 阅读(2547) 评论(11) 推荐(3)
摘要: ValidateInput(false)与this.ValidateRequest = false无效的解决方案鼓捣了半天终于解决了这个问题写出来叫后人少费点劲在最外层的web.config中的systerm.web节点中加入这么一句话<httpRuntime requestValidationMode="2.0"/>一切就OK了~~~ 阅读全文
posted @ 2010-11-15 21:03 liulun 阅读(2226) 评论(5) 推荐(0)
摘要: Configuration:用于配置并启动NHibernate,通过此实例来获取对象关系映射文件中的元数据可以通过此实例动态配置NHibernate的属性此实例可以创建SessionFactorySessionFactory:一个这个类型的实例对应一个数据存储源可以创建Session的实例Session:持久化管理器保存、更新、删除、加载对象Query查询对象用于控制执行查询的过程Query一般情... 阅读全文
posted @ 2010-11-10 22:55 liulun 阅读(566) 评论(0) 推荐(0)
摘要: 先看图片再上源码此效果jquery版的请看此处:http://www.cnblogs.com/liulun/archive/2010/11/07/1871145.htmljquery版的没有这个FLASH版的要好 阅读全文
posted @ 2010-11-07 21:46 liulun 阅读(1586) 评论(0) 推荐(1)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 14 下一页