PDA-Bank-Cards-Info
/
Excel.aspx
34 строки · 1.7 Кб
1<%@ Page Title="Экспорт в Excel" Language="C#" MasterPageFile="~/MasterPage.master"
2AutoEventWireup="true" CodeFile="Excel.aspx.cs" Inherits="Excel" %>
3
4<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
5</asp:Content>
6<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="Server">
7<asp:GridView ID="TransGrid" runat="server"
8Caption="Операции по карте"
9DataSourceID="SqlTrans" >
10</asp:GridView>
11<asp:GridView ID="CardsGrid" runat="server"
12Caption="Карточки" DataSourceID="SqlCards"
13onselectedindexchanged="CardsGrid_SelectedIndexChanged"
14DataKeyNames="card_id">
15<Columns>
16<asp:CommandField ShowSelectButton="True" />
17</Columns>
18</asp:GridView>
19<asp:SqlDataSource ID="SqlCards" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionDataMart %>"
20SelectCommand="wsp_dm_pc_get_cards_num" SelectCommandType="StoredProcedure">
21<SelectParameters>
22<asp:Parameter Name="client_login" Type="String" />
23</SelectParameters>
24</asp:SqlDataSource>
25<asp:SqlDataSource ID="SqlTrans" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionDataMart %>"
26SelectCommand="wsp_dm_pc_get_operations" SelectCommandType="StoredProcedure"
27FilterExpression="transaction_date>='{0}' and transaction_date<'{1}'">
28<SelectParameters>
29<asp:Parameter Name="client_login" Type="String" />
30<asp:ControlParameter ControlID="CardsGrid" Name="card_id" PropertyName="SelectedValue"
31Type="Int32" />
32</SelectParameters>
33</asp:SqlDataSource>
34</asp:Content>
35