94 lines
2.9 KiB
Plaintext
94 lines
2.9 KiB
Plaintext
<%@page import="com.amarsoft.are.lang.StringX"%>
|
|
<%@ page contentType="text/html; charset=GBK"%>
|
|
<%@
|
|
include file="/Frame/resources/include/include_begin_info.jspf"%>
|
|
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Info00;Describe=注释区;]~*/%>
|
|
<%
|
|
/*
|
|
Author:
|
|
Tester:
|
|
Content: 创建业务申请
|
|
Input Param:
|
|
|
|
Output param:
|
|
History Log:
|
|
*/
|
|
%>
|
|
<%/*~END~*/%>
|
|
|
|
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Info02;Describe=定义变量,获取参数;]~*/%>
|
|
<%
|
|
String sObjectType = CurPage.getParameter("ObjectType");
|
|
if(StringX.isSpace(sObjectType)) sObjectType = "";
|
|
String sApplyType = CurPage.getParameter("ApplyType");
|
|
if(StringX.isSpace(sApplyType)) sApplyType = "";
|
|
String sFlowNo = CurPage.getParameter("FlowNo");
|
|
if(StringX.isSpace(sFlowNo)) sFlowNo = "";
|
|
String sPhaseType = CurPage.getParameter("PhaseType");
|
|
if(StringX.isSpace(sPhaseType)) sPhaseType = "";
|
|
String sPhaseNo = CurPage.getParameter("PhaseNo");
|
|
if(StringX.isSpace(sPhaseNo)) sPhaseNo = "";
|
|
String sInputOrgID = CurUser.getOrgID();
|
|
if(StringX.isSpace(sInputOrgID)) sInputOrgID = "";
|
|
String sInputUserID = CurUser.getUserID();
|
|
if(StringX.isSpace(sInputUserID)) sInputUserID = "";
|
|
%>
|
|
<%/*~END~*/%>
|
|
|
|
<%
|
|
String templetNo = "NewApplyInfo";//模板号
|
|
ASObjectModel doTemp = new ASObjectModel(templetNo);
|
|
|
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
|
dwTemp.Style = "2";//freeform
|
|
//dwTemp.ReadOnly = "-2";//只读模式
|
|
dwTemp.genHTMLObjectWindow("");
|
|
String sButtons[][] = {
|
|
{"true","","Button","确认","确认新增授信申请","doCreation()",""},
|
|
{"true","","Button","取消","取消新增授信申请","doCancel()",""}
|
|
};
|
|
sButtonPosition = "south";
|
|
%>
|
|
<%@
|
|
include file="/Frame/resources/include/ui/include_info.jspf"%>
|
|
<script type="text/javascript">
|
|
/*~[Describe=保存;InputParam=无;OutPutParam=无;]~*/
|
|
function saveRecord(){
|
|
var sTableName = "LB_TEMP_INFO";//表名
|
|
var sColumnName = "SerialNo";//字段名
|
|
var sPrefix = "";//前缀
|
|
var sIndustryType = "";
|
|
//获取流水号
|
|
var sSerialNo = getSerialNo(sTableName,sColumnName,sPrefix);
|
|
setItemValue(0,0,"SerialNo",sSerialNo);
|
|
//初始化流程
|
|
s2 = RunMethod("WorkFlowEngine","InitializeFlow","<%=sObjectType%>"+","+sSerialNo+","+"<%=sApplyType%>"+","+"<%=sFlowNo%>"+","+"<%=sPhaseNo%>"+","+"<%=sInputUserID%>"+","+"<%=sInputOrgID%>");
|
|
sObjectNo = sSerialNo;
|
|
sObjectType = "<%=sObjectType%>";
|
|
as_save("myiframe0","");
|
|
//返回申请类型和业务申请流水号
|
|
self.returnValue=sObjectNo+"@"+sObjectType;
|
|
self.close();
|
|
}
|
|
/*~[Describe=新增一笔授信申请记录;InputParam=无;OutPutParam=无;]~*/
|
|
function doCreation(){
|
|
if(!iV_all(0)) return ;
|
|
saveRecord();
|
|
|
|
}
|
|
|
|
/*~[Describe=取消新增授信方案;InputParam=无;OutPutParam=取消标志;]~*/
|
|
function doCancel(){
|
|
top.returnValue = "_CANCEL_";
|
|
top.close();
|
|
}
|
|
|
|
function initRow(){
|
|
setItemValue(0,0,"InputTime","<%=StringFunction.getToday()%>");
|
|
setItemValue(0,0,"InputUserID","<%=sInputUserID%>");
|
|
}
|
|
|
|
initRow();
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|