using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; using demo.ClassHelper.FileOperate; namespace demo { public enum EmReturnValue { FALSE, TRUE, } public enum EmProductInfo { FrontBeltInfo, MidBeltInfo, BehindBeltInfo, AStationInfo, BStationInfo, TotalInfo } public struct StProductInfo { public double frontTotalCount; public double frontOkCount; public double frontNgCount; public double frontYield; public double midTotalCount; public double midOkCount; public double midNgCount; public double midYield; public double behindTotalCount; public double behindOkCount; public double behindNgCount; public double behindYield; public double aStationTotalCount; public double aStationOkCount; public double aStationNgCount; public double aStationYield; public double bStationTotalCount; public double bStationOkCount; public double bStationNgCount; public double bStationYield; public double totalCount; public double okCount; public double ngCount; public double yield; public void Clear() { aStationNgCount = 0; aStationOkCount = 0; aStationYield = 0; behindNgCount = 0; behindOkCount = 0; behindTotalCount = 0; behindYield = 0; bStationNgCount = 0; bStationOkCount = 0; bStationTotalCount = 0; bStationYield = 0; frontNgCount = 0; frontOkCount = 0; frontTotalCount = 0; frontYield = 0; midNgCount = 0; midOkCount = 0; midTotalCount = 0; midYield = 0; ngCount = 0; okCount = 0; totalCount = 0; yield = 0; } } public struct StStartProcessStatus { public bool deleteBuffer; public bool loadParameters; public bool startPlatform; public bool loadForm; } public struct StMat { public string lblCurX; public string lblCurY; public string lblCurH; } public struct StBeforeAssembleOffset { public string txtBeforeAssembleX1; public string txtBeforeAssembleX2; public string txtBeforeAssembleX3; public string txtBeforeAssembleX4; public string txtBeforeAssembleY1; public string txtBeforeAssembleY2; public string txtBeforeAssembleY3; public string txtBeforeAssembleY4; public string txtBeforeAssembleR1; public string txtBeforeAssembleR2; public string txtBeforeAssembleR3; public string txtBeforeAssembleR4; public string txtAHolderX; public string txtAHolderY; public string txtAHolderR; public string txtBHolderX; public string txtBHolderY; public string txtBHolderR; } public struct StAfterAssembleOffset { public string txtAfterAssembleX1; public string txtAfterAssembleX2; public string txtAfterAssembleX3; public string txtAfterAssembleX4; public string txtAfterAssembleY1; public string txtAfterAssembleY2; public string txtAfterAssembleY3; public string txtAfterAssembleY4; } public struct StAAOffset { public string txtU1; public string txtU2; public string txtU3; public string txtU4; public string txtV1; public string txtV2; public string txtV3; public string txtV4; public string txtW1; public string txtW2; public string txtW3; public string txtW4; } class GlobalVariable { public static string _ConfigPath = Application.StartupPath + @"\SysConfig" + @"\config.ini";//配置文件路径 public static string _DbPath = Application.StartupPath + "\\db"; //数据库文件夹 public static string _DbDateTime = _DbPath + "\\" + DateTime.Now.ToString("yyyyMMdd"); public static string _RecodeLog = Application.StartupPath + "\\RecodeLog"; public static string _AllLog = _RecodeLog + "\\all_log"; //日志文件夹 public static string _PartNumberPath = Application.StartupPath + @"\PartNumber"; //料号文件夹 public static string _SkinPath = Application.StartupPath + @"\skin" + "\\"; public static string _SkinName = IniHelper.ReadStrFromIni("Path", "皮肤", _ConfigPath); public static string _Skin = _SkinPath + _SkinName; public static string _LogPath = Application.StartupPath + @"\log";//log路径 public static string okImage = Application.StartupPath + "\\Images\\Ok.ico"; public static string noImage = Application.StartupPath + "\\Images\\No.ico"; public static string errorImage = Application.StartupPath + "\\Images\\error.png"; public static string questionImage = Application.StartupPath + "\\Images\\question.png"; public static string stop0Path = Application.StartupPath + "\\Images" + "\\stop00.bmp"; public static string stop1Path = Application.StartupPath + "\\Images" + "\\button6.ico"; public static string pause0Path = Application.StartupPath + "\\Images" + "\\pause0.bmp"; public static string pause1Path = Application.StartupPath + "\\Images" + "\\pause1.bmp"; public static string start0Path = Application.StartupPath + "\\Images" + "\\start0.bmp"; public static string start1Path = Application.StartupPath + "\\Images" + "\\start1.bmp"; public static string reset0Path = Application.StartupPath + "\\Images" + "\\reset0.bmp"; public static string reset1Path = Application.StartupPath + "\\Images" + "\\reset1.bmp"; public static string emegence0Path = Application.StartupPath + "\\Images" + "\\emegence0.bmp"; public static string emegence1Path = Application.StartupPath + "\\Images" + "\\emergence1.bmp"; public static StStartProcessStatus _StartProcessStatus = new StStartProcessStatus(); //FormLoad事件状态 public static DelWriteLogToListView _DelWriteLogToListView; //推送log到主界面 public static StProductInfo _StProductInfo; //生产信息结构体 public static StMat _StMat; //物料信息 public static StBeforeAssembleOffset _StBeforeAssembleOffset; //贴合前偏移 public static StAfterAssembleOffset _StAfterAssembleOffset; //贴合后偏移 public static StAAOffset _StAAOffset; //AA偏移 public static List ListLeftDispenseAPoint = new List(); //左点胶摄像头A坐标 public static List ListLeftDispenseBPoint = new List(); //左点胶摄像头B坐标 public static List ListRightDispenseAPoint = new List(); //右点胶摄像头A坐标 public static List ListRightDispenseBPoint = new List(); //右点胶摄像头B坐标 } }