Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public with sharing class TypeControllerNew2 {
- public class CaseCharges {
- public Integer count {get; set;}
- public String typ {get; set; }
- CaseCharges(String typ, Integer count) {
- this.count = count;
- this.typ = typ;
- }
- <apex:page docType="html-5.0" showHeader="false" sidebar="false" cache="false" controller="TypeControllerNew2" standardStylesheets="false" >
- <body>
- <outputPanel style="padding: 15px;">
- <a href="/apex/CaseList?fcf=00B21000000UI5I" class="alert-link"> Estimate of Non-Primary Charges</a>
- <apex:chart height="380" width="400" data="{!CaseCharges}">
- <apex:legend position="right"/>
- <apex:axis type="Numeric" position="bottom" fields="count" title="Case Record Count" minimum="0" maximum="10" />
- <apex:axis type="Category" position="left" fields="typ" title="Case Type" />
- <apex:barSeries title="In Progress Cases" orientation="horizontal" gutter="10" axis="bottom" xField="count" yField="typ" colorsProgressWithinSeries="true" colorset="red, green, yellow, black, white, orange" >
- <apex:chartTips height="20" width="120" />
- </apex:barSeries>
- </apex:chart>
- <apex:dataTable value="{!CaseCharges}" var="ty">
- <apex:column headerValue="Case Type" value="{!ty.typ}"/>
- <apex:column headerValue="Number of Cases" value="{!ty.count}"/>
- </apex:dataTable>
- </outputPanel>
- </body>
- @isTest (seeAllData = true)
- PageReference graph2Page = Page.AWSHome;
- Test.setCurrentPage(graph2Page);
- TypeControllerNew2 tcNew2Test = new TypeControllerNew2();
- tcNew2Test.getCaseCharges();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement