IEC dev notes

<button onclick="displayDate()">Try it</button>
<code>{!URLFOR($Page.MyExamplePage,'',[objectId = campaign.id])}</code>


<apex:page standardController="Product__c" extensions="Extension_VF_Product">
<apex:pagemessages />

<script>
function checkedPassThruAll()
{
    document.getElementById('{!$Component.frm1.pblock.Sect5.Black_Start_Amount__c}').checked=true;
    document.getElementById('{!$Component.frm1.pblock.Sect5.Ercot_Administration_Team__c}').checked=true;
    document.getElementById('{!$Component.frm1.pblock.Sect5.Non_Spin_Bill_Amount__c}').checked=true;
    document.getElementById('{!$Component.frm1.pblock.Sect5.Regulation_Up_Service__c}').checked=true;
    document.getElementById('{!$Component.frm1.pblock.Sect5.Replacement_Reserve_Service__c}').checked=true;
    document.getElementById('{!$Component.frm1.pblock.Sect5.Regulation_Down_Service__c}').checked=true;
    document.getElementById('{!$Component.frm1.pblock.Sect5.Charge_for_Emerg_Power_Increase_Amount__c}').checked=true;
    document.getElementById('{!$Component.frm1.pblock.Sect5.Base_Point_Deviation_Amount__c}').checked=true;
    document.getElementById('{!$Component.frm1.pblock.Sect5.Real_Time_Rev_Neutrality_Alloc_Amount__c}').checked=true;
    document.getElementById('{!$Component.frm1.pblock.Sect5.Ancillary_Services_Pass_Through_Charge__c}').checked=true;
    document.getElementById('{!$Component.frm1.pblock.Sect5.ResourceAdequacy_RPM_Pass_Through_Charge__c}').checked=true;
    document.getElementById('{!$Component.frm1.pblock.Sect5.RECs_Pass_Through_Charge__c}').checked=true;
    document.getElementById('{!$Component.frm1.pblock.Sect5.TEC_Credit_or_Charge__c}').checked=true;
    document.getElementById('{!$Component.frm1.pblock.Sect5.ISO_Pass_Through_Charge__c}').checked=true;
    document.getElementById('{!$Component.frm1.pblock.Sect5.ARR_Pass_Through_Charge_Credit__c}').checked=true;
    document.getElementById('{!$Component.frm1.pblock.Sect5.Operating_Reserves_Pass_Through_Charge__c}').checked=true;
    document.getElementById('{!$Component.frm1.pblock.Sect5.Marginal_Loss_Credit__c}').checked=true;
}


function uncheckedPassThruAll()
{
    document.getElementById('{!$Component.frm1.pblock.Sect5.Black_Start_Amount__c}').checked=false;
    document.getElementById('{!$Component.frm1.pblock.Sect5.Ercot_Administration_Team__c}').checked=false;
    document.getElementById('{!$Component.frm1.pblock.Sect5.Non_Spin_Bill_Amount__c}').checked=false;
    document.getElementById('{!$Component.frm1.pblock.Sect5.Regulation_Up_Service__c}').checked=false;
    document.getElementById('{!$Component.frm1.pblock.Sect5.Replacement_Reserve_Service__c}').checked=false;
    document.getElementById('{!$Component.frm1.pblock.Sect5.Regulation_Down_Service__c}').checked=false;
    document.getElementById('{!$Component.frm1.pblock.Sect5.Charge_for_Emerg_Power_Increase_Amount__c}').checked=false;
    document.getElementById('{!$Component.frm1.pblock.Sect5.Base_Point_Deviation_Amount__c}').checked=false;
    document.getElementById('{!$Component.frm1.pblock.Sect5.Real_Time_Rev_Neutrality_Alloc_Amount__c}').checked=false;
    document.getElementById('{!$Component.frm1.pblock.Sect5.Ancillary_Services_Pass_Through_Charge__c}').checked=false;
    document.getElementById('{!$Component.frm1.pblock.Sect5.ResourceAdequacy_RPM_Pass_Through_Charge__c}').checked=false;
    document.getElementById('{!$Component.frm1.pblock.Sect5.RECs_Pass_Through_Charge__c}').checked=false;
    document.getElementById('{!$Component.frm1.pblock.Sect5.TEC_Credit_or_Charge__c}').checked=false;
    document.getElementById('{!$Component.frm1.pblock.Sect5.ISO_Pass_Through_Charge__c}').checked=false;
    document.getElementById('{!$Component.frm1.pblock.Sect5.ARR_Pass_Through_Charge_Credit__c}').checked=false;
    document.getElementById('{!$Component.frm1.pblock.Sect5.Operating_Reserves_Pass_Through_Charge__c}').checked=false;
    document.getElementById('{!$Component.frm1.pblock.Sect5.Marginal_Loss_Credit__c}').checked=false;
}
</script>

<apex:form id="frm1">

 {!$CurrentPage.parameters.RecordType}
 {!LEFT(Product__c.RecordTypeId,15)}
 
 
<apex:pageBlock title="Product" mode="inlineEdit" id="pblock"> 

<apex:pageBlockButtons >
    <apex:commandButton value="Save" action="{!save}"/>
    <apex:commandButton value="Cancel" action="{!cancel}"/>
</apex:pageBlockButtons>    


            <!-- ********** Output Panel for Record Type : Block Ercot GEMS **********  -->
            <apex:outputpanel >
                <apex:pageblocksection id="Sect1" title="Block" showheader="true" collapsible="true" columns="2">
                    <apex:inputfield value="{!Product__c.Name}"/>
                    <apex:inputfield value="{!Product__c.Ancillary_Adder__c}"/>
                    <!-- <apex:inputfield value="{!Product__c.Account__c}"/> -->
                    <!-- <apex:inputfield value="{!Product__c.Rebate__c}"/> -->
                    <!-- <apex:inputfield value="{!Product__c.Opportunity__c}"/>  -->
                    <apex:inputfield value="{!Product__c.Heat_Rate__c}"/>
                    <apex:inputfield value="{!Product__c.Base_Charge__c}"/>
                    <apex:inputfield value="{!Product__c.Real_Time_or_Day_Ahead__c}"/>
                    <apex:inputfield value="{!Product__c.Charge__c}"/>
                    <apex:inputfield value="{!Product__c.Sapphire_Indicator__c}"/>
                    <apex:inputfield value="{!Product__c.Retail_Adder__c}"/>
                    <apex:pageblocksectionitem />
                    <apex:inputfield value="{!Product__c.Flat_Or_Scheduled__c}"/>
                    <apex:pageblocksectionitem />
                    <!-- <apex:inputfield value="{!Product__c.Product_Risk_Category__c}"/> -->
                    <apex:pageblocksectionitem />
                    <!-- <apex:inputfield value="{!Product__c.Product_Type__c}"/> -->
                    <apex:pageblocksectionitem />
                    <!-- <apex:inputfield value="{!Product__c.Pricing_Type__c}"/> -->
                    <apex:pageblocksectionitem />
                    <apex:inputfield value="{!Product__c.Legacy_CMS_Id__c}"/>
                    <apex:pageblocksectionitem />
                </apex:pageblocksection>
                
<!--                <apex:pageblocksection id="Sect2" title="Block 1 Info" showheader="true" collapsible="true" columns="2">
                    <apex:inputfield value="{!Product__c.Block_1_Type__c}"/>
                    <apex:inputfield value="{!Product__c.Block_1_Adder_Per_MWh__c}"/>
                    <apex:inputfield value="{!Product__c.Block_1_Price_per_MWh__c}"/>
                    <apex:inputfield value="{!Product__c.Block_1_Volume__c}"/>
                </apex:pageblocksection> 
                
-->
       
                <apex:pageblocksection id="Sect3" title="Block 2 Info" showheader="true" collapsible="true" columns="2">
                    <apex:inputfield value="{!Product__c.Block_2_Type__c}"/>
                    <apex:inputfield value="{!Product__c.Block_2_Adder_Per_MWh__c}"/>
                    <apex:inputfield value="{!Product__c.Block_2_Price_per_MWh__c}"/>
                    <apex:inputfield value="{!Product__c.Block_2_Volume__c}"/>
                </apex:pageblocksection>
                <apex:pageblocksection id="Sect4"  title="Block 3 Info" showheader="true" collapsible="true" columns="2">
                    <apex:inputfield value="{!Product__c.Block_3_Type__c}"/>
                    <apex:inputfield value="{!Product__c.Block_3_Adder_Per_MWh__c}"/>
                    <apex:inputfield value="{!Product__c.Block_3_Price_per_MWh__c}"/>
                    <apex:inputfield value="{!Product__c.Block_3_Volume__c}"/>
                </apex:pageblocksection>
                <apex:pageblocksection id="Sect5" title="Ancillary Pass-Through" showheader="true" collapsible="true" columns="2" >
                    <apex:outputText >
                    <a onclick="javascript:checkedPassThruAll('frm1', true);" href="javascript:void();">check all</a> | 
                    <a onclick="javascript:uncheckedPassThruAll('frm1', true);" href="javascript:void();">uncheck all</a>
                    </apex:outputText>
                    <apex:outputText > </apex:outputText>
                    <apex:inputfield id="Black_Start_Amount__c" value="{!Product__c.Black_Start_Amount__c}"/>
                    <apex:inputfield id="Ercot_Administration_Team__c" value="{!Product__c.Ercot_Administration_Team__c}"/>
                    <apex:inputfield id="Non_Spin_Bill_Amount__c" value="{!Product__c.Non_Spin_Bill_Amount__c}"/>
                    <apex:inputfield id="Regulation_Up_Service__c" value="{!Product__c.Regulation_Up_Service__c}"/>
                    <apex:inputfield id="Replacement_Reserve_Service__c" value="{!Product__c.Replacement_Reserve_Service__c}"/>
                    <apex:inputfield id="Regulation_Down_Service__c" value="{!Product__c.Regulation_Down_Service__c}"/>
                    <apex:inputfield id="Charge_for_Emerg_Power_Increase_Amount__c" value="{!Product__c.Charge_for_Emerg_Power_Increase_Amount__c}"/>
                    <apex:inputfield id="Base_Point_Deviation_Amount__c" value="{!Product__c.Base_Point_Deviation_Amount__c}"/>
                    <apex:inputfield id="Real_Time_Rev_Neutrality_Alloc_Amount__c" value="{!Product__c.Real_Time_Rev_Neutrality_Alloc_Amount__c}"/>
                    <apex:inputfield id="Ancillary_Services_Pass_Through_Charge__c" value="{!Product__c.Ancillary_Services_Pass_Through_Charge__c}"/>
                    <apex:pageblocksectionitem />
                    <apex:inputfield id="ResourceAdequacy_RPM_Pass_Through_Charge__c" value="{!Product__c.ResourceAdequacy_RPM_Pass_Through_Charge__c}"/>
                    <apex:pageblocksectionitem />
                    <apex:inputfield id="RECs_Pass_Through_Charge__c" value="{!Product__c.RECs_Pass_Through_Charge__c}"/>
                    <apex:pageblocksectionitem />
                    <apex:inputfield id="TEC_Credit_or_Charge__c" value="{!Product__c.TEC_Credit_or_Charge__c}"/>
                    <apex:pageblocksectionitem />
                    <apex:inputfield id="ISO_Pass_Through_Charge__c" value="{!Product__c.ISO_Pass_Through_Charge__c}"/>
                    <apex:pageblocksectionitem />
                    <apex:inputfield id="ARR_Pass_Through_Charge_Credit__c" value="{!Product__c.ARR_Pass_Through_Charge_Credit__c}"/>
                    <apex:pageblocksectionitem />
                    <apex:inputfield id="Operating_Reserves_Pass_Through_Charge__c" value="{!Product__c.Operating_Reserves_Pass_Through_Charge__c}"/>
                    <apex:pageblocksectionitem />
                    <apex:inputfield id="Marginal_Loss_Credit__c" value="{!Product__c.Marginal_Loss_Credit__c}"/>
                </apex:pageblocksection>
                <apex:pageblocksection id="Sect6" title="Loss Pass-Through" showheader="true" collapsible="true" columns="2">
                    <apex:inputfield value="{!Product__c.Transmission_Distribution_Losses__c}"/>
                    <apex:inputfield value="{!Product__c.T_D_Line_Loss__c}"/>
                    <apex:inputfield value="{!Product__c.UFE_Line_Loss__c}"/>
                    <apex:pageblocksectionitem />
                </apex:pageblocksection>
                <apex:pageblocksection id="Sect7" title="Other Pass-Through" showheader="true" collapsible="true" columns="2">
                    <apex:inputfield value="{!Product__c.Management_Fee_Amount__c}"/>
                    <apex:inputfield value="{!Product__c.Hub_to_Zone_Basis__c}"/>
                </apex:pageblocksection>
                <apex:pageblocksection id="Sect8" title="Renewable Energy Credits (RECs)" showheader="true" collapsible="true" columns="2">
                    <apex:inputfield value="{!Product__c.RECs__c}"/>
                    <apex:pageblocksectionitem />
                    <apex:inputfield value="{!Product__c.Additional_RECs_1_State__c}"/>
                    <apex:inputfield value="{!Product__c.Additional_RECs_1_Percentage__c}"/>
                    <apex:inputfield value="{!Product__c.Additional_RECs_2_State__c}"/>
                    <apex:inputfield value="{!Product__c.Additional_RECs_2_Percentage__c}"/>
                    <apex:inputfield value="{!Product__c.Additional_RECs_3_State__c}"/>
                    <apex:inputfield value="{!Product__c.Additional_RECs_3_Percentage__c}"/>
                </apex:pageblocksection>
                
                
                <apex:pageblocksection id="Sect9" title="Additional Details" showheader="true" collapsible="true" columns="2">
                    <apex:inputfield value="{!Product__c.PK_Hours_High__c}"/>
                    <apex:inputfield value="{!Product__c.Holiday_Type__c}"/>
                    <apex:inputfield value="{!Product__c.PK_Hours_Low__c}"/>
                    <!-- <apex:inputfield value="{!Product__c.Lower_Bandwidth__c}"/> -->
                    <apex:inputfield value="{!Product__c.PK_Days_High__c}"/>
                    <apex:inputfield value="{!Product__c.Upper_Bandwidth__c}"/>
                    <apex:inputfield value="{!Product__c.PK_Days_Low__c}"/>
                    <apex:pageblocksectionitem />
                </apex:pageblocksection>
                

                <apex:pageblocksection id="Sect10" title="System information" showheader="true" collapsible="true" columns="2">
                    <!-- <apex:inputfield value="{!Product__c.Time_Stamp_for_product__c}"/> -->
                    <apex:pageblocksectionitem />
                </apex:pageblocksection>
       
            </apex:outputpanel>

          
                

</apex:pageBlock>
    
    
</apex:form>    

</apex:page>

 http://www.w3schools.com/js/js_htmldom_events.asp

Print Friendly, PDF & Email
This entry was posted in Development and tagged . Bookmark the permalink.