コード例 #1
0
        private void BindGrid(int clientId)
        {
            Classes.CPayment cp = new Classes.CPayment();
            List <Models.MOrderViewOfPayment> Payments = new List <Models.MOrderViewOfPayment>();

            Payments          = cp.ShowClientOrderViewForPayment(clientId);
            grdRec.DataSource = Payments;
            grdRec.DataBind();
        }
コード例 #2
0
        private void BindClientsGird()
        {
            List <Models.MOrderViewOfPayment> ClientPayments = new List <Models.MOrderViewOfPayment>();

            Classes.CPayment cp = new Classes.CPayment();
            ClientPayments      = cp.ShowClientOrderViewForPayment();
            grdSales.DataSource = ClientPayments;
            grdSales.DataBind();
        }
コード例 #3
0
        private void BindGrid()
        {
            Classes.CPayment cp = new Classes.CPayment();
            List <Models.MOrderViewOfPayment> Payments = new List <Models.MOrderViewOfPayment>();

            Payments = cp.ShowClientOrderViewForPayment();
            int FiscalYearId = Convert.ToInt32(Session["FiscalYear"]);

            Classes.CFiscalYear cf    = new Classes.CFiscalYear();
            List <DateTime>     Dates = cf.GetDefaultDatesById(FiscalYearId);

            Payments = (from o in Payments
                        where Convert.ToDateTime(o.OrderDate) >= Dates[0] && Convert.ToDateTime(o.OrderDate) <= Dates[1]
                        select o).ToList();
            grdRec.DataSource = Payments;
            grdRec.DataBind();
        }