<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DeliverPlanWentiAdd.aspx.cs" Inherits="CY.WebForm.Pages.business.DeliverPlanWentiAdd" %>
|
|
<!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" />
|
<!--前台页面start-->
|
<link rel="stylesheet" type="text/css" href="../../Styles/base.css" />
|
<link href="../../Styles/changes.css" rel="stylesheet" type="text/css" />
|
<link href="../../Styles/ParticularWQJ.css" rel="stylesheet" type="text/css" />
|
<!--前台页面end-->
|
<script type="text/javascript" language="javascript">
|
function ReBindClients() {
|
$.ajax({
|
url: "/Pages/business/OrderEdit.aspx",
|
type: "POST",
|
dataType: "html",
|
data: { Target: "ReBindClients"},
|
global: false,
|
cache: false,
|
async: false,
|
success: function (data) {
|
$("#selBuyerId").html(data);
|
}
|
});
|
}
|
function custormerChange(sel) {
|
|
|
CallServer({ Target: "GetCommunication", id: sel.value }, function (data, textStatus) {
|
var jobj = false;
|
try {
|
jobj = eval('[' + data + ']')[0];
|
} catch (ex) {
|
global.DealDataException(ex); return;
|
}
|
if (jobj) {
|
/* document.getElementById('txtLianxiren').value = jobj.BusinessManagers;*/
|
//document.getElementById('txtDizhi').value = jobj.Province + jobj.City + jobj.County + jobj.DetailedAddress ;
|
//document.getElementById('txtDianhua').value = jobj.CompanyPhone;
|
document.getElementById('txtCompanyName').value = jobj.CompanyName;
|
} else;
|
});
|
}
|
|
|
|
|
//为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;'/>";
|
$(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);
|
});
|
});
|
}
|
|
window.FastKeyDistinctived = true; //例外快捷键(不使用通用快捷键)
|
var keyDownHook = new KeyBehaviorHook('keydown');
|
keyDownHook.Regist(window.Keys.S, "ClickElement('btnSave')", window.WithKey.Ctrl); //Ctrl+s 保存
|
keyDownHook.Regist(window.Keys.Enter, "ClickElement('btnSave')", window.WithKey.Ctrl); //Ctrl+Enter 保存
|
keyDownHook.Regist(window.Keys.R, "ClickElement('btnReset')", window.WithKey.Ctrl); //Ctrl+R 重置
|
keyDownHook.Regist(window.Keys.Q, "ClickElement('btnBackList')", window.WithKey.Ctrl); //Ctrl+Q 退出(Quit)
|
|
$(function () {
|
SelectAddSearch();
|
keyDownHook.Binding();
|
global.SetReqMsg();
|
|
});
|
|
|
|
|
</script>
|
|
</head>
|
<body style='padding: 0; margin: 0;'>
|
<form id="form1" runat="server" style='padding: 0; margin: 0;' class='form2'>
|
|
|
<table class="table2" id="tbBasic">
|
<thead>
|
<tr>
|
<th colspan="8">
|
基本信息
|
</th>
|
</tr>
|
</thead>
|
<tr style=" height:1px;">
|
<td style="border:none;width: 100px;">
|
</td>
|
<td style="border:none; width:300px;">
|
</td>
|
<td style="border:none;width: 100px;">
|
</td>
|
<td style="border:none;">
|
</td>
|
|
</tr>
|
<tr>
|
<td align="right">
|
反馈人:
|
</td>
|
<td align="left" colspan="3">
|
<select keepdefaultstyle='true' id='selFankuiren' runat="server" datatextfield='Name' datavaluefield='Keyid' class="Sreq">
|
</select>
|
</td>
|
</tr>
|
<tr>
|
<td align="right">
|
客户单位:
|
</td>
|
<td align="left">
|
|
<span id='spnCustormerControl'><select id='selBuyerId' runat="server" keepdefaultstyle='true' datavaluefield='MemberId' datatextfield='CompanyName' onchange='custormerChange(this)' selinputhtml="True" sign="" style=" width:123px;"></select>
|
<%--<input type="button" value='新增' keepdefaultstyle='true' onclick="top.Dialog.open({ URL: '/Pages/business/CorporateClientsEdit.aspx', Title: '新增客户', Width: 900, Height: 680});" />--%>
|
</span>
|
|
</td>
|
<td align="right">
|
客户单位:
|
</td>
|
<td align="left">
|
<input id='txtCompanyName' runat="server" maxlength="200" class='Sreq' style="width:200px;" />
|
</td>
|
</tr>
|
|
|
|
|
<tr>
|
<td style="width: 100px; text-align:right;">
|
问题描述:
|
</td>
|
<td style=" text-align:left;" colspan="3">
|
<textarea id="txtRemark" name="txtRemark" runat="server" style="width: 692px; height: 30px;" maxlength="200" class="req" ></textarea>
|
</td>
|
</tr>
|
|
|
|
<tr>
|
<td class="contentLeft" colspan="4" style=" padding-left:300px;">
|
<asp:Button ID="btnSaves" runat="server" Text="保存反馈" OnClick="btnSave_ServerClick" />
|
|
|
|
|
|
</td>
|
</tr>
|
</table>
|
|
|
|
</form>
|
|
</body>
|
<script type="text/javascript" language="javascript">
|
|
|
|
</script>
|
</html>
|