Beispiel #1
0
        private void accordionControlElement44_Click(object sender, EventArgs e) //账户资金
        {
            ca = new CapitalAccount();
            ca.Show();
            ca.Dock = DockStyle.Fill;
            panel2.Controls.Clear();
            panel2.Controls.Add(ca);
            CapitalAccount dca = new CapitalAccount();

            domain.Fund_Accounts fund_account = new domain.Fund_Accounts();
            ca.gridControl2.DataSource = showData <domain.Fund_Accounts>(fund_account, dca.now_Page.ToString());
        }
Beispiel #2
0
        private void dataNavigator1_ButtonClick(object sender, NavigatorButtonClickEventArgs e)
        {
            NavigatorButtonType btnType = (NavigatorButtonType)e.Button.ButtonType;

            if (e.Button is NavigatorCustomButton)
            {
                NavigatorCustomButton btn = (NavigatorCustomButton)e.Button;
                if (btn.Tag.ToString() == "下一页" && now_Page < total_Page)
                {
                    now_Page++;
                    dataNavigator_FundAccount.TextStringFormat = string.Format("第 {0}页,共 {1}页", now_Page, total_Page);
                    domain.Fund_Accounts bs = new domain.Fund_Accounts();
                    gridControl2.DataSource = fc.showData <domain.Fund_Accounts>(bs, now_Page.ToString());
                }
                else if (btn.Tag.ToString() == "上一页" && now_Page > 1)
                {
                    now_Page--;
                    dataNavigator_FundAccount.TextStringFormat = string.Format("第 {0}页,共 {1}页", now_Page, total_Page);
                    domain.Fund_Accounts bs = new domain.Fund_Accounts();
                    gridControl2.DataSource = fc.showData <domain.Fund_Accounts>(bs, now_Page.ToString());
                }
                else if (btn.Tag.ToString() == "首页")
                {
                    now_Page = 1;
                    dataNavigator_FundAccount.TextStringFormat = string.Format("第 {0}页,共 {1}页", now_Page, total_Page);
                    domain.Fund_Accounts bs = new domain.Fund_Accounts();
                    gridControl2.DataSource = fc.showData <domain.Fund_Accounts>(bs, now_Page.ToString());
                }
                else if (btn.Tag.ToString() == "尾页")
                {
                    now_Page = total_Page;
                    dataNavigator_FundAccount.TextStringFormat = string.Format("第 {0}页,共 {1}页", now_Page, total_Page);
                    domain.Fund_Accounts bs = new domain.Fund_Accounts();
                    gridControl2.DataSource = fc.showData <domain.Fund_Accounts>(bs, now_Page.ToString());
                }
            }
        }