提交 8907a146 authored 作者: wangkr's avatar wangkr

update

上级 0ec2caf4
......@@ -6,6 +6,14 @@
* 系统默认配置文件,请不要去修改
* 要修改配置文件在:webmain/webmainConfig.php
*/
//调整session为redis
ini_set('session.save_handler', 'redis');
ini_set('session.save_path', 'tcp://192.168.1.222:6379');
ini_set('session.cookie_path', '/');
ini_set('session.cookie_domain', 'gonn.com.cn');
ini_set('session.cookie_lifetime', '1800');
@session_start();
if(function_exists('date_default_timezone_set'))date_default_timezone_set('Asia/Shanghai'); //设置默认时区
header('Content-Type:text/html;charset=utf-8');
......@@ -51,9 +59,9 @@ $config = array(
'accesslogs' => false, //是否记录访问日志和限制IP
'upurl' => '', //上传文件附件地址(还不能使用)
'authorkey' => '', //系统授权的key,请联系官网获取
'companymode' => false //是否开启多单位模式切换
'companymode' => false, //是否开启多单位模式切换
'encrypt_key' => 'INJq4HXEGI'
);
//引入配置文件
$_confpath = $rock->strformat('?0/?1/?1Config.php', ROOT_PATH, PROJECT);
if(file_exists($_confpath)){
......@@ -64,7 +72,6 @@ if(file_exists($_confpath)){
ini_set('memory_limit', $config['memory_limit']);
if($config['timeout']>-1 && function_exists('set_time_limit'))set_time_limit($config['timeout']);
}
$_confpath = ''.ROOT_PATH.'/config/author.php';
if(file_exists($_confpath)){
$config['authorkey'] = require($_confpath);
......@@ -92,6 +99,7 @@ define('HIGHPASS', $config['highpass']);
define('SYSURL', ''.URL.PATH.'.php');
define('UPURL', $config['upurl']);
define('ISMORECOM', $config['companymode']);
define('ENCRYPT_KEY',$config['encrypt_key']);
$_confpath = ''.ROOT_PATH.'/config/iplogs.php'; //这个用来限制IP访问的
if(file_exists($_confpath))include_once($_confpath);
......
<?php
/**
* 来自:信呼开发团队
* 作者:磐石(rainrock)
* 网址:http://www.rockoa.com/
* 系统默认配置文件,请不要去修改
* 要修改配置文件在:webmain/webmainConfig.php
*/
//调整session为redis
ini_set('session.save_handler', 'redis');
ini_set('session.save_path', 'tcp://192.168.1.222:6379');
ini_set('session.cookie_path', '/');
ini_set('session.cookie_domain', 'gonn.com.cn');
ini_set('session.cookie_lifetime', '1800');
ini_set('max_execution_time', 45);
ini_set('memory_limit', 256);
@session_start();
if(function_exists('date_default_timezone_set'))date_default_timezone_set('Asia/Shanghai'); //设置默认时区
header('Content-Type:text/html;charset=utf-8');
define('ROOT_PATH',str_replace('\\','/',dirname(dirname(__FILE__)))); //系统跟目录路径
include_once(''.ROOT_PATH.'/include/rockFun.php');
include_once(''.ROOT_PATH.'/include/Chajian.php');
include_once(''.ROOT_PATH.'/include/class/rockClass.php');
$rock = new rockClass();
$db = null;
$smarty = false;
define('HOST', $rock->host);
define('REWRITE', 'true');
if(!defined('PROJECT'))define('PROJECT', $rock->get('p', 'webmain'));
if(!defined('ENTRANCE'))define('ENTRANCE', 'index');
$config = array(
'title' => '信呼',
'url' => '',
'urly' => 'http://www.rockoa.com/', //官网域名地址,修改后就无法提供在线升级了。
'db_host' => '127.0.0.1',
'db_user' => 'root',
'db_pass' => '',
'db_base' => '',
'perfix' => '',
'qom' => '',
'highpass' => '',
'install' => false,
'version' => require('version.php'),
'path' => 'index',
'updir' => 'upload',
'dbencrypt' => false,
'sqllog' => false,
'checksign' => false, //列表请求是否验证
'memory_limit' => '', //运行内存大小
'timeout' => -1, //抄送时间(秒),-1默认的
'db_drive' => 'mysqli', //数据库操作驱动
'db_engine' => 'MyISAM', //数据库默认引擎
'debug' => true, //默认debug模式
'reim_show' => true, //首页是否显示REIM
'mobile_show' => true, //首页是否显示手机版
'accesslogs' => false, //是否记录访问日志和限制IP
'upurl' => '', //上传文件附件地址(还不能使用)
'authorkey' => '', //系统授权的key,请联系官网获取
'companymode' => false, //是否开启多单位模式切换
'encrypt_key' => 'INJq4HXEGI'
);
//引入配置文件
$_confpath = $rock->strformat('?0/?1/?1Config.php', ROOT_PATH, PROJECT);
if(file_exists($_confpath)){
$_tempconf = require($_confpath);
foreach($_tempconf as $_tkey=>$_tvs)$config[$_tkey] = $_tvs;
if(isempt($config['url']))$config['url'] = $rock->url();
if(!isempt($config['memory_limit']) && function_exists('ini_set'))
ini_set('memory_limit', $config['memory_limit']);
if($config['timeout']>-1 && function_exists('set_time_limit'))set_time_limit($config['timeout']);
}
$_confpath = ''.ROOT_PATH.'/config/author.php';
if(file_exists($_confpath)){
$config['authorkey'] = require($_confpath);
}
define('DEBUG', $config['debug']);
error_reporting(DEBUG ? E_ALL : 0);
define('TITLE', $config['title']);
define('URL', $config['url']);
define('URLY', $config['urly']);
define('PATH', $config['path']);
define('DB_DRIVE', $config['db_drive']);
define('DB_HOST', $config['db_host']);
define('DB_USER', $config['db_user']);
define('DB_PASS', $config['db_pass']);
define('DB_BASE', $config['db_base']);
define('UPDIR', $config['updir']);
define('PREFIX', $config['perfix']);
define('QOM', $config['qom']);
define('VERSION', $config['version']);
define('HIGHPASS', $config['highpass']);
define('SYSURL', ''.URL.PATH.'.php');
define('UPURL', $config['upurl']);
define('ISMORECOM', $config['companymode']);
define('ENCRYPT_KEY',$config['encrypt_key']);
$_confpath = ''.ROOT_PATH.'/config/iplogs.php'; //这个用来限制IP访问的
if(file_exists($_confpath))include_once($_confpath);
$rock->initRock();
客户名称:李明婷保存接口失败 客户编号:CUST24035保存接口成功 执行时间:0.44587397575378 s
客户编号:CUST24035提交接口成功 执行时间:1.0541179180145 s
客户编号:CUST24035审核接口成功 执行时间:0.17777585983276 s
客户名称:北京盟友软件技术有限公司保存接口失败 客户名称:北京中物研协信息科技有限公司保存接口失败
\ No newline at end of file
客户名称:北京盟友软件技术有限公司保存接口失败 客户名称:北京中物研协信息科技有限公司保存接口失败 客户编号:CUST24038保存接口成功 执行时间:4.0338180065155 s
客户编号:CUST24038提交接口成功 执行时间:0.97426390647888 s
客户编号:CUST24038审核接口成功 执行时间:0.11690092086792 s
客户编号:CUST24039保存接口成功 执行时间:4.9952509403229 s
客户编号:CUST24039提交接口成功 执行时间:0.93612313270569 s
客户编号:CUST24039审核接口成功 执行时间:0.10437297821045 s
客户名称:北京华电万通科技有限公司保存接口失败 客户编号:CUST24041保存接口成功 执行时间:1.7609069347382 s
客户编号:CUST24041提交接口成功 执行时间:0.12820100784302 s
客户编号:CUST24041审核接口成功 执行时间:0.16964101791382 s
客户名称:中国铁塔股份有限公司保定市分公司保存接口失败 客户名称:北京市石景山区人民政府八角街道办事处保存接口失败 客户编号:CUST24044保存接口成功 执行时间:0.33451318740845 s
客户编号:CUST24044提交接口成功 执行时间:1.1384689807892 s
客户编号:CUST24044审核接口成功 执行时间:0.1682608127594 s
客户编号:CUST24045保存接口成功 执行时间:0.34392809867859 s
客户编号:CUST24045提交接口成功 执行时间:0.051002979278564 s
客户编号:CUST24045审核接口成功 执行时间:0.10890913009644 s
客户编号:CUST24046保存接口成功 执行时间:0.325199842453 s
客户编号:CUST24046提交接口成功 执行时间:0.060286998748779 s
客户编号:CUST24046审核接口成功 执行时间:0.12357497215271 s
客户名称:北京志同道和科技有限公司保存接口失败 客户编号:CUST24048保存接口成功 执行时间:0.34796094894409 s
客户编号:CUST24048提交接口成功 执行时间:1.2458350658417 s
客户编号:CUST24048审核接口成功 执行时间:0.18614315986633 s
客户名称:易电务(北京)科技有限公司保存接口失败 客户编号:CUST24050保存接口成功 执行时间:1.4224369525909 s
客户编号:CUST24050提交接口成功 执行时间:0.11602902412415 s
客户编号:CUST24050审核接口成功 执行时间:0.18425989151001 s
......@@ -89,3 +89,34 @@
供应商名称:北京勃旺达幕墙装饰有限公司保存接口失败 供应商名称:北京茗珊商贸有限公司保存接口失败 供应商编号:VEN04980保存接口成功 执行时间:2.5292918682098 s
供应商编号:VEN04980提交接口成功 执行时间:1.2119219303131 s
供应商编号:VEN04980审核接口成功 执行时间:0.16977000236511 s
供应商名称:澳思美日用化工(广州)有限公司保存接口失败 供应商编号:VEN04982保存接口成功 执行时间:1.3278410434723 s
供应商编号:VEN04982提交接口成功 执行时间:1.1011469364166 s
供应商编号:VEN04982审核接口成功 执行时间:0.22348093986511 s
供应商名称:北京厚德载物物业管理有限公司保存接口失败 供应商名称:广州市丽影物业管理有限公司保存接口失败 解析字段(Key:注册资金(万元),name:FRegisterFund)时发生异常,异常信息:解析字段(Key:注册资金(万元),name:FRegisterFund)时发生异常,异常信息:输入字符串的格式不正确。 在 Kingdee.BOS.WebApi.FormService.MapPropertyService.MapComplexProperty(String pkProperty, Dictionary`2 sourceObj, DynamicObject targetObj, Int32 rowIndex, HashSet`1 NeedUpDateFields)
在 Kingdee.BOS.WebApi.FormService.Save.Revole()
在 Kingdee.BOS.WebApi.FormService.Save.Execute()
在 Kingdee.BOS.WebApi.FormService.BillOperationService.ExecuteOperation(FormOperation op, String data)供应商编号:VEN04985保存接口成功 执行时间:4.3612170219421 s
供应商编号:VEN04985提交接口成功 执行时间:0.74294400215149 s
供应商编号:VEN04985审核接口成功 执行时间:0.1679470539093 s
供应商编号:VEN04986保存接口成功 执行时间:0.76924610137939 s
供应商编号:VEN04986提交接口成功 执行时间:0.11392283439636 s
供应商编号:VEN04986审核接口成功 执行时间:0.15841603279114 s
供应商编号:VEN04987保存接口成功 执行时间:1.7849349975586 s
供应商编号:VEN04987提交接口成功 执行时间:1.0678570270538 s
供应商编号:VEN04987审核接口成功 执行时间:0.17339086532593 s
供应商编号:VEN04988保存接口成功 执行时间:0.2987380027771 s
供应商编号:VEN04988提交接口成功 执行时间:0.05515718460083 s
供应商编号:VEN04988审核接口成功 执行时间:0.09217095375061 s
供应商名称:北京顺风顺成物业管理有限公司保存接口失败 供应商名称:北京金通时代信息技术有限责任公司保存接口失败 供应商名称:北京路通丰盛菜市场有限责任公司保存接口失败 供应商名称:北京悦豪物业管理有限公司第三分公司保存接口失败 解析字段(Key:注册资金(万元),name:FRegisterFund)时发生异常,异常信息:解析字段(Key:注册资金(万元),name:FRegisterFund)时发生异常,异常信息:输入字符串的格式不正确。 在 Kingdee.BOS.WebApi.FormService.MapPropertyService.MapComplexProperty(String pkProperty, Dictionary`2 sourceObj, DynamicObject targetObj, Int32 rowIndex, HashSet`1 NeedUpDateFields)
在 Kingdee.BOS.WebApi.FormService.Save.Revole()
在 Kingdee.BOS.WebApi.FormService.Save.Execute()
在 Kingdee.BOS.WebApi.FormService.BillOperationService.ExecuteOperation(FormOperation op, String data)供应商名称:北京金泰嘉业房地产开发有限公司保存接口失败 供应商名称:北京中原华夏物业管理有限公司保存接口失败 解析字段(Key:注册资金(万元),name:FRegisterFund)时发生异常,异常信息:解析字段(Key:注册资金(万元),name:FRegisterFund)时发生异常,异常信息:输入字符串的格式不正确。 在 Kingdee.BOS.WebApi.FormService.MapPropertyService.MapComplexProperty(String pkProperty, Dictionary`2 sourceObj, DynamicObject targetObj, Int32 rowIndex, HashSet`1 NeedUpDateFields)
在 Kingdee.BOS.WebApi.FormService.Save.Revole()
在 Kingdee.BOS.WebApi.FormService.Save.Execute()
在 Kingdee.BOS.WebApi.FormService.BillOperationService.ExecuteOperation(FormOperation op, String data)供应商名称:北京观音寺物业管理有限公司保存接口失败 供应商编号:VEN04995保存接口成功 执行时间:0.33871698379517 s
供应商编号:VEN04995提交接口成功 执行时间:0.89911007881165 s
供应商编号:VEN04995审核接口成功 执行时间:0.14660882949829 s
供应商编号:VEN04996保存接口成功 执行时间:0.3246431350708 s
供应商编号:VEN04996提交接口成功 执行时间:0.059867143630981 s
供应商编号:VEN04996审核接口成功 执行时间:0.097572088241577 s
供应商名称:北京敬美定建材经营部保存接口失败
\ No newline at end of file
//流程模块【account_detail.账户明细】下录入页面自定义js页面,初始函数
function initbodys(){
}
\ No newline at end of file
//流程模块【account_list.资金账户】下录入页面自定义js页面,初始函数
function initbodys(){
}
\ No newline at end of file
//流程模块【cost_center.成本中心】下录入页面自定义js页面,初始函数
function initbodys(){
}
\ No newline at end of file
//流程模块【fund_deposit.资金入账】下录入页面自定义js页面,初始函数
function initbodys(){
}
\ No newline at end of file
//流程模块【fund_transfer.资金划拨】下录入页面自定义js页面,初始函数
function initbodys(){
c.onselectdata['account']=function(d){
form('tmp_account').value = d.value;
};
c.onselectdatabefore=function(fid,zb){
var account = form('tmp_account').value;
if(fid == 'toaccount') {
if(form('tmp_account').value ==''){
return '请选择转入账户';
}
return {'account':account}
}
}
}
//流程模块【hisoa.历史OA信息展示】下录入页面自定义js页面,初始函数
function initbodys(){
}
\ No newline at end of file
//流程模块【hklist.回款单列表】下录入页面自定义js页面,初始函数
function initbodys(){
c.onselectdata['hkunit']=function(d){
form('tmp_hkunit').value = d.name;
};
c.onselectdatabefore=function(fid,zb){
var tmp_hkunit = form('tmp_hkunit').value;
if(fid == 'hkdetail0_0') {
if(form('tmp_hkunit').value ==''){
return '请选择回款单位';
}
return {'hkunit':tmp_hkunit}
}
if(fid == 'hkdetail0_1') {
if(form('tmp_hkunit').value ==''){
return '请选择回款单位';
}
return {'hkunit':tmp_hkunit}
}
if(fid == 'hkdetail0_2') {
if(form('tmp_hkunit').value ==''){
return '请选择回款单位';
}
return {'hkunit':tmp_hkunit}
}
if(fid == 'hkdetail0_3') {
if(form('tmp_hkunit').value ==''){
return '请选择回款单位';
}
return {'hkunit':tmp_hkunit}
}
if(fid == 'hkdetail0_4') {
if(form('tmp_hkunit').value ==''){
return '请选择回款单位';
}
return {'hkunit':tmp_hkunit}
}
if(fid == 'hkdetail0_5') {
if(form('tmp_hkunit').value ==''){
return '请选择回款单位';
}
return {'hkunit':tmp_hkunit}
}
if(fid == 'hkdetail0_6') {
if(form('tmp_hkunit').value ==''){
return '请选择回款单位';
}
return {'hkunit':tmp_hkunit}
}
if(fid == 'hkdetail0_7') {
if(form('tmp_hkunit').value ==''){
return '请选择回款单位';
}
return {'hkunit':tmp_hkunit}
}
if(fid == 'hkdetail0_8') {
if(form('tmp_hkunit').value ==''){
return '请选择回款单位';
}
return {'hkunit':tmp_hkunit}
}
if(fid == 'hkdetail0_9') {
if(form('tmp_hkunit').value ==''){
return '请选择回款单位';
}
return {'hkunit':tmp_hkunit}
}
if(fid == 'hkdetail0_10') {
if(form('tmp_hkunit').value ==''){
return '请选择回款单位';
}
return {'hkunit':tmp_hkunit}
}
if(fid == 'hkdetail0_11') {
if(form('tmp_hkunit').value ==''){
return '请选择回款单位';
}
return {'hkunit':tmp_hkunit}
}
if(fid == 'hkdetail0_12') {
if(form('tmp_hkunit').value ==''){
return '请选择回款单位';
}
return {'hkunit':tmp_hkunit}
}
if(fid == 'hkdetail0_13') {
if(form('tmp_hkunit').value ==''){
return '请选择回款单位';
}
return {'hkunit':tmp_hkunit}
}
if(fid == 'hkdetail0_14') {
if(form('tmp_hkunit').value ==''){
return '请选择回款单位';
}
return {'hkunit':tmp_hkunit}
}
if(fid == 'hkdetail0_15') {
if(form('tmp_hkunit').value ==''){
return '请选择回款单位';
}
return {'hkunit':tmp_hkunit}
}
if(fid == 'hkdetail0_16') {
if(form('tmp_hkunit').value ==''){
return '请选择回款单位';
}
return {'hkunit':tmp_hkunit}
}
if(fid == 'hkdetail0_17') {
if(form('tmp_hkunit').value ==''){
return '请选择回款单位';
}
return {'hkunit':tmp_hkunit}
}
if(fid == 'hkdetail0_18') {
if(form('tmp_hkunit').value ==''){
return '请选择回款单位';
}
return {'hkunit':tmp_hkunit}
}
if(fid == 'hkdetail0_19') {
if(form('tmp_hkunit').value ==''){
return '请选择回款单位';
}
return {'hkunit':tmp_hkunit}
}
if(fid == 'hkdetail0_20') {
if(form('tmp_hkunit').value ==''){
return '请选择回款单位';
}
return {'hkunit':tmp_hkunit}
}
}
c.onselectdata['hkdetail0_0']=function(d) {
form('yhamount0_0').value=d.hkamount;
form('khamount0_0').value=d.hkamountcan;
form('hks_id0_0').value=d.value;
bindeventchange()
};
c.onselectdata['hkdetail0_1']=function(d) {
form('yhamount0_1').value=d.hkamount;
form('khamount0_1').value=d.hkamountcan;
form('hks_id0_1').value=d.value;
bindeventchange()
};
c.onselectdata['hkdetail0_2']=function(d) {
form('yhamount0_2').value=d.hkamount;
form('khamount0_2').value=d.hkamountcan;
bindeventchange()
};
c.onselectdata['hkdetail0_3']=function(d) {
form('yhamount0_3').value=d.hkamount;
form('khamount0_3').value=d.hkamountcan;
bindeventchange()
};
c.onselectdata['hkdetail0_4']=function(d) {
form('yhamount0_4').value=d.hkamount;
form('khamount0_4').value=d.hkamountcan;
bindeventchange()
};
c.onselectdata['hkdetail0_5']=function(d) {
form('yhamount0_5').value=d.hkamount;
form('khamount0_5').value=d.hkamountcan;
bindeventchange()
};
c.onselectdata['hkdetail0_6']=function(d) {
form('yhamount0_6').value=d.hkamount;
form('khamount0_6').value=d.hkamountcan;
bindeventchange()
};
c.onselectdata['hkdetail0_7']=function(d) {
form('yhamount0_7').value=d.hkamount;
form('khamount0_7').value=d.hkamountcan;
bindeventchange()
};
c.onselectdata['hkdetail0_8']=function(d) {
form('yhamount0_8').value=d.hkamount;
form('khamount0_8').value=d.hkamountcan;
bindeventchange()
};
c.onselectdata['hkdetail0_9']=function(d) {
form('yhamount0_9').value=d.hkamount;
form('khamount0_9').value=d.hkamountcan;
bindeventchange()
};
c.onselectdata['hkdetail0_10']=function(d) {
form('yhamount0_10').value=d.hkamount;
form('khamount0_10').value=d.hkamountcan;
bindeventchange()
};
c.onselectdata['hkdetail0_11']=function(d) {
form('yhamount0_11').value=d.hkamount;
form('khamount0_11').value=d.hkamountcan;
bindeventchange()
};
c.onselectdata['hkdetail0_12']=function(d) {
form('yhamount0_12').value=d.hkamount;
form('khamount0_12').value=d.hkamountcan;
bindeventchange()
};
c.onselectdata['hkdetail0_13']=function(d) {
form('yhamount0_13').value=d.hkamount;
form('khamount0_13').value=d.hkamountcan;
bindeventchange()
};
c.onselectdata['hkdetail0_14']=function(d) {
form('yhamount0_14').value=d.hkamount;
form('khamount0_14').value=d.hkamountcan;
bindeventchange()
};
c.onselectdata['hkdetail0_15']=function(d) {
form('yhamount0_15').value=d.hkamount;
form('khamount0_15').value=d.hkamountcan;
bindeventchange()
};
c.onselectdata['hkdetail0_16']=function(d) {
form('yhamount0_16').value=d.hkamount;
form('khamount0_16').value=d.hkamountcan;
bindeventchange()
};
c.onselectdata['hkdetail0_17']=function(d) {
form('yhamount0_17').value=d.hkamount;
form('khamount0_17').value=d.hkamountcan;
bindeventchange()
};
c.onselectdata['hkdetail0_18']=function(d) {
form('yhamount0_18').value=d.hkamount;
form('khamount0_18').value=d.hkamountcan;
bindeventchange()
};
c.onselectdata['hkdetail0_19']=function(d) {
form('yhamount0_19').value=d.hkamount;
form('khamount0_19').value=d.hkamountcan;
bindeventchange()
};
c.onselectdata['hkdetail0_20']=function(d) {
form('yhamount0_20').value=d.hkamount;
form('khamount0_20').value=d.hkamountcan;
bindeventchange()
};
bindeventchange()
}
function eventdelsubrows(xu){
bindeventchange()
}
function eventaddsubrows(xu){
$("table#tablesub0").find("input[name~='yhamount0_']:last").val()=0;
$("table#tablesub0").find("input[name~='khamount0_']:last").val()=0;
bindeventchange()
}
//动态绑定change事件
function bindeventchange(){
//初始化应回金额
var yhamounts = 0;
$("table.tablesub").find("input[name~='yhamount0_']").each(function(){
if(!isNaN($(this).val())) yhamounts += Number($(this).val());
})
form('amount').value = yhamounts;
var khamounts = 0;
$("table.tablesub").find("input[name~='khamount0_']").each(function(){
if(!isNaN($(this).val())) khamounts += Number($(this).val());
})
form('amountcan').value = khamounts;
$("table.tablesub").find("input[name~='hkamountreal0_']").each(function(){
$(this).change(function(){
filteramount(this)
})
})
}
//过滤金额
function filteramount(obj) {
js.setmsg('');
//如果不符合规则则提示数值不合法
var val = obj.value;
if(val != ''){
val = parseFloat(obj.value);
var reg = new RegExp(/^\d+\.?\d*$/);
var res = reg.test(val);
if(!res) js.setmsg('金额只能填写数字或小数')
else obj.value = val.toFixed(2);
}
}
//流程模块【hkrequest.回款申请单】下录入页面自定义js页面,初始函数
function initbodys(){
}
\ No newline at end of file
//流程模块【supplier.供应商列表】下录入页面自定义js页面,初始函数
function initbodys(){
$(form("tend_type")).change(function(){
var receive = $("select[name='tend_type'] option:selected").val();
if(receive == 'JYLX02_SYS') {
$('input[name="tax_register_code"]').val('不适用');
$("select[name='tax_type']").val('其他');
$("select[name='trade']").val('其他');
$('input[name="legal_person"]').val('不适用');
$('input[name="register_fund"]').val('不适用');
$('input[name="register_code"]').val('不适用');
$('input[name="tend_permit"]').val('不适用');
$('input[name="register_address"]').val('不适用');
$('input[name="web_site"]').val('不适用');
$('input[name="pay_advance_amount"]').val('不适用');
$('#nnnn').html("<span style='white-space:nowrap;'><span style='white-space:normal;background-color:#CCCCCC;'><font color='red'>*</font></span>居民身份证号码</span>");
$('input[name="tax_register_code"]').attr("disabled","disabled");
$("select[name='tax_type']").attr("disabled","true");
$("select[name='trade']").attr("disabled","true");
$('input[name="legal_person"]').attr("disabled","disabled");
$('input[name="register_fund"]').attr("disabled","disabled");
$('input[name="register_code"]').attr("disabled","disabled");
$('input[name="tend_permit"]').attr("disabled","disabled");
$('input[name="register_address"]').attr("disabled","disabled");
$('input[name="web_site"]').attr("disabled","disabled");
$('input[name="pay_advance_amount"]').attr("disabled","disabled");
}else{
$('#nnnn').html("<span style='white-space:nowrap;'><span style='white-space:normal;background-color:#CCCCCC;'><font color='red'>*</font></span>统一社会信用代码</span>");
$('textarea[name="finance_desc"]').val('');
$('input[name="tax_register_code"]').val('');
$("select[name='tax_type']").val('');
$("select[name='trade']").val('');
$('input[name="legal_person"]').val('');
$('input[name="register_fund"]').val('');
$('input[name="register_code"]').val('');
$('input[name="tend_permit"]').val('');
$('input[name="register_address"]').val('');
$('input[name="web_site"]').val('');
$('input[name="pay_advance_amount"]').val('');
$('textarea[name="finance_desc"]').removeAttr("disabled");
$('input[name="tax_register_code"]').removeAttr("disabled");
$("select[name='tax_type']").removeAttr("disabled");
$("select[name='trade']").removeAttr("disabled");
$('input[name="legal_person"]').removeAttr("disabled");
$('input[name="register_fund"]').removeAttr("disabled");
$('input[name="register_code"]').removeAttr("disabled");
$('input[name="tend_permit"]').removeAttr("disabled");
$('input[name="register_address"]').removeAttr("disabled");
$('input[name="web_site"]').removeAttr("disabled");
$('input[name="pay_advance_amount"]').removeAttr("disabled");
}
})
}
function changesubmit(d){
if(d.tend_type=='JYLX02_SYS'){
var social_cre_code =$('input[name="social_cre_code"]').val();
if(social_cre_code==''){
return "居民身份证号码不能为空";
}
}else{
var social_cre_code =$('input[name="social_cre_code"]').val();
if(social_cre_code==''){
return "统一社会信用代码不能为空";
}
}
return false;
}
<?php
/**
* 此文件是流程模块【account_detail.账户明细】对应控制器接口文件。
*/
class mode_account_detailClassAction extends inputAction{
/**
* 重写函数:保存前处理,主要用于判断是否可以保存
* $table String 对应表名
* $arr Array 表单参数
* $id Int 对应表上记录Id 0添加时,大于0修改时
* $addbo Boolean 是否添加时
* return array('msg'=>'错误提示内容','rows'=> array()) 可返回空字符串,或者数组 rows 是可同时保存到数据库上数组
*/
protected function savebefore($table, $arr, $id, $addbo){
}
/**
* 重写函数:保存后处理,主要保存其他表数据
* $table String 对应表名
* $arr Array 表单参数
* $id Int 对应表上记录Id
* $addbo Boolean 是否添加时
*/
protected function saveafter($table, $arr, $id, $addbo){
}
}
\ No newline at end of file
<?php
/**
* 此文件是流程模块【account_list.资金账户】对应控制器接口文件。
*/
class mode_account_listClassAction extends inputAction{
/**
* 重写函数:保存前处理,主要用于判断是否可以保存
* $table String 对应表名
* $arr Array 表单参数
* $id Int 对应表上记录Id 0添加时,大于0修改时
* $addbo Boolean 是否添加时
* return array('msg'=>'错误提示内容','rows'=> array()) 可返回空字符串,或者数组 rows 是可同时保存到数据库上数组
*/
protected function savebefore($table, $arr, $id, $addbo){
}
/**
* 重写函数:保存后处理,主要保存其他表数据
* $table String 对应表名
* $arr Array 表单参数
* $id Int 对应表上记录Id
* $addbo Boolean 是否添加时
*/
protected function saveafter($table, $arr, $id, $addbo){
}
}
\ No newline at end of file
<?php
/**
* 此文件是流程模块【cost_center.成本中心】对应控制器接口文件。
*/
class mode_cost_centerClassAction extends inputAction{
/**
* 重写函数:保存前处理,主要用于判断是否可以保存
* $table String 对应表名
* $arr Array 表单参数
* $id Int 对应表上记录Id 0添加时,大于0修改时
* $addbo Boolean 是否添加时
* return array('msg'=>'错误提示内容','rows'=> array()) 可返回空字符串,或者数组 rows 是可同时保存到数据库上数组
*/
protected function savebefore($table, $arr, $id, $addbo){
}
/**
* 重写函数:保存后处理,主要保存其他表数据
* $table String 对应表名
* $arr Array 表单参数
* $id Int 对应表上记录Id
* $addbo Boolean 是否添加时
*/
protected function saveafter($table, $arr, $id, $addbo){
}
}
\ No newline at end of file
<?php
/**
* 此文件是流程模块【fund_deposit.资金入账】对应控制器接口文件。
*/
class mode_fund_depositClassAction extends inputAction{
/**
* 重写函数:保存前处理,主要用于判断是否可以保存
* $table String 对应表名
* $arr Array 表单参数
* $id Int 对应表上记录Id 0添加时,大于0修改时
* $addbo Boolean 是否添加时
* return array('msg'=>'错误提示内容','rows'=> array()) 可返回空字符串,或者数组 rows 是可同时保存到数据库上数组
*/
protected function savebefore($table, $arr, $id, $addbo){
}
/**
* 重写函数:保存后处理,主要保存其他表数据
* $table String 对应表名
* $arr Array 表单参数
* $id Int 对应表上记录Id
* $addbo Boolean 是否添加时
*/
protected function saveafter($table, $arr, $id, $addbo){
}
}
\ No newline at end of file
<?php
/**
* 此文件是流程模块【fund_transfer.资金划拨】对应控制器接口文件。
*/
class mode_fund_transferClassAction extends inputAction{
/**
* 重写函数:保存前处理,主要用于判断是否可以保存
* $table String 对应表名
* $arr Array 表单参数
* $id Int 对应表上记录Id 0添加时,大于0修改时
* $addbo Boolean 是否添加时
* return array('msg'=>'错误提示内容','rows'=> array()) 可返回空字符串,或者数组 rows 是可同时保存到数据库上数组
*/
protected function savebefore($table, $arr, $id, $addbo){
$name=$arr['account'];
// 检测转出账户钱是否足够?
$data=m('c_fund_account')->getone("`name`='$name'");
if($data['account_balance'] < $arr['trans_amount']){
return "转出账户余额不足";die;
}
}
/**
* 重写函数:保存后处理,主要保存其他表数据
* $table String 对应表名
* $arr Array 表单参数
* $id Int 对应表上记录Id
* $addbo Boolean 是否添加时
*/
protected function saveafter($table, $arr, $id, $addbo){
}
public function getaccountAjax(){
$numb = $this->post('numb');
$model = 'c_fund_account';
$sql = " id =$numb";
$cdata = m($model)->getone($sql,'id,name,level');
$level=$cdata['level'];
// $level1=$cdata['level']+1;
$sqla = " level =$level";
$data = m($model)->getall($sqla,'id as value,name');
$this->returnjson($data);
}
public function getaccount(){
$numb = $this->get('account');
$model = 'c_fund_account';
$sql = " id =$numb";
$cdata = m($model)->getone($sql,'id,name,level');
$level=$cdata['level'];
$levelto=$cdata['level']+1;
$sqla = " id !=$numb and level =$level or level =$levelto";
$data = m($model)->getall($sqla,'id as value,name');
$this->returnjson($data);
}
}
\ No newline at end of file
<?php
/**
* 此文件是流程模块【hisoa.历史OA信息展示】对应控制器接口文件。
*/
class mode_hisoaClassAction extends inputAction{
/**
* 重写函数:保存前处理,主要用于判断是否可以保存
* $table String 对应表名
* $arr Array 表单参数
* $id Int 对应表上记录Id 0添加时,大于0修改时
* $addbo Boolean 是否添加时
* return array('msg'=>'错误提示内容','rows'=> array()) 可返回空字符串,或者数组 rows 是可同时保存到数据库上数组
*/
protected function savebefore($table, $arr, $id, $addbo){
}
/**
* 重写函数:保存后处理,主要保存其他表数据
* $table String 对应表名
* $arr Array 表单参数
* $id Int 对应表上记录Id
* $addbo Boolean 是否添加时
*/
protected function saveafter($table, $arr, $id, $addbo){
}
}
\ No newline at end of file
<?php
/**
* 此文件是流程模块【hklist.回款单列表】对应控制器接口文件。
*/
class mode_hklistClassAction extends inputAction{
/**
* 重写函数:保存前处理,主要用于判断是否可以保存
* $table String 对应表名
* $arr Array 表单参数
* $id Int 对应表上记录Id 0添加时,大于0修改时
* $addbo Boolean 是否添加时
* return array('msg'=>'错误提示内容','rows'=> array()) 可返回空字符串,或者数组 rows 是可同时保存到数据库上数组
*/
protected function savebefore($table, $arr, $id, $addbo){
if($arr['amountreal']>$arr['amountcan']){
return '总实回金额不能大于总可回金额';die;
}
}
/**
* 重写函数:保存后处理,主要保存其他表数据
* $table String 对应表名
* $arr Array 表单参数
* $id Int 对应表上记录Id
* $addbo Boolean 是否添加时
*/
protected function saveafter($table, $arr, $id, $addbo){
}
public function gethkdetail(){
$numb = $this->get('hkunit');
$model = 'hkrequest';
$sql = " hkunit ='$numb' and status = 1";
$data = m($model)->getall($sql,'id as value,CONCAT(title, "(",contractnum,sponsor,sponsordept,")") as name,hkamount,hkamountcan');
$this->returnjson($data);
}
}
\ No newline at end of file
<?php
/**
* 此文件是流程模块【hkrequest.回款申请单】对应控制器接口文件。
*/
class mode_hkrequestClassAction extends inputAction{
/**
* 重写函数:保存前处理,主要用于判断是否可以保存
* $table String 对应表名
* $arr Array 表单参数
* $id Int 对应表上记录Id 0添加时,大于0修改时
* $addbo Boolean 是否添加时
* return array('msg'=>'错误提示内容','rows'=> array()) 可返回空字符串,或者数组 rows 是可同时保存到数据库上数组
*/
protected function savebefore($table, $arr, $id, $addbo){
}
/**
* 重写函数:保存后处理,主要保存其他表数据
* $table String 对应表名
* $arr Array 表单参数
* $id Int 对应表上记录Id
* $addbo Boolean 是否添加时
*/
protected function saveafter($table, $arr, $id, $addbo){
}
}
\ No newline at end of file
<hr style="white-space:normal;" /><p style="white-space:normal;"><table style="width:100%;border-collapse:separate;border-spacing:0px 10px;"><tbody><tr><td style="padding:10px;width:100px;">单号</td><td width="300px">{base_sericnum}</td><td style="padding:10px;" width="100px">*创建时间</td><td width="300px">{create_time}</td></tr><tr><td style="padding:10px;width:100px;">*账户名称</td><td width="300px">{name}</td><td style="padding:10px;width:100px;">*账户编码</td><td width="300px">{number}</td></tr><tr><td style="padding:10px;width:100px;">*账户余额</td><td width="300px">{account_balance}</td><td style="padding:10px;width:100px;">*货币类型</td><td width="300px">{currency_type}</td></tr><tr><td style="padding:10px;width:100px;">*账户级别</td><td width="300px">{level}</td><td style="padding:10px;width:100px;">*账户类型</td><td width="300px">{type}</td></tr><tr><td style="padding:10px;width:100px;">*成本中心</td><td width="300px">{cost_id}</td><td style="padding:10px;width:100px;">*授权用户</td><td width="300px">{uid}</td></tr></tbody></table></p><hr style="white-space:normal;" />
\ No newline at end of file
<hr style="white-space:normal;" /><p style="white-space:normal;"><table style="width:100%;border-collapse:separate;border-spacing:0px 10px;"><tbody><tr><td width="100px">单号</td><td width="300px">{base_sericnum}</td><td width="100px">*创建时间</td><td width="300px">{create_time}</td></tr><tr><td width="100px">*编码</td><td width="300px">{code}</td><td width="100px">*名称</td><td width="300px">{name}</td></tr><tr><td width="100px">*负责人</td><td width="300px">{principalid}</td><td width="100px">*类型</td><td width="300px">{type}</td></tr><tr><td width="100px">*上级成本中心</td><td width="300px">{pid}</td><td width="100px">*状态</td><td width="300px">{status}</td></tr></tbody></table></p><hr style="white-space:normal;" />
\ No newline at end of file
<hr style="white-space:normal;" /><p style="white-space:normal;"><table style="width:100%;border-collapse:separate;border-spacing:0px 10px;"><tbody><tr><td width="100px">交易流水</td><td width="300px">{trans_numb}</td><td width="100px">*操作人</td><td width="300px">{base_name}</td></tr><tr><td width="100px">*资金来源</td><td width="300px">{account}</td><td width="100px">*转入账户</td><td width="300px">{toaccount}</td></tr><tr><td width="100px">*转入金额</td><td width="300px">{trans_amount}</td><td width="100px">*入账类型</td><td width="300px">{business_type}</td></tr><tr><td width="100px">情况说明</td><td width="300px">{remark}</td></tr></tbody></table></p><hr style="white-space:normal;" />{create_time}
\ No newline at end of file
<hr style="white-space:normal;" /><p style="white-space:normal;"><table style="width:100%;border-collapse:separate;border-spacing:0px 20px;"><tbody><tr><td width="100px">*交易流水</td><td width="300px">{trans_numb}</td><td width="100px">*操作人</td><td width="300px">{base_name}</td></tr><tr><td width="100px">*转出账户</td><td width="300px">{account}{tmp_account}</td><td width="100px">*转入账户</td><td width="300px">{toaccount}</td></tr><tr><td width="100px">*转出金额</td><td width="300px">{trans_amount}</td><td width="100px">*划拨时间</td><td width="300px">{create_time}</td></tr><tr><td width="100px">*划拨类型</td><td width="300px">{business_type}</td><td width="100px">*资金利率</td><td width="300px">{service_fee}</td></tr><tr><td width="100px">*资金规则</td><td width="300px">{fund_rule}</td><td width="100px"></td><td width="300px"></td></tr><tr><td width="100px">情况说明</td><td width="300px">{remark}</td></tr></tbody></table></p><hr style="white-space:normal;" />
\ No newline at end of file
<p><table class="" style="width:100%;" bordercolor="#000000" border="1"><tbody><tr><td style="width:15%;background-color:#CCCCCC;" class="ys1" width="15%" align="center">*历史OA流水号</td><td class="ys2" width="35%">{his_oa_numb}</td><td style="width:15%;background-color:#CCCCCC;" class="ys1" width="15%" align="center">*项目名称</td><td class="ys2" width="35%">{project_name}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;" class="ys1">*付款类型</td><td class="ys2">{payment_type}</td><td style="text-align:center;background-color:#CCCCCC;" class="ys1">*付款金额</td><td class="ys2">{amount}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;" class="ys1">*付款方式</td><td class="ys2">{payment_mode}</td><td style="text-align:center;background-color:#CCCCCC;" class="ys1">*申请人</td><td class="ys2" style="text-align:left;vertical-align:bottom;">{applicant}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;" class="ys1">*所属部门</td><td class="ys2" style="text-align:left;vertical-align:bottom;">{department}</td><td style="text-align:center;background-color:#CCCCCC;" class="ys1">*申请时间</td><td class="ys2">{create_time}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;" class="ys1">*付款说明</td><td class="ys2" style="text-align:left;vertical-align:bottom;" colspan="3">{pay_explain}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;" class="ys1">*收款人</td><td class="ys2" style="text-align:left;vertical-align:bottom;">{payee}</td><td style="text-align:center;background-color:#CCCCCC;" class="ys1">*所属合同编号<br /></td><td class="ys2">{contract}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;" class="ys1">*相关项目编号<br /></td><td class="ys2">{project_numb}</td><td style="text-align:center;background-color:#CCCCCC;" class="ys1">*历史归属部门</td><td class="ys2">{his_dept}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;">*最终状态</td><td class="ys2" colspan="3">{final_status}<br /></td></tr></tbody></table></p>
\ No newline at end of file
<p><br /><table class="" border="1" bordercolor="#000000" style="width:100%;"><tbody><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;"><span style="text-indent:28.2353px;white-space:normal;"><span style="text-align:center;text-indent:28.2353px;white-space:normal;background-color:#CCCCCC;">*标题</span></span><br /></td><td class="ys2" colspan="3" style="text-align:left;"><span style="text-indent:28.2353px;white-space:normal;"><span style="text-indent:28.2353px;white-space:normal;">{title}</span></span><br /></td></tr><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;"><span style="text-align:center;text-indent:28.2353px;white-space:normal;"><span style="text-align:center;text-indent:28.2353px;white-space:normal;">*单据编号</span></span> </td><td class="ys2"><span style="text-indent:28.2353px;white-space:normal;">{docnum}</span><br /></td><td style="text-align:center;background-color:#CCCCCC;">*发起日期<br /></td><td>{sponsordate}<br /></td></tr><tr><td class="ys1" height="34" align="right" width="15%" style="text-align:center;width:15%;height:34px;background-color:#CCCCCC;">*发起人</td><td class="ys2" width="35%">{sponsor}</td><td class="ys1" align="right" width="15%" style="text-align:center;width:15%;background-color:#CCCCCC;">*发起人部门</td><td class="ys2" width="35%">{sponsordept}</td></tr><tr><td class="ys1" height="34" align="right" style="text-align:center;height:6px;background-color:#CCCCCC;" colspan="4"><br /></td></tr><tr><td class="ys1" height="34" align="right" style="text-align:center;height:34px;background-color:#CCCCCC;">*回款单位</td><td class="ys2">{hkunit}{tmp_hkunit}</td><td class="ys1" style="text-align:center;background-color:#CCCCCC;">*总应回金额<br /></td><td class="ys2">{amount}<br /></td></tr><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;">*总可回金额<br /></td><td class="ys2">{amountcan}<br /></td><td class="ys1" style="text-align:center;background-color:#CCCCCC;">*总实回金额<br /></td><td class="ys2">{amountreal}<br /></td></tr><tr><td class="ys2" style="background-color:#CCCCCC;" colspan="4"><p><strong>回款明细</strong> </p></td></tr><tr><td class="ys1" style="text-align:center;" colspan="4"><table class="tablesub ke-zeroborder" id="tablesub0" style="width:100%;" border="0" cellspacing="0" cellpadding="0"><tbody><tr><td width="10%" nowrap="nowrap">序号</td><td nowrap="nowrap">*回款明细</td><td nowrap="nowrap" style="width:15%;">*实回金额/元</td><td nowrap="nowrap" style="width:15%;">*回款状态</td><td width="5%" nowrap="nowrap">操作</td></tr><tr><td>[xuhao0,0][hks_id0,0][khamount0,0][yhamount0,0]</td><td>[hkdetail0,0]</td><td>[hkamountreal0,0]</td><td>[hkstatus0,0]</td><td>{删,0}</td></tr></tbody></table><div style="background-color:#F1F1F1;">{新增,0}</div><br /></td></tr></tbody></table></p><br />
\ No newline at end of file
<p>*回款状态:{status}<br /><table class="" border="1" bordercolor="#000000" style="width:100%;"><tbody><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;"><span style="text-indent:28.2353px;white-space:normal;"><span style="text-align:center;text-indent:28.2353px;white-space:normal;background-color:#CCCCCC;">*标题</span></span><br /></td><td class="ys2" colspan="3" style="text-align:left;"><span style="text-indent:28.2353px;white-space:normal;"><span style="text-indent:28.2353px;white-space:normal;">{title}</span></span><br /></td></tr><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;"><span style="text-align:center;text-indent:28.2353px;white-space:normal;"><span style="text-align:center;text-indent:28.2353px;white-space:normal;">*单据编号</span></span> </td><td class="ys2"><span style="text-indent:28.2353px;white-space:normal;">{docnum}</span><br /></td><td style="text-align:center;background-color:#CCCCCC;">*发起日期<br /></td><td>{sponsordate}<br /></td></tr><tr><td class="ys1" height="34" align="right" width="15%" style="text-align:center;width:15%;height:34px;background-color:#CCCCCC;">*发起人</td><td class="ys2" width="35%">{sponsor}</td><td class="ys1" align="right" width="15%" style="text-align:center;width:15%;background-color:#CCCCCC;">*发起人部门</td><td class="ys2" width="35%">{sponsordept}</td></tr><tr><td class="ys1" height="34" align="right" style="text-align:center;height:6px;background-color:#CCCCCC;" colspan="4"><br /></td></tr><tr><td class="ys1" height="34" align="right" style="text-align:center;height:34px;background-color:#CCCCCC;">*回款单位</td><td class="ys2">{hkunit}</td><td class="ys1" style="text-align:center;background-color:#CCCCCC;">*回款税率<br /></td><td class="ys2">{amounttax}<br /></td></tr><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;">*应回金额<br /></td><td class="ys2">{hkamount}<br /></td><td class="ys1" style="text-align:center;background-color:#CCCCCC;">*可回金额<br /></td><td class="ys2">{hkamountcan}<br /></td></tr><tr><td class="ys2" style="background-color:#CCCCCC;" colspan="4"><p><strong>回款明细</strong> </p></td></tr><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;">*合同编号<br /></td><td class="ys2">{contractnum}<br /></td><td class="ys1" style="text-align:center;background-color:#CCCCCC;"><span style="text-align:center;text-indent:28px;white-space:normal;background-color:#CCCCCC;">*回款类型</span><br /></td><td class="ys1"><span style="text-indent:28px;white-space:normal;">{hktype}</span><br /></td></tr><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;">计划回款日期<br /></td><td class="ys2">{hkdate}<br /></td><td class="ys1" style="text-align:center;background-color:#CCCCCC;">*项目编号<br /></td><td class="ys2">{objnum}<br /></td></tr></tbody></table></p><br />
\ No newline at end of file
<p><span style="font-size:small;"><br /></span><table bordercolor="#000000" style="width:100%;" border="1"><tbody><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;"><span style="text-align:center;text-indent:28px;white-space:normal;background-color:#CCCCCC;">*</span>单号<br /></td><td class="ys2" colspan="3">{docnum}<br /></td></tr><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;"><span style="text-align:center;text-indent:28px;white-space:normal;background-color:#CCCCCC;">*</span>标题<br /></td><td class="ys2" colspan="3">{fkname}<br /></td></tr><tr><td height="34" align="right" class="ys1" style="height:34px;text-align:center;background-color:#CCCCCC;"><span style="text-align:center;text-indent:28px;white-space:normal;background-color:#CCCCCC;">*</span>申请人</td><td class="ys2">{applicant}</td><td align="right" class="ys1" style="text-align:center;background-color:#CCCCCC;"><span style="text-align:center;text-indent:28px;white-space:normal;background-color:#CCCCCC;">*</span>申请部门</td><td class="ys2">{applicationdpt}</td></tr><tr><td width="15%" height="34" align="right" class="ys1" style="width:15%;height:34px;text-align:center;background-color:#CCCCCC;">*申请日期</td><td width="35%" class="ys2">{applydate}</td><td width="15%" align="right" class="ys1" style="text-align:center;"><br /></td><td width="35%" class="ys2"></td></tr><tr><td height="34" align="right" class="ys1" style="height:34px;text-align:center;background-color:#CCCCCC;">*成本中心</td><td class="ys2" colspan="3">{cbzxid}</td></tr><tr><td height="34" align="right" class="ys1" style="height:34px;text-align:center;background-color:#CCCCCC;">*付款方式</td><td class="ys2">{paymentMethod}</td><td align="right" class="ys1" style="text-align:center;background-color:#CCCCCC;">*付款金额<span style="text-align:center;text-indent:28px;white-space:normal;background-color:#CCCCCC;">(元)</span></td><td class="ys2">{amountOfThisPayment}</td></tr><tr><td height="34" align="right" class="ys1" style="height:34px;text-align:center;background-color:#CCCCCC;">*收款方<br /></td><td class="ys2">{payee}</td><td align="right" class="ys1" style="text-align:center;background-color:#CCCCCC;">*合同</td><td class="ys2">{contractNumber}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;">*收款方信息<br /></td><td class="ys2" colspan="3">{fkinfo}<br /></td></tr><tr><td height="34" align="right" class="ys1" style="height:34px;text-align:center;background-color:#CCCCCC;">*付款事由</td><td class="ys2" colspan="3">{paymentBy}</td></tr><tr><td height="34" align="right" class="ys1" style="height:34px;text-align:center;background-color:#CCCCCC;">*附件</td><td class="ys2" colspan="3">{fujian}</td></tr></tbody></table></p>
\ No newline at end of file
<p><span style="font-size:small;"><br /></span> <table bordercolor="#000000" style="width:100%;" border="1"><tbody><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;"><span style="text-align:center;text-indent:28px;white-space:normal;background-color:#CCCCCC;">*</span>单号<br /></td><td class="ys2" colspan="3">{docnum}<br /></td></tr><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;"><span style="text-align:center;text-indent:28px;white-space:normal;background-color:#CCCCCC;">*</span>标题<br /></td><td class="ys2" colspan="3">{fkname}<br /></td></tr><tr><td height="34" align="right" class="ys1" style="height:34px;text-align:center;background-color:#CCCCCC;"><span style="text-align:center;text-indent:28px;white-space:normal;background-color:#CCCCCC;">*</span>申请人</td><td class="ys2">{applicant}</td><td align="right" class="ys1" style="text-align:center;background-color:#CCCCCC;"><span style="text-align:center;text-indent:28px;white-space:normal;background-color:#CCCCCC;">*</span>申请部门</td><td class="ys2">{applicationdpt}</td></tr><tr><td width="15%" height="34" align="right" class="ys1" style="width:15%;height:34px;text-align:center;background-color:#CCCCCC;">*申请日期</td><td width="35%" class="ys2">{applydate}</td><td width="15%" align="right" class="ys1" style="text-align:center;width:15%;background-color:#CCCCCC;"><style="text-align:center;text-indent:28px;white-space:normal;background-color:#cccccc;">*收款方<br /></style="text-align:center;text-indent:28px;white-space:normal;background-color:#cccccc;"></td><td width="35%" class="ys2" style="width:35%;text-align:left;"><span style="white-space:normal;text-indent:28px;">{payee}</span> </td></tr><tr><td height="34" align="right" class="ys1" style="height:34px;text-align:center;background-color:#CCCCCC;">*付款方式</td><td class="ys2">{paymentMethod}</td><td align="right" class="ys1" style="text-align:center;background-color:#CCCCCC;">*付款金额<span style="text-align:center;text-indent:28px;white-space:normal;background-color:#CCCCCC;">()</span> </td><td class="ys2">{amountOfThisPayment}</td></tr><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;">*付款组织<br /></td><td class="ys2" colspan="3">{fkorg}<br /></td></tr><tr><td class="ys2" style="background-color:#CCCCCC;vertical-align:middle;" colspan="4"><p><strong>款项明细</strong> </p></td></tr><tr><td colspan="4"><table class="tablesub ke-zeroborder" id="tablesub0" style="width:100%;" border="0" cellspacing="0" cellpadding="0"><tbody><tr><td width="10%" nowrap="nowrap">序号</td><td nowrap="nowrap">*款项类型</td><td nowrap="nowrap">*金额()</td><td nowrap="nowrap">*成本中心</td><td nowrap="nowrap">*合同</td><td nowrap="nowrap">*发票号</td><td width="5%" nowrap="nowrap">操作</td></tr><tr><td>[xuhao0,0]</td><td>[charge_type0,0]</td><td>[charge_amount0,0]</td><td>[cbzx_code0,0]</td><td>[contract_id0,0]</td><td>[receipt_id0,0]</td><td>{删,0}</td></tr></tbody></table><div style="background-color:#F1F1F1;">{新增,0}</div><br /></td></tr><tr><td style="text-align:center;background-color:#CCCCCC;">*收款方信息<br /></td><td class="ys2" colspan="3">{fkinfo}<br /></td></tr><tr><td height="34" align="right" class="ys1" style="height:34px;text-align:center;background-color:#CCCCCC;">*付款事由</td><td class="ys2" colspan="3">{paymentBy}</td></tr><tr><td height="34" align="right" class="ys1" style="height:34px;text-align:center;background-color:#CCCCCC;">*附件</td><td class="ys2" colspan="3">{fujian}</td></tr></tbody></table></p>
\ No newline at end of file
<p><span style="font-size:small;"><br /></span> <table bordercolor="#000000" style="width:100%;" border="1"><tbody><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;"><span style="text-align:center;text-indent:28px;white-space:normal;background-color:#CCCCCC;">*</span>单号<br /></td><td class="ys2" colspan="3">{docnum}<br /></td></tr><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;"><span style="text-align:center;text-indent:28px;white-space:normal;background-color:#CCCCCC;">*</span>标题<br /></td><td class="ys2" colspan="3">{yfkname}<br /></td></tr><tr><td height="34" align="right" class="ys1" style="height:34px;text-align:center;background-color:#CCCCCC;"><span style="text-align:center;text-indent:28px;white-space:normal;background-color:#CCCCCC;">*</span>申请人</td><td class="ys2">{applicant}</td><td align="right" class="ys1" style="text-align:center;background-color:#CCCCCC;"><span style="text-align:center;text-indent:28px;white-space:normal;background-color:#CCCCCC;">*</span>申请部门</td><td class="ys2">{application}</td></tr><tr><td width="15%" height="34" align="right" class="ys1" style="width:15%;height:34px;text-align:center;background-color:#CCCCCC;">*申请日期</td><td width="35%" class="ys2" style="text-align:left;">{applydate}</td><td width="15%" align="right" class="ys1" style="text-align:center;"><br /></td><td width="35%" class="ys2"></td></tr><tr><td height="34" align="right" class="ys1" style="height:34px;text-align:center;background-color:#CCCCCC;">*成本中心</td><td class="ys2" colspan="3">{cbzxid}</td></tr><tr><td height="34" align="right" class="ys1" style="height:34px;text-align:center;background-color:#CCCCCC;">*付款方式</td><td class="ys2">{paymentMethod}</td><td align="right" class="ys1" style="text-align:center;background-color:#CCCCCC;">*付款金额(元)</td><td class="ys2">{amountOfThisPayment}</td></tr><tr><td height="34" align="right" class="ys1" style="height:34px;text-align:center;background-color:#CCCCCC;">*收款方<br /></td><td class="ys2">{payee}</td><td align="right" class="ys1" style="text-align:center;background-color:#CCCCCC;">合同</td><td class="ys2">{contractNumber}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;">*收款方信息<br /></td><td class="ys2" colspan="3">{fkinfo}<br /></td></tr><tr><td height="34" align="right" class="ys1" style="height:34px;text-align:center;background-color:#CCCCCC;">*付款事由</td><td class="ys2" colspan="3">{paymentBy}</td></tr><tr><td height="34" align="right" class="ys1" style="height:34px;text-align:center;background-color:#CCCCCC;">附件</td><td class="ys2" colspan="3">{fujian}</td></tr></tbody></table></p>
\ No newline at end of file
<p><span style="font-size:small;"><br /></span> <table bordercolor="#000000" style="width:100%;" border="1"><tbody><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;"><span style="text-align:center;text-indent:28px;white-space:normal;background-color:#CCCCCC;">*</span>单号<br /></td><td class="ys2" colspan="3">{docnum}<br /></td></tr><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;"><span style="text-align:center;text-indent:28px;white-space:normal;background-color:#CCCCCC;">*</span>标题<br /></td><td class="ys2" colspan="3">{yfkname}<br /></td></tr><tr><td height="34" align="right" class="ys1" style="height:34px;text-align:center;background-color:#CCCCCC;"><span style="text-align:center;text-indent:28px;white-space:normal;background-color:#CCCCCC;">*</span>申请人</td><td class="ys2">{applicant}</td><td align="right" class="ys1" style="text-align:center;background-color:#CCCCCC;"><span style="text-align:center;text-indent:28px;white-space:normal;background-color:#CCCCCC;">*</span>申请部门</td><td class="ys2">{application}</td></tr><tr><td width="15%" height="34" align="right" class="ys1" style="width:15%;height:34px;text-align:center;background-color:#CCCCCC;">*申请日期</td><td width="35%" class="ys2">{applydate}</td><td width="15%" align="right" class="ys1" style="text-align:center;width:15%;background-color:#CCCCCC;"><style="text-align:center;text-indent:28px;white-space:normal;background-color:#cccccc;">*收款方<br /></style="text-align:center;text-indent:28px;white-space:normal;background-color:#cccccc;"></td><td width="35%" class="ys2" style="width:35%;text-align:left;"><span style="white-space:normal;text-indent:28px;">{payee}</span> </td></tr><tr><td height="34" align="right" class="ys1" style="height:34px;text-align:center;background-color:#CCCCCC;">*付款方式</td><td class="ys2">{paymentMethod}</td><td align="right" class="ys1" style="text-align:center;background-color:#CCCCCC;">*付款金额<span style="text-align:center;text-indent:28px;white-space:normal;background-color:#CCCCCC;">()</span> </td><td class="ys2">{amountOfThisPayment}</td></tr><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;">*付款组织<br /></td><td class="ys2" colspan="3">{fkorg}<br /></td></tr><tr><td class="ys2" style="background-color:#CCCCCC;vertical-align:middle;" colspan="4"><p><strong>款项明细</strong> </p></td></tr><tr><td colspan="4"><table class="tablesub ke-zeroborder" id="tablesub0" style="width:100%;" border="0" cellspacing="0" cellpadding="0"><tbody><tr><td width="10%" nowrap="nowrap">序号</td><td nowrap="nowrap">*款项类型</td><td nowrap="nowrap">*金额()</td><td nowrap="nowrap">*成本中心</td><td nowrap="nowrap">合同</td><td nowrap="nowrap">发票号</td><td width="5%" nowrap="nowrap">操作</td></tr><tr><td>[xuhao0,0]</td><td>[charge_type0,0]</td><td>[charge_amount0,0]</td><td>[cbzx_code0,0]</td><td>[contract_id0,0]</td><td>[receipt_id0,0]</td><td>{删,0}</td></tr></tbody></table><div style="background-color:#F1F1F1;">{新增,0}</div><br /></td></tr><tr><td style="text-align:center;background-color:#CCCCCC;">*收款方信息<br /></td><td class="ys2" colspan="3">{fkinfo}<br /></td></tr><tr><td height="34" align="right" class="ys1" style="height:34px;text-align:center;background-color:#CCCCCC;">*付款事由</td><td class="ys2" colspan="3">{paymentBy}</td></tr><tr><td height="34" align="right" class="ys1" style="height:34px;text-align:center;background-color:#CCCCCC;">*附件</td><td class="ys2" colspan="3">{fujian}</td></tr></tbody></table></p>
\ No newline at end of file
<table width="100%" bordercolor="#000000" border="0" class="ke-zeroborder"><tbody><tr><td height="34" width="15%" align="right" class="ys1">*申请日期</td><td class="ys2" width="35%">{applydt}</td><td class="ys1" width="15%" align="right">*使用方式</td><td class="ys2" width="35%">{isout}</td></tr><tr><td height="34" align="right" class="ys1">*印章/证照</td><td class="ys2" width="35%" colspan="3">{sealid}{sealname}{mknum}</td></tr><tr><td height="34" align="right" class="ys1">说明</td><td colspan="3" class="ys2">{explain}</td></tr><tr><td height="34" align="right" class="ys1">相关文件</td><td colspan="3" class="ys2">{file_content}</td></tr><tr><td height="34" align="right" class="ys1">申请人</td><td class="ys2">{base_name}</td><td class="ys1" align="right">申请人部门</td><td class="ys2">{base_deptname}</td></tr></tbody></table>
\ No newline at end of file
<table width="100%" bordercolor="#000000" border="0" class="ke-zeroborder"><tbody><tr><td height="34" width="15%" align="right" class="ys1">*申请日期</td><td class="ys2" width="35%">{applydt}</td><td class="ys1" width="15%" align="right">*使用方式</td><td class="ys2" width="35%">{usetype}</td></tr><tr><td class="ys1" style="text-align:right;">*单据编号<br /></td><td class="ys2" colspan="3">{num}<br /></td></tr><tr><td height="34" align="right" class="ys1">*印章/证照</td><td class="ys2" width="35%" colspan="3">{sealid}{sealname}{mknum}</td></tr><tr><td height="34" align="right" class="ys1">*说明</td><td colspan="3" class="ys2">{explain}</td></tr><tr><td height="34" align="right" class="ys1">*附件</td><td colspan="3" class="ys2">{file}</td></tr><tr><td height="34" align="right" class="ys1">申请人</td><td class="ys2">{base_name}</td><td class="ys1" align="right">申请人部门</td><td class="ys2">{base_deptname}</td></tr></tbody></table>
\ No newline at end of file
<strong>基本信息</strong> <table width="100%" bordercolor="#000000" border="0" class="ke-zeroborder"><tbody><tr><td height="34" width="15%" align="right" class="ys1">*姓名</td><td class="ys2" width="35%">{name}</td><td align="right" class="ys1" width="15%">编号</td><td class="ys2" width="35%">{num}</td></tr><tr><td height="34" align="right" class="ys1">*用户名</td><td class="ys2">{user}</td><td class="ys1" align="right">*性别</td><td class="ys2">{sex}</td></tr><tr><td height="34" align="right" class="ys1">密码</td><td class="ys2">{pass}</td><td class="ys1" align="right"></td><td class="ys2"></td></tr><tr><td height="34" align="right" class="ys1">排序号<br /></td><td class="ys2">{sort}</td><td class="ys1" align="right">名字拼音</td><td class="ys2">{pingyin}</td></tr></tbody></table><p><strong><br /></strong> </p><p><strong>系统内信息</strong> </p><table width="100%" bordercolor="#000000" border="0" class="ke-zeroborder"><tbody><tr><td height="34" width="15%" align="right" class="ys1">*部门</td><td width="35%" class="ys2">{deptname}</td><td class="ys1" width="15%" align="right">*职位</td><td width="35%" class="ys2">{ranking}</td></tr><tr><td height="34" align="right" class="ys1">多部门</td><td class="ys2">{deptnames}</td><td class="ys1" align="right">多职位</td><td class="ys2">{rankings}</td></tr><tr><td height="34" align="right" class="ys1">上级主管</td><td class="ys2">{superman}</td><td class="ys1" align="right">*入职日期</td><td class="ys2">{workdate}</td></tr><tr><td height="34" align="right" class="ys1">*所属单位</td><td class="ys2">{companyid}</td><td class="ys1" align="right">更多所属单位</td><td class="ys2">{temp_dwid}{dwid}</td></tr><tr><td height="34" align="right" class="ys1">所在组</td><td colspan="3" class="ys2">{groupname}</td></tr></tbody></table><p><strong><br /></strong> </p><p><strong>联系信息</strong> </p><table width="100%" bordercolor="#000000" border="0" class="ke-zeroborder"><tbody><tr><td height="34" width="15%" align="right" class="ys1">*手机号</td><td class="ys2" width="35%">{mobile}</td><td align="right" class="ys1" width="15%">电话</td><td class="ys2" width="35%">{tel}</td></tr><tr><td height="34" align="right" class="ys1">邮箱</td><td class="ys2">{email}</td><td class="ys1" align="right">微信号</td><td class="ys2">{weixinid}</td></tr></tbody></table>
\ No newline at end of file
<strong>基本信息</strong> <table width="100%" bordercolor="#000000" border="0" class="ke-zeroborder"><tbody><tr><td height="34" width="15%" align="right" class="ys1">*姓名</td><td class="ys2" width="35%">{name}</td><td align="right" class="ys1" width="15%">编号</td><td class="ys2" width="35%">{num}</td></tr><tr><td height="34" align="right" class="ys1">*用户名</td><td class="ys2">{user}</td><td class="ys1" align="right">*性别</td><td class="ys2">{sex}</td></tr><tr><td height="34" align="right" class="ys1">密码</td><td class="ys2">{pass}</td><td class="ys1" align="right"></td><td class="ys2"></td></tr><tr><td height="34" align="right" class="ys1">排序号<br /></td><td class="ys2">{sort}</td><td class="ys1" align="right">名字拼音</td><td class="ys2">{pingyin}</td></tr></tbody></table><p><strong><br /></strong> </p><p><strong>系统内信息</strong> </p><table width="100%" bordercolor="#000000" border="0" class="ke-zeroborder"><tbody><tr><td height="34" width="15%" align="right" class="ys1">*部门</td><td width="35%" class="ys2">{deptname}</td><td class="ys1" width="15%" align="right">*职位</td><td width="35%" class="ys2">{ranking}</td></tr><tr><td height="34" align="right" class="ys1">多部门</td><td class="ys2">{deptnames}</td><td class="ys1" align="right">多职位</td><td class="ys2">{rankings}</td></tr><tr><td height="34" align="right" class="ys1">上级主管</td><td class="ys2">{superman}</td><td class="ys1" align="right">*入职日期</td><td class="ys2">{workdate}</td></tr><tr><td height="34" align="right" class="ys1">*所属单位</td><td class="ys2">{companyid}</td><td class="ys1" align="right">更多所属单位</td><td class="ys2">{temp_dwid}{dwid}</td></tr></tbody></table><p><strong><br /></strong> </p><p><strong>联系信息</strong> </p><table width="100%" bordercolor="#000000" border="0" class="ke-zeroborder"><tbody><tr><td height="34" width="15%" align="right" class="ys1">*手机号</td><td class="ys2" width="35%">{mobile}</td><td align="right" class="ys1" width="15%">电话</td><td class="ys2" width="35%">{tel}</td></tr><tr><td height="34" align="right" class="ys1">邮箱</td><td class="ys2">{email}</td><td class="ys1" align="right">微信号</td><td class="ys2">{weixinid}</td></tr></tbody></table>
\ No newline at end of file
<?php
/**
* 模块:account_detail.账户明细
* 说明:自定义区域内可写你想要的代码
* 来源:流程模块→表单元素管理→[模块.账户明细]→生成列表页
*/
defined('HOST') or die ('not access');
?>
<script>
$(document).ready(function(){
{params}
var modenum = 'account_detail',modename='账户明细',isflow=0,modeid='114',atype = params.atype,pnum=params.pnum,modenames='';
if(!atype)atype='';if(!pnum)pnum='';
var fieldsarr = [{"name":"\u7533\u8bf7\u4eba","fields":"base_name"},{"name":"\u7533\u8bf7\u4eba\u90e8\u95e8","fields":"base_deptname"},{"name":"\u5355\u53f7","fields":"sericnum"},{"fields":"trans_numb","name":"\u64cd\u4f5c\u6d41\u6c34\u53f7","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"account","name":"\u8d26\u6237\u540d\u79f0","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"opt_type","name":"\u4f59\u989d\u53d8\u66f4\u7c7b\u578b","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"amount","name":"\u91d1\u989d","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"account_balance","name":"\u8d26\u6237\u4f59\u989d","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"create_time","name":"\u65f6\u95f4","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"}],fieldsselarr= [];
var c = {
reload:function(){
a.reload();
},
clickwin:function(o1,lx){
var id=0;
if(lx==1)id=a.changeid;
openinput(modename,modenum,id,'opegs{rand}');
},
view:function(){
var d=a.changedata;
openxiangs(modename,modenum,d.id,'opegs{rand}');
},
searchbtn:function(){
this.search({});
},
search:function(cans){
var s=get('key_{rand}').value,zt='';
if(get('selstatus_{rand}'))zt=get('selstatus_{rand}').value;
var canss = js.apply({key:s,keystatus:zt,search_value:''}, cans);
a.setparams(canss,true);
},
searchhigh:function(){
new highsearchclass({
modenum:modenum,
oncallback:function(d){
c.searchhighb(d);
}
});
},
searchhighb:function(d){
d.key='';
d.search_value='';
get('key_{rand}').value='';
a.setparams(d,true);
},
searchuname:function(d){
js.getuser({
type:'deptusercheck',
title:'搜索'+d.name,
changevalue:this.search_value,
callback:function(sna,sid){
c.searchunames(d,sna,sid);
}
});
},
search_value:'',
searchunames:function(d,sna,sid){
get('key_{rand}').value=sna;
this.search_value = sid;
var cs = {key:'','search_fields':d.fields,'search_value':sid};
a.setparams(cs,true);
},
daochu:function(o1,lx,lx1,e){
publicdaochuobj({
'objtable':a,
'modename':modename,
'fieldsarr':fieldsarr,
'modenum':modenum,
'modenames':modenames,
'isflow':isflow,
'btnobj':o1
});
},
getacturl:function(act){
return js.getajaxurl(act,'mode_account_detail|input','flow',{'modeid':modeid});
},
changatype:function(o1,lx){
$("button[id^='changatype{rand}']").removeClass('active');
$('#changatype{rand}_'+lx+'').addClass('active');
a.setparams({atype:lx},true);
var tit = $(o1).html();if(tit.indexOf(modename)<0)tit=modename+'('+tit+')';
nowtabssettext(tit);
},
init:function(){
$('#key_{rand}').keyup(function(e){
if(e.keyCode==13)c.searchbtn();
});
this.initpage();
},
initpage:function(){
},
loaddata:function(d){
this.setdownsodata(d.souarr);
if(!d.atypearr)return;
get('addbtn_{rand}').disabled=(d.isadd!=true);
get('daobtn_{rand}').disabled=(d.isdaochu!=true);
if(d.isdaochu)$('#daobtn_{rand}').show();
if(d.isdaoru)$('#daoruspan_{rand}').show();
var d1 = d.atypearr,len=d1.length,i,str='';
for(i=0;i<len;i++){
str+='<button class="btn btn-default" click="changatype,'+d1[i].num+'" id="changatype{rand}_'+d1[i].num+'" type="button">'+d1[i].name+'</button>';
}
$('#changatype{rand}').html(str);
$('#changatype{rand}_'+atype+'').addClass('active');
js.initbtn(c);
},
setdownsodata:function(darr){
var ddata = [{name:'高级搜索',lx:0}],dsd,i;
if(darr)for(i=0;i<darr.length;i++){
dsd = darr[i];
dsd.lx=3;
ddata.push(dsd);
}
if(admintype==1)ddata.push({name:'自定义列显示',lx:2});
ddata.push({name:'打印',lx:1});
this.soudownobj.setData(ddata);
},
setcolumns:function(fid, cnas){
var d = false,i,ad=bootparams.columns,len=ad.length,oi=-1;
for(i=0;i<len;i++){
if(ad[i].dataIndex==fid){
d = ad[i];
oi= i;
break;
}
}
if(d){
d = js.apply(d, cnas);
bootparams.columns[oi]=d;
}
},
daoru:function(){
window.managelistaccount_detail = a;
addtabs({num:'daoruaccount_detail',url:'flow,input,daoru,modenum=account_detail',icons:'plus',name:'导入账户明细'});
},
initcolumns:function(bots){
var num = 'columns_'+modenum+'_'+pnum+'',d=[],d1,d2={},i,len=fieldsarr.length,bok;
var nstr= fieldsselarr[num];if(!nstr)nstr='';
if(nstr)nstr=','+nstr+',';
if(nstr=='' && isflow>0){
d.push({text:'申请人',dataIndex:'base_name',sortable:true});
d.push({text:'申请人部门',dataIndex:'base_deptname',sortable:true});
}
for(i=0;i<len;i++){
d1 = fieldsarr[i];
bok= false;
if(nstr==''){
if(d1['islb']=='1')bok=true;
}else{
if(nstr.indexOf(','+d1.fields+',')>=0)bok=true;
}
if(bok){
d2={text:d1.name,dataIndex:d1.fields};
if(d1.ispx=='1')d2.sortable=true;
if(d1.isalign=='1')d2.align='left';
if(d1.isalign=='2')d2.align='right';
d.push(d2);
}
}
if(isflow>0)d.push({text:'状态',dataIndex:'statustext'});
if(nstr=='' || nstr.indexOf(',caozuo,')>=0)d.push({text:'',dataIndex:'caozuo',callback:'opegs{rand}'});
if(!bots){
bootparams.columns=d;
}else{
a.setColumns(d);
}
},
setparams:function(cs){
var ds = js.apply({},cs);
a.setparams(ds);
},
storeurl:function(){
var url = this.getacturl('publicstore')+'&pnum='+pnum+'';
return url;
},
printlist:function(){
js.msg('success','可使用导出,然后打开在打印');
},
getbtnstr:function(txt, click, ys, ots){
if(!ys)ys='default';
if(!ots)ots='';
return '<button class="btn btn-'+ys+'" id="btn'+click+'_{rand}" click="'+click+'" '+ots+' type="button">'+txt+'</button>';
},
setfieldslist:function(){
new highsearchclass({
modenum:modenum,
modeid:modeid,
type:1,
isflow:isflow,
pnum:pnum,atype:atype,
fieldsarr:fieldsarr,
fieldsselarr:fieldsselarr,
oncallback:function(str){
fieldsselarr[this.columnsnum]=str;
c.initcolumns(true);
c.reload();
}
});
}
};
var bootparams = {
fanye:true,modenum:modenum,modename:modename,statuschange:false,tablename:jm.base64decode('Y19hY2NvdW50X2RldGFpbA::'),
url:c.storeurl(),storeafteraction:'storeaftershow',storebeforeaction:'storebeforeshow',
params:{atype:atype},
columns:[{text:"操作流水号",dataIndex:"trans_numb"},{text:"账户名称",dataIndex:"account"},{text:"余额变更类型",dataIndex:"opt_type"},{text:"金额",dataIndex:"amount"},{text:"账户余额",dataIndex:"account_balance"},{text:"时间",dataIndex:"create_time"},{
text:'',dataIndex:'caozuo',callback:'opegs{rand}'
}],
itemdblclick:function(){
c.view();
},
load:function(d){
c.loaddata(d);
}
};
c.initcolumns(false);
opegs{rand}=function(){
c.reload();
}
//[自定义区域start]
//[自定义区域end]
js.initbtn(c);
var a = $('#viewaccount_detail_{rand}').bootstable(bootparams);
c.init();
c.soudownobj = $('#downbtn_{rand}').rockmenu({
width:120,top:35,donghua:false,
data:[{name:'高级搜索',lx:0}],
itemsclick:function(d, i){
if(d.lx==0)c.searchhigh();
if(d.lx==1)c.printlist();
if(d.lx==2)c.setfieldslist();
if(d.lx==3)c.searchuname(d);
}
});
});
</script>
<!--SCRIPTend-->
<!--HTMLstart-->
<div>
<table width="100%">
<tr>
<td style="padding-right:10px;" id="tdleft_{rand}" nowrap><button id="addbtn_{rand}" class="btn btn-primary" click="clickwin,0" disabled type="button"><i class="icon-plus"></i> 新增</button></td>
<td>
<input class="form-control" style="width:160px" id="key_{rand}" placeholder="关键字">
</td>
<td style="padding-left:10px">
<div style="white-space:nowrap">
<button style="border-right:0;border-top-right-radius:0;border-bottom-right-radius:0" class="btn btn-default" click="searchbtn" type="button">搜索</button><button class="btn btn-default" id="downbtn_{rand}" type="button" style="padding-left:8px;padding-right:8px;border-top-left-radius:0;border-bottom-left-radius:0"><i class="icon-angle-down"></i></button>
</div>
</td>
<td width="90%" style="padding-left:10px"><div id="changatype{rand}" class="btn-group"></div></td>
<td align="right" id="tdright_{rand}" nowrap>
<button class="btn btn-default" style="display:none" id="daobtn_{rand}" disabled click="daochu" type="button">导出 <i class="icon-angle-down"></i></button>
</td>
</tr>
</table>
</div>
<div class="blank10"></div>
<div id="viewaccount_detail_{rand}"></div>
<!--HTMLend-->
\ No newline at end of file
差异被折叠。
<?php
/**
* 模块:cost_center.成本中心
* 说明:自定义区域内可写你想要的代码
* 来源:流程模块→表单元素管理→[模块.成本中心]→生成列表页
*/
defined('HOST') or die ('not access');
?>
<script>
$(document).ready(function(){
{params}
var modenum = 'cost_center',modename='成本中心',isflow=0,modeid='117',atype = params.atype,pnum=params.pnum,modenames='';
if(!atype)atype='';if(!pnum)pnum='';
var fieldsarr = [{"name":"\u7533\u8bf7\u4eba","fields":"base_name"},{"name":"\u7533\u8bf7\u4eba\u90e8\u95e8","fields":"base_deptname"},{"name":"\u5355\u53f7","fields":"sericnum"},{"fields":"code","name":"\u6210\u672c\u4e2d\u5fc3\u7f16\u7801","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"name","name":"\u540d\u79f0","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"principalid","name":"\u8d1f\u8d23\u4eba","fieldstype":"changeuser","ispx":"0","isalign":"0","islb":"1"},{"fields":"type","name":"\u7c7b\u578b","fieldstype":"select","ispx":"0","isalign":"0","islb":"1"},{"fields":"status","name":"\u72b6\u6001","fieldstype":"select","ispx":"1","isalign":"0","islb":"1"},{"fields":"pid","name":"\u4e0a\u7ea7\u6210\u672c\u4e2d\u5fc3","fieldstype":"selectdatafalse","ispx":"0","isalign":"0","islb":"1"},{"fields":"create_time","name":"\u751f\u6548\u65f6\u95f4","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"}],fieldsselarr= {"columns_cost_center_all":"code,name,principalid,type,status,create_time,caozuo"};
var c = {
reload:function(){
a.reload();
},
clickwin:function(o1,lx){
var id=0;
if(lx==1)id=a.changeid;
openinput(modename,modenum,id,'opegs{rand}');
},
view:function(){
var d=a.changedata;
openxiangs(modename,modenum,d.id,'opegs{rand}');
},
searchbtn:function(){
this.search({});
},
search:function(cans){
var s=get('key_{rand}').value,zt='';
if(get('selstatus_{rand}'))zt=get('selstatus_{rand}').value;
var canss = js.apply({key:s,keystatus:zt,search_value:''}, cans);
a.setparams(canss,true);
},
searchhigh:function(){
new highsearchclass({
modenum:modenum,
oncallback:function(d){
c.searchhighb(d);
}
});
},
searchhighb:function(d){
d.key='';
d.search_value='';
get('key_{rand}').value='';
a.setparams(d,true);
},
searchuname:function(d){
js.getuser({
type:'deptusercheck',
title:'搜索'+d.name,
changevalue:this.search_value,
callback:function(sna,sid){
c.searchunames(d,sna,sid);
}
});
},
search_value:'',
searchunames:function(d,sna,sid){
get('key_{rand}').value=sna;
this.search_value = sid;
var cs = {key:'','search_fields':d.fields,'search_value':sid};
a.setparams(cs,true);
},
daochu:function(o1,lx,lx1,e){
publicdaochuobj({
'objtable':a,
'modename':modename,
'fieldsarr':fieldsarr,
'modenum':modenum,
'modenames':modenames,
'isflow':isflow,
'btnobj':o1
});
},
getacturl:function(act){
return js.getajaxurl(act,'mode_cost_center|input','flow',{'modeid':modeid});
},
changatype:function(o1,lx){
$("button[id^='changatype{rand}']").removeClass('active');
$('#changatype{rand}_'+lx+'').addClass('active');
a.setparams({atype:lx},true);
var tit = $(o1).html();if(tit.indexOf(modename)<0)tit=modename+'('+tit+')';
nowtabssettext(tit);
},
init:function(){
$('#key_{rand}').keyup(function(e){
if(e.keyCode==13)c.searchbtn();
});
this.initpage();
},
initpage:function(){
},
loaddata:function(d){
this.setdownsodata(d.souarr);
if(!d.atypearr)return;
get('addbtn_{rand}').disabled=(d.isadd!=true);
get('daobtn_{rand}').disabled=(d.isdaochu!=true);
if(d.isdaochu)$('#daobtn_{rand}').show();
if(d.isdaoru)$('#daoruspan_{rand}').show();
var d1 = d.atypearr,len=d1.length,i,str='';
for(i=0;i<len;i++){
str+='<button class="btn btn-default" click="changatype,'+d1[i].num+'" id="changatype{rand}_'+d1[i].num+'" type="button">'+d1[i].name+'</button>';
}
$('#changatype{rand}').html(str);
$('#changatype{rand}_'+atype+'').addClass('active');
js.initbtn(c);
},
setdownsodata:function(darr){
var ddata = [{name:'高级搜索',lx:0}],dsd,i;
if(darr)for(i=0;i<darr.length;i++){
dsd = darr[i];
dsd.lx=3;
ddata.push(dsd);
}
if(admintype==1)ddata.push({name:'自定义列显示',lx:2});
ddata.push({name:'打印',lx:1});
this.soudownobj.setData(ddata);
},
setcolumns:function(fid, cnas){
var d = false,i,ad=bootparams.columns,len=ad.length,oi=-1;
for(i=0;i<len;i++){
if(ad[i].dataIndex==fid){
d = ad[i];
oi= i;
break;
}
}
if(d){
d = js.apply(d, cnas);
bootparams.columns[oi]=d;
}
},
daoru:function(){
window.managelistcost_center = a;
addtabs({num:'daorucost_center',url:'flow,input,daoru,modenum=cost_center',icons:'plus',name:'导入成本中心'});
},
initcolumns:function(bots){
var num = 'columns_'+modenum+'_'+pnum+'',d=[],d1,d2={},i,len=fieldsarr.length,bok;
var nstr= fieldsselarr[num];if(!nstr)nstr='';
if(nstr)nstr=','+nstr+',';
if(nstr=='' && isflow>0){
d.push({text:'申请人',dataIndex:'base_name',sortable:true});
d.push({text:'申请人部门',dataIndex:'base_deptname',sortable:true});
}
for(i=0;i<len;i++){
d1 = fieldsarr[i];
bok= false;
if(nstr==''){
if(d1['islb']=='1')bok=true;
}else{
if(nstr.indexOf(','+d1.fields+',')>=0)bok=true;
}
if(bok){
d2={text:d1.name,dataIndex:d1.fields};
if(d1.ispx=='1')d2.sortable=true;
if(d1.isalign=='1')d2.align='left';
if(d1.isalign=='2')d2.align='right';
d.push(d2);
}
}
if(isflow>0)d.push({text:'状态',dataIndex:'statustext'});
if(nstr=='' || nstr.indexOf(',caozuo,')>=0)d.push({text:'',dataIndex:'caozuo',callback:'opegs{rand}'});
if(!bots){
bootparams.columns=d;
}else{
a.setColumns(d);
}
},
setparams:function(cs){
var ds = js.apply({},cs);
a.setparams(ds);
},
storeurl:function(){
var url = this.getacturl('publicstore')+'&pnum='+pnum+'';
return url;
},
printlist:function(){
js.msg('success','可使用导出,然后打开在打印');
},
getbtnstr:function(txt, click, ys, ots){
if(!ys)ys='default';
if(!ots)ots='';
return '<button class="btn btn-'+ys+'" id="btn'+click+'_{rand}" click="'+click+'" '+ots+' type="button">'+txt+'</button>';
},
setfieldslist:function(){
new highsearchclass({
modenum:modenum,
modeid:modeid,
type:1,
isflow:isflow,
pnum:pnum,atype:atype,
fieldsarr:fieldsarr,
fieldsselarr:fieldsselarr,
oncallback:function(str){
fieldsselarr[this.columnsnum]=str;
c.initcolumns(true);
c.reload();
}
});
}
};
var bootparams = {
fanye:true,modenum:modenum,modename:modename,statuschange:false,tablename:jm.base64decode('Y19jYnp4'),
url:c.storeurl(),storeafteraction:'storeaftershow',storebeforeaction:'storebeforeshow',
params:{atype:atype},
columns:[{text:"成本中心编码",dataIndex:"code"},{text:"名称",dataIndex:"name"},{text:"负责人",dataIndex:"principalid"},{text:"类型",dataIndex:"type"},{text:"状态",dataIndex:"status",sortable:true},{text:"上级成本中心",dataIndex:"pid"},{text:"生效时间",dataIndex:"create_time"},{
text:'',dataIndex:'caozuo',callback:'opegs{rand}'
}],
itemdblclick:function(){
c.view();
},
load:function(d){
c.loaddata(d);
}
};
c.initcolumns(false);
opegs{rand}=function(){
c.reload();
}
//[自定义区域start]
//[自定义区域end]
js.initbtn(c);
var a = $('#viewcost_center_{rand}').bootstable(bootparams);
c.init();
c.soudownobj = $('#downbtn_{rand}').rockmenu({
width:120,top:35,donghua:false,
data:[{name:'高级搜索',lx:0}],
itemsclick:function(d, i){
if(d.lx==0)c.searchhigh();
if(d.lx==1)c.printlist();
if(d.lx==2)c.setfieldslist();
if(d.lx==3)c.searchuname(d);
}
});
});
</script>
<!--SCRIPTend-->
<!--HTMLstart-->
<div>
<table width="100%">
<tr>
<td style="padding-right:10px;" id="tdleft_{rand}" nowrap><button id="addbtn_{rand}" class="btn btn-primary" click="clickwin,0" disabled type="button"><i class="icon-plus"></i> 新增</button></td>
<td>
<input class="form-control" style="width:160px" id="key_{rand}" placeholder="关键字">
</td>
<td style="padding-left:10px"><select class="form-control" style="width:120px" id="selstatus_{rand}"><option value="">-全部状态-</option><option style="color:blue" value="0">待处理</option><option style="color:green" value="1">已审核</option><option style="color:red" value="2">不同意</option><option style="color:#888888" value="5">已作废</option></select></td>
<td style="padding-left:10px">
<div style="white-space:nowrap">
<button style="border-right:0;border-top-right-radius:0;border-bottom-right-radius:0" class="btn btn-default" click="searchbtn" type="button">搜索</button><button class="btn btn-default" id="downbtn_{rand}" type="button" style="padding-left:8px;padding-right:8px;border-top-left-radius:0;border-bottom-left-radius:0"><i class="icon-angle-down"></i></button>
</div>
</td>
<td width="90%" style="padding-left:10px"><div id="changatype{rand}" class="btn-group"></div></td>
<td align="right" id="tdright_{rand}" nowrap>
<button class="btn btn-default" style="display:none" id="daobtn_{rand}" disabled click="daochu" type="button">导出 <i class="icon-angle-down"></i></button>
</td>
</tr>
</table>
</div>
<div class="blank10"></div>
<div id="viewcost_center_{rand}"></div>
<!--HTMLend-->
\ No newline at end of file
......@@ -9,7 +9,7 @@ defined('HOST') or die ('not access');
<script>
$(document).ready(function(){
{params}
var modenum = 'fingrjk',modename='借款单',isflow=2,modeid='100',atype = params.atype,pnum=params.pnum,modenames='';
var modenum = 'fingrjk',modename='借款单',isflow=1,modeid='100',atype = params.atype,pnum=params.pnum,modenames='';
if(!atype)atype='';if(!pnum)pnum='';
var fieldsarr = [{"name":"\u7533\u8bf7\u4eba","fields":"base_name"},{"name":"\u7533\u8bf7\u4eba\u90e8\u95e8","fields":"base_deptname"},{"name":"\u5355\u53f7","fields":"sericnum"},{"fields":"applicant","name":"\u7533\u8bf7\u4eba","fieldstype":"text","ispx":"0","isalign":"0","islb":"0"},{"fields":"appilcationdpt","name":"\u7533\u8bf7\u90e8\u95e8","fieldstype":"text","ispx":"0","isalign":"0","islb":"0"},{"fields":"jkname","name":"\u6807\u9898","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"date","name":"\u7533\u8bf7\u65e5\u671f","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"docnum","name":"\u5355\u636e\u7f16\u53f7","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"amount","name":"\u501f\u6b3e\u6570\u989d","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"payee","name":"\u6536\u6b3e\u4eba","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"fujian","name":"\u9644\u4ef6","fieldstype":"uploadfile","ispx":"0","isalign":"0","islb":"0"},{"fields":"reason","name":"\u501f\u6b3e\u539f\u56e0","fieldstype":"textarea","ispx":"0","isalign":"0","islb":"0"},{"fields":"unit","name":"\u501f\u6b3e\u5355\u4f4d","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"0"},{"fields":"funds_type","name":"\u8d44\u91d1\u7c7b\u578b","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"0"},{"fields":"payeeaccount","name":"\u6536\u6b3e\u4eba\u8d26\u6237","fieldstype":"text","ispx":"0","isalign":"0","islb":"0"}],fieldsselarr= [];
......
<?php
/**
* 模块:fund_deposit.资金入账
* 说明:自定义区域内可写你想要的代码
* 来源:流程模块→表单元素管理→[模块.资金入账]→生成列表页
*/
defined('HOST') or die ('not access');
?>
<script>
$(document).ready(function(){
{params}
var modenum = 'fund_deposit',modename='资金入账',isflow=0,modeid='115',atype = params.atype,pnum=params.pnum,modenames='';
if(!atype)atype='';if(!pnum)pnum='';
var fieldsarr = [{"name":"\u7533\u8bf7\u4eba","fields":"base_name"},{"name":"\u7533\u8bf7\u4eba\u90e8\u95e8","fields":"base_deptname"},{"name":"\u5355\u53f7","fields":"sericnum"},{"fields":"trans_numb","name":"\u4ea4\u6613\u6d41\u6c34","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"toaccount","name":"\u8f6c\u5165\u8d26\u6237","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"1"},{"fields":"account","name":"\u8d44\u91d1\u6765\u6e90","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"trans_amount","name":"\u8f6c\u5165\u91d1\u989d","fieldstype":"number","ispx":"0","isalign":"0","islb":"1"},{"fields":"business_type","name":"\u4e1a\u52a1\u7c7b\u578b","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"1"},{"fields":"create_time","name":"\u521b\u5efa\u65f6\u95f4","fieldstype":"hidden","ispx":"0","isalign":"0","islb":"1"},{"fields":"remark","name":"\u5907\u6ce8","fieldstype":"textarea","ispx":"0","isalign":"0","islb":"1"}],fieldsselarr= [];
var c = {
reload:function(){
a.reload();
},
clickwin:function(o1,lx){
var id=0;
if(lx==1)id=a.changeid;
openinput(modename,modenum,id,'opegs{rand}');
},
view:function(){
var d=a.changedata;
openxiangs(modename,modenum,d.id,'opegs{rand}');
},
searchbtn:function(){
this.search({});
},
search:function(cans){
var s=get('key_{rand}').value,zt='';
if(get('selstatus_{rand}'))zt=get('selstatus_{rand}').value;
var canss = js.apply({key:s,keystatus:zt,search_value:''}, cans);
a.setparams(canss,true);
},
searchhigh:function(){
new highsearchclass({
modenum:modenum,
oncallback:function(d){
c.searchhighb(d);
}
});
},
searchhighb:function(d){
d.key='';
d.search_value='';
get('key_{rand}').value='';
a.setparams(d,true);
},
searchuname:function(d){
js.getuser({
type:'deptusercheck',
title:'搜索'+d.name,
changevalue:this.search_value,
callback:function(sna,sid){
c.searchunames(d,sna,sid);
}
});
},
search_value:'',
searchunames:function(d,sna,sid){
get('key_{rand}').value=sna;
this.search_value = sid;
var cs = {key:'','search_fields':d.fields,'search_value':sid};
a.setparams(cs,true);
},
daochu:function(o1,lx,lx1,e){
publicdaochuobj({
'objtable':a,
'modename':modename,
'fieldsarr':fieldsarr,
'modenum':modenum,
'modenames':modenames,
'isflow':isflow,
'btnobj':o1
});
},
getacturl:function(act){
return js.getajaxurl(act,'mode_fund_deposit|input','flow',{'modeid':modeid});
},
changatype:function(o1,lx){
$("button[id^='changatype{rand}']").removeClass('active');
$('#changatype{rand}_'+lx+'').addClass('active');
a.setparams({atype:lx},true);
var tit = $(o1).html();if(tit.indexOf(modename)<0)tit=modename+'('+tit+')';
nowtabssettext(tit);
},
init:function(){
$('#key_{rand}').keyup(function(e){
if(e.keyCode==13)c.searchbtn();
});
this.initpage();
},
initpage:function(){
},
loaddata:function(d){
this.setdownsodata(d.souarr);
if(!d.atypearr)return;
get('addbtn_{rand}').disabled=(d.isadd!=true);
get('daobtn_{rand}').disabled=(d.isdaochu!=true);
if(d.isdaochu)$('#daobtn_{rand}').show();
if(d.isdaoru)$('#daoruspan_{rand}').show();
var d1 = d.atypearr,len=d1.length,i,str='';
for(i=0;i<len;i++){
str+='<button class="btn btn-default" click="changatype,'+d1[i].num+'" id="changatype{rand}_'+d1[i].num+'" type="button">'+d1[i].name+'</button>';
}
$('#changatype{rand}').html(str);
$('#changatype{rand}_'+atype+'').addClass('active');
js.initbtn(c);
},
setdownsodata:function(darr){
var ddata = [{name:'高级搜索',lx:0}],dsd,i;
if(darr)for(i=0;i<darr.length;i++){
dsd = darr[i];
dsd.lx=3;
ddata.push(dsd);
}
if(admintype==1)ddata.push({name:'自定义列显示',lx:2});
ddata.push({name:'打印',lx:1});
this.soudownobj.setData(ddata);
},
setcolumns:function(fid, cnas){
var d = false,i,ad=bootparams.columns,len=ad.length,oi=-1;
for(i=0;i<len;i++){
if(ad[i].dataIndex==fid){
d = ad[i];
oi= i;
break;
}
}
if(d){
d = js.apply(d, cnas);
bootparams.columns[oi]=d;
}
},
daoru:function(){
window.managelistfund_deposit = a;
addtabs({num:'daorufund_deposit',url:'flow,input,daoru,modenum=fund_deposit',icons:'plus',name:'导入资金入账'});
},
initcolumns:function(bots){
var num = 'columns_'+modenum+'_'+pnum+'',d=[],d1,d2={},i,len=fieldsarr.length,bok;
var nstr= fieldsselarr[num];if(!nstr)nstr='';
if(nstr)nstr=','+nstr+',';
if(nstr=='' && isflow>0){
d.push({text:'申请人',dataIndex:'base_name',sortable:true});
d.push({text:'申请人部门',dataIndex:'base_deptname',sortable:true});
}
for(i=0;i<len;i++){
d1 = fieldsarr[i];
bok= false;
if(nstr==''){
if(d1['islb']=='1')bok=true;
}else{
if(nstr.indexOf(','+d1.fields+',')>=0)bok=true;
}
if(bok){
d2={text:d1.name,dataIndex:d1.fields};
if(d1.ispx=='1')d2.sortable=true;
if(d1.isalign=='1')d2.align='left';
if(d1.isalign=='2')d2.align='right';
d.push(d2);
}
}
if(isflow>0)d.push({text:'状态',dataIndex:'statustext'});
if(nstr=='' || nstr.indexOf(',caozuo,')>=0)d.push({text:'',dataIndex:'caozuo',callback:'opegs{rand}'});
if(!bots){
bootparams.columns=d;
}else{
a.setColumns(d);
}
},
setparams:function(cs){
var ds = js.apply({},cs);
a.setparams(ds);
},
storeurl:function(){
var url = this.getacturl('publicstore')+'&pnum='+pnum+'';
return url;
},
printlist:function(){
js.msg('success','可使用导出,然后打开在打印');
},
getbtnstr:function(txt, click, ys, ots){
if(!ys)ys='default';
if(!ots)ots='';
return '<button class="btn btn-'+ys+'" id="btn'+click+'_{rand}" click="'+click+'" '+ots+' type="button">'+txt+'</button>';
},
setfieldslist:function(){
new highsearchclass({
modenum:modenum,
modeid:modeid,
type:1,
isflow:isflow,
pnum:pnum,atype:atype,
fieldsarr:fieldsarr,
fieldsselarr:fieldsselarr,
oncallback:function(str){
fieldsselarr[this.columnsnum]=str;
c.initcolumns(true);
c.reload();
}
});
}
};
var bootparams = {
fanye:true,modenum:modenum,modename:modename,statuschange:false,tablename:jm.base64decode('Y19mdW5kX2RldGFpbA::'),
url:c.storeurl(),storeafteraction:'storeaftershow',storebeforeaction:'storebeforeshow',
params:{atype:atype},
columns:[{text:"交易流水",dataIndex:"trans_numb"},{text:"转入账户",dataIndex:"toaccount"},{text:"资金来源",dataIndex:"account"},{text:"转入金额",dataIndex:"trans_amount"},{text:"业务类型",dataIndex:"business_type"},{text:"创建时间",dataIndex:"create_time"},{text:"备注",dataIndex:"remark"},{
text:'',dataIndex:'caozuo',callback:'opegs{rand}'
}],
itemdblclick:function(){
c.view();
},
load:function(d){
c.loaddata(d);
}
};
c.initcolumns(false);
opegs{rand}=function(){
c.reload();
}
//[自定义区域start]
//[自定义区域end]
js.initbtn(c);
var a = $('#viewfund_deposit_{rand}').bootstable(bootparams);
c.init();
c.soudownobj = $('#downbtn_{rand}').rockmenu({
width:120,top:35,donghua:false,
data:[{name:'高级搜索',lx:0}],
itemsclick:function(d, i){
if(d.lx==0)c.searchhigh();
if(d.lx==1)c.printlist();
if(d.lx==2)c.setfieldslist();
if(d.lx==3)c.searchuname(d);
}
});
});
</script>
<!--SCRIPTend-->
<!--HTMLstart-->
<div>
<table width="100%">
<tr>
<td style="padding-right:10px;" id="tdleft_{rand}" nowrap><button id="addbtn_{rand}" class="btn btn-primary" click="clickwin,0" disabled type="button"><i class="icon-plus"></i> 新增</button></td>
<td>
<input class="form-control" style="width:160px" id="key_{rand}" placeholder="关键字">
</td>
<td style="padding-left:10px">
<div style="white-space:nowrap">
<button style="border-right:0;border-top-right-radius:0;border-bottom-right-radius:0" class="btn btn-default" click="searchbtn" type="button">搜索</button><button class="btn btn-default" id="downbtn_{rand}" type="button" style="padding-left:8px;padding-right:8px;border-top-left-radius:0;border-bottom-left-radius:0"><i class="icon-angle-down"></i></button>
</div>
</td>
<td width="90%" style="padding-left:10px"><div id="changatype{rand}" class="btn-group"></div></td>
<td align="right" id="tdright_{rand}" nowrap>
<button class="btn btn-default" style="display:none" id="daobtn_{rand}" disabled click="daochu" type="button">导出 <i class="icon-angle-down"></i></button>
</td>
</tr>
</table>
</div>
<div class="blank10"></div>
<div id="viewfund_deposit_{rand}"></div>
<!--HTMLend-->
\ No newline at end of file
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
......@@ -11,7 +11,7 @@ $(document).ready(function(){
{params}
var modenum = 'oafk',modename='付款申请单',isflow=1,modeid='94',atype = params.atype,pnum=params.pnum,modenames='';
if(!atype)atype='';if(!pnum)pnum='';
var fieldsarr = [{"name":"\u7533\u8bf7\u4eba","fields":"base_name"},{"name":"\u7533\u8bf7\u4eba\u90e8\u95e8","fields":"base_deptname"},{"name":"\u5355\u53f7","fields":"sericnum"},{"fields":"applicant","name":"\u7533\u8bf7\u4eba","fieldstype":"text","ispx":"0","isalign":"0","islb":"0"},{"fields":"applicationdpt","name":"\u7533\u8bf7\u90e8\u95e8","fieldstype":"text","ispx":"0","isalign":"0","islb":"0"},{"fields":"fujian","name":"\u9644\u4ef6","fieldstype":"uploadfile","ispx":"0","isalign":"0","islb":"0"},{"fields":"applydate","name":"\u7533\u8bf7\u65e5\u671f","fieldstype":"text","ispx":"1","isalign":"0","islb":"1"},{"fields":"userid","name":"\u7528\u6237\u7f16\u53f7","fieldstype":"text","ispx":"0","isalign":"0","islb":"0"},{"fields":"paymentBy","name":"\u4ed8\u6b3e\u4e8b\u7531","fieldstype":"textarea","ispx":"0","isalign":"0","islb":"0"},{"fields":"fkname","name":"\u6807\u9898","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"payee","name":"\u6536\u6b3e\u65b9","fieldstype":"selectdatafalse","ispx":"0","isalign":"0","islb":"0"},{"fields":"docnum","name":"\u5355\u636e\u7f16\u53f7","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"paymentMethod","name":"\u4ed8\u6b3e\u65b9\u5f0f","fieldstype":"rockcombo","ispx":"1","isalign":"0","islb":"0"},{"fields":"contractNumber","name":"\u5408\u540c","fieldstype":"selectdatafalse","ispx":"0","isalign":"0","islb":"1"},{"fields":"cbzxid","name":"\u6210\u672c\u4e2d\u5fc3","fieldstype":"selectdatafalse","ispx":"0","isalign":"0","islb":"1"},{"fields":"amountOfThisPayment","name":"\u4ed8\u6b3e\u91d1\u989d","fieldstype":"text","ispx":"1","isalign":"0","islb":"1"},{"fields":"fkinfo","name":"\u6536\u6b3e\u4eba\u4fe1\u606f","fieldstype":"textarea","ispx":"0","isalign":"0","islb":"0"}],fieldsselarr= {"columns_oafk_all":"applicant,applicationdpt,applydate,fkname,docnum,contractNumber,cbzxid,amountOfThisPayment,caozuo"};
var fieldsarr = [{"name":"\u7533\u8bf7\u4eba","fields":"base_name"},{"name":"\u7533\u8bf7\u4eba\u90e8\u95e8","fields":"base_deptname"},{"name":"\u5355\u53f7","fields":"sericnum"},{"fields":"payee","name":"\u6536\u6b3e\u65b9","fieldstype":"selectdatafalse","ispx":"0","isalign":"0","islb":"0"},{"fields":"paymentMethod","name":"\u4ed8\u6b3e\u65b9\u5f0f","fieldstype":"rockcombo","ispx":"1","isalign":"0","islb":"0"},{"fields":"fkorg","name":"\u4ed8\u6b3e\u7ec4\u7ec7","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"0"},{"fields":"applicant","name":"\u7533\u8bf7\u4eba","fieldstype":"text","ispx":"0","isalign":"0","islb":"0"},{"fields":"applicationdpt","name":"\u7533\u8bf7\u90e8\u95e8","fieldstype":"text","ispx":"0","isalign":"0","islb":"0"},{"fields":"fujian","name":"\u9644\u4ef6","fieldstype":"uploadfile","ispx":"0","isalign":"0","islb":"0"},{"fields":"applydate","name":"\u7533\u8bf7\u65e5\u671f","fieldstype":"text","ispx":"1","isalign":"0","islb":"1"},{"fields":"userid","name":"\u7528\u6237\u7f16\u53f7","fieldstype":"text","ispx":"0","isalign":"0","islb":"0"},{"fields":"paymentBy","name":"\u4ed8\u6b3e\u4e8b\u7531","fieldstype":"textarea","ispx":"0","isalign":"0","islb":"0"},{"fields":"docnum","name":"\u5355\u636e\u7f16\u53f7","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"fkname","name":"\u6807\u9898","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"amountOfThisPayment","name":"\u4ed8\u6b3e\u91d1\u989d","fieldstype":"text","ispx":"1","isalign":"0","islb":"1"},{"fields":"fkinfo","name":"\u6536\u6b3e\u4eba\u4fe1\u606f","fieldstype":"textarea","ispx":"0","isalign":"0","islb":"0"}],fieldsselarr= {"columns_oafk_all":"applicant,applicationdpt,applydate,fkname,docnum,contractNumber,cbzxid,amountOfThisPayment,caozuo"};
var c = {
reload:function(){
......@@ -210,7 +210,7 @@ $(document).ready(function(){
fanye:true,modenum:modenum,modename:modename,statuschange:false,tablename:jm.base64decode('Y19maW5pbmZvbV9vYWZr'),
url:c.storeurl(),storeafteraction:'storeaftershow',storebeforeaction:'storebeforeshow',
params:{atype:atype},
columns:[{text:"申请人",dataIndex:"base_name",sortable:true},{text:"申请人部门",dataIndex:"base_deptname",sortable:true},{text:"单号",dataIndex:"sericnum"},{text:"申请日期",dataIndex:"applydate",sortable:true},{text:"标题",dataIndex:"fkname"},{text:"单据编号",dataIndex:"docnum"},{text:"合同",dataIndex:"contractNumber"},{text:"成本中心",dataIndex:"cbzxid"},{text:"付款金额",dataIndex:"amountOfThisPayment",sortable:true},{text:"状态",dataIndex:"statustext"},{
columns:[{text:"申请人",dataIndex:"base_name",sortable:true},{text:"申请人部门",dataIndex:"base_deptname",sortable:true},{text:"单号",dataIndex:"sericnum"},{text:"申请日期",dataIndex:"applydate",sortable:true},{text:"单据编号",dataIndex:"docnum"},{text:"标题",dataIndex:"fkname"},{text:"付款金额",dataIndex:"amountOfThisPayment",sortable:true},{text:"状态",dataIndex:"statustext"},{
text:'',dataIndex:'caozuo',callback:'opegs{rand}'
}],
itemdblclick:function(){
......@@ -266,7 +266,7 @@ $(document).ready(function(){
<td width="90%" style="padding-left:10px"><div id="changatype{rand}" class="btn-group"></div></td>
<td align="right" id="tdright_{rand}" nowrap>
<button class="btn btn-default" style="display:none" id="daobtn_{rand}" disabled click="daochu" type="button">导出 <i class="icon-angle-down"></i></button>
<span style="display:none" id="daoruspan_{rand}"><button class="btn btn-default" click="daoru,1" type="button">导入</button>&nbsp;&nbsp;&nbsp;</span><button class="btn btn-default" style="display:none" id="daobtn_{rand}" disabled click="daochu" type="button">导出 <i class="icon-angle-down"></i></button>
</td>
</tr>
</table>
......
......@@ -11,7 +11,7 @@ $(document).ready(function(){
{params}
var modenum = 'oayfk',modename='预付款申请单',isflow=1,modeid='103',atype = params.atype,pnum=params.pnum,modenames='';
if(!atype)atype='';if(!pnum)pnum='';
var fieldsarr = [{"name":"\u7533\u8bf7\u4eba","fields":"base_name"},{"name":"\u7533\u8bf7\u4eba\u90e8\u95e8","fields":"base_deptname"},{"name":"\u5355\u53f7","fields":"sericnum"},{"fields":"fkinfo","name":"\u6536\u6b3e\u4eba\u4fe1\u606f","fieldstype":"textarea","ispx":"0","isalign":"0","islb":"0"},{"fields":"userid","name":"\u7528\u6237\u7f16\u53f7","fieldstype":"text","ispx":"0","isalign":"0","islb":"0"},{"fields":"paymentMethod","name":"\u4ed8\u6b3e\u65b9\u5f0f","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"0"},{"fields":"payee","name":"\u6536\u6b3e\u65b9","fieldstype":"selectdatafalse","ispx":"1","isalign":"0","islb":"0"},{"fields":"paymentBy","name":"\u4ed8\u6b3e\u4e8b\u7531","fieldstype":"textarea","ispx":"1","isalign":"0","islb":"0"},{"fields":"applicant","name":"\u7533\u8bf7\u4eba","fieldstype":"text","ispx":"0","isalign":"0","islb":"0"},{"fields":"application","name":"\u7533\u8bf7\u90e8\u95e8","fieldstype":"text","ispx":"0","isalign":"0","islb":"0"},{"fields":"fujian","name":"\u9644\u4ef6","fieldstype":"uploadfile","ispx":"0","isalign":"0","islb":"0"},{"fields":"applydate","name":"\u7533\u8bf7\u65e5\u671f","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"docnum","name":"\u5355\u636e\u7f16\u53f7","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"yfkname","name":"\u6807\u9898","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"cbzxid","name":"\u6210\u672c\u4e2d\u5fc3","fieldstype":"selectdatafalse","ispx":"1","isalign":"0","islb":"1"},{"fields":"contractNumber","name":"\u5408\u540c","fieldstype":"selectdatafalse","ispx":"0","isalign":"0","islb":"1"},{"fields":"amountOfThisPayment","name":"\u4ed8\u6b3e\u91d1\u989d","fieldstype":"text","ispx":"1","isalign":"0","islb":"1"}],fieldsselarr= {"columns_oayfk_all":"base_name,base_deptname,applydate,docnum,yfkname,cbzxid,contractNumber,amountOfThisPayment,caozuo"};
var fieldsarr = [{"name":"\u7533\u8bf7\u4eba","fields":"base_name"},{"name":"\u7533\u8bf7\u4eba\u90e8\u95e8","fields":"base_deptname"},{"name":"\u5355\u53f7","fields":"sericnum"},{"fields":"fkinfo","name":"\u6536\u6b3e\u4eba\u4fe1\u606f","fieldstype":"textarea","ispx":"0","isalign":"0","islb":"0"},{"fields":"userid","name":"\u7528\u6237\u7f16\u53f7","fieldstype":"text","ispx":"0","isalign":"0","islb":"0"},{"fields":"paymentMethod","name":"\u4ed8\u6b3e\u65b9\u5f0f","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"0"},{"fields":"payee","name":"\u6536\u6b3e\u65b9","fieldstype":"selectdatafalse","ispx":"1","isalign":"0","islb":"0"},{"fields":"paymentBy","name":"\u4ed8\u6b3e\u4e8b\u7531","fieldstype":"textarea","ispx":"1","isalign":"0","islb":"0"},{"fields":"fkorg","name":"\u4ed8\u6b3e\u7ec4\u7ec7","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"0"},{"fields":"applicant","name":"\u7533\u8bf7\u4eba","fieldstype":"text","ispx":"0","isalign":"0","islb":"0"},{"fields":"application","name":"\u7533\u8bf7\u90e8\u95e8","fieldstype":"text","ispx":"0","isalign":"0","islb":"0"},{"fields":"fujian","name":"\u9644\u4ef6","fieldstype":"uploadfile","ispx":"0","isalign":"0","islb":"0"},{"fields":"applydate","name":"\u7533\u8bf7\u65e5\u671f","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"docnum","name":"\u5355\u636e\u7f16\u53f7","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"yfkname","name":"\u6807\u9898","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"amountOfThisPayment","name":"\u4ed8\u6b3e\u91d1\u989d","fieldstype":"text","ispx":"1","isalign":"0","islb":"1"}],fieldsselarr= {"columns_oayfk_all":"base_name,base_deptname,applydate,docnum,yfkname,amountOfThisPayment,caozuo"};
var c = {
reload:function(){
......@@ -210,7 +210,7 @@ $(document).ready(function(){
fanye:true,modenum:modenum,modename:modename,statuschange:false,tablename:jm.base64decode('Y19maW5pbmZvbV9vYXlmaw::'),
url:c.storeurl(),storeafteraction:'storeaftershow',storebeforeaction:'storebeforeshow',
params:{atype:atype},
columns:[{text:"申请人",dataIndex:"base_name",sortable:true},{text:"申请人部门",dataIndex:"base_deptname",sortable:true},{text:"单号",dataIndex:"sericnum"},{text:"申请日期",dataIndex:"applydate"},{text:"单据编号",dataIndex:"docnum"},{text:"标题",dataIndex:"yfkname"},{text:"成本中心",dataIndex:"cbzxid",sortable:true},{text:"合同",dataIndex:"contractNumber"},{text:"付款金额",dataIndex:"amountOfThisPayment",sortable:true},{text:"状态",dataIndex:"statustext"},{
columns:[{text:"申请人",dataIndex:"base_name",sortable:true},{text:"申请人部门",dataIndex:"base_deptname",sortable:true},{text:"单号",dataIndex:"sericnum"},{text:"申请日期",dataIndex:"applydate"},{text:"单据编号",dataIndex:"docnum"},{text:"标题",dataIndex:"yfkname"},{text:"付款金额",dataIndex:"amountOfThisPayment",sortable:true},{text:"状态",dataIndex:"statustext"},{
text:'',dataIndex:'caozuo',callback:'opegs{rand}'
}],
itemdblclick:function(){
......@@ -266,7 +266,7 @@ $(document).ready(function(){
<td width="90%" style="padding-left:10px"><div id="changatype{rand}" class="btn-group"></div></td>
<td align="right" id="tdright_{rand}" nowrap>
<button class="btn btn-default" style="display:none" id="daobtn_{rand}" disabled click="daochu" type="button">导出 <i class="icon-angle-down"></i></button>
<span style="display:none" id="daoruspan_{rand}"><button class="btn btn-default" click="daoru,1" type="button">导入</button>&nbsp;&nbsp;&nbsp;</span><button class="btn btn-default" style="display:none" id="daobtn_{rand}" disabled click="daochu" type="button">导出 <i class="icon-angle-down"></i></button>
</td>
</tr>
</table>
......
......@@ -11,7 +11,7 @@ $(document).ready(function(){
{params}
var modenum = 'sealapl',modename='印章证照使用',isflow=1,modeid='49',atype = params.atype,pnum=params.pnum,modenames='';
if(!atype)atype='';if(!pnum)pnum='';
var fieldsarr = [{"name":"\u7533\u8bf7\u4eba","fields":"base_name"},{"name":"\u7533\u8bf7\u4eba\u90e8\u95e8","fields":"base_deptname"},{"name":"\u5355\u53f7","fields":"sericnum"},{"fields":"applydt","name":"\u7533\u8bf7\u65e5\u671f","fieldstype":"date","ispx":"1","isalign":"0","islb":"1"},{"fields":"sealid","name":"\u5bf9\u5e94ID","fieldstype":"hidden","ispx":"0","isalign":"0","islb":"0"},{"fields":"sealname","name":"\u5370\u7ae0\/\u8bc1\u7167","fieldstype":"selectdatatrue","ispx":"0","isalign":"0","islb":"1"},{"fields":"isout","name":"\u662f\u5426\u5916\u5e26","fieldstype":"select","ispx":"1","isalign":"0","islb":"1"},{"fields":"explain","name":"\u8bf4\u660e","fieldstype":"textarea","ispx":"0","isalign":"0","islb":"1"},{"fields":"mknum","name":"\u5173\u8054\u6a21\u5757\u5355\u636e","fieldstype":"hidden","ispx":"0","isalign":"0","islb":"0"}],fieldsselarr= [];
var fieldsarr = [{"name":"\u7533\u8bf7\u4eba","fields":"base_name"},{"name":"\u7533\u8bf7\u4eba\u90e8\u95e8","fields":"base_deptname"},{"name":"\u5355\u53f7","fields":"sericnum"},{"fields":"file","name":"\u9644\u4ef6","fieldstype":"uploadfile","ispx":"0","isalign":"0","islb":"0"},{"fields":"applydt","name":"\u7533\u8bf7\u65e5\u671f","fieldstype":"date","ispx":"1","isalign":"0","islb":"1"},{"fields":"num","name":"\u5355\u636e\u7f16\u53f7","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"usetype","name":"\u4f7f\u7528\u65b9\u5f0f","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"1"},{"fields":"sealid","name":"\u5bf9\u5e94ID","fieldstype":"hidden","ispx":"0","isalign":"0","islb":"0"},{"fields":"sealname","name":"\u5370\u7ae0\/\u8bc1\u7167","fieldstype":"selectdatatrue","ispx":"0","isalign":"0","islb":"1"},{"fields":"explain","name":"\u8bf4\u660e","fieldstype":"textarea","ispx":"0","isalign":"0","islb":"1"},{"fields":"mknum","name":"\u5173\u8054\u6a21\u5757\u5355\u636e","fieldstype":"hidden","ispx":"0","isalign":"0","islb":"0"}],fieldsselarr= [];
var c = {
reload:function(){
......@@ -210,7 +210,7 @@ $(document).ready(function(){
fanye:true,modenum:modenum,modename:modename,statuschange:false,tablename:jm.base64decode('c2VhbGFwbA::'),
url:c.storeurl(),storeafteraction:'storeaftershow',storebeforeaction:'storebeforeshow',
params:{atype:atype},
columns:[{text:"申请人",dataIndex:"base_name",sortable:true},{text:"申请人部门",dataIndex:"base_deptname",sortable:true},{text:"单号",dataIndex:"sericnum"},{text:"申请日期",dataIndex:"applydt",sortable:true},{text:"印章/证照",dataIndex:"sealname"},{text:"是否外带",dataIndex:"isout",sortable:true},{text:"说明",dataIndex:"explain"},{text:"状态",dataIndex:"statustext"},{
columns:[{text:"申请人",dataIndex:"base_name",sortable:true},{text:"申请人部门",dataIndex:"base_deptname",sortable:true},{text:"单号",dataIndex:"sericnum"},{text:"申请日期",dataIndex:"applydt",sortable:true},{text:"单据编号",dataIndex:"num"},{text:"使用方式",dataIndex:"usetype"},{text:"印章/证照",dataIndex:"sealname"},{text:"说明",dataIndex:"explain"},{text:"状态",dataIndex:"statustext"},{
text:'',dataIndex:'caozuo',callback:'opegs{rand}'
}],
itemdblclick:function(){
......
......@@ -11,7 +11,7 @@ $(document).ready(function(){
{params}
var modenum = 'supplier',modename='供应商列表',isflow=1,modeid='101',atype = params.atype,pnum=params.pnum,modenames='联系人,银行信息';
if(!atype)atype='';if(!pnum)pnum='';
var fieldsarr = [{"name":"\u7533\u8bf7\u4eba","fields":"base_name"},{"name":"\u7533\u8bf7\u4eba\u90e8\u95e8","fields":"base_deptname"},{"name":"\u5355\u53f7","fields":"sericnum"},{"fields":"number","name":"\u4f9b\u5e94\u5546\u7f16\u7801","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"name","name":"\u4f9b\u5e94\u5546\u540d\u79f0","fieldstype":"text","ispx":"1","isalign":"0","islb":"1"},{"fields":"department_id","name":"\u90e8\u95e8","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"staff_id","name":"\u8d1f\u8d23\u4eba","fieldstype":"changeuser","ispx":"0","isalign":"0","islb":"0"},{"fields":"supply_classify","name":"\u4f9b\u5e94\u7c7b\u522b","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"1"},{"fields":"supplier_group","name":"\u4f9b\u5e94\u5546\u5206\u7ec4","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"1"},{"fields":"company_classify","name":"\u516c\u53f8\u7c7b\u522b","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"0"},{"fields":"company_nature","name":"\u516c\u53f8\u6027\u8d28","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"0"},{"fields":"company_scale","name":"\u516c\u53f8\u89c4\u6a21","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"0"},{"fields":"correspond_org_id","name":"\u4f7f\u7528\u7ec4\u7ec7","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"0"},{"fields":"web_site","name":"\u516c\u53f8\u7f51\u5740","fieldstype":"text","ispx":"0","isalign":"0","islb":"0"},{"fields":"settle_type","name":"\u7ed3\u7b97\u65b9\u5f0f","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"0"},{"fields":"tend_type","name":"\u7ecf\u8425\u7c7b\u578b","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"0"},{"fields":"tax_type","name":"\u7a0e\u5206\u7c7b","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"0"},{"fields":"pay_condition","name":"\u4ed8\u6b3e\u6761\u4ef6","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"0"},{"fields":"pay_advance_amount","name":"\u5355\u6b21\u9884\u4ed8\u989d\u5ea6","fieldstype":"number","ispx":"0","isalign":"0","islb":"0"},{"fields":"tax_register_code","name":"\u7a0e\u52a1\u767b\u8bb0\u53f7","fieldstype":"text","ispx":"0","isalign":"0","islb":"0"},{"fields":"trade","name":"\u884c\u4e1a","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"0"},{"fields":"found_date","name":"\u521b\u7acb\u65e5\u671f","fieldstype":"date","ispx":"0","isalign":"0","islb":"0"},{"fields":"legal_person","name":"\u6cd5\u4eba\u4ee3\u8868","fieldstype":"text","ispx":"0","isalign":"0","islb":"0"},{"fields":"register_fund","name":"\u6ce8\u518c\u8d44\u91d1\uff08\u4e07\u5143\uff09","fieldstype":"number","ispx":"0","isalign":"0","islb":"0"},{"fields":"register_code","name":"\u5de5\u5546\u767b\u8bb0\u53f7","fieldstype":"number","ispx":"0","isalign":"0","islb":"0"},{"fields":"tend_permit","name":"\u751f\u4ea7\u7ecf\u8425\u8bb8\u53ef\u8bc1","fieldstype":"number","ispx":"0","isalign":"0","islb":"0"},{"fields":"social_cre_code","name":"\u7edf\u4e00\u793e\u4f1a\u4fe1\u7528\u4ee3\u7801","fieldstype":"text","ispx":"0","isalign":"0","islb":"0"},{"fields":"register_address","name":"\u6ce8\u518c\u5730\u5740","fieldstype":"text","ispx":"0","isalign":"0","islb":"0"},{"fields":"customer_id","name":"\u5bf9\u5e94\u5ba2\u6237","fieldstype":"selectdatafalse","ispx":"0","isalign":"0","islb":"0"},{"fields":"pay_currency","name":"\u7ed3\u7b97\u5e01\u522b","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"0"},{"fields":"settle","name":"\u7ed3\u7b97\u65b9","fieldstype":"selectdatafalse","ispx":"0","isalign":"0","islb":"0"},{"fields":"charge","name":"\u6536\u6b3e\u65b9","fieldstype":"selectdatafalse","ispx":"0","isalign":"0","islb":"0"},{"fields":"finance_desc","name":"\u63cf\u8ff0","fieldstype":"textarea","ispx":"0","isalign":"0","islb":"0"},{"fields":"adddt","name":"\u521b\u5efa\u65f6\u95f4","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"}],fieldsselarr= {"columns_supplier_all":"number,name,supplier_group,correspond_org_id,adddt,caozuo"};
var fieldsarr = [{"name":"\u7533\u8bf7\u4eba","fields":"base_name"},{"name":"\u7533\u8bf7\u4eba\u90e8\u95e8","fields":"base_deptname"},{"name":"\u5355\u53f7","fields":"sericnum"},{"fields":"number","name":"\u4f9b\u5e94\u5546\u7f16\u7801","fieldstype":"text","ispx":"1","isalign":"0","islb":"1"},{"fields":"name","name":"\u4f9b\u5e94\u5546\u540d\u79f0","fieldstype":"text","ispx":"1","isalign":"0","islb":"1"},{"fields":"department_id","name":"\u90e8\u95e8","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"staff_id","name":"\u8d1f\u8d23\u4eba","fieldstype":"changeuser","ispx":"0","isalign":"0","islb":"0"},{"fields":"supply_classify","name":"\u4f9b\u5e94\u7c7b\u522b","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"1"},{"fields":"supplier_group","name":"\u4f9b\u5e94\u5546\u5206\u7ec4","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"1"},{"fields":"company_classify","name":"\u516c\u53f8\u7c7b\u522b","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"0"},{"fields":"company_nature","name":"\u516c\u53f8\u6027\u8d28","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"0"},{"fields":"company_scale","name":"\u516c\u53f8\u89c4\u6a21","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"0"},{"fields":"correspond_org_id","name":"\u4f7f\u7528\u7ec4\u7ec7","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"0"},{"fields":"web_site","name":"\u516c\u53f8\u7f51\u5740","fieldstype":"text","ispx":"0","isalign":"0","islb":"0"},{"fields":"settle_type","name":"\u7ed3\u7b97\u65b9\u5f0f","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"0"},{"fields":"tend_type","name":"\u7ecf\u8425\u7c7b\u578b","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"0"},{"fields":"tax_type","name":"\u7a0e\u5206\u7c7b","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"0"},{"fields":"pay_condition","name":"\u4ed8\u6b3e\u6761\u4ef6","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"0"},{"fields":"pay_advance_amount","name":"\u5355\u6b21\u9884\u4ed8\u989d\u5ea6","fieldstype":"text","ispx":"0","isalign":"0","islb":"0"},{"fields":"tax_register_code","name":"\u7a0e\u52a1\u767b\u8bb0\u53f7","fieldstype":"text","ispx":"0","isalign":"0","islb":"0"},{"fields":"trade","name":"\u884c\u4e1a","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"0"},{"fields":"found_date","name":"\u521b\u7acb\u65e5\u671f","fieldstype":"date","ispx":"0","isalign":"0","islb":"0"},{"fields":"legal_person","name":"\u6cd5\u4eba\u4ee3\u8868","fieldstype":"text","ispx":"0","isalign":"0","islb":"0"},{"fields":"register_fund","name":"\u6ce8\u518c\u8d44\u91d1\uff08\u4e07\u5143\uff09","fieldstype":"text","ispx":"0","isalign":"0","islb":"0"},{"fields":"register_code","name":"\u5de5\u5546\u767b\u8bb0\u53f7","fieldstype":"text","ispx":"0","isalign":"0","islb":"0"},{"fields":"tend_permit","name":"\u751f\u4ea7\u7ecf\u8425\u8bb8\u53ef\u8bc1","fieldstype":"text","ispx":"0","isalign":"0","islb":"0"},{"fields":"social_cre_code","name":" \u7edf\u4e00\u793e\u4f1a\u4fe1\u7528\u4ee3\u7801\u6216\u5c45\u6c11\u8eab\u4efd\u8bc1\u53f7\u7801","fieldstype":"text","ispx":"0","isalign":"0","islb":"0"},{"fields":"register_address","name":"\u6ce8\u518c\u5730\u5740","fieldstype":"text","ispx":"0","isalign":"0","islb":"0"},{"fields":"customer_id","name":"\u5bf9\u5e94\u5ba2\u6237","fieldstype":"selectdatafalse","ispx":"0","isalign":"0","islb":"0"},{"fields":"pay_currency","name":"\u7ed3\u7b97\u5e01\u522b","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"0"},{"fields":"settle","name":"\u7ed3\u7b97\u65b9","fieldstype":"selectdatafalse","ispx":"0","isalign":"0","islb":"0"},{"fields":"charge","name":"\u6536\u6b3e\u65b9","fieldstype":"selectdatafalse","ispx":"0","isalign":"0","islb":"0"},{"fields":"finance_desc","name":"\u63cf\u8ff0","fieldstype":"textarea","ispx":"0","isalign":"0","islb":"0"},{"fields":"adddt","name":"\u521b\u5efa\u65f6\u95f4","fieldstype":"text","ispx":"1","isalign":"0","islb":"1"}],fieldsselarr= {"columns_supplier_all":"number,name,supplier_group,correspond_org_id,adddt,caozuo"};
var c = {
reload:function(){
......@@ -210,7 +210,7 @@ $(document).ready(function(){
fanye:true,modenum:modenum,modename:modename,statuschange:false,tablename:jm.base64decode('c3VwcGxpZXI:'),
url:c.storeurl(),storeafteraction:'storeaftershow',storebeforeaction:'storebeforeshow',
params:{atype:atype},
columns:[{text:"申请人",dataIndex:"base_name",sortable:true},{text:"申请人部门",dataIndex:"base_deptname",sortable:true},{text:"单号",dataIndex:"sericnum"},{text:"供应商编码",dataIndex:"number"},{text:"供应商名称",dataIndex:"name",sortable:true},{text:"部门",dataIndex:"department_id"},{text:"供应类别",dataIndex:"supply_classify"},{text:"供应商分组",dataIndex:"supplier_group"},{text:"创建时间",dataIndex:"adddt"},{text:"状态",dataIndex:"statustext"},{
columns:[{text:"申请人",dataIndex:"base_name",sortable:true},{text:"申请人部门",dataIndex:"base_deptname",sortable:true},{text:"单号",dataIndex:"sericnum"},{text:"供应商编码",dataIndex:"number",sortable:true},{text:"供应商名称",dataIndex:"name",sortable:true},{text:"部门",dataIndex:"department_id"},{text:"供应类别",dataIndex:"supply_classify"},{text:"供应商分组",dataIndex:"supplier_group"},{text:"创建时间",dataIndex:"adddt",sortable:true},{text:"状态",dataIndex:"statustext"},{
text:'',dataIndex:'caozuo',callback:'opegs{rand}'
}],
itemdblclick:function(){
......
<hr style="white-space:normal;" /><p style="white-space:normal;"><table style="width:100%;border-collapse:separate;border-spacing:0px 10px;"><tbody><tr><td width="100px">操作流水号</td><td width="300px">{trans_numb}</td><td width="100px">账户名称</td><td width="300px">{account}</td></tr><tr><td width="100px">余额变更类型</td><td width="300px">{opt_type}<br /></td><td width="100px">金额</td><td width="300px">{amount}</td></tr><tr><td width="100px">账户余额</td><td width="300px">{account_balance}</td><td width="100px">时间<br /></td><td width="300px">{create_time}<br /></td></tr></tbody></table></p><hr style="white-space:normal;" /><br />
\ No newline at end of file
<hr style="white-space:normal;" /><p style="white-space:normal;"><table style="width:100%;border-collapse:separate;border-spacing:0px 10px;"><tbody><tr><td style="padding:10px;width:100px;">单号</td><td width="300px">{base_sericnum}</td><td style="padding:10px;" width="100px">创建时间</td><td width="300px">{create_time}</td></tr><tr><td style="padding:10px;width:100px;">账户名称</td><td width="300px">{name}</td><td style="padding:10px;width:100px;">账户编码</td><td width="300px">{number}</td></tr><tr><td style="padding:10px;width:100px;">账户余额</td><td width="300px">{account_balance}</td><td style="padding:10px;width:100px;">货币类型</td><td width="300px">{currency_type}</td></tr><tr><td style="padding:10px;width:100px;">账户级别</td><td width="300px">{level}</td><td style="padding:10px;width:100px;">账户类型</td><td width="300px">{type}</td></tr><tr><td style="padding:10px;width:100px;">成本中心</td><td width="300px">{cost_id}</td><td style="padding:10px;width:100px;">授权用户</td><td width="300px">{uid}</td></tr></tbody></table></p><hr style="white-space:normal;" />
\ No newline at end of file
<hr style="white-space:normal;" /><p style="white-space:normal;"><table style="width:100%;border-collapse:separate;border-spacing:0px 10px;"><tbody><tr><td width="100px">单号</td><td width="300px">{base_sericnum}</td><td width="100px">创建时间</td><td width="300px">{create_time}</td></tr><tr><td width="100px">编码</td><td width="300px">{code}</td><td width="100px">名称</td><td width="300px">{name}</td></tr><tr><td width="100px">负责人</td><td width="300px">{principalid}</td><td width="100px">类型</td><td width="300px">{type}</td></tr><tr><td width="100px">上级成本中心</td><td width="300px">{pid}</td><td width="100px">状态</td><td width="300px">{status}</td></tr></tbody></table></p><hr style="white-space:normal;" />
\ No newline at end of file
<hr style="white-space:normal;" /><p style="white-space:normal;"><table style="width:100%;border-collapse:separate;border-spacing:0px 10px;"><tbody><tr><td width="100px">交易流水</td><td width="300px">{trans_numb}</td><td width="100px">*操作人</td><td width="300px">{base_name}</td></tr><tr><td width="100px">*资金来源</td><td width="300px">{account}</td><td width="100px">*转入账户</td><td width="300px">{toaccount}</td></tr><tr><td width="100px">*转入金额</td><td width="300px">{trans_amount}</td><td width="100px">*入账类型</td><td width="300px">{business_type}</td></tr><tr><td width="100px">情况说明</td><td width="300px">{remark}</td></tr></tbody></table></p><hr style="white-space:normal;" />{create_time}
\ No newline at end of file
<hr style="white-space:normal;" /><p style="white-space:normal;"><table style="width:100%;border-collapse:separate;border-spacing:0px 10px;"><tbody><tr><td width="100px">交易流水</td><td width="300px">{trans_numb}</td><td width="100px">操作人</td><td width="300px">{base_name}</td></tr><tr><td width="100px">转出账户</td><td width="300px">{account}</td><td width="100px">转入账户</td><td width="300px">{toaccount}</td></tr><tr><td width="100px">转出金额</td><td width="300px">{trans_amount}</td><td width="100px">划拨时间</td><td width="300px">{create_time}</td></tr><tr><td width="100px">划拨类型</td><td width="300px">{business_type}</td><td width="100px">资金利率</td><td width="300px">{service_fee}</td></tr><tr><td width="100px">资金规则</td><td width="300px">{fund_rule}</td><td width="100px"></td><td width="300px"></td></tr><tr><td width="100px">情况说明</td><td width="300px">{remark}</td></tr></tbody></table></p><hr style="white-space:normal;" />
\ No newline at end of file
<p><table class="" style="width:100%;" bordercolor="#000000" border="1"><tbody><tr><td style="width:15%;background-color:#CCCCCC;" class="ys1" width="15%" align="center">历史OA流水号</td><td class="ys2" width="35%">{his_oa_numb}</td><td style="width:15%;background-color:#CCCCCC;" class="ys1" width="15%" align="center">项目名称</td><td class="ys2" width="35%">{project_name}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;" class="ys1">付款类型</td><td class="ys2">{payment_type}</td><td style="text-align:center;background-color:#CCCCCC;" class="ys1">付款金额</td><td class="ys2">{amount}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;" class="ys1">付款方式</td><td class="ys2">{payment_mode}</td><td style="text-align:center;background-color:#CCCCCC;" class="ys1">申请人</td><td class="ys2" style="text-align:left;vertical-align:bottom;">{applicant}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;" class="ys1">所属部门</td><td class="ys2" style="text-align:left;vertical-align:bottom;">{department}</td><td style="text-align:center;background-color:#CCCCCC;" class="ys1">申请时间</td><td class="ys2">{create_time}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;" class="ys1">付款说明</td><td class="ys2" style="text-align:left;vertical-align:bottom;" colspan="3">{pay_explain}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;" class="ys1">收款人</td><td class="ys2" style="text-align:left;vertical-align:bottom;">{payee}</td><td style="text-align:center;background-color:#CCCCCC;" class="ys1">所属合同编号<br /></td><td class="ys2">{contract}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;" class="ys1">相关项目编号<br /></td><td class="ys2">{project_numb}</td><td style="text-align:center;background-color:#CCCCCC;" class="ys1">历史归属部门</td><td class="ys2">{his_dept}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;">最终状态</td><td class="ys2" colspan="3">{final_status}<br /></td></tr></tbody></table></p>
\ No newline at end of file
<p><br /><table class="" border="1" bordercolor="#000000" style="width:100%;"><tbody><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;"><span style="text-indent:28.2353px;white-space:normal;"><span style="text-align:center;text-indent:28.2353px;white-space:normal;background-color:#CCCCCC;">标题</span></span><br /></td><td class="ys2" colspan="3" style="text-align:left;"><span style="text-indent:28.2353px;white-space:normal;"><span style="text-indent:28.2353px;white-space:normal;">{title}</span></span><br /></td></tr><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;"><span style="text-align:center;text-indent:28.2353px;white-space:normal;"><span style="text-align:center;text-indent:28.2353px;white-space:normal;">单据编号</span></span> </td><td class="ys2"><span style="text-indent:28.2353px;white-space:normal;">{docnum}</span><br /></td><td style="text-align:center;background-color:#CCCCCC;">发起日期<br /></td><td>{sponsordate}<br /></td></tr><tr><td class="ys1" height="34" align="right" width="15%" style="text-align:center;width:15%;height:34px;background-color:#CCCCCC;">发起人</td><td class="ys2" width="35%">{sponsor}</td><td class="ys1" align="right" width="15%" style="text-align:center;width:15%;background-color:#CCCCCC;">发起人部门</td><td class="ys2" width="35%">{sponsordept}</td></tr><tr><td class="ys1" height="34" align="right" style="text-align:center;height:6px;background-color:#CCCCCC;" colspan="4"><br /></td></tr><tr><td class="ys1" height="34" align="right" style="text-align:center;height:34px;background-color:#CCCCCC;">回款单位</td><td class="ys2">{hkunit}</td><td class="ys1" style="text-align:center;background-color:#CCCCCC;">总金额<br /></td><td class="ys2">{amount}<br /></td></tr><tr><td class="ys2" style="background-color:#CCCCCC;" colspan="4"><p><strong>回款明细</strong> </p></td></tr><tr><td class="ys1" style="text-align:left;" colspan="4">{subdata0}<br /></td></tr></tbody></table></p><br />
\ No newline at end of file
<p>回款状态:{status}<br /><table class="" border="1" bordercolor="#000000" style="width:100%;"><tbody><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;"><span style="text-indent:28.2353px;white-space:normal;"><span style="text-align:center;text-indent:28.2353px;white-space:normal;background-color:#CCCCCC;">标题</span></span><br /></td><td class="ys2" colspan="3" style="text-align:left;"><span style="text-indent:28.2353px;white-space:normal;"><span style="text-indent:28.2353px;white-space:normal;">{title}</span></span><br /></td></tr><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;"><span style="text-align:center;text-indent:28.2353px;white-space:normal;"><span style="text-align:center;text-indent:28.2353px;white-space:normal;">单据编号</span></span> </td><td class="ys2"><span style="text-indent:28.2353px;white-space:normal;">{docnum}</span><br /></td><td style="text-align:center;background-color:#CCCCCC;">发起日期<br /></td><td>{sponsordate}<br /></td></tr><tr><td class="ys1" height="34" align="right" width="15%" style="text-align:center;width:15%;height:34px;background-color:#CCCCCC;">发起人</td><td class="ys2" width="35%">{sponsor}</td><td class="ys1" align="right" width="15%" style="text-align:center;width:15%;background-color:#CCCCCC;">发起人部门</td><td class="ys2" width="35%">{sponsordept}</td></tr><tr><td class="ys1" height="34" align="right" style="text-align:center;height:6px;background-color:#CCCCCC;" colspan="4"><br /></td></tr><tr><td class="ys1" height="34" align="right" style="text-align:center;height:34px;background-color:#CCCCCC;">回款单位</td><td class="ys2">{hkunit}</td><td class="ys1" style="text-align:center;background-color:#CCCCCC;">回款税率<br /></td><td class="ys2">{amounttax}<br /></td></tr><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;">应回金额<br /></td><td class="ys2">{hkamount}<br /></td><td class="ys1" style="text-align:center;background-color:#CCCCCC;">可回金额<br /></td><td class="ys2">{hkamountcan}<br /></td></tr><tr><td class="ys2" style="background-color:#CCCCCC;" colspan="4"><p><strong>回款明细</strong> </p></td></tr><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;">合同编号<br /></td><td class="ys2">{contractnum}<br /></td><td class="ys1" style="text-align:center;background-color:#CCCCCC;"><span style="text-align:center;text-indent:28px;white-space:normal;background-color:#CCCCCC;">回款类型</span><br /></td><td class="ys1"><span style="text-indent:28px;white-space:normal;">{hktype}</span><br /></td></tr><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;">计划回款日期<br /></td><td class="ys2">{hkdate}<br /></td><td class="ys1" style="text-align:center;background-color:#CCCCCC;">项目编号<br /></td><td class="ys2">{objnum}<br /></td></tr></tbody></table></p><br />
\ No newline at end of file
<p><span style="font-size:small;"><br /></span><table bordercolor="#000000" style="width:100%;" border="1"><tbody><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;"><span style="text-align:center;text-indent:28px;white-space:normal;background-color:#CCCCCC;"></span>单号<br /></td><td class="ys2" colspan="3">{docnum}<br /></td></tr><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;"><span style="text-align:center;text-indent:28px;white-space:normal;background-color:#CCCCCC;"></span>标题<br /></td><td class="ys2" colspan="3">{fkname}<br /></td></tr><tr><td height="34" align="right" class="ys1" style="height:34px;text-align:center;background-color:#CCCCCC;"><span style="text-align:center;text-indent:28px;white-space:normal;background-color:#CCCCCC;"></span>申请人</td><td class="ys2">{applicant}</td><td align="right" class="ys1" style="text-align:center;background-color:#CCCCCC;"><span style="text-align:center;text-indent:28px;white-space:normal;background-color:#CCCCCC;"></span>申请部门</td><td class="ys2">{applicationdpt}</td></tr><tr><td width="15%" height="34" align="right" class="ys1" style="width:15%;height:34px;text-align:center;background-color:#CCCCCC;">申请日期</td><td width="35%" class="ys2">{applydate}</td><td width="15%" align="right" class="ys1" style="text-align:center;"><br /></td><td width="35%" class="ys2"></td></tr><tr><td height="34" align="right" class="ys1" style="height:34px;text-align:center;background-color:#CCCCCC;">成本中心</td><td class="ys2" colspan="3">{cbzxid}</td></tr><tr><td height="34" align="right" class="ys1" style="height:34px;text-align:center;background-color:#CCCCCC;">付款方式</td><td class="ys2">{paymentMethod}</td><td align="right" class="ys1" style="text-align:center;background-color:#CCCCCC;">付款金额<span style="text-align:center;text-indent:28px;white-space:normal;background-color:#CCCCCC;">(元)</span></td><td class="ys2">{amountOfThisPayment}</td></tr><tr><td height="34" align="right" class="ys1" style="height:34px;text-align:center;background-color:#CCCCCC;">收款方<br /></td><td class="ys2">{payee}</td><td align="right" class="ys1" style="text-align:center;background-color:#CCCCCC;">合同</td><td class="ys2">{contractNumber}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;">收款方信息<br /></td><td class="ys2" colspan="3">{fkinfo}<br /></td></tr><tr><td height="34" align="right" class="ys1" style="height:34px;text-align:center;background-color:#CCCCCC;">付款事由</td><td class="ys2" colspan="3">{paymentBy}</td></tr><tr><td height="34" align="right" class="ys1" style="height:34px;text-align:center;background-color:#CCCCCC;">附件</td><td class="ys2" colspan="3">{fujian}</td></tr></tbody></table></p>
\ No newline at end of file
<p><span style="font-size:small;"><br /></span> <table bordercolor="#000000" style="width:100%;" border="1"><tbody><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;"><span style="text-align:center;text-indent:28px;white-space:normal;background-color:#CCCCCC;"></span>单号<br /></td><td class="ys2" colspan="3">{docnum}<br /></td></tr><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;"><span style="text-align:center;text-indent:28px;white-space:normal;background-color:#CCCCCC;"></span>标题<br /></td><td class="ys2" colspan="3">{fkname}<br /></td></tr><tr><td height="34" align="right" class="ys1" style="height:34px;text-align:center;background-color:#CCCCCC;"><span style="text-align:center;text-indent:28px;white-space:normal;background-color:#CCCCCC;"></span>申请人</td><td class="ys2">{applicant}</td><td align="right" class="ys1" style="text-align:center;background-color:#CCCCCC;"><span style="text-align:center;text-indent:28px;white-space:normal;background-color:#CCCCCC;"></span>申请部门</td><td class="ys2">{applicationdpt}</td></tr><tr><td width="15%" height="34" align="right" class="ys1" style="width:15%;height:34px;text-align:center;background-color:#CCCCCC;">申请日期</td><td width="35%" class="ys2">{applydate}</td><td width="15%" align="right" class="ys1" style="text-align:center;width:15%;background-color:#CCCCCC;"><style="text-align:center;text-indent:28px;white-space:normal;background-color:#cccccc;">收款方<br /></style="text-align:center;text-indent:28px;white-space:normal;background-color:#cccccc;"></td><td width="35%" class="ys2" style="width:35%;text-align:left;"><span style="white-space:normal;text-indent:28px;">{payee}</span> </td></tr><tr><td height="34" align="right" class="ys1" style="height:34px;text-align:center;background-color:#CCCCCC;">付款方式</td><td class="ys2">{paymentMethod}</td><td align="right" class="ys1" style="text-align:center;background-color:#CCCCCC;">付款金额<span style="text-align:center;text-indent:28px;white-space:normal;background-color:#CCCCCC;">()</span> </td><td class="ys2">{amountOfThisPayment}</td></tr><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;">付款组织<br /></td><td class="ys2" colspan="3">{fkorg}<br /></td></tr><tr><td class="ys2" style="background-color:#CCCCCC;vertical-align:middle;" colspan="4"><p><strong>款项明细</strong> </p></td></tr><tr><td colspan="4" style="text-align:center;">{subdata0}<hr /><br /></td></tr><tr><td style="text-align:center;background-color:#CCCCCC;">收款方信息<br /></td><td class="ys2" colspan="3">{fkinfo}<br /></td></tr><tr><td height="34" align="right" class="ys1" style="height:34px;text-align:center;background-color:#CCCCCC;">付款事由</td><td class="ys2" colspan="3">{paymentBy}</td></tr><tr><td height="34" align="right" class="ys1" style="height:34px;text-align:center;background-color:#CCCCCC;">附件</td><td class="ys2" colspan="3">{fujian}</td></tr></tbody></table></p>
\ No newline at end of file
<p><span style="font-size:small;"><br /></span> <table bordercolor="#000000" style="width:100%;" border="1"><tbody><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;"><span style="text-align:center;text-indent:28px;white-space:normal;background-color:#CCCCCC;"></span>单号<br /></td><td class="ys2" colspan="3">{docnum}<br /></td></tr><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;"><span style="text-align:center;text-indent:28px;white-space:normal;background-color:#CCCCCC;"></span>标题<br /></td><td class="ys2" colspan="3">{yfkname}<br /></td></tr><tr><td height="34" align="right" class="ys1" style="height:34px;text-align:center;background-color:#CCCCCC;"><span style="text-align:center;text-indent:28px;white-space:normal;background-color:#CCCCCC;"></span>申请人</td><td class="ys2">{base_name}</td><td align="right" class="ys1" style="text-align:center;background-color:#CCCCCC;"><span style="text-align:center;text-indent:28px;white-space:normal;background-color:#CCCCCC;"></span>申请部门</td><td class="ys2">{base_deptname}</td></tr><tr><td width="15%" height="34" align="right" class="ys1" style="width:15%;height:34px;text-align:center;background-color:#CCCCCC;">申请日期</td><td width="35%" class="ys2" style="text-align:left;">{applydate}</td><td width="15%" align="right" class="ys1" style="text-align:center;"><br /></td><td width="35%" class="ys2"></td></tr><tr><td height="34" align="right" class="ys1" style="height:34px;text-align:center;background-color:#CCCCCC;">成本中心</td><td class="ys2" colspan="3">{cbzxid}</td></tr><tr><td height="34" align="right" class="ys1" style="height:34px;text-align:center;background-color:#CCCCCC;">付款方式</td><td class="ys2">{paymentMethod}</td><td align="right" class="ys1" style="text-align:center;background-color:#CCCCCC;">付款金额(元)</td><td class="ys2">{amountOfThisPayment}</td></tr><tr><td height="34" align="right" class="ys1" style="height:34px;text-align:center;background-color:#CCCCCC;">收款方<br /></td><td class="ys2">{payee}</td><td align="right" class="ys1" style="text-align:center;background-color:#CCCCCC;">合同</td><td class="ys2">{contractNumber}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;">收款方信息<br /></td><td class="ys2" colspan="3">{fkinfo}<br /></td></tr><tr><td height="34" align="right" class="ys1" style="height:34px;text-align:center;background-color:#CCCCCC;">付款事由</td><td class="ys2" colspan="3">{paymentBy}</td></tr><tr><td height="34" align="right" class="ys1" style="height:34px;text-align:center;background-color:#CCCCCC;">附件</td><td class="ys2" colspan="3">{fujian}</td></tr></tbody></table></p>
\ No newline at end of file
<p><span style="font-size:small;"><br /></span> <table bordercolor="#000000" style="width:100%;" border="1"><tbody><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;"><span style="text-align:center;text-indent:28px;white-space:normal;background-color:#CCCCCC;"></span>单号<br /></td><td class="ys2" colspan="3">{docnum}<br /></td></tr><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;"><span style="text-align:center;text-indent:28px;white-space:normal;background-color:#CCCCCC;"></span>标题<br /></td><td class="ys2" colspan="3">{yfkname}<br /></td></tr><tr><td height="34" align="right" class="ys1" style="height:34px;text-align:center;background-color:#CCCCCC;"><span style="text-align:center;text-indent:28px;white-space:normal;background-color:#CCCCCC;"></span>申请人</td><td class="ys2">{applicant}</td><td align="right" class="ys1" style="text-align:center;background-color:#CCCCCC;"><span style="text-align:center;text-indent:28px;white-space:normal;background-color:#CCCCCC;"></span>申请部门</td><td class="ys2">{application}</td></tr><tr><td width="15%" height="34" align="right" class="ys1" style="width:15%;height:34px;text-align:center;background-color:#CCCCCC;">申请日期</td><td width="35%" class="ys2">{applydate}</td><td width="15%" align="right" class="ys1" style="text-align:center;width:15%;background-color:#CCCCCC;"><style="text-align:center;text-indent:28px;white-space:normal;background-color:#cccccc;">收款方<br /></style="text-align:center;text-indent:28px;white-space:normal;background-color:#cccccc;"></td><td width="35%" class="ys2" style="width:35%;text-align:left;"><span style="white-space:normal;text-indent:28px;">{payee}</span> </td></tr><tr><td height="34" align="right" class="ys1" style="height:34px;text-align:center;background-color:#CCCCCC;">付款方式</td><td class="ys2">{paymentMethod}</td><td align="right" class="ys1" style="text-align:center;background-color:#CCCCCC;">付款金额<span style="text-align:center;text-indent:28px;white-space:normal;background-color:#CCCCCC;">()</span> </td><td class="ys2">{amountOfThisPayment}</td></tr><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;">付款组织<br /></td><td class="ys2" colspan="3">{fkorg}<br /></td></tr><tr><td class="ys2" style="background-color:#CCCCCC;vertical-align:middle;" colspan="4"><p style="text-align:left;"><strong>款项明细</strong> </p></td></tr><tr><td colspan="4" style="text-align:center;">{subdata0}<br /><hr /><br /></td></tr><tr><td style="text-align:center;background-color:#CCCCCC;">收款方信息<br /></td><td class="ys2" colspan="3">{fkinfo}<br /></td></tr><tr><td height="34" align="right" class="ys1" style="height:34px;text-align:center;background-color:#CCCCCC;">付款事由</td><td class="ys2" colspan="3">{paymentBy}</td></tr><tr><td height="34" align="right" class="ys1" style="height:34px;text-align:center;background-color:#CCCCCC;">附件</td><td class="ys2" colspan="3">{fujian}</td></tr></tbody></table></p>
\ No newline at end of file
<table width="100%" bordercolor="#000000" border="0" class="ke-zeroborder"><tbody><tr><td height="34" width="15%" align="right" class="ys1">申请日期</td><td class="ys2" width="35%">{applydt}</td><td class="ys1" width="15%" align="right">使用方式</td><td class="ys2" width="35%">{usetype}</td></tr><tr><td class="ys1" style="text-align:right;">单据编号<br /></td><td class="ys2" colspan="3">{num}<br /></td></tr><tr><td height="34" align="right" class="ys1">印章/证照</td><td class="ys2" width="35%" colspan="3">{sealid}{sealname}{mknum}</td></tr><tr><td height="34" align="right" class="ys1">说明</td><td colspan="3" class="ys2">{explain}</td></tr><tr><td height="34" align="right" class="ys1">附件</td><td colspan="3" class="ys2">{file}</td></tr><tr><td height="34" align="right" class="ys1">申请人</td><td class="ys2">{base_name}</td><td class="ys1" align="right">申请人部门</td><td class="ys2">{base_deptname}</td></tr></tbody></table>
\ No newline at end of file
差异被折叠。
......@@ -65,6 +65,7 @@ function globalbody(){
?>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="http://jz.gonn.com.cn/" target="_blank"><i class="icon-sitemap"></i> 基站系统</a></li>
<?php
if(getconfig('mobile_show',true))echo '<li><a href="javascript:;" onclick="openmobile()"><i class="icon-tablet"></i> 手机版</a></li>';
if(getconfig('reim_show', true))echo '<li><a href="javascript:;" onclick="openreim(this)"><span title="REIM即时通信"><i class="icon-comments-alt"></i> REIM <font class="badge red" id="reim_stotal" style="font-size:12px;background:red;color:white"></font></span></a></li>';
......
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=$da['title']?></title>
<link rel="stylesheet" type="text/css" href="<?=$da['p']?>/css/webmain.css"/>
<link rel="stylesheet" type="text/css" id="mainstylecss" href="<?=$da['stylecss']?>"/>
<link rel="stylesheet" type="text/css" href="web/res/fontawesome/css/font-awesome.min.css">
<!--[if IE 7 ]><link rel="stylesheet" type="text/css" href="web/res/fontawesome/css/font-awesome-ie7.min.css"><![endif]-->
<link rel="stylesheet" type="text/css" href="web/res/mode/menu/jquery-rockmenu.css"/>
<link rel="stylesheet" type="text/css" href="mode/plugin/css/jquery-rockdatepicker.css"/>
<!-- <link rel="shortcut icon" href="<?=$da['icon']?>" /> -->
<link rel="shortcut icon" href="favicon.ico" />
<script type="text/javascript" src="web/res/js/jquery.1.9.1.min.js"></script>
<script type="text/javascript" src="js/js.js"></script>
<script type="text/javascript" src="js/worker.js"></script>
<script type="text/javascript" src="js/base64-min.js"></script>
<script type="text/javascript" src="<?=$da['p']?>/<?=$da['d']?><?=$da['m']?>/<?=$da['m']?>public.js"></script>
<script type="text/javascript" src="<?=$da['p']?>/<?=$da['d']?><?=$da['m']?>/<?=$da['m']?>script.js"></script>
<script type="text/javascript" src="web/res/mode/menu/jquery-rockmenu.js"></script>
<script type="text/javascript">
js.servernow = '<?=$da['now']?>';
PROJECT = '<?=$da['p']?>';
adminip = '<?=$da['ip']?>';
VERSION = '<?=VERSION?>';
companymode = <?=(getconfig('companymode')? 'true' : 'false')?>;
var show_key = '<?=$da['showkey']?>',homeurl = '<?=$da['homeurl']?>',homename='<?=$da['homename']?>';
function globalbody(){
adminid = '<?=$da['adminid']?>';
adminface = '<?=$da['face']?>';
adminname = '<?=$da['adminname']?>';
adminuser = '<?=$da['adminuser']?>';
adminstyle = '<?=$da['style']?>';
admintype = '<?=$da['admintype']?>';
deptallname = '<?=$da['my']['deptallname']?>';
adminranking= '<?=$da['my']['ranking']?>';
}
</script>
</head>
<body style="padding:0px;margin:0px; overflow:hidden;" scroll="no">
<?php if(isempt($da['homeurl'])){?>
<div id="topheaderid">
<nav class="navbar navbar-<?=$da['styledev']?> navbar-static-top" id="navtopheader" style="margin:0px;z-index:0">
<div>
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#app-navbar-collapse">
<span class="sr-only">Toggle</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="">
<img src="<?=$da['logo']?>" style="display:inline;" align="absmiddle" height="24" width="24"> <?=$da['title']?>
</a>
</div>
<div class="collapse navbar-collapse" id="app-navbar-collapse">
<ul class="nav navbar-nav">
<?php foreach($da['topmenu'] as $k=>$rs){
$str = '<li pmenuid="'.$rs['id'].'" title="'.$rs['name'].'" icon="'.$rs['icons'].'"><a>';
if($rs['icons'])$str.='<i class="icon-'.$rs['icons'].'"></i> ';
$str.=''.$rs['name'].'</a></li>';
echo $str;
}
?>
</ul>
<ul class="nav navbar-nav navbar-right">
<?php
if(getconfig('mobile_show',true))echo '<li><a href="javascript:;" onclick="openmobile()"><i class="icon-tablet"></i> 手机版</a></li>';
if(getconfig('reim_show', true))echo '<li><a href="javascript:;" onclick="openreim(this)"><span title="REIM即时通信"><i class="icon-comments-alt"></i> REIM <font class="badge red" id="reim_stotal" style="font-size:12px;background:red;color:white"></font></span></a></li>';
?>
<li id="indexuserl">
<a href="javascript:;">
<div style="padding-right:10px">
<img style="width:18px;height:18px;border-radius:50%" id="myface" src="<?=$da['face']?>" align="absmiddle">
<?=$da['adminname']?><span class="caret"></span>
</div>
</a>
</li>
</ul>
</div>
</div>
</nav>
</div>
<?php }?>
<table width="100%" border="0" id="zhutable" cellspacing="0" cellpadding="0">
<tr valign="top">
<?php if(isempt($da['homeurl'])){?>
<td >
<div id="indexmenu" style="width:200px;overflow:hidden;">
<ul class="list-group" style="margin:0">
<li style="border-radius:0px;border-left:none;border-right:none;border-top:none;cursor:pointer;border-bottom:0px" class="list-group-item list-group-item-info"><b id="menulisttop">基本</b>
<span style="float:right"><i id="indesearchmenu" onclick="tab.chagneleft(this)" class="icon-search"></i>&nbsp; &nbsp;<i id="reordershla" class="icon-reorder cursor"></i></span>
</li>
</ul>
<div style="overflow:auto;height:200px;" id="menulist">
<ul class="list-group" style="margin:0" id="menushow">
</ul>
</div>
</div>
<div id="indexmenuss" style="display:none;background:rgba(0,0,0,0.3)" class="menulistbg cursor"><i class="icon-reorder"></i><br><br><br><br></div>
<td>
<div id="indexsplit" style="overflow:hidden;width:5px;background:rgba(0,0,0,0.1)"></div>
</td>
</td>
<?php }?>
<td width="100%">
<div style="overflow:hidden;position:relative;">
<div class="jtcls" id="jtcls_left" onclick="_changesrcool(1)">&gt;</div>
<div class="jtcls" id="jtcls_right" onclick="_changesrcool(-1)" style="left:0px">&lt;</div>
<div class="panel panel-default" style="border:none;border-radius:0;margin-bottom:0">
<div id="tabsindexm" class="panel-heading tabsindex" style="border:none;border-radius:0;padding:0px;overflow:hidden;">
<table border="0" cellspacing="0" cellpadding="0"><tr id="tabs_title"></tr></table>
</div>
</div>
<div id="indexcontent" style="overflow:auto;position:relative;">
<div id="content_allmainview" style="margin:10px;"></div>
</div>
</div>
</td>
</tr>
</table>
<script src="mode/bootstrap3.3/bootstrap.min.js"></script>
<script type="text/javascript" src="mode/bootstrapplugin/jquery-bootstable.js"></script><!--表格插件-->
<script type="text/javascript" src="mode/bootstrapplugin/jquery-bootsform.js"></script><!--表单插件-->
<script type="text/javascript" src="mode/bootstrapplugin/jquery-bootstree.js"></script><!--表格树形插件-->
<script type="text/javascript" src="mode/plugin/jquery-rockdatepicker.js"></script><!--日期选择插件-->
<script type="text/javascript" src="web/res/js/jquery-imgview.js"></script><!--图片预览-->
<script type="text/javascript" src="web/res/perfectscrollbar/jquery.mousewheel.js"></script><!--鼠标-->
<script type="text/javascript" src="web/res/js/jquery-rockupload.js"></script><!--上传插件-->
<script type="text/javascript" src="web/res/js/jquery-changeuser.js"></script><!--人员选择-->
<script type="text/javascript" src="web/res/mode/calendar/jquery-rockcalendar.js"></script><!--日期插件-->
<script type="text/javascript" src="web/res/mode/calendar/jquery-rocklunar.js"></script><!--农历-->
<script type="text/javascript" src="js/option.js"></script><!--数据选项-->
<script type="text/javascript" src="web/res/js/notify.js"></script><!--通知提醒插件-->
<script type="text/javascript" src="mode/plugin/jquery-rockmodels.js"></script><!--弹出提示插件-->
</body>
</html>
\ No newline at end of file
......@@ -35,12 +35,16 @@ class loginClassAction extends ActionNot{
$user = $arr['user'];
$token = $arr['token'];
$face = $arr['face'];
m('login')->setsession($uid, $name, $token, $user);
$this->rock->savecookie('ca_adminuser', $userp);
$this->rock->savecookie('ca_rempass', $rempass);
$ca_adminpass = $this->jm->encrypt($pass);
if($rempass=='0')$ca_adminpass='';
$this->rock->savecookie('ca_adminpass', $ca_adminpass);
$barr['success'] = true;
$barr['face'] = $face;
}else{
......
<?php
class loginClassAction extends ActionNot{
public function defaultAction()
{
$this->tpltype = 'html';
$this->smartydata['ca_adminuser'] = $this->getcookie('ca_adminuser');
$this->smartydata['ca_rempass'] = $this->getcookie('ca_rempass');
$this->smartydata['ca_adminpass'] = $this->getcookie('ca_adminpass');
$this->smartydata['loginyzm'] = (int)getconfig('loginyzm','0'); //登录类型
}
public function checkAjax()
{
$user = $this->jm->base64decode($this->post('adminuser'));
$user = str_replace(' ','',$user);
$pass = $this->jm->base64decode($this->post('adminpass'));
$rempass= $this->post('rempass');
$jmpass = $this->post('jmpass');
$cfrom = $this->post('cfrom','pc');
if($jmpass == 'true')$pass=$this->jm->uncrypt($pass);
$userp = $user;
$arr = m('login')->start($user, $pass, $cfrom);
$barr = array();
if(is_array($arr)){
if(isset($arr['mobile'])){
$barr = $arr;
$barr['success'] = false;
return $barr;
}
$uid = $arr['uid'];
$name = $arr['name'];
$user = $arr['user'];
$token = $arr['token'];
$face = $arr['face'];
m('login')->setsession($uid, $name, $token, $user);
$this->rock->savecookie('ca_adminuser', $userp);
$this->rock->savecookie('ca_rempass', $rempass);
$ca_adminpass = $this->jm->encrypt($pass);
if($rempass=='0')$ca_adminpass='';
$this->rock->savecookie('ca_adminpass', $ca_adminpass);
$barr['success'] = true;
$barr['face'] = $face;
}else{
$barr['success'] = false;
$barr['msg'] = $arr;
}
return $barr;
}
public function exitAction()
{
m('dept')->online(0);//离线
m('login')->exitlogin('pc',$this->admintoken);
$this->rock->location('?m=login');
}
}
\ No newline at end of file
......@@ -97,6 +97,7 @@ function loginsubmit(){
// js.setoption('loginface', a.face);
var burl = js.request('backurl');
var curl = (burl=='')?NOWURL:jm.base64decode(burl);
js.setmsg('登录成功,<a href="'+curl+'">跳转中</a>...','green');
js.location(curl);
}else{
......
var oldpass='',initlogo='images/logo.png',olduser,loginyzm='',mobilejsho='';
function getpassobj(){
return $('input[type=password]');
}
function initbody(){
var ltype = form('logintype').value;
form('adminmobile').value=js.getoption('adminmobile');
if(ltype=='0'){
form('adminuser').focus();
oldpass = getpassobj().val();
olduser = form('adminuser').value;
if(form('adminuser').value!=''){
getpassobj().focus();
}
$(form('adminuser')).change(function(){
changeuserface(this.value);
});
}else{
olduser = form('adminmobile').value;
}
resizewh();
$(window).resize(resizewh);
var sf = js.getoption('loginface');
if(sf)get('imglogo').src=sf;
}
function resizewh(){
var h = ($(document).height()-500)*0.5;
$('#topheih').css('height',''+(h+50)+'px');
}
function changeuserface(v){
var sf = js.getoption('loginface');
if(!sf)return;
if(v==''||v!=olduser){
get('imglogo').src=initlogo;
}else{
get('imglogo').src=sf;
}
}
function loginsubmit(){
if(js.bool)return false;
var ltype = form('logintype').value,user='',pass='';
try{localStorage.clear();}catch(e){}
var data = {};
if(ltype=='0'){
user = form('adminuser').value;
pass = getpassobj().val();
if(user==''){
js.setmsg('用户名不能为空','red');
form('adminuser').focus();
return false;
}
if(pass==''){
js.setmsg('密码不能为空','red');
getpassobj().focus();
return false;
}
data.rempass = form('rempass').checked ? '1':'0'; //记住密码?
}else{
user = form('adminmobile').value;
if(user==''){
js.setmsg('手机号不能为空','red');
form('adminmobile').focus();
return false;
}
js.setoption('adminmobile', user);
loginyzm = form('adminmobileyzm').value;
if(loginyzm=='' || loginyzm.length!=6){
js.setmsg('手机验证码格式不对','red');
form('adminmobileyzm').focus();
return false;
}
}
js.tanstyle = 1;
js.setmsg('登录中...','blue');
form('button').disabled=true;
var url = js.getajaxurl('check','login');
data.jmpass = 'false';
data.device = device;
data.ltype = ltype;
data.adminuser = jm.base64encode(user);
data.adminpass = jm.base64encode(pass);
data.yanzm = loginyzm;
if(oldpass==pass)data.jmpass= 'true';
js.bool = true;
loginyzm = '';
js.ajax(url,data,function(a){
if(a.success){
// get('imglogo').src=a.face;
// js.setoption('loginface', a.face);
var burl = js.request('backurl');
var curl = (burl=='')?NOWURL:jm.base64decode(burl);
js.setmsg('登录成功,<a href="'+curl+'">跳转中</a>...','green');
js.location(curl);
}else{
js.setmsg(a.msg,'red');
form('button').disabled=false;
js.bool = false;
if(a.shouji){
mobilejsho = a.mobile;
js.prompt('输入手机验证码','手机号:'+a.shouji+'&nbsp;<span><a class="zhu" href="javascript:;" onclick="getcodes(this)">[获取验证码]</a></span>',function(jg,txt){
if(jg=='yes' && txt){
loginyzm = txt;
loginsubmit();
}
});
}
}
},'post,json');
}
function getcodes(o1){
var da = {'mobile':mobilejsho,'device':device};
var o2 = $(o1).parent();
o2.html(js.getmsg('获取中...'));
js.ajax('api.php?m=yanzm',da,function(a){
if(a.success){
o2.html(js.getmsg('获取成功','green'));
}else{
o2.html(js.getmsg(a.msg));
}
},'post,json');
}
//获取验证码
function getyzm(o1){
mobilejsho = form('adminmobile').value;
if(!mobilejsho){
js.setmsg('请输入手机号');
form('adminmobile').focus();
return;
}
var da = {'mobile':mobilejsho,'device':device};
o1.value = '获取中...';
js.setmsg();
o1.disabled=true;
js.ajax('api.php?m=yanzm&a=glogin',da,function(a){
if(a.success){
o1.value = '获取成功';
js.msg('success', '验证码已发送到手机上');
form('adminmobileyzm').value=a.data;
dshitime(60, o1);
}else{
o1.value = '重新获取';
o1.disabled=false;
js.setmsg(a.msg);
}
},'post,json');
}
function dshitime(sj,o1){
if(sj==0){
o1.disabled=false;
o1.value='重新获取';
return;
}
o1.disabled=true;
o1.value=''+sj+'';
setTimeout(function(){dshitime(sj-1, o1)},1000);
}
function changlogin(){
$('#loginview0').hide();
$('#loginview1').show();
form('logintype').value='1';
}
\ No newline at end of file
......@@ -51,6 +51,7 @@ class baseClassModel extends Model
$urs['companyname'] = arrvalue($urs,'companyname');;
$urs['time'] = date('H:i:s');
$urs['now'] = $this->rock->now;
$urs['trans_numb'] = date('YmdHis').mt_rand(0000,9999);
$urs['admin'] = arrvalue($urs,'name', $this->adminname);
$urs['adminname'] = $urs['admin'];
$urs['adminid'] = $uid;
......
......@@ -47,7 +47,7 @@ class CommonClassModel extends Model
$sql = '';
if ($uid != 1)
$sql .= ' and (c.uid = ' . $uid . ' or c.staff_id = ' . $uid . ')';
$where='select c.id as value, CONCAT(c.title, "(",c.numb,")") as name from [Q]c_contract as c inner join [Q]flow_bill as f on c.id=f.mid where (f.nowcourseid =485 or c.status=1) '.$sql;
$where='select c.id as value, CONCAT(c.title, "(",c.numb,")") as name from [Q]c_contract as c inner join [Q]flow_bill as f on c.id=f.mid where (f.nowcourseid =752 or c.status=1) '.$sql;
$data = $this->db->getall($where);
return $data;
......@@ -69,7 +69,16 @@ class CommonClassModel extends Model
order by id desc');
return $data;
}
//账户列表接口
public function getaccountlist()
{
$uid = $this->getuid();
$data = $this->db->getall('select `id` as value,name from
oa_c_fund_account
where (uid = ' . $uid . ' or uid=' . $uid . ' or uid like concat(' . $uid . ',",%") or uid like concat("%,",' . $uid . ') or uid like concat("%,",' . $uid . ',",%"))
and status = 1 ');
return $data;
}
//成本中心列表接口
public function getcbzx()
{
......
<?php
class flow_account_detailClassModel extends flowModel
{
public function flowrsreplace($rs)
{
foreach ($rs as $k => &$v) {
switch ($k) {
case 'opt_type':
if($v == 1) {
$v = '收入';
} else if($v == 2) {
$v = '支出';
} else {
$v = '';
}
continue;
break;
}
}
return $rs;
}
}
<?php
class flow_account_listClassModel extends flowModel
{
public function flowrsreplace($rs)
{
if($rs['type']){
$data=$this->db->getone('oa_option',"num='".$rs['status']."' and pid=1366");
$rs['type']=$data['name'];
}
if($rs['level']){
$data=$this->db->getone('oa_option',"num='".$rs['level']."' and pid=1370");
$rs['level']=$data['name'];
}
if($rs['status']){
$data=$this->db->getone('oa_option',"num='".$rs['status']."' and pid=1374");
$rs['status']=$data['name'];
}
if($rs['currency_type']){
$data=$this->db->getone('oa_option',"num='".$rs['currency_type']."'");
$rs['currency_type']=$data['name'];
}
return $rs;
}
}
<?php
class flow_cost_centerClassModel extends flowModel
{
public function flowrsreplace($rs)
{
if($rs['type']){
$data=$this->db->getone('oa_option',"num='".$rs['type']."' and pid=1377");
$rs['type']=$data['name'];
}
if($rs['status']){
$data=$this->db->getone('oa_option',"num='".$rs['status']."' and pid=1380");
$rs['status']=$data['name'];
}
return $rs;
}
}
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
<?php
class flow_fund_depositClassModel extends flowModel
{
public function flowrsreplace($rs)
{
if($rs['business_type']){
$data=$this->db->getone('oa_option',"num='".$rs['business_type']."' and pid=1350");
$rs['business_type']=$data['name'];
}
return $rs;
}
//提交时调用
protected function flowsubmit($na, $sm){
$name=$this->rs['toaccount'];
$data=m('c_fund_account')->getone("`name`='$name'");
$zfarr = array(
'account_balance' =>$this->rs['trans_amount']+$data['account_balance'],
);
m('c_fund_account')->update($zfarr,"`name`='$name'");
$id=$this->rs['id'];
$account_balance=$this->rs['trans_amount']+$data['account_balance'];//当前余额
$detail = array(
'account_balance' =>$account_balance,
);
m('c_fund_detail')->update($detail,"`id`='$id'");
$toacc_detail = array(
'account' => $this->rs['toaccount'],
'opt_type' => 1,
'amount' => $this->rs['trans_amount'],
'account_balance' =>$data['account_balance']+$this->rs['trans_amount'],
'trans_numb' => $this->rs['trans_numb'],
'create_time' =>$this->rs['create_time'],
);
m('c_account_detail')->insert($toacc_detail);
}
}
<?php
class flow_fund_transferClassModel extends flowModel
{
public function flowrsreplace($rs)
{
if($rs['business_type']){
$data=$this->db->getone('oa_option',"num='".$rs['business_type']."' and pid=1350");
$rs['business_type']=$data['name'];
}
if($rs['fund_rule']){
$data=$this->db->getone('oa_option',"num='".$rs['fund_rule']."' and pid=1362");
$rs['fund_rule']=$data['name'];
}
foreach ($rs as $k => &$v) {
switch ($k) {
case 'opt_type':
if($v == 1) {
$v = '收入';
} else if($v == 2) {
$v = '支出';
} else {
$v = '';
}
continue;
break;
}
}
return $rs;
}
//提交时调用
protected function flowsubmit($na, $sm){
// 转出账户扣钱
// 转入账户加钱
// 生成两条记录
$name=$this->rs['account'];//转出账户
$data=m('c_fund_account')->getone("`name`='$name'");
//转出账户扣钱
$zfarr = array(
'account_balance' =>$data['account_balance']-$this->rs['trans_amount'],
);
m('c_fund_account')->update($zfarr,"`name`='$name'");
//转入账户加钱
$toaccount=$this->rs['toaccount'];//转入账户
$toaccount_list=m('c_fund_account')->getone("`name`='$toaccount'");
$accountarr = array(
'account_balance' =>$toaccount_list['account_balance']+$this->rs['trans_amount'],
);
m('c_fund_account')->update($accountarr,"`name`='$toaccount'");
$id=$this->rs['id'];
$account_balance=$data['account_balance']-$this->rs['trans_amount'];//当前余额
$detail = array(
'account_balance' =>$account_balance,
);
m('c_fund_detail')->update($detail,"`id`='$id'");
//记录账户明细
$acc_detail = array(
'account' => $this->rs['account'],
'opt_type' => 2,
'amount' => $this->rs['trans_amount'],
'account_balance' =>$data['account_balance']-$this->rs['trans_amount'],
'trans_numb' => $this->rs['trans_numb'],
'create_time' =>$this->rs['create_time'],
);
m('c_account_detail')->insert($acc_detail);
$toacc_detail = array(
'account' => $this->rs['toaccount'],
'opt_type' => 1,
'amount' => $this->rs['trans_amount'],
'account_balance' =>$toaccount_list['account_balance']+$this->rs['trans_amount'],
'trans_numb' => $this->rs['trans_numb'],
'create_time' =>$this->rs['create_time'],
);
m('c_account_detail')->insert($toacc_detail);
}
}
<?php
class flow_hklistClassModel extends flowModel
{
//审核完成后调用
protected function flowcheckafter($zt, $sm){
$flowid=$this->getflow();
if($flowid['nowcourseid']== '804'){
$data=$this->db->getrows('oa_hks',"mid='".$this->rs['id']."'");
foreach ($data as $key => $value) {
$statusarr = array(
'status' =>2,
);
$id=$value['hks_id'];
m('hkrequest')->update($statusarr,"`id`='$id'");
}
}
if($flowid['nowcourseid']== '807'){
$data=$this->db->getrows('oa_hks',"mid='".$this->rs['id']."'");
foreach ($data as $key => $value) {
if($value['hkstatus']=="已回款"){
$statusarr = array(
'status' =>3,
);
$id=$value['hks_id'];
m('hkrequest')->update($statusarr,"`id`='$id'");
}
}
}
}
}
<?php
class flow_hkrequestClassModel extends flowModel
{
public function flowrsreplace($rs)
{
if($rs['status'] ==1){
$rs['status']='未发起';
}
if($rs['status'] ==2){
$rs['status']='未回款';
}
if($rs['status'] ==3){
$rs['status']='已回款';
}
return $rs;
}
}
File mode changed from 100644 to 100755
......@@ -251,13 +251,21 @@ class flow_supplierClassModel extends flowModel
$model['Model']['FFinanceInfo']['FTaxType']['FNumber']=isset($tax_type)?$tax_type:'';
$model['Model']['FFinanceInfo']['FPayAdvanceAmount']=isset($pay_advance_amount)?$pay_advance_amount:0;
if($pay_advance_amount=='不适用'){
$model['Model']['FFinanceInfo']['FPayAdvanceAmount']=0;
}else{
$model['Model']['FFinanceInfo']['FPayAdvanceAmount']=$pay_advance_amount;
}
$model['Model']['FFinanceInfo']['FTaxRegisterCode']=isset($tax_register_code)?$tax_register_code:'';
$model['Model']['FFinanceInfo']['FFinanceDesc']=isset($finance_desc)?$finance_desc:'';
$model['Model']['FBaseInfo']['FFoundDate']=isset($found_date)?$found_date:'';
$model['Model']['FBaseInfo']['FLegalPerson']=isset($legal_person)?$legal_person:'';
$model['Model']['FBaseInfo']['FRegisterFund']=isset($register_fund)?$register_fund:0;
if($register_fund=='不适用'){
$model['Model']['FBaseInfo']['FRegisterFund']=0;
}else{
$model['Model']['FBaseInfo']['FRegisterFund']=$register_fund;
}
$model['Model']['FBaseInfo']['FRegisterCode']=isset($register_code)?$register_code:'';
$model['Model']['FBaseInfo']['FTendPermit']=isset($tend_permit)?$tend_permit:'';
$model['Model']['FBaseInfo']['FSOCIALCRECODE']=isset($social_cre_code)?$social_cre_code:'';
......
File mode changed from 100644 to 100755
......@@ -290,28 +290,52 @@ class loginClassModel extends Model
public function exitlogin($cfrom='', $token='')
{
$token = $this->rock->request('token', $token);
$cfrom = $this->rock->request('cfrom', $cfrom);
$this->rock->clearcookie('mo_adminid');
$this->rock->clearsession('adminid,adminname,adminuser');
$cookieSid = $this->rock->cookie('PHPSESSID');
//删除redis
$redis = new Redis();
$redis->connect('192.168.1.222',6379);
$sid = 'PHPREDIS_SESSION:'.$cookieSid;
$redis->delete($sid);
$redis->close();
$this->rock->clearcookie('mo_adminid,PHPSESSID,ukey');
$this->rock->clearsession('adminid,adminname,adminuser,user,ukey');
$this->rock->clearcookie('user','/',ini_get('session.cookie_domain'));
$this->rock->clearallcookie();
$this->rock->clearallsession();
$this->update("`online`=0", "`token`='$token'");
}
public function setsession($uid, $name,$token, $user='')
{
$this->rock->savesession(array(
$encryptKey = $this->getRandomStr();
$session = array(
'adminid' => $uid,
'adminname' => $name,
'adminuser' => $user,
'admintoken'=> $token,
'logintime' => time()
));
'logintime' => time(),
'ukey' => $encryptKey
);
if($user == 'admin') $session['is_admin'] = true;
else $session['is_admin'] = false;
$this->rock->savesession($session);
$this->rock->adminid = $uid;
$this->rock->adminname = $name;
$this->admintoken = $token;
$this->adminname = $name;
$this->adminid = $uid;
$this->rock->savecookie('mo_adminid', $this->rock->jm->encrypt($token));
}
//更新token最后时间
......@@ -385,4 +409,9 @@ class loginClassModel extends Model
'dt' => $dt,
);
}
private function getRandomStr($length = 10){
$strs="QWERTYUIOPASDFGHJKLZXCVBNM1234567890qwertyuiopasdfghjklzxcvbnm";
return substr(str_shuffle($strs),mt_rand(0,strlen($strs)-11),$length);
}
}
\ No newline at end of file
差异被折叠。
......@@ -38,7 +38,18 @@ class opencatClassAction extends openapiAction
//合同列表
public function listAction(){
//通过邮箱 查找uid
$email='xiakun@gonn.com.cn';
$post = $_GET;
$email=$post['email'];
if(empty($email)){
$data=array(
'code' => 400,
'message'=>'Mailbox cannot be empty'
);
return json_encode($data);
die;
}
// $email='xiakun@gonn.com.cn';
$sql = "select u.id,u.email from [Q]userinfo u where u.email = '$email'";
$data = $this->db->getall($sql);
$id=$data[0]['id'];//用户id
......
<?php
/**
* 修改接口
* Class opencatClassAction
*/
class openupdClassAction extends openapiAction
{
public function __call($name, $arguments)
{
$msg = $name.' action not found';
return $this->showreturn([],$msg,'201');
}
public function listAction(){
$sql = "select id,department_id from [Q]supplier";
$data = $this->db->getall($sql);
foreach ($data as $key => $value) {
$deptarr=explode(',',$value['department_id']);
array_walk($deptarr,
function (&$s, $k, $prefix = "''") {
$s = str_pad($s, strlen($prefix) + strlen($s), $prefix, STR_PAD_BOTH);
}
);
$department_id=implode(',', $deptarr);
$sqll = "select new_name from [Q]tmp_department where name in "."(".$department_id.")";
$data_list = $this->db->getall($sqll);
$new=array();
foreach ($data_list as $key => $vo) {
$new[]=$vo['new_name'];
}
$zfarr = array(
'department_id' =>implode(',', $new),
);
var_dump(m('supplier')->update($zfarr,'id='.$value['id'].''));
}
// return $this->showreturn($data);
}
public function custAction(){
$sql = "select id,department_id from [Q]customer";
$data = $this->db->getall($sql);
foreach ($data as $key => $value) {
$deptarr=explode(',',$value['department_id']);
array_walk($deptarr,
function (&$s, $k, $prefix = "''") {
$s = str_pad($s, strlen($prefix) + strlen($s), $prefix, STR_PAD_BOTH);
}
);
$department_id=implode(',', $deptarr);
$sqll = "select new_name from [Q]tmp_department where name in "."(".$department_id.")";
$data_list = $this->db->getall($sqll);
$new=array();
foreach ($data_list as $key => $vo) {
$new[]=$vo['new_name'];
}
$zfarr = array(
'department_id' =>implode(',', $new),
);
if(m('customer')->update($zfarr,'id='.$value['id'].'')){
echo 1;
}else{
echo 2;
}
}
// return $this->showreturn($data);
}
public function catAction(){
$sql = "select id,departmentname from [Q]c_contract";
$data = $this->db->getall($sql);
foreach ($data as $key => $value) {
$sqll = "select new_name from [Q]tmp_department where name ="."'".$value['departmentname']."'";
$data_list = $this->db->getall($sqll);
$zfarr = array(
'departmentname' =>$data_list[0]['new_name'],
);
if(m('c_contract')->update($zfarr,'id='.$value['id'].'')){
echo 1;
}else{
echo 2;
}
}
// return $this->showreturn($data);
}
}
差异被折叠。
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论