Commit f3c155ca authored by liyuan.chen's avatar liyuan.chen

商业伙伴修改流程开发

parent 16bd52fd
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: wangwei
$Date: 2014-12-19 下午7:07:43
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
<bm:operations>
<bm:operation name="update">
<!--<bm:parameters>
<bm:parameter name="cdd_list_id" dataType="java.lang.Long" input="true" output="true" outputPath="@cdd_list_id"/>
</bm:parameters>-->
<bm:update-sql><![CDATA[
BEGIN
-- 校验组织机构代码,身份证号,配偶身份证号
hls_bp_master_change_req_pkg.check_bp_class(p_change_req_id => ${@change_req_id}, p_user_id => ${/session/@user_id});
hls_bp_master_change_req_pkg.bp_create_user_authority(p_change_req_id => ${@change_req_id}, p_user_id => ${/session/@user_id}, p_company_id => ${/session/@company_id});
END;
]]></bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: wangwei
$Date: 2014-12-19 下午7:07:43
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
<bm:operations>
<bm:operation name="update">
<!--<bm:parameters>
<bm:parameter name="cdd_list_id" dataType="java.lang.Long" input="true" output="true" outputPath="@cdd_list_id"/>
</bm:parameters>-->
<bm:update-sql><![CDATA[
BEGIN
hls_bp_master_change_req_pkg.check_bp_master_req_role(p_change_req_id => ${@change_req_id},
p_role_req_id => ${@role_req_id},
p_bp_type => ${@bp_type},
p_user_id => ${/session/@user_id});
END;
]]></bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: wangwei
$Date: 2014-12-19 下午7:07:43
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
<bm:operations>
<bm:operation name="update">
<!--<bm:parameters>
<bm:parameter name="cdd_list_id" dataType="java.lang.Long" input="true" output="true" outputPath="@cdd_list_id"/>
</bm:parameters>-->
<bm:update-sql><![CDATA[
BEGIN
hls_bp_master_change_req_pkg.check_bp_master_role(p_bp_id => ${@bp_id},
p_bp_role_id => ${@bp_role_id},
p_bp_type => ${@bp_type},
p_user_id => ${/session/@user_id});
END;
]]></bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
......@@ -31,7 +31,7 @@
<f:standard-who/>
</bm:features>
<bm:query-fields>
<bm:query-field name="table_name" queryExpression="t1.table_name=${@table_name}"/>
<bm:query-field name="table_name" queryExpression="upper(t1.table_name)=upper(${@table_name})"/>
<bm:query-field name="table_pk_value" queryExpression="t1.table_pk_value=${@table_pk_value}"/>
<bm:query-field name="source_table" queryExpression="t1.source_table=${@source_table}"/>
<bm:query-field name="source_table_pk_value" queryExpression="t1.source_table_pk_value=${@source_table_pk_value}"/>
......
......@@ -116,7 +116,7 @@
};
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function (ds, record, config_records, bp_seq) {
debugger;
if ((ds.id).indexOf('hls_bp_master') != -1) {
// record.getField('cell_phone').setRequired(true);
//record.getField('cell_phone').setRequired(true);
......@@ -537,7 +537,7 @@
}, 20);
}
}
if (name == 'invoice_bp_phone_num' && value) {
/*if (name == 'invoice_bp_phone_num' && value) {
if (!checkMobile(value)) {
Leaf.showMessage('提示', '基本信息中,请输入正确格式的手机号码!');
setTimeout(function () {
......@@ -545,7 +545,7 @@
}, 20);
return false;
}
}
}*/
}
if (ds.id == f_bp_create_ds_id) {
......@@ -636,7 +636,7 @@
//超链接渲染
window['${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record) {
debugger;
window['${/parameter/@layout_code}_hls_link_render_record'][record.id + '---' + name] = record;
if (name == 'attachment') {
link_function = 'upload_file';
......
......@@ -52,7 +52,7 @@
}, 20);
}
}
if (name == 'invoice_bp_phone_num' && value) {
/*if (name == 'invoice_bp_phone_num' && value) {
if (!checkMobile(value)) {
Leaf.showMessage('提示', '基本信息中,请输入正确格式的手机号码!');
setTimeout(function () {
......@@ -60,7 +60,7 @@
}, 20);
return false;
}
}
}*/
if (name == 'invoice_method' && value) {
if (record.get('bp_class') == 'ORG') {
if (value == 'BILLING') {
......@@ -116,14 +116,24 @@
//超链接渲染
window['${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record) {
window['${/parameter/@layout_code}_hls_link_render_record'][record.id + '---' + name] = record;
if (name == 'attachment') {
link_function = 'upload_file';
if('${/parameter/@query_only}' == 'Y'){
if (record.get('attach_count') == 0 || !record.get('attach_count')) {
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\',\'' + '${/parameter/@query_only}' + '\');">' + '附件下载' + '</a>';
} else {
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\',\'' + '${/parameter/@query_only}' + '\');">' + '附件下载' + '(' + record.get('attach_count') + ')' + '</a>';
}
}else{
if (record.get('attach_count') == 0 || !record.get('attach_count')) {
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + config_record.get('prompt') + '</a>';
} else {
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + config_record.get('prompt') + '(' + record.get('attach_count') + ')' + '</a>';
}
}
} else if (name == 'attach_file_name') {
if (value != null) {
var link = '${/request/@context_path}/atm_download.lsc?attachment_id=';
......
......@@ -123,7 +123,7 @@
$(ds_id).query();
}
// 简称校验
// debugger;
//
// var Pattern = /^[A-Za-z]+$/;
//
// if(record.getField('extra_nam')=='extra_nam'){
......@@ -253,7 +253,7 @@
//新增和加载时调用form
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function (ds, record, config_records, bp_seq) {
debugger;
// if ((ds.id).indexOf('hls_bp_master_credit') != -1 && (ds.id).indexOf('F_ORG_CREDIT') != -1) {
// if (ds.fields.fin_institution_code) {
// ds.fields.fin_institution_code.pro.validator = fin_institution_code_validate;
......@@ -377,7 +377,7 @@
record.getField('parent_id_n').setReadOnly(true);
}
}
if (name == 'social_code') {
if (name == 'social_code' && value) {
if (!CheckSocialCreditCode(value)) {
Leaf.showMessage('提示', '统一社会信用代码有误,请重新输入!');
setTimeout(function () {
......@@ -427,7 +427,7 @@
// ds.fields.id_card_no.pro.validator = id_card_no_validate;
// ds.fields.id_no_sp.pro.validator = id_card_no_validate;
// }
if (name == 'cell_phone') {
if (name == 'cell_phone' && value) {
if (!checkMobile(value)) {
Leaf.showMessage('提示', '基本信息中,请输入正确格式的手机号码!');
setTimeout(function () {
......@@ -436,7 +436,7 @@
return false;
}
}
if (name == 'leader_mobile_number') {
if (name == 'leader_mobile_number' && value) {
if (!checkMobile(value)) {
Leaf.showMessage('提示', '公司负责人中,请输入正确格式的手机号码!');
setTimeout(function () {
......@@ -487,14 +487,15 @@
//record.set('resident_addres_sp', get_native_place(value));
record.set('date_of_birth_sp', new Date(value.substr(6, 4) + '/' + value.substr(10, 2) + '/' + value.substr(12, 2)));
record.set('age', new Date().getFullYear() - value.substr(6, 4));
// 配偶的信息不能回写
/*record.set('age', new Date().getFullYear() - value.substr(6, 4));
if (value.substr(16, 1) % 2 == 1) {
record.set('gender', 'MALE');
record.set('gender_n', '男');
} else if (value.substr(16, 1) % 2 == 0) {
record.set('gender', 'FEMALE');
record.set('gender_n', '女');
}
}*/
}
}
......@@ -507,12 +508,12 @@
var test_ds_id2 = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_SPOUSE', 'hls_bp_master');
if (ds.id == f_bp_create_ds_id) {
debugger;
var hd_ds = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASIC', 'hls_bp_master');
record = $(hd_ds).getCurrentRecord();
if(record.get('bp_class')=='NP'){
if (name == 'marital_status') {
debugger;
if (name == 'marital_status' && value) {
if (value == '30' || value == '40') {
document.getElementById('${/parameter/@layout_code}_F_SPOUSE_1_component_id').style.display = 'block';
record.getField('bp_name_sp').setRequired(true);
......
......@@ -36,21 +36,22 @@
//信息变更
window['${/parameter/@layout_code}_user_button4_layout_dynamic_click'] = function () {
debugger;
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'hls_bp_master');
var record=$(ds_id).selected[0];
var param = record.data;
var bp_class = record.get('bp_class');
if(record.get('bp_wfl_status') == 'APPROVING'){
if(record.get('invoice_wfl_status') == 'APPROVING' || record.get('bp_wfl_status') == 'APPROVING'){
// 展示变更信息
param['function_code'] = 'HLS214BR';
param['function_usage'] = 'QUERY';
param['query_only'] = 'Y';
param['bp_class'] = bp_class;
param['change_req_id'] = record.get('invoice_change_id');
param['document_id'] = record.get('invoice_change_id');
param['url_title'] = '${l:HLS212.BP_MASTER_MAINTAIN}';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'hls_bp_master_modify_link', ds_id);
}else {
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'hls_bp_master_billing_link', ds_id);
}else if (record.get('invoice_wfl_status') != 'APPROVING' && record.get('bp_wfl_status') != 'APPROVING'){
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
var url = '${/request/@context_path}/autocrud/hls.HLS214N.hls_bp_master_req_create/update';
Leaf.request({
......@@ -62,7 +63,7 @@
success: function (res) {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
if (res.result.change_req_id) {
debugger;
param['winid'] = 'bp_master_invoice_detail_win';
param['function_code'] = 'HLS214B';
param['bp_class'] = bp_class;
......@@ -70,7 +71,7 @@
param['change_req_id'] = res.result.change_req_id;
param['document_id'] = res.result.change_req_id;
param['function_usage'] = 'MODIFY';
param['maintain_type'] = 'MODIFY';
param['query_only'] = 'N';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'hls_bp_master_billing_link', ds_id);
}
......@@ -89,21 +90,22 @@
// stopDymanicAutoQuery('${/parameter/@layout_code}', 'G_BP_RESULT', 'hls_bp_master');
function open_bp_modify_win(ds_id, record_id) {
debugger;
var record = $(ds_id).findById(record_id);
var bp_class = record.get('bp_class');
var user_category ='${/model/default_value/record/@user_category}';
var submit_flag = record.get('submit_flag');
var param = record.data;
if(record.get('bp_wfl_status') == 'APPROVING'){
if(record.get('bp_wfl_status') == 'APPROVING' || record.get('invoice_wfl_status') == 'APPROVING'){
// 展示原始信息,后续待定
param['function_code'] = 'HLS215D';
param['function_usage'] = 'QUERY';
param['bp_class'] = bp_class;
param['cond_para1'] = user_category;
param['url_title'] = '${l:HLS212.BP_MASTER_MAINTAIN}';
param['query_only'] = 'Y';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'hls_bp_master_modify_link', ds_id);
}else{
}else if (record.get('invoice_wfl_status') != 'APPROVING' && record.get('bp_wfl_status') != 'APPROVING'){
if(submit_flag == 'Y'){
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
var url = '${/request/@context_path}/autocrud/hls.HLS214N.hls_bp_master_req_create/execute';
......@@ -114,14 +116,17 @@
success: function (res) {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
if(res.result.change_req_id){
debugger;
param['function_code'] = 'HLS214F';
param['function_usage'] = 'MODIFY';
param['bp_class'] = bp_class;
param['change_req_id'] = res.result.change_req_id;
param['document_id'] = res.result.change_req_id;
param['cond_para1'] = user_category;
param['bp_name_updated_flag'] = record.get('bp_name_updated_flag');
param['url_title'] = '${l:HLS212.BP_MASTER_MAINTAIN}';
param['query_only'] = 'N';
// param['layout_debugger_flag']='Y';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'hls_bp_master_req_modify_link', ds_id);
}
},
......@@ -139,6 +144,7 @@
param['bp_class'] = bp_class;
param['cond_para1'] = user_category;
param['url_title'] = '${l:HLS212.BP_MASTER_MAINTAIN}';
param['query_only'] = 'N';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'hls_bp_master_modify_link', ds_id);
}
}
......
......@@ -22,7 +22,8 @@
<a:link id="${/parameter/@layout_code}_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code"
modelaction="update"/>
<a:link id="hls214_bp_master_save_link_id" model="hls.HLS214.hls_bp_change_agent" modelaction="update"/>
<a:link id="hls214_bp_master_basic_submit_link_id" model="hls.HLS214N.hls_bp_master_req_submit" modelaction="execute"/>
<a:link id="hls214_bp_master_basic_submit_link_id" model="hls.HLS214N.hls_bp_master_req_submit"
modelaction="execute"/>
<!-- <a:link id="hls214_sap_eai_create_customer_link" url="${/request/@context_path}/modules/interface/INTERFACE_EAI/hls_sap_eai_CrCustomer.lsc"/>-->
<!-- <a:link id="hls214_sap_eai_create_vender_link" url="${/request/@context_path}/modules/interface/INTERFACE_EAI/hls_sap_eai_CrVender.lsc"/>-->
......@@ -125,7 +126,7 @@
$(ds_id).query();
}
// 简称校验
// debugger;
//
// var Pattern = /^[A-Za-z]+$/;
//
// if(record.getField('extra_nam')=='extra_nam'){
......@@ -255,7 +256,6 @@
//新增和加载时调用form
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function (ds, record, config_records, bp_seq) {
debugger;
// if ((ds.id).indexOf('hls_bp_master_credit') != -1 && (ds.id).indexOf('F_ORG_CREDIT') != -1) {
// if (ds.fields.fin_institution_code) {
// ds.fields.fin_institution_code.pro.validator = fin_institution_code_validate;
......@@ -287,7 +287,7 @@
record.getField('unit_id_n').setRequired(false);
}
}
if(record.get('bp_class')&&record.get('bp_class')=='NP'){
if (record.get('bp_class') && record.get('bp_class') == 'NP') {
if (record.get('marital_status') && (record.get('marital_status') == '30' || record.get('marital_status') == '40')) {
document.getElementById('${/parameter/@layout_code}_F_SPOUSE_1_component_id').style.display = 'block';
record.getField('bp_name_sp').setRequired(true);
......@@ -298,13 +298,19 @@
document.getElementById('${/parameter/@layout_code}_F_SPOUSE_1_component_id').style.display = 'none';
}
}
// 发票
if('${/parameter/@bp_name_updated_flag}'){
if('${/parameter/@bp_name_updated_flag}' == 'N'){
record.getField('bp_name').setReadOnly(true);
}
}
}
};
window['${/parameter/@layout_code}_on_layout_dynamic_grid_load'] = function (ds, line_record) {
var dsId = ds.id;
var grid_id = dsId.replace('ds', 'layout_grid_id');
var base_table_temp = 'hls_bp_master_req_role_ds';
if (dsId.substring(dsId.length - base_table_temp.length, dsId.length) == base_table_temp) {
var record = ds.getCurrentRecord();
......@@ -316,8 +322,59 @@
if (ds.fields.parent_id) {
record.getField('parent_id_n').setReadOnly(true);
}
//var history_record = res.result.record[i];
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_signer_req');
if (!Ext.isEmpty(line_record)) {
if(line_record.get('added_flag') == 'Y'){
setListInterval(line_record, grid_id);
}
}
};
function setListInterval(record, grid_id) {
var btnListInterval = setTimeout(function() {
var field_color = null;
// clearInterval(btnListInterval);
btnListInterval = null;
// record.getField('description').setRequired(false);
var response_status = record.get('added_flag') ;
if (response_status == 'Y') {
field_color = '#FF9965';
}else{
field_color = '';
}
//ListSetFieldColor(record.id, field_color);
for (var name in record.data) {
record.getField(name.toLowerCase()).setPropertity('tooltip', '<span style="color:#FF9965">新增数据</span>');
}
if (Ext.get(grid_id) ) {
Ext.get(grid_id).select('tr[_row=' + record.id + ']').setStyle({
backgroundColor: field_color
});
}
}, 200);
}
/*function ListSetFieldColor(record_id, field_color) {
var grid_id = '${/parameter/@layout_code}_G_RESULT_hls_bank_interface_logs_layout_grid_id';
var name = 'response_status_n';
if (Ext.get(grid_id) && $(grid_id).findColByName(name)) {
Ext.get(grid_id).select('tr[_row=' + record_id + ']').setStyle({
backgroundColor: field_color
});
}
// if (Ext.get(grid_id) && $(grid_id).findColByName(name)) {
// Ext.get(grid_id).select('tr[_row=' + record_id + '] td[dataindex=' + name + ']').setStyle({
// background: field_color
// });
// }
}*/
//更新时调用 add by liukang
//填写银行账号时 允许银行账号相同 但是给一个提示(提示一下而已)
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function (ds, record, name, value, old_value, bp_seq) {
......@@ -368,7 +425,7 @@
var bp_record = $(hls_bp_master_req_ds_id).getCurrentRecord();
if ((ds.id).indexOf('hls_bp_master_req') != -1 && (ds.id).indexOf('F_BASIC') != -1) {
if (name == 'bp_name') {
if (name == 'bp_name' && value) {
new_bp_name = record.get('bp_name');
}
......@@ -379,7 +436,7 @@
record.getField('parent_id_n').setReadOnly(true);
}
}
if (name == 'social_code') {
if (name == 'social_code' && value) {
if (!CheckSocialCreditCode(value)) {
Leaf.showMessage('提示', '统一社会信用代码有误,请重新输入!');
setTimeout(function () {
......@@ -429,7 +486,7 @@
// ds.fields.id_card_no.pro.validator = id_card_no_validate;
// ds.fields.id_no_sp.pro.validator = id_card_no_validate;
// }
if (name == 'cell_phone') {
if (name == 'cell_phone' && value) {
if (!checkMobile(value)) {
Leaf.showMessage('提示', '基本信息中,请输入正确格式的手机号码!');
setTimeout(function () {
......@@ -438,7 +495,7 @@
return false;
}
}
if (name == 'leader_mobile_number') {
if (name == 'leader_mobile_number' && value) {
if (!checkMobile(value)) {
Leaf.showMessage('提示', '公司负责人中,请输入正确格式的手机号码!');
setTimeout(function () {
......@@ -489,14 +546,15 @@
//record.set('resident_addres_sp', get_native_place(value));
record.set('date_of_birth_sp', new Date(value.substr(6, 4) + '/' + value.substr(10, 2) + '/' + value.substr(12, 2)));
record.set('age', new Date().getFullYear() - value.substr(6, 4));
// 配偶的信息不能回写
/*record.set('age', new Date().getFullYear() - value.substr(6, 4));
if (value.substr(16, 1) % 2 == 1) {
record.set('gender', 'MALE');
record.set('gender_n', '男');
} else if (value.substr(16, 1) % 2 == 0) {
record.set('gender', 'FEMALE');
record.set('gender_n', '女');
}
}*/
}
}
......@@ -509,12 +567,11 @@
var test_ds_id2 = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_SPOUSE', 'hls_bp_master_req');
if (ds.id == f_bp_create_ds_id) {
debugger;
var hd_ds = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASIC', 'hls_bp_master_req');
record = $(hd_ds).getCurrentRecord();
if(record.get('bp_class')=='NP'){
if (name == 'marital_status') {
debugger;
if (record.get('bp_class') == 'NP') {
if (name == 'marital_status' && value) {
if (value == '30' || value == '40') {
document.getElementById('${/parameter/@layout_code}_F_SPOUSE_1_component_id').style.display = 'block';
record.getField('bp_name_sp').setRequired(true);
......@@ -580,15 +637,23 @@
//超链接渲染
window['${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record) {
//
window['${/parameter/@layout_code}_hls_link_render_record'][record.id + '---' + name] = record;
if (name == 'attachment') {
link_function = 'upload_file';
if ('${/parameter/@query_only}' == 'Y') {
if (record.get('attach_count') == 0 || !record.get('attach_count')) {
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\',\'' + '${/parameter/@query_only}' + '\');">' + '附件下载' + '</a>';
} else {
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\',\'' + '${/parameter/@query_only}' + '\');">' + '附件下载' + '(' + record.get('attach_count') + ')' + '</a>';
}
} else {
if (record.get('attach_count') == 0 || !record.get('attach_count')) {
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + config_record.get('prompt') + '</a>';
} else {
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + config_record.get('prompt') + '(' + record.get('attach_count') + ')' + '</a>';
}
}
} else if (name == 'attach_file_name') {
if (value != null) {
var link = '${/request/@context_path}/atm_download.lsc?attachment_id=';
......@@ -670,25 +735,30 @@
};
// 提交审批
window['${/parameter/@layout_code}_submit_approval_layout_dynamic_click'] = function() {
window['${/parameter/@layout_code}_submit_approval_layout_dynamic_click'] = function () {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_req');
var record = $(ds_id).getAt(0);
if (record.dirty) {
Leaf.showMessage('提示', '请先保存!');
return;
}
if ($(ds_id).validate()) {
var record = $(ds_id).getAt(0);
Leaf.showConfirm('${l:HLS.PROMPT}', '确定提交审批吗?', function() {
Leaf.showConfirm('${l:HLS.PROMPT}', '确定提交审批吗?', function () {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({
url: $('hls214_bp_master_basic_submit_link_id').getUrl(),
para: {
change_req_id: record.get('change_req_id')
},
success: function(res) {
success: function (res) {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
$('${/parameter/@winid}').close();
},
failure: function() {
failure: function () {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
error: function() {
error: function () {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
scope: this
......
......@@ -3,7 +3,7 @@
<a:init-procedure>
<a:model-query defaultWhereClause="v.code=&apos;ZJ_WFL_WORKFLOW_STATUS&apos; and v.code_value = &apos;1&apos;" model="zjwfl.sys_code_default_value" rootPath="workflow_status_default_value"/>
<a:model-query defaultWhereClause="v.code=&apos;ZJ_WFL_WORKFLOW_STATUS&apos; and v.code_value in (&apos;1&apos;,&apos;10&apos;,&apos;-1&apos;,&apos;-1000&apos;)" model="zjwfl.sys_code_default_value" rootPath="workflow_status_list"/>
<a:model-query defaultWhereClause="v.role_id = ${/session/@role_id} and v.role_code in (&apos;0014&apos;,&apos;0013&apos;,&apos;0012&apos;,&apos;0006&apos;,&apos;0005&apos;,&apos;0008&apos;,&apos;0022&apos;)" model="zjwfl.sys_role_flag" rootPath="role_flag_path"/>
<a:model-query defaultWhereClause="v.role_id = ${/session/@role_id} and v.role_code in (&apos;0017&apos;,&apos;HAND&apos;)" model="zjwfl.sys_role_flag" rootPath="role_flag_path"/>
</a:init-procedure>
<a:view>
<a:link id="pageLink_node_approve_history" url="${/request/@context_path}/modules/zjwfl/ZJWFL1060/zj_wfl_monitoring_node_approve_history.lview"/>
......@@ -88,7 +88,7 @@
}
function onload(ds) {
var grid_id = $('monitorDs_grid');
if('${/model/role_flag_path/record/@sys_role_flag}' == 'Y') {
if('${/model/role_flag_path/record/@sys_role_flag}' == 'N') {
grid_id.hideColumn('do_operation');
}
}
......
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