这篇是在10年测试QT过程中遇到的问题:1、中文显示问题:#include <QApplication>#include <QLabel>#include <QTextCodec>int main(int argc, char* argv[]){ QApplication app(argc,argv); QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8")); QLabel *label = new QLabel(tr("这里是中文")); label- Read More
posted @ 2011-03-27 23:03 AriLee Views(2545) Comments(0) Diggs(0) Edit
这篇是在C#中注册COM+组建测试用例.....项目创建:1.添加引用System.EnterpriseServices,并且using System.EnterpriseServices; 2.Public class public class ComSample:ServicedComponent //类要从ServicedComponent继承在类的前面要添加 [Transaction(TransactionOption.Required)],以启用事务步骤1:(实例:如下图1)(1)给类一个强名称,创建强名称,可以使用 sn 工具。 在 Visual Studio .NET 命令提示符 Read More
posted @ 2011-03-27 22:58 AriLee Views(9399) Comments(0) Diggs(0) Edit
js:$(function () { $.ajax({ type: 'GET', url: 'GetJson.ashx', dataType: 'json', success: function (data) { //$.each(data.menus, function (idx, item) { // alert(idx); // alert(item.street); //}); var menulist = ""; //alert(data); $.each(data.menus, function (i, n) { Read More
posted @ 2011-03-27 22:54 AriLee Views(2060) Comments(7) Diggs(0) Edit
1 最近在做一个交叉表的数据批量导入,采用过很多方式一直没有特别理想的解决方案,昨天终于解决了,以下是测试记录: 2 3 OpenFileDialog openfile = new OpenFileDialog(); 4 openfile.Filter = "工作薄(*.xlsx)|*.xlsx|所有文件(*.*)|*.*"; 5 if (openfile.FilterIndex == 1 && openfile.ShowDialog() == DialogResult.OK) 6 { 7 string path = openfile.FileName; 8 Read More
posted @ 2011-02-27 22:52 AriLee Views(1238) Comments(0) Diggs(0) Edit
 1 看到QuartzNet好长时间了,一直想测试一下,因为目前从事的项目好多都有涉及到时间调度任务,正好这个周末也没什么事,于是拿来尝尝香了,以下是我的测试代码: 2 3 配置文件(app.config): 4 5 <?xml version="1.0"?> 6 <configuration> 7 <!--关于Quartz.NET的配置--> 8 <configSections> 9 <section name="quartz" type="System.Configuration.Na Read More
posted @ 2011-02-27 22:17 AriLee Views(614) Comments(0) Diggs(0) Edit
前两天面视涉及到Ibatis框架的一些问题,所以这些天来集中精力了解了一下Castle+IBatis,(测试采用的版本:IBatis.DataAccess.1.6.1.0.bin IBatis.DataMapper.1.1.458.0.bin),分别在ASP.Net和WinForm中调试了用Mygeneraction模板生成的程序,以下是在园子里的朋友的一些错误笔记记录汇总以及我的测试用例,仅以此作为我学习IBatis_Castle的一点总结。 问题1: (1)在ASP.Net中:Error4The type or namespace name 'XXX' could not Read More
posted @ 2010-09-28 21:01 AriLee Views(3842) Comments(9) Diggs(1) Edit