📄 orglist.jsp
字号:
}
%>
</td>
<td align="center"><p id="sectionTD" style="display:none">组织类型</p></td>
<td >
<select name="SECTIONTYPE" id="sectionSel" class="slect1" style="display:none">
<option value="0">职能组织</option>
<option value="1">业务组织</option>
</select>
</td>
</tr>
<tr bgcolor="EEF4FF">
<td align="center" align="10%">是否机构</td>
<td id="orgprop">
<%
if(1 == OrgLevel.intValue())
{
%>
是<input type="hidden" name="OrgProp" value="H">
<%
}
if(2 == OrgLevel.intValue())
{
/**
* 父节点为审计,则子部门为非机构
*/
if( "1".equals(isAuditFlag) )
{
%>
否<input type="hidden" name="OrgProp" value="">
<%
}
else
{
%>
是<input type="hidden" name="OrgProp" value="H">
<%
}
}
if(3 == OrgLevel.intValue())
{
%>
否<input type="hidden" name="OrgProp" value="">
<%
}
%>
</td>
<td align="center" align="10%">是否股份</td>
<td id="isstate">
<%
if(1 == OrgLevel.intValue())
{
%>
<select name="ISSTATE" class="slect1">
<option value="0">非股份</option>
<option value="1">股份</option>
</select>
<%
}
else if(isState != null)
{
if(isState.equals("0"))
{
%>非股份
<%
}
else
{
%>股份
<%
}
%>
<input type="hidden" name="ISSTATE" value="<%=isState%>">
<%
}
%>
</td>
</tr>
<tr bgcolor="EEF4FF" id="depttypeTR" style="display:none">
<td align="middle" >机构类型</td>
<td colspan="3">
<select name="depttype" bgcolor="#EEF4FF">
<option value=""></option>
<option value="0">局级</option>
<option value="1">审计处(部)</option>
<option value="2">审计处下设科级机构</option>
<option value="3">审计中心(室)</option>
<option value="4">审计中心(室)下设科级机构</option>
<option value="5">二级单位审计科</option>
<option value="6">合署办公处级审计机构</option>
<option value="7">合署办公科级审计机构</option>
</select>
</td>
</tr>
<tr bgcolor="EEF4FF" id="noneAudit1">
<td align="center" align="10%">单位类别</td>
<td colspan="3">
<input type="text" name="ORGTYPE_NAME" readonly size="20" class="txt1">
<input type="hidden" name="ORGTYPE">
<img src="<%=root%>/images/fuction.gif" width="20" height="15" style="cursor:hand;" onClick="showDiv('dwlbdiv')">
<a onclick="_clean()" style="cursor:hand;">清空</a>
</td>
</tr>
<tr bgcolor="EEF4FF" id="noneAudit2">
<td align="center" align="20%">全民资产</td>
<td>
<input type="text" name="CIVIL" value="" value='<c:out value="${param.SequenceNO}"/>'
maxlength="10" size="15" class="txt1" onchange="_updateASSETS()"> (万元)
</td>
<td align="center" align="20%">多种经营资产</td>
<td>
<input type="text" name="MIXED" value="" maxlength="10" size="15" class="txt1" onchange="_updateASSETS()"> (万元)
</td>
</tr>
<tr bgcolor="EEF4FF" id="noneAudit3">
<td align="center" align="20%">单位资产</td>
<td colspan="3">
<input type="text" name="ASSETS" value="" maxlength="15" size="15" class="txt1" readonly onClick="_updateASSETS()"> (万元)
</td>
</tr>
<tr bgcolor="EEF4FF">
<td align="center">单位概况</td>
<td colspan="3">
<textarea name="ORGINFO" cols="60" rows="4"></textarea>
</td>
</tr>
<tr bgcolor="EEF4FF">
<td align="center">单位状态</td>
<td colspan="3">
<select name="ORGSTATE" class="slect1">
<option value="0">正常</option>
<option value="1">停用</option>
</select>
</td>
</tr>
</table>
</td>
</tr>
<tr <% if( 0 == OrgLevel.intValue() ) out.print("style='display:none' "); %>>
<td align="center">
<img src="/images/add.gif" border="0" style="cursor:hand;" onclick='javascript:_Add("<%=orgCnName%>","<%=orgCode%>")'>
<img src="/images/modify.gif" border="0" style="cursor:hand;" onClick='javascript:_Update()'>
<img src="/images/delete.gif" border="0" style="cursor:hand;" onclick='javascript:_Delete()'>
<img src="<%=request.getContextPath()%>/images/chzh.gif" border="0" style="cursor:hand;" onclick='_Reset()'>
</td>
</tr>
</table>
</form>
<div id=dwlbdiv style="position:absolute;display:none; left:250px; top:177px; width:180px; z-index:901; height: 150px;" onmouseover="this.style.display='block'" onMouseOut="this.style.display='none'">
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000">
<tr bgcolor="#EEFFF7">
<td height="150" valign="top">
<script>
var tree = new WebFXLoadTree("单位类别", "<%=request.getContextPath()%>/servlet/TcodeXmlTreeServlet?code=dwlb&codeField=ORGTYPE&nameField=ORGTYPE_NAME&divId=dwlbdiv&type=1");
document.write(tree);
</script>
</td>
</tr>
</table>
</div>
</body>
</html>
<script>
drag(dwlbdiv);
function checkCNPC()
{
var sForm = document.frm;
var code = sForm.CNPCNO.value;
if( code == "")
{
alert("请输入中石油编码");
sForm.CNPCNO.focus();
return;
}
var xmlHttp = new ActiveXObject("MSXML2.XmlHttp");
if(xmlHttp == null)
{
alert("无法创建Active对象");
return;
}
var url = "<%=request.getContextPath()%>/servlet/CheckCNPCCodeServlet?code=" + code;
xmlHttp.open("GET", url, false);
xmlHttp.send();
var res = xmlHttp.responseText;
if("true" == res)
{
alert("您输入的中石油编码已存在!");
}
else
{
alert("该编码可以使用");
}
delete(xmlHttp);
}
function _Reset()
{
var sForm = document.frm;
sForm.CunrentCnName.value = "";
sForm.CNPCNO.value = "";
//sForm.SerialIndex.value = "";
sForm.CunrentEnName.value = "";
sForm.SequenceNO.value = "";
sForm.CIVIL.value = "";
sForm.MIXED.value = "";
sForm.ASSETS.value = "";
sForm.ORGINFO.value = "";
sForm.ORGTYPE_NAME.value = "";
sForm.ORGTYPE.value = "";
var SECTIONTYPE = document.SECTIONTYPE;
var depttypeRT = document.getElementById("depttypeTR");
var noneAudit = document.getElementById("noneAudit");
<%
if( "1".equals(isAuditFlag))
{
%>
depttypeRT.style.display = "";
sForm.depttype.options[0].selected = true;
noneAudit.style.display = "none";
<%
if (3 == OrgLevel.intValue() || 2 == OrgLevel.intValue())
{
%>
if(SECTIONTYPE)
SECTIONTYPE.style.display = "";
<%
}
}
else
{
%>
depttypeRT.style.display = "none";
noneAudit.style.display = "";
<%
}
%>
var isaudit = document.getElementById("isaudit");
var isstate = document.getElementById("isstate");
var orgprop = document.getElementById("orgprop");
var isauditStr = "<select name=\"ISAUDIT\" class=\"slect1\" onchange=\"alterSection()\">"
+ "<option value=\"0\">被审计</option><option value=\"1\">审计</option> "
+ "</select>";
var isstateStr = "<select name=\"ISSTATE\" class=\"slect1\">"
+ "<option value=\"0\">非股份</option><option value=\"1\">股份</option>"
+ "</select>";
<%
if(1 == OrgLevel.intValue())
{
%>
orgprop.innerHTML = "是<input type=\"hidden\" name=\"OrgProp\" value=\"H\">";
<%
}
if(2 == OrgLevel.intValue())
{
/**
* 父节点为审计,则子部门为非机构
*/
if( "1".equals(isAuditFlag) )
{
%>
orgprop.innerHTML = "否<input type=\"hidden\" name=\"OrgProp\" value=\"\">";
<%
}
else
{
%>
orgprop.innerHTML = "是<input type=\"hidden\" name=\"OrgProp\" value=\"H\">";
<%
}
}
if(3 == OrgLevel.intValue())
{
%>
orgprop.innerHTML = "否<input type=\"hidden\" name=\"OrgProp\" value=\"\">";
<%
}
if( "1".equals(isAuditFlag) )
{
%>
isaudit.innerHTML = "审计<input type=\"hidden\" name=\"ISAUDIT\" value=\"1\">";
<%
}
else
{
%>
isaudit.innerHTML = isauditStr;
<%
}
%>
<%
if(1 == OrgLevel.intValue())
{
%>
if(isstate)
isstate.innerHTML = isstateStr;
<%
}
else if(isState != null)
{
if(isState.equals("0"))
{
%>
if(isstate)
isstate.innerHTML = "非股份<input type=\"hidden\" name=\"ISSTATE\" value=\"0\" >";
<%
}
else
{
%>
if(isstate)
isstate.innerHTML = "股份<input type=\"hidden\" name=\"ISSTATE\" value=\"1\">";
<%
}
}
%>
}
<%
String needRefresh = request.getParameter("needRefresh");
if( "true".equals(needRefresh) )
{
%>
refreshtree();
<%
}
%>
function initSection()
{
var sectionTD = document.getElementById("sectionTD");
var sectionSel = document.getElementById("sectionSel");
if(sectionTD)
sectionTD.style.display = "";
if(sectionSel)
sectionSel.style.display = "";
}
<%
if( "1".equals(isAuditFlag) && (3 == OrgLevel.intValue() || 2 == OrgLevel.intValue()) )
{
%>
initSection();
<%
}
else
{
%>
document.all.SECTIONTYPE.value = "1";
<%
}
%>
<%
if("1".equals(isAuditFlag))
{
%>
var dtTR = document.getElementById("depttypeTR");
dtTR.style.display = "";
hideNoneAudit();
//noneAudit_.style.display = "none";
<%
}
%>
function hideNoneAudit()
{
var na1 = document.getElementById("noneAudit1");
var na2 = document.getElementById("noneAudit2");
var na3 = document.getElementById("noneAudit3");
na1.style.display = "none";
na2.style.display = "none";
na3.style.display = "none";
}
function showNoneAudit()
{
var na1 = document.getElementById("noneAudit1");
var na2 = document.getElementById("noneAudit2");
var na3 = document.getElementById("noneAudit3");
na1.style.display = "";
na2.style.display = "";
na3.style.display = "";
}
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -