代付款

<%@ Control Language="C#" Inherits="Modules.AMS_MONEYFINANCE.ViewAMS_MONEYFINANCE"
AutoEventWireup="true" CodeBehind="ViewAMS_MONEYFINANCE.ascx.cs" %>
<%@ Register Assembly="C1.Web.Wijmo.Controls.4" Namespace="C1.Web.Wijmo.Controls.C1Tabs" TagPrefix="wijmo" %>
<script type="text/javascript" src="../../DesktopModules/AMS_MONEYFINANCE/My97DatePicker/WdatePicker.js"></script>
<%@ Register Assembly="C1.Web.Wijmo.Controls.4" Namespace="C1.Web.Wijmo.Controls.C1GridView" TagPrefix="wijmo" %>

<style>
.wijmo-wijgrid-headertext
{
text-align: center;
font-size: 12px;
}

.wijmo-wijgrid-innercell
{
font-size: 12px;
}
.juzhong
{
border:0px;
padding-left:30px
}
.juzhong1
{
border:0px;
padding-left:45px
}
</style>
<wijmo:C1Tabs ID="C1Tab1" runat="server" OnSelectedChanged="C1Tab1_SelectedChanged">
<pages>
<wijmo:C1TabPage ID="Page1" Text="应收款">

<table>
<tr>
<td>
<asp:Label ID="Label2" runat="server" Text="选择状态:"></asp:Label>
</td>
<td>
<asp:DropDownList ID="DropDownList3" runat="server" OnSelectedIndexChanged="DropDownList3_SelectedIndexChanged" AutoPostBack="True">
<asp:ListItem>未完成</asp:ListItem>
<asp:ListItem>已完成</asp:ListItem>

<asp:ListItem>挂账</asp:ListItem>
</asp:DropDownList>
</td>
<td>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <asp:Label ID="Label3" runat="server" Text="选择时间:"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox2" runat="server" data-rule="required" CssClass="Wdate" Width="100px" onclick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM'})" Height="19px" ReadOnly="false"></asp:TextBox>
</td>
<td>
&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Button ID="chaxun1" runat="server" Text="查询" OnClick="chaxun1_Click" Height="20px" />

</td>

</tr>
</table>
<p></p>

<wijmo:C1GridView ID="C1GridView999" runat="server" ScrollMode="Auto" AutoGenerateColumns="False" EnableEventValidation="false" Width="1024px" Height="500px" AllowVirtualScrolling="False" Culture="zh-CN" FreezingMode="None" RowHeight="19" StaticColumnIndex="-1" StaticRowIndex="-1" OnRowDataBound="C1GridView999_RowDataBound" >
<pagersettings mode="NumericFirstLast" />
<scrollingsettings mode="Auto"></scrollingsettings>
<columns>
<wijmo:C1BoundField DataField="BillNumberId" HeaderText="id" SortExpression="BillNumberId" Width="57%" Visible="False">
</wijmo:C1BoundField>
<wijmo:C1BoundField DataField="btypeid" HeaderText="btypeid" SortExpression="btypeid" Width="57%" Visible="False">
</wijmo:C1BoundField>

<wijmo:C1TemplateField HeaderText="订单编号" Width="25%">
<ItemTemplate>
<asp:Button ID="Button5" runat="server" Text='<%#Eval("billcode") %>' Width="90%" OnPreRender="Button5_PreRender" CssClass="btn"></asp:Button>
</ItemTemplate>
<ItemStyle Width="5%" HorizontalAlign="Center" VerticalAlign="Middle" />
</wijmo:C1TemplateField>

<wijmo:C1BoundField DataField="fullname" HeaderText="客户名称" SortExpression="fullname" Width="15%"></wijmo:C1BoundField>

<wijmo:C1BoundField DataField="beiyong" HeaderText="已交" SortExpression="beiyong" Width="8%">
</wijmo:C1BoundField>
<wijmo:C1BoundField DataField="dancizongshoukuan" HeaderText="本次" SortExpression="dancizongshoukuan" Width="8%">
</wijmo:C1BoundField>
<wijmo:C1BoundField DataField="zhifufs" HeaderText="支付方式" SortExpression="zhifufs" Width="10%">
</wijmo:C1BoundField>
<%-- <wijmo:C1TemplateField HeaderText="支付方式" Width="30%">
<ItemTemplate>
<asp:TextBox runat="server" ID="zffs" Visible="false" Text='<%#Eval("支付方式") %>'></asp:TextBox>
<asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="false" DataValueField="支付方式" DataTextField="支付方式">
<%-- <asp:ListItem>微信支付</asp:ListItem>
<asp:ListItem>支付宝支付</asp:ListItem>
<asp:ListItem>现金支付</asp:ListItem>
<asp:ListItem>银行卡支付</asp:ListItem>
</asp:DropDownList>
</ItemTemplate>
</wijmo:C1TemplateField>--%>

<wijmo:C1TemplateField HeaderText="备注" Width="15%">
<ItemTemplate>
<asp:TextBox ID="beizhu" runat="server" Text='<%#Eval("beizhu") %>' Width="100%">
</asp:TextBox>
</ItemTemplate>
</wijmo:C1TemplateField>
<wijmo:C1BoundField DataField="zhifusj" HeaderText="支付时间" SortExpression="zhifusj" Width="10%" Visible="TRUE">
</wijmo:C1BoundField>
<wijmo:C1BoundField DataField="zhuangtai" Width="10%" HeaderText="状态" SortExpression="zhuangtai" Visible="false">
</wijmo:C1BoundField>
<wijmo:C1TemplateField HeaderText="操作" Width="7%">
<ItemTemplate>
<asp:Button runat="server" ID="baocun1" Style=" 50%;" Text="确认" OnClick="baocun1_Click" />

</ItemTemplate>
<HeaderStyle Width="10%"></HeaderStyle>
<ItemStyle HorizontalAlign="Center" Width="10%" />
</wijmo:C1TemplateField>
<wijmo:C1BoundField DataField="HUANKJE" HeaderText="HUANKJE" SortExpression="HUANKJE" Visible="False">
</wijmo:C1BoundField>
<wijmo:C1BoundField DataField="yukuan" HeaderText="yukuan" SortExpression="yukuan" Visible="False">
</wijmo:C1BoundField>
<%--<wijmo:C1BoundField DataField="备注" HeaderText="备注" SortExpression="备注" Visible="False">
</wijmo:C1BoundField>--%>
<%-- <wijmo:C1BoundField DataField="状态" HeaderText="状态" SortExpression="状态" Visible="TRUE">
</wijmo:C1BoundField>
<wijmo:C1BoundField DataField="原有余款" HeaderText="本次原有余款" SortExpression="原有余款" Width="20%" Visible="TRUE">
</wijmo:C1BoundField>
<wijmo:C1BoundField DataField="余款" HeaderText="本次新增余款" SortExpression="余款" Width="20%" Visible="TRUE">
</wijmo:C1BoundField>
<wijmo:C1BoundField DataField="真余款" HeaderText="真余款" SortExpression="真余款" Width="20%" Visible="TRUE">
</wijmo:C1BoundField>
<wijmo:C1BoundField DataField="支付时间" HeaderText="支付时间" SortExpression="支付时间" Width="24%" Visible="TRUE">
</wijmo:C1BoundField>--%>
<wijmo:C1BoundField DataField="id" HeaderText="id" SortExpression="id" Visible="False">
</wijmo:C1BoundField>
<wijmo:C1BoundField DataField="zqid" HeaderText="zqid" SortExpression="zqid" Visible="False">
</wijmo:C1BoundField>
</columns>
<RowStyle HorizontalAlign ="Center" Height="41px" />
</wijmo:C1GridView>
</wijmo:C1TabPage>

<wijmo:C1TabPage ID="Page2" Text="应退款">

<table>
<tr>
<td>
<asp:Label ID="Label4" runat="server" Text="选择状态:"></asp:Label>

</td>
<td>
<asp:DropDownList ID="DropDownList1" runat="server" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" AutoPostBack="True">
<asp:ListItem>未完成</asp:ListItem>
<asp:ListItem>已完成</asp:ListItem>


</asp:DropDownList>


</td>
<td>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <asp:Label ID="Label1" runat="server" Text="选择时间:"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox1" runat="server" data-rule="required" CssClass="Wdate" Width="100px" onclick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM'})" Height="19px" ReadOnly="false"></asp:TextBox>
</td>
<td>
&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Button ID="chaxun2" runat="server" Text="查询" OnClick="chaxun2_Click" Height="20px" />

</td>
</tr>
</table>
<p></p>
<wijmo:C1GridView ID="C1GridView1" runat="server" ScrollMode="Auto" AutoGenerateColumns="False" EnableEventValidation="false" Width="100%" Height="500px" AllowVirtualScrolling="False" Culture="zh-CN" FreezingMode="None" RowHeight="19" StaticColumnIndex="-1" StaticRowIndex="-1" OnRowDataBound="C1GridView1_RowDataBound">
<pagersettings mode="NumericFirstLast" />
<scrollingsettings mode="Auto"></scrollingsettings>
<columns>
<wijmo:C1BoundField DataField="id" HeaderText="ID" SortExpression="id" Width="20%" Visible="False">
</wijmo:C1BoundField>
<wijmo:C1BoundField DataField="BTypeId" HeaderText="BTypeId" SortExpression="" Width="80%" Visible="False">
</wijmo:C1BoundField>
<wijmo:C1TemplateField DataField="Bname" HeaderText="客户名称" SortExpression="Bname" Width="20%">
<ItemTemplate>
<asp:Button ID="POAP2" runat="server" Text='<%#Eval("Bname") %>' Width="90%" OnPreRender="POAP2_PreRender" CssClass="btn"></asp:Button>
</ItemTemplate>
<ItemStyle Width="5%" HorizontalAlign="Center" VerticalAlign="Middle" />
</wijmo:C1TemplateField>

<wijmo:C1BoundField DataField="totalnum" HeaderText="数量(桶)" SortExpression="totalnum" Width="20%" Visible="False">
</wijmo:C1BoundField>
<wijmo:C1BoundField DataField="totalmoney" HeaderText="总金额" SortExpression="totalmoney" Width="9.9%">
</wijmo:C1BoundField>
<wijmo:C1BoundField DataField="updatemoney" HeaderText="应退金额" SortExpression="updatemoney" Width="15%">
</wijmo:C1BoundField>
<wijmo:C1BoundField DataField="comment" HeaderText="备注" SortExpression="comment" Width="40%" Visible="False">
</wijmo:C1BoundField>
<wijmo:C1BoundField DataField="makerId" HeaderText="销售人员id" SortExpression="makerId" Width="40%" Visible="False">
</wijmo:C1BoundField>

<wijmo:C1BoundField DataField="returnGoodsCode" HeaderText="退货单" SortExpression="returnGoodsCode" Width="15%">
</wijmo:C1BoundField>




<wijmo:C1TemplateField HeaderText="支付方式" Width="10%">
<ItemTemplate>
<asp:DropDownList ID="DropDownList4" runat="server" AutoPostBack="false" >
<asp:ListItem>微信支付</asp:ListItem>
<asp:ListItem>支付宝支付</asp:ListItem>
<asp:ListItem>现金支付</asp:ListItem>
<asp:ListItem>银行卡支付</asp:ListItem>
</asp:DropDownList>
</ItemTemplate>
</wijmo:C1TemplateField>

<wijmo:C1TemplateField HeaderText="操作" Width="10%">
<ItemTemplate>
<asp:Button runat="server" ID="queren" Style=" 49%;" Text="确认" OnClick="queren_Click" />

</ItemTemplate>
<HeaderStyle Width="10%"></HeaderStyle>
<ItemStyle HorizontalAlign="Center" Width="10%" />
</wijmo:C1TemplateField>
<wijmo:C1BoundField DataField="maker" HeaderText="操作人" SortExpression="maker" Width="25%" Visible="False">
</wijmo:C1BoundField>
<wijmo:C1BoundField DataField="date" HeaderText="时间" SortExpression="date" Width="25%">
</wijmo:C1BoundField>
<wijmo:C1BoundField DataField="state" HeaderText="状态" SortExpression="state" Width="25%" Visible="False">
</wijmo:C1BoundField>
<wijmo:C1BoundField DataField="adjust" HeaderText="状态2" SortExpression="adjust" Width="25%" Visible="False">
</wijmo:C1BoundField>
</columns>
<RowStyle HorizontalAlign ="Center" />
</wijmo:C1GridView>
</wijmo:C1TabPage>

<wijmo:C1TabPage ID="C1TabPage1" Text="账期">
<table>
<tr>

<td>
<asp:Label ID="Label5" runat="server" Text="客户查询:"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox3" runat="server" ></asp:TextBox>
</td>
<td>
&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Button ID="Button1" OnClick="Button1_Click" runat="server" Text="查询" Height="20px" />

</td>
<td> &nbsp;&nbsp;&nbsp;&nbsp;
<asp:Label ID="Label6" runat="server" Text="合计:"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox4" runat="server" ></asp:TextBox> 元
</td>
</tr>
</table>
<p></p>
<wijmo:C1GridView ID="C1GridView2" runat="server" ScrollMode="Auto" AutoGenerateColumns="False" EnableEventValidation="false" Width="100%" Height="500px" AllowVirtualScrolling="False" Culture="zh-CN" FreezingMode="None" RowHeight="19" StaticColumnIndex="-1" StaticRowIndex="-1" OnRowDataBound="C1GridView2_RowDataBound" >
<pagersettings mode="NumericFirstLast" />
<scrollingsettings mode="Auto"></scrollingsettings>
<columns>
<wijmo:C1BoundField DataField="BillNumberId" HeaderText="BillNumberId" SortExpression="BillNumberId" Width="80%" Visible="FALSE">
</wijmo:C1BoundField>
<wijmo:C1BoundField DataField="btypeid" HeaderText="btypeid" SortExpression="btypeid" Width="80%" Visible="FALSE">
</wijmo:C1BoundField>
<wijmo:C1BoundField DataField="fullname" HeaderText="客户名称" SortExpression="fullname" Width="20%" Visible="true">
</wijmo:C1BoundField>
<wijmo:C1BoundField DataField="billcode" HeaderText="订单编号" SortExpression="billcode" Width="20%" Visible="true">
</wijmo:C1BoundField>
<wijmo:C1BoundField DataField="zffs" HeaderText="支付方式" SortExpression="zffs" Width="10%" Visible="true">
</wijmo:C1BoundField>
<wijmo:C1BoundField DataField="detail" HeaderText="余款变动" SortExpression="detail" Width="10%" Visible="true">
</wijmo:C1BoundField>
<wijmo:C1BoundField DataField="date" HeaderText="支付时间" SortExpression="date" Width="10%" Visible="true">
</wijmo:C1BoundField>
<%--
<wijmo:C1BoundField DataField="money" HeaderText="本次" SortExpression="money" Width="20%" Visible="true">
</wijmo:C1BoundField>
<wijmo:C1BoundField DataField="beiyong" HeaderText="已交" SortExpression="beiyong" Width="20%" Visible="true">
</wijmo:C1BoundField>--%>
<wijmo:C1TemplateField HeaderText="原有余款" Width="9.8%">
<ItemTemplate>
<asp:TextBox runat="server" ReadOnly="true" CssClass="juzhong" ID="textbcxz" />

</ItemTemplate>
<HeaderStyle Width="10%"></HeaderStyle>
<ItemStyle HorizontalAlign="Center" Width="10%" />
</wijmo:C1TemplateField>

<wijmo:C1BoundField DataField="yukuan" HeaderText="原有余款" SortExpression="yukuan" Width="10%" Visible="false">
</wijmo:C1BoundField>

<wijmo:C1BoundField DataField="money" HeaderText="本次变动" SortExpression="money" Width="10%" Visible="true">
</wijmo:C1BoundField>
<wijmo:C1TemplateField HeaderText="总余款" Width="15%">
<ItemTemplate>
<asp:TextBox runat="server" ReadOnly="true" CssClass="juzhong1" ID="txtzyk" />

</ItemTemplate>
<HeaderStyle Width="10%"></HeaderStyle>
<ItemStyle HorizontalAlign="Center" Width="10%" />
</wijmo:C1TemplateField>
<%-- <wijmo:C1BoundField DataField="yukuan" HeaderText="总余款" SortExpression="yukuan" Width="20%" Visible="true">
</wijmo:C1BoundField>--%>
<wijmo:C1TemplateField HeaderText="操作" Width="10%" Visible="false">
<ItemTemplate>
<asp:Button runat="server" ID="yve" Style=" 49%;" Text="确认" OnClick="yve_Click" />

</ItemTemplate>
<HeaderStyle Width="10%"></HeaderStyle>
<ItemStyle HorizontalAlign="Center" Width="10%" />
</wijmo:C1TemplateField>
<wijmo:C1BoundField DataField="shu" HeaderText="shu" SortExpression="shu" Width="20%" Visible="false">
</wijmo:C1BoundField>
</columns>
<RowStyle HorizontalAlign ="Center" />
</wijmo:C1GridView>
</wijmo:C1TabPage>
</pages>
</wijmo:C1Tabs>

原文地址:https://www.cnblogs.com/1971855407qq/p/8539092.html