.NET 學習

.NET 學習生活感想... 万事成蹉跎..... 贵在坚持 及时整理自己做过和学过的东西

博客园 首页 新随笔 联系 订阅 管理
  252 Posts :: 0 Stories :: 33 Comments :: 6 Trackbacks

2012年1月9日 #

摘要: Delta Replication Module for Devexpress eXpressApp Framework一个实现了异步复制XAF模块为分布式XAF应用程序。http://xafdelta.narod.ru/XafDelta 功能特点:•Provides a system of asynchronous heterogeneous replication for WinForms and ASP.NET XAF applications. Supports domain components.•Allows you to build and load images of the 阅读全文
posted @ 2012-01-09 17:30 Tonyyang 阅读(22) 评论(0) 编辑

2012年1月4日 #

摘要: 使用 SpecFlow 和 WatiN 进行行为驱动开发 Brandon Satrom http://msdn.microsoft.com/zh-cn/magazine/gg490346.aspx下载示例代码 随着自动化单元测试在软件开发中变得越来越普遍,对各种“测试优先”方法的采用也呈现出相同的趋势。 这些实践为开发团队既带来了难得的机遇,也带来了独特的挑战,但所有这些机遇和挑战都是为了帮助从业人员建立“根据设计进行测试”的思路。 但是在“测试优先”时代的大多数时间,用于表达用户行为的方法一直贯穿于使用系统语言(一种与用户的语言不相关的语言)编写的单元测试。 随着行为驱动开发 (BDD) 技阅读全文
posted @ 2012-01-04 13:12 Tonyyang 阅读(7) 评论(0) 编辑

2011年12月24日 #

摘要: How to prevent a DetailView from being shown when a User double clicks or presses the Enter key on a record in a ListView http://www.devexpress.com/Support/Center/kb/p/K18038.aspx阅读全文
posted @ 2011-12-24 13:36 Tonyyang 阅读(31) 评论(0) 编辑

2011年12月7日 #

摘要: XAF Using Domain Components (DC) in XAF (DevExpress): Part I: The Basicshttp://www.codeproject.com/KB/ThirdParty/DomainComponentsInXAF_1.aspx相关XAF资源:http://conchcoderepublic.com/Screencasts/eXpandScreencasts.aspxhttp://www.distel.nl/index.php/en/xafexperts-uk/whatxaf-ukhttp://www.expressapp.ru/viewf阅读全文
posted @ 2011-12-07 17:50 Tonyyang 阅读(39) 评论(0) 编辑

摘要: 方法一:protectedoverridevoidOnChanged(stringpropertyName,objectoldValue,objectnewValue){base.OnChanged(propertyName,oldValue,newValue);if((!IsLoading)&&(!IsDeleted)&&(oldValue!=newValue)){if(propertyName=="ItemA"){//todo}}}方法二:publicpartialclassMyViewController:ViewController{阅读全文
posted @ 2011-12-07 15:57 Tonyyang 阅读(45) 评论(0) 编辑

2011年12月6日 #

摘要: 扩展XAF 11.2权限 之按钮权限控制1. 需求:XAF系统本身已经带了比较好用权限管理:Object-Level,Class-Level,Member-Level;但是没有对自定义按钮按角色分配的权限控制,因此需实现对自定义按钮的角色权限控制2. 控制方式:角色按钮控制(角色、按钮多对多关系)3. 系统权限类型为SecurityStrategyComplex, AuthenticationStandard(需选择自定义的MySecurityUser和MySecurityRole)4. 需要区分自定义按钮和XAF系统本身自带按钮5. 此按钮权限控制不控制XAF系统自带按钮,也可以通过简单修.阅读全文
posted @ 2011-12-06 19:48 Tonyyang 阅读(73) 评论(0) 编辑

2011年11月24日 #

摘要: http://www.devexpress.com/Support/Center/p/E1486.aspxIMPORTANT NOTES1. The LayoutViewListEditor class implemented in this example is not a complete solution, but rather a starting point for creating a custom List Editor based on the XtraGrid's LayoutView and providing similar features as a stand阅读全文
posted @ 2011-11-24 12:52 Tonyyang 阅读(34) 评论(0) 编辑

2011年11月21日 #

摘要: /Files/Tonyyang/报表分组页码V1.2.rarOptionCompareDatabaseOptionExplicit'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'分组报表显示分组页码和页数类模块(方法一)''功能:在有分组的报表的每一页上显示组页码和组页数,在预'览时改变页面设置后仍能正确显示。'作者:t小雨(tcl013@126.com)(t小宝)'版本:1.1'创建日期:2008-05-??'整理日期:20阅读全文
posted @ 2011-11-21 14:43 Tonyyang 阅读(17) 评论(0) 编辑

2011年10月21日 #

摘要: http://www.devexpress.com/Support/Center/p/Q341530.aspxhttp://www.devexpress.com/Support/Center/p/S38032.aspx阅读全文
posted @ 2011-10-21 15:39 Tonyyang 阅读(33) 评论(0) 编辑

2011年10月17日 #

摘要: How to set size of a popup detail viewhttp://community.devexpress.com/forums/p/105313/356765.aspx#356765privatevoidApplication_CustomizeTemplate(objectsender,CustomizeTemplateEventArgse){this.Application.CustomizeTemplate-=this.Application_CustomizeTemplate;(e.TemplateasForm).Size=newSize(440,260);}阅读全文
posted @ 2011-10-17 15:40 Tonyyang 阅读(38) 评论(0) 编辑

2011年8月30日 #

摘要: http://documentation.devexpress.com/#Xaf/CustomDocument2920阅读全文
posted @ 2011-08-30 12:03 Tonyyang 阅读(63) 评论(0) 编辑

2011年8月24日 #

摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingDevExpress.ExpressApp;usingDevExpress.ExpressApp.Actions;usingDevExpress.ExpressApp.Reports;usingDevExpress.Data.Filtering;usingSystem.Collections;usingDevExpress.Persistent.Base;usingDevExpress.Utils;usingDevExpress.ExpressApp.Utils;阅读全文
posted @ 2011-08-24 21:24 Tonyyang 阅读(65) 评论(0) 编辑

2011年8月8日 #

摘要: 打开网页全屏显示 2010-06-09 11:19(1)打开全屏窗口 方法如下: 一:将下面的代码放在<HEAD>与</HEAD>之间 <script language="JavaScript"> <!-- function call(htmlurl) { var newwin=window.open(htmlurl,"airWin","top=0,left=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=y阅读全文
posted @ 2011-08-08 20:19 Tonyyang 阅读(43) 评论(0) 编辑

2011年7月26日 #

摘要: 大家在做报表或查询的时候都会有给用户预设一些可选的日期范围//如本年度销售额、本季度利润、本月新增客户//C#里内置的DateTime基本上都可以实现这些功能,巧用DateTime会使你处理这些事来变轻松多了//今天DateTime.Now.Date.ToShortDateString();//昨天,就是今天的日期减一DateTime.Now.AddDays(-1).ToShortDateString();//明天,同理,加一DateTime.Now.AddDays(1).ToShortDateString();//本周(要知道本周的第一天就得先知道今天是星期几,从而得知本周的第一天就是几天前阅读全文
posted @ 2011-07-26 21:14 Tonyyang 阅读(30) 评论(0) 编辑

2011年7月24日 #

摘要: 参考资料:http://www.devexpress.com/Support/Center/p/Q326025.aspxusingSystem;usingSystem.Collections.Generic;usingDevExpress.ExpressApp;usingDevExpress.XtraPivotGrid;usingDevExpress.ExpressApp.PivotGrid.Win;usingDevExpress.ExpressApp.Model;namespaceDXExample.Module{publicclassQ326025Controller:ViewContro阅读全文
posted @ 2011-07-24 13:53 Tonyyang 阅读(77) 评论(0) 编辑

2011年6月16日 #

摘要: 1.主要包括保存查询条件和几个属性编辑(WinPropertyEditor_DropdownPickList, WinPropertyEditor_CheckedComboBox, WinPropertyEditor_RadioButtonInteger)2.更新到XAF v10.2.6 SourceCode:/Files/Tonyyang/XAF Modules/Inventive.XafAddOn.rar 3.效果阅读全文
posted @ 2011-06-16 15:39 Tonyyang 阅读(109) 评论(0) 编辑

2011年5月24日 #

摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.ComponentModel;usingDevExpress.ExpressApp;usingDevExpress.ExpressApp.Win.Editors;usingDevExpress.ExpressApp.Model;usingDevExpress.XtraEditors;usingSystem.Reflection;usingDevExpress.XtraEditors.Controls;publicclassWinCustomDataS阅读全文
posted @ 2011-05-24 19:27 Tonyyang 阅读(58) 评论(0) 编辑

2011年5月22日 #

摘要: privatestring_ActionId;[DataSourceProperty("list")][Custom("PropertyEditorType","MemberLevelSecurityDemo.Module.WinStringArrayValueComboPropertyEditor")]publicstringActionId{get{return_ActionId;}set{SetPropertyValue("ActionId",ref_ActionId,value);}}publicList&阅读全文
posted @ 2011-05-22 20:29 Tonyyang 阅读(97) 评论(0) 编辑

2011年5月21日 #

摘要: 需要参考:http://www.cnblogs.com/Tonyyang/archive/2011/05/21/2052627.html//DeveloperExpressCodeCentralExample://HowtoimplementtheMemberLevelsecuritymanually(forexample,todenythe'Read'accessfordeclaredpropertiesofsomebusinessclass,andallowaccessfortheinheritedproperties)////Hello,////Thissampledem阅读全文
posted @ 2011-05-21 14:46 Tonyyang 阅读(139) 评论(0) 编辑

摘要: 1.CodenamespaceMemberLevelSecurityDemo.Module{#region"Copyright(c)2007to2010ExtrasoftLtd"////********************************************************************//TheentirecontentsofthisfileisprotectedbyUKand//InternationalCopyrightLaws.Unauthorizedreproduction,//reverse-engineering,anddis阅读全文
posted @ 2011-05-21 14:36 Tonyyang 阅读(83) 评论(0) 编辑

2011年5月17日 #

摘要: ///<summary>///首行新增,按ENTER,FocusedNewItemRow///Tonyyang///2011-05-18///</summary>publicclassFocusedNewItemRowListViewControler:ViewController{publicFocusedNewItemRowListViewControler(){//InitializeComponent();//RegisterActions(components);this.TargetViewType=ViewType.ListView;this.Activa阅读全文
posted @ 2011-05-17 17:18 Tonyyang 阅读(72) 评论(0) 编辑

2011年5月4日 #

摘要: 例如:有部门和员工两个ListView1. 首先用模型编辑器添加一个DashboardView12. 然后再给DashboardView1添加两个Item:Department_ListView 和 Employee_ListView;3. 代码usingSystem;usingDevExpress.ExpressApp;usingDevExpress.ExpressApp.Editors;usingSystem.Collections;usingDevExpress.Data.Filtering;namespaceEasyTestTool.Module{publicpartialclassE阅读全文
posted @ 2011-05-04 18:20 Tonyyang 阅读(158) 评论(1) 编辑

2011年4月29日 #

摘要: http://community.devexpress.com/blogs/garyshort/archive/2010/08/11/xaf-actions-in-detail-view-layout-v2010-vol-2.aspx阅读全文
posted @ 2011-04-29 13:58 Tonyyang 阅读(144) 评论(0) 编辑

2011年4月26日 #

摘要: EasyTest Basics(基础)eXpressApp Framework > Concepts > Functional Testing > EasyTest 基础 The eXpressApp Framework includes its own functional testing engine - EasyTest. All you need to know to use it is a set of commands allowed by test scripts. Using a custom script language has strong advant阅读全文
posted @ 2011-04-26 18:07 Tonyyang 阅读(140) 评论(0) 编辑

2011年4月25日 #

摘要: How to show a hint panel in an XAF Windows Forms applicationhttp://www.devexpress.com/Support/Center/CodeCentral/ViewExample.aspx?exampleId=E1148阅读全文
posted @ 2011-04-25 20:54 Tonyyang 阅读(127) 评论(0) 编辑

2011年4月23日 #

摘要: XAF 用Excel导入数据模块Here's a video on how it works: http://mdworkstuff.blogspot.com/2011/05/excel-import-wizard-demo-from.htmland a post on how to include it into an existing XAF project http://mdworkstuff.blogspot.com/2011/05/how-to-include-expandframework-module.htmlOne more common situation when 阅读全文
posted @ 2011-04-23 21:24 Tonyyang 阅读(116) 评论(0) 编辑

摘要: Here's a simple solution for entering TimeSpan data in a casual style : " 1 day 39 hours 78 min"The Solutions is to create a prpoperty editor that hosts simple Text editor, with some custom logic undeneath, that parses the string and converts it to TimeSpan after entering the string. A阅读全文
posted @ 2011-04-23 18:28 Tonyyang 阅读(36) 评论(0) 编辑

2011年4月22日 #

摘要: http://www.devexpress.com/Support/Center/p/K18427.aspx阅读全文
posted @ 2011-04-22 16:21 Tonyyang 阅读(240) 评论(0) 编辑

2011年4月11日 #

摘要: Excel 文件用C#导入 Access 数字字符混排的问题Excel 驱动程序读取指定源中一定数量的行(默认情况下为 8 行)以推测每列的数据类型。如果推测出列可能包含混合数据类型(尤其是混合了文本数据的数值数据时),驱动程序将决定采用占多数的数据类型,并对包含其他类型数据的单元返回空值。(如果各种数据类型的数量相当,则采用数值类型。)Excel 工作表中大部分单元格格式设置选项不会影响此数据类型判断。可以通过指定导入模式来修改 Excel 驱动程序的此行为。若要指定导入模式,请在“属性”窗口中将 IMEX=1 添加到 Excel 连接管理器的连接字符串内的扩展属性值中。所以如果不指定IME阅读全文
posted @ 2011-04-11 15:15 Tonyyang 阅读(66) 评论(1) 编辑

2011年4月9日 #

摘要: How to: Test an XAF Application如何:测试XAF应用程序eXpressApp Framework > Task-Based Help > How to: Test an XAF Application The eXpressApp Framework is shipped with EasyTest - a test framework designed to perform functional testing of XAF applications. This topic demonstrates how to test an XAF applic阅读全文
posted @ 2011-04-09 12:56 Tonyyang 阅读(89) 评论(0) 编辑

2011年4月8日 #

摘要: Functional Testing(功能测试)eXpressApp Framework > Concepts > Functional Testing (功能测试)The eXpressApp Framework includes a preview of the EasyTest functional test framework. This framework is specifically designed to perform functional testing of XAF applications. The main idea behind the creation阅读全文
posted @ 2011-04-08 14:57 Tonyyang 阅读(51) 评论(0) 编辑

2011年3月29日 #

摘要: http://www.mssqltips.com/tip.asp?tip=1958阅读全文
posted @ 2011-03-29 17:47 Tonyyang 阅读(60) 评论(0) 编辑

2011年3月23日 #

摘要: 例如给订单增加版本控制usingSystem;usingSystem.ComponentModel; usingDevExpress.Xpo;usingDevExpress.Data.Filtering; usingDevExpress.ExpressApp;usingDevExpress.Persistent.Base;usingDevExpress.Persistent.BaseImpl;usingDevExpress.Persistent.Validation; namespaceDXExample.Module{[DefaultClassOptions]publicclassPO:Ba阅读全文
posted @ 2011-03-23 16:27 Tonyyang 阅读(98) 评论(0) 编辑

2011年3月15日 #

摘要: XAF 如何实现ListView单元格批量更改? publicpartialclassGridViewCellsValueUpdateViewController:ViewController{publicGridViewCellsValueUpdateViewController(){InitializeComponent();RegisterActions(components);}protectedoverridevoidOnActivated(){base.OnActivated();//this.paUpdateCellsValue.Enabled.SetItemValue(&quo阅读全文
posted @ 2011-03-15 21:23 Tonyyang 阅读(95) 评论(0) 编辑

摘要: Conditional Object Access Permission:http://www.devexpress.com/Support/Center/p/Q267964.aspxCustom ObjectAccessPermission type is ignored by the Security system :http://www.devexpress.com/Support/Center/p/Q268440.aspxusingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Security;u阅读全文
posted @ 2011-03-15 21:19 Tonyyang 阅读(163) 评论(0) 编辑

2011年3月10日 #

摘要: 1.在ViewController上添加两个ParameterAction2.隐藏一个ParameterAction中的Action3.实现代码:privatevoidParermaterViewController_ViewControlsCreated(objectsender,EventArgse){IBarManagerHolderbmh=Frame.TemplateasIBarManagerHolder;if(bmh!=null&&bmh.BarManager!=null){foreach(BarItemiteminbmh.BarManager.Items){BarE阅读全文
posted @ 2011-03-10 16:28 Tonyyang 阅读(112) 评论(0) 编辑

摘要: 一个有问题的按钮权限控制:http://www.devexpress.com/Support/Center/p/Q261403.aspx(一个角色只能控制一个按钮权限)隐藏显示按钮:http://www.devexpress.com/Support/Center/kb/p/K18055.aspxCheck Permission http://documentation.devexpress.com/#Xaf/CustomDocument2981 Action based Permission:http://www.devexpress.com/Support/Center/p/Q141870.阅读全文
posted @ 2011-03-10 16:22 Tonyyang 阅读(295) 评论(0) 编辑

2011年1月27日 #

摘要: 原文:http://www.expandframework.com/Xpand Framework(Xpand框架)Xpand是第一个基于DevExpress eXpressApp Framework(XAF)开源项目。它XAF包含在DXPerience Universal中,有30天试用期,试用版下载地址https://www.devexpress.com/ClientCenter/Downloads.eXpand框架是基于Microsoft Public License (Ms-PL)形式开源. XAF是不开源的,必须从DevExpress.购买。eXpandFramework 团队为XA阅读全文
posted @ 2011-01-27 21:18 Tonyyang 阅读(583) 评论(0) 编辑

摘要: 原文:http://apobekiaris.blogspot.com/2011/01/easy-sequential-numbers.htmlEasy Sequential numbers(易用的序列号)Where they can be used?? In many places for example invoices, sales orders etc.他们能用在哪里?例如,在许多地方,发票,销售订单等等。One could tell that this is an easy task and maybe that assumption is right but let me write阅读全文
posted @ 2011-01-27 13:13 Tonyyang 阅读(203) 评论(0) 编辑

摘要: 原文:http://community.devexpress.com/blogs/garyshort/archive/2010/10/08/xpo-direct-sql-queries.aspx直接执行SQL查询In the comments to my previous blog post about executing stored procedures from XPO, you asked how you could execute a SQL query from within a persistent class, so in this post I thought I’d sho阅读全文
posted @ 2011-01-27 13:02 Tonyyang 阅读(286) 评论(0) 编辑

欢迎转载,转载请注明出处:http://www.cnblogs.com/Tonyyang/