天津投入产出系统后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

108 lines
2.5 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
namespace AutoFileCopyNet
{
///<summary>
/// 模块编号:AutoFileCopyNet.ConstParam
/// 作 用:常量参数设置和获取
/// 作 者:sunguoqiang
/// 编写日期:2012-11-28
///</summary>
public static class ConstParam
{
public static String DCSFileCopyTimerType
{
get
{
try
{
return Convert.ToString(ConfigurationManager.AppSettings["DCSFileCopyTimerType"]);
}
catch
{
return "EveryDay";
}
}
}
public static Int32 DCSFileCopyTimerHour
{
get
{
try
{
return Convert.ToInt32(ConfigurationManager.AppSettings["DCSFileCopyTimerHour"]);
}
catch
{
return 00;
}
}
}
public static Int32 DCSFileCopyTimerMinute
{
get
{
try
{
return Convert.ToInt32(ConfigurationManager.AppSettings["DCSFileCopyTimerMinute"]);
}
catch
{
return 30;
}
}
}
public static Int32 DCSFileCopyTimerSecond
{
get
{
try
{
return Convert.ToInt32(ConfigurationManager.AppSettings["DCSFileCopyTimerSecond"]);
}
catch
{
return 00;
}
}
}
public static Int32 DCSCollectAddDays
{
get
{
try
{
return Convert.ToInt32(ConfigurationManager.AppSettings["DCSCollectAddDays"]);
}
catch
{
return -1;
}
}
}
#region EQUIPMENT_TYPE
#endregion
public static String ERROR_MESSAGE_HEAD = "设备数据采集错误,错误消息为:";
public static String ERROR_MESSAGE_WNET = "WNetAddConnection2A连接网络{0}时出现错误,ERROR_ID为{1}";
}
}