<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Soft_SellRecordAdd.aspx.cs" Inherits="CY.WebForm.Pages.adminclient.Soft_SellRecordAdd" %>
|
|
<!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 showCustomer() {
|
top.Dialog.open({ URL: "/Pages/adminclient/CorporateClientsEdit.aspx", Title: "新增客户", Width: 900, Height: 680 });
|
}
|
|
//为Select新增过滤功能
|
function SelectAddSearch() {
|
$("select[SelInputHtml='True']").each(function (i, v) {
|
$(this).unbind("blur");
|
var old = $(this).html();
|
var oldObject = $(this).clone();
|
var sign = "selectS" + i;
|
$(v).attr("sign", sign);
|
|
var inputClass = "input_" + sign;
|
var html = "<span style='margin-left:10px'>过滤:</span><input type='text' class='" + inputClass + "' style='width:80px;height:18px;line-height:18px;'/><span onclick='showCustomer()' style=\"padding-left:10px;\" class=\"a_under\">新增客户</span>";
|
$(v).after(html);
|
$("." + inputClass).blur(function () {
|
var nowval = $(this).val().trim();
|
var output = "";
|
if (nowval == "" || nowval == null) {
|
output = old;
|
} else {
|
output += "<option value=''>请选择</option>";
|
var valueArr = new Array();
|
oldObject.find("option").each(function (ii, vv) {
|
|
var value = $.trim($(vv).attr("value"));
|
var text = $.trim($(vv).text());
|
|
if (text.indexOf(nowval) >= 0)
|
valueArr.push(value + "|||" + text);
|
});
|
for (var ss in valueArr) {
|
var s = valueArr[ss];
|
if (s.split("|||").length == 2) {
|
var value1 = s.split("|||")[0];
|
var text1 = s.split("|||")[1];
|
output += "<option value='" + value1 + "'>" + text1 + "</option>";
|
}
|
}
|
}
|
$(v).html(output);
|
});
|
});
|
}
|
|
function custormerChange(sel) {
|
if (!sel.value) return;
|
$.ajax({
|
url: '/Pages/common/CommonAjax.aspx',
|
async: false,
|
type: "POST",
|
data: { dateType: "getsoftclirntInfo", id: sel.value },
|
success: function (msg) {
|
var jnone = [];
|
eval("jnone=" + msg);
|
if (jnone.msg == 'err') {
|
CommObj.Msg(jnone.alt);
|
} else {
|
document.getElementById('txtDegreeImportanId').value = jnone.DegreeImportanId;
|
document.getElementById('selCustormerManagers').value = jnone.AccountManagerId;
|
document.getElementById('selBusinessManagers').value = jnone.BusinessManagerId;
|
document.getElementById('txtMobile').value = (jnone.CompanyPhone == "" ? jnone.Mobile : jnone.CompanyPhone);
|
document.getElementById('txtQQ').value = jnone.QQ;
|
document.getElementById('txtMKMdG').value = jnone.BusinessManagers;
|
}
|
}
|
});
|
}
|
</script>
|
<script type="text/javascript">
|
$(function () {
|
SelectAddSearch();
|
$("#txtSoftQuantity").change(function () {
|
var price = parseInt($("#txtSoftUnitprice").val());
|
var quantity = parseInt($("#txtSoftQuantity").val());
|
if (isNaN(price) || isNaN(quantity)) {
|
$("#txtOrderMoney").val("0");
|
} else {
|
$("#txtOrderMoney").val(price * quantity);
|
}
|
});
|
});
|
</script>
|
</head>
|
<body>
|
<%--<textarea id="txtExaminedRecore" runat="server" style="width: 370px; height: 50px;" class=""></textarea>--%>
|
<form id="form1" class="form2" runat="server">
|
<div>
|
<table class="tableStyle" style="margin: 10px auto;" cellpadding="0" cellspacing="0">
|
<tr>
|
<td class="ali03 w100px">
|
订单号:
|
</td>
|
<td>
|
<span id="spanOrderNum" runat="server"></span>
|
</td>
|
<td class="ali03 w100px">
|
产品名称:
|
</td>
|
<td colspan="3">
|
<asp:DropDownList runat="server" ID="txtSoftId" keepdefaultstyle="true" class="Sreq w120px" msg="请选择软件" OnSelectedIndexChanged="txtSoftTypeId_SelectedIndexChanged" AutoPostBack="true">
|
</asp:DropDownList>
|
</td>
|
</tr>
|
<tr>
|
<td class="ali03 w100px">
|
软件单价:
|
</td>
|
<td>
|
<input id="txtSoftUnitprice" type="text" class="req int w100px" min="0" value="0" runat="server" msg="请填写大于0的整数" readonly="readonly" />元
|
</td>
|
<td class="ali03 w100px">
|
购买数量:
|
</td>
|
<td>
|
<input id="txtSoftQuantity" type="text" class="req int w120px" min="0" value="0" maxlength="8" runat="server" msg="请填写大于0的整数" />
|
</td>
|
<td class="ali03 w100px">
|
订单金额:
|
</td>
|
<td>
|
<input id="txtOrderMoney" type="text" class="req int w100px" min="0" value="0" runat="server" msg="请填写大于0的整数" />元
|
</td>
|
</tr>
|
<tr>
|
<td class="ali03 w100px">
|
客户名称:
|
</td>
|
<td colspan="5">
|
<input type="hidden" id='txtCustormer' runat="server" />
|
<input id='txtCustormerName' runat="server" readonly="readonly" /><span id='spnCustormerControl'><select id='selCustormer' runat="server" keepdefaultstyle='true' datavaluefield='Keyid' datatextfield='CompanyName' onchange='custormerChange(this)' class='Sreq w120px' SelInputHtml='True' sign="" msg="请选择软件"></select>
|
</span>
|
<input type='hidden' runat="server" id='txtCompanyName' />
|
</td>
|
</tr>
|
<tr>
|
<td class="ali03 w100px">
|
业务经理:
|
</td>
|
<td>
|
<select id='selBusinessManagers' runat="server" class="w120px" keepdefaultstyle='true' datavaluefield="Keyid" datatextfield='Name'>
|
</select>
|
</td>
|
<td class="ali03 w100px">
|
客户经理:
|
</td>
|
<td>
|
<select id='selCustormerManagers' runat="server" class="w120px" keepdefaultstyle='true' datavaluefield="Keyid" datatextfield='Name'>
|
</select>
|
</td>
|
<td class="ali03 w100px">
|
客户级别:
|
</td>
|
<td>
|
<select id='txtDegreeImportanId' class='Sreq w120px' msg="请选择客户级别" runat="server" datatextfield="Name" datavaluefield="Keyid" keepdefaultstyle='true'>
|
</select>
|
</td>
|
</tr>
|
<tr>
|
<td class="ali03 w100px">
|
联系人:
|
</td>
|
<td>
|
<input id="txtMKMdG" type="text" class="w120px" runat="server" />
|
</td>
|
<td class="ali03 w100px">
|
联系电话:
|
</td>
|
<td>
|
<input id="txtMobile" type="text" class="w120px" runat="server" />
|
</td>
|
<td class="ali03 w100px">
|
联系QQ:
|
</td>
|
<td>
|
<input id="txtQQ" type="text" class="w120px" runat="server"/>
|
</td>
|
</tr>
|
<tr>
|
<td class="ali03 w100px">
|
备注:
|
</td>
|
<td colspan="5" >
|
<textarea id="txtOrderRemark" runat="server" style=" width:640px; height:50px;" maxlength="200" ></textarea>
|
</td>
|
</tr>
|
<tr>
|
<td colspan="6" style="text-align: center;">
|
<asp:Button ID="btn_submit" runat="server" OnClick="btn_submit_form" Text="提交" />
|
</td>
|
</tr>
|
</table>
|
</div>
|
</form>
|
</body>
|
</html>
|