09 2013 档案
摘要:/******************************************** Description:* 自定义jqGrid编辑列中的控件** 可格式化的类型:* 1)PopupDialog 弹出框.可选择数据并返回值到编辑列* 2)DateTime 日历控件** DateTime调用方法:* 在编辑列中加属性 formatter: JqGridFormatCell.ToDateTime* PopupDialog调用方法:* 1.给编辑列加属性* formatter: JqGridFormatCell.ToPopupDialog ,* ...
阅读全文
摘要:/******************************************** Description:* 自定义jqGrid编辑功能,当行获取焦点时编辑,失去焦点时保存** 调用方法:* 在jGrid的(opts参数中)"editurl"属性的上面或下面添加属性 customEdit: true** Author:*******************************************/var JqGridCustomEdit = { _cacheName: "editGrid_PrevRowKey", _saveBtnNam
阅读全文
摘要:关键代码:(如插入按钮插入行以前判断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."); ...
阅读全文
摘要:基础类: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();..
阅读全文
摘要:当通过一下方式打开pdf页面时,由于各浏览器的兼容性问题,关闭窗口时无法同时关闭pdf文件:window.top.$.fn.popupDialogSecondary("Preview", url, height, width)因此可以通过此方法的回调函数,通过关闭此iframe来达到关闭的目的,参考如下:window.top.$.fn.popupDialogSecondary("Preview", url, height, width, function () { window.top.$("#iframeDialogSecondary&quo
阅读全文
摘要:IE浏览器:对于“‘”单引号的处理直接是“’”单引号出现在url中;Firefox浏览器:对于“‘”单引号的处理是转换成“%27”出现在url中;因此为了达到url一致可以将url做如下处理:var url = location.search.replace(/'/g, "%27"); //把单引号统一转换成“%27”
阅读全文
摘要:这几天遇到一个简单又纠结的异常:通过循环报表生成pdf文件的时候,循环时出现了一个错误:“An unexpected error occurred in Report Processing”发生在行:“byte[] bytes = reportViewMain.LocalReport.Render(fileFormat, null, out strMimeType, out strEncoding, out strFileNameExtension, out strStreamIds, out warnings);”这个问题主要是循环同一个rdlc模板的时候出现的,第一个报表生成pdf文件成功
阅读全文

浙公网安备 33010602011771号