<%@ 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" /> <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>
|