84 lines
2.8 KiB
Plaintext
84 lines
2.8 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%>
|
|
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
|
|
/*
|
|
Author: undefined 2019-11-04
|
|
Content: 示例详情页面
|
|
History Log:
|
|
*/
|
|
String sTempletNo = "WechatAdvanceSettle";//--模板号--
|
|
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
|
dwTemp.Style = "2";//freeform
|
|
//dwTemp.ReadOnly = "-2";//只读模式
|
|
dwTemp.genHTMLObjectWindow(CurPage.getParameter("AdvanceSettleId"));
|
|
|
|
String sButtons[][] = {
|
|
{"true","All","Button","保存","保存所有修改","as_save(0)","","","",""},
|
|
{"true","","Button","通过","通过","saveRecord()","","","","btn_icon_submit"},
|
|
{"true","All","Button","否决","否决","returnList()","","","","btn_icon_close"},
|
|
|
|
};
|
|
sButtonPosition = "north";
|
|
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
|
<script type="text/javascript">
|
|
function returnList(){
|
|
var id = getItemValue(0,getRow(),"ID");
|
|
var sReturnInfo = RunJavaMethodTrans("com.tenwa.app.wechat.WechatCustomerInfoChange","isSubmit","id="+id+",type=advance");
|
|
if("success" != sReturnInfo ){
|
|
alert(sReturnInfo);
|
|
return ;
|
|
}
|
|
var opinions = getItemValue(0,getRow(),"opinions");
|
|
if(opinions.length<=0){
|
|
alert("请先填写申请意见!!!");
|
|
return;
|
|
};
|
|
var isopinions = RunJavaMethodTrans("com.tenwa.app.wechat.WechatCustomerInfoChange","isopinions","id="+id+",type=advance");
|
|
if("success"!=isopinions){
|
|
alert(isopinions);
|
|
return;
|
|
};
|
|
if(confirm('确实要否决吗?')){
|
|
var vetoSubmitMessage = RunJavaMethodTrans("com.tenwa.app.wechat.WechatCustomerInfoChange","vetoSubmit","id="+id+",type=advance");
|
|
if("success" != vetoSubmitMessage ){
|
|
alert(vetoSubmitMessage);
|
|
return ;
|
|
}
|
|
alert("已否决!");
|
|
$(parent.document).find("div.tab_close")[0].click();
|
|
}
|
|
}
|
|
|
|
function saveRecord(){
|
|
var id = getItemValue(0,getRow(),"ID");
|
|
var opinions = getItemValue(0,getRow(),"opinions");
|
|
if(opinions.length<=0){
|
|
alert("请先填写申请意见!!!");
|
|
return;
|
|
};
|
|
var isopinions = RunJavaMethodTrans("com.tenwa.app.wechat.WechatCustomerInfoChange","isopinions","id="+id+",type=advance");
|
|
if("success"!=isopinions){
|
|
alert(isopinions);
|
|
return;
|
|
};
|
|
|
|
//校验数据是否已处理
|
|
var isprocessed = RunJavaMethodTrans("com.tenwa.app.wechat.WechatCustomerInfoChange","isSettle","id="+id);
|
|
if("success"!=isprocessed){
|
|
alert(isprocessed);
|
|
return;
|
|
}
|
|
if(confirm('您确认同意吗?')){
|
|
var sReturnInfo = RunJavaMethodTrans("com.tenwa.app.wechat.WechatCustomerInfoChange","SettleSubmit","id="+id);
|
|
if("success"==sReturnInfo){
|
|
alert("处理成功!");
|
|
$(parent.document).find("div.tab_close")[0].click();
|
|
return;
|
|
}
|
|
alert("变更失败,请联系管理员!");
|
|
}
|
|
|
|
|
|
}
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%> |