username@email.com
2025-05-14 99ddfbcecf0fa2881eb3a91028257eef87dab6de
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FollowRecord.aspx.cs" Inherits="CY.WebForm.Pages.business.FollowRecord" %>
 
<!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 runat="server">
    <title>跟单记录</title>
    <uc:CMSHead ID="CMSHead1" runat="server" />
    <script type="text/javascript">
        
        function addModel() {
            $("#txtCustomerPrice").val("");
            $("#ddlFollowType")[0].selectedIndex = 0;
            $("#ddlIntentType")[0].selectedIndex = 0;
            $("#txtFollowRecord").val("");
            $("#hidKeyId").val("");
        }
 
        function editModel(obj) {
            var hidPrice = $(obj).parent().next().find("#hidPrice").val();
            var hidFollowType = $(obj).parent().next().next().find("#hidFollowType").val();
            var hidIntentType = $(obj).parent().next().next().next().find("#hidIntentType").val();
            var keyId = $(obj).parent().next().next().next().next().find("#selKeyId").val();
            var hideResultStatus = $(obj).parent().next().next().next().next().next().find("#hideResultStatus").val();
            var followRecord = $(obj).parent().prev().find(".text_slice").text();
            $("#hidKeyId").val(keyId);
            $("#txtCustomerPrice").val(hidPrice);
            $("#ddlFollowType").val(hidFollowType);
            $("#ddlIntentType").val(hidIntentType);
            $("#txtFollowRecord").val(followRecord);
            $("#ddlResultStatus").val(hideResultStatus);
        }
        //单个删除
        function onDelete(keyid) {
            var keyId = $("#hidInquiryId").val();
            top.Dialog.confirm("确定要删除该记录吗?", function () {
                window.location = "FollowRecord.aspx?keyId=" + keyId + "&deleteKeyIds=" + keyid;
            });
        }
 
        //批量删除
        function onAllDelete() {
 
            var deleteKeyIds = "";
            $(":checkbox").each(
                function () {
                    if ($(this).is(":checked")) {
                        deleteKeyIds += $(this).val() + ",";
                    }
                }
            )
            if (deleteKeyIds == "") {
                top.Dialog.alert("请选择要删除的记录", function () {
                });
                return;
            }
            else {
                var keyId = $("#hidInquiryId").val();
                deleteKeyIds = deleteKeyIds.substring(0, deleteKeyIds.length - 1);
                top.Dialog.confirm("确定要删除该记录吗?", function () {
                    window.location = "FollowRecord.aspx?keyId=" + keyId + "&deleteKeyIds=" + deleteKeyIds;
                });
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server" class="form">
    <input type="hidden" id="hidInquiryId" runat="server" />
    <input type="hidden" id="hidKeyId" runat="server" value=""/>
    <fieldset style="border-color: #999999;">
         <legend>操作记录:</legend>
          <table class="tableStyle">
             <tr><td class="ali03">客户还价(元):</td><td><input type="text" id="txtCustomerPrice" runat="server" class="float"/></td></tr>
             <tr><td class="ali03">跟单方式:</td><td><asp:DropDownList ID="ddlFollowType" runat="server" keepdefaultstyle='true'></asp:DropDownList></td></tr>
             <tr><td class="ali03">成交意向:</td><td><asp:DropDownList ID="ddlIntentType" runat="server" keepdefaultstyle='true'></asp:DropDownList></td></tr>
             <tr><td class="ali03">成交状态:</td><td>
             <asp:DropDownList ID="ddlResultStatus" runat="server" keepdefaultstyle='true'>
                 <asp:ListItem Value="0">未成交</asp:ListItem>
                 <asp:ListItem Value="1">已成交</asp:ListItem>
                 <asp:ListItem Value="2">放弃跟单</asp:ListItem>
                 <asp:ListItem Value="3">虚假消息</asp:ListItem>
            </asp:DropDownList></td></tr>
             <tr><td class="ali03">跟单记录:</td><td><asp:TextBox ID="txtFollowRecord" TextMode="MultiLine" runat="server" Width="400px" Height="42px"></asp:TextBox></td></tr>
             <tr><td class="ali03"></td><td><asp:Button ID="btnSubmit" Text="提交" runat="server" OnClick="btnSubmit_Click" />&nbsp;&nbsp;<input type="button" id="btnClose" value="关闭" onclick="RefreshDIVOpener();"/></td></tr>
          </table>
    </fieldset>
     <fieldset style="border-color: #999999;">
        <div class="box_tool_min">
            <div class="center">
            <div class="left">
            <div class="right">
                <div class="padding_top5 padding_left10">
                <a href="javascript:;" onclick="addModel()"><span class="icon_add">新增记录</span></a>
                 <div class="box_tool_line"></div>
                <a href="javascript:;" onclick="onAllDelete()"><span class="icon_delete">批量删除</span></a>
                <div class="box_tool_line"></div>
                </div>
            </div>        
            </div>    
            </div>
            <div class="clear"></div>
        </div> 
        <div id="scrollContent" >
            <div>
     <asp:Repeater ID="RepRecordList" runat="server">
     <HeaderTemplate>
        <table class="tableStyle" useClick="false"  useCheckBox="true" sortMode="true" id="tbRecordList">
        <tr>
            <th width="25"></th>
            <th>跟单时间</th>
            <th>跟单人</th>
            <th>客户还价</th>
            <th>跟单方式</th>
            <th>成交意向</th>
            <th>成交状态</th>
            <th>跟单记录</th>
            <th width="80">操作</th>
            <th style="display:none"></th>
            <th style="display:none"></th>
            <th style="display:none"></th>
            <th style="display:none"></th>
            <th style="display:none"></th>
        </tr>
     </HeaderTemplate>
     <ItemTemplate>
        <tr>
            <td><input type="checkbox" value='<%#Eval("KeyId")%>'/></td>
            <td><%#Eval("FollowTime")%></td>
            <td><%#Eval("FollowPerson")%></td>
            <td><%#Eval("CustomerPrice","{0:F2}")%></td>
            <td><%#Eval("FollowTypeName")%></td>
            <td><%#Eval("IntentTypeName")%></td>
            <td><%#Eval("ResultStatusStr")%></td>
            <td><span class="text_slice" style="width:200px;" title='<%#Eval("FollowRecord")%>'><%#Eval("FollowRecord")%></span></td>
            <td class="Operate"><span onclick="editModel(this)">修改</span><span onclick="onDelete(<%#Eval("Keyid")%>)">删除</span></td>
            <td style="display:none"><input type="hidden" id="hidPrice" value='<%#Eval("CustomerPrice","{0:F2}")%>'/></td>
            <td style="display:none"><input type="hidden" id="hidFollowType" value='<%#Eval("FollowTypeId")%>'/></td>
            <td style="display:none"><input type="hidden" id="hidIntentType" value='<%#Eval("IntentTypeId")%>'/></td>
            <td style="display:none"><input type="hidden" id="selKeyId" value='<%#Eval("KeyId")%>'/></td>
            <td style="display:none"><input type="hidden" id="hideResultStatus" value='<%#Eval("ResultStatus")%>'/></td>
        </tr>
     </ItemTemplate>
     <FooterTemplate>
     </table>
     </FooterTemplate>
     </asp:Repeater>
     <div id="page">
            <uc:UCPager ID="UCPager1" runat="server"/>
     </div>
    </div>
        </div>
     </fieldset>
    </form>
</body>
</html>