ZysqbpPrintSignature.jsp 56 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381
  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. + "/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 = "iSignature/jspServer/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. <style type="text/css">
  256. .inputOut{border: none; width: 58px; height: 30px; background: url(../../resource/images/download_a.png) no-repeat center;}
  257. .inputOver{border: none; width: 58px; height: 30px; background: url(../../resource/images/download_b.png) no-repeat center;}
  258. </style>
  259. <script type="text/javascript">
  260. //作用:自动锁定文档
  261. function ProtectDocument()
  262. {
  263. var mLength=document.getElementsByName("iHtmlSignature").length;
  264. var mProtect = false;
  265. for (var i=0;i<mLength;i++){
  266. var vItem=document.getElementsByName("iHtmlSignature")[i];
  267. if(vItem.DocProtect)
  268. {
  269. mProtect = true;
  270. break;
  271. }
  272. }
  273. if(!mProtect){
  274. var vItem = document.getElementsByName("iHtmlSignature")[mLength-1];
  275. vItem.LockDocument(true);
  276. }
  277. }
  278. //作用:获取签章信息,以XML格式返回,并且分析显示数据.具体的XML格式请参照技术白皮书
  279. // 具体分析后的内容如何处理,请自己做适当处理,本示例仅将返回结果进行提示。
  280. function WebGetSignatureInfo(){
  281. var mSignXMl=DocForm.SignatureControl.GetSignatureInfo(); //读取当前文档签章信息,以XML返回
  282. alert(mSignXMl); //调试信息
  283. var XmlObj = new ActiveXObject("Microsoft.XMLDOM");
  284. XmlObj.async = false;
  285. var LoadOk=XmlObj.loadXML(mSignXMl);
  286. var ErrorObj = XmlObj.parseError;
  287. if (ErrorObj.errorCode != 0){
  288. alert("返回信息错误...");
  289. }else{
  290. var CurNodes=XmlObj.getElementsByTagName("iSignature_HTML");
  291. for (var iXml=0;iXml<CurNodes.length;iXml++){
  292. var TmpNodes=CurNodes.item(iXml);
  293. /*
  294. alert(TmpNodes.selectSingleNode("SignatureOrder").text); //签章序列号
  295. alert(TmpNodes.selectSingleNode("SignatureName").text); //签章名称
  296. alert(TmpNodes.selectSingleNode("SignatureUnit").text); //签章单位
  297. alert(TmpNodes.selectSingleNode("SignatureUser").text); //签章用户
  298. alert(TmpNodes.selectSingleNode("SignatureDate").text); //签章日期
  299. alert(TmpNodes.selectSingleNode("SignatureIP").text); //签章电脑IP
  300. alert(TmpNodes.selectSingleNode("KeySN").text); //钥匙盘序列号
  301. alert(TmpNodes.selectSingleNode("SignatureSN").text); //签章序列号
  302. alert(TmpNodes.selectSingleNode("SignatureResult").text); //签章验测结果
  303. */
  304. }
  305. }
  306. }
  307. //作用:设置禁止(允许)签章的密钥盘 具体参数信息请参照技术白皮书
  308. function WebAllowKeySN()
  309. {
  310. var KeySn=window.prompt("请输入禁止在此页面上签章的钥匙盘序列号:");
  311. DocForm.SignatureControl.WebAllowKeySN(false,KeySn);
  312. }
  313. //作用:获取KEY密钥盘的SN序列号
  314. function WebGetKeySN()
  315. {
  316. var KeySn=DocForm.SignatureControl.WebGetKeySN();
  317. alert("您的钥匙盘序列号为:"+KeySn);
  318. }
  319. //作用:校验用户的 PIN码是否正确
  320. function WebVerifyKeyPIN()
  321. {
  322. var KeySn = DocForm.SignatureControl.WebGetKeySN();
  323. var mBoolean = DocForm.SignatureControl.WebVerifyKeyPIN("123456");
  324. if (mBoolean){
  325. alert(KeySn+":通过校验");
  326. }else{
  327. alert(KeySn+":未通过校验");
  328. }
  329. }
  330. //作用:修改钥匙盘PIN码,参数1为原PIN码,参数2为修改后的PIN码
  331. function WebEditKeyPIN()
  332. {
  333. var oldPIN = window.prompt("请输入原来的PIN码");
  334. if(oldPIN == null){
  335. return;
  336. }
  337. var newPIN = window.prompt("请输入修改后的PIN码");
  338. if(newPIN == null){
  339. return;
  340. }
  341. var mBoolean = DocForm.SignatureControl.WebEditKeyPIN(oldPIN,newPIN);
  342. if (mBoolean){
  343. alert("钥匙盘PIN码修改成功!");
  344. }else{
  345. alert("钥匙盘PIN码修改不成功!");
  346. }
  347. }
  348. //作用:批量验证签章
  349. function BatchCheckSign()
  350. {
  351. DocForm.SignatureControl.BatchCheckSign();
  352. }
  353. //作用:显示或隐藏签章
  354. function ShowSignature(visibleValue)
  355. {
  356. var mLength=document.getElementsByName("iHtmlSignature").length;
  357. for (var i=0;i<mLength;i++){
  358. var vItem=document.getElementsByName("iHtmlSignature")[i];
  359. vItem.Visiabled = visibleValue;
  360. }
  361. }
  362. //作用:删除签章
  363. function DeleteSignature()
  364. {
  365. var mLength=document.getElementsByName("iHtmlSignature").length;
  366. var mSigOrder = "";
  367. for (var i=mLength-1;i>=0;i--){
  368. var vItem=document.getElementsByName("iHtmlSignature")[i];
  369. //mSigOrder :=
  370. if (vItem.SignatureOrder=="1")
  371. {
  372. vItem.DeleteSignature();
  373. }
  374. }
  375. }
  376. //作用:移动签章
  377. function MoveSignature()
  378. {
  379. DocForm.SignatureControl.MovePositionByNoSave(100,100);
  380. alert("位置增加100");
  381. DocForm.SignatureControl.MovePositionByNoSave(-100,-100);
  382. alert("回到原来位置");
  383. DocForm.SignatureControl.MovePositionToNoSave(100,100);
  384. alert("移动到100,100");
  385. }
  386. //作用:脱密
  387. function ShedCryptoDocument()
  388. {
  389. DocForm.SignatureControl.ShedCryptoDocument();
  390. }
  391. //作用:脱密还原
  392. function ResetCryptoDocument()
  393. {
  394. DocForm.SignatureControl.ResetCryptoDocument();
  395. }
  396. //作用:打印文档
  397. function PrintDocument(){
  398. var tagElement = document.getElementById('documentPrintID');
  399. tagElement.className = 'print'; //样式改变为可打印
  400. var mCount = DocForm.SignatureControl.PrintDocument(false,2,5); //打印控制窗体
  401. alert("实际打印份数:"+mCount);
  402. tagElement.className = 'Noprint'; //样式改变为不可打印
  403. }
  404. //作用:获取IE版本,如果是高于IE9,设置打印方式解决签章打印黑白问题
  405. function getIEVersion()
  406. {
  407. var mXml = "<?xml version='1.0' encoding='GB2312' standalone='yes'?>";
  408. mXml = mXml + " <Signature>";
  409. mXml = mXml + " <OtherParam>";
  410. mXml = mXml + " <PrintType>1</PrintType>"; //IE9以上设置为1解决签章打印黑白问题
  411. //mXml = mXml + " <DIVIndex>-999999</DIVIndex>"; //IE9以上设置为1解决签章打印黑白问题
  412. mXml = mXml + " </OtherParam>";
  413. mXml = mXml + " </Signature>";
  414. DocForm.SignatureControl.XmlConfigParam = mXml;
  415. }
  416. //作用:显示操作状态
  417. function StatusMsg(mString){
  418. //webform.StatusBar.value=mString;
  419. }
  420. //作用:载入iWebOffice
  421. function Load(){
  422. DocForm.SignatureControl.ShowSignature('<%=DocumentID%>');
  423. }
  424. //作用:载入iWebOffice
  425. function Load2(){
  426. DocForm.SignatureControl.ShowSignature('<%=DocumentID%>');
  427. try{
  428. //以下属性必须设置,实始化iWebOffice
  429. webform.WebOffice.WebUrl="<%=mServerUrl2%>"; //WebUrl:系统服务器路径,与服务器文件交互操作,如保存、打开文档,重要文件
  430. webform.WebOffice.RecordID="<%=DocumentID%>"; //RecordID:本文档记录编号 mRecordID
  431. webform.WebOffice.Template="<%=mTemplate%>"; //Template:模板编号
  432. webform.WebOffice.FileName="<%=mFileName%>"; //FileName:文档名称
  433. webform.WebOffice.FileType="<%=mFileType%>"; //FileType:文档类型 .doc .xls .wps
  434. webform.WebOffice.UserName="<%=mUserName%>"; //UserName:操作用户名,痕迹保留需要
  435. webform.WebOffice.EditType="<%=mEditType%>"; //EditType:编辑类型 方式一、方式二 <参考技术文档>
  436. //第一位可以为0,1,2,3 其中:0不可编辑;1可以编辑,无痕迹;2可以编辑,有痕迹,不能修订;3可以编辑,有痕迹,能修订;
  437. //第二位可以为0,1 其中:0不可批注,1可以批注。可以参考iWebOffice2009的EditType属性,详细参考技术白皮书
  438. webform.WebOffice.MaxFileSize = 4 * 1024; //最大的文档大小控制,默认是8M,现在设置成4M。
  439. webform.WebOffice.Language="CH"; //Language:多语言支持显示选择 CH简体 TW繁体 EN英文
  440. //webform.WebOffice.ShowWindow = true; //控制显示打开或保存文档的进度窗口,默认不显示
  441. webform.WebOffice.PenColor="#FF0000"; //PenColor:默认批注颜色
  442. webform.WebOffice.PenWidth="1"; //PenWidth:默认批注笔宽
  443. webform.WebOffice.Print="1"; //Print:默认是否可以打印:1可以打印批注,0不可以打印批注
  444. webform.WebOffice.ShowToolBar="0"; //ShowToolBar:是否显示工具栏:1显示,0不显示
  445. //WebSetRibbonUIXML(); //控制OFFICE2007的选项卡显示
  446. webform.WebOffice.WebOpen(); //打开该文档 交互OfficeServer 调出文档OPTION="LOADFILE" 调出模板OPTION="LOADTEMPLATE" <参考技术文档>
  447. webform.WebOffice.ShowType=<%=mShowType%>; //文档显示方式 1:表示文字批注 2:表示手写批注 0:表示文档核稿
  448. if (!webform.WebOffice.WebLoadBookmarks()){ //交互OfficeServer的OPTION="LOADBOOKMARKS"
  449. //StatusMsg(webform.WebOffice.Status);
  450. }else{
  451. //StatusMsg(webform.WebOffice.Status);
  452. }
  453. ConvertSignature();//将html的章转到office中的test1标签处
  454. }catch(e){
  455. alert(e.description); //显示出错误信息
  456. }
  457. }
  458. function SetCharacterEncoding()
  459. {
  460. //var mValue = window.prompt("请输入信息字符集 0:ANSI 1:UTF-8 2:为HTML签章采用字符集","2");
  461. //if(mValue == null){
  462. //return;
  463. //}
  464. //webform.SignatureControl.SetParam("SIGNRESULTUTF8","0");
  465. //设置SignatureValueStr结果字符集
  466. var mLength=document.getElementsByName("iHtmlSignature").length;
  467. var mSigOrder = "";
  468. for (var i=mLength-1;i>=0;i--){
  469. var vItem=document.getElementsByName("iHtmlSignature")[i];
  470. vItem.SetParam('SIGNRESULTUTF8', "0");
  471. //alert(document.getElementsByName("iHtmlSignature").SignatureValueStr);
  472. }
  473. }
  474. //HTML签章转换为OFFICE签章
  475. function ConvertSignature(){
  476. //alert("222");
  477. //解决章上的乱码问题
  478. SetCharacterEncoding();
  479. var mResult = true;
  480. var BmkName = "test1";
  481. var vItem = document.getElementsByName("iHtmlSignature");
  482. if(vItem.length<=0){
  483. //alert("请先点击上面的‘HTML签章’,至少盖一个HTML签章!");
  484. return;
  485. }
  486. SetActiveDocument();
  487. webform.WebOffice.SignatureAPI.BeginLoadSignature();
  488. try{
  489. // webform.WebOffice.SignatureAPI.LockDocument(1); //锁定文档
  490. var mLength = vItem.length;
  491. var books= webform.WebOffice.WebObject.Bookmarks;
  492. if(books.Exists(BmkName)) {
  493. webform.WebOffice.WebObject.Bookmarks.Item(BmkName).Range.Select();
  494. //webform.WebOffice.SignatureAPI.UnLockDocument();
  495. //alert("签章高度和宽度:"+vItem[0].clientHeight+"||"+vItem[0].clientWidth);
  496. if( vItem[0].Check){//如果章验证失败,验证结果被篡改的章是不转的
  497. //webform.WebOffice.SignatureAPI.ConvertHTML2Office(vItem[0].SignatureValueStr);
  498. var vItem2=document.getElementsByName("iHtmlSignature")[0];
  499. var signatureData = vItem2.SignatureValueStr;
  500. //alert('test');
  501. vItem2.SignatureOrder=0;
  502. zhuanzhang(signatureData);
  503. //zhuanzhang(vItem[0].SignatureValueStr);
  504. }
  505. }
  506. //webform.WebOffice.SignatureAPI.LockDocument(1); //锁定文档
  507. webform.WebOffice.SignatureAPI.EndLoadSignature();
  508. webform.WebOffice.SignatureAPI.ReleaseActiveDocument();
  509. }catch(e){
  510. alert(e.discription);
  511. mResult= false;
  512. }
  513. //webform.WebOffice.WebObject.NormalTemplate.Saved = true;
  514. return mResult;
  515. }
  516. function zhuanzhang(htmlsigndata){
  517. //alert(htmlsigndata);
  518. //webform.WebOffice.SignatureAPI.ConvertHTML2Office("1212121");
  519. //webform.SignatureAPI.ConvertHTML2Office(htmlsigndata);
  520. webform.WebOffice.SignatureAPI.ConvertHTML2Office(htmlsigndata);
  521. }
  522. //作用:退出iWebOffice
  523. function UnLoad(){
  524. DocForm.SignatureControl.DeleteSignature();
  525. try{
  526. webform.SignatureAPI.ReleaseActiveDocument();
  527. if (!webform.WebOffice.WebClose()){
  528. StatusMsg(webform.WebOffice.Status);
  529. }else{
  530. StatusMsg("关闭文档...");
  531. }
  532. }catch(e){
  533. //alert(e.description);
  534. }
  535. }
  536. //作用:存为本地文件
  537. function WebSaveLocal(){
  538. try{
  539. webform.WebOffice.WebSaveLocal();
  540. StatusMsg(webform.WebOffice.Status);
  541. }catch(e){alert(e.description);}
  542. }
  543. //作用:设置活动文档对象
  544. function SetActiveDocument(){
  545. try{
  546. if (webform.WebOffice.FileType==".doc"){
  547. webform.WebOffice.SignatureAPI.ActiveDocument = webform.WebOffice.WebObject; //设置WORD对象
  548. }
  549. }catch(e){
  550. alert(e.description);
  551. }
  552. }
  553. function createSign(){
  554. try{
  555. SetActiveDocument(); //设置活动文档
  556. if(webform.WebOffice.SignatureAPI.SelectionState==0){ //成功
  557. //webform.WebOffice.SignatureAPI.SelectIndex = GetSign('签名');
  558. webform.WebOffice.SignatureAPI.CreateSignature(1); //建立电子签章
  559. webform.WebOffice.SignatureAPI.ReleaseActiveDocument();
  560. }
  561. }catch(e){alert(e.description)}
  562. }
  563. //test
  564. function test(){
  565. try{
  566. var msg = webform.WebOffice.SignatureAPI.CreateComment("2年");
  567. if(msg){
  568. SetActiveDocument();
  569. webform.WebOffice.SignatureAPI.ActionAddinButton(2);
  570. //webform..SignatureAPI.ReleaseActiveDocument();
  571. }else{
  572. alert(msg);
  573. }
  574. }
  575. catch(e){alert(e.description);}
  576. try{
  577. //var table = webform.WebOffice.WebObject.Tables.Add(webform.WebOffice.WebObject.Bookmarks("test").Range,4,4);
  578. //table.Borders.Enable=true;
  579. //alert(webform.WebOffice.WebObject.FormFields("test1").Range);
  580. /*
  581. var myTable = webform.WebOffice.WebObject.Tables.Add(webform.WebOffice.WebObject.FormFields("test1").Range,4,3);
  582. myTable.Borders.InsideLineStyle = 1;
  583. myTable.Borders.OutsideLineStyle = 1;
  584. var Selection =webform.WebOffice.WebObject.Application.Range;
  585. //books("test").Range.Select();
  586. Selection.InsertFile(path);
  587. */
  588. return;
  589. // SetActiveDocument(); //设置活动文档
  590. //webform.WebOffice.SignatureAPI.SelectIndex = GetSign('8365');
  591. // webform.WebOffice.SignatureAPI.ActionAddinButton(1);//签章参数
  592. // alert(webform.WebOffice.SignatureAPI.SelectionState);
  593. // webform.WebOffice.SignatureAPI.SetSignatureParam("MousePositioning","1");
  594. //webform.WebOffice.SignatureAPI.ActionAddinButton(1);
  595. // webform.WebOffice.WebObject.Bookmarks.Item("test").Range.Select();
  596. // var Selection= webform.WebOffice.Application.Selection;
  597. // webform.WebOffice.WebObject.Application.Selection.InlineShapes.AddPicture("c:\\1.jpg",false,true);
  598. //var Selection = wd.Application.Selection;
  599. //下面方法中第一个参数为水印图片路径
  600. //Selection.HeaderFooter.Shapes.AddPicture("c:\11.gif", false, true);
  601. var books= webform.WebOffice.WebObject.Bookmarks;
  602. var Selection =webform.WebOffice.WebObject.Application.Selection;
  603. //books("test").Range.Select();
  604. Selection.GoTo(-1,0,0,"test");
  605. Selection.MoveDown(5,5);
  606. Selection.TypeParagraph();//回车
  607. Selection.text = "[描述]";//书签描述
  608. books.Add("名称",Selection);//光标位置 插入书签
  609. }catch(e){
  610. alert(e.description);
  611. }finally{
  612. // webform.WebOffice.SignatureAPI.ReleaseActiveDocument();
  613. }
  614. }
  615. //无对话框签章
  616. function CreateNoneSignature(){
  617. try{
  618. var fc,fd,BmkName;
  619. SetActiveDocument(); //设置活动文档
  620. BmkName = "test";//首先在文档上添加一个名称 test 的标签
  621. webform.WebOffice.SignatureAPI.BeginLoadSignature();
  622. if(webform.WebOffice.WebObject.Bookmarks.Exists(BmkName))
  623. {
  624. webform.WebOffice.WebObject.Bookmarks.Item(BmkName).Range.Select();
  625. if(webform.WebOffice.SignatureAPI.SelectionState == 0)//成功
  626. {
  627. webform.WebOffice.SignatureAPI.CreateGroupSignature(true, 0, "000000");//true,密钥盘签章索引,签章密码
  628. }
  629. }else{
  630. webform.WebOffice.SignatureAPI.CreateGroupSignature(true, 0, "000000");//true,密钥盘签章索引,签章密码
  631. }
  632. webform.WebOffice.SignatureAPI.EndLoadSignature();
  633. webform.WebOffice.SignatureAPI.ReleaseActiveDocument();
  634. }catch(e){alert(e.discription);}
  635. }
  636. </script>
  637. </head>
  638. <body id="documentPrintID" onLoad="Load();"
  639. onUnload="UnLoad();">
  640. <!-- <input type="button" onclick="WebSaveLocal();" class="inputOut" onMouseOver="this.className='inputOver'" onMouseOut="this.className='inputOut'" /> -->
  641. <form name="DocForm">
  642. <input type="hidden" name="DocumentID" value="<%=DocumentID%>">
  643. <OBJECT id="SignatureControl"
  644. classid="clsid:D85C89BE-263C-472D-9B6B-5264CD85B36E"
  645. codebase="iSignatureHTML.cab#version=8,2,2,56" width="0" height="0">
  646. <param name="ServiceUrl" value="<%=mServerUrl%>">
  647. <!--读去数据库相关信息-->
  648. <param name="PrintControlType" value=2>
  649. <!--打印控制方式(0:不控制 1:签章服务器控制 2:开发商控制)-->
  650. </OBJECT>
  651. <div style="width: 100%; text-align: center;">
  652. <table id="tab"
  653. style="width:595px;border-collapse:collapse;empty-cells:show;" align="center"
  654. border="0" cellspacing="0" cellpadding="0">
  655. <thead>
  656. <tr valign="top" style="height: 20px;">
  657. <td colspan="7"></td>
  658. </tr>
  659. <!-- title -->
  660. <tr valign="top" style="height: 33px;">
  661. <td></td>
  662. <td
  663. style="text-align: center; text-indent: 0px; vertical-align: middle;"
  664. colspan="5"><span
  665. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 20px; font-weight: bold;">
  666. 危险货物港口作业申请书 </span>
  667. </td>
  668. <td></td>
  669. </tr>
  670. </thead>
  671. <tbody>
  672. <tr valign="top" style="height: 23px;">
  673. <td></td>
  674. <td
  675. style="text-align: left; text-indent: 0px; padding-left: 10px; vertical-align: middle;">
  676. <span
  677. style="color: rgb(0, 0, 0); line-height: 1; font-family: 宋体; font-size: 12px;">
  678. 编号: </span>
  679. </td>
  680. <td
  681. style="text-align: left; text-indent: 0px; vertical-align: middle;"
  682. colspan="4"><input type="text" name="BH" value="<%=BH%>"
  683. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  684. onfocus="this.blur();" /></td>
  685. <td></td>
  686. </tr>
  687. <tr valign="top" style="height: 25px;">
  688. <td></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. colspan="2"><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="ZYDW" value="<%=ZYDW%>"
  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
  701. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  702. <span
  703. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  704. 作业委托人 </span>
  705. </td>
  706. <td
  707. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  708. <input type="text" name="ZYWTR" value="<%=ZYWTR%>"
  709. style='width: 100%; border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  710. onfocus="this.blur();" /></td>
  711. <td></td>
  712. </tr>
  713. <tr valign="top" style="height: 25px;">
  714. <td></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. colspan="2"><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="CM" value="<%=CM%>"
  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
  727. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  728. <span
  729. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  730. 现场管理负责人 </span>
  731. </td>
  732. <td
  733. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  734. <input type="text" name="XCGLFZR" value="<%=XCGLFZR%>"
  735. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  736. onfocus="this.blur();" /></td>
  737. <td></td>
  738. </tr>
  739. <tr valign="top" style="height: 25px;">
  740. <td></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. colspan="2"><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="WXHWMCBH" value="<%=WXHWMCBH%>"
  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
  753. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  754. <span
  755. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  756. 物品编号 </span>
  757. </td>
  758. <td
  759. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  760. <input type="text" name="WPBH" value="<%=WPBH%>"
  761. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  762. onfocus="this.blur();" /></td>
  763. <td></td>
  764. </tr>
  765. <tr valign="top" style="height: 25px;">
  766. <td></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. colspan="2"><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="JSPM" value="<%=JSPM%>"
  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
  779. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  780. <span
  781. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  782. 包装 </span>
  783. </td>
  784. <td
  785. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  786. <input type="text" name="BZ" value="<%=BZ%>"
  787. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  788. onfocus="this.blur();" /></td>
  789. <td></td>
  790. </tr>
  791. <tr valign="top" style="height: 25px;">
  792. <td></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. colspan="2"><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="WXPLB" value="<%=WXPLB%>"
  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
  805. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  806. <span
  807. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  808. 包装类别 </span>
  809. </td>
  810. <td
  811. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  812. <input type="text" name="BYZD4" value="<%=BYZD4%>"
  813. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  814. onfocus="this.blur();" /></td>
  815. <td></td>
  816. </tr>
  817. <tr valign="top" style="height: 25px;">
  818. <td></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. colspan="2"><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="INOROUT" value="<%=INOROUT%>"
  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
  831. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  832. <span
  833. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  834. 作业数量(吨) </span>
  835. </td>
  836. <td
  837. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  838. <input type="text" name="ZYSL" value="<%=ZYSL%>"
  839. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  840. onfocus="this.blur();" /></td>
  841. <td></td>
  842. </tr>
  843. <tr valign="top" style="height: 25px;">
  844. <td></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. colspan="2"><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="SG" value="<%=SG%>"
  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
  857. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  858. <span
  859. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  860. 下港 </span>
  861. </td>
  862. <td
  863. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  864. <input type="text" name="XG" value="<%=XG%>"
  865. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  866. onfocus="this.blur();" /></td>
  867. <td></td>
  868. </tr>
  869. <tr valign="top" style="height: 25px;">
  870. <td></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. colspan="2"><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="MAO" value="<%=MAO%>"
  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
  883. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  884. <span
  885. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  886. 火灾危险性 </span>
  887. </td>
  888. <td
  889. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  890. <input type="text" name="HZWXX" value="<%=HZWXX%>"
  891. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  892. onfocus="this.blur();" /></td>
  893. <td></td>
  894. </tr>
  895. <tr valign="top" style="height: 25px;">
  896. <td></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. colspan="2"><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="DXDJ" value="<%=DXDJ%>"
  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
  909. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  910. <span
  911. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  912. 污染类别 </span>
  913. </td>
  914. <td
  915. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  916. <input type="text" name="WRLB" value="<%=WRLB%>"
  917. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  918. onfocus="this.blur();" /></td>
  919. <td></td>
  920. </tr>
  921. <tr valign="top" style="height: 25px;">
  922. <td></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. colspan="2"><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="JZXSL" value="<%=JZXSL%>"
  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
  935. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  936. <span
  937. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  938. 航次 </span>
  939. </td>
  940. <td
  941. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  942. <input type="text" name="HC" value="<%=HC%>"
  943. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  944. onfocus="this.blur();" /></td>
  945. <td></td>
  946. </tr>
  947. <tr valign="top" style="height: 25px;">
  948. <td></td>
  949. <td
  950. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  951. colspan="2"><span
  952. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  953. 货物种类 </span>
  954. </td>
  955. <td
  956. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  957. colspan="3"><input type="text" name="HWZL" value="<%=HWZL%>"
  958. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  959. onfocus="this.blur();" /></td>
  960. <td></td>
  961. </tr>
  962. <tr valign="top" style="height: 25px;">
  963. <td></td>
  964. <td
  965. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  966. colspan="2"><span
  967. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  968. 货物形式 </span>
  969. </td>
  970. <td
  971. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  972. colspan="3"><input type="text" name="HWXS" value="<%=HWXS%>"
  973. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  974. onfocus="this.blur();" /></td>
  975. <td></td>
  976. </tr>
  977. <tr valign="top" style="height: 45px;">
  978. <td></td>
  979. <td
  980. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  981. colspan="2"><span
  982. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  983. 理化性质 </span>
  984. </td>
  985. <td
  986. 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;"
  987. colspan="3"><Textarea name="LHXZ" onfocus="this.blur();"
  988. rows="4"
  989. 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>
  990. </td>
  991. <td></td>
  992. </tr>
  993. <tr valign="top" style="height: 25px;">
  994. <td></td>
  995. <td
  996. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  997. colspan="2"><span
  998. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  999. 作业地点 </span>
  1000. </td>
  1001. <td
  1002. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  1003. colspan="3"><input type="text" name="ZYDD" value="<%=ZYDD%>"
  1004. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  1005. onfocus="this.blur();" /></td>
  1006. <td></td>
  1007. </tr>
  1008. <tr valign="top" style="height: 25px;">
  1009. <td></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. colspan="2"><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="ZYSJQ" value="<%=ZYSJQ%>"
  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
  1022. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1023. <span
  1024. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  1025. 作业时间止 </span>
  1026. </td>
  1027. <td
  1028. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1029. <input type="text" name="ZYSJZ" value="<%=ZYSJZ%>"
  1030. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  1031. onfocus="this.blur();" /></td>
  1032. <td></td>
  1033. </tr>
  1034. <tr valign="top" style="height: 83px;">
  1035. <td></td>
  1036. <td
  1037. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  1038. colspan="2"><span
  1039. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  1040. 安全防范措施 </span>
  1041. </td>
  1042. <td
  1043. 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;"
  1044. colspan="3"><Textarea name="AQFFCS" onfocus="this.blur();"
  1045. rows="6"
  1046. 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>
  1047. </td>
  1048. <td></td>
  1049. </tr>
  1050. <tr valign="top" style="height: 25px;">
  1051. <td></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. colspan="2"><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="BGR" value="<%=BGR%>"
  1061. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px; width: 100%;'
  1062. onfocus="this.blur();" /></td>
  1063. <td
  1064. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1065. <span
  1066. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  1067. 联系方式 </span>
  1068. </td>
  1069. <td
  1070. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1071. <input type="text" name="LXFS" value="<%=LXFS%>"
  1072. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  1073. onfocus="this.blur();" /></td>
  1074. <td></td>
  1075. </tr>
  1076. <tr valign="top" style="height: 25px;">
  1077. <td></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. colspan="2"><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="BGSJ" value="<%=BGSJ%>"
  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
  1090. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1091. <span
  1092. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  1093. 申报员证书编号 </span>
  1094. </td>
  1095. <td
  1096. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1097. <input type="text" name="BYZD2" value="<%=BYZD2%>"
  1098. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  1099. onfocus="this.blur();" /></td>
  1100. <td></td>
  1101. </tr>
  1102. <tr valign="top" style="height: 28px;">
  1103. <td></td>
  1104. <td
  1105. style="text-align: center; text-indent: 0px; vertical-align: middle;"
  1106. colspan="5"><span
  1107. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 16px; font-weight: bold;">
  1108. 审核 </span>
  1109. </td>
  1110. <td></td>
  1111. </tr>
  1112. <tr valign="top" style="height: 40px;">
  1113. <td></td>
  1114. <td
  1115. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  1116. colspan="2"><span
  1117. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  1118. 审核意见 </span>
  1119. </td>
  1120. <td
  1121. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1122. <input type="text" name="SHYJ" value="<%=SHYJ%>"
  1123. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  1124. onfocus="this.blur();" /></td>
  1125. <td
  1126. 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;">
  1127. <div id="yfdiv" style="position: absolute;" bgcolor=#ffffff></div>
  1128. </td>
  1129. <td
  1130. 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;">
  1131. </td>
  1132. <td></td>
  1133. </tr>
  1134. <tr valign="top" style="height: 40px;">
  1135. <td></td>
  1136. <td
  1137. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  1138. colspan="2"><span
  1139. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  1140. 审核机构 </span>
  1141. </td>
  1142. <td
  1143. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1144. </td>
  1145. <td
  1146. 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;">
  1147. </td>
  1148. <td
  1149. 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;">
  1150. </td>
  1151. <td></td>
  1152. </tr>
  1153. <tr valign="top" style="height: 25px;">
  1154. <td></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. colspan="2"><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="SHR" value="<%=SHR%>"
  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
  1167. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1168. <span
  1169. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  1170. 审核日期 </span>
  1171. </td>
  1172. <td
  1173. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1174. <input type="text" name="SHSJ" value="<%=SHSJ%>"
  1175. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  1176. onfocus="this.blur();" /></td>
  1177. <td></td>
  1178. </tr>
  1179. <tr valign="top" style="height: 30px;">
  1180. <td></td>
  1181. <td
  1182. style="text-align: center; text-indent: 0px; vertical-align: middle;"
  1183. colspan="5"><span
  1184. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 16px; font-weight: bold;">
  1185. 开工报、完工报 </span>
  1186. </td>
  1187. <td></td>
  1188. </tr>
  1189. <tr valign="top" style="height: 25px;">
  1190. <td></td>
  1191. <td
  1192. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  1193. colspan="2"><span
  1194. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  1195. 靠泊时间 </span>
  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
  1204. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1205. </td>
  1206. <td></td>
  1207. </tr>
  1208. <tr valign="top" style="height: 25px;">
  1209. <td></td>
  1210. <td
  1211. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  1212. colspan="2"><span
  1213. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  1214. 开工时间 </span>
  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. </td>
  1219. <td
  1220. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1221. <span
  1222. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  1223. 完工时间 </span>
  1224. </td>
  1225. <td
  1226. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1227. </td>
  1228. <td></td>
  1229. </tr>
  1230. <tr valign="top" style="height: 20px;">
  1231. <td></td>
  1232. <td
  1233. style="text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  1234. colspan="5"><span
  1235. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px;">
  1236. </span>
  1237. </td>
  1238. <td></td>
  1239. </tr>
  1240. <tr valign="top" style="height: 20px;">
  1241. <td colspan="7"></td>
  1242. </tr>
  1243. </tbody>
  1244. </table>
  1245. </div>
  1246. </form>
  1247. <!--
  1248. <form name="webform" style="display:'';">
  1249. <table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%" >
  1250. <tr>
  1251. <td bgcolor="menu" height="98%" valign="top"><script
  1252. src="../js/iWebOffice2009.js"></script> <script src="../js/iSignatureHTML.js"></script>
  1253. <object id="SignatureAPI" width="0" height="0"
  1254. classid="clsid:79F9A6F8-7DBE-4098-A040-E6E0C3CF2001"
  1255. codebase="iSignatureAPI.ocx#version=9,0,0,316"> </object></td>
  1256. </tr>
  1257. </table>
  1258. </form> -->
  1259. </body>
  1260. </html>