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

using System;
using System.Collections.Generic;
using System.Text;
namespace DCS.Common
{
/// <summary>
/// 界面信息
/// </summary>
internal static class Forms
{
/// <summary>
/// 登录界面
/// </summary>
//internal static FrmLogin frmLogin = null;
}
/// <summary>
/// 缓存数据
/// </summary>
internal static class BufferData
{
/// <summary>
/// 要货线路列表
/// </summary>
internal static System.Data.DataTable ItemLineList = null;
/// <summary>
/// 要货工位列表
/// </summary>
internal static System.Data.DataTable ItemWorkStationList = null;
/// <summary>
/// 零件信息列表
/// </summary>
internal static System.Data.DataTable ItemMaterialList = null;
/// <summary>
/// 要货信息列表
/// </summary>
internal static System.Data.DataTable ItemQuestList = null;
/// <summary>
/// 送货信息列表
/// </summary>
internal static System.Data.DataTable ItemSendList = null;
/// <summary>
/// 要货线路列表
/// </summary>
internal static string SelectLine = null;
/// <summary>
/// 要货工位列表
/// </summary>
internal static string SelectWorkStation = null;
/// <summary>
/// 零件信息列表
/// </summary>
internal static string SelectMaterial = null;
}
/// <summary>
/// 配置信息
/// </summary>
internal static class Configurations
{
/// <summary>
/// 服务器组地址集
/// </summary>
// internal static IList<ConnectionStruct> ConnectionInformations;
/// <summary>
/// 连接的服务器类别
/// </summary>
// internal static ServerType ServerType = ServerType.PrimaryServer;
/// <summary>
/// 连接的服务器编号
/// </summary>
internal static int ServerNumber = 1;
}
internal static class PlaySoundConst
{
/// <summary>
/// 声音文件ok
/// </summary>
public static string strSoundOk = "ok.wav";
/// <summary>
/// 声音文件ng
/// </summary>
public static string strSoundNg = "error.wav";
/// <summary>
/// 获得路径当前文件
/// </summary>
/// <returns></returns>
public static string GetAppPath()
{
string strPath = "";
// 获得路径当前文件
//strPath = System.IO.Path.GetFullPath(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase);
strPath = AppDomain.CurrentDomain.SetupInformation.ApplicationBase;
return strPath;
}
}
}