ZysqbpPrintSignature.jsp 56 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375
  1. <%@ page contentType="text/html; charset=gb2312"%>
  2. <%-- <%@page contentType="application/msword;charset=GBK" %> --%>
  3. <%-- <%@page contentType="application/msword;charset=GBK" %> --%>
  4. <%-- <%response.setHeader("Content-disposition","attachment; filename=exdata.doc");%> --%>
  5. <%@ page import="java.io.*"%>
  6. <%@ page import="java.text.*"%>
  7. <%@ page import="java.util.*"%>
  8. <%@ page import="java.lang.*"%>
  9. <%@ page import="java.sql.*"%>
  10. <%@ page import="java.net.*"%>
  11. <%@ page import="DBstep.*"%>
  12. <%@page import="oracle.jdbc.driver.OracleResultSet"%>
  13. <%@page import="oracle.sql.BLOB"%>
  14. <%!String BH;//=编号;
  15. String ZYDW;//=作业单位;
  16. String ZYWTR;//作业委托人
  17. String CM;//=船名;
  18. String XCGLFZR;//=现场管理负责人;
  19. String WXHWMCBH;//=危险品名称;
  20. String WPBH;//=物品编号;
  21. String JSPM;//=技术品名;
  22. String BZ;//=包装;
  23. String WXPLB;//=类别和项别;
  24. String BYZD4;//=包装类别;
  25. String INOROUT;//=进出港;
  26. String ZYSL;//=作业数量(吨);
  27. String SG;//=上港;
  28. String XG;//=下港;
  29. String MAO;//=内外贸;
  30. String HZWXX;//=火灾危险性;
  31. String DXDJ;//=毒性等级;
  32. String WRLB;//=污染类别;
  33. String JZXSL;//=集装箱数量;
  34. String HC;//=航次;
  35. String HWZL;//=货物种类;
  36. String HWXS;//=货物形式;
  37. String LHXZ;//=理化性质;
  38. String ZYDD;//=作业地点;
  39. String ZYSJQ;//=作业时间起;
  40. String ZYSJZ;//=作业时间止;
  41. String AQFFCS;//=安全防范措施;
  42. String BGR;//=报告人;
  43. String LXFS;//=联系方式;
  44. String BGSJ;//=报告时间;
  45. String BYZD2;//=申报员证书编号;
  46. String SHYJ;//=审核意见;
  47. String SHR;//=审核人;
  48. String SHSJ;//=审核时间
  49. String DocumentID; //文档编号
  50. String mServerUrl;%>
  51. <%
  52. DocumentID = request.getParameter("documentID");
  53. mServerUrl = "http://" + request.getServerName() + ":"
  54. + request.getServerPort() + request.getContextPath()
  55. + "/Service.jsp";
  56. try {
  57. String targetUrl = "http://" + request.getServerName() + ":"
  58. + request.getServerPort() + request.getContextPath()
  59. + "/GetmSignatureData.do" + "?documentID=" + DocumentID;
  60. URL url = new URL(targetUrl);
  61. HttpURLConnection connection = (HttpURLConnection) url
  62. .openConnection();// 此时cnnection只是为一个连接对象,待连接中
  63. connection.setRequestMethod("GET");
  64. connection.connect();
  65. //System.out.println(connection.getResponseCode());
  66. BufferedReader bf = new BufferedReader(new InputStreamReader(
  67. connection.getInputStream(), "gb2312"));
  68. String line;
  69. StringBuilder sb = new StringBuilder(); // 用来存储响应数据
  70. // 循环读取流,若不到结尾处
  71. while ((line = bf.readLine()) != null) {
  72. sb.append(line);
  73. }
  74. bf.close(); // 重要且易忽略步骤 (关闭流,切记!)
  75. connection.disconnect(); // 销毁连接
  76. String result = "";
  77. try {
  78. result = java.net.URLDecoder
  79. .decode(sb.toString(), "gb2312");
  80. } catch (UnsupportedEncodingException e) {
  81. // TODO Auto-generated catch block
  82. e.printStackTrace();
  83. }
  84. String[] arrResult = result.split("\r\n");
  85. Map<String, String> map = new HashMap<String, String>();
  86. for (String tmp : arrResult) {
  87. String[] arrTmp = tmp.split("=");
  88. try {
  89. map.put(arrTmp[0].trim(), arrTmp[1]);
  90. } catch (Exception e) {
  91. map.put(arrTmp[0], "");
  92. }
  93. }
  94. BH = map.get("BH").trim();//=编号;
  95. ZYDW = map.get("ZYDW").trim();//=作业单位;
  96. ZYWTR = map.get("ZYWTR").trim();//作业委托人
  97. CM = map.get("CM").trim();//=船名;
  98. XCGLFZR = map.get("XCGLFZR").trim();//=现场管理负责人;
  99. WXHWMCBH = map.get("WXHWMCBH").trim();//=危险品名称;
  100. WPBH = map.get("WPBH").trim();//=物品编号;
  101. JSPM = map.get("JSPM");//=技术品名;
  102. BZ = map.get("BZ").trim();//=包装;
  103. WXPLB = map.get("WXPLB").trim();//=类别和项别;
  104. BYZD4 = map.get("BYZD4");//=包装类别;
  105. INOROUT = map.get("INOROUT").trim();//=进出港;
  106. ZYSL = map.get("ZYSL").trim();//=作业数量(吨);
  107. SG = map.get("SG").trim();//=上港;
  108. XG = map.get("XG").trim();//=下港;
  109. MAO = map.get("MAO").trim();//=内外贸;
  110. HZWXX = map.get("HZWXX").trim();//=火灾危险性;
  111. DXDJ = map.get("DXDJ").trim();//=毒性等级;
  112. WRLB = map.get("WRLB").trim();//=污染类别;
  113. JZXSL = map.get("JZXSL").trim();//=集装箱数量;
  114. HC = map.get("HC").trim();//=航次;
  115. HWZL = map.get("HWZL").trim();//=货物种类;
  116. HWXS = map.get("HWXS").trim();//=货物形式;
  117. LHXZ = map.get("LHXZ").trim();//=理化性质;
  118. ZYDD = map.get("ZYDD").trim();//=作业地点;
  119. ZYSJQ = map.get("ZYSJQ").trim();//=作业时间起;
  120. ZYSJZ = map.get("ZYSJZ").trim();//=作业时间止;
  121. AQFFCS = map.get("AQFFCS").trim();//=安全防范措施;
  122. BGR = map.get("BGR").trim();//=报告人;
  123. LXFS = map.get("LXFS").trim();//=联系方式;
  124. BGSJ = map.get("BGSJ").trim();//=报告时间;
  125. BYZD2 = map.get("BYZD2").trim();//=申报员证书编号;
  126. SHYJ = map.get("SHYJ").trim();//=审核意见;
  127. SHR = map.get("SHR").trim();//=审核人;
  128. SHSJ = map.get("SHSJ").trim();
  129. } catch (Exception e) {
  130. e.printStackTrace();
  131. }
  132. //--------------------------------------load world ----------------------------
  133. ResultSet result2 = null;
  134. String mSubject = null;
  135. String mStatus = null;
  136. String mAuthor = null;
  137. String mFileName = null;
  138. String mFileDate = null;
  139. String mHTMLPath = "";
  140. String mDisabled = "";
  141. String mDisabledSave = "";
  142. String mWord = "";
  143. String mExcel = "";
  144. //自动获取OfficeServer和OCX文件完整URL路径
  145. String mHttpUrlName = request.getRequestURI();
  146. String mScriptName = request.getServletPath();
  147. String mServerName = "OfficeServer.jsp";
  148. String mServerUrl2 = "http://"
  149. + request.getServerName()
  150. + ":"
  151. + request.getServerPort()
  152. + mHttpUrlName.substring(0,
  153. mHttpUrlName.lastIndexOf(mScriptName)) + "/"
  154. + mServerName;//取得OfficeServer文件的完整URL
  155. String mHttpUrl = "http://"
  156. + request.getServerName()
  157. + ":"
  158. + request.getServerPort()
  159. + mHttpUrlName.substring(0,
  160. mHttpUrlName.lastIndexOf(mScriptName)) + "/";
  161. String mRecordID = request.getParameter("RecordID");
  162. String mTemplate = request.getParameter("Template");
  163. String mFileType = request.getParameter("FileType");
  164. String mEditType = request.getParameter("EditType");
  165. String mShowType = request.getParameter("ShowType");
  166. String mUserName = new String(request.getParameter("UserName")
  167. .getBytes("8859_1"));
  168. //设置编号初始值
  169. if (mRecordID == null) {
  170. mRecordID = "";
  171. }
  172. //设置编辑状态初始值
  173. if (mEditType == null || mEditType == "") {
  174. mEditType = "1,1";
  175. }
  176. //设置显示模式初始值
  177. if (mShowType == null || mShowType == "") {
  178. mShowType = "1";
  179. }
  180. //设置文档类型初始值
  181. if (mFileType == null || mFileType == "") {
  182. mFileType = ".doc";
  183. }
  184. //设置用户名初始值
  185. if (mUserName == null || mUserName == "") {
  186. mUserName = "金格科技";
  187. }
  188. //设置模板初始值
  189. if (mTemplate == null) {
  190. mTemplate = "";
  191. }
  192. //打开数据库
  193. DBstep.iDBManager2000 DbaObj = new DBstep.iDBManager2000();
  194. if (DbaObj.OpenConnection()) {
  195. String mSql = "Select * From Document Where RecordID='"
  196. + mRecordID + "'";
  197. try {
  198. result2 = DbaObj.ExecuteQuery(mSql);
  199. if (result2.next()) {
  200. mRecordID = result2.getString("RecordID");
  201. mTemplate = result2.getString("Template");
  202. mSubject = result2.getString("Subject");
  203. mAuthor = result2.getString("Author");
  204. mFileDate = result2.getString("FileDate");
  205. mStatus = result2.getString("Status");
  206. mFileType = result2.getString("FileType");
  207. mHTMLPath = result2.getString("HTMLPath");
  208. } else {
  209. //取得唯一值(mRecordID)
  210. java.util.Date dt = new java.util.Date();
  211. long lg = dt.getTime();
  212. Long ld = new Long(lg);
  213. //初始化值
  214. mRecordID = ld.toString();//保存的是文档的编号,通过该编号,可以在里找到所有属于这条纪录的文档
  215. mTemplate = mTemplate;
  216. mSubject = "请输入主题";
  217. mAuthor = mUserName;
  218. mFileDate = DbaObj.GetDateTime();
  219. mStatus = "DERF";
  220. mFileType = mFileType;
  221. mHTMLPath = "";
  222. }
  223. result2.close();
  224. } catch (SQLException e) {
  225. System.out.println(e.toString());
  226. }
  227. DbaObj.CloseConnection();
  228. }
  229. if (mEditType == "0,0") {
  230. mDisabled = "disabled";
  231. mDisabledSave = "disabled";
  232. } else {
  233. mDisabled = "";
  234. }
  235. mFileName = mRecordID + mFileType; //取得完整的文档名称
  236. if (mFileType.equalsIgnoreCase(".doc")
  237. || mFileType.equalsIgnoreCase(".wps")) {
  238. mWord = "";
  239. mExcel = "disabled";
  240. } else if (mFileType == ".xls") {
  241. mWord = "disabled";
  242. mExcel = "";
  243. } else {
  244. mDisabled = "disabled";
  245. }
  246. %>
  247. <html>
  248. <head>
  249. <title></title>
  250. <style media="print">
  251. .Noprint {
  252. display: none;
  253. }
  254. </style>
  255. <script type="text/javascript">
  256. //作用:自动锁定文档
  257. function ProtectDocument()
  258. {
  259. var mLength=document.getElementsByName("iHtmlSignature").length;
  260. var mProtect = false;
  261. for (var i=0;i<mLength;i++){
  262. var vItem=document.getElementsByName("iHtmlSignature")[i];
  263. if(vItem.DocProtect)
  264. {
  265. mProtect = true;
  266. break;
  267. }
  268. }
  269. if(!mProtect){
  270. var vItem = document.getElementsByName("iHtmlSignature")[mLength-1];
  271. vItem.LockDocument(true);
  272. }
  273. }
  274. //作用:获取签章信息,以XML格式返回,并且分析显示数据.具体的XML格式请参照技术白皮书
  275. // 具体分析后的内容如何处理,请自己做适当处理,本示例仅将返回结果进行提示。
  276. function WebGetSignatureInfo(){
  277. var mSignXMl=DocForm.SignatureControl.GetSignatureInfo(); //读取当前文档签章信息,以XML返回
  278. alert(mSignXMl); //调试信息
  279. var XmlObj = new ActiveXObject("Microsoft.XMLDOM");
  280. XmlObj.async = false;
  281. var LoadOk=XmlObj.loadXML(mSignXMl);
  282. var ErrorObj = XmlObj.parseError;
  283. if (ErrorObj.errorCode != 0){
  284. alert("返回信息错误...");
  285. }else{
  286. var CurNodes=XmlObj.getElementsByTagName("iSignature_HTML");
  287. for (var iXml=0;iXml<CurNodes.length;iXml++){
  288. var TmpNodes=CurNodes.item(iXml);
  289. /*
  290. alert(TmpNodes.selectSingleNode("SignatureOrder").text); //签章序列号
  291. alert(TmpNodes.selectSingleNode("SignatureName").text); //签章名称
  292. alert(TmpNodes.selectSingleNode("SignatureUnit").text); //签章单位
  293. alert(TmpNodes.selectSingleNode("SignatureUser").text); //签章用户
  294. alert(TmpNodes.selectSingleNode("SignatureDate").text); //签章日期
  295. alert(TmpNodes.selectSingleNode("SignatureIP").text); //签章电脑IP
  296. alert(TmpNodes.selectSingleNode("KeySN").text); //钥匙盘序列号
  297. alert(TmpNodes.selectSingleNode("SignatureSN").text); //签章序列号
  298. alert(TmpNodes.selectSingleNode("SignatureResult").text); //签章验测结果
  299. */
  300. }
  301. }
  302. }
  303. //作用:设置禁止(允许)签章的密钥盘 具体参数信息请参照技术白皮书
  304. function WebAllowKeySN()
  305. {
  306. var KeySn=window.prompt("请输入禁止在此页面上签章的钥匙盘序列号:");
  307. DocForm.SignatureControl.WebAllowKeySN(false,KeySn);
  308. }
  309. //作用:获取KEY密钥盘的SN序列号
  310. function WebGetKeySN()
  311. {
  312. var KeySn=DocForm.SignatureControl.WebGetKeySN();
  313. alert("您的钥匙盘序列号为:"+KeySn);
  314. }
  315. //作用:校验用户的 PIN码是否正确
  316. function WebVerifyKeyPIN()
  317. {
  318. var KeySn = DocForm.SignatureControl.WebGetKeySN();
  319. var mBoolean = DocForm.SignatureControl.WebVerifyKeyPIN("123456");
  320. if (mBoolean){
  321. alert(KeySn+":通过校验");
  322. }else{
  323. alert(KeySn+":未通过校验");
  324. }
  325. }
  326. //作用:修改钥匙盘PIN码,参数1为原PIN码,参数2为修改后的PIN码
  327. function WebEditKeyPIN()
  328. {
  329. var oldPIN = window.prompt("请输入原来的PIN码");
  330. if(oldPIN == null){
  331. return;
  332. }
  333. var newPIN = window.prompt("请输入修改后的PIN码");
  334. if(newPIN == null){
  335. return;
  336. }
  337. var mBoolean = DocForm.SignatureControl.WebEditKeyPIN(oldPIN,newPIN);
  338. if (mBoolean){
  339. alert("钥匙盘PIN码修改成功!");
  340. }else{
  341. alert("钥匙盘PIN码修改不成功!");
  342. }
  343. }
  344. //作用:批量验证签章
  345. function BatchCheckSign()
  346. {
  347. DocForm.SignatureControl.BatchCheckSign();
  348. }
  349. //作用:显示或隐藏签章
  350. function ShowSignature(visibleValue)
  351. {
  352. var mLength=document.getElementsByName("iHtmlSignature").length;
  353. for (var i=0;i<mLength;i++){
  354. var vItem=document.getElementsByName("iHtmlSignature")[i];
  355. vItem.Visiabled = visibleValue;
  356. }
  357. }
  358. //作用:删除签章
  359. function DeleteSignature()
  360. {
  361. var mLength=document.getElementsByName("iHtmlSignature").length;
  362. var mSigOrder = "";
  363. for (var i=mLength-1;i>=0;i--){
  364. var vItem=document.getElementsByName("iHtmlSignature")[i];
  365. //mSigOrder :=
  366. if (vItem.SignatureOrder=="1")
  367. {
  368. vItem.DeleteSignature();
  369. }
  370. }
  371. }
  372. //作用:移动签章
  373. function MoveSignature()
  374. {
  375. DocForm.SignatureControl.MovePositionByNoSave(100,100);
  376. alert("位置增加100");
  377. DocForm.SignatureControl.MovePositionByNoSave(-100,-100);
  378. alert("回到原来位置");
  379. DocForm.SignatureControl.MovePositionToNoSave(100,100);
  380. alert("移动到100,100");
  381. }
  382. //作用:脱密
  383. function ShedCryptoDocument()
  384. {
  385. DocForm.SignatureControl.ShedCryptoDocument();
  386. }
  387. //作用:脱密还原
  388. function ResetCryptoDocument()
  389. {
  390. DocForm.SignatureControl.ResetCryptoDocument();
  391. }
  392. //作用:打印文档
  393. function PrintDocument(){
  394. var tagElement = document.getElementById('documentPrintID');
  395. tagElement.className = 'print'; //样式改变为可打印
  396. var mCount = DocForm.SignatureControl.PrintDocument(false,2,5); //打印控制窗体
  397. alert("实际打印份数:"+mCount);
  398. tagElement.className = 'Noprint'; //样式改变为不可打印
  399. }
  400. //作用:获取IE版本,如果是高于IE9,设置打印方式解决签章打印黑白问题
  401. function getIEVersion()
  402. {
  403. var mXml = "<?xml version='1.0' encoding='GB2312' standalone='yes'?>";
  404. mXml = mXml + " <Signature>";
  405. mXml = mXml + " <OtherParam>";
  406. mXml = mXml + " <PrintType>1</PrintType>"; //IE9以上设置为1解决签章打印黑白问题
  407. //mXml = mXml + " <DIVIndex>-999999</DIVIndex>"; //IE9以上设置为1解决签章打印黑白问题
  408. mXml = mXml + " </OtherParam>";
  409. mXml = mXml + " </Signature>";
  410. DocForm.SignatureControl.XmlConfigParam = mXml;
  411. }
  412. //作用:显示操作状态
  413. function StatusMsg(mString){
  414. //webform.StatusBar.value=mString;
  415. }
  416. //作用:载入iWebOffice
  417. function Load(){
  418. DocForm.SignatureControl.ShowSignature('<%=DocumentID%>');
  419. try{
  420. //以下属性必须设置,实始化iWebOffice
  421. webform.WebOffice.WebUrl="<%=mServerUrl2%>"; //WebUrl:系统服务器路径,与服务器文件交互操作,如保存、打开文档,重要文件
  422. webform.WebOffice.RecordID="<%=DocumentID%>"; //RecordID:本文档记录编号 mRecordID
  423. webform.WebOffice.Template="<%=mTemplate%>"; //Template:模板编号
  424. webform.WebOffice.FileName="<%=mFileName%>"; //FileName:文档名称
  425. webform.WebOffice.FileType="<%=mFileType%>"; //FileType:文档类型 .doc .xls .wps
  426. webform.WebOffice.UserName="<%=mUserName%>"; //UserName:操作用户名,痕迹保留需要
  427. webform.WebOffice.EditType="<%=mEditType%>"; //EditType:编辑类型 方式一、方式二 <参考技术文档>
  428. //第一位可以为0,1,2,3 其中:0不可编辑;1可以编辑,无痕迹;2可以编辑,有痕迹,不能修订;3可以编辑,有痕迹,能修订;
  429. //第二位可以为0,1 其中:0不可批注,1可以批注。可以参考iWebOffice2009的EditType属性,详细参考技术白皮书
  430. webform.WebOffice.MaxFileSize = 4 * 1024; //最大的文档大小控制,默认是8M,现在设置成4M。
  431. webform.WebOffice.Language="CH"; //Language:多语言支持显示选择 CH简体 TW繁体 EN英文
  432. //webform.WebOffice.ShowWindow = true; //控制显示打开或保存文档的进度窗口,默认不显示
  433. webform.WebOffice.PenColor="#FF0000"; //PenColor:默认批注颜色
  434. webform.WebOffice.PenWidth="1"; //PenWidth:默认批注笔宽
  435. webform.WebOffice.Print="1"; //Print:默认是否可以打印:1可以打印批注,0不可以打印批注
  436. webform.WebOffice.ShowToolBar="0"; //ShowToolBar:是否显示工具栏:1显示,0不显示
  437. //WebSetRibbonUIXML(); //控制OFFICE2007的选项卡显示
  438. webform.WebOffice.WebOpen(); //打开该文档 交互OfficeServer 调出文档OPTION="LOADFILE" 调出模板OPTION="LOADTEMPLATE" <参考技术文档>
  439. webform.WebOffice.ShowType=<%=mShowType%>; //文档显示方式 1:表示文字批注 2:表示手写批注 0:表示文档核稿
  440. if (!webform.WebOffice.WebLoadBookmarks()){ //交互OfficeServer的OPTION="LOADBOOKMARKS"
  441. //StatusMsg(webform.WebOffice.Status);
  442. }else{
  443. //StatusMsg(webform.WebOffice.Status);
  444. }
  445. ConvertSignature();//将html的章转到office中的test1标签处
  446. }catch(e){
  447. alert(e.description); //显示出错误信息
  448. }
  449. }
  450. function SetCharacterEncoding()
  451. {
  452. //var mValue = window.prompt("请输入信息字符集 0:ANSI 1:UTF-8 2:为HTML签章采用字符集","2");
  453. //if(mValue == null){
  454. //return;
  455. //}
  456. //webform.SignatureControl.SetParam("SIGNRESULTUTF8","0");
  457. //设置SignatureValueStr结果字符集
  458. var mLength=document.getElementsByName("iHtmlSignature").length;
  459. var mSigOrder = "";
  460. for (var i=mLength-1;i>=0;i--){
  461. var vItem=document.getElementsByName("iHtmlSignature")[i];
  462. vItem.SetParam('SIGNRESULTUTF8', "0");
  463. //alert(document.getElementsByName("iHtmlSignature").SignatureValueStr);
  464. }
  465. }
  466. //HTML签章转换为OFFICE签章
  467. function ConvertSignature(){
  468. //alert("222");
  469. SetCharacterEncoding();
  470. var mResult = true;
  471. var BmkName = "test1";
  472. var vItem = document.getElementsByName("iHtmlSignature");
  473. if(vItem.length<=0){
  474. //alert("请先点击上面的‘HTML签章’,至少盖一个HTML签章!");
  475. return;
  476. }
  477. SetActiveDocument();
  478. webform.WebOffice.SignatureAPI.BeginLoadSignature();
  479. try{
  480. // webform.WebOffice.SignatureAPI.LockDocument(1); //锁定文档
  481. var mLength = vItem.length;
  482. var books= webform.WebOffice.WebObject.Bookmarks;
  483. if(books.Exists(BmkName)) {
  484. webform.WebOffice.WebObject.Bookmarks.Item(BmkName).Range.Select();
  485. // webform.WebOffice.SignatureAPI.UnLockDocument();
  486. //alert("签章高度和宽度:"+vItem[0].clientHeight+"||"+vItem[0].clientWidth);
  487. if(vItem[0].Check){
  488. //webform.WebOffice.SignatureAPI.ConvertHTML2Office(vItem[0].SignatureValueStr);
  489. zhuanzhang(vItem[0].SignatureValueStr);
  490. }
  491. }
  492. // webform.WebOffice.SignatureAPI.LockDocument(1); //锁定文档
  493. webform.WebOffice.SignatureAPI.EndLoadSignature();
  494. webform.WebOffice.SignatureAPI.ReleaseActiveDocument();
  495. }catch(e){
  496. alert(e.discription);
  497. mResult= false;
  498. }
  499. // webform.WebOffice.WebObject.NormalTemplate.Saved = true;
  500. return mResult;
  501. }
  502. function zhuanzhang(htmlsigndata){
  503. //webform.WebOffice.SignatureAPI.ConvertHTML2Office("1212121");
  504. //webform.SignatureAPI.ConvertHTML2Office(htmlsigndata);
  505. webform.WebOffice.SignatureAPI.ConvertHTML2Office(htmlsigndata);
  506. }
  507. //作用:退出iWebOffice
  508. function UnLoad(){
  509. DocForm.SignatureControl.DeleteSignature();
  510. try{
  511. webform.SignatureAPI.ReleaseActiveDocument();
  512. if (!webform.WebOffice.WebClose()){
  513. StatusMsg(webform.WebOffice.Status);
  514. }else{
  515. StatusMsg("关闭文档...");
  516. }
  517. }catch(e){
  518. //alert(e.description);
  519. }
  520. }
  521. //作用:存为本地文件
  522. function WebSaveLocal(){
  523. try{
  524. webform.WebOffice.WebSaveLocal();
  525. StatusMsg(webform.WebOffice.Status);
  526. }catch(e){alert(e.description);}
  527. }
  528. //作用:设置活动文档对象
  529. function SetActiveDocument(){
  530. try{
  531. if (webform.WebOffice.FileType==".doc"){
  532. webform.WebOffice.SignatureAPI.ActiveDocument = webform.WebOffice.WebObject; //设置WORD对象
  533. }
  534. }catch(e){
  535. alert(e.description);
  536. }
  537. }
  538. function createSign(){
  539. try{
  540. SetActiveDocument(); //设置活动文档
  541. if(webform.WebOffice.SignatureAPI.SelectionState==0){ //成功
  542. //webform.WebOffice.SignatureAPI.SelectIndex = GetSign('签名');
  543. webform.WebOffice.SignatureAPI.CreateSignature(1); //建立电子签章
  544. webform.WebOffice.SignatureAPI.ReleaseActiveDocument();
  545. }
  546. }catch(e){alert(e.description)}
  547. }
  548. //test
  549. function test(){
  550. try{
  551. var msg = webform.WebOffice.SignatureAPI.CreateComment("2年");
  552. if(msg){
  553. SetActiveDocument();
  554. webform.WebOffice.SignatureAPI.ActionAddinButton(2);
  555. //webform..SignatureAPI.ReleaseActiveDocument();
  556. }else{
  557. alert(msg);
  558. }
  559. }
  560. catch(e){alert(e.description);}
  561. try{
  562. //var table = webform.WebOffice.WebObject.Tables.Add(webform.WebOffice.WebObject.Bookmarks("test").Range,4,4);
  563. //table.Borders.Enable=true;
  564. //alert(webform.WebOffice.WebObject.FormFields("test1").Range);
  565. /*
  566. var myTable = webform.WebOffice.WebObject.Tables.Add(webform.WebOffice.WebObject.FormFields("test1").Range,4,3);
  567. myTable.Borders.InsideLineStyle = 1;
  568. myTable.Borders.OutsideLineStyle = 1;
  569. var Selection =webform.WebOffice.WebObject.Application.Range;
  570. //books("test").Range.Select();
  571. Selection.InsertFile(path);
  572. */
  573. return;
  574. // SetActiveDocument(); //设置活动文档
  575. //webform.WebOffice.SignatureAPI.SelectIndex = GetSign('8365');
  576. // webform.WebOffice.SignatureAPI.ActionAddinButton(1);//签章参数
  577. // alert(webform.WebOffice.SignatureAPI.SelectionState);
  578. // webform.WebOffice.SignatureAPI.SetSignatureParam("MousePositioning","1");
  579. //webform.WebOffice.SignatureAPI.ActionAddinButton(1);
  580. // webform.WebOffice.WebObject.Bookmarks.Item("test").Range.Select();
  581. // var Selection= webform.WebOffice.Application.Selection;
  582. // webform.WebOffice.WebObject.Application.Selection.InlineShapes.AddPicture("c:\\1.jpg",false,true);
  583. //var Selection = wd.Application.Selection;
  584. //下面方法中第一个参数为水印图片路径
  585. //Selection.HeaderFooter.Shapes.AddPicture("c:\11.gif", false, true);
  586. var books= webform.WebOffice.WebObject.Bookmarks;
  587. var Selection =webform.WebOffice.WebObject.Application.Selection;
  588. //books("test").Range.Select();
  589. Selection.GoTo(-1,0,0,"test");
  590. Selection.MoveDown(5,5);
  591. Selection.TypeParagraph();//回车
  592. Selection.text = "[描述]";//书签描述
  593. books.Add("名称",Selection);//光标位置 插入书签
  594. }catch(e){
  595. alert(e.description);
  596. }finally{
  597. // webform.WebOffice.SignatureAPI.ReleaseActiveDocument();
  598. }
  599. }
  600. //无对话框签章
  601. function CreateNoneSignature(){
  602. try{
  603. var fc,fd,BmkName;
  604. SetActiveDocument(); //设置活动文档
  605. BmkName = "test";//首先在文档上添加一个名称 test 的标签
  606. webform.WebOffice.SignatureAPI.BeginLoadSignature();
  607. if(webform.WebOffice.WebObject.Bookmarks.Exists(BmkName))
  608. {
  609. webform.WebOffice.WebObject.Bookmarks.Item(BmkName).Range.Select();
  610. if(webform.WebOffice.SignatureAPI.SelectionState == 0)//成功
  611. {
  612. webform.WebOffice.SignatureAPI.CreateGroupSignature(true, 0, "000000");//true,密钥盘签章索引,签章密码
  613. }
  614. }else{
  615. webform.WebOffice.SignatureAPI.CreateGroupSignature(true, 0, "000000");//true,密钥盘签章索引,签章密码
  616. }
  617. webform.WebOffice.SignatureAPI.EndLoadSignature();
  618. webform.WebOffice.SignatureAPI.ReleaseActiveDocument();
  619. }catch(e){alert(e.discription);}
  620. }
  621. </script>
  622. </head>
  623. <body id="documentPrintID" class="Noprint" onLoad="Load();"
  624. onUnload="UnLoad();">
  625. <input type="button" value="转章" onclick="zhuanzhang('111');" />
  626. <input type="button" value="download" onclick="WebSaveLocal();" />
  627. <input type=button class=SideButton value="测试" onclick='test();'>
  628. <input type=button class=SideButton value="无对话框签章"
  629. onclick='CreateNoneSignature();'>
  630. <form name="DocForm">
  631. <input type="hidden" name="DocumentID" value="<%=DocumentID%>">
  632. <OBJECT id="SignatureControl"
  633. classid="clsid:D85C89BE-263C-472D-9B6B-5264CD85B36E"
  634. codebase="iSignatureHTML.cab#version=8,2,2,56" width="0" height="0">
  635. <param name="ServiceUrl" value="<%=mServerUrl%>">
  636. <!--读去数据库相关信息-->
  637. <param name="PrintControlType" value=2>
  638. <!--打印控制方式(0:不控制 1:签章服务器控制 2:开发商控制)-->
  639. </OBJECT>
  640. <div style="width: 100%; text-align: center;">
  641. <table id="tab"
  642. style="width: 595px; border-collapse: collapse; empty-cells: show; background-color: "
  643. border="0" cellspacing="0" cellpadding="0">
  644. <thead>
  645. <tr valign="top" style="height: 20px;">
  646. <td colspan="7"></td>
  647. </tr>
  648. <!-- title -->
  649. <tr valign="top" style="height: 33px;">
  650. <td></td>
  651. <td
  652. style="text-align: center; text-indent: 0px; vertical-align: middle;"
  653. colspan="5"><span
  654. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 20px; font-weight: bold;">
  655. 危险货物港口作业申请书 </span>
  656. </td>
  657. <td></td>
  658. </tr>
  659. </thead>
  660. <tbody>
  661. <tr valign="top" style="height: 23px;">
  662. <td></td>
  663. <td
  664. style="text-align: left; text-indent: 0px; padding-left: 10px; vertical-align: middle;">
  665. <span
  666. style="color: rgb(0, 0, 0); line-height: 1; font-family: 宋体; font-size: 12px;">
  667. 编号: </span>
  668. </td>
  669. <td
  670. style="text-align: left; text-indent: 0px; vertical-align: middle;"
  671. colspan="4"><input type="text" name="BH" value="<%=BH%>"
  672. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  673. onfocus="this.blur();" /></td>
  674. <td></td>
  675. </tr>
  676. <tr valign="top" style="height: 25px;">
  677. <td></td>
  678. <td
  679. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  680. colspan="2"><span
  681. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  682. 作业单位 </span>
  683. </td>
  684. <td
  685. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  686. <input type="text" name="ZYDW" value="<%=ZYDW%>"
  687. style='width: 100%; border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  688. onfocus="this.blur();" /></td>
  689. <td
  690. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  691. <span
  692. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  693. 作业委托人 </span>
  694. </td>
  695. <td
  696. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  697. <input type="text" name="ZYWTR" value="<%=ZYWTR%>"
  698. style='width: 100%; border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  699. onfocus="this.blur();" /></td>
  700. <td></td>
  701. </tr>
  702. <tr valign="top" style="height: 25px;">
  703. <td></td>
  704. <td
  705. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  706. colspan="2"><span
  707. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  708. 船名 </span>
  709. </td>
  710. <td
  711. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  712. <input type="text" name="CM" value="<%=CM%>"
  713. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  714. onfocus="this.blur();" /></td>
  715. <td
  716. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  717. <span
  718. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  719. 现场管理负责人 </span>
  720. </td>
  721. <td
  722. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  723. <input type="text" name="XCGLFZR" value="<%=XCGLFZR%>"
  724. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  725. onfocus="this.blur();" /></td>
  726. <td></td>
  727. </tr>
  728. <tr valign="top" style="height: 25px;">
  729. <td></td>
  730. <td
  731. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  732. colspan="2"><span
  733. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  734. 危险品名称 </span>
  735. </td>
  736. <td
  737. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  738. <input type="text" name="WXHWMCBH" value="<%=WXHWMCBH%>"
  739. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  740. onfocus="this.blur();" /></td>
  741. <td
  742. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  743. <span
  744. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  745. 物品编号 </span>
  746. </td>
  747. <td
  748. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  749. <input type="text" name="WPBH" value="<%=WPBH%>"
  750. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  751. onfocus="this.blur();" /></td>
  752. <td></td>
  753. </tr>
  754. <tr valign="top" style="height: 25px;">
  755. <td></td>
  756. <td
  757. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  758. colspan="2"><span
  759. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  760. 技术品名 </span>
  761. </td>
  762. <td
  763. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  764. <input type="text" name="JSPM" value="<%=JSPM%>"
  765. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  766. onfocus="this.blur();" /></td>
  767. <td
  768. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  769. <span
  770. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  771. 包装 </span>
  772. </td>
  773. <td
  774. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  775. <input type="text" name="BZ" value="<%=BZ%>"
  776. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  777. onfocus="this.blur();" /></td>
  778. <td></td>
  779. </tr>
  780. <tr valign="top" style="height: 25px;">
  781. <td></td>
  782. <td
  783. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  784. colspan="2"><span
  785. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  786. 类别和项别 </span>
  787. </td>
  788. <td
  789. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  790. <input type="text" name="WXPLB" value="<%=WXPLB%>"
  791. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  792. onfocus="this.blur();" /></td>
  793. <td
  794. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  795. <span
  796. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  797. 包装类别 </span>
  798. </td>
  799. <td
  800. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  801. <input type="text" name="BYZD4" value="<%=BYZD4%>"
  802. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  803. onfocus="this.blur();" /></td>
  804. <td></td>
  805. </tr>
  806. <tr valign="top" style="height: 25px;">
  807. <td></td>
  808. <td
  809. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  810. colspan="2"><span
  811. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  812. 进出港 </span>
  813. </td>
  814. <td
  815. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  816. <input type="text" name="INOROUT" value="<%=INOROUT%>"
  817. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  818. onfocus="this.blur();" /></td>
  819. <td
  820. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  821. <span
  822. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  823. 作业数量(吨) </span>
  824. </td>
  825. <td
  826. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  827. <input type="text" name="ZYSL" value="<%=ZYSL%>"
  828. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  829. onfocus="this.blur();" /></td>
  830. <td></td>
  831. </tr>
  832. <tr valign="top" style="height: 25px;">
  833. <td></td>
  834. <td
  835. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  836. colspan="2"><span
  837. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  838. 上港 </span>
  839. </td>
  840. <td
  841. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  842. <input type="text" name="SG" value="<%=SG%>"
  843. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  844. onfocus="this.blur();" /></td>
  845. <td
  846. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  847. <span
  848. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  849. 下港 </span>
  850. </td>
  851. <td
  852. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  853. <input type="text" name="XG" value="<%=XG%>"
  854. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  855. onfocus="this.blur();" /></td>
  856. <td></td>
  857. </tr>
  858. <tr valign="top" style="height: 25px;">
  859. <td></td>
  860. <td
  861. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  862. colspan="2"><span
  863. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  864. 内外贸 </span>
  865. </td>
  866. <td
  867. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  868. <input type="text" name="MAO" value="<%=MAO%>"
  869. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  870. onfocus="this.blur();" /></td>
  871. <td
  872. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  873. <span
  874. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  875. 火灾危险性 </span>
  876. </td>
  877. <td
  878. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  879. <input type="text" name="HZWXX" value="<%=HZWXX%>"
  880. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  881. onfocus="this.blur();" /></td>
  882. <td></td>
  883. </tr>
  884. <tr valign="top" style="height: 25px;">
  885. <td></td>
  886. <td
  887. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  888. colspan="2"><span
  889. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  890. 毒性等级 </span>
  891. </td>
  892. <td
  893. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  894. <input type="text" name="DXDJ" value="<%=DXDJ%>"
  895. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  896. onfocus="this.blur();" /></td>
  897. <td
  898. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  899. <span
  900. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  901. 污染类别 </span>
  902. </td>
  903. <td
  904. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  905. <input type="text" name="WRLB" value="<%=WRLB%>"
  906. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  907. onfocus="this.blur();" /></td>
  908. <td></td>
  909. </tr>
  910. <tr valign="top" style="height: 25px;">
  911. <td></td>
  912. <td
  913. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  914. colspan="2"><span
  915. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  916. 集装箱数量 </span>
  917. </td>
  918. <td
  919. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  920. <input type="text" name="JZXSL" value="<%=JZXSL%>"
  921. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  922. onfocus="this.blur();" /></td>
  923. <td
  924. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  925. <span
  926. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  927. 航次 </span>
  928. </td>
  929. <td
  930. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  931. <input type="text" name="HC" value="<%=HC%>"
  932. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  933. onfocus="this.blur();" /></td>
  934. <td></td>
  935. </tr>
  936. <tr valign="top" style="height: 25px;">
  937. <td></td>
  938. <td
  939. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  940. colspan="2"><span
  941. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  942. 货物种类 </span>
  943. </td>
  944. <td
  945. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  946. colspan="3"><input type="text" name="HWZL" value="<%=HWZL%>"
  947. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  948. onfocus="this.blur();" /></td>
  949. <td></td>
  950. </tr>
  951. <tr valign="top" style="height: 25px;">
  952. <td></td>
  953. <td
  954. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  955. colspan="2"><span
  956. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  957. 货物形式 </span>
  958. </td>
  959. <td
  960. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  961. colspan="3"><input type="text" name="HWXS" value="<%=HWXS%>"
  962. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  963. onfocus="this.blur();" /></td>
  964. <td></td>
  965. </tr>
  966. <tr valign="top" style="height: 45px;">
  967. <td></td>
  968. <td
  969. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  970. colspan="2"><span
  971. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  972. 理化性质 </span>
  973. </td>
  974. <td
  975. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-bottom: 5px; padding-left: 5px; vertical-align: middle;"
  976. colspan="3"><Textarea name="LHXZ" onfocus="this.blur();"
  977. rows="4"
  978. style='width: 100%; height: 100%; overflow: hidden; background-attachment: fixed; font-family: 宋体; font-size: 12px; background-repeat: no-repeat; border-style: solid; border-color: #FFFFFF'><%=LHXZ%></Textarea>
  979. </td>
  980. <td></td>
  981. </tr>
  982. <tr valign="top" style="height: 25px;">
  983. <td></td>
  984. <td
  985. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  986. colspan="2"><span
  987. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  988. 作业地点 </span>
  989. </td>
  990. <td
  991. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  992. colspan="3"><input type="text" name="ZYDD" value="<%=ZYDD%>"
  993. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  994. onfocus="this.blur();" /></td>
  995. <td></td>
  996. </tr>
  997. <tr valign="top" style="height: 25px;">
  998. <td></td>
  999. <td
  1000. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  1001. colspan="2"><span
  1002. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  1003. 作业时间起 </span>
  1004. </td>
  1005. <td
  1006. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1007. <input type="text" name="ZYSJQ" value="<%=ZYSJQ%>"
  1008. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  1009. onfocus="this.blur();" /></td>
  1010. <td
  1011. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1012. <span
  1013. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  1014. 作业时间止 </span>
  1015. </td>
  1016. <td
  1017. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1018. <input type="text" name="ZYSJZ" value="<%=ZYSJZ%>"
  1019. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  1020. onfocus="this.blur();" /></td>
  1021. <td></td>
  1022. </tr>
  1023. <tr valign="top" style="height: 83px;">
  1024. <td></td>
  1025. <td
  1026. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  1027. colspan="2"><span
  1028. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  1029. 安全防范措施 </span>
  1030. </td>
  1031. <td
  1032. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-bottom: 5px; padding-left: 5px; vertical-align: middle;"
  1033. colspan="3"><Textarea name="AQFFCS" onfocus="this.blur();"
  1034. rows="6"
  1035. style='width: 100%; height: 100%; overflow: hidden; background-attachment: fixed; font-family: 宋体; font-size: 12px; background-repeat: no-repeat; border-style: solid; border-color: #FFFFFF'><%=AQFFCS%></Textarea>
  1036. </td>
  1037. <td></td>
  1038. </tr>
  1039. <tr valign="top" style="height: 25px;">
  1040. <td></td>
  1041. <td
  1042. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  1043. colspan="2"><span
  1044. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  1045. 报告人 </span>
  1046. </td>
  1047. <td
  1048. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1049. <input type="text" name="BGR" value="<%=BGR%>"
  1050. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px; width: 100%;'
  1051. onfocus="this.blur();" /></td>
  1052. <td
  1053. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1054. <span
  1055. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  1056. 联系方式 </span>
  1057. </td>
  1058. <td
  1059. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1060. <input type="text" name="LXFS" value="<%=LXFS%>"
  1061. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  1062. onfocus="this.blur();" /></td>
  1063. <td></td>
  1064. </tr>
  1065. <tr valign="top" style="height: 25px;">
  1066. <td></td>
  1067. <td
  1068. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  1069. colspan="2"><span
  1070. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  1071. 报告时间 </span>
  1072. </td>
  1073. <td
  1074. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1075. <input type="text" name="BGSJ" value="<%=BGSJ%>"
  1076. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  1077. onfocus="this.blur();" /></td>
  1078. <td
  1079. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1080. <span
  1081. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  1082. 申报员证书编号 </span>
  1083. </td>
  1084. <td
  1085. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1086. <input type="text" name="BYZD2" value="<%=BYZD2%>"
  1087. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  1088. onfocus="this.blur();" /></td>
  1089. <td></td>
  1090. </tr>
  1091. <tr valign="top" style="height: 28px;">
  1092. <td></td>
  1093. <td
  1094. style="text-align: center; text-indent: 0px; vertical-align: middle;"
  1095. colspan="5"><span
  1096. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 16px; font-weight: bold;">
  1097. 审核 </span>
  1098. </td>
  1099. <td></td>
  1100. </tr>
  1101. <tr valign="top" style="height: 40px;">
  1102. <td></td>
  1103. <td
  1104. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  1105. colspan="2"><span
  1106. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  1107. 审核意见 </span>
  1108. </td>
  1109. <td
  1110. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1111. <input type="text" name="SHYJ" value="<%=SHYJ%>"
  1112. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  1113. onfocus="this.blur();" /></td>
  1114. <td
  1115. style="border-top-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); border-top-width: 1px; border-left-width: 1px; border-top-style: solid; border-left-style: solid;">
  1116. <div id="yfdiv" style="position: absolute;" bgcolor=#ffffff></div>
  1117. </td>
  1118. <td
  1119. style="border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-top-width: 1px; border-right-width: 1px; border-top-style: solid; border-right-style: solid;">
  1120. </td>
  1121. <td></td>
  1122. </tr>
  1123. <tr valign="top" style="height: 40px;">
  1124. <td></td>
  1125. <td
  1126. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  1127. colspan="2"><span
  1128. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  1129. 审核机构 </span>
  1130. </td>
  1131. <td
  1132. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1133. </td>
  1134. <td
  1135. style="border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); border-bottom-width: 1px; border-left-width: 1px; border-bottom-style: solid; border-left-style: solid;">
  1136. </td>
  1137. <td
  1138. style="border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-right-width: 1px; border-bottom-width: 1px; border-right-style: solid; border-bottom-style: solid;">
  1139. </td>
  1140. <td></td>
  1141. </tr>
  1142. <tr valign="top" style="height: 25px;">
  1143. <td></td>
  1144. <td
  1145. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  1146. colspan="2"><span
  1147. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  1148. 审核人 </span>
  1149. </td>
  1150. <td
  1151. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1152. <input type="text" name="SHR" value="<%=SHR%>"
  1153. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  1154. onfocus="this.blur();" /></td>
  1155. <td
  1156. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1157. <span
  1158. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  1159. 审核日期 </span>
  1160. </td>
  1161. <td
  1162. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1163. <input type="text" name="SHSJ" value="<%=SHSJ%>"
  1164. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  1165. onfocus="this.blur();" /></td>
  1166. <td></td>
  1167. </tr>
  1168. <tr valign="top" style="height: 30px;">
  1169. <td></td>
  1170. <td
  1171. style="text-align: center; text-indent: 0px; vertical-align: middle;"
  1172. colspan="5"><span
  1173. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 16px; font-weight: bold;">
  1174. 开工报、完工报 </span>
  1175. </td>
  1176. <td></td>
  1177. </tr>
  1178. <tr valign="top" style="height: 25px;">
  1179. <td></td>
  1180. <td
  1181. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  1182. colspan="2"><span
  1183. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  1184. 靠泊时间 </span>
  1185. </td>
  1186. <td
  1187. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1188. </td>
  1189. <td
  1190. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1191. </td>
  1192. <td
  1193. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1194. </td>
  1195. <td></td>
  1196. </tr>
  1197. <tr valign="top" style="height: 25px;">
  1198. <td></td>
  1199. <td
  1200. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  1201. colspan="2"><span
  1202. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  1203. 开工时间 </span>
  1204. </td>
  1205. <td
  1206. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1207. </td>
  1208. <td
  1209. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1210. <span
  1211. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  1212. 完工时间 </span>
  1213. </td>
  1214. <td
  1215. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1216. </td>
  1217. <td></td>
  1218. </tr>
  1219. <tr valign="top" style="height: 20px;">
  1220. <td></td>
  1221. <td
  1222. style="text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  1223. colspan="5"><span
  1224. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px;">
  1225. </span>
  1226. </td>
  1227. <td></td>
  1228. </tr>
  1229. <tr valign="top" style="height: 20px;">
  1230. <td colspan="7"></td>
  1231. </tr>
  1232. </tbody>
  1233. </table>
  1234. </div>
  1235. </form>
  1236. <form name="webform">
  1237. <table border="0" cellspacing="0" cellpadding="0" width="100%"
  1238. height="100%">
  1239. <tr>
  1240. <td bgcolor="menu" height="98%" valign="top"><script
  1241. src="iWebOffice2009.js"></script> <script src="iSignatureHTML.js"></script>
  1242. <object id="SignatureAPI" width="0" height="0"
  1243. classid="clsid:79F9A6F8-7DBE-4098-A040-E6E0C3CF2001"
  1244. codebase="iSignatureAPI.ocx#version=9,0,0,316"> </object></td>
  1245. </tr>
  1246. </table>
  1247. </form>
  1248. </body>
  1249. </html>