| | |
| | | |
| | | string Tongjitime = ViewBag.Tongjitime as string; |
| | | |
| | | string UserName = ViewBag.UserName as string; |
| | | |
| | | int nookcount = dingdanDTOs == null ? 0 : dingdanDTOs.Count; |
| | | |
| | | int dingdanDTOsCount = ViewBag.dingdanDTOsCount; |
| | | int tuiguangDTOsCount = tuiguangDTOs.Count; |
| | | int baifangkehuDTOsCount = baifangkehuDTOs.Count; |
| | | int ziliaoweihuDTOsCount = ziliaoweihuDTOs.Count; |
| | | int xiangmushishiDTOsCount = xiangmushishiDTOs.Count; |
| | | int aaa = 1; |
| | | } |
| | | |
| | | <!DOCTYPE html> |
| | |
| | | </head> |
| | | <body class="gray-bg" style="overflow:auto"> |
| | | <button type="button" id="printl" onclick="onprint()">打印</button> |
| | | <div id="printArea"> |
| | | |
| | | <div class="wrapper wrapper-content" id="ibox-content" style="padding:15px;"> |
| | | <div class="row"> |
| | | <div class="col-sm-12"> |
| | |
| | | |
| | | </div>*@ |
| | | <div class="row"> |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;" id="chaxunxiashi"> |
| | | |
| | | <label class="text-right col-sm-1 col-md-1 control-label">统计时间</label> |
| | | <div class="col-sm-2 col-md-2"> |
| | |
| | | </a> |
| | | </div> |
| | | </div> |
| | | <div id="printArea"> |
| | | <div class=""> |
| | | |
| | | <h3>一、推广</h3> |
| | | <h3> @UserName </h3> |
| | | |
| | | </div> |
| | | |
| | | @if (tuiguangDTOsCount > 0) |
| | | { |
| | | <div class=""> |
| | | |
| | | <h3>@aaa 、推广</h3> |
| | | |
| | | </div> |
| | | |
| | |
| | | </tr> |
| | | } |
| | | } |
| | | aaa = aaa + 1; |
| | | } |
| | | </tbody> |
| | | </table> |
| | | </div> |
| | | |
| | | } |
| | | @if (baifangkehuDTOsCount > 0) |
| | | { |
| | | <div class=""> |
| | | |
| | | <h3>二、拜访客户</h3> |
| | | <h3>@aaa 、拜访客户</h3> |
| | | |
| | | </div> |
| | | |
| | |
| | | </tr> |
| | | } |
| | | } |
| | | aaa = aaa + 1; |
| | | } |
| | | </tbody> |
| | | </table> |
| | | </div> |
| | | } |
| | | |
| | | @if (dingdanDTOsCount > 0) |
| | | { |
| | | <div class=""> |
| | | |
| | | <h3>三、新增订单</h3> |
| | | <h3>@aaa 、新增订单</h3> |
| | | |
| | | </div> |
| | | |
| | |
| | | </tr> |
| | | } |
| | | } |
| | | aaa = aaa + 1; |
| | | } |
| | | </tbody> |
| | | </table> |
| | | </div> |
| | | } |
| | | @if (ziliaoweihuDTOsCount > 0) |
| | | { |
| | | <div class=""> |
| | | |
| | | <h3>四、资料维护</h3> |
| | | <h3>@aaa 、资料维护</h3> |
| | | |
| | | </div> |
| | | |
| | |
| | | </tr> |
| | | } |
| | | } |
| | | aaa = aaa + 1; |
| | | } |
| | | </tbody> |
| | | </table> |
| | | </div> |
| | | |
| | | } |
| | | |
| | | |
| | | @if (xiangmushishiDTOsCount > 0) |
| | | { |
| | | <div class=""> |
| | | |
| | | <h3>五、项目实施</h3> |
| | | <h3>@aaa 、项目实施</h3> |
| | | |
| | | </div> |
| | | |
| | |
| | | </tr> |
| | | } |
| | | } |
| | | aaa = aaa + 1; |
| | | } |
| | | </tbody> |
| | | </table> |
| | | </div> |
| | | } |
| | | </div> |
| | | |
| | | |
| | | |
| | | |
| | | </div> |
| | |
| | | <div class="ibox-content" id="top" style="z-index:100; position:fixed; height:50px; width:100%;bottom:0; text-align: right; padding-top:8px "> |
| | | |
| | | </div> |
| | | </div> |
| | | |
| | | </body> |
| | | <script type="text/javascript"> |
| | | |
| | | var hh = document.body.clientHeight+700+(60*@nookcount);; |
| | | $("#div_content").height(hh); |
| | | |
| | | toastr.options = { |
| | | "closeButton": true, |
| | |
| | | //var bodyHtml = document.body.innerHTML; |
| | | //document.body.innerHTML = html; |
| | | $("#printl").hide(); |
| | | $("#chaxunxiashi").hide(); |
| | | window.print(); |
| | | //document.body.innerHTML = bodyHtml; |
| | | $("#printl").show(); |
| | | $("#chaxunxiashi").show(); |
| | | } |
| | | function onprint() { |
| | | |
| | | var html = $("#printArea").html(); |
| | | printHtml(html); |
| | | |
| | | } |
| | | </script> |
| | | </html> |