提前结清模板盖章及附件必备标红

This commit is contained in:
tangfutang 2018-09-29 20:38:24 +08:00
parent be9816194b
commit 6fb0af2d67
6 changed files with 23 additions and 13 deletions

View File

@ -99,11 +99,11 @@
window.onload=function(){
var RowCount = getRowCount(0);
for(var i=0;i<RowCount;i++){
if($("#INPUT_myiframe0_Doc_Nature_"+i+"_2").text()=="±Ø±¸"){
$("#INPUT_myiframe0_Doc_Nature_"+i+"_2").attr("style","color:red");
}
}
// for(var i=0;i<RowCount;i++){
// if($("#INPUT_myiframe0_Doc_Nature_"+i+"_2").text()=="必备"){
// $("#INPUT_myiframe0_Doc_Nature_"+i+"_2").attr("style","color:red");
// }
// }
heping();
$("#DWTD").width( document.body.offsetWidth - 10);
@ -166,6 +166,9 @@ function afterSearch(){
}
getObj(0,i,"filelist").innerHTML=html;
getObj(0,i,"filelist").style["white-space"]="pre-wrap";
if($("#INPUT_myiframe0_Doc_Nature_"+i+"_2").text()=="必备"){
$("#INPUT_myiframe0_Doc_Nature_"+i+"_2").attr("style","color:red");
}
};
}
function showPDF(id,name){

View File

@ -149,13 +149,12 @@
}
function stamp(){
// var flie = getItemValue(0,getRow(0),"FILENAME");
// if(typeof(flie)=="undefined"||flie==null||flie==""){
// alert("请先生成产权转移单!!");
// return;
// }
var result=RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","TcollectionSignA","contract_id=<%=contractid%>,FlowUnid=<%=sFlowUnid%>,flagType=settletradition");
if("success"==result){
alert("盖章成功!");
}else{
alert("盖章失败!");
}
location.reload();
}

View File

@ -34,7 +34,7 @@
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] =null;
sButtons=new String[][]{
{"true","All","Button","生成租金通知书","生成租金通知书","generateQuotation()","","","","btn_icon_generate"},
{"true","All","Button","生成提前终止模板","生成提前终止模板","generateQuotation()","","","","btn_icon_generate"},
{"true","All","Button","公司盖章","公司盖章","stamp()","","","",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
@ -143,6 +143,12 @@
function stamp(){
var result=RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","TcollectionSignA","FlowUnid=<%=flowunid%>,flagType=TriditionSuspension");
if("success"==result){
alert("盖章成功!");
}else{
alert("盖章失败!");
}
reloadSelf();
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -2459,7 +2459,9 @@ public String claimSign(JBOTransaction tx) throws Exception {
DOCRELATIVE=bom.createQuery("plan_number=:plan_number and objecttype='TriditionCollection' ").setParameter("plan_number",PAYMENT_NUMBER).getSingleResult(false);
}else if("TriditionSuspension".equals(flagType)){
DOCRELATIVE=bom.createQuery(" OBJECTTYPE='TriditionSuspension' and FLOW_UNID=:flowunid ").setParameter("flowunid",FlowUnid).getSingleResult(false);
}else {
}else if("settletradition".equals(flagType)){
DOCRELATIVE=bom.createQuery(" OBJECTTYPE='settletradition' and FLOW_UNID=:flowunid and CONTRACT_ID=:contractid ").setParameter("flowunid",FlowUnid).setParameter("contractid",contract_id).getSingleResult(false);
}else{
DOCRELATIVE=bom.createQuery("plan_number=:plan_number and objecttype LIKE '%´òÓ¡´ß¿îº¯%' ").setParameter("plan_number",PAYMENT_NUMBER).getSingleResult(false);
}
if (DOCRELATIVE != null) {