ZysqbpPrintSignature.jsp 56 KB

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