コード例 #1
0
        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();
        }
コード例 #2
0
        public void SetToolDataInfo(DataTable dtTool)
        {
            // [2022-04-08 jg] old method uses this ToolBilling class. The new way uses the UserUsageAudit class but resusing the label code here

            //var toolBilling = new LNF.Reporting.Individual.ToolBilling(Provider);
            //var toolDetail = ToolDetailUtility.GetToolDetailResult(period, clientId, toolBilling);

            var labelTool    = new BillingReportLabel();
            var labelRoomSum = new BillingReportLabel();
            var labelResFee  = new BillingReportLabel();

            ToolDetailUtility.SetLabels(dtTool, labelTool, labelRoomSum, labelResFee);

            lbl20110401RoomSum.Text    = labelRoomSum.Text;
            lbl20110401RoomSum.Visible = labelRoomSum.Visible;
            lbl20110401ResFee.Text     = labelResFee.Text;
            lbl20110401ResFee.Visible  = labelResFee.Visible;
            lblTool.Text    = labelTool.Text;
            lblTool.Visible = labelTool.Visible;
        }