Commit b58058c9 authored by lizhe's avatar lizhe

Merge remote-tracking branch 'origin/master'

parents 8d440f62 fbba5971
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: gzj
$Date: 2022-06-10
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select nvl(sum(cp.due_amount),0) all_amount from CON_CONTRACT_PENALTY_INFO_LV cp
where cp.copy_contract_id = ${@copy_contract_id}
]]></bm:query-sql>
</bm:operation>
</bm:operations>
<bm:fields>
<bm:field name="all_amount"></bm:field>
</bm:fields>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
SELECT * FROM ( SELECT cr.record_id,
cr.penalty_batch_number, --批次号
(SELECT t1.contract_number
FROM con_contract t1
WHERE t1.contract_id = t.contract_id) contract_number,
(SELECT hbm.extra_nam
FROM hls_bp_master hbm
WHERE hbm.bp_id =
(SELECT t1.bp_id_agent_level1
FROM con_contract t1
WHERE t1.contract_id = t.contract_id)) bp_name_agent,
(SELECT bp_name
FROM hls_bp_master hbm
WHERE hbm.bp_id =
(SELECT bp_id_tenant
FROM con_contract t1
WHERE t1.contract_id = t.contract_id)) bp_name_tenant,
t.breach_type,
(SELECT scv.code_value_name
FROM sys_code_values_v scv
WHERE scv.code = 'BREACH_TYPE'
AND scv.code_value = t.breach_type) breach_type_n, --违约金类型
to_char(nvl(t.base_date, sysdate),'yyyy-mm-dd') base_date, --基准日
t.reduce_amount_total, --减免总金额
(select t1.description
from sys_user t1
where t1.user_id = cr.created_by) created_by_n, --创建人
cr.creation_date,
cr.status,
(SELECT v.code_value_name value_name
FROM sys_code_values_v v
WHERE v.code = 'CASE_STATUS'
AND v.code_value = cr.status) status_n
FROM con_contract_case_record cr, con_contract_penalty_reduce t
WHERE cr.document_table = 'CON_CONTRACT_PENALTY_REDUCE'
and cr.record_id = t.record_id
)t
where (t.penalty_batch_number = ${/parameter/@penalty_batch_number} or ${/parameter/@penalty_batch_number} = 'undefined' or ${/parameter/@penalty_batch_number} is null)
and (t.created_by_n = ${/parameter/@created_by_n} or ${/parameter/@created_by_n} = 'undefined' or ${/parameter/@created_by_n} is null)
and (t.status = ${/parameter/@status} or ${/parameter/@status} = 'undefined' or ${/parameter/@status} is null)
and (trunc(t.creation_date) >= to_date(${/parameter/@creationdate_from}, 'yyyy-mm-dd') or ${/parameter/@creationdate_from} = 'undefined' or to_date(${/parameter/@creationdate_from},'yyyy-mm-dd') is null)
and (trunc(t.creation_date) <= to_date(${/parameter/@creationdate_to},'yyyy-mm-dd') or ${/parameter/@creationdate_to} = 'undefined' or to_date(${/parameter/@creationdate_to},'yyyy-mm-dd') is null)
]]></bm:query-sql>
</bm:operation>
</bm:operations>
</bm:model>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<bm:operations>
<bm:operation name="update">
<bm:parameters>
<bm:parameter name="same_flag" dataType="java.lang.String" input="false" output="true"/>
</bm:parameters>
<bm:update-sql><![CDATA[
BEGIN
cus_con_change_req_pkg.con_guarantor_comparison( p_change_req_id=>${@change_req_id},
p_same_flag =>${@same_flag});
END;
]]></bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
......@@ -32,7 +32,8 @@
t.ref_d04,
t.ref_d05,
t.wfl_instance_id,
t.approval_status
t.approval_status,
nvl(t.ignore_invoice_check_flag,'N') ignore_invoice_check_flag
From csh_transaction_wfl t #WHERE_CLAUSE#
]]></bm:query-sql>
</bm:operation>
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: gzj
$Date: 2022年6月14日
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<bm:operations>
<bm:operation name="update">
<!-- <bm:parameters>-->
<!-- <bm:parameter name="con_check_flag" datatype="java.lang.String" input="false" output="true"/>-->
<!-- </bm:parameters>-->
<bm:update-sql><![CDATA[
begin
csh_transaction_wfl_pkg.check_contract_invoice(
p_transaction_wfl_id => ${../../@transaction_wfl_id},
p_write_off_id => ${@write_off_id},
p_user_id => ${/session/@user_id}
);
end;
]]></bm:update-sql>
</bm:operation>
<bm:operation name="execute">
<bm:update-sql><![CDATA[
begin
csh_transaction_wfl_pkg.save_check_invoice_flag(
p_transaction_wfl_id =>${@transaction_wfl_id},
p_check_flag =>${@check_flag},
p_user_id => ${/session/@user_id}
);
end;
]]></bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: likun
$Date: 2011-8-18 下午03:25:19
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select t1.instance_id, t1.workflow_id, t1.workflow_code, t1.current_seq
from zj_wfl_workflow_instance_v t1,csh_transaction_wfl t2
#WHERE_CLAUSE#
and t1.instance_id = t2.wfl_instance_id
order by t1.instance_id desc
]]></bm:query-sql>
</bm:operation>
</bm:operations>
<bm:fields>
<bm:field name="instance_id" databaseType="NUMBER" datatype="java.lang.Long" forDisplay="false"/>
<bm:field name="workflow_id" databaseType="NUMBER" datatype="java.lang.Long" forDisplay="false"/>
<bm:field name="workflow_code" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="80" forDisplay="true" forQuery="true" />
<bm:field name="current_seq" databaseType="NUMBER" datatype="java.lang.Long" forDisplay="false"/>
</bm:fields>
</bm:model>
......@@ -12,6 +12,7 @@
<script src="${/request/@context_path}/javascripts/jquery-1.6.4.min.js" type="text/javascript"/>
<a:link id="${/parameter/@layout_code}_contract_penalty_modify_link"
url="${/request/@context_path}/modules/cont/CON1020/contract_penalty_reduction_create.lview"/>
<a:link id="con_penalty_reduction_link_id" url="${/request/@context_path}/modules/cont/CON1021/penalty_reduction_excel.lsc"/>
<script type="text/javascript"><![CDATA[
jQuery.noConflict();
......@@ -65,11 +66,51 @@
param['winid'] = '${/parameter/@layout_code}_maintain_win_id'
hls_doc_get_layout_code('${/parameter/@layout_code}_con_contract_get_layout_code_link_id', param, '${/parameter/@layout_code}_contract_penalty_modify_link', ds_id);
}
function timeChange(dateStr) {
date = new Date(dateStr);
var year = date.getFullYear();
var month = date.getMonth() + 1;
var day = date.getDate();
month = (month < 10 ? "0" + month : month);
day = (day < 10 ? "0" + day : day);
var mydate = (year.toString() + '-' + month.toString()+'-'+day.toString());
return mydate;
};
function download_penalty_reduction(){
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract_case_record');
var records = $(ds_id).getAll();
var query_ds_id = 'CON_PENALTY_REDUCTION_QUERY_F_QUERY__ds';
var query_record = $(query_ds_id).getCurrentRecord();
var penalty_batch_number= query_record.get('penalty_batch_number');
var created_by_n= query_record.get('created_by_n');
var status= query_record.get('status');
var creationdate_from= query_record.get('creationdate_from');
var creationdate_to= query_record.get('creationdate_to');
if(!Leaf.isEmpty(creationdate_from)){
creationdate_from = timeChange(creationdate_from);
}else{
creationdate_from ='';
}
if(!Leaf.isEmpty(creationdate_to)){
creationdate_to = timeChange(creationdate_to);
}else {
creationdate_to ='';
}
// alert(creationdate_from);
var url_l = $('con_penalty_reduction_link_id').getUrl() + '?penalty_batch_number=' + penalty_batch_number+'&created_by_n='+created_by_n+'&status='+status+'&creationdate_from='+creationdate_from+'&creationdate_to='+creationdate_to;
var OpenWindow = window.open(href = url_l, target = "_blank");
}
window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function () {
open_contract_win123();
};
//导出
window['${/parameter/@layout_code}_user_button3_layout_dynamic_click'] = function () {
download_penalty_reduction();
};
//超链接渲染
window['${/parameter/@bp_seq}${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record, bp_seq) {
......
<?xml version="1.0" encoding="UTF-8"?>
<a:service xmlns:a="http://www.leaf-framework.org/application" xmlns:s="leaf.plugin.script"
xmlns:dr="leaf.plugin.excelreport" trace="true">
<a:init-procedure>
<a:model-query fetchAll="true" model="cont.CON1020.con_penalty_query" rootPath="/model/con_penalty_query"/>
<dr:excel-report enableTask="false" filename="滞纳金减免详细内容.xlsx">
<dr:styles>
<dr:cell-style name="cell1" align="ALIGN_CENTER" borderbottom="BORDER_THIN" borderleft="BORDER_THIN" borderright="BORDER_THIN" bordertop="BORDER_THIN" vertical="VERTICAL_BOTTOM">
<dr:font bold="false" fontName="宋体" height="10"/>
</dr:cell-style>
<dr:cell-style name="cell4" align="ALIGN_RIGHT" borderbottom="BORDER_THIN" borderleft="BORDER_THIN" borderright="BORDER_THIN" bordertop="BORDER_THIN" vertical="VERTICAL_BOTTOM">
<dr:font bold="false" fontName="Arial" height="10"/>
</dr:cell-style>
<dr:cell-style name="cell3" align="ALIGN_LEFT" borderbottom="BORDER_THIN" borderleft="BORDER_THIN" borderright="BORDER_THIN" bordertop="BORDER_THIN" vertical="VERTICAL_BOTTOM">
<dr:font bold="false" fontName="宋体" height="10"/>
</dr:cell-style>
<dr:cell-style name="cell2" align="ALIGN_CENTER" borderbottom="BORDER_THIN" borderleft="BORDER_THIN" borderright="BORDER_THIN" bordertop="BORDER_THIN" vertical="VERTICAL_BOTTOM">
<dr:font bold="false" fontName="微软雅黑" height="11" />
</dr:cell-style>
<dr:cell-style name="header" align="ALIGN_CENTER" borderbottom="BORDER_THIN" borderright="BORDER_THIN" bordertop="BORDER_THIN" cell_style_id="2" foregroundcolor="BLACK" vertical="VERTICAL_BOTTOM">
<dr:font bold="true" cell_style_id="2" fontname="微软雅黑" height="11"/>
</dr:cell-style>
</dr:styles>
<dr:sheets>
<dr:sheet name="滞纳金减免详情表" autoSizeColumns="0,1,2,3,4,5,6,7,8" displayGridlines="true">
<dr:dynamic-content cell="A" row="1" dataModel="/model/con_penalty_query" >
<dr:columns>
<dr:table-column cellStyle="cell2" field="penalty_batch_number" titlestyle="header" type="Number" title="批次号"/>
<dr:table-column cellStyle="cell2" field="contract_number" titlestyle="header" type="Number" title="合同号"/>
<dr:table-column cellStyle="cell2" field="bp_name_agent" titlestyle="header" type="content" title="代理店简称"/>
<dr:table-column cellStyle="cell2" field="bp_name_tenant" titlestyle="header" type="content" title="客户名称"/>
<dr:table-column cellStyle="cell2" field="breach_type_n" titlestyle="header" type="content" title="违约金类型"/>
<dr:table-column cellStyle="cell2" field="reduce_amount_total" titlestyle="header" type="Number" title="减免总金额"/>
<dr:table-column cellStyle="cell2" field="base_date" titlestyle="header" type="Number" title="基准日"/>
<dr:table-column cellStyle="cell2" field="created_by_n" titlestyle="header" title="创建人"/>
<dr:table-column cellStyle="cell2" field="status_n" titlestyle="header" type="content" title="状态"/>
</dr:columns>
</dr:dynamic-content>
</dr:sheet>
</dr:sheets>
</dr:excel-report>
</a:init-procedure>
</a:service>
\ No newline at end of file
......@@ -15,6 +15,7 @@
<a:link id="con733_quote_calc_change_req_link" model="cont.CON733.calc_change_req" modelaction="execute"/>
<a:link id="con731_submit_link" model="cont.CON731.submit_change_req" modelaction="execute"/>
<a:link id="con731_cancel_link" model="cont.CON731.cancel_change_req" modelaction="execute"/>
<a:link id="con_guarantor_comparison_link" model="cont.CON731.con_guarantor_comparison" modelaction="update"/>
<a:link id="${/parameter/@layout_code}_prj500_cdd_uploadFile_id"
url="${/request/@context_path}/uploadFile.lview"/>
<a:link id="${/parameter/@layout_code}_prj500_cdd_downloadFile_id"
......@@ -152,7 +153,6 @@
var tennat_score_ds_id=get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_TENANT_SCORE_INFO', 'bp_tenant_rate_detail');
var tenant_score_record=$(tennat_score_ds_id).getAt(0);
if(tenant_score_record){
debugger;
Leaf.request({
url: $('${/parameter/@layout_code}get_bp_tenant_rate_detail_link').getUrl(),
para: {
......@@ -420,14 +420,14 @@
}
}
var tennat_score_ds_id=get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_TENANT_SCORE_INFO', 'bp_tenant_rate_detail');
if(tennat_score_ds_id){
var division=record.get('division');
if(division!='70'){
document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE').style.display = 'none';
}
}
if(tennat_score_ds_id){
var division=record.get('division');
if(division!='70'){
document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE').style.display = 'none';
}
}
}
if ('${/parameter/@function_code}' == 'CON_REPO001D_WQ') {
if (!record.get('rec_residue_amount')) {
......@@ -435,67 +435,67 @@
record.set('rec_residue_amount', rec_residue_amount);
}
}
var tennat_score_ds_id1=get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_TENANT_SCORE_INFO', 'bp_tenant_rate_detail');
if(ds.id==tennat_score_ds_id1&&tennat_score_ds_id1){
var con_record=$(ds_id).getCurrentRecord();
if(con_record){
var division=con_record.get('division');
if(division!='70'){
document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE').style.display = 'none';
var tennat_score_ds_id1=get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_TENANT_SCORE_INFO', 'bp_tenant_rate_detail');
if(ds.id==tennat_score_ds_id1&&tennat_score_ds_id1){
var con_record=$(ds_id).getCurrentRecord();
if(con_record){
var division=con_record.get('division');
if(division!='70'){
document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE').style.display = 'none';
}
}
}
}
}
//add by xsh35973 调整后不为默认值高亮显示
//调整后逾期罚息
debugger;
var ds_id_req = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract_change_req');
if (ds_id_req == ds.id && ds_id_req) {
if(record.get('document_type')=='REPUR_CHAG'|| record.get('document_type')=='ET_CHAG'){
if (record.get('ccr_penalty') != record.get('penalty')) {
var req_change_id_1 = document.getElementById('${/parameter/@layout_code}_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_CCR_PENALTY');
var req_change_input_1 = req_change_id_1.getElementsByTagName('input');
req_change_input_1[0].style.setProperty('background-color', '#FF9965', 'important');
}
;
//调整后资金占用费
if (record.get('fund_possession_cost') != record.get('ccr_fund_possession_cost')) {
var req_change_id_2 = document.getElementById('${/parameter/@layout_code}_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_FUND_POSSESSION_COST');
var req_change_input_2 = req_change_id_2.getElementsByTagName('input');
req_change_input_2[0].style.setProperty('background-color', '#FF9965', 'important');
}
;
//调整后提前结清手续费
var et_fee = record.get('et_fee');
if (et_fee != 500 && typeof (et_fee) != 'undefined') {
var req_change_id_3 = document.getElementById('${/parameter/@layout_code}_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_ET_FEE');
var req_change_input_3 = req_change_id_3.getElementsByTagName('input');
req_change_input_3[0].style.setProperty('background-color', '#FF9965', 'important');
if (record.get('ccr_penalty') != record.get('penalty')) {
var req_change_id_1 = document.getElementById('${/parameter/@layout_code}_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_CCR_PENALTY');
var req_change_input_1 = req_change_id_1.getElementsByTagName('input');
req_change_input_1[0].style.setProperty('background-color', '#FF9965', 'important');
}
;
//调整后资金占用费
if (record.get('fund_possession_cost') != record.get('ccr_fund_possession_cost')) {
var req_change_id_2 = document.getElementById('${/parameter/@layout_code}_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_FUND_POSSESSION_COST');
var req_change_input_2 = req_change_id_2.getElementsByTagName('input');
req_change_input_2[0].style.setProperty('background-color', '#FF9965', 'important');
}
;
//调整后提前结清手续费
var et_fee = record.get('et_fee');
if (et_fee != 500 && typeof (et_fee) != 'undefined') {
var req_change_id_3 = document.getElementById('${/parameter/@layout_code}_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_ET_FEE');
var req_change_input_3 = req_change_id_3.getElementsByTagName('input');
req_change_input_3[0].style.setProperty('background-color', '#FF9965', 'important');
}
;
//调整后留购价
var residual_value = record.get('residual_value');
var ccr_residual_value = record.get('ccr_residual_value');
var amount_250 = record.get('amount_250');
if (amount_250 == 0){
if (residual_value != ccr_residual_value && typeof (residual_value) != 'undefined') {
var req_change_id_4 = document.getElementById('${/parameter/@layout_code}_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_RESIDUAL_VALUE');
var req_change_input_4 = req_change_id_4.getElementsByTagName('input');
req_change_input_4[0].style.setProperty('background-color', '#FF9965', 'important');
}
;
//调整后留购价
var residual_value = record.get('residual_value');
var ccr_residual_value = record.get('ccr_residual_value');
var amount_250 = record.get('amount_250');
if (amount_250 == 0){
if (residual_value != ccr_residual_value && typeof (residual_value) != 'undefined') {
var req_change_id_4 = document.getElementById('${/parameter/@layout_code}_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_RESIDUAL_VALUE');
var req_change_input_4 = req_change_id_4.getElementsByTagName('input');
req_change_input_4[0].style.setProperty('background-color', '#FF9965', 'important');
}
}
if(amount_250 != 0){
if (residual_value != 0 && typeof (residual_value) != 'undefined') {
var req_change_id_4 = document.getElementById('${/parameter/@layout_code}_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_RESIDUAL_VALUE');
var req_change_input_4 = req_change_id_4.getElementsByTagName('input');
req_change_input_4[0].style.setProperty('background-color', '#FF9965', 'important');
}
if(amount_250 != 0){
if (residual_value != 0 && typeof (residual_value) != 'undefined') {
var req_change_id_4 = document.getElementById('${/parameter/@layout_code}_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_RESIDUAL_VALUE');
var req_change_input_4 = req_change_id_4.getElementsByTagName('input');
req_change_input_4[0].style.setProperty('background-color', '#FF9965', 'important');
}
}
}
}
}
};
......@@ -562,7 +562,32 @@
};
function con731_submit() {
Leaf.showConfirm('${l:HLS.PROMPT}', '是否确认提交审批?', function () {
var same_flag;
Leaf.request({
url: $('con_guarantor_comparison_link').getUrl(),
para: {
change_req_id: '${/parameter/@change_req_id}',
},
success: function (res) {
debugger;
same_flag= res.result.same_flag;
},
failure: function () {
},
error: function () {
},
scope: this,
sync: true
});
if(same_flag=='Y'){
var showMessage ='是否确认提交审批?';
}else{
var showMessage ='担保人未发生变更,是否确认提交审批?';
}
// debugger;
Leaf.showConfirm('${l:HLS.PROMPT}', showMessage, function () {
var req_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
var req_record = $(req_ds_id).getAt(0);
window['${/parameter/@bp_seq}${/parameter/@layout_code}_lock_layout_dynamic_window']();
......@@ -842,14 +867,14 @@
var query_count = 1;
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_load'] = function(ds, record, config_records, bp_seq) {
if ('${/parameter/@layout_code}' == 'CON_TENANT_CHANGE_MODIFY'){
var project_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_QUOTATION_01', 'con_contract');
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
if(ds.id==ds_id&& ds_id && query_count == 1) {
query_count = query_count + 1;
var bp_id = $(project_ds_id).getAt(0).get('bp_id_tenant');
$(ds_id).setQueryParameter('bp_id', bp_id);
$(ds_id).query();
}
var project_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_QUOTATION_01', 'con_contract');
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
if(ds.id==ds_id&& ds_id && query_count == 1) {
query_count = query_count + 1;
var bp_id = $(project_ds_id).getAt(0).get('bp_id_tenant');
$(ds_id).setQueryParameter('bp_id', bp_id);
$(ds_id).query();
}
}
};
//选择事件(grid,attach,gridbox,table)
......
......@@ -6,16 +6,77 @@
$Purpose:
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true">
<a:init-procedure>
<a:model-query model="cont.CON620.get_sys_role" rootPath="role_info"/>
<a:model-query model="csh.CSH514.workflow_info" defaultWhereClause="t2.transaction_wfl_id=${/parameter/@transaction_wfl_id}" rootPath="wolkflow_path"></a:model-query>
</a:init-procedure>
<a:view>
<a:link id="csh_transaction_write_off_reverse_link_id" url="${/request/@context_path}/modules/csh/CSH514/csh_transaction_write_off_reverse_new.lsc"/>
<!--<a:link id="csh514_write_off_reverse_link_id" model="csh.CSH514.csh_transaction_write_off_reverse" modelaction="batch_update"/>-->
<a:link id="csh514_write_off_reverse_link_id" url="${/request/@context_path}/modules/csh/CSH514/csh_transaction_write_off_reverse.lsc"/>
<a:link id="get_period_name_id" model="csh.CSH511.csh_transaction_get_period_name" modelaction="query"/>
<a:link id="csh514_check_contract_invoice_link_id" model="csh.CSH514.check_contract_invoice" modelaction="batch_update"/>
<a:link id="csh514_save_invoice_flag_id" model="csh.CSH514.check_contract_invoice" modelaction="execute"/>
<script type="text/javascript"><![CDATA[
function csh514_write_off_reverse_return() {
$('${/parameter/@winId}').close();
}
if("${/model/role_info/record/@role_code}"=="0014") {
zjwfl5110_ApproveChecker_add('zjwfl5110_submit', function (type) {
var root_ds = $('${/parameter/@layout_code}_virtual_ds');
if (type == 'agree') {
var headers_ds = $('csh_transaction_receipt_write_off_reverse_detail_head_ds');
var record = headers_ds.getAt(0);
Leaf.request({
url: $('csh514_save_invoice_flag_id').getUrl(),
para: {
transaction_wfl_id:record.get('transaction_wfl_id'),
check_flag :record.get('ignore_invoice_check_flag')
},
success: function () {
},
sync: true,
scope: this
});
if (record.get('ignore_invoice_check_flag')=='Y') {
return true;
} else {
var head_record = $('csh_transaction_receipt_write_off_reverse_detail_head_ds').getAt(0);
var records = $('csh_transaction_receipt_write_off_reverse_detail_result_ds').getAll();
var saveData = [];
var con_check_flag ;
for (var i = 0; i < records.length; i++) {
var a= records[i].get('write_off_id');
records[i].set('write_off_id',records[i].get('write_off_id'));
records[i].set('_status', 'update');
saveData.push(records[i].data);
}
Leaf.request({
url: $('csh514_check_contract_invoice_link_id').getUrl(),
para: saveData,
success: function () {
con_check_flag ='N';
},
failure: function () {
con_check_flag ='Y';
},
error: function () {
con_check_flag ='Y';
},
sync: true,
scope: this
});
if(con_check_flag == 'N'){
return true;
}else{
return false;
}
}
}else return true;
});
}
]]></script>
<a:dataSets>
......@@ -27,6 +88,7 @@
<a:field name="transaction_date" readOnly="true"/>
<a:field name="description" readOnly="true"/>
<a:field name="note" readOnly="true"/>
<a:field name="ignore_invoice_check_flag"/>
</a:fields>
</a:dataSet>
<a:dataSet id="csh_transaction_receipt_write_off_reverse_detail_result_ds" autoQuery="true" fetchAll="true"
......@@ -49,7 +111,7 @@
<!--<a:screenTopToolbar>
<a:gridButton click="csh514_write_off_reverse_return" text="HLS.RETURN"/>
</a:screenTopToolbar>-->
<a:form title="CSH514.CSH_WRITE_OFF_DETAIL">
<a:form title="CSH514.CSH_WRITE_OFF_DETAIL" >
<a:hBox>
<a:datePicker name="reversed_date" bindTarget="csh_transaction_receipt_write_off_reverse_detail_head_ds" renderer="Leaf.formatDate"
prompt="HLS.REVERSE_DATE"/>
......@@ -60,6 +122,7 @@
bindTarget="csh_transaction_receipt_write_off_reverse_detail_head_ds" renderer="Leaf.formatDate" prompt="收款日期"/>
<a:textField name="description" bindTarget="csh_transaction_receipt_write_off_reverse_detail_head_ds"
prompt="HLS.NOTE" width="300"/>
<a:checkBox name="ignore_invoice_check_flag" bindTarget="csh_transaction_receipt_write_off_reverse_detail_head_ds" prompt="是否跳过合同开票校验"/>
</a:hBox>
<a:hBox>
<a:textArea name="note" bindTarget="csh_transaction_receipt_write_off_reverse_detail_head_ds"
......@@ -85,5 +148,15 @@
</a:columns>
</a:grid>
</a:screenBody>
<script>
Leaf.onReady(init);
function init() {
var headers_ds = $('csh_transaction_receipt_write_off_reverse_detail_head_ds');
if ('${/model/wolkflow_path/record/@current_seq}' != '10'){
headers_ds.getField('ignore_invoice_check_flag').setReadOnly(true);
}
}
</script>
</a:view>
</a:screen>
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