<%@ page language="C#" autoeventwireup="true" inherits="SB_admin_N47_Project_N47_Project_MonthStatistics, 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>
            
            <span style="color:Red">提示：打印预览时，虚线之外是物理不可打区域，不同的打印机其物理边距不一样 </span>
            <br />
            月份：<asp:TextBox ID="txtDate" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM'})"
                Width="150px"></asp:TextBox>
            &nbsp;
            <asp:Button ID="btnSumbit" runat="server" Text="重新生成" OnClick="btnSumbit_Click" />
            <input id="printBtn" type="button" value="打印业务统计表" onclick="printTest1()" style="width: 119px" />
        </div>
        <div id="print" style="width: 1587px;">
            <asp:Repeater ID="rptProject" runat="server" OnItemDataBound="rptProject_ItemDataBound">
                <HeaderTemplate>
                    <table width="100%" border="1" cellpadding="2" bordercolor="#00000" style="border: none; font-size:13px;
                        border-collapse: collapse;">
                        <thead>
                            <tr>
                                <td  colspan="8" style="border-right: none;" align="left">
                                    AAA———每月业务统计报表</td>
                                <td colspan="3" style="border-left: none;" align="left">
                                    <asp:Literal ID="litDate" runat="server"></asp:Literal>
                                    </td>
                            </tr>
                        </thead>
                        <tbody>
                            <tr align="center">
                                <td style=" white-space: nowrap;">
                                    客户</td>
                                <td style=" white-space: nowrap;">
                                    项目</td>
                                <td style=" white-space: nowrap;">
                                    工作进度</td>
                                <td style=" white-space: nowrap;">
                                    联系人</td>
                                <td style=" white-space: nowrap;">
                                    电话</td>
                                <td style=" white-space: nowrap;">
                                    QQ</td>
                                <td style=" white-space: nowrap;">
                                    接单人</td>
                                <td style=" white-space: nowrap;">
                                    接稿时间</td>
                                <td style=" white-space: nowrap;">
                                    设计师</td>
                              <%--  <td>
                                    完成时间</td>--%>
                                <td>
                                    备注</td>
                            </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td>
                            &nbsp;<%#Eval("c_name")%></td>
                        <td>
                            &nbsp;<%#Eval("p_name")%>
                        </td>
                        <td style=" white-space: nowrap;">
                            &nbsp; 未安排<input type="checkbox" <%#Convert.ToBoolean(Eval("p_notPlan"))?"checked='checked'":""%>
                                onclick="return false;" />
                            进行中<input type="checkbox" <%#Convert.ToBoolean(Eval("p_march"))?"checked='checked'":""%>
                                onclick="return false;" />
                            已完成<input type="checkbox" <%#Convert.ToBoolean(Eval("p_complete"))?"checked='checked'":""%>
                                onclick="return false;" />
                        </td>
                        <td>
                            &nbsp;<%#Eval("p_linkman")%></td>
                        <td>
                            &nbsp;<%#Eval("p_tel")%></td>
                        <td>
                            &nbsp;<%#Eval("p_qq")%></td>
                        <td>
                            &nbsp;<asp:Literal ID="litp_orderTakers" runat="server"></asp:Literal></td>
                        <td>
                            &nbsp;<%#Convert.ToDateTime(Eval("p_cdate")).ToString("yyyy-MM-dd") %></td>
                        <td>
                            &nbsp;<asp:Literal ID="litp_planner" runat="server"></asp:Literal></td>
              <%--          <td>
                            &nbsp;<%#Eval("p_cptDate")%></td>--%>
                        <td>
                            &nbsp;<%#Eval("p_note")%></td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    <tr style='<%= rptProject.Items.Count > 0 ? "display:none" : "" %>'>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                      <%--  <td>
                            &nbsp;</td>--%>
                        <td>
                            &nbsp;</td>
                    </tr>
                    </tbody>
                    <tfoot>
                            <tr>
                                <th  colspan="8"  align="left">
                                打印日期：<%=DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") %>
                                </td>
                                <th  align="left" tdata="pageNO">
                                    第######页</td>
                                <th   align="left" tdata="pageCount">
                                    总共#####页</td>
                            </tr>
                    </tfoot>
                    </table>
                </FooterTemplate>
            </asp:Repeater>
        </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("5mm","5mm","287mm","190mm",$("#print").html());
        LODOP.SET_PRINT_PAGESIZE(2, "210mm","297mm","")
        
        LODOP.PREVIEW();
	 };
        </script>

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