天津投入产出系统后端
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.
 
 
 
 
 
 

35 lines
897 B

using System;
using System.Configuration;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace QMTask.Client
{
/// <summary>
/// 服务工具
/// </summary>
public class ServiceUtil
{
/// <summary>
/// 是否进行声音报警
/// </summary>
public static bool SoundWarn { get; set; }
/// <summary>
/// 是否进行邮件报警
/// </summary>
public static bool MailWarn { get; set; }
/// <summary>
/// 获取服务客户端
/// </summary>
/// <returns></returns>
public static TaskService.TaskServiceClient GetTaskService()
{
TaskService.TaskServiceClient tsc = new TaskService.TaskServiceClient();
tsc.Login(ConfigurationManager.AppSettings["UseCredentialID"]);
return tsc;
}
}
}