123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Cache-Control" content="no-store" />
- <meta http-equiv="Pragma" content="no-cache" />
- <meta http-equiv="Expires" content="-1" />
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
- <title>机构表维护</title>
- <script type="text/javascript" src="../../scripts/jquery-1.8.3.js"></script>
- <link rel="stylesheet" type="text/css" href="../../themes/icon.css">
- <script type="text/javascript" src="../../scripts/jquery.easyui.js"></script>
- <script type="text/javascript" src="../../scripts/easyui-lang-zh_CN.js"></script>
- <script type="text/javascript"
- src="../../scripts/jquery.validate.rules.generate.js"></script>
- <script type="text/javascript" src="../../scripts/config.js"></script>
- <script type="text/javascript" src="../../scripts/comment.js"></script>
- <script type="text/javascript" src="../../scripts/utils.js"></script>
- <script type="text/javascript" src="../../scripts/init.js"></script>
- <script type="text/javascript" src="../../scripts/Base64.js"></script>
- <script type="text/javascript" src="../../scripts/jquery.edatagrid.js"></script>
- </head>
- <body>
- <script type="text/javascript">
- //准备加载本地和远程数据
- //去掉的支付参数数据
- // /**
- // * qq_number,客服qq号码,VARCHAR(32),ISNULL: Y
- // * @generated
- // */
- // private String qqNumber;
- //
- // /**
- // * wechat_number,客服微信号码,VARCHAR(32),ISNULL: Y
- // * @generated
- // */
- // private String wechatNumber;
- // /**
- // * wechat_device_info,设备号 : 终端设备号(门店号或收银设备ID),默认请传"WEB",VARCHAR(32),ISNULL: Y
- // * @generated
- // */
- // private String wechatDeviceInfo;
- //
- // /**
- // * wechat_order_not_exist_timeout_interval,订单不存在查询超时间隔 : 订单不存在查询时间超时间隔,INTEGER(10),ISNULL: Y
- // * @generated
- // */
- // private Integer wechatOrderNotExistTimeoutInterval;
- //
- // /**
- // * wechat_time_close,交易关闭间隔 : 交易关闭间隔,VARCHAR(8),ISNULL: Y
- // * @generated
- // */
- // private String wechatTimeClose;
- //
- // /**
- // * wechat_notifyurl,支付通知地址 : 支付通知地址,VARCHAR(256),ISNULL: Y
- // * @generated
- // */
- // private String wechatNotifyurl;
- //
- // /**
- // * wechat_refund_url,退款通知地址 : 退款通知地址,VARCHAR(256),ISNULL: Y
- // * @generated
- // */
- // private String wechatRefundUrl;
- //
- // /**
- // * wechat_storeclient,私钥文件 : 私钥文件,VARCHAR(64),ISNULL: Y
- // * @generated
- // */
- // private String wechatStoreclient;
- //
- // /**
- // * wechat_pay_querysize,一次查询返回的最多记录条数 : 一次查询返回的最多记录条数,VARCHAR(4),ISNULL: Y
- // * @generated
- // */
- // private String wechatPayQuerysize;
- //
- // /**
- // * wechat_keystore,微信根证书 : 微信根证书,VARCHAR(64),ISNULL: Y
- // * @generated
- // */
- // private String wechatKeystore;
- // /**
- // * wechat_refund,订单退款URL : 订单退款URL,VARCHAR(64),ISNULL: Y
- // * @generated
- // */
- // private String wechatRefund;
- //
- // /**
- // * wechat_refundquery,订单退款查询URL : 订单退款查询URL,VARCHAR(64),ISNULL: Y
- // * @generated
- // */
- // private String wechatRefundquery;
- //
- // /**
- // * wechat_downloadbill,账单下载URL : 账单下载URL,VARCHAR(64),ISNULL: Y
- // * @generated
- // */
- // private String wechatDownloadbill;
- // /**
- // * wechat_pay_timegap,一次查询的最长时间间隔 : 一次查询的最长时间间隔,VARCHAR(8),ISNULL: Y
- // * @generated
- // */
- // private String wechatPayTimegap;
- //
- // /**
- // * wechat_refund_notify_url,退款通知地址 : 退款通知地址,VARCHAR(256),ISNULL: Y
- // * @generated
- // */
- // private String wechatRefundNotifyUrl;
- // /**
- // * alipay_timeout_express,订单最晚付款时间 : 1m~15d。m-分钟,h-小时,d-天,1c-当天,VARCHAR(6),ISNULL: Y ,default:'6m'::character varying
- // * @generated
- // */
- // private String alipayTimeoutExpress;
- // /**
- // * alipay_create_notify_url,交易创建结果通知 : 交易创建结果通知,VARCHAR(256),ISNULL: Y
- // * @generated
- // */
- // private String alipayCreateNotifyUrl;
- </script>
- <table id="dg" style="width: 98%; height: 512px" toolbar="#toolbar"
- pagination="true" idField="id" rownumbers="true" fitColumns="true"
- singleSelect="true">
- <thead>
- <tr>
- <th field="ck" data-options="checkbox:true" width="5"></th>
- <!-- 生成的数据库代码段 -->
- <th field="id" align="left" hidden=true sortable="true"
- width="32">ID</th>
- <th field="deptCode" align="left"
- data-options="editor:valiBoxEtr(true,'',4,32)" sortable="true"
- width="32">机构编码</th>
- <th field="deptName" align="left"
- data-options="editor:valiBoxEtr(true,'',1,64)" sortable="true"
- width="32">机构名称</th>
- <th field="parent" align="left"
- data-options="editor:valiBoxEtr(false,'',0,32)" hidden=true sortable="true"
- width="32">上级机构</th>
- <th field="deptType" align="left"
- data-options="formatter:dataFmt('deptType'),editor:comboBoxEtr('deptType')"
- sortable="true" width="32">机构类型</th>
- <th field="deptConn" align="left"
- data-options="editor:valiBoxEtr(true,'',1,64)" sortable="true"
- width="32">联系人</th>
- <th field="deptAddr" align="left"
- data-options="editor:valiBoxEtr(true,'',1,64)" sortable="true"
- width="32">地址</th>
- <th field="deptTell" align="left"
- data-options="editor:valiBoxEtr(true,'',1,64)" sortable="true"
- width="32">电话</th>
- <th field="remarks" align="left"
- data-options="editor:valiBoxEtr(false,'',0,128)" sortable="true"
- width="32">备注</th>
- <th field="organizationCode" align="left"
- data-options="editor:valiBoxEtr(true,'',4,32)" sortable="true"
- width="32">机构识别码</th>
- <th field="qqNumber" align="left"
- data-options="editor:valiBoxEtr(false,'',0,64)" sortable="true"
- width="32">QQ号</th>
- <th field="wechatNumber" align="left"
- data-options="editor:valiBoxEtr(false,'',0,64)" sortable="true"
- width="32">微信号</th>
- <th field="wechatPublic" align="left"
- data-options="editor:valiBoxEtr(false,'',0,64)" sortable="true"
- width="32">微信公众号</th>
- <th field="wechatAppid" align="left"
- data-options="editor:valiBoxEtr(false,'',0,64)" sortable="true"
- width="32">微信应用ID</th>
- <th field="wechatMchId" align="left"
- data-options="editor:valiBoxEtr(false,'',0,64)" sortable="true"
- width="32">商户号</th>
- <th field="wechatKey" align="left"
- data-options="editor:valiBoxEtr(false,'',0,64)" sortable="true"
- width="32">微信key</th>
- <th field="wechatTimeoutInterval" align="left"
- data-options="editor:valiBoxEtr(false,'',0,64)" hidden=true sortable="true"
- width="32">超时间隔</th>
- <th field="wechatUnifiedorder" align="left"
- data-options="editor:valiBoxEtr(false,'',0,64)" sortable="true"
- width="32">下单URL</th>
- <th field="wechatOrderquery" align="left"
- data-options="editor:valiBoxEtr(false,'',0,64)" sortable="true"
- width="32">订单查询URL</th>
- <th field="wechatCloseorder" align="left"
- data-options="editor:valiBoxEtr(false,'',0,64)" hidden=true sortable="true"
- width="32">订单关闭URL</th>
- <th field="wechatAurl" align="left"
- data-options="editor:valiBoxEtr(false,'',0,64)" hidden=true sortable="true"
- width="32">微信地址</th>
- <th field="channelNo" align="left"
- data-options="editor:valiBoxEtr(false,'',0,64)" sortable="true"
- width="32">渠道号</th>
- <th field="packageName" align="left"
- data-options="editor:valiBoxEtr(false,'',0,64)" sortable="true"
- width="32">包名</th>
- <th field="alipayAppid" align="left"
- data-options="editor:valiBoxEtr(false,'',0,64)" sortable="true"
- width="32">支付宝APPID</th>
- <th field="alipayMerchantId" align="left"
- data-options="editor:valiBoxEtr(false,'',0,64)" sortable="true"
- width="32">商户UID</th>
- <th field="alipayPublicKey" align="left"
- data-options="editor:valiBoxEtr(false,'',0,4096)" sortable="true"
- width="32">支付宝公钥</th>
- <th field="alipayPrivateKey" align="left"
- data-options="editor:valiBoxEtr(false,'',0,4096)" sortable="true"
- width="32">支付宝私钥</th>
- <th field="alipayGateway" align="left"
- data-options="editor:valiBoxEtr(false,'',0,4096)" sortable="true"
- width="32">支付宝网关</th>
- <th field="alipayCreateMethod" align="left"
- data-options="editor:valiBoxEtr(false,'',0,64)" hidden=true sortable="true"
- width="32">交易创建方法</th>
- <th field="alipaySignType" align="left"
- data-options="editor:valiBoxEtr(false,'',0,64)" sortable="true"
- width="32">支付宝加密方式</th>
- </tr>
- </thead>
- </table>
- <div id="toolbar">
- <!-- 生成的条件查询代码段 -->
- <!--<span>系统类型:</span> <input id="systembox" class="easyui-combobox"-->
- <!--name="language"-->
- <!--data-options="-->
- <!--data:getListData('systemClass'),-->
- <!--valueField:'id',-->
- <!--textField:'text',-->
- <!--panelHeight:'auto',-->
- <!--required:false,-->
- <!--editable:false,-->
- <!--value:'manager'-->
- <!---->
- <!--">-->
- <span>机构编码:</span><input id="deptCode1"
- style="line-height: 20px; border: 1px solid #ccc" /> <span>机构名称:</span><input
- id="deptName1" style="line-height: 20px; border: 1px solid #ccc" />
- <a href="#" class="easyui-linkbutton" iconCls="icon-search"
- plain="true" onclick="doSearch(0)">查询</a><a href="javascript:void(0)"
- class="easyui-linkbutton" iconCls="icon-add" plain="true"
- onclick="javascript:$('#dg').edatagrid('addRow')">新增</a> <a
- href="javascript:void(0)" class="easyui-linkbutton"
- iconCls="icon-save" plain="true"
- onclick="javascript:$('#dg').edatagrid('saveRow')">保存</a> <a
- href="javascript:void(0)" class="easyui-linkbutton"
- iconCls="icon-undo" plain="true"
- onclick="javascript:$('#dg').edatagrid('cancelRow')">恢复</a> <a
- href="javascript:void(0)" class="easyui-linkbutton"
- iconCls="icon-remove" plain="true"
- onclick="javascript:$('#dg').edatagrid('destroyRow')">删除</a> <a
- href="#" class="easyui-linkbutton" iconCls="icon-excel" plain="true"
- onclick="doSearch(1)">导出</a>
- </div>
- <!-- 生成的大字段的详细查询字段 -->
- <script type="text/javascript">
- //页面加载调用
- $(function(){
- //生成的初始化日期时间代码段
- doSearch();
- });
- function doSearch(download){
- //生成获取查询条件变量
- var systemType = "service";//$('#systembox').combobox('getValue');
- var deptCode1 = $('#deptCode1').val()== undefined ? "" : $('#deptCode1').val();
- var deptName1 = $('#deptName1').val()== undefined ? "" : $('#deptName1').val();
- var params ="";
- //生成获取查询发送URL
- if(deptCode1!=''){
- if(params==''){
- params = params+"proNames=deptCode";
- }else{
- params = params+",deptCode";
- }
- }
- if(deptName1!=''){
- if(params==''){
- params = params+"proNames=deptName";
- }else{
- params = params+",deptName";
- }
- }
-
- if(deptCode1!=''){
- if(params==''){
- params = "deptCode=$"+deptCode1+"$";
- }else{
- params = params + "&deptCode=$"+deptCode1+"$";
- }
- }
- if(deptName1!=''){
- if(params==''){
- params = "deptName=$"+deptName1+"$";
- }else{
- params = params + "&deptName=$"+deptName1+"$";
- }
- }
-
- //保存修改删除URL
- var params1 = "proNames=id";//&channelNo=+systemType;
- //增加系统和排序条件
- var param = params+"&channelNo="+systemType+"&orderBy=dept_code";
- //区别于查询还是下载
- if(download==1){
- downloadExcel('#dg','机构表查询','GENERALD01',param);
- }else{
- $('#dg').edatagrid({
- url: getUrl('GENERALD01',param),
- saveUrl: getUrl('GENERALD02',params1),
- updateUrl: getUrl('GENERALD03',params1),
- destroyUrl: getUrl('GENERALD04',params1),
- striped:true,
- pagination: true,
- pageSize: 15,//每页显示的记录条数,默认为20
- pageList: [10, 15,25, 50,100],//可以设置每页记录条数的列表
- loadFilter: function (data){
- loadFilterError(data);
- return data;
- }
- });
- }
- }
- //生成的大字段的详细查询函数
-
- </script>
- </body>
- </html>
|