上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页
摘要: 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 阅读(991) 评论(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 阅读(1068) 评论(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 阅读(659) 评论(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 阅读(806) 评论(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 阅读(1436) 评论(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 阅读(1018) 评论(4) 推荐(2)
摘要: 程序说明:针对杭州市机动车驾驶员模拟培训预约难的问题,本人开发了此监视工具。此监视工具仅负责监视某段时间内在线预约网站是否可以预约模拟培训。只是提示用户某日可以预约,不会帮助用户进行预约,更不会收集用户的身份信息。使用说明: 使用前请先确认电脑可以访问互联网 使用前请先联系作者激活程序!作者QQ 4-1-2-5-8-8-8-0-11.选择监视截止日期(程序将监视当前时间与此日期之间的时间段)2.选择“阶段一”,“阶段二”(即你要预约那个阶段的模拟培训)3.点击开始监视,系统将执行监视。4.点击退出,系统将停止监视,并退出5.点击最小化到托盘,系统将继续监视并最小化到托盘。 如果在此时间段内,有 阅读全文
posted @ 2011-09-07 08:40 liulun 阅读(2232) 评论(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 阅读(918) 评论(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 阅读(511) 评论(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 阅读(1731) 评论(8) 推荐(2)
摘要: IOC的基本概念是:Inversion of ControlIOC也叫依赖注入Dependency Injection不创建对象,但是描述创建它们的方式。在代码中不直接与对象和服务连接,但在配置文件中描述哪一个组件需要哪一项服务。容器负责将这些联系在一起。------------------------------------------------------------多态(Polymorphism)按字面的意思就是“多种状态”。在面向对象语言中,接口的多种不同的实现方式即为多态。多态性是允许你将父对象设置成为和一个或更多的他的子对象相等的技术,赋值之后,父对象就可以根据当前赋值给它的子对 阅读全文
posted @ 2011-05-11 15:48 liulun 阅读(423) 评论(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 阅读(1191) 评论(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 阅读(1114) 评论(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 阅读(897) 评论(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 阅读(3200) 评论(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 阅读(485) 评论(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 阅读(1139) 评论(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 阅读(981) 评论(0) 推荐(0)
摘要: 需求:在开发多人协作的项目的时候,一般要同时使用多个数据库常见的情况有:一个开发者用的数据库(开发库),一个测试者用的数据库(测试库),一个正式开放给客户的数据库(正式库),那么这三个数据库之间的数据结构的同步就将成为一个问题如:当开发者A在“开发库”中添加了一个表,开发者B修改了一个表...这些数据库结构的变更势必要同步到“测试库”和“... 阅读全文
posted @ 2010-11-21 11:45 liulun 阅读(915) 评论(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 阅读(2530) 评论(11) 推荐(3)
摘要: ValidateInput(false)与this.ValidateRequest = false无效的解决方案鼓捣了半天终于解决了这个问题写出来叫后人少费点劲在最外层的web.config中的systerm.web节点中加入这么一句话<httpRuntime requestValidationMode="2.0"/>一切就OK了~~~ 阅读全文
posted @ 2010-11-15 21:03 liulun 阅读(2213) 评论(5) 推荐(0)
摘要: Configuration:用于配置并启动NHibernate,通过此实例来获取对象关系映射文件中的元数据可以通过此实例动态配置NHibernate的属性此实例可以创建SessionFactorySessionFactory:一个这个类型的实例对应一个数据存储源可以创建Session的实例Session:持久化管理器保存、更新、删除、加载对象Query查询对象用于控制执行查询的过程Query一般情... 阅读全文
posted @ 2010-11-10 22:55 liulun 阅读(553) 评论(0) 推荐(0)
摘要: 先看图片再上源码此效果jquery版的请看此处:http://www.cnblogs.com/liulun/archive/2010/11/07/1871145.htmljquery版的没有这个FLASH版的要好 阅读全文
posted @ 2010-11-07 21:46 liulun 阅读(1571) 评论(0) 推荐(1)
摘要: 先来个效果图(没有服务器,没办法提供演示版)效果不如FLASH版的好,接下来我就发出FLASH版的来全部代码如下所示 阅读全文
posted @ 2010-11-07 16:52 liulun 阅读(1773) 评论(1) 推荐(2)
摘要: function postData() { var post = ""; $(":text").each(function() { post += "&" + this.name + "=" + this.value; }); $(":password").each(function() { post += "&" + this.name + "=" + this.value; }... 阅读全文
posted @ 2010-10-27 09:03 liulun 阅读(617) 评论(0) 推荐(0)
摘要: //方法1 //using System.Runtime.Serialization.Json; //using System.IO; //using System.Text; //using System.Text.RegularExpressions; DataContractJsonSerializer jsonSerializer = new DataContractJsonSerializer(arr.G... 阅读全文
posted @ 2010-10-26 13:32 liulun 阅读(1215) 评论(2) 推荐(1)
摘要: function SetSubTable() { var obj = jQuery.parseJSON($("#SubJsonStrValue").val()); window.ALLPARAMTERS = obj; var row_str = ""; var span_num = 1 for (var i = 0; i < obj.length; i++) { if (obj[i].Par... 阅读全文
posted @ 2010-10-22 12:50 liulun 阅读(1912) 评论(0) 推荐(1)
摘要: #include <afxwin.h>//必须加载此文件,该文件中定义了所有MFC相关的类#include "resource.h"class MyFrame:public CFrameWnd{private: CMenu MainMenu,*SysMenu,*PopMenu,*SubMenu; COLORREF color;public: MyFrame() { Create(NU... 阅读全文
posted @ 2010-07-04 20:14 liulun 阅读(735) 评论(0) 推荐(0)
摘要: #include <afxwin.h>#include "resource.h"#include <afxtempl.h> //定义模板类的头文件class MyDocument : public CDocument{public: CArray<CPoint,CPoint &> pArray;//<保存的数据类型,读取保存数据类型的返回值>... 阅读全文
posted @ 2010-06-29 21:12 liulun 阅读(587) 评论(0) 推荐(0)
摘要: #include <afxwin.h>#include "resource.h"class MyDocument : public CDocument{ DECLARE_DYNCREATE(MyDocument)//声明run-time类};IMPLEMENT_DYNCREATE(MyDocument,CDocument)//声明MyDocument为run-time类class My... 阅读全文
posted @ 2010-06-28 21:56 liulun 阅读(313) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页