RebuildData4Wf2ModeIframe.jsp 4.38 KB
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ include file="/formmode/checkright4setting.jsp" %>
<%@ include file="/systeminfo/init_wev8.jsp" %>
<%@ taglib uri="/browserTag" prefix="brow"%>
<%
int modeId = Util.getIntValue(request.getParameter("modeId"),0);
RecordSet rs = new RecordSet();
String wrokflowids = "";
rs.executeQuery(" select workflowid from mode_workflowtomodeset where modeid = ? and isenable = '1' ", modeId);
while(rs.next()) {
	wrokflowids +=","+Util.getIntValue(rs.getString("workflowid"));
}
wrokflowids=wrokflowids.substring(1);

String requestBrowserUrl = "/systeminfo/BrowserMain.jsp?url=/formmode/interfaces/rebuilddata/RequestBrowser.jsp?wfids="+wrokflowids;
 %>
<html>
<head>
<LINK href="/css/Weaver_wev8.css" type=text/css rel=STYLESHEET>
<link href="/formmode/css/formmode_wev8.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/js/weaver_wev8.js"></script>
</head>
<%@ include file="/systeminfo/RightClickMenuConent_wev8.jsp" %>
<%
RCMenu += "{"+SystemEnv.getHtmlLabelName(86,user.getLanguage())+",javaScript:doSubmit(),_self} " ;
RCMenuHeight += RCMenuHeightStep ;
RCMenu += "{"+SystemEnv.getHtmlLabelName(1290,user.getLanguage())+",javaScript:doBack(),_self} " ;//返回
RCMenuHeight += RCMenuHeightStep ;
%>
<%@ include file="/systeminfo/RightClickMenu_wev8.jsp" %>
<body>
<div id="loading" style="display: none;">
	<span><img src="/images/loading2.gif" align="absmiddle"></span>
	<!-- 正在处理数据... -->
	<span  id="loading-msg">正在处理数据...</span>
</div>
<form id="WeaverForm" name="WeaverForm" action="/formmode/interfaces/rebuilddata/RebuildData4Wf2ModeOperation.jsp" method="post">
<input type="hidden" name="modeid" id="modeid" value="<%=modeId %>" />
<input type="hidden" name="action" id="action" value="dealselect" />
<table class="e8_tblForm" style="width:96%; margin-left: 2%;margin-right: 2%;">
<tr>
	<td class="e8_tblForm_label" width="20%">
		<%=SystemEnv.getHtmlLabelName(195,user.getLanguage())%><!-- 名称 -->
	</td>
	<td class="e8_tblForm_field">
		
	</td>
</tr>
<tr>
	<td class="e8_tblForm_label" width="20%">
		数据生成设置<!-- 数据生成设置 -->
	</td>
	<td class="e8_tblForm_field">
		<select id="dataset" name="dataset" onchange="changeDataSet()" style="width:150px;">
			<option value="1" >选择部分流程</option><!-- 选择部分流程 -->
			<option value="0" >处理所有流程</option><!-- 处理所有流程 -->
			
		</select>
	</td>
</tr>
<tr id="showtips">
	<td class="e8_tblForm_label" width="20%">
		注意事项
	</td>
	<td class="e8_tblForm_field">
		该操作会删掉该模块所有数据,并按照配置的流程转数据重新生成数据。<br>
		1.该功能生产的数据与流程的当前表单数据一致。<br>
		2.如果建模数据已经发生改变或存在新建的数据,请不要使用该功能。
	</td>
</tr>
<tr class="showselectwf" style="display: none;">
	<td class="e8_tblForm_label" width="20%">
		请选择流程
	</td>
	<td class="e8_tblForm_field">
		<brow:browser viewType="0" id="requestids" name="requestids" browserValue='' 
  		 	browserUrl="<%=requestBrowserUrl %>" tempTitle="请选择流程"
			hasInput="false" isSingle="false" hasBrowser = "true" isMustInput="1"
			completeUrl="/data.jsp" linkUrl=""  width="228px"
			browserDialogWidth="510px"
			browserSpanValue=''
			_callback="">
		</brow:browser>
	</td>
</tr>
<tr class="showselectwf" style="display: none;">
	<td class="e8_tblForm_label" width="20%">
		注意事项
	</td>
	<td class="e8_tblForm_field">
		该操作会根据流程转数据规则生成选中流程对应的数据。
	</td>
</tr>
</table>
</form>
<script type="text/javascript">
jQuery(function(){
changeDataSet();
});
function changeDataSet() {
	var dataset = jQuery("#dataset").val();
	if("0"==dataset) {
		jQuery(".showselectwf").hide();
		jQuery("#showtips").show();
		jQuery("#action").val("dealall");
	}else if("1"==dataset) {
		jQuery("#showtips").hide();
		jQuery(".showselectwf").show();
		jQuery("#action").val("dealselect");
	}
}

function doSubmit(){
	var dataset = jQuery("#dataset").val();
	if("1"==dataset) {
		var requestids = jQuery("#requestids").val();
		if(requestids=="") {
			top.Dialog.alert("请选择流程!");
			return;
		}
	}
    enableAllmenu();
    jQuery("#loading").show();
    document.WeaverForm.action="/formmode/interfaces/rebuilddata/RebuildData4Wf2ModeOperation.jsp";			
    document.WeaverForm.submit();		
}
</script>
</body>
</html>