apzl_leasing/WebContent/Tenwa/Lease/Flow/CollectionAudit/ChargebackVoucherDetail.jsp

84 lines
3.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
/*
Author: undefined 2018-12-18
Content:
History Log:
*/
String HIRE_DATE = CurPage.getParameter("HIRE_DATE");
String OWN_NUMBER = CurPage.getParameter("OWN_NUMBER");
String CHANNEL = CurPage.getParameter("CHANNEL");
ASObjectModel doTemp = new ASObjectModel("ChargebackVoucherDetail");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
//dwTemp.MultiSelect = true; //多选
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.ShowSummary = "1"; //显示小计
dwTemp.setPageSize(10);
dwTemp.genHTMLObjectWindow(HIRE_DATE+","+OWN_NUMBER+","+CHANNEL);
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
// {"true","All","Button","生成租金凭证","生成租金凭证","Manage()","","","","",""},
// {"true","All","Button","修改记账日期","修改记账日期","viewAndEdit()","","","","",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function Manage(){
var sParm = getItemValueArray(0, "id");
if(typeof(sParm) == "undefined" || sParm.length == 0 )
{
alert("请至少选择一条记录!");
return;
}
var ids = "";
for(var i = 0;i < sParm.length; i++){
if(ids.length == 0){
ids += sParm[i] +"@";
}else{
ids += sParm[i] +"@";
}
}
var income_IDs = getItemValueArray(0,'income_ID')+","+TablePage.getCheckedItemValueArrayWithOtherPage("income_ID",s_c_p[0]);
var Return1 = RunJavaMethodTrans("com.tenwa.lease.flow.contract.commbusiness.VOUCHERINFO","JiaoYanTwo","income_IDs="+income_IDs);
if(Return1=="true"){
var res = RunJavaMethodTrans("com.tenwa.lease.app.quartzmession.Checkfordeduction", "execute", "id="+ids+",userId="+"<%=CurUser.getUserID()%>");
if (res== "true") {
alert("执行成功!");
location.reload();
}else{
alert("执行失败!");
return;
}
}
else{
alert("请先选择记账日期");
return 0;
}
}
function viewAndEdit(){
var sUrl = "/Tenwa/Lease/Flow/CollectionAudit/VI_SNAP_JOINT_VOUCHERInfo.jsp";
var income_IDs = getItemValueArray(0,'income_ID')+","+TablePage.getCheckedItemValueArrayWithOtherPage("income_ID",s_c_p[0]);
if(typeof(income_IDs) == "undefined" || income_IDs.length == 1 ){alert("请选择一条信息!");return ;}
var sParam = "income_IDs="+income_IDs;
AsDialog.PopView(sUrl,sParam,
"dialogWidth=500px;dialogHeight=300px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(sReturnInfo){
if(typeof(sReturnInfo)=="undefined" || sReturnInfo=="" || sReturnInfo=="_CANCEL_") return;
if("success"==sReturnInfo){
alert("修改成功");
}
else alert("修改失败");
reloadSelf();
},"记账日期修改");
reloadSelf();
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>