Support‎ > ‎

EPortal.config Settings

Starting at 14.11, Employee Portal have it own config file (EPortal.config) that stored the site specific information (SQL Server connection info and smtp server settings or may be others). Employee Portal now read the settings in EPortal.config first before looking into Web.Config. So EPortal.config will be a static file storing customer information that stay on customer site and the settings in Web.config will be ignored.

It is preferable to define settings in EPortal.config rather than Web.config.
 
Sample EPortal.config settings

Text Box

<appSettings>
  <add key="data source" value="NUTECH-OFFICE\HRPRO2008"/>
  <add key="initial catalog" value="dbHRPro"/>
  <add key="user id" value="sa"/>
  <add key="password" value="HiTech669"/>
  <add key="smtp from" value="hr@hrpro.hk"/>
  <add key="smtp from name" value="HR Department"/>
  <add key="smtp network host" value="smtp.gmail.com"/>
  <add key="smtp network port" value="587"/>
  <add key="smtp userName" value="hr@hrpro.hk"/>
  <add key="smtp password" value="HiTech669"/>
  <add key="smtp enableSsl" value="true"/>
  <add key="AttendanceRecordNoOfPeriods" value="12"/>
  <add key="iCalBeforeMonths" value="3"/>
  <add key="iCalAfterMonths" value="12"/>
  <add key="dbCommandTimeOut" value="600"/>
  <add key="IsSingleCompanyLogin" value="false"/>
  <add key="ColorBlue" value="#4285F4"/>
  <add key="ColorBlueDark" value="#0d47a1"/>
  <add key="ColorBluePale" value="#82b1ff"/>
  <add key="ColorBlueLight" value="#bbdefb"/>
  <add key="ColorRed" value="#ff4444"/>
  <add key="ColorRedDark" value="#cc0000"/>
  <add key="ColorRedPale" value="#ff8a80"/>
  <add key="ColorRedLight" value="#ffcdd2"/>
  <add key="ColorGreen" value="#00c851"/>
  <add key="ColorGreenDark" value="#007e33"/>
  <add key="ColorGreenPale" value="#b9f6ca"/>
  <add key="ColorGreenLight" value="#c8e6c9"/>
  <add key="ColorGrey" value="#616161"/>
  <add key="ColorGreyDark" value="#424242"/>
  <add key="ColorGreyPale" value="#bdbdbd"/>
  <add key="ColorGreyLight" value="#f5f5f5"/>
  <add key="ColorAmber" value="#ffbb33"/>
  <add key="ColorAmberDark" value="#FF8800"/>
  <add key="ColorAmberPale" value="#ffe57f"/>
  <add key="ColorAmberLight" value="#ffecb3"/>
  <add key="ColorBrown" value="#6d4c41"/>
  <add key="ColorBrownDark" value="#4e342e"/>
  <add key="ColorBrownPale" value="#a1887f"/>
  <add key="ColorBrownLight" value="#d7ccc8"/>
  <add key="ColorPink" value="#ff4081"/>
  <add key="ColorPinkDark" value="#c51162"/>
  <add key="ColorPinkPale" value="#f06292"/>
  <add key="ColorPinkLight" value="#f8bbd0"/>
  <add key="ColorTeal" value="#00897b"/>
  <add key="ColorTealDark" value="#00695c"/>
  <add key="ColorTealPale" value="#4db6ac"/>
  <add key="ColorTealLight" value="#b2dfdb"/>
  <add key="ColorBlueGrey" value="#546e7a"/>
  <add key="ColorBlueGreyDark" value="#37474f"/>
  <add key="ColorBlueGreyPale" value="#90a4ae"/>
  <add key="ColorBlueGreyLight" value="#cfd8dc"/>
  <add key="ColorOriginalBlue" value="#337AB7"/>
  <add key="ColorOriginalBlueDark" value="#336699"/>
  <add key="ColorOriginalBluePale" value="#81A8CE"/>
  <add key="ColorOriginalBlueLight" value="#EFF3FB"/>
  <add key="MainThemeColor" value="#4285F4"/>
  <add key="MainThemeColorDark" value="#0d47a1"/>
  <add key="MainThemeColorPale" value="#82b1ff"/>
  <add key="MainThemeColorLight" value="#bbdefb"/>
  <add key="PDFReportUseFontFile" value="false"/>
</appSettings>


You can only put the keys you required into EPortal.config. If the key is missing in EPortal.config, system will use it default setting.

If IsSingleCompanyLogin is set to true, the company selection combo box on Home Page will be disabled.

If PDFReportUseFontFile is set to true, it supported to export PDF with Chinese Characters normally without requiring install Arial Unicode MS to the Server. See Why all Chinese Characters on the PDF report displayed as rectangular box in HRPro Web Client/EPortal?

For database specific settings, you can put the database name in front of the Key and separated with a space, e.g 
<add key="dbHRPro AttendanceRecordNoOfPeriodsvalue="99"/>

See also