Commit df85701d authored by congzhao's avatar congzhao

[建机]电子合同开发 经办人授权书添加以及发起签署修改

parent 1d93ef9d
......@@ -36,10 +36,11 @@ var override_queryfields = [
queryoperator : "="
}
];
var add_datafilters=[
var add_datafilters = [
{
name:'bp_id_agent_level1',
expression : "(${/session/@user_id} = 1 or t1.bp_id_agent_level1 = decode((select su.bp_category from sys_user su where su.user_id =${/session/@user_id}),'AGENT',(select su.bp_id from sys_user su where su.user_id =${/session/@user_id}),'EMPLOYEE',t1.bp_id_agent_level1))"
name : 'authority',
expression : "(exists (select 1 from aut_trx_user_authorize a1, aut_owner_user_authorize a2 where a1.trx_category = 'CONTRACT' and a1.trx_id = t1.contract_id and trunc(sysdate) between a1.start_date and nvl(a1.end_date, trunc(sysdate)) and a1.user_id = a2.owner_user_id and a1.trx_category = a2.trx_category and a2.authorized_user_id = ${/session/@user_id} and trunc(sysdate) between a2.start_date and nvl(a2.end_date, trunc(sysdate))))"
}
];
override();
......
......@@ -606,7 +606,32 @@
}
}
function upload_signer_file(id, name, query_only) {
var record = window['${/parameter/@layout_code}_hls_link_render_record'][id + '---' + name];
if (record.get('hls_bp_signer_id')) {
var url;
if (query_only == 'Y') {
url = $('hls214N_cdd_downloadFile_id').getUrl() + '?table_name=HLS_BP_MASTER_SIGNER&header_id=' + record.get('hls_bp_signer_id');
} else {
url = $('hls214N_cdd_uploadFile_id').getUrl() + '?table_name=HLS_BP_MASTER_SIGNER&header_id=' + record.get('hls_bp_signer_id');
}
var win = new Leaf.Window({
url: url,
title: '${l:HLS.SUPPORTING_DOCUMENT}',
id: 'prj500_cdd_uploadFile_screen_id',
width: 850,
height: 400
});
win.on('close', function () {
record.ds.query();
});
} else {
Leaf.showMessage('${l:HLS.PROMPT}', '请先保存!');
}
}
//超链接渲染
window['${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record) {
//
......@@ -645,6 +670,10 @@
return '<font color="RED">' + value + '</font>';
}
return value;
}//签约人授权书附件
else if(name == 'signer_attachment'){
var signer_link_function = 'upload_signer_file';
return '<a href="javascript:window[\'' + signer_link_function + '\'](\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + config_record.get('prompt') + '</a>';
}
};
......
......@@ -601,7 +601,32 @@
}
}
function upload_signer_file(id, name, query_only) {
var record = window['${/parameter/@layout_code}_hls_link_render_record'][id + '---' + name];
if (record.get('hls_bp_signer_id')) {
var url;
if (query_only == 'Y') {
url = $('hls214N_cdd_downloadFile_id').getUrl() + '?table_name=HLS_BP_MASTER_SIGNER&header_id=' + record.get('hls_bp_signer_id');
} else {
url = $('hls214N_cdd_uploadFile_id').getUrl() + '?table_name=HLS_BP_MASTER_SIGNER&header_id=' + record.get('hls_bp_signer_id');
}
var win = new Leaf.Window({
url: url,
title: '${l:HLS.SUPPORTING_DOCUMENT}',
id: 'prj500_cdd_uploadFile_screen_id',
width: 850,
height: 400
});
win.on('close', function () {
record.ds.query();
});
} else {
Leaf.showMessage('${l:HLS.PROMPT}', '请先保存!');
}
}
//超链接渲染
window['${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record) {
//
......@@ -640,6 +665,10 @@
return '<font color="RED">' + value + '</font>';
}
return value;
} //签约人授权书附件
else if(name == 'signer_attachment'){
var signer_link_function = 'upload_signer_file';
return '<a href="javascript:window[\'' + signer_link_function + '\'](\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + config_record.get('prompt') + '</a>';
}
};
......
......@@ -122,8 +122,8 @@
var agentIdNo = ele_org_signer_data[0].id_no;
var mobile = ele_org_signer_data[0].mobile;
//法人
var legalName = ele_org_signer_data[0].legal_person;
var legalIdNo = ele_org_signer_data[0].id_card_no_leg;
var legalName = signer_record_data.legal_person;
var legalIdNo = signer_record_data.id_card_no_leg;
if (agentIdNo == legalIdNo) {
userInfoList.push({
"idNo": signer_record_data.id_no,
......
......@@ -121,8 +121,8 @@
var agentIdNo = ele_org_signer_data[0].id_no;
var mobile = ele_org_signer_data[0].mobile;
//法人
var legalName = ele_org_signer_data[0].legal_person;
var legalIdNo = ele_org_signer_data[0].id_card_no_leg;
var legalName = signer_record_data.legal_person;
var legalIdNo = signer_record_data.id_card_no_leg;
if (agentIdNo == legalIdNo){
userInfoList.push({
"idNo":signer_record_data.id_no,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment