474 lines
19 KiB
Plaintext
474 lines
19 KiB
Plaintext
<%@page import="jbo.app.BUSINESS_PUTOUT"%>
|
||
<%@ page contentType="text/html; charset=GBK"%>
|
||
<%@ page import="com.amarsoft.app.als.dict.*" %>
|
||
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%>
|
||
|
||
|
||
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List00;Describe=注释区;]~*/%>
|
||
<%
|
||
/*
|
||
Content: 该页面主要处理放贷申请
|
||
*/
|
||
%>
|
||
<%/*~END~*/%>
|
||
|
||
|
||
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List01;Describe=定义页面属性;]~*/%>
|
||
<%
|
||
String PG_TITLE = "未命名模块"; // 浏览器窗口标题 <title> PG_TITLE </title>
|
||
%>
|
||
<%/*~END~*/%>
|
||
|
||
|
||
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List02;Describe=定义变量,获取参数;]~*/%>
|
||
<%
|
||
|
||
%>
|
||
<%/*~END~*/%>
|
||
|
||
|
||
<%/*~BEGIN~不可编辑区~[Editable=false;CodeAreaID=ApplyList;Describe=主体页面;]~*/%>
|
||
<%@include file="/Common/WorkFlow/ApplyList.jsp"%>
|
||
<%/*~END~*/%>
|
||
|
||
|
||
<%/*~BEGIN~不可编辑区~[Editable=false;CodeAreaID=List05;Describe=主体页面;]~*/%>
|
||
<%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||
<%/*~END~*/%>
|
||
|
||
|
||
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List06;Describe=自定义函数;]~*/%>
|
||
<script type="text/javascript">
|
||
|
||
//---------------------定义按钮事件------------------------------------
|
||
/*~[Describe=新增放贷申请;InputParam=无;OutPutParam=无;]~*/
|
||
function newApply()
|
||
{
|
||
//设置合同对象
|
||
sObjectType = "BusinessContract";
|
||
//待出帐的合同信息
|
||
sParaString = "<%=StringFunction.getToday()%>,<%=StringFunction.getToday()%>,<%=CurUser.getUserID()%>";
|
||
sReturn = AsDialog.SetGridValue("SelectContractOfPutOut", sParaString, "ObjectNo=SerialNo@BusinessType=BusinessType", null, false);
|
||
if(typeof(sReturn) == "undefined" || sReturn == "" || sReturn == "_NONE_" || sReturn == "_CLEAR_" || sReturn == "_CANCEL_") return;
|
||
//合同流水号
|
||
var sReturn = sReturn.split("@");
|
||
sObjectNo = sReturn[0];
|
||
sBusinessType = sReturn[1];
|
||
sSurplusPutOutSum = RunJavaMethodTrans("com.amarsoft.app.als.putout.model.GetSurplusPutOutSumAction",
|
||
"getSurplusPutOutSum", "contractSerialNo="+sObjectNo);
|
||
if(parseFloat(sSurplusPutOutSum) <= 0) //如果合同没有可用金额,则终止出帐申请
|
||
{
|
||
alert(getBusinessMessage('573'));//此业务合同已没有可用金额,不能进行放贷申请!
|
||
return;
|
||
}
|
||
//当业务品种为贴现业务时,需要检验是否有票据。
|
||
if(sBusinessType =="1020010" || sBusinessType == "1020020" || sBusinessType == "1020030"){
|
||
sReturn = RunJavaMethodTrans("com.amarsoft.app.als.putout.model.PutOutApplyAction","checkBillInfo","objectNo="+sObjectNo+",businessType="+sBusinessType);
|
||
if(sReturn == "ERROR"){
|
||
alert(getMessageText("ALS74011"));//没有录入相关的票据信息,请录入后再进行出账申请!
|
||
return;
|
||
}
|
||
}
|
||
|
||
//进行风险智能探测
|
||
var para = "objectType="+sObjectType+",objectNo="+sObjectNo;
|
||
sReturn = RunJavaMethodTrans("com.amarsoft.app.als.putout.model.PutOutApplyAction","checkContractRisk",para);
|
||
if(typeof(sReturn) != "undefined" && sReturn != ""){
|
||
PopPage("/Common/WorkFlow/CheckActionView.jsp?Flag="+sReturn,"","resizable=yes;dialogWidth=600px;dialogHeight=400px;center:yes;status:no;statusbar:no");
|
||
return; //该“return”是否有效视具体业务需求而定
|
||
}
|
||
|
||
//如果贴现业务需要单张票出帐时,请项目组自行编写选择票据的列表,将所选择的汇票编号赋给sBillNo
|
||
//产品原型中是将该贴现合同项下的票据一次性出帐
|
||
var sBillNo="";
|
||
|
||
//初始化放贷申请,返回出帐流水号
|
||
sReturn = RunJavaMethodTrans("com.amarsoft.app.als.credit.putout.action.InitializePutOut","initializePutOut","ObjectType=<%=sObjectType%>,ObjectNo="+sObjectNo+",BusinessType="+sBusinessType+",BillNo="+sBillNo+",UserID=<%=CurUser.getUserID()%>,FlowNo=<%=sInitFlowNo%>");
|
||
if(typeof(sReturn) == "undefined" || sReturn == "") return;
|
||
|
||
sParamString = "ObjectType=PutOutApply&ObjectNo="+sReturn;
|
||
var sViewID = "001";
|
||
sParamString += "&ViewID="+sViewID;
|
||
AsCredit.openImageTab(sParamString);
|
||
reloadSelf();
|
||
}
|
||
|
||
/*~[Describe=删除记录;InputParam=无;OutPutParam=无;]~*/
|
||
function cancelApply(){
|
||
var sObjectType = getItemValue(0,getRow(),"ObjectType");
|
||
var sObjectNo = getItemValue(0,getRow(),"SerialNo");
|
||
if (typeof(sObjectNo)=="undefined" || sObjectNo.length==0){
|
||
alert(getHtmlMessage('1'));//请选择一条信息!
|
||
return;
|
||
}
|
||
|
||
if(confirm(getHtmlMessage('70'))){ //您真的想取消该信息吗?
|
||
as_delete("myiframe0");
|
||
}
|
||
}
|
||
|
||
/*~[Describe=使用OpenComp打开详情;InputParam=无;OutPutParam=无;]~*/
|
||
function viewTab(){
|
||
var sObjectType = getItemValue(0,getRow(),"ObjectType");
|
||
|
||
var sObjectNo = getItemValue(0,getRow(),"SerialNo");
|
||
if (typeof(sObjectNo)=="undefined" || sObjectNo.length==0){
|
||
alert(getHtmlMessage('1'));//请选择一条信息!
|
||
return;
|
||
}
|
||
sParamString = "ObjectType="+sObjectType+"&ObjectNo="+sObjectNo;
|
||
sPhaseNo = getItemValue(0,getRow(),"PhaseNo");
|
||
|
||
var sViewID = "001";
|
||
if (sPhaseNo != "0010" && sPhaseNo != "3000") {
|
||
sViewID = "002";
|
||
}
|
||
sParamString += "&ViewID="+sViewID;
|
||
|
||
//AsCredit.openImageTab(sParamString);//这里不知道咋回事,先修改成这样子能够显示
|
||
AsControl.PopComp("/ImageManage/ImageViewTab.jsp", sParamString+ "&RightType=0", "");
|
||
reloadSelf();
|
||
}
|
||
|
||
/*~[Describe=提交任务;InputParam=无;OutPutParam=无;]~*/
|
||
function doSubmit(){
|
||
//获得出帐类型、出帐流水号、流程编号、阶段编号
|
||
var sObjectType = getItemValue(0,getRow(),"ObjectType");
|
||
var sObjectNo = getItemValue(0,getRow(),"SerialNo");
|
||
var sFlowNo = getItemValue(0,getRow(),"FlowNo");
|
||
var sPhaseNo = getItemValue(0,getRow(),"PhaseNo");
|
||
var sContractSerialNo = getItemValue(0,getRow(),"ContractSerialNo");
|
||
var sBusinessType = getItemValue(0,getRow(),"BusinessType");
|
||
var sBusinessSum = getItemValue(0,getRow(),"BusinessSum").replace(/,/g,"");
|
||
var sBusinessCurrency = getItemValue(0,getRow(),"BusinessCurrency");
|
||
if (typeof(sObjectNo)=="undefined" || sObjectNo.length==0){
|
||
alert(getHtmlMessage('1'));//请选择一条信息!
|
||
return;
|
||
}
|
||
//检查该业务是否已经提交了(解决用户打开多个界面进行重复操作而产生的错误)
|
||
var sNewPhaseNo=RunJavaMethodTrans("com.amarsoft.app.als.loanafter.action.ClassifyApplyListAction","getPhaseNo","objectType="+sObjectType+",objectNo="+sObjectNo);
|
||
if(sNewPhaseNo != sPhaseNo) {
|
||
alert(getMessageText("ALS74012"));//该放贷申请已经提交了,不能再次提交!
|
||
reloadSelf();
|
||
return;
|
||
}
|
||
|
||
//获取任务流水号
|
||
var sTaskNo=RunJavaMethodTrans("com.amarsoft.app.als.flow.action.CreditAction","getUnfinishedTaskNo","ObjectType="+sObjectType+",ObjectNo="+sObjectNo+",FlowNo="+sFlowNo+",PhaseNo="+sPhaseNo+",UserID=<%=CurUser.getUserID()%>");
|
||
if(typeof(sTaskNo)=="undefined" || sTaskNo.length==0) {
|
||
alert(getBusinessMessage('500'));//该申请所对应的流程任务不存在,请核对!
|
||
return;
|
||
}
|
||
|
||
//added by xwlu 2015-04-03 判断放款金额是否为零
|
||
if(parseFloat(sBusinessSum) == 0){
|
||
alert(getMessageText("ALS74013"));//放款金额为零,不能提交!
|
||
return;
|
||
}
|
||
|
||
//检查是否签署意见
|
||
var sReturn = RunJavaMethodTrans("com.amarsoft.app.als.workflow.action.CheckOpinionAction","checkOpinion","SerialNo="+sTaskNo,"dialogWidth=0;dialogHeight=0;minimize:yes");
|
||
if(typeof(sReturn)=="undefined" || sReturn.length==0) {
|
||
alert(getBusinessMessage('501'));//该业务未签署意见,不能提交,请先签署意见!
|
||
return;
|
||
}
|
||
|
||
//进行风险智能探测
|
||
var isBizSort = RunJavaMethodTrans("com.amarsoft.app.als.putout.model.PutOutApplyAction","getBizSort","typeNo="+sBusinessType);
|
||
sUserID = getItemValue(0,getRow(),"InputUserID");
|
||
sReturn = autoRiskScan("003","ObjectType="+sObjectType+"&ObjectNo="+sObjectNo+"&TaskNo="+sTaskNo+"&BusinessType="+sBusinessType+"&ContractSerialNo="+sContractSerialNo+"&IsBizSort="+isBizSort+"&BusinessSum="+sBusinessSum+"&BusinessCurrency="+sBusinessCurrency+"&UserID="+sUserID);
|
||
if(sReturn != true){
|
||
return;
|
||
}
|
||
|
||
//弹出审批提交选择窗口
|
||
sPhaseInfo = PopPage("/Common/FlowManage/FlowSubmitDialog.jsp?TaskNo="+sTaskNo+"&oldPhaseNo="+sPhaseNo+"&objectType="+sObjectType+"&objectNo="+sObjectNo,"","dialogWidth=580px;dialogHeight=420px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;");
|
||
if(typeof(sPhaseInfo)=="undefined" || sPhaseInfo=="" || sPhaseInfo==null || sPhaseInfo=="null" || sPhaseInfo=="_CANCEL_") return;
|
||
else if (sPhaseInfo == "success"){
|
||
alert(getHtmlMessage('18'));//提交成功!
|
||
reloadSelf();
|
||
}else if (sPhaseInfo == "Failure"){
|
||
alert(getHtmlMessage('9'));//提交失败!
|
||
return;
|
||
}else if (sPhaseInfo == "Working"){
|
||
//同一用户在不同机器上登陆后,对同一笔业务同时提交到下一阶段时,可能会出现这种情况
|
||
alert(getMessageText("ALS74012"));//该放贷申请已经提交了,不能再次提交!
|
||
reloadSelf();
|
||
return;
|
||
}else{
|
||
}
|
||
}
|
||
|
||
//签署意见
|
||
function signOpinion(){
|
||
//获得申请类型、申请流水号、流程编号、阶段编号
|
||
var sObjectType = getItemValue(0,getRow(),"ObjectType");
|
||
var sObjectNo = getItemValue(0,getRow(),"SerialNo");
|
||
var sFlowNo = getItemValue(0,getRow(),"FlowNo");
|
||
var sPhaseNo = getItemValue(0,getRow(),"PhaseNo");
|
||
if (typeof(sObjectNo)=="undefined" || sObjectNo.length==0){
|
||
alert(getHtmlMessage('1'));//请选择一条信息!
|
||
return;
|
||
}
|
||
|
||
//获取任务流水号
|
||
var sTaskNo=RunJavaMethodTrans("com.amarsoft.app.als.flow.action.CreditAction","getUnfinishedTaskNo","ObjectType="+sObjectType+",ObjectNo="+sObjectNo+",FlowNo="+sFlowNo+",PhaseNo="+sPhaseNo+",UserID=<%=CurUser.getUserID()%>");
|
||
if(typeof(sTaskNo)=="undefined" || sTaskNo.length==0) {
|
||
alert(getBusinessMessage('500'));//该申请所对应的流程任务不存在,请核对!
|
||
return;
|
||
}
|
||
sCompID = "SignTaskOpinion";
|
||
sCompURL = "/Common/WorkFlow/SignTaskOpinionInfo.jsp";
|
||
var sReturn = popComp(sCompID,sCompURL,"TaskNo="+sTaskNo+"&ObjectType="+sObjectType+"&ObjectNo="+sObjectNo,"dialogWidth=680px;dialogHeight=450px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;");
|
||
if(sReturn=="<%=ALSConstant.JAVAMETHOD_SUCCESS_MESSAGE%>") doSubmit();//返回值为“success”,则弹出提交页面
|
||
}
|
||
/*~[Describe=转入贷后;InputParam=无;OutPutParam=无;]~*/
|
||
function transToAfterLoan(){
|
||
var sObjectType = getItemValue(0,getRow(),"ObjectType");
|
||
var sObjectNo = getItemValue(0,getRow(),"SerialNo");
|
||
if (typeof(sObjectNo)=="undefined" || sObjectNo.length==0){
|
||
alert(getHtmlMessage('1'));//请选择一条信息!
|
||
return;
|
||
}
|
||
if(!confirm(getMessageText("ALS74014"))){
|
||
return;
|
||
}
|
||
|
||
var para = "objectType="+sObjectType+",objectNo="+sObjectNo;
|
||
sReturn = RunJavaMethodTrans("com.amarsoft.app.als.putout.model.PutOutApplyAction","transToAfterLoan",para);
|
||
if(sReturn == "SUCCESS"){
|
||
reloadSelf();
|
||
}else{
|
||
alert(getMessageText("ALS74015"));//转入贷后失败
|
||
}
|
||
}
|
||
|
||
/*~[Describe=查看意见详情;InputParam=无;OutPutParam=无;]~*/
|
||
function viewOpinions(){
|
||
//获得出帐类型、出帐流水号、流程编号、阶段编号
|
||
var sObjectType = getItemValue(0,getRow(),"ObjectType");
|
||
var sObjectNo = getItemValue(0,getRow(),"SerialNo");
|
||
var sFlowNo = getItemValue(0,getRow(),"FlowNo");
|
||
var sPhaseNo = getItemValue(0,getRow(),"PhaseNo");
|
||
if (typeof(sObjectNo)=="undefined" || sObjectNo.length==0){
|
||
alert(getHtmlMessage('1'));//请选择一条信息!
|
||
return;
|
||
}
|
||
|
||
popComp("ViewFlowOpinions","/Common/WorkFlow/ViewFlowOpinions.jsp","FlowNo="+sFlowNo+"&PhaseNo=0010&ObjectType="+sObjectType+"&ObjectNo="+sObjectNo,"");
|
||
}
|
||
|
||
/*~[Describe=归档;InputParam=无;OutPutParam=无;]~*/
|
||
function archive(){
|
||
//获得出帐类型、出帐流水号
|
||
var sObjectType = getItemValue(0,getRow(),"ObjectType");
|
||
var sObjectNo = getItemValue(0,getRow(),"SerialNo");
|
||
if (typeof(sObjectNo)=="undefined" || sObjectNo.length==0){
|
||
alert(getHtmlMessage('1'));//请选择一条信息!
|
||
return;
|
||
}
|
||
if(confirm(getHtmlMessage('56'))){ //您真的想将该信息归档吗?
|
||
//归档操作
|
||
sReturn=RunJavaMethodTrans("com.amarsoft.app.als.flow.action.CreditAction","archiveBusiness","SerialNo="+sObjectNo+",CurDate=<%=StringFunction.getToday()%>"+",TableName=<%=BUSINESS_PUTOUT.CLASS_NAME%>");
|
||
if(typeof(sReturn)=="undefined" || sReturn.length==0) {
|
||
alert(getHtmlMessage('60'));//归档失败!
|
||
return;
|
||
}else{
|
||
reloadSelf();
|
||
alert(getHtmlMessage('57'));//归档成功!
|
||
}
|
||
}
|
||
}
|
||
|
||
/*~[Describe=取消归档;InputParam=无;OutPutParam=无;]~*/
|
||
function cancelarch(){
|
||
//获得出帐类型、出帐流水号
|
||
var sObjectType = getItemValue(0,getRow(),"ObjectType");
|
||
var sObjectNo = getItemValue(0,getRow(),"SerialNo");
|
||
if (typeof(sObjectNo)=="undefined" || sObjectNo.length==0){
|
||
alert(getHtmlMessage('1'));//请选择一条信息!
|
||
return;
|
||
}
|
||
if(confirm(getHtmlMessage('58'))){ //您真的想将该信息归档取消吗?
|
||
//取消归档操作
|
||
sReturn=RunJavaMethodTrans("com.amarsoft.app.als.flow.action.CreditAction","archiveBusiness","SerialNo="+sObjectNo+",TableName=<%=BUSINESS_PUTOUT.CLASS_NAME%>");
|
||
if(typeof(sReturn)=="undefined" || sReturn.length==0) {
|
||
alert(getHtmlMessage('61'));//取消归档失败!
|
||
return;
|
||
}else{
|
||
reloadSelf();
|
||
alert(getHtmlMessage('59'));//取消归档成功!
|
||
}
|
||
}
|
||
}
|
||
|
||
//收回
|
||
function takeBack(){
|
||
//所收回任务的流水号
|
||
var sObjectType = getItemValue(0,getRow(),"ObjectType");
|
||
var sObjectNo = getItemValue(0,getRow(),"SerialNo");
|
||
if (typeof(sObjectNo)=="undefined" || sObjectNo.length==0){
|
||
alert(getHtmlMessage('1'));//请选择一条信息!
|
||
return;
|
||
}
|
||
var sFlowNo = getItemValue(0,getRow(),"FlowNo");
|
||
var sPhaseNo = "<%=sInitPhaseNo%>";
|
||
//获取任务流水号
|
||
var para = "objectType="+sObjectType+",objectNo="+sObjectNo+",flowNo="+sFlowNo+",phaseNo="+sPhaseNo;
|
||
var sTaskNo = RunJavaMethodTrans("com.amarsoft.app.als.putout.model.PutOutApplyAction","getTaskNo",para);
|
||
if (typeof(sTaskNo) != "undefined" && sTaskNo.length > 0){
|
||
if(confirm(getBusinessMessage('498'))){ //确认收回该笔业务吗?
|
||
sRetValue = PopPage("/Common/WorkFlow/TakeBackTaskAction.jsp?SerialNo="+sTaskNo+"&rand=" + randomNumber(),"","dialogWidth=600px;dialogHeight=500px;status:no;center:yes;help:no;minimize:no;maximize:no;border:thin;statusbar:no");
|
||
reloadSelf();
|
||
}
|
||
}else{
|
||
alert(getBusinessMessage('500'));//该申请所对应的流程任务不存在,请核对!
|
||
return;
|
||
}
|
||
}
|
||
|
||
/*~[Describe=打印出帐通知书;InputParam=无;OutPutParam=无;]~*/
|
||
function print(){
|
||
var sObjectType = getItemValue(0,getRow(),"ObjectType");
|
||
var sObjectNo = getItemValue(0,getRow(),"SerialNo");
|
||
var sExchangeType = getItemValue(0,getRow(),"ExchangeType");
|
||
if (typeof(sObjectNo)=="undefined" || sObjectNo.length==0){
|
||
alert(getHtmlMessage('1'));//请选择一条信息!
|
||
return;
|
||
}
|
||
//检查出帐通知单是否已经生成
|
||
var sReturn = RunJavaMethodTrans("com.amarsoft.app.als.report.action.GetReportFile","getFileName","ObjectNo="+sObjectNo+"&ObjectType="+sObjectType);
|
||
if (sReturn == "false"){ //未生成出帐通知单
|
||
//生成出帐通知单
|
||
PopPage("/FormatDoc/PutOut/"+sExchangeType+".jsp?DocID="+sExchangeType+"&ObjectNo="+sObjectNo+"&ObjectType="+sObjectType+"&SerialNo="+sObjectNo+"&Method=4&FirstSection=1&EndSection=0&rand="+randomNumber(),"myprint10","dialogWidth=10;dialogHeight=1;status:no;center:yes;help:no;minimize:yes;maximize:no;border:thin;statusbar:no");
|
||
}
|
||
//获得加密后的出帐流水号
|
||
var sEncryptSerialNo = RunJavaMethodTrans("com.amarsoft.app.als.putout.model.EncryptSerialNoAction","getSerialNo","EncryptionType=MD5&SerialNo="+sObjectNo);
|
||
//通过 serverlet 打开页面
|
||
var CurOpenStyle = "width=720,height=540,top=20,left=20,toolbar=no,scrollbars=yes,resizable=yes,status=yes,menubar=no,";
|
||
//+"&ObjectNo="+sObjectNo+"&ObjectType="+sObjectType add by cdeng 2009-02-17
|
||
OpenPage("/FormatDoc/POPreviewFile.jsp?EncryptSerialNo="+sEncryptSerialNo+"&ObjectNo="+sObjectNo+"&ObjectType="+sObjectType,"_blank02",CurOpenStyle);
|
||
}
|
||
|
||
/*~[Describe=发送放款信息到核心;InputParam=无;OutPutParam=无;]~*/
|
||
function putOut(){
|
||
var sObjectNo = getItemValue(0,getRow(),"ObjectNo");
|
||
var sSerialno = getItemValue(0,getRow(),"SerialNo");
|
||
var sBusinessType = getItemValue(0,getRow(),"BusinessType");
|
||
var sOperateType = "10";
|
||
if (typeof(sObjectNo)=="undefined" || sObjectNo.length==0){
|
||
alert(getHtmlMessage('1'));//请选择一条信息!
|
||
return;
|
||
}
|
||
sReturn = RunJavaMethodTrans("com.amarsoft.app.als.putout.model.PutOutAction2","getValue","SerialNo="+sSerialno+",BusinessType="+sBusinessType+",OperateType="+sOperateType);
|
||
if(typeof(sReturn) != "undefined"){
|
||
sReturn=sReturn.split("@");
|
||
sStatus=sReturn[0];
|
||
sTradeNo=sReturn[1];
|
||
sMessage=sReturn[2];
|
||
if(sStatus == "0"){
|
||
sReturn = "操作成功!交易代码:"+sTradeNo;
|
||
}else{
|
||
sReturn = "核心提示:"+sTradeNo+"交易失败!失败信息:"+sMessage;
|
||
}
|
||
}
|
||
}
|
||
|
||
/*~[Describe=发送冲销信息到核心;InputParam=无;OutPutParam=无;]~*/
|
||
function putOff(){
|
||
var sObjectNo = getItemValue(0,getRow(),"ObjectNo");
|
||
var sSerialno = getItemValue(0,getRow(),"SerialNo");
|
||
var sBusinessType = getItemValue(0,getRow(),"BusinessType");
|
||
var sOperateType = "20";
|
||
if (typeof(sObjectNo)=="undefined" || sObjectNo.length==0){
|
||
alert(getHtmlMessage('1'));//请选择一条信息!
|
||
return;
|
||
}
|
||
sReturn = RunJavaMethodTrans("com.amarsoft.app.als.putout.model.PutOutAction2","getValue","SerialNo="+sSerialno+",BusinessType="+sBusinessType+",OperateType="+sOperateType);
|
||
if(typeof(sReturn) != "undefined"){
|
||
sReturn=sReturn.split("@");
|
||
sStatus=sReturn[0];
|
||
sTradeNo=sReturn[1];
|
||
sMessage=sReturn[2];
|
||
if(sStatus == "0"){
|
||
sReturn = "操作成功!交易代码:"+sTradeNo;
|
||
}else{
|
||
sReturn = "核心提示:"+sTradeNo+"交易失败!失败信息:"+sMessage;
|
||
}
|
||
alert(sReturn);
|
||
}
|
||
}
|
||
|
||
/*~[Describe=发送支付信息到核心;InputParam=无;OutPutParam=无;]~*/
|
||
function sendPayment(){
|
||
var sObjectNo = getItemValue(0,getRow(),"ObjectNo");
|
||
var sSerialno = getItemValue(0,getRow(),"SerialNo");
|
||
var sBusinessType = getItemValue(0,getRow(),"BusinessType");
|
||
var sOperateType = "30";
|
||
if (typeof(sObjectNo)=="undefined" || sObjectNo.length==0){
|
||
alert(getHtmlMessage('1'));//请选择一条信息!
|
||
return;
|
||
}
|
||
sReturn = RunJavaMethodTrans("com.amarsoft.app.als.putout.model.PutOutAction2","getValue","SerialNo="+sSerialno+",BusinessType="+sBusinessType+",OperateType="+sOperateType);
|
||
if(typeof(sReturn) != "undefined"){
|
||
sReturn=sReturn.split("@");
|
||
sStatus=sReturn[0];
|
||
sTradeNo=sReturn[1];
|
||
sMessage=sReturn[2];
|
||
if(sStatus == "0"){
|
||
sReturn = "操作成功!交易代码:"+sTradeNo;
|
||
}else{
|
||
sReturn = "核心提示:"+sTradeNo+"交易失败!失败信息:"+sMessage;
|
||
}
|
||
}
|
||
}
|
||
|
||
/*~[Describe=流程图形展示;InputParam=无;OutPutParam=无;]~*/
|
||
function imageScan(){
|
||
var objectNo = getItemValue(0,getRow(),"ObjectNo");
|
||
var objectType = getItemValue(0,getRow(),"ObjectType");
|
||
if (typeof(objectNo)=="undefined" || objectNo.length==0){
|
||
alert(getHtmlMessage('1'));//请选择一条信息!
|
||
return;
|
||
}else{
|
||
AsCredit.openImageScan(objectNo,objectType);
|
||
}
|
||
}
|
||
|
||
|
||
/*~[Describe=系统内贷款发放;InputParam=无;OutPutParam=无;]~*/
|
||
function accounting(){
|
||
var serialNo = getItemValue(0,getRow(),"SerialNo");
|
||
if (typeof(serialNo)=="undefined" || serialNo.length==0){
|
||
alert(getHtmlMessage('1'));//请选择一条信息!
|
||
return;
|
||
}
|
||
var s = RunJavaMethodTrans("com.amarsoft.acct.accounting.web.DrawDown","run","SerialNo="+serialNo+",UserID=<%=CurUser.getUserID()%>,OrgID=<%=CurUser.getOrgID()%>");
|
||
if(typeof(s) == "undefined" || s.length == 0) return;
|
||
|
||
if(s.split("@")[0] == "true")
|
||
{
|
||
alert(s.split("@")[1]);
|
||
reloadSelf();
|
||
}
|
||
else
|
||
{
|
||
alert(s.split("@")[1]);
|
||
}
|
||
}
|
||
</script>
|
||
<%/*~END~*/%>
|
||
|
||
|
||
|
||
|
||
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List07;Describe=页面装载时,进行初始化;]~*/%>
|
||
<script type="text/javascript">
|
||
|
||
|
||
|
||
</script>
|
||
<%/*~END~*/%>
|
||
|
||
|
||
<%@ include file="/Frame/resources/include/include_end.jspf"%> |