📄 reckoning.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Reckoning.aspx.cs" Inherits="往来管理_Default" %>
<!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">
<div style="text-align: center">
<asp:Label ID="Label2" runat="server" Text="Label" style="color: #990000" Font-Size="10pt"></asp:Label><br />
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
CellPadding="4" DataSourceID="SqlDataSource1" ForeColor="#333333"
GridLines="None" DataKeyNames="id" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" OnSelectedIndexChanging="GridView1_SelectedIndexChanging" OnRowDataBound="GridView1_RowDataBound" style="font-size: smaller; vertical-align: top; text-align: center">
<FooterStyle BackColor="#003399" Font-Bold="True" ForeColor="White" />
<Columns>
<asp:BoundField DataField="type" HeaderText="结款类型" SortExpression="type" />
<asp:BoundField DataField="CommodityName" HeaderText="商品名称" SortExpression="CommodityName" />
<asp:BoundField DataField="CompanyName" HeaderText="供应商" SortExpression="CompanyName" />
<asp:BoundField DataField="Column1" HeaderText="未付" ReadOnly="True" SortExpression="Column1" />
<asp:BoundField DataField="Column2" HeaderText="结款次数" ReadOnly="True" SortExpression="Column2" />
<asp:BoundField DataField="Column3" HeaderText="单据编号" ReadOnly="True" SortExpression="Column3" />
<asp:CommandField ButtonType="Button" HeaderText="结账" SelectText="结账" ShowSelectButton="True" />
</Columns>
<RowStyle BackColor="#EFF3FB" />
<EditRowStyle BackColor="#2461BF" />
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<PagerStyle BackColor="#003399" ForeColor="White" HorizontalAlign="Center" />
<HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:db_sellConnectionString %>"
SelectCommand="select dbo.tb_Stock.id,dbo.tb_Stock.type,dbo.tb_Commodity.CommodityName,dbo.tb_Company.CompanyName,(dbo.tb_Stock.Nopayment-(select isnull(sum(dbo.tb_Reckoning.Settlement),0) from dbo.tb_Reckoning where StockID=dbo.tb_Stock.id)), (select count(dbo.tb_Reckoning.StockID)+1 from dbo.tb_Reckoning where stockid=dbo.tb_stock.id) ,dbo.CreateSerailNumber(dbo.tb_Stock.id,dbo.tb_Stock.StockDate) from dbo.tb_Stock inner join dbo.tb_Commodity on dbo.tb_Stock.Commodityid=dbo.tb_Commodity.id inner join dbo.tb_Company on dbo.tb_Commodity.Companyid=dbo.tb_Company.id">
</asp:SqlDataSource>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -