Esempio n. 1
0
        private void LoadData()
        {
            var query = Provider.Billing.Tool.GetToolBilling(period, clientId);
            IEnumerable <IResource> resources = Provider.Scheduler.Resource.GetResources();
            IEnumerable <IAccount>  accounts  = Provider.Data.Account.GetAccounts();

            var       toolBilling   = new LNF.Reporting.Individual.ToolBilling(Provider);
            DataTable dtAggByTool   = toolBilling.GetAggreateByTool(query, resources, accounts);
            DataTable dtToolCharges = toolBilling.GetToolCharges(dtAggByTool);

            rptToolCharges.DataSource = dtToolCharges;
            rptToolCharges.DataBind();
        }
        public void PopulateToolDetailData(DateTime period, int clientId)
        {
            //Tool - despite the word 'Detail' in the function name this is actually an aggregate by tool
            var toolBilling = new LNF.Reporting.Individual.ToolBilling(Provider);
            var toolDetail  = ToolDetailUtility.GetToolDetailResult(period, clientId, toolBilling);

            lbl20110401RoomSum.Text    = toolDetail.LabelRoomSum.Text;
            lbl20110401RoomSum.Visible = toolDetail.LabelRoomSum.Visible;
            lbl20110401ResFee.Text     = toolDetail.LabelResFee.Text;
            lbl20110401ResFee.Visible  = toolDetail.LabelResFee.Visible;
            lblTool.Text    = toolDetail.LabelTool.Text;
            lblTool.Visible = toolDetail.LabelTool.Visible;

            rptToolDetail.DataSource = toolDetail.Items;
            rptToolDetail.DataBind();
        }