摘要: 在实际的工作过程中,当你发现你的VS2010无法执行自动化测试用例,刚好你发现你的电脑安装有VS2012,那么好了,请卸载你的VS2012再试试... 阅读全文
posted @ 2014-02-25 14:57 刀叨 阅读(152) 评论(0) 推荐(0) 编辑
摘要: --Step 1:exec sp_configure 'show advanced options',1 reconfigure exec sp_configure 'Ad Hoc Distributed Queries',1 reconfigure--Step 2:INSERT INTO [***].[dbo].[Gen_Product] ([Insure_ID] ,[ProductType] ,[SubType] ,[MaxDay] ,[Prefix] ,[Basi... 阅读全文
posted @ 2013-11-04 17:36 刀叨 阅读(285) 评论(0) 推荐(0) 编辑
摘要: ***.ascx.cs:namespace ***.***{ public partial class UCPopupDialog : System.Web.UI.UserControl { protected override void OnPreRender(EventArgs e) { base.OnPreRender(e); txtPicker.Enabled = Enabled; } /// /// 控件样式 /// publi... 阅读全文
posted @ 2013-10-29 16:38 刀叨 阅读(840) 评论(0) 推荐(0) 编辑
摘要: 合并后效果如图:$("#listFareInformation").jqGrid('destroyGroupHeader').jqGrid('setGroupHeaders', { useColSpanStyle: true, groupHeaders: [ { startColumnName: 'Validity_min', numberOfColumns: 2, titleText: 'Validity' } ]});//#listFareInformation为div的ID;Validity_min为co 阅读全文
posted @ 2013-10-29 16:31 刀叨 阅读(492) 评论(0) 推荐(0) 编辑
摘要: /******************************************** Description:* 自定义jqGrid编辑列中的控件** 可格式化的类型:* 1)PopupDialog 弹出框.可选择数据并返回值到编辑列* 2)DateTime 日历控件** DateTime调用方法:* 在编辑列中加属性 formatter: JqGridFormatCell.ToDateTime* PopupDialog调用方法:* 1.给编辑列加属性* formatter: JqGridFormatCell.ToPopupDialog ,* ... 阅读全文
posted @ 2013-09-27 14:42 刀叨 阅读(3314) 评论(0) 推荐(0) 编辑
摘要: /******************************************** Description:* 自定义jqGrid编辑功能,当行获取焦点时编辑,失去焦点时保存** 调用方法:* 在jGrid的(opts参数中)"editurl"属性的上面或下面添加属性 customEdit: true** Author:*******************************************/var JqGridCustomEdit = { _cacheName: "editGrid_PrevRowKey", _saveBtnNam 阅读全文
posted @ 2013-09-27 14:41 刀叨 阅读(8989) 评论(0) 推荐(0) 编辑
摘要: 关键代码:(如插入按钮插入行以前判断gird是否为编辑状态)$('#btnIns').click(function (event) { if ($("#tbPaymentTerm_iledit").hasClass("ui-state-disabled")) { //tbPaymentTerm为Grid绑定ID;tbPaymentTerm_iledit为Grid编辑行编辑按钮的ID;ui-state-disabled为编辑行编辑按钮样式 $.jAlert("please save the record."); ... 阅读全文
posted @ 2013-09-26 11:52 刀叨 阅读(1005) 评论(0) 推荐(0) 编辑
摘要: 基础类:public delegate string strSQL();public static DataSet ExcelImport(string xlsPath, strSQL sql){ try { // 连接字符串 string connStr = "Provider=Microsoft.Jet.OLEDB.4.0;Extended Properties='Excel 8.0;HDR=Yes;IMEX =1';" + "data source=" + xlsPath; DataSet ds = new DataSet();.. 阅读全文
posted @ 2013-09-11 16:45 刀叨 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 当通过一下方式打开pdf页面时,由于各浏览器的兼容性问题,关闭窗口时无法同时关闭pdf文件:window.top.$.fn.popupDialogSecondary("Preview", url, height, width)因此可以通过此方法的回调函数,通过关闭此iframe来达到关闭的目的,参考如下:window.top.$.fn.popupDialogSecondary("Preview", url, height, width, function () { window.top.$("#iframeDialogSecondary&quo 阅读全文
posted @ 2013-09-06 16:13 刀叨 阅读(713) 评论(0) 推荐(0) 编辑
摘要: IE浏览器:对于“‘”单引号的处理直接是“’”单引号出现在url中;Firefox浏览器:对于“‘”单引号的处理是转换成“%27”出现在url中;因此为了达到url一致可以将url做如下处理:var url = location.search.replace(/'/g, "%27"); //把单引号统一转换成“%27” 阅读全文
posted @ 2013-09-06 16:01 刀叨 阅读(241) 评论(0) 推荐(0) 编辑