📄 adjustplan_modify.jsp
字号:
</td>
</tr>
</table>
</div>
<input type="hidden" name="type" value="">
<input type="hidden" name="counter" value=0>
<input type="hidden" name="OPERATION">
</form>
</div>
<script>
function selectAuditingUnit(deptUuid) {
wx=400;
wy=300;
urlstr="<%=request.getContextPath()%>/servlet/SelectOrgTreeServlet?type=1&rootUuid=" + deptUuid;
x=(window.screen.width-wx)/2;
y=(window.screen.height-wy)/2;
wposition=",left="+x+",top="+y;
window.open(urlstr,"选择单位","width="+wx+",height="+wy+",scrollbars=yes,status=yes"+wposition);
}
function _delAuditedUnit(orguuid) {
if(!confirm("确定要删除吗?"))
return;
var orgUuid = document.form1.auditedOrgUuid;
var length = 1;
if (orgUuid.length != "undefined") {
length = orgUuid.length;
} else {
auditedOrgs.innerHTML="";
return;
}
var result = "";
for (var ii = 0; ii < length; ii++) {
if (Trim(orgUuid[ii].value)==Trim(orguuid))
continue;
result += "<span id=auditedOrgSpan_" + orgUuid[ii].value + ">"
var k = "auditedOrgSpan_" + orgUuid[ii].value;
result += document.getElementById(k).innerHTML;
result += "</span>";
result += " ";
}
auditedOrgs.innerHTML = result;
}
function selectUnit()
{
wx=400;
wy=300;
urlstr="<%=request.getContextPath()%>/servlet/AuditedOrgListServlet";
x=(window.screen.width-wx)/2;
y=(window.screen.height-wy)/2;
wposition=",left="+x+",top="+y;
window.open(urlstr,"选择单位","width="+wx+",height="+wy+",scrollbars=yes,status=yes"+wposition);
}
function selectUnit1()
{
wx=500;
wy=400;
urlstr="unitframe1.html";
x=(window.screen.width-wx)/2;
y=(window.screen.height-wy)/2;
wposition=",left="+x+",top="+y;
window.open(urlstr,"选择单位","width="+wx+",height="+wy+",scrollbars=yes,status=no"+wposition);
}
function hidejhlbtype()
{
// document.getElementById("jhlbdiv").style.display="block";
}
function selectxmlbtype()
{
var x = event.clientX;
var y = event.clientY;
document.all.xmlbdiv.style.posLeft=x;
document.all.xmlbdiv.style.posTop=y;
document.all.xmlbdiv.style.visibility="visible";
document.getElementById("xmlbdiv").style.display="block";
}
function selecttype()
{
var x = event.clientX;
var y = event.clientY;
//alert('x-'+x+',y-'+y);
document.all.jhlbdiv.style.posLeft=x-180;
document.all.jhlbdiv.style.posTop=y;
//document.all.adminMenuDiv.style.position="absolute; left:"+x+";top:"+y+";width:110;visibility:hidden;z-index:901";
document.all.jhlbdiv.style.visibility="visible";
document.getElementById("jhlbdiv").style.display="block";
}
function popUpCalendarDlg(ctrlobj) {
showx = event.screenX - event.offsetX - 4 - 210 ; // + deltaX;
showy = event.screenY - event.offsetY + 18; // + deltaY;
newWINwidth = 210 + 4 + 18;
retval = window.showModalDialog("<%=request.getContextPath()%>/include/date.htm", "", "dialogWidth:220px; dialogHeight:220px; dialogLeft:"+showx+"px; dialogTop:"+showy+"px; status:no; directories:yes;scroll:no;Resizable:no; " );
if( retval != null ){
ctrlobj.value = retval;
}
}
function fanhui()
{
if (confirm("您确定要返回吗?"))
window.location = "<%=request.getContextPath()%>/servlet/AdjustPlan_SearchServlet";
}
function testWordVersion(){
if (window.top.wordVersion) return;
var wdApp;
try{
wdApp = new ActiveXObject("Word.Application");
window.top.wordVersion=wdApp.Version;
}catch(e){
window.top.wordVersion = "0";
}finally{
if(wdApp){
wdApp.Quit(0);
}
}
}
function funFlowModifyFile(uuid)
{
if(window.top.wordVersion.indexOf("9.0") == 0){
flowModifyFile(WebWord,uuid);
}else if(window.top.wordVersion.indexOf("8.0") == 0){
flowModifyFile(WebWord97,uuid);
}else{
flowModifyFile(WebWord,uuid);
}
}
function flowModifyFile(object,uuid)
{
object.SetData("","||");
object.IsFullURL="1";
object.Upload="1";
object.Download="1";
object.HttpDownloadURL="<%=request.getServerName()%>:<%=request.getServerPort()%><%=request.getContextPath()%>/servlet/ExportDocServlet?materialMod=2"+"&materialID="+uuid;
object.HttpUploadURL="<%=request.getServerName()%>:<%=request.getServerPort()%><%=request.getContextPath()%>/servlet/ExportDocServlet?materialMod=2"+"&materialID="+uuid;
object.createFile();
return true;
}
function subString(str, begin, end) {
var r = "";
for (var i=begin; i < end; i++) {
r += str.charAt(i);
}
return r;
}
function selectPrjLevel() {
var x = event.clientX;
var y = event.clientY;
document.all.xmjbdiv.style.posLeft=x;
document.all.xmjbdiv.style.posTop=y;
document.all.xmjbdiv.style.visibility="visible";
document.getElementById("xmjbdiv").style.display="block";
}
function _checkAll() {
var planForm = document.form1;
if(Is_Null(planForm.planName, 1, "请先填写计划名称")) {
return false;
}
if (planForm.puuid_jhfz == undefined) {
alert("请先选择计划负责人");
return false;
}
if (planForm.puuid_jhsh == undefined || jhsh.innerHTML == "") {
alert("请先选择计划审核人");
return false;
}
if (planForm.puuid_jhsp == undefined || jhsp.innerHTML == "") {
alert("请先选择计划审批人");
return false;
}
if (auditedOrgs.innerHTML == "") {
alert("请选择被审计单位");
return false;
}
if (Is_Null(planForm.jhlb, 1, "请选择计划类别")) {
return false;
}
if (Is_Null(planForm.xmlb, 1, "请选择项目类别")) {
return false;
}
if (Is_Null(planForm.xmjb, 1, "请选择项目级别")) {
return false;
}
if (Is_Null(planForm.begintime, 1, "请选择开始时间")) {
return false;
}
if (Is_Null(planForm.endtime, 1, "请选择结束时间")) {
return false;
}
if (planForm.planCost.value != "" && !isNumber(planForm.planCost.value)) {
alert("请填入合适的计划审计费用");
planForm.planCost.focus();
return false;
}
if (planForm.planDays.value != "" && !isInteger(planForm.planDays.value)) {
alert("请填入一个整数审计工作日");
planForm.planDays.focus();
return false;
}
if ( Compare_Date(planForm.begintime.value,planForm.endtime.value) ) {
alert("开始时间要小于结束时间");
return false;
}
return true;
}
function _AddPerson(persontype)
{
wx=500;
wy=400;
actor="jhfz|sjzz|sjzs|xmzy";
url = "<%=request.getContextPath()%>/servlet/GetPersonAtOrgIDServlet?person_type="+persontype+"&actor="+actor;
x=(window.screen.width-wx)/2;
y=(window.screen.height-wy)/2;
wposition=",left="+x+",top="+y;
window.open(url,"选人","width="+wx+",height="+wy+",scrollbars=yes,status=yes"+wposition);
}
function _delPersons(puuid, _type) {
if(!confirm("确定删除吗?"))
return;
if (_type != "xmzy") {
eval(_type).innerHTML = "";
return;
}
var m = document.form1.puuid_xmzy;
if (m.length == undefined) {
xmzy.innerHTML = "";
} else {
var _text = "";
for (var i = 0; i < m.length; i++) {
if (Trim(m[i].value) == Trim(puuid)) {
continue;
}
_text += "<span id=personSpan_" + m[i].value + ">";
var k = "personSpan_" + m[i].value;
_text += document.getElementById(k).innerHTML;
_text += "</span>";
_text += " ";
}
xmzy.innerHTML = _text;
}
}
function _submitChanges() {
if (!_checkAll())
return false;
if (confirm("您确认要提交吗?")) {
document.form1.OPERATION.value="ADJUST";
document.form1.action = "<%=request.getContextPath()%>/servlet/AdjustPlan_SubmitServlet";
document.form1.submit();
} else {
return false;
}
}
function isNumber(str) {
for (var i = 0; i < str.length; i++) {
if ((str.charCodeAt(i)< 48 || str.charCodeAt(i) > 57 ) && str.charCodeAt(i) != 46)
return false;
}
return true;
}
function isInteger(str) {
for (var i = 0; i <str.length; i++) {
if (str.charCodeAt(i)<48 || str.charCodeAt(i) >57) {
return false;
}
}
return true;
}
</script>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -