<%@ page language="C#" autoeventwireup="true" inherits="SB_admin_N47_Project_N47_Project_Print, App_Web_gdfbc0dd" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" >
    <title>工作进度跟踪单打印</title>
    <script language="javascript" src="<%=ResolveUrl("~/SB/control/print/LodopFuncs.js?v=1.1")%>"></script>
    <script type="text/javascript" language="javascript" src="<%=ResolveUrl("~/SB/control/easy_ui/jquery.min.js?v=1")%>"></script>
    <script type="text/javascript" language="javascript" src="<%=ResolveUrl("~/SB/control/easy_ui/jquery.easyui.min.js?v=1")%>"></script>
    <script type="text/javascript" language="javascript" src="<%=ResolveUrl("~/SB/control/easy_ui/locale/easyui-lang-zh_CN.js?v=1")%>"></script>
    <link rel="stylesheet" type="text/css" href="<%=ResolveUrl("~/SB/control/easy_ui/themes/bootstrap/easyui.css?v=1")%>" />
    <script type="text/javascript" language="javascript" src="<%=ResolveUrl("~/SB/control/js/My97DatePicker/WdatePicker.js")%>"></script>

    <object id="LODOP" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width="0"
        height="0">
        <embed id="LODOP_EM" type="application/x-print-lodop" width="0" height="0" pluginspage="<%=ResolveUrl("~/SB/control/print/install_lodop.exe")%>"></embed>
    </object>
    <style>
        
    a {
    color: #015BA7;
    }
    a:hover {
	    color: red;
    }
    </style>
</head>
<body>
    <form runat="server" id="form1">
        <div style="border-bottom: solid 1px #c3c3c3; font-size: 14px; margin-bottom: 5px">
            <span style="font-size: 14px"></span>
            <input id="printBtn" type="button" value="打印进度跟踪单" onclick="printTest1()" style="width: 119px" />
        </div>
        
        <asp:Panel ID="Panel" runat="server" Width="100%" Visible="false">
        
            上传Logo（图片宽度173px 高度 46px）：<asp:FileUpload ID="FileUpload" runat="server" />&nbsp;<asp:Button ID="btnUpload" runat="server" Text="上传" OnClick="btnUpload_Click" />
            
        
        </asp:Panel>
        
        <div id="print" style="width: 780px;">
        
        <table width="100%" border="1" cellpadding="5" bordercolor="#00000" style="border: none; font-size:13px;border-collapse: collapse;">
        <tr>
            <td colspan="4" style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none">
            
            <div style="float:left"> 
            
            <img src="logo.gif?t=<%=DateTime.Now.Millisecond %>"  style="width:173px; height:46px" />
            
            </div>
            
            <div style="float:left;width:75%"> 
            
         <div style="float:left; border:solid 1px #c3c3c3;font-size:15px; width: 99%;">
            <div style="background-color:#000000;color:#FFFFFF; width:80px; font-weight:bold; padding:3px;float:left" align="center"> 
            项目名称
            </div>
            <div style="float:left; padding:3px; width:83%"  language="javascript" onclick="return DIV1_onclick()">
                <asp:Literal ID="litp_name" runat="server"></asp:Literal>
            </div>
         </div>
         
         <div style="float:left; margin:5px; margin-left:0px; width:97%":> 
                        <span style="display:block;float:left;width:20%; border:solid 1px #c3c3c3;" >
                        <span style=" display:block; float:left;background-color:whitesmoke;padding:3px; border-right:solid 1px #c3c3c3;">图文</span>
                        
                        <span style=" display:block; float:left;"><asp:CheckBox ID="cbTw" runat="server"  onclick="return false"/></span>
                        </span>
                        <span style="display:block;float:left;width:20%;margin-left:20px;border:solid 1px #c3c3c3;" >
                        <span style="display:block; float:left;background-color:whitesmoke;padding:3px;border-right:solid 1px #c3c3c3;">摄影</span>
                        
                        <span style=" display:block; float:left;"><asp:CheckBox ID="cbsy" runat="server"  onclick="return false" /></span>
                        </span>
                        <span style="display:block;float:left;width:20%;margin-left:20px; border:solid 1px #c3c3c3;" >
                        <span style="display:block; float:left;background-color:whitesmoke;padding:3px;border-right:solid 1px #c3c3c3;">设计</span>
                        
                        <span style=" display:block; float:left;"><asp:CheckBox ID="cbsj" runat="server"  onclick="return false"/></span>
                        </span>
                        <span style="display:block;float:left;width:20%;margin-left:20px; border:solid 1px #c3c3c3;" >
                        <span style="display:block; float:left;background-color:whitesmoke;padding:3px;border-right:solid 1px #c3c3c3;">业务</span>
                        
                        <span style=" display:block; float:left;"><asp:CheckBox ID="cbyw" runat="server"  onclick="return false"/></span>
                        </span>
         </div>
         </div>
         
         
            </td>
        </tr>
            <tr>
                <td colspan="3" style="border:none">

                </td>
            </tr>
            <tr>
                <td style="border:none" colspan="3" >
                
                    <span style="display:block;float:left;width:49%; border-bottom:solid 1px #000;" >客户
                        <asp:Literal  ID="litCustomer" runat="server"></asp:Literal>
                    </span>
                    
                    <span style="display:block;float:left;width:21%; border-bottom:solid 1px #000;margin-left:20px" >部门
                        <asp:Literal ID="litDepart" runat="server"></asp:Literal>
                    </span>
                    <span style="display:block;float:left;width:22%;border-bottom:solid 1px #000;margin-left:20px" >联系人
                        <asp:Literal ID="litLinkMan" runat="server"></asp:Literal>
                    </span>
                    
                </td>
            </tr>
            <tr>
                <td style="border:none" colspan="3">
                    <span style="display:block;float:left;width:10%;" ><b>联系方式</b>：</span>
                    <span style="display:block;float:left;width:27%; border-bottom:solid 1px #000" >TLE
                        <asp:Literal ID="litTLE" runat="server"></asp:Literal>
                    
                    </span>
                    <span style="display:block;float:left;width:27%;border-bottom:solid 1px #000;margin-left:20px" >QQ
                    <asp:Literal ID="litQQ" runat="server"></asp:Literal>
                    </span>    
                    <span style="display:block;float:left;width:28%;border-bottom:solid 1px #000;margin-left:20px" >其他
                    <asp:Literal ID="litContact" runat="server"></asp:Literal>
                    </span>
                </td>
            </tr>
            <tr>
                <td style="border:none" colspan="3">
                    <span style="display:block;float:left;width:10%;" ><b>需完时间</b>：</span>
                    <span style="display:block;float:left;width:27%; border-bottom:solid 1px #000" >方案稿
                        <asp:Literal ID="litFangAnGao" runat="server"></asp:Literal>
                    </span>
                    <span style="display:block;float:left;width:27%;border-bottom:solid 1px #000;margin-left:20px" >制作稿
                        <asp:Literal ID="litZhiZuoGao" runat="server"></asp:Literal>
                    </span>    
                    <span style="display:block;float:left;width:28%;border-bottom:solid 1px #000;margin-left:20px" >全完成
                        <asp:Literal ID="litQuanWanCheng" runat="server"></asp:Literal>
                    </span>
                </td>
            </tr>
            <tr>
                <td style="border:none" colspan="3">
                    <b>工作进度表 </b></td>
            </tr>
            <tr>
                <td align="center" width="20%" >
                    <span style="font-size:14px"> 日期</span></td>
                <td align="center" width="60%" >
                    <span style="font-size:14px">当日工作完成状况</span></td>
                <td align="center" width="20%" >
                    <span style="font-size:14px">操作员</span></td>
            </tr>

            <asp:Repeater ID="rptItem" runat="server">
            <ItemTemplate> 
            <tr>
                <td><%#Eval("ws_date").ToString().Split(' ')[0]%>
                </td>
                <td><%#Eval("ws_content")%>
                </td>
                <td><%#Eval("u_name")%>
                </td>
            </tr>
            </ItemTemplate>
            </asp:Repeater>
            
            <tr>
            <td colspan="3">
                <span style=" font-weight:bold">制作要求</span></td>
            </tr>
            
            <tr>
                <td colspan="3" style="padding:0px">
                
                    <table border="0" cellpadding="5"  cellspacing="0" style="border: none;width:100%" >
                    <tr >
                        <td width="10%" style="border-bottom:solid 1px #000;">
                            规格：</td>
                    <td width="60%" style="border-bottom:solid 1px #000; border-left:solid 1px #000">
                        <asp:Literal ID="litp_spe" runat="server"></asp:Literal>&nbsp;</td>
                    <td style="border-bottom:solid 1px #000; border-left:solid 1px #000">
                        数量：<asp:Literal ID="litp_quantity" runat="server"></asp:Literal>&nbsp;</td>
                    </tr>
                        <tr>
                            <td width="10%" style="border-bottom:solid 1px #000">
                                工艺：</td>
                            <td colspan="2" style="border-bottom:solid 1px #000; border-left:solid 1px #000">
                                <asp:Literal ID="litp_technology" runat="server"></asp:Literal>&nbsp;</td>
                        </tr>
                    <tr>
                        <td colspan="1" width="10%" style="border-bottom:solid 1px #000">
                            材料：</td>
                        <td colspan="2" style="border-bottom:solid 1px #000; border-left:solid 1px #000">
                            <asp:Literal ID="litp_material" runat="server"></asp:Literal>&nbsp;</td>
                    </tr>
                        <tr>
                            <td colspan="1" width="10%" >
                                备注：</td>
                            <td colspan="2" style=" border-left:solid 1px #000">
                                <asp:Literal ID="litp_note" runat="server"></asp:Literal>&nbsp;</td>
                        </tr>
                    </table>
                    
                    
                </td>
            </tr>
            
            
        </table>
        </div>

        <script language="javascript">
         var LODOP = null;
         function printTest1()
         {	
            LODOP=getLodop(document.getElementById('LODOP'),document.getElementById('LODOP_EM'));  	
            
            LODOP.PRINT_INIT("工作进度跟踪单");
            


            LODOP.ADD_PRINT_TABLE("2.5%","2.5%","95%","95%",$("#print").html());
//            LODOP.SET_PRINT_PAGESIZE(1, "210mm","297mm","")
            
            LODOP.PREVIEW();
	     };
        </script>

      

    </form>
</body>
</html>
