| | |
| | | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CorporateClientsVisit.aspx.cs" Inherits="CY.WebForm.Pages.business.CorporateClientsVisit" %> |
| | | |
| | | <!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" runat="server"> |
| | | <title>查看合作客户资料</title> |
| | | <uc:CMSHead ID="CMSHead1" runat="server" /> |
| | | <script type="text/javascript"> |
| | | |
| | | function printview() { |
| | | bdhtml = window.document.body.innerHTML; |
| | | sprnstr = "<!--startprint-->"; //开始打印标识字符串有17个字符 |
| | | eprnstr = "<!--endprint-->"; //结束打印标识字符串 |
| | | prnhtml = bdhtml.substr(bdhtml.indexOf(sprnstr) + 17); //从开始打印标识之后的内容 |
| | | prnhtml = prnhtml.substring(0, prnhtml.indexOf(eprnstr)); //截取开始标识和结束标识之间的内容 |
| | | window.document.body.innerHTML = prnhtml; //把需要打印的指定内容赋给body.innerHTML |
| | | window.print(); //调用浏览器的打印功能打印指定区域 |
| | | |
| | | window.document.body.innerHTML = bdhtml;//重新给页面内容赋值; |
| | | } |
| | | |
| | | </script> |
| | | </head> |
| | | <body> |
| | | <form runat="server" id="form1" class="form"> |
| | | |
| | | <table class="TableNewStyle" width="100%"> |
| | | <tr> |
| | | |
| | | <tr> |
| | | |
| | | <td> |
| | | |
| | | <input type="button" class="button" value="打印" onclick="printview();" /> |
| | | </td> |
| | | </tr> |
| | | </table> |
| | | |
| | | <fieldset> |
| | | <legend>维护记录</legend> |
| | | <!--startprint--> |
| | | <table class="tableStyle" style="margin-bottom:10px;"> |
| | | |
| | | <tr> |
| | | |
| | | <td class="ali03 " style="width:10%">客户单位:</td> |
| | | <td style="width:30%"> |
| | | <span id="spanCompanyName" runat="server" ></span> |
| | | </td> |
| | | <td class="ali03 " style="width:10%">业务经理:</td><td style="width:20%"><span id="spanBusinessManagerId" runat="server" ></span></td> |
| | | <td class="ali03 " style="width:10%">打印日期:</td><td style="width:20%"><span id="spanprintdate" runat="server" ></span></td> |
| | | </tr> |
| | | </table> |
| | | |
| | | <asp:Repeater ID="RepClientList" runat="server"> |
| | | <HeaderTemplate> |
| | | <table class="tableStyle" useclick="false" usecheckbox="true" sortmode="true" border="1" cellspacing="0" cellpadding="0" style="text-align: center;"> |
| | | <tr> |
| | | <th style="text-align: center;width:10px;"> |
| | | 序号 |
| | | </th> |
| | | <th style="text-align: center;"> |
| | | 维护日期 |
| | | </th> |
| | | <th style="text-align: center;"> |
| | | 维护记录 |
| | | </th> |
| | | <th style="text-align: center;"> |
| | | 维护人 |
| | | </th> |
| | | |
| | | </tr> |
| | | </HeaderTemplate> |
| | | <ItemTemplate> |
| | | <tr> |
| | | |
| | | <td> |
| | | <%# Container.ItemIndex + 1%> |
| | | </td> |
| | | <td> |
| | | <%#Eval("VisitTime", "{0:yyyy-MM-dd}")%> |
| | | </td> |
| | | <td> |
| | | <%#Eval("Remark")%> |
| | | </td> |
| | | <td> |
| | | <%#Eval("CreaterName")%> |
| | | </td> |
| | | </tr> |
| | | </ItemTemplate> |
| | | <FooterTemplate> |
| | | </table> |
| | | </FooterTemplate> |
| | | </asp:Repeater> |
| | | <!--endprint--> |
| | | </fieldset> |
| | | </form> |
| | | </body> |
| | | </html> |
| | | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CorporateClientsVisit.aspx.cs" Inherits="CY.WebForm.Pages.business.CorporateClientsVisit" %>
|
| | |
|
| | | <!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" runat="server">
|
| | | <title>查看合作客户资料</title>
|
| | | <uc:CMSHead ID="CMSHead1" runat="server" />
|
| | | <script type="text/javascript">
|
| | |
|
| | | function printview() {
|
| | | bdhtml = window.document.body.innerHTML;
|
| | | sprnstr = "<!--startprint-->"; //开始打印标识字符串有17个字符
|
| | | eprnstr = "<!--endprint-->"; //结束打印标识字符串
|
| | | prnhtml = bdhtml.substr(bdhtml.indexOf(sprnstr) + 17); //从开始打印标识之后的内容
|
| | | prnhtml = prnhtml.substring(0, prnhtml.indexOf(eprnstr)); //截取开始标识和结束标识之间的内容
|
| | | window.document.body.innerHTML = prnhtml; //把需要打印的指定内容赋给body.innerHTML
|
| | | window.print(); //调用浏览器的打印功能打印指定区域
|
| | |
|
| | | window.document.body.innerHTML = bdhtml;//重新给页面内容赋值;
|
| | | }
|
| | |
|
| | | //查看
|
| | | function checkSelFile() {
|
| | | |
| | | //var oFile = document.getElementById('filesel');
|
| | | //if (oFile.value == "") {
|
| | | // alertMsg('没有选择文件');
|
| | | // return false;
|
| | |
|
| | | //}
|
| | | showLoadingIndicator();
|
| | | //debugger;
|
| | | //replaceParamVal("deleteKeyIds", "");
|
| | | return true;
|
| | | }
|
| | |
|
| | | function showLoadingIndicator() {
|
| | | document.getElementById('loading').style.display = 'block';
|
| | | }
|
| | |
|
| | | function hideLoadingIndicator() {
|
| | | document.getElementById('loading').style.display = 'none';
|
| | | }
|
| | |
|
| | | //查看
|
| | | function onViewvisit(keyid) {
|
| | | top.Dialog.open({ URL: "/Pages/work/MyvisitDetail.aspx?Keyid=" + keyid, Title: "查看维护详情", Width: 1100, Height: 800 });
|
| | | }
|
| | | </script>
|
| | | <style>
|
| | | .table-wrap {
|
| | | width: 100%; /* 限制容器宽度 */
|
| | | word-break: break-all; /* 强制英文/数字换行 */
|
| | | /* 或使用 word-wrap: break-word; 只在单词内换行 */
|
| | | }
|
| | | .truncate {
|
| | | white-space: nowrap; /* 不换行 */
|
| | | overflow: hidden; /* 隐藏超出部分 */
|
| | | text-overflow: ellipsis; /* 显示省略号 */
|
| | | max-width: 150px; /* 限制单元格最大宽度 */
|
| | | }
|
| | | </style>
|
| | | </head>
|
| | | <body>
|
| | | <form runat="server" id="form1" class="form">
|
| | | |
| | | <table class="TableNewStyle" width="100%">
|
| | | <tr>
|
| | | |
| | | <tr>
|
| | | |
| | | <td>
|
| | | |
| | | <input type="button" class="button" value="打印" onclick="printview();" />
|
| | | </td>
|
| | | </tr>
|
| | | </table>
|
| | | <fieldset id="weihujilu">
|
| | | <legend>添加维护记录</legend>
|
| | | <table class="tableStyle" width="100%">
|
| | | <tr>
<td class="ali01 ">维护日期:</td>
<td ><input id="txtVisitTime" type="text" runat="server" maxlength="50" class="date w90px" datefmt="yyyy-MM-dd" /></td>
<td class="ali03 ">维护记录:</td>
<td colspan="2" ><textarea runat="server" id="txtvisitRemark" style=" width:92%; height:30px;" maxlength="2000"></textarea></td>
<td class="ali03">
|
| | | <input type="file" id="filesel" name="__hetongFile" keepdefaultstyle="true" multiple="multiple" runat="server" text="请选择文件" /></td>
|
| | | <td>
<td ><asp:Button ID="Button1" Text="添加维护记录" OnClientClick="return checkSelFile()" runat="server" OnClick="btn_Submit_Visit" ToolTip="该记录会清除该客户的例行维护提醒"/><asp:Button ID="btn_Submit" Text="添加假日维护记录" runat="server" ToolTip="该记录会清除该客户的假日维护提醒" OnClick="btn_Submit_Visit_jiari"/></td>
<div id="loading" class="toast-message" style="display: none;">保存中!</div>
</tr> |
| | | </table>
|
| | | <%-- <asp:Repeater ID="RepClientList" runat="server">
|
| | | <HeaderTemplate>
|
| | | <table class="tableStyle" useclick="false" usecheckbox="true" sortmode="true" style="text-align: center;">
|
| | | <tr>
|
| | | |
| | | <th style="text-align: center;width:10px;">
|
| | | 序号
|
| | | </th>
|
| | | <th style="text-align: center;">
|
| | | 维护日期
|
| | | </th>
|
| | | <th style="text-align: center;">
|
| | | 维护记录
|
| | | </th>
|
| | | <th style="text-align: center;">
|
| | | 维护人
|
| | | </th>
|
| | | |
| | | </tr>
|
| | | </HeaderTemplate>
|
| | | <ItemTemplate>
|
| | | <tr>
|
| | | <td>
|
| | | <%# Container.ItemIndex + 1%>
|
| | | </td>
|
| | | |
| | | <td>
|
| | | <%#Eval("VisitTime", "{0:yyyy-MM-dd}")%>
|
| | | </td>
|
| | | <td>
|
| | | <%#Eval("Remark")%>
|
| | | </td>
|
| | | <td>
|
| | | <%#Eval("CreaterName")%>
|
| | | </td>
|
| | | </tr>
|
| | | </ItemTemplate>
|
| | | <FooterTemplate>
|
| | | </table>
|
| | | </FooterTemplate>
|
| | | </asp:Repeater>--%>
|
| | | |
| | | </fieldset>
|
| | | <fieldset>
|
| | | <legend>维护记录</legend>
|
| | | <!--startprint-->
|
| | | <table class="tableStyle" style="margin-bottom:10px;" width="100%;">
|
| | | |
| | | <tr>
|
| | | |
| | | <td class="ali03 " style="width:10%">客户单位:</td>
|
| | | <td style="width:30%">
|
| | | <span id="spanCompanyName" runat="server" ></span>
|
| | | </td>
|
| | | <td class="ali03 " style="width:10%">业务经理:</td><td style="width:20%"><span id="spanBusinessManagerId" runat="server" ></span></td>
|
| | | <td class="ali03 " style="width:10%">打印日期:</td><td style="width:20%"><span id="spanprintdate" runat="server" ></span></td>
|
| | | </tr>
|
| | | </table>
|
| | | |
| | | <asp:Repeater ID="RepClientList" runat="server">
|
| | | <HeaderTemplate>
|
| | | <table class="tableStyle" border="1" cellspacing="0" cellpadding="0" style="text-align: center;" width="100%;">
|
| | | <tr>
|
| | | <th style="text-align: center;width:10px;">
|
| | | 序号
|
| | | </th>
|
| | | <th style="text-align: center;width:10%;">
|
| | | 维护日期
|
| | | </th>
|
| | | <th style="text-align: center;width:70%;">
|
| | | 维护记录
|
| | | </th>
|
| | | <th style="text-align: center;width:10%;">
|
| | | 维护人
|
| | | </th>
|
| | | <th style="text-align: center;width:10%;">
|
| | | 详情
|
| | | </th>
|
| | | </tr>
|
| | | </HeaderTemplate>
|
| | | <ItemTemplate>
|
| | | <tr>
|
| | | |
| | | <td>
|
| | | <%# Container.ItemIndex + 1%>
|
| | | </td>
|
| | | <td>
|
| | | <%#Eval("VisitTime", "{0:yyyy-MM-dd}")%>
|
| | | </td>
|
| | | <td class="truncate" title="<%#Eval("Remark")%>" >
|
| | | <%#Eval("Remark")%>
|
| | | </td>
|
| | | <td>
|
| | | <%#Eval("CreaterName")%>
|
| | | </td>
|
| | | <td>
|
| | | <span onclick="onViewvisit('<%#Eval("Keyid")%>')">详情</span> |
| | | </td>
|
| | | </tr>
|
| | | </ItemTemplate>
|
| | | <FooterTemplate>
|
| | | </table>
|
| | | </FooterTemplate>
|
| | | </asp:Repeater>
|
| | | <!--endprint-->
|
| | | </fieldset>
|
| | | </form>
|
| | | </body>
|
| | | </html>
|