<script type="text/javascript" src="/ajax/LeadingMIS.CommonFTPLoad.FtpHandlerAjax,LeadingMIS.CommonFTPLoad.ashx"> </script> <script language="javascript" type="text/javascript" src="/CommonModel/CommonFTPLoad/js/LZFTPUpload.js"> </script> <OBJECT ID="LZFTPUpload" CLASSID="CLSID:5963B49F-D05D-48C5-9D24-F6C09028109A" CODEBASE="/Utility/CAB/LzCoFTP.CAB#version=1,0,0,0" style="height:0px;width:0px;display:none;" VIEWASTEXT> </OBJECT> <script type="text/javascript"> window.onload = function() { // checkgb(); }
function checkgbArea() { var c = window.CTLB.getValue() || ""; var E = $("YDMJ"); var F = $("DSJZ"); var G = $("DXMJ"); if (c == '1' || c == '2') { F.style.visibility = "hidden"; G.style.visibility = "hidden"; E.style.visibility = "visible";
} else if (c == '3' || c == '4') { E.style.visibility = "hidden"; F.style.visibility = "visible"; G.style.visibility = "visible"; $("YDMJ").value = ''; } else { E.style.visibility = "hidden"; F.style.visibility = "hidden"; G.style.visibility = "hidden"; $("YDMJ").value = ''; $("DSJZ").value = ''; $("DXMJ").value = ''; } return true; }
function scavenge() { var c = window.CTLB.getValue() || ""; if (c == '1' || c == '2') { $("DSJZ").value = ''; $("DXMJ").value = ''; } else if (c == '3' || c == '4') { $("YDMJ").value = ''; } else { $("YDMJ").value = ''; $("DSJZ").value = ''; $("DXMJ").value = ''; } return true; }
function checkgb() { var a = window.CTTYPE.getValue() || ""; var b1 = $("Button1"); var b2 = $("Button2"); if (a == 'CC1601201044090001' || a == 'CC1601201044470001' || a == 'CC1601201045060001' || a == 'CC1601201045470001') { b1.style.visibility = "visible"; b2.style.visibility = "hidden"; $("HPGBG").value = ''; }
else if (a == 'CC1601201045220001') { b2.style.visibility = "visible"; b1.style.visibility = "hidden"; $("BGD").value = ''; }
else { b1.style.visibility = "hidden"; b2.style.visibility = "hidden"; $("BGD").value = ''; $("HPGBG").value = ''; } return true; }
function showVary()
{ var strUrl = "/CommonModel/CommonQuery/WebUI/QueryList.aspx?QueryCode=BGY_PM_DV_Select&ShowModeCode=default"; var strReturn = Common.showDialog(strUrl, "变更单列表", "720", "260", false, null); if (strReturn != undefined) { var tempArray = strReturn.split('|'); $("BGD").value = tempArray[1]; } return true; }
function ShowPdf() { var obj = event.srcElement; var tr = jQuery(obj).parents("tr[lzrowtype='循环区']:first"); //var FtpPath = tr.find("[ShowName='FtpPath']")[0].value; var downFileName = tr.find("[ShowName='pdfPath']")[0].value; var objDownload = new LZFTPUpload("LZFTPUpload");
var lPath = "C:\\windows\\temp"; objDownload.AddDownloadFile(lPath + downFileName, downFileName); //获取存储在服务器端的文件名称和路径
var reValue = objDownload.FetchFile("", 3); //"1"代表有过程的下载,"3"代表下载完成以后,用默认的工具打卡
}
function saveChecked() { var a = window.CTTYPE.getValue() || ""; if (a == 'CC1601201044090001' || a == 'CC1601201044470001' || a == 'CC1601201045060001' || a == 'CC1601201045470001') { var b = $("BGD").value; if (b == "") { alert("变更单不能为空!"); return false; } else { return true; } } else if (a == 'CC1601201045220001') { var b = $("HPGBG").value; if (b == "") { alert("后评估报告不能为空!"); return false; } else { return true; } } else { return true; } } </script>
JS 格式也找啦 没有错误 开始报堆栈溢出 后来报脚本错误
我曹~ 你这提问题,都不用代码编辑器么?这怎么看啊.....
1 你的代码能不能放在代码框里面
2 报错堆栈是什么,得贴一下额...