乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      使用webbrowser進(jìn)行局部打印

       實(shí)力決定地位 2012-01-16

      <html xmlns="http://www./1999/xhtml">
      <head>
          <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
          <title>入庫(kù)單據(jù)</title>
      <script type="text/javascript">
          function PrintSubPage(stylecontent,ContentId) {
              var PrintWin = window.open('about:blank', 'Print');
              PrintWin.document.write('<object id="WebBrowser" width=0 height=0 classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></object>' + document.getElementById(stylecontent).innerHTML + document.getElementById(ContentId).innerHTML);

              //打印ContentId容器中的內(nèi)容。
              PrintWin.document.all.WebBrowser.ExecWB(7, 1);
              PrintWin.close();
              /*
              WebBrowser.ExecWB(6,6)   直接打印
              WebBrowser.ExecWB(8,1)   頁(yè)面設(shè)置
              WebBrowser.ExecWB(7,1)   打印預(yù)覽*/
          }
      </script>

       
       </head>
      <body>
      <%-- <OBJECT classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" height=0 id=wb name=wb width=0></OBJECT> --%>
      <div id="stylediv">
      <style type="text/css">
      #Content{
       /*border:#000 solid 1px;*/
       margin:auto 0;
       padding-left:70px;
       width:1000px;
       height:490px;
      /*text-align:center;*/
      }
       table{
       border:0;
       margin:0;
       padding:0;
       font-size:20px;
       border-collapse:collapse;
       
      }
      #disc,#disc td,#disc th{/*表格邊框樣式*/

      border:1px solid #333;border-collapse:collapse;
      }
      #disc td{/*自動(dòng)換行*/
        word-wrap: break-word;
              word-break: normal;

       }
       .myiput{
        border:0;
        border-bottom:#000 solid 1px;
        
       }
       
       .printW
       {
           background-color:White;
       }
       #disc tr{/*行樣式*/
        line-height:22px;
       }
          #disc th
          {
              font-size:14px;
              font-weight:bold;
          }
          #disc td, #disc th
          {
              text-align:center;
          }
        
          .headtr
          {/*頭部行行高。比如發(fā)票編號(hào)那里3行*/
              line-height:20px;
          }
          </style>

      </div>
       <div id="Content">
      <table width="900" >
        <tr>
          <td>
         <!-- 頭部列-->
         <%=getheader()%>
         <!-- 頭部列-->
          </td>
        </tr>
        <tr>
          <td>
          <table width="900" id="disc">
            <tr>
              <th width="20" rowspan="2" align="center">序號(hào)</th>
              <th width="90" rowspan="2" align="center">編碼</th>
              <th width="173" rowspan="2" align="center">名                稱</th>
              <th width="168" rowspan="2" align="center">規(guī)格及型號(hào)</th>
              <th width="44" rowspan="2" align="center">單位</th>
              <th width="60" rowspan="2" align="center">采購(gòu)數(shù)量</th>
              <th width="60" rowspan="2" align="center">驗(yàn)收數(shù)量</th>
              <th colspan="3"><div align="center" align="center">采購(gòu)價(jià)格</div></th>
              </tr>
            <tr>
              <th width="40">單價(jià)</th>
              <th width="53" align="center">運(yùn)雜費(fèi)</th>
              <th width="78" align="center">金     額</th>
            </tr>
          
               <%--明細(xì)表內(nèi)容--%>
               <%=GetdisList()%>
               <%--明細(xì)表內(nèi)容--%>
              <tr>
              <td colspan="2" align="center"><b>總價(jià)</b></td>
              <td> </td>
              <td> </td>
              <td> </td>
              <td> </td>
              <td> </td>
              <td> </td>
              <td> </td>
              <td runat="server" id="totalaumout"> </td>
            </tr>
          
             </tr>
              <tr height="40" >
              <td colspan="2"  align="left"><b>驗(yàn)收意見(jiàn)</b></td>
              <td colspan="8" id="accep" style=" text-align:left; padding-left:3px;" runat="server" > </td>
            
            </tr>
          </table>
          </td>
        </tr>
        <tr>
          <td>
          <table width="900" id="foottb">
           <tr>
              <td colspan="5"> </td>
            </tr>
            <tr>
              <td>   <b>主管:</b></td>
              <td><b>財(cái)務(wù):</b></td>
              <td><b>保管:</b></td>
              <td><b>采購(gòu):</b></td>
              <td><b>驗(yàn)收:</b></td>
            </tr>
          </table>
          </td>
        </tr>
      </table>
      <div>
      <input type="button" name="btn_print" value="打印" onclick="PrintSubPage('stylediv','Content');" />
      </body>
      </html>

        本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買(mǎi)等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
        轉(zhuǎn)藏 分享 獻(xiàn)花(0

        0條評(píng)論

        發(fā)表

        請(qǐng)遵守用戶 評(píng)論公約

        類似文章 更多