2018-06-03 22:26:41 +08:00

34 lines
1.5 KiB
Plaintext

<%@page import="com.amarsoft.biz.formatdoc.model.FormatDocHelp"%>
<%@ page contentType="text/html; charset=GBK"%><%@
include file="/Frame/resources/include/include_begin_list.jspf"%><%
String sOrgID = FormatDocHelp.getBranchOrgID(CurOrg.getOrgID());
ASObjectModel doTemp = new ASObjectModel("DefaultPrintList");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //设置为Grid风格
dwTemp.ReadOnly = "1"; //设置为只读
dwTemp.genHTMLObjectWindow(sOrgID);
String sButtons[][] = {
{"true","","Button","定制打印设置","定制打印设置","setDefault()","","","",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
setDialogTitle("报告定制打印节点");
function setDefault(){
var sDocID = getItemValue(0,getRow(),"DocID");
if(typeof(sDocID)=="undefined" || sDocID.length==0) {
alert(getMessageText('AWEW1001'));//请选择一条信息!
return;
}
AsDialog.PopView("/FormatDoc/DefaultPrint/DefaultPrintSelect.jsp","DocID="+sDocID,
"dialogWidth=800px;dialogHeight=500px;status:no;center:yes;help:no;minimize:no;maximize:no;border:thin;",function(sDirID){
if(typeof(sDirID)=="undefined" || sDirID=="_none_" || sDirID==null) return;
AsControl.RunJsp("/FormatDoc/DefaultPrint/SetDefaultPrintAction.jsp","DirID="+sDirID+"&DocID="+sDocID+"&OrgID=<%=sOrgID%>");
alert("设置成功");
reloadSelf();
});
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>