日期:2014-05-17 浏览次数:20432 次
<asp:Button ID="btnOk" runat="server" Text="确认" EnableViewState="false" OnClientClick='returnSelectedCustomer();return false;'
OnClick="btnOk_Click" CssClass="commonButtonStyle2" />
<tr onclick="checkRowRadio('custTable',this);setRowColor('custTable',this);" class="<%# Container.DisplayIndex % 2 == 0 ? "" : "odd" %>"
initclass="<%#Container. DisplayIndex % 2 == 0 ? "" : "odd" %>" ondblclick="returnSelectedCustomer();">
<td>
<input type="radio" name="rbs" value='<%# Eval("apply_number") %>' title='<%# Eval("apply_number") %>'
onclick="this.checked = !this.checked" />
</td>
function returnSelectedCustomer() {
var e = null;
$('#custTable').find("input[type=radio]").each(function () { if (this.checked) e = this; })
if (e) {
var u = new Object();
u.UserCode = e.value;
u.UserName = e.title;
window.returnValue = u;
window.close();
}
else {
alert("请选择客户");
}
}