ZysqbpPrintSignature.jsp 56 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379
  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. try{
  424. //以下属性必须设置,实始化iWebOffice
  425. webform.WebOffice.WebUrl="<%=mServerUrl2%>"; //WebUrl:系统服务器路径,与服务器文件交互操作,如保存、打开文档,重要文件
  426. webform.WebOffice.RecordID="<%=DocumentID%>"; //RecordID:本文档记录编号 mRecordID
  427. webform.WebOffice.Template="<%=mTemplate%>"; //Template:模板编号
  428. webform.WebOffice.FileName="<%=mFileName%>"; //FileName:文档名称
  429. webform.WebOffice.FileType="<%=mFileType%>"; //FileType:文档类型 .doc .xls .wps
  430. webform.WebOffice.UserName="<%=mUserName%>"; //UserName:操作用户名,痕迹保留需要
  431. webform.WebOffice.EditType="<%=mEditType%>"; //EditType:编辑类型 方式一、方式二 <参考技术文档>
  432. //第一位可以为0,1,2,3 其中:0不可编辑;1可以编辑,无痕迹;2可以编辑,有痕迹,不能修订;3可以编辑,有痕迹,能修订;
  433. //第二位可以为0,1 其中:0不可批注,1可以批注。可以参考iWebOffice2009的EditType属性,详细参考技术白皮书
  434. webform.WebOffice.MaxFileSize = 4 * 1024; //最大的文档大小控制,默认是8M,现在设置成4M。
  435. webform.WebOffice.Language="CH"; //Language:多语言支持显示选择 CH简体 TW繁体 EN英文
  436. //webform.WebOffice.ShowWindow = true; //控制显示打开或保存文档的进度窗口,默认不显示
  437. webform.WebOffice.PenColor="#FF0000"; //PenColor:默认批注颜色
  438. webform.WebOffice.PenWidth="1"; //PenWidth:默认批注笔宽
  439. webform.WebOffice.Print="1"; //Print:默认是否可以打印:1可以打印批注,0不可以打印批注
  440. webform.WebOffice.ShowToolBar="0"; //ShowToolBar:是否显示工具栏:1显示,0不显示
  441. //WebSetRibbonUIXML(); //控制OFFICE2007的选项卡显示
  442. webform.WebOffice.WebOpen(); //打开该文档 交互OfficeServer 调出文档OPTION="LOADFILE" 调出模板OPTION="LOADTEMPLATE" <参考技术文档>
  443. webform.WebOffice.ShowType=<%=mShowType%>; //文档显示方式 1:表示文字批注 2:表示手写批注 0:表示文档核稿
  444. if (!webform.WebOffice.WebLoadBookmarks()){ //交互OfficeServer的OPTION="LOADBOOKMARKS"
  445. //StatusMsg(webform.WebOffice.Status);
  446. }else{
  447. //StatusMsg(webform.WebOffice.Status);
  448. }
  449. ConvertSignature();//将html的章转到office中的test1标签处
  450. }catch(e){
  451. alert(e.description); //显示出错误信息
  452. }
  453. }
  454. function SetCharacterEncoding()
  455. {
  456. //var mValue = window.prompt("请输入信息字符集 0:ANSI 1:UTF-8 2:为HTML签章采用字符集","2");
  457. //if(mValue == null){
  458. //return;
  459. //}
  460. //webform.SignatureControl.SetParam("SIGNRESULTUTF8","0");
  461. //设置SignatureValueStr结果字符集
  462. var mLength=document.getElementsByName("iHtmlSignature").length;
  463. var mSigOrder = "";
  464. for (var i=mLength-1;i>=0;i--){
  465. var vItem=document.getElementsByName("iHtmlSignature")[i];
  466. vItem.SetParam('SIGNRESULTUTF8', "0");
  467. //alert(document.getElementsByName("iHtmlSignature").SignatureValueStr);
  468. }
  469. }
  470. //HTML签章转换为OFFICE签章
  471. function ConvertSignature(){
  472. //alert("222");
  473. //解决章上的乱码问题
  474. SetCharacterEncoding();
  475. var mResult = true;
  476. var BmkName = "test1";
  477. var vItem = document.getElementsByName("iHtmlSignature");
  478. if(vItem.length<=0){
  479. //alert("请先点击上面的‘HTML签章’,至少盖一个HTML签章!");
  480. return;
  481. }
  482. SetActiveDocument();
  483. webform.WebOffice.SignatureAPI.BeginLoadSignature();
  484. try{
  485. // webform.WebOffice.SignatureAPI.LockDocument(1); //锁定文档
  486. var mLength = vItem.length;
  487. var books= webform.WebOffice.WebObject.Bookmarks;
  488. if(books.Exists(BmkName)) {
  489. webform.WebOffice.WebObject.Bookmarks.Item(BmkName).Range.Select();
  490. //webform.WebOffice.SignatureAPI.UnLockDocument();
  491. //alert("签章高度和宽度:"+vItem[0].clientHeight+"||"+vItem[0].clientWidth);
  492. if( vItem[0].Check){//如果章验证失败,验证结果被篡改的章是不转的
  493. //webform.WebOffice.SignatureAPI.ConvertHTML2Office(vItem[0].SignatureValueStr);
  494. var vItem2=document.getElementsByName("iHtmlSignature")[0];
  495. var signatureData = vItem2.SignatureValueStr;
  496. //alert('test');
  497. vItem2.SignatureOrder=0;
  498. zhuanzhang(signatureData);
  499. //zhuanzhang(vItem[0].SignatureValueStr);
  500. }
  501. }
  502. //webform.WebOffice.SignatureAPI.LockDocument(1); //锁定文档
  503. webform.WebOffice.SignatureAPI.EndLoadSignature();
  504. webform.WebOffice.SignatureAPI.ReleaseActiveDocument();
  505. }catch(e){
  506. alert(e.discription);
  507. mResult= false;
  508. }
  509. //webform.WebOffice.WebObject.NormalTemplate.Saved = true;
  510. return mResult;
  511. }
  512. function zhuanzhang(htmlsigndata){
  513. //alert(htmlsigndata);
  514. //webform.WebOffice.SignatureAPI.ConvertHTML2Office("1212121");
  515. //webform.SignatureAPI.ConvertHTML2Office(htmlsigndata);
  516. webform.WebOffice.SignatureAPI.ConvertHTML2Office(htmlsigndata);
  517. }
  518. //作用:退出iWebOffice
  519. function UnLoad(){
  520. DocForm.SignatureControl.DeleteSignature();
  521. try{
  522. webform.SignatureAPI.ReleaseActiveDocument();
  523. if (!webform.WebOffice.WebClose()){
  524. StatusMsg(webform.WebOffice.Status);
  525. }else{
  526. StatusMsg("关闭文档...");
  527. }
  528. }catch(e){
  529. //alert(e.description);
  530. }
  531. }
  532. //作用:存为本地文件
  533. function WebSaveLocal(){
  534. try{
  535. webform.WebOffice.WebSaveLocal();
  536. StatusMsg(webform.WebOffice.Status);
  537. }catch(e){alert(e.description);}
  538. }
  539. //作用:设置活动文档对象
  540. function SetActiveDocument(){
  541. try{
  542. if (webform.WebOffice.FileType==".doc"){
  543. webform.WebOffice.SignatureAPI.ActiveDocument = webform.WebOffice.WebObject; //设置WORD对象
  544. }
  545. }catch(e){
  546. alert(e.description);
  547. }
  548. }
  549. function createSign(){
  550. try{
  551. SetActiveDocument(); //设置活动文档
  552. if(webform.WebOffice.SignatureAPI.SelectionState==0){ //成功
  553. //webform.WebOffice.SignatureAPI.SelectIndex = GetSign('签名');
  554. webform.WebOffice.SignatureAPI.CreateSignature(1); //建立电子签章
  555. webform.WebOffice.SignatureAPI.ReleaseActiveDocument();
  556. }
  557. }catch(e){alert(e.description)}
  558. }
  559. //test
  560. function test(){
  561. try{
  562. var msg = webform.WebOffice.SignatureAPI.CreateComment("2年");
  563. if(msg){
  564. SetActiveDocument();
  565. webform.WebOffice.SignatureAPI.ActionAddinButton(2);
  566. //webform..SignatureAPI.ReleaseActiveDocument();
  567. }else{
  568. alert(msg);
  569. }
  570. }
  571. catch(e){alert(e.description);}
  572. try{
  573. //var table = webform.WebOffice.WebObject.Tables.Add(webform.WebOffice.WebObject.Bookmarks("test").Range,4,4);
  574. //table.Borders.Enable=true;
  575. //alert(webform.WebOffice.WebObject.FormFields("test1").Range);
  576. /*
  577. var myTable = webform.WebOffice.WebObject.Tables.Add(webform.WebOffice.WebObject.FormFields("test1").Range,4,3);
  578. myTable.Borders.InsideLineStyle = 1;
  579. myTable.Borders.OutsideLineStyle = 1;
  580. var Selection =webform.WebOffice.WebObject.Application.Range;
  581. //books("test").Range.Select();
  582. Selection.InsertFile(path);
  583. */
  584. return;
  585. // SetActiveDocument(); //设置活动文档
  586. //webform.WebOffice.SignatureAPI.SelectIndex = GetSign('8365');
  587. // webform.WebOffice.SignatureAPI.ActionAddinButton(1);//签章参数
  588. // alert(webform.WebOffice.SignatureAPI.SelectionState);
  589. // webform.WebOffice.SignatureAPI.SetSignatureParam("MousePositioning","1");
  590. //webform.WebOffice.SignatureAPI.ActionAddinButton(1);
  591. // webform.WebOffice.WebObject.Bookmarks.Item("test").Range.Select();
  592. // var Selection= webform.WebOffice.Application.Selection;
  593. // webform.WebOffice.WebObject.Application.Selection.InlineShapes.AddPicture("c:\\1.jpg",false,true);
  594. //var Selection = wd.Application.Selection;
  595. //下面方法中第一个参数为水印图片路径
  596. //Selection.HeaderFooter.Shapes.AddPicture("c:\11.gif", false, true);
  597. var books= webform.WebOffice.WebObject.Bookmarks;
  598. var Selection =webform.WebOffice.WebObject.Application.Selection;
  599. //books("test").Range.Select();
  600. Selection.GoTo(-1,0,0,"test");
  601. Selection.MoveDown(5,5);
  602. Selection.TypeParagraph();//回车
  603. Selection.text = "[描述]";//书签描述
  604. books.Add("名称",Selection);//光标位置 插入书签
  605. }catch(e){
  606. alert(e.description);
  607. }finally{
  608. // webform.WebOffice.SignatureAPI.ReleaseActiveDocument();
  609. }
  610. }
  611. //无对话框签章
  612. function CreateNoneSignature(){
  613. try{
  614. var fc,fd,BmkName;
  615. SetActiveDocument(); //设置活动文档
  616. BmkName = "test";//首先在文档上添加一个名称 test 的标签
  617. webform.WebOffice.SignatureAPI.BeginLoadSignature();
  618. if(webform.WebOffice.WebObject.Bookmarks.Exists(BmkName))
  619. {
  620. webform.WebOffice.WebObject.Bookmarks.Item(BmkName).Range.Select();
  621. if(webform.WebOffice.SignatureAPI.SelectionState == 0)//成功
  622. {
  623. webform.WebOffice.SignatureAPI.CreateGroupSignature(true, 0, "000000");//true,密钥盘签章索引,签章密码
  624. }
  625. }else{
  626. webform.WebOffice.SignatureAPI.CreateGroupSignature(true, 0, "000000");//true,密钥盘签章索引,签章密码
  627. }
  628. webform.WebOffice.SignatureAPI.EndLoadSignature();
  629. webform.WebOffice.SignatureAPI.ReleaseActiveDocument();
  630. }catch(e){alert(e.discription);}
  631. }
  632. </script>
  633. </head>
  634. <body id="documentPrintID" class="Noprint" onLoad="Load();"
  635. onUnload="UnLoad();">
  636. <input type="button" onclick="WebSaveLocal();" class="inputOut" onMouseOver="this.className='inputOver'" onMouseOut="this.className='inputOut'" />
  637. <form name="DocForm">
  638. <input type="hidden" name="DocumentID" value="<%=DocumentID%>">
  639. <OBJECT id="SignatureControl"
  640. classid="clsid:D85C89BE-263C-472D-9B6B-5264CD85B36E"
  641. codebase="iSignatureHTML.cab#version=8,2,2,56" width="0" height="0">
  642. <param name="ServiceUrl" value="<%=mServerUrl%>">
  643. <!--读去数据库相关信息-->
  644. <param name="PrintControlType" value=2>
  645. <!--打印控制方式(0:不控制 1:签章服务器控制 2:开发商控制)-->
  646. </OBJECT>
  647. <div style="width: 100%; text-align: center;">
  648. <table id="tab"
  649. style="width: 595px; border-collapse: collapse; empty-cells: show; background-color: "
  650. border="0" cellspacing="0" cellpadding="0">
  651. <thead>
  652. <tr valign="top" style="height: 20px;">
  653. <td colspan="7"></td>
  654. </tr>
  655. <!-- title -->
  656. <tr valign="top" style="height: 33px;">
  657. <td></td>
  658. <td
  659. style="text-align: center; text-indent: 0px; vertical-align: middle;"
  660. colspan="5"><span
  661. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 20px; font-weight: bold;">
  662. 危险货物港口作业申请书 </span>
  663. </td>
  664. <td></td>
  665. </tr>
  666. </thead>
  667. <tbody>
  668. <tr valign="top" style="height: 23px;">
  669. <td></td>
  670. <td
  671. style="text-align: left; text-indent: 0px; padding-left: 10px; vertical-align: middle;">
  672. <span
  673. style="color: rgb(0, 0, 0); line-height: 1; font-family: 宋体; font-size: 12px;">
  674. 编号: </span>
  675. </td>
  676. <td
  677. style="text-align: left; text-indent: 0px; vertical-align: middle;"
  678. colspan="4"><input type="text" name="BH" value="<%=BH%>"
  679. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  680. onfocus="this.blur();" /></td>
  681. <td></td>
  682. </tr>
  683. <tr valign="top" style="height: 25px;">
  684. <td></td>
  685. <td
  686. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  687. colspan="2"><span
  688. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  689. 作业单位 </span>
  690. </td>
  691. <td
  692. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  693. <input type="text" name="ZYDW" value="<%=ZYDW%>"
  694. style='width: 100%; border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  695. onfocus="this.blur();" /></td>
  696. <td
  697. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  698. <span
  699. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  700. 作业委托人 </span>
  701. </td>
  702. <td
  703. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  704. <input type="text" name="ZYWTR" value="<%=ZYWTR%>"
  705. style='width: 100%; border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  706. onfocus="this.blur();" /></td>
  707. <td></td>
  708. </tr>
  709. <tr valign="top" style="height: 25px;">
  710. <td></td>
  711. <td
  712. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  713. colspan="2"><span
  714. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  715. 船名 </span>
  716. </td>
  717. <td
  718. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  719. <input type="text" name="CM" value="<%=CM%>"
  720. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  721. onfocus="this.blur();" /></td>
  722. <td
  723. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  724. <span
  725. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  726. 现场管理负责人 </span>
  727. </td>
  728. <td
  729. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  730. <input type="text" name="XCGLFZR" value="<%=XCGLFZR%>"
  731. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  732. onfocus="this.blur();" /></td>
  733. <td></td>
  734. </tr>
  735. <tr valign="top" style="height: 25px;">
  736. <td></td>
  737. <td
  738. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  739. colspan="2"><span
  740. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  741. 危险品名称 </span>
  742. </td>
  743. <td
  744. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  745. <input type="text" name="WXHWMCBH" value="<%=WXHWMCBH%>"
  746. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  747. onfocus="this.blur();" /></td>
  748. <td
  749. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  750. <span
  751. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  752. 物品编号 </span>
  753. </td>
  754. <td
  755. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  756. <input type="text" name="WPBH" value="<%=WPBH%>"
  757. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  758. onfocus="this.blur();" /></td>
  759. <td></td>
  760. </tr>
  761. <tr valign="top" style="height: 25px;">
  762. <td></td>
  763. <td
  764. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  765. colspan="2"><span
  766. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  767. 技术品名 </span>
  768. </td>
  769. <td
  770. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  771. <input type="text" name="JSPM" value="<%=JSPM%>"
  772. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  773. onfocus="this.blur();" /></td>
  774. <td
  775. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  776. <span
  777. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  778. 包装 </span>
  779. </td>
  780. <td
  781. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  782. <input type="text" name="BZ" value="<%=BZ%>"
  783. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  784. onfocus="this.blur();" /></td>
  785. <td></td>
  786. </tr>
  787. <tr valign="top" style="height: 25px;">
  788. <td></td>
  789. <td
  790. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  791. colspan="2"><span
  792. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  793. 类别和项别 </span>
  794. </td>
  795. <td
  796. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  797. <input type="text" name="WXPLB" value="<%=WXPLB%>"
  798. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  799. onfocus="this.blur();" /></td>
  800. <td
  801. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  802. <span
  803. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  804. 包装类别 </span>
  805. </td>
  806. <td
  807. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  808. <input type="text" name="BYZD4" value="<%=BYZD4%>"
  809. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  810. onfocus="this.blur();" /></td>
  811. <td></td>
  812. </tr>
  813. <tr valign="top" style="height: 25px;">
  814. <td></td>
  815. <td
  816. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  817. colspan="2"><span
  818. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  819. 进出港 </span>
  820. </td>
  821. <td
  822. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  823. <input type="text" name="INOROUT" value="<%=INOROUT%>"
  824. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  825. onfocus="this.blur();" /></td>
  826. <td
  827. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  828. <span
  829. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  830. 作业数量(吨) </span>
  831. </td>
  832. <td
  833. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  834. <input type="text" name="ZYSL" value="<%=ZYSL%>"
  835. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  836. onfocus="this.blur();" /></td>
  837. <td></td>
  838. </tr>
  839. <tr valign="top" style="height: 25px;">
  840. <td></td>
  841. <td
  842. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  843. colspan="2"><span
  844. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  845. 上港 </span>
  846. </td>
  847. <td
  848. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  849. <input type="text" name="SG" value="<%=SG%>"
  850. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  851. onfocus="this.blur();" /></td>
  852. <td
  853. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  854. <span
  855. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  856. 下港 </span>
  857. </td>
  858. <td
  859. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  860. <input type="text" name="XG" value="<%=XG%>"
  861. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  862. onfocus="this.blur();" /></td>
  863. <td></td>
  864. </tr>
  865. <tr valign="top" style="height: 25px;">
  866. <td></td>
  867. <td
  868. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  869. colspan="2"><span
  870. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  871. 内外贸 </span>
  872. </td>
  873. <td
  874. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  875. <input type="text" name="MAO" value="<%=MAO%>"
  876. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  877. onfocus="this.blur();" /></td>
  878. <td
  879. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  880. <span
  881. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  882. 火灾危险性 </span>
  883. </td>
  884. <td
  885. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  886. <input type="text" name="HZWXX" value="<%=HZWXX%>"
  887. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  888. onfocus="this.blur();" /></td>
  889. <td></td>
  890. </tr>
  891. <tr valign="top" style="height: 25px;">
  892. <td></td>
  893. <td
  894. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  895. colspan="2"><span
  896. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  897. 毒性等级 </span>
  898. </td>
  899. <td
  900. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  901. <input type="text" name="DXDJ" value="<%=DXDJ%>"
  902. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  903. onfocus="this.blur();" /></td>
  904. <td
  905. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  906. <span
  907. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  908. 污染类别 </span>
  909. </td>
  910. <td
  911. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  912. <input type="text" name="WRLB" value="<%=WRLB%>"
  913. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  914. onfocus="this.blur();" /></td>
  915. <td></td>
  916. </tr>
  917. <tr valign="top" style="height: 25px;">
  918. <td></td>
  919. <td
  920. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  921. colspan="2"><span
  922. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  923. 集装箱数量 </span>
  924. </td>
  925. <td
  926. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  927. <input type="text" name="JZXSL" value="<%=JZXSL%>"
  928. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  929. onfocus="this.blur();" /></td>
  930. <td
  931. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  932. <span
  933. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  934. 航次 </span>
  935. </td>
  936. <td
  937. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  938. <input type="text" name="HC" value="<%=HC%>"
  939. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  940. onfocus="this.blur();" /></td>
  941. <td></td>
  942. </tr>
  943. <tr valign="top" style="height: 25px;">
  944. <td></td>
  945. <td
  946. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  947. colspan="2"><span
  948. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  949. 货物种类 </span>
  950. </td>
  951. <td
  952. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  953. colspan="3"><input type="text" name="HWZL" value="<%=HWZL%>"
  954. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  955. onfocus="this.blur();" /></td>
  956. <td></td>
  957. </tr>
  958. <tr valign="top" style="height: 25px;">
  959. <td></td>
  960. <td
  961. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  962. colspan="2"><span
  963. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  964. 货物形式 </span>
  965. </td>
  966. <td
  967. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  968. colspan="3"><input type="text" name="HWXS" value="<%=HWXS%>"
  969. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  970. onfocus="this.blur();" /></td>
  971. <td></td>
  972. </tr>
  973. <tr valign="top" style="height: 45px;">
  974. <td></td>
  975. <td
  976. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  977. colspan="2"><span
  978. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  979. 理化性质 </span>
  980. </td>
  981. <td
  982. 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;"
  983. colspan="3"><Textarea name="LHXZ" onfocus="this.blur();"
  984. rows="4"
  985. 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>
  986. </td>
  987. <td></td>
  988. </tr>
  989. <tr valign="top" style="height: 25px;">
  990. <td></td>
  991. <td
  992. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  993. colspan="2"><span
  994. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  995. 作业地点 </span>
  996. </td>
  997. <td
  998. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  999. colspan="3"><input type="text" name="ZYDD" value="<%=ZYDD%>"
  1000. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  1001. onfocus="this.blur();" /></td>
  1002. <td></td>
  1003. </tr>
  1004. <tr valign="top" style="height: 25px;">
  1005. <td></td>
  1006. <td
  1007. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  1008. colspan="2"><span
  1009. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  1010. 作业时间起 </span>
  1011. </td>
  1012. <td
  1013. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1014. <input type="text" name="ZYSJQ" value="<%=ZYSJQ%>"
  1015. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  1016. onfocus="this.blur();" /></td>
  1017. <td
  1018. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1019. <span
  1020. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  1021. 作业时间止 </span>
  1022. </td>
  1023. <td
  1024. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1025. <input type="text" name="ZYSJZ" value="<%=ZYSJZ%>"
  1026. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  1027. onfocus="this.blur();" /></td>
  1028. <td></td>
  1029. </tr>
  1030. <tr valign="top" style="height: 83px;">
  1031. <td></td>
  1032. <td
  1033. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  1034. colspan="2"><span
  1035. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  1036. 安全防范措施 </span>
  1037. </td>
  1038. <td
  1039. 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;"
  1040. colspan="3"><Textarea name="AQFFCS" onfocus="this.blur();"
  1041. rows="6"
  1042. 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>
  1043. </td>
  1044. <td></td>
  1045. </tr>
  1046. <tr valign="top" style="height: 25px;">
  1047. <td></td>
  1048. <td
  1049. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  1050. colspan="2"><span
  1051. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  1052. 报告人 </span>
  1053. </td>
  1054. <td
  1055. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1056. <input type="text" name="BGR" value="<%=BGR%>"
  1057. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px; width: 100%;'
  1058. onfocus="this.blur();" /></td>
  1059. <td
  1060. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1061. <span
  1062. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  1063. 联系方式 </span>
  1064. </td>
  1065. <td
  1066. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1067. <input type="text" name="LXFS" value="<%=LXFS%>"
  1068. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  1069. onfocus="this.blur();" /></td>
  1070. <td></td>
  1071. </tr>
  1072. <tr valign="top" style="height: 25px;">
  1073. <td></td>
  1074. <td
  1075. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  1076. colspan="2"><span
  1077. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  1078. 报告时间 </span>
  1079. </td>
  1080. <td
  1081. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1082. <input type="text" name="BGSJ" value="<%=BGSJ%>"
  1083. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  1084. onfocus="this.blur();" /></td>
  1085. <td
  1086. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1087. <span
  1088. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  1089. 申报员证书编号 </span>
  1090. </td>
  1091. <td
  1092. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1093. <input type="text" name="BYZD2" value="<%=BYZD2%>"
  1094. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  1095. onfocus="this.blur();" /></td>
  1096. <td></td>
  1097. </tr>
  1098. <tr valign="top" style="height: 28px;">
  1099. <td></td>
  1100. <td
  1101. style="text-align: center; text-indent: 0px; vertical-align: middle;"
  1102. colspan="5"><span
  1103. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 16px; font-weight: bold;">
  1104. 审核 </span>
  1105. </td>
  1106. <td></td>
  1107. </tr>
  1108. <tr valign="top" style="height: 40px;">
  1109. <td></td>
  1110. <td
  1111. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  1112. colspan="2"><span
  1113. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  1114. 审核意见 </span>
  1115. </td>
  1116. <td
  1117. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1118. <input type="text" name="SHYJ" value="<%=SHYJ%>"
  1119. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  1120. onfocus="this.blur();" /></td>
  1121. <td
  1122. 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;">
  1123. <div id="yfdiv" style="position: absolute;" bgcolor=#ffffff></div>
  1124. </td>
  1125. <td
  1126. 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;">
  1127. </td>
  1128. <td></td>
  1129. </tr>
  1130. <tr valign="top" style="height: 40px;">
  1131. <td></td>
  1132. <td
  1133. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  1134. colspan="2"><span
  1135. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  1136. 审核机构 </span>
  1137. </td>
  1138. <td
  1139. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1140. </td>
  1141. <td
  1142. 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;">
  1143. </td>
  1144. <td
  1145. 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;">
  1146. </td>
  1147. <td></td>
  1148. </tr>
  1149. <tr valign="top" style="height: 25px;">
  1150. <td></td>
  1151. <td
  1152. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  1153. colspan="2"><span
  1154. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  1155. 审核人 </span>
  1156. </td>
  1157. <td
  1158. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1159. <input type="text" name="SHR" value="<%=SHR%>"
  1160. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  1161. onfocus="this.blur();" /></td>
  1162. <td
  1163. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1164. <span
  1165. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  1166. 审核日期 </span>
  1167. </td>
  1168. <td
  1169. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1170. <input type="text" name="SHSJ" value="<%=SHSJ%>"
  1171. style='border-left: 0px; border-top: 0px; border-right: 0px; border-bottom: 0px; font-family: 宋体; font-size: 12px;'
  1172. onfocus="this.blur();" /></td>
  1173. <td></td>
  1174. </tr>
  1175. <tr valign="top" style="height: 30px;">
  1176. <td></td>
  1177. <td
  1178. style="text-align: center; text-indent: 0px; vertical-align: middle;"
  1179. colspan="5"><span
  1180. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 16px; font-weight: bold;">
  1181. 开工报、完工报 </span>
  1182. </td>
  1183. <td></td>
  1184. </tr>
  1185. <tr valign="top" style="height: 25px;">
  1186. <td></td>
  1187. <td
  1188. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  1189. colspan="2"><span
  1190. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  1191. 靠泊时间 </span>
  1192. </td>
  1193. <td
  1194. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1195. </td>
  1196. <td
  1197. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1198. </td>
  1199. <td
  1200. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1201. </td>
  1202. <td></td>
  1203. </tr>
  1204. <tr valign="top" style="height: 25px;">
  1205. <td></td>
  1206. <td
  1207. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  1208. colspan="2"><span
  1209. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  1210. 开工时间 </span>
  1211. </td>
  1212. <td
  1213. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1214. </td>
  1215. <td
  1216. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1217. <span
  1218. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px; font-weight: bold;">
  1219. 完工时间 </span>
  1220. </td>
  1221. <td
  1222. style="border: 1px solid rgb(0, 0, 0); border-image: none; text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;">
  1223. </td>
  1224. <td></td>
  1225. </tr>
  1226. <tr valign="top" style="height: 20px;">
  1227. <td></td>
  1228. <td
  1229. style="text-align: left; text-indent: 0px; padding-left: 5px; vertical-align: middle;"
  1230. colspan="5"><span
  1231. style="color: rgb(0, 0, 0); line-height: 1.1406; font-family: 宋体; font-size: 12px;">
  1232. </span>
  1233. </td>
  1234. <td></td>
  1235. </tr>
  1236. <tr valign="top" style="height: 20px;">
  1237. <td colspan="7"></td>
  1238. </tr>
  1239. </tbody>
  1240. </table>
  1241. </div>
  1242. </form>
  1243. <form name="webform" style="display:'none';">
  1244. <table border="0" cellspacing="0" cellpadding="0" width="100%"
  1245. height="100%">
  1246. <tr>
  1247. <td bgcolor="menu" height="98%" valign="top"><script
  1248. src="../js/iWebOffice2009.js"></script> <script src="../js/iSignatureHTML.js"></script>
  1249. <object id="SignatureAPI" width="0" height="0"
  1250. classid="clsid:79F9A6F8-7DBE-4098-A040-E6E0C3CF2001"
  1251. codebase="iSignatureAPI.ocx#version=9,0,0,316"> </object></td>
  1252. </tr>
  1253. </table>
  1254. </form>
  1255. </body>
  1256. </html>