传统租赁物提前结清模版代值
This commit is contained in:
parent
e75050b653
commit
4133324040
@ -43,7 +43,7 @@
|
||||
return;
|
||||
}
|
||||
var equipOverMoney = getItemValue(0,getRow(0),"money");
|
||||
if(confirm("是否要进行货扣?")){
|
||||
if(confirm("是否进行抵扣?")){
|
||||
AsDialog.OpenSelector("SelectPaymentFundList","paymentNumber,"+getItemValue(0,getRow(0),"payment_number"),"dialogWidth=" + parseInt(window.screen.width * 0.9) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
|
||||
if(!sReturn||sReturn=="_CANCEL_"){
|
||||
return;
|
||||
|
||||
@ -0,0 +1,148 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Frame/resources/include/include_begin_simplelist.jspf"%>
|
||||
<%@ page import="com.tenwa.doc.action.DocListInitAction" %>
|
||||
<%@ page import="com.amarsoft.app.lc.workflow.action.GetFlowAction" %>
|
||||
<%@ page import="com.amarsoft.app.util.*" %>
|
||||
<%
|
||||
/*
|
||||
Author: undefined 2016-09-01
|
||||
Content:
|
||||
History Log:
|
||||
*/
|
||||
String flowunid = CurPage.getParameter("FlowUnid");
|
||||
BizObject flow = GetFlowAction.getFlowBussinessObject(flowunid);
|
||||
String projid = flow.getAttribute("proj_id").getString();
|
||||
String contract_id = flow.getAttribute("contract_id").getString();
|
||||
String ishistory = CurPage.getParameter("ishistory");
|
||||
String nodeNo=CurPage.getParameter("NodeNo");
|
||||
String RightType = CurPage.getParameter("RightType");
|
||||
|
||||
String sTempletNo = CurPage.getParameter("TempletNo");//模板号
|
||||
sTempletNo = "TriditionSuspensionList";
|
||||
String userName = CurUser.getUserName();
|
||||
|
||||
String compClientID = request.getParameter("CompClientID");
|
||||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||||
doTemp.setVisible("ACTION", true);
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,
|
||||
request);
|
||||
dwTemp.Style = "1"; //--设置为Grid风格--
|
||||
dwTemp.ReadOnly = "1";
|
||||
dwTemp.setPageSize(50);
|
||||
// dwTemp.genHTMLObjectWindow(docname+","+contract_id);
|
||||
|
||||
//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","公司盖章","公司盖章","stamp()","","","",""},
|
||||
};
|
||||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||
<script type="text/javascript">
|
||||
|
||||
//在加载完表格后调用
|
||||
function afterSearch(){
|
||||
var ishistory = "<%=ishistory%>";
|
||||
var RightType = "<%=RightType%>";
|
||||
for(var i=0;i<getRowCount(0);i++){
|
||||
var html="";
|
||||
html+='<a onclick=downloadFile(\''+getItemValue(0,i,"V.attrid")+'\')><font color="blue">'+getObj(0,i,"FILENAME").innerHTML+'</font></a>';
|
||||
getObj(0,i,"FILENAME").innerHTML=html;
|
||||
};
|
||||
for(var i=0;i<getRowCount(0);i++){
|
||||
html='<a class="btn_icon_detail" onclick="viewOffice()"> </a> ';
|
||||
if((null ==RightType||RightType!="ReadOnly")&&(null==ishistory||ishistory!="true")){
|
||||
html+=' <a class="btn_icon_edit" onclick="editOffice()"> </a> <a class="btn_icon_delete"onclick="deleteFile()"> </a> ';
|
||||
}
|
||||
getObj(0,i,"ACTION").innerHTML=html;
|
||||
}
|
||||
setColumnWidth(0,"ACTION",150);
|
||||
}
|
||||
|
||||
|
||||
function viewOffice(){
|
||||
var id = getItemValue(0,getRow(),"V.attrid");
|
||||
var filename = getItemValue(0,getRow(),"FILENAME");
|
||||
var filetype=filename.substr(filename.indexOf(".")+1);
|
||||
var status=1;
|
||||
AsDialog.PopView("/Tenwa/Core/OfficeTemplate/OnlineOperation/online/editOfficeOnLine.jsp","filetype="+filetype+"&status="+status+"&id="+id+"&CompClientID=<%=compClientID%>","dialogWidth=1024px;dialogHeight=1000px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(sPhaseInfo){
|
||||
if(typeof(sPhaseInfo)=="undefined" || sPhaseInfo=="" || sPhaseInfo==null || sPhaseInfo=="null" || sPhaseInfo=="_CANCEL_") {
|
||||
return;
|
||||
}else if(sPhaseInfo == "Success" || sPhaseInfo == "success"){
|
||||
alert("提交成功!");
|
||||
reloadSelf();
|
||||
}else{
|
||||
alert("提交失败!");
|
||||
}
|
||||
},"查看文档");
|
||||
}
|
||||
|
||||
|
||||
function editOffice(){
|
||||
var id = getItemValue(0,getRow(),"V.attrid");
|
||||
var filename = getItemValue(0,getRow(),"FILENAME");
|
||||
var filetype=filename.substr(filename.indexOf(".")+1);
|
||||
var status=2;
|
||||
AsDialog.PopView("/Tenwa/Core/OfficeTemplate/OnlineOperation/online/editOfficeOnLine.jsp","filetype="+filetype+"&status="+status+"&id="+id+"&CompClientID=<%=compClientID%>","dialogWidth=1024px;dialogHeight=1000px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(sPhaseInfo){
|
||||
if(typeof(sPhaseInfo)=="undefined" || sPhaseInfo=="" || sPhaseInfo==null || sPhaseInfo=="null" || sPhaseInfo=="_CANCEL_") {
|
||||
return;
|
||||
}else if(sPhaseInfo == "Success" || sPhaseInfo == "success"){
|
||||
alert("提交成功!");
|
||||
reloadSelf();
|
||||
}else{
|
||||
alert("提交失败!");
|
||||
}
|
||||
},"编辑文档");
|
||||
}
|
||||
|
||||
|
||||
function deleteFile(){
|
||||
var id = getItemValue(0,getRow(),"V.attrid");
|
||||
var sParams="attId="+id;
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.doc.action.DocListAction","deleteFile",sParams);
|
||||
reloadSelf();
|
||||
}
|
||||
|
||||
|
||||
function downloadFile(id){
|
||||
if(!frames["downloadTemplate"]) $("<iframe name='downloadTemplate' style='display:none;'></iframe>").appendTo("body");
|
||||
window.open(sWebRootPath+"/servlet/view/docDownloadServlet?CompClientID=<%=sCompClientID%>&sqlString=save@"+id, "downloadTemplate");
|
||||
}
|
||||
function generateQuotation()
|
||||
{
|
||||
var param={};
|
||||
var tempParam={};
|
||||
var sparam="";
|
||||
//模板号
|
||||
// param["templateNo"]="e1fc3afacfbc46fea0a881ac20de23cc";
|
||||
param["templateNo"]="184be06d0dfc4609a6705959c30e2d31";
|
||||
//生成文件关联关系
|
||||
tempParam["OBJECTTYPE"]="TriditionSuspension";
|
||||
tempParam["FLOW_UNID"]="<%=flowunid%>";
|
||||
tempParam["PROJ_ID"]="<%=projid%>";
|
||||
tempParam["contract_id"]="<%=contract_id%>";
|
||||
//生成模板固定参数
|
||||
tempParam["CurUserId"]="<%=CurUser.getUserID()%>";
|
||||
tempParam["CurOrgId"]="<%=CurUser.getOrgID()%>";
|
||||
tempParam["fileSavePath"]="<%=CurConfig.getConfigure("FileSavePath")%>";
|
||||
|
||||
param["templateParam"]=JSON.stringify(tempParam).replace(/,/g,"@");//生成模板的参数据
|
||||
for(var key in param){
|
||||
if(sparam.length>0){sparam+=",";}
|
||||
sparam+=key+"="+param[key];
|
||||
}
|
||||
// var deleteresult=RunJavaMethodTrans("com.tenwa.officetempalte.controller.RentNotinyDeleteAction","deletequtation","plan_number="+plan_number+",plan_list="+plan_list);
|
||||
var result=RunJavaMethodTrans("com.tenwa.officetempalte.action.CreateOfficeAction","createOfficeByTemplate",sparam);
|
||||
//word转pdf
|
||||
var id = RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","wordToPdfAnnex","FlowUnid=<%=flowunid%>,PLAN_LIST=TriditionSuspension");
|
||||
|
||||
reloadSelf();
|
||||
|
||||
}
|
||||
|
||||
|
||||
function stamp(){
|
||||
var result=RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","TcollectionSignA","FlowUnid=<%=flowunid%>,flagType=TriditionSuspension");
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
BIN
WebContent/fileTemplate/租赁提前终止通知书.docx
Normal file
BIN
WebContent/fileTemplate/租赁提前终止通知书.docx
Normal file
Binary file not shown.
@ -1624,6 +1624,8 @@ public void wordToPdfJar(JBOTransaction tx){
|
||||
DOCRELATIVE=bom.createQuery(" OBJECTTYPE='AdjustmentNotice' and FLOW_UNID=:flowunid ").setParameter("flowunid",FlowUnid).getSingleResult(false);
|
||||
}else if("TriditionCollection".equals(PLAN_LIST)){
|
||||
DOCRELATIVE=bom.createQuery(" OBJECTTYPE='TriditionCollection' and plan_number=:plan_number").setParameter("plan_number",PAYMENT_NUMBER).getSingleResult(false);
|
||||
}else if("TriditionSuspension".equals(PLAN_LIST)){
|
||||
DOCRELATIVE=bom.createQuery(" OBJECTTYPE='TriditionSuspension' and FLOW_UNID=:flowunid ").setParameter("flowunid",FlowUnid).getSingleResult(false);
|
||||
}else{
|
||||
DOCRELATIVE=bom.createQuery("plan_number=:plan_number and plan_list=:plan_list").setParameter("plan_number",PAYMENT_NUMBER).setParameter("plan_list", PLAN_LIST).getSingleResult(false);
|
||||
}
|
||||
@ -2453,7 +2455,9 @@ public String claimSign(JBOTransaction tx) throws Exception {
|
||||
DOCRELATIVE=bom.createQuery(" OBJECTTYPE='AdjustmentNotice' and FLOW_UNID=:flowunid ").setParameter("flowunid",FlowUnid).getSingleResult(false);
|
||||
}else if("TriditionCollection".equals(flagType)){
|
||||
DOCRELATIVE=bom.createQuery("plan_number=:plan_number and objecttype='TriditionCollection' ").setParameter("plan_number",PAYMENT_NUMBER).getSingleResult(false);
|
||||
}else{
|
||||
}else if("TriditionSuspension".equals(flagType)){
|
||||
DOCRELATIVE=bom.createQuery(" OBJECTTYPE='TriditionSuspension' and FLOW_UNID=:flowunid ").setParameter("flowunid",FlowUnid).getSingleResult(false);
|
||||
}else {
|
||||
DOCRELATIVE=bom.createQuery("plan_number=:plan_number and objecttype LIKE '%´òÓ¡´ß¿îº¯%' ").setParameter("plan_number",PAYMENT_NUMBER).getSingleResult(false);
|
||||
}
|
||||
if (DOCRELATIVE != null) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user