﻿<?xml version="1.0"?>
<configuration>
	<configSections>
		<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
			<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
				<section name="scriptResourfvceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
				<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
					<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
					<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
					<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
				</sectionGroup>
			</sectionGroup>
		</sectionGroup>
	</configSections>
	<!-- 資料庫連結參數設定 -->
	<connectionStrings>
		<remove name="LocalSqlServer"/>
		<add connectionString="Server=mssql.millionasia.com;Database=Taiwancable2009;User Id=taiwancable_db;Password=5lhgFV0BWM;" name="LocalSqlServer" providerName="System.Data.SqlClient" />
	</connectionStrings>
  <appSettings>
	  <clear />
	  <add key="APPLICATION_URL" value="http://www.taiwancable.org.tw" />                        <!-- 應用程式網址 -->
		<add key="APPLICATION_NAME" value="電線電纜公會後端管理系統" />                          <!-- 應用程式名稱 -->
		<add key="APPLICATION_CONNECTIONSTRING_NAME" value="LocalSqlServer" />                   <!-- 主要資料庫連結名稱（不設定怎直接存取LocalSqlServer) -->
		<add key="ADMIN_MAIL" value="eric@millionasia.com" />                                        <!-- 管理者電子郵件 -->
		<add key="ADMIN_NAME" value="電線電纜工會" />                                            <!-- 管理者名稱 -->
		<add key="MAIL_DEBUG_MESSAGE" value="False" />                                           <!-- 是否將錯誤訊息mail給管理者電子郵件（ADMIN_MAIL）-->
		<add key="SHOW_DEBUG_MESSAGE" value="True" />                                            <!-- 是否顯示錯誤訊息 -->
		<add key="SHOW_DEBUG_PAGE" value="" />                                         <!-- 顯示錯誤頁面 (不顯示則為空) -->
		<add key="DEBUG_LOG_PATH" value="D:\Taiwancable_Log\LOG" />                                  <!-- 文字記錄存取路徑 -->
    <add key="SUPER_USER_ACCOUNT" value="taiwancable|" />                                     <!-- 管理者帳號 （擁有完全系統權限）以|區隔--> 
    <add key="WELCOME_MSG" value="Welcome to Taiwancable Manage Portal !!" />
    <add key="STATUS_MSG" value="感謝您使用本系統 -電線電纜公會後端管理系統- Version 1.0" />
    <add key="COPY_RIGHT" value="Copyright 2008 TaiwanCable.org.tw All Rights Reserved." />
    <add key="LOGIN_PAGE" value="Default.aspx" />                                            <!--登入頁-->
    <add key="AFTER_LOGIN_PAGE" value="Main.aspx" />                                         <!--登入完成後導向頁-->
    
    <add key="QRY_CMD_LIST" value="檢視|查詢|下載|內容|詳細" />
    <add key="ADD_CMD_LIST" value="新增|選擇|確認上稿|Add" />
    <add key="UPT_CMD_LIST" value="儲存|修改|職稱設定|重設密碼|選擇|權限設定|流程設定|審核|通過|暫停|退回|Edit|Update" />
    <add key="DEL_CMD_LIST" value="刪除|Delete" />

    <add key="MAX_FILE_SIZE" value="" />
    <add key="ALLOW_IMG_TYPE" value="|.gif|.jpg|" />
    <add key="ALLOW_FILE_TYPE" value="|.doc|.xls|.pdf|.gif|.jpg|.zip|.rar|.txt|" />
    <add key="STORAGE_BG" value="_data\bg\" />                   <!-- 背景虛擬路徑 -->
    <add key="STORAGE_NEWS" value="_data\news\" />                   <!-- 最新消息虛擬路徑 -->
    <add key="STORAGE_JOURNAL" value="_data\journal\" />             <!-- 會訊期刊虛擬路徑 -->
    <add key="STORAGE_STATISTIC" value="_data\statistic\" />         <!-- 統計資料虛擬路徑 -->
    <add key="STORAGE_TRADE" value="_data\trade\" />                 <!-- 貿易商機虛擬路徑 -->
    <add key="STORAGE_AD" value="_data\ad\" />                    <!-- ad虛擬路徑 -->
    <!-- 帳號模擬 -->
    <add key="IS_ACCOUNT_SIMULATE" value="False" />       <!--是否模擬帳號-->
    <add key="SIMULATE_ACCOUNT" value="admin" />         <!--模擬帳號-->
    <add key="SIMULATE_NAME" value="millionasia" />      <!--模擬名稱-->
    <add key="SIMULATE_ROLEID" value="" />               <!--模擬角色-->
  </appSettings>
	<!-- 電子郵件伺服器設定 -->
	<system.net>
    <mailSettings>
      <smtp from="&quot;mjlife&quot;&lt;shumin@millionasia.com>" deliveryMethod="Network">
        <network host="smtp.ttn.net" password="" userName="" />
      </smtp>
    </mailSettings>
	</system.net>
	<system.web>
		<httpRuntime maxRequestLength="30720" />
		<pages theme="Default">
			<controls>
				<add tagPrefix="ajax" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
				<add tagPrefix="ajaxtoolkit" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit"/>
				<add tagPrefix="realworld" namespace="RealWorld.Grids" assembly="RealWorld.Grids"/>
				<add tagPrefix="resx" namespace="ResxWebEditor.Code" assembly="ResxEditor"/>
			</controls>
		</pages>
		<!--
          Set compilation debug="true" to insert debugging
          symbols into the compiled page. Because this
          affects performance, set this value to true only
          during development.
    -->
		<compilation debug="false">
			<assemblies>
				<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
				<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
				<add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
				<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
				<add assembly="System.Windows.Forms, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
				<add assembly="System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
				<add assembly="System.Web, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
				<add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
				<add assembly="System.Drawing, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
			</assemblies>
		</compilation>
		<httpHandlers>
			<remove verb="*" path="*.asmx"/>
			<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
			<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
			<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
		</httpHandlers>
		<httpModules>
			<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
		</httpModules>
		<customErrors mode="Off" />
		<!--
            <customErrors> 區段可以用來設定 
            在執行要求期間發生未處理 
            錯誤時所要執行的動作。具體來說，
            它可以讓開發人員設定要顯示的 HTML 錯誤網頁， 
            以取代錯誤堆疊追蹤。

        <customErrors mode="ReadOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
	</system.web>
	<system.web.extensions>
		<scripting>
			<webServices>
				<!-- Uncomment this line to customize maxJsonLength and add a custom converter -->
				<!--
      <jsonSerialization maxJsonLength="500">
        <converters>
          <add name="ConvertMe" type="Acme.SubAcme.ConvertMeTypeConverter"/>
        </converters>
      </jsonSerialization>
      -->
				<!-- Uncomment this line to enable the authentication service. Include requireSSL="true" if appropriate. -->
				<!--
        <authenticationService enabled="true" requireSSL = "true|false"/>
      -->
				<!-- Uncomment these lines to enable the profile service. To allow profile properties to be retrieved
           and modified in ASP.NET AJAX applications, you need to add each property name to the readAccessProperties and
           writeAccessProperties attributes. -->
				<!--
      <profileService enabled="true"
                      readAccessProperties="propertyname1,propertyname2"
                      writeAccessProperties="propertyname1,propertyname2" />
      -->
			</webServices>
			<!--
      <scriptResourceHandler enableCompression="true" enableCaching="true" />
      -->
		</scripting>
	</system.web.extensions>
	<system.webServer>
		<validation validateIntegratedModeConfiguration="false"/>
		<modules>
			<!--<add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>-->
		</modules>
		<handlers>
			<remove name="WebServiceHandlerFactory-Integrated"/>
			<!--<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
			<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
			<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>-->
		</handlers>
	</system.webServer>
</configuration>
