财务报表导出模板

This commit is contained in:
amarsoft 2018-09-30 12:01:37 +08:00
parent c204ea0190
commit d82a136efc

View File

@ -23,14 +23,24 @@
{"true","","Button","修改报表日期","修改报表日期","ModifyReportDate()","","","","btn_icon_edit"},
{"true","","Button","删除报表","删除该期财务报表","DeleteFS()","","","","btn_icon_delete"},
{"true","","Button","完成","设置报表为完成状态","FinishFS()","","","","btn_icon_finish"},//采用标志位来控制报表权限,新增完成按钮,实现财务报表由新增状态转换为完成状态。
{"true","","Button","导出模板","导出模板","ExportModel()","","","","btn_icon_export"},
};
}else{
sButtons=new String[][]{
{"true","","Button","报表详情","查看该期报表的详细信息","FSDetail()","","","","btn_icon_detail"},
{"true","","Button","导出报表","导出该期报表","FSExport()","","","","btn_icon_export"},
{"true","","Button","导出模板","导出模板","ExportModel()","","","","btn_icon_export"},
};
}
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<iframe name="MyAtt" src="<%=com.amarsoft.awe.util.Escape.getBlankJsp(sWebRootPath,"正在下载附件,请稍候...")%>" style="background-color: blue" width=100% height=100% frameborder=0 hspace=0 vspace=0 marginwidth=0 marginheight=0 scrolling="no">
</iframe>
<form name=form1 method=post action="<%=sWebRootPath%>/servlet/view/fileTemplateView?CompClientID=<%=sCompClientID%>" target=MyAtt>
<div style="display:none">
<input id="sqlString" name="sqlString" value="">
</div>
</form>
<script type="text/javascript">
var ObjectType = "CustomerFS";
//新增一期财务报表
@ -100,6 +110,22 @@
}
function FSExport(){
var sReportDate = getItemValue(0,getRow(),"ReportDate");
alert(sReportDate);
if(!sReportDate){
alert("请选择一条信息!");
return;
}
var sObjectNo = getItemValue(0,getRow(),"CustomerID");
alert(sObjectNo);
var sReportScope = getItemValue(0,getRow(),"ReportScope");
alert(sReportScope);
AsControl.ExportFinanceReport(ObjectType, sObjectNo, sReportScope, sReportDate);
console.info(sWebRootPath);
}
function EmptyExport(){
var sReportDate = getItemValue(0,getRow(),"ReportDate");
if(!sReportDate){
alert("请选择一条信息!");
@ -233,5 +259,9 @@
sReturn=RunJavaMethod("com.tenwa.customer.controller.finance.CustomerFSAction","checkFSStatus","ObjectNo="+sCustomerID+",ReportDate="+sReportDate+",ReportScope="+sReportScope);
return sReturn == '03';
}
function ExportModel(){
$("#sqlString").val("save@50b5e906255c416ebaa3ac2ad164ea79");
form1.submit();
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>