143 lines
4.0 KiB
Plaintext
143 lines
4.0 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%>
|
||
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%>
|
||
|
||
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Info00;Describe=注释区;]~*/%>
|
||
<%
|
||
/*
|
||
Author:wli5 2017-05-04
|
||
Tester:
|
||
Content: 撤销信息详情页面
|
||
Input Param:
|
||
Output param:
|
||
History Log:
|
||
|
||
*/
|
||
%>
|
||
<%/*~END~*/%>
|
||
|
||
|
||
|
||
|
||
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Info01;Describe=定义页面属性;]~*/%>
|
||
<%
|
||
String PG_TITLE = "撤销信息详情页面"; // 浏览器窗口标题 <title> PG_TITLE </title>
|
||
%>
|
||
<%/*~END~*/%>
|
||
|
||
|
||
|
||
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Info02;Describe=定义变量,获取参数;]~*/%>
|
||
<%
|
||
|
||
String sTempletNo = CurPage.getParameter("TempletNo");//模板号
|
||
String sFlowUnid = CurPage.getParameter("FlowUnid");//流程编号
|
||
String ishistory = CurPage.getParameter("ishistory");
|
||
String nodeNo=CurPage.getParameter("NodeNo");
|
||
String RightType = CurPage.getParameter("RightType");
|
||
|
||
if(sTempletNo == null) sTempletNo = "LBCancleInfoTemp_Car";
|
||
if(sFlowUnid == null) sFlowUnid = "";
|
||
%>
|
||
<%/*~END~*/%>
|
||
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Info03;Describe=定义数据对象;]~*/%>
|
||
<%
|
||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||
if(null!=ishistory&&ishistory.equals("true")){
|
||
doTemp.setDataQueryClass("com.tenwa.flow.flowHistory.FlowDataInfoHistory");//如果是历史则新显示历史数据
|
||
}
|
||
CurPage.getCurComp().setAttribute("RightType", null);
|
||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||
dwTemp.Style = "2";//freeform
|
||
if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.equals("true"))){
|
||
dwTemp.ReadOnly = "-2";//只读模式
|
||
isShowButton=false;
|
||
}else{
|
||
isShowButton=true;
|
||
}
|
||
dwTemp.genHTMLObjectWindow(sFlowUnid);
|
||
CurPage.getCurComp().setAttribute("RightType", RightType);
|
||
%>
|
||
<%/*~END~*/%>
|
||
|
||
|
||
|
||
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Info04;Describe=定义按钮;]~*/%>
|
||
<%
|
||
String sButtons[][] = {
|
||
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||
{"true","","Button","保存","保存所有修改","saveRecord()","","","",""}
|
||
};
|
||
sButtonPosition = "north";
|
||
%>
|
||
<%/*~END~*/%>
|
||
|
||
|
||
|
||
<%/*~BEGIN~不可编辑区~[Editable=false;CodeAreaID=Info05;Describe=主体页面;]~*/%>
|
||
<%@include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||
<%/*~END~*/%>
|
||
|
||
|
||
|
||
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=Info06;Describe=定义按钮事件-;]~*/%>
|
||
<script type="text/javascript">
|
||
|
||
var bIsInsert = false;
|
||
|
||
/*~[Describe=保存记录;InputParam=无;OutPutParam=无;]~*/
|
||
function saveRecord()
|
||
{
|
||
if(bIsInsert)
|
||
{
|
||
beforeInsert();
|
||
}
|
||
beforeUpdate();
|
||
as_save("myiframe0");
|
||
}
|
||
|
||
</script>
|
||
<%/*~END~*/%>
|
||
|
||
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=Info07;Describe=自定义函数;]~*/%>
|
||
<script type="text/javascript">
|
||
|
||
<%/*~[Describe=执行插入操作前执行的代码;]~*/%>
|
||
function beforeInsert()
|
||
{
|
||
setItemValue(0,0,"InputUserID","<%=CurUser.getUserID()%>");
|
||
setItemValue(0,0,"InputOrgID","<%=CurUser.getOrgID()%>");
|
||
setItemValue(0,0,"InputTime","<%=StringFunction.getTodayNow()%>");
|
||
bIsInsert = false;
|
||
}
|
||
|
||
|
||
<%/*~[Describe=执行更新操作前执行的代码;]~*/%>
|
||
function beforeUpdate()
|
||
{
|
||
setItemValue(0,0,"UpdateUserID","<%=CurUser.getUserID()%>");
|
||
setItemValue(0,0,"UpdateOrgID","<%=CurUser.getOrgID()%>");
|
||
setItemValue(0,0,"UpdateTime","<%=StringFunction.getTodayNow()%>");
|
||
}
|
||
</script>
|
||
<%/*~END~*/%>
|
||
|
||
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=Info08;Describe=页面装载时,进行初始化;]~*/%>
|
||
<script type="text/javascript">
|
||
|
||
/*~[Describe=页面初始化;InputParam=无;OutPutParam=无;]~*/
|
||
function initRow()
|
||
{
|
||
if (getRowCount(0) == 0) //如果没有找到对应记录,则新增一条,并设置字段默认值
|
||
{
|
||
setItemValue(0,0,"FlowUnid","<%=sFlowUnid%>");
|
||
setItemValue(0,0,"Cancle_Date","<%=StringFunction.getToday()%>");
|
||
var project_id=RunJavaMethodTrans("com.tenwa.comm.customerfilterlist.DebitCardAction", "getProjIdByFlowunid", "FlowUnid=<%=sFlowUnid%>");
|
||
setItemValue(0,0,"project_id",project_id);
|
||
bIsInsert = true;
|
||
}
|
||
}
|
||
initRow();
|
||
|
||
</script>
|
||
<%/*~END~*/%>
|
||
<%@ include file="/Frame/resources/include/include_end.jspf"%> |