📄 sell_return.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Sell_Return.aspx.cs" Inherits="销售管理_Default2" %>
<%@ Register Assembly="CustomControlFreak" Namespace="CustomControlFreak" TagPrefix="cc1" %>
<!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>
</head>
<body>
<form id="form1" runat="server">
<script type="text/javascript">
function getPrice()
{
with(document)
{
var number = document.getElementById("Number");
var price = document.getElementById("Pirce");
var payment = document.getElementById("Payment");
var num = number.value * price.value;
var Label3=document.getElementById("Label3");
var resout=Label3.innerHTML-number.value;
payment.value = num;
if(resout<0)
{
alert('数量不得大于最大值!');
number.value=Label3.innerHTML;
}
}
getPrice1();
}
function getPrice1()
{
with(document)
{
var payment = document.getElementById("Payment");
var factpayment = document.getElementById("FactPayment");
var nopayment = document.getElementById("NoPayment");
var num = payment.value - factpayment.value;
if (num<0)
{
alert("实付金额应小于等于应付金额!");
factpayment.value="";
}
else
{
nopayment.value = num;
}
}
}
</script>
<div style="text-align: center">
<span style="font-size: 10pt; color: #990000">销售管理→添加销售退货</span><br />
<br />
<table style="left: 15px; top: 63px; border-collapse: separate; width: 85%; height: 300px; font-size: smaller; text-align: center; border-right: #0033cc 1px solid; border-top: #0033cc 1px solid; border-left: #0033cc 1px solid; border-bottom: #0033cc 1px solid;">
<tr>
<td align="center" style="border-right: #0033cc 1px solid; border-top: #0033cc 1px solid;
border-left: #0033cc 1px solid; width: 100px; border-bottom: #0033cc 1px solid; height: 43px;">
商品名称:</td>
<td align="left" style="border-right: #0033cc 1px solid; border-top: #0033cc 1px solid;
border-left: #0033cc 1px solid; width: 200px; border-bottom: #0033cc 1px solid">
<asp:DropDownList ID="CommodityName" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource1" DataTextField="CommodityName" DataValueField="id" OnDataBound="CommodityName_DataBound" OnSelectedIndexChanged="CommodityName_SelectedIndexChanged" Width="120px">
</asp:DropDownList>
</td>
<td align="center" style="border-right: #0033cc 1px solid; border-top: #0033cc 1px solid;
border-left: #0033cc 1px solid; width: 100px; border-bottom: #0033cc 1px solid">
供应商:</td>
<td align="left" style="border-right: #0033cc 1px solid; border-top: #0033cc 1px solid;
border-left: #0033cc 1px solid; width: 200px; border-bottom: #0033cc 1px solid">
<asp:TextBox ID="CompanyID" runat="server" ReadOnly="True" Width="120px"></asp:TextBox></td>
</tr>
<tr>
<td align="center" style="border-right: #0033cc 1px solid; border-top: #0033cc 1px solid;
border-left: #0033cc 1px solid; border-bottom: #0033cc 1px solid; height: 43px;">
客户名称:</td>
<td align="left" style="border-right: #0033cc 1px solid; border-top: #0033cc 1px solid;
border-left: #0033cc 1px solid; border-bottom: #0033cc 1px solid">
<asp:DropDownList ID="ClientName" runat="server" Width="120px" AutoPostBack="True" OnSelectedIndexChanged="ClientName_SelectedIndexChanged1" >
</asp:DropDownList>
</td>
<td align="center" style="border-right: #0033cc 1px solid; border-top: #0033cc 1px solid;
border-left: #0033cc 1px solid; width: 100px; border-bottom: #0033cc 1px solid">
结算方式:</td>
<td align="left" style="border-right: #0033cc 1px solid; border-top: #0033cc 1px solid;
border-left: #0033cc 1px solid; border-bottom: #0033cc 1px solid">
<asp:DropDownList ID="SettlementType" runat="server" Width="60px">
<asp:ListItem Selected="True">现金</asp:ListItem>
<asp:ListItem>支票</asp:ListItem>
</asp:DropDownList></td>
</tr>
<tr>
<td align="center" style="border-right: #0033cc 1px solid; border-top: #0033cc 1px solid;
border-left: #0033cc 1px solid; border-bottom: #0033cc 1px solid; height: 43px;">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="Pirce"
ErrorMessage="*"></asp:RequiredFieldValidator>单 价:</td>
<td align="left" style="border-right: #0033cc 1px solid; border-top: #0033cc 1px solid;
border-left: #0033cc 1px solid; border-bottom: #0033cc 1px solid">
<asp:TextBox ID="Pirce" runat="server" Width="60px"></asp:TextBox>
元<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="Pirce"
ErrorMessage="请输入非负整数" ValidationExpression="^\d+$"></asp:RegularExpressionValidator></td>
<td align="center" style="border-right: #0033cc 1px solid; border-top: #0033cc 1px solid;
border-left: #0033cc 1px solid; width: 100px; border-bottom: #0033cc 1px solid">
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="Number"
ErrorMessage="*"></asp:RequiredFieldValidator>数 量:</td>
<td align="left" style="border-right: #0033cc 1px solid; border-top: #0033cc 1px solid;
border-left: #0033cc 1px solid; border-bottom: #0033cc 1px solid">
<asp:TextBox ID="Number" runat="server" Width="85px"></asp:TextBox>
<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="Number"
ErrorMessage="请输入非负整数" ValidationExpression="^\d+$"></asp:RegularExpressionValidator></td>
</tr>
<tr>
<td align="center" style="border-right: #0033cc 1px solid; border-top: #0033cc 1px solid;
border-left: #0033cc 1px solid; border-bottom: #0033cc 1px solid; height: 43px;">
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="Payment"
ErrorMessage="*"></asp:RequiredFieldValidator>应付金额:</td>
<td align="left" style="border-right: #0033cc 1px solid; border-top: #0033cc 1px solid;
border-left: #0033cc 1px solid; border-bottom: #0033cc 1px solid">
<asp:TextBox ID="Payment" runat="server" ReadOnly="True" Width="60px"></asp:TextBox>元</td>
<td align="center" style="border-right: #0033cc 1px solid; border-top: #0033cc 1px solid;
border-left: #0033cc 1px solid; width: 100px; border-bottom: #0033cc 1px solid">
退货日期:</td>
<td align="left" style="border-right: #0033cc 1px solid; border-top: #0033cc 1px solid;
border-left: #0033cc 1px solid; border-bottom: #0033cc 1px solid">
<cc1:daintydate id="StockDate" runat="server" calendartype="JustTextBox" Width="102px" EnableTextBox="False"></cc1:daintydate></td>
</tr>
<tr>
<td align="center" style="border-right: #0033cc 1px solid; border-top: #0033cc 1px solid;
border-left: #0033cc 1px solid; border-bottom: #0033cc 1px solid; height: 43px;">
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="FactPayment"
ErrorMessage="*"></asp:RequiredFieldValidator>实付金额:</td>
<td align="left" style="border-right: #0033cc 1px solid; border-top: #0033cc 1px solid;
border-left: #0033cc 1px solid; border-bottom: #0033cc 1px solid">
<asp:TextBox ID="FactPayment" runat="server" Width="60px"></asp:TextBox>
元<asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="FactPayment"
ErrorMessage="请输入非负整数" ValidationExpression="^\d+$" Width="93px"></asp:RegularExpressionValidator></td>
<td align="center" style="border-right: #0033cc 1px solid; border-top: #0033cc 1px solid;
border-left: #0033cc 1px solid; width: 100px; border-bottom: #0033cc 1px solid">
<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="NoPayment"
ErrorMessage="*"></asp:RequiredFieldValidator>未付金额:</td>
<td align="left" style="border-right: #0033cc 1px solid; border-top: #0033cc 1px solid;
border-left: #0033cc 1px solid; border-bottom: #0033cc 1px solid">
<asp:TextBox ID="NoPayment" runat="server" ReadOnly="True" Width="60px"></asp:TextBox>元</td>
</tr>
<tr>
<td align="center" style="border-right: #0033cc 1px solid; border-top: #0033cc 1px solid;
border-left: #0033cc 1px solid; border-bottom: #0033cc 1px solid; height: 43px;">
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="ManageMan"
ErrorMessage="*"></asp:RequiredFieldValidator>经手人:</td>
<td align="left" style="border-right: #0033cc 1px solid; border-top: #0033cc 1px solid;
border-left: #0033cc 1px solid; border-bottom: #0033cc 1px solid;">
<asp:TextBox ID="ManageMan" runat="server" Width="60px"></asp:TextBox></td>
<td align="center" style="border-right: #0033cc 1px solid; border-top: #0033cc 1px solid;
border-left: #0033cc 1px solid; width: 100px; border-bottom: #0033cc 1px solid;">
操作员:</td>
<td align="left" style="border-right: #0033cc 1px solid; border-top: #0033cc 1px solid;
border-left: #0033cc 1px solid; border-bottom: #0033cc 1px solid;">
<asp:Label ID="Label2" runat="server" Text="Label"></asp:Label></td>
</tr>
<tr>
<td align="center" colspan="4" style="border-right: #0033cc 1px solid; border-top: #0033cc 1px solid;
border-left: #0033cc 1px solid; border-bottom: #0033cc 1px solid; height: 28px;">
<asp:Button ID="AddButton" runat="server" Text="添 加" OnClick="AddButton_Click" Width="70px" />
<input id="ResetButton" type="reset" value="重 置" style="width: 70px" /></td>
</tr>
</table>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:db_sellConnectionString %>"
SelectCommand="SELECT [id], [CommodityName] FROM [tb_Commodity]"></asp:SqlDataSource>
<asp:Label ID="Label3" runat="server" Text="Label" style="color: white"></asp:Label></div>
<script type="text/javascript">
var textStockDate = document.getElementById("txtStockDate");
textStockDate.style.width = "75px";
</script>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -