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

111 lines
2.4 KiB

using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
namespace DCS.Common
{
/// <summary>
/// 打印操作信息获取
/// 作者:张敬贺
/// 时间:2015.02.11
/// </summary>
class ConfigUtil
{
/// <summary>
/// 获取打印标签模板
/// </summary>
/// <returns></returns>
public static string GetPrintModel()
{
try
{
string u = "";
u = ConfigurationManager.AppSettings.Get("LabelQdfFile");
return u;
}
catch
{
return "";
}
}
/// <summary>
/// 获取第三方打印程序
/// </summary>
/// <returns></returns>
public static string GetPrintExe()
{
try
{
string u = "";
u = ConfigurationManager.AppSettings.Get("LabelPrinter");
return u;
}
catch
{
return "";
}
}
/// <summary>
/// 获取打印标签文本数据
/// </summary>
/// <returns></returns>
public static string GetDataFile()
{
try
{
string u = "";
u = ConfigurationManager.AppSettings.Get("LabelDataFile");
return u;
}
catch
{
return "";
}
}
/// <summary>
/// 获取打印标签模板
/// </summary>
/// <returns></returns>
public static string GetFirstPlacePrintModel()
{
try
{
string u = "";
u = ConfigurationManager.AppSettings.Get("LabelQdfFilePlace");
return u;
}
catch
{
return "";
}
}
/// <summary>
/// 获取打印标签文本数据
/// </summary>
/// <returns></returns>
public static string GetFirstPlaceDataFile()
{
try
{
string u = "";
u = ConfigurationManager.AppSettings.Get("LabelDataFilePlace");
return u;
}
catch
{
return "";
}
}
}
}