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