initial commit
This commit is contained in:
580
Handler/Sub/Setting/Model/Common.cs
Normal file
580
Handler/Sub/Setting/Model/Common.cs
Normal file
@@ -0,0 +1,580 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing.Design;
|
||||
using System.Linq;
|
||||
using System.Management;
|
||||
using System.Security.Policy;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace AR
|
||||
{
|
||||
public class CommonSetting : SettingJson
|
||||
{
|
||||
public CommonSetting()
|
||||
{
|
||||
this.filename = UTIL.MakePath("Data", "Setting.json");
|
||||
}
|
||||
|
||||
|
||||
#region "log"
|
||||
|
||||
[Category("System Log - Main")]
|
||||
public Boolean Log_CameraConn { get; set; }
|
||||
[Category("System Log - Main"), DisplayName("Digital Input"),
|
||||
Description("Records status changes of input/output devices.")]
|
||||
public Boolean Log_DI { get; set; }
|
||||
[Category("System Log - Main"), DisplayName("Digital Output"),
|
||||
Description("Records status changes of input/output devices.")]
|
||||
public Boolean Log_DO { get; set; }
|
||||
[Category("System Log - Main"), DisplayName("Network Alive Check(Ping)"),
|
||||
Description("Use debug messages")]
|
||||
public Boolean Log_Debug { get; set; }
|
||||
[Category("System Log - Main"), DisplayName("S/M Step Change"),
|
||||
Description("Records state machine transition status.")]
|
||||
public Boolean Log_StepChange { get; set; }
|
||||
[Category("System Log - Main"), DisplayName("Motion State Change"),
|
||||
Description("Records motion state changes.")]
|
||||
public Boolean Log_motState { get; set; }
|
||||
[Category("System Log - Main")]
|
||||
public Boolean Log_flag { get; set; }
|
||||
[Category("System Log - Main")]
|
||||
public Boolean Log_ILock { get; set; }
|
||||
[Category("System Log - Function"), DisplayName("Inter Lock")]
|
||||
public Boolean Enable_Log_ILock { get; set; }
|
||||
[Category("System Log - Function"), DisplayName("Flag")]
|
||||
public Boolean Enable_Log_Flag { get; set; }
|
||||
[Category("System Log - Function"), DisplayName("Motor Stop Message")]
|
||||
public Boolean Enable_Log_MotStopReason { get; set; }
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region "Communication"
|
||||
|
||||
|
||||
|
||||
[Category("Communication"), DisplayName("Keynece IP(Front)"), Description("Keyence Barcode IP Address")]
|
||||
public string Keyence_IPF { get; set; }
|
||||
[Category("Communication"), DisplayName("Keyence IP(Rear)"), Description("Keyence Barcode IP Address")]
|
||||
public string Keyence_IPR { get; set; }
|
||||
|
||||
[Category("Communication"), DisplayName("Keyence Port"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public int Keyence_Port { get; set; }
|
||||
|
||||
[Category("Communication"), DisplayName("Left Printer (Port)"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public string PrintL_Port { get; set; }
|
||||
[Category("Communication"), DisplayName("Left Printer (Baud)"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public int PrintL_Baud { get; set; }
|
||||
[Category("Communication"), DisplayName("Right Printer (Port)"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public string PrintR_Port { get; set; }
|
||||
[Category("Communication"), DisplayName("Right Printer (Baud)"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public int PrintR_Baud { get; set; }
|
||||
|
||||
|
||||
|
||||
[Category("Communication"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public string Barcode_Port { get; set; }
|
||||
[Category("Communication"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public int Barcode_Baud { get; set; }
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region "Time Out"
|
||||
|
||||
[Category("Timeout Setting"), DisplayName(), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public int Timeout_AutoConfirm { get; set; }
|
||||
|
||||
[Category("Timeout Setting"), DisplayName("Job completion wait time (sec)"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public int Timeout_JOBEnd { get; set; }
|
||||
|
||||
[Category("Timeout Setting"), DisplayName("Max vision analysis time (Loader)"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public int Timeout_VisionProcessL { get; set; }
|
||||
|
||||
[Category("Timeout Setting"), DisplayName("Max vision analysis time (Unloader)"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public int Timeout_VisionProcessU { get; set; }
|
||||
|
||||
[Category("Timeout Setting"), DisplayName("Equipment initialization wait time (sec)"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public int Timeout_HomeSearch { get; set; }
|
||||
|
||||
[Category("Timeout Setting"), DisplayName("Individual operation wait time (sec)"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public double Timeout_StepMaxTime { get; set; }
|
||||
|
||||
[Category("Timeout Setting"), DisplayName("Max motion operation time (sec)"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public int Timeout_MotionCommand { get; set; }
|
||||
|
||||
[Category("Timeout Setting"), DisplayName("Max DIO operation time (sec)"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public int Timeout_DIOCommand { get; set; }
|
||||
|
||||
[Category("Timeout Setting"), DisplayName("Auto Conveyor output time (sec)"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public int Timeout_AutoOutConvSignal { get; set; }
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
[Category("WMS")]
|
||||
public bool WMS_DB_PROD { get; set; }
|
||||
[Category("WMS")]
|
||||
public string WMS_PROGRAM_ID { get; set; }
|
||||
[Category("WMS")]
|
||||
public string WMS_CENTER_CD { get; set; }
|
||||
[Category("WMS")]
|
||||
public string WMS_REG_USERID { get; set; }
|
||||
|
||||
#region "Advanced Parameter"
|
||||
|
||||
|
||||
[Category("Advanced Parameter"), DisplayName("Remote Controller Port"), Description("Debug port info (serial communication), Input example) COM1:9600"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public string Serial_Remocon { get; set; }
|
||||
|
||||
[Category("Advanced Parameter"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public int RetryPickOnMaxCount { get; set; }
|
||||
[Category("Advanced Parameter"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public int RetryPickOnAngle { get; set; }
|
||||
|
||||
|
||||
[Category("Advanced Parameter"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public float JOG_Speed { get; set; }
|
||||
[Category("Advanced Parameter"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public float JOG_Acc { get; set; }
|
||||
[Category("Advanced Parameter")]
|
||||
public Boolean Disable_HomePortDown { get; set; }
|
||||
|
||||
[Category("Advanced Parameter"), Browsable(false), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public Boolean Disable_PrinterL { get; set; }
|
||||
[Category("Advanced Parameter"), Browsable(false), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public Boolean Disable_PrinterR { get; set; }
|
||||
|
||||
[Category("Advanced Parameter"), Browsable(false), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public Boolean Disable_PLVac { get; set; }
|
||||
[Category("Advanced Parameter"), Browsable(false), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public Boolean Disable_PRVac { get; set; }
|
||||
[Category("Advanced Parameter"), Browsable(false), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public Boolean Disable_PKVac { get; set; }
|
||||
|
||||
[Category("Advanced Parameter"), Browsable(false), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public Boolean Disable_PLAir { get; set; }
|
||||
[Category("Advanced Parameter"), Browsable(false), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public Boolean Disable_PRAir { get; set; }
|
||||
|
||||
[Category("Advanced Parameter"), Browsable(false), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public Boolean Disable_PortL { get; set; }
|
||||
[Category("Advanced Parameter"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public Boolean Disable_PortC { get; set; }
|
||||
[Category("Advanced Parameter"), Browsable(false), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public Boolean Disable_PortR { get; set; }
|
||||
|
||||
[Category("Advanced Parameter"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public Boolean Disable_SIDReferenceCheck { get; set; }
|
||||
|
||||
[Category("Advanced Parameter"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public Boolean Disable_BottomAirBlow { get; set; }
|
||||
|
||||
[Category("Advanced Parameter"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public Boolean Enable_ButtonStart { get; set; }
|
||||
[Category("Advanced Parameter"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public Boolean Disable_RequestJobSeqNo { get; set; }
|
||||
[Category("Advanced Parameter"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public Boolean DisableSensor_AIRCheck { get; set; }
|
||||
|
||||
[Category("Advanced Parameter"), Browsable(false), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public Boolean Disable_TowerLamp { get; set; }
|
||||
|
||||
[Category("Advanced Parameter"), Browsable(false), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public Boolean Disable_RoomLight { get; set; }
|
||||
|
||||
|
||||
[Category("Advanced Parameter"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public bool Disable_vacum { get; set; }
|
||||
|
||||
[Category("Advanced Parameter"), DisplayName("*.Speed Limit")]
|
||||
public Boolean Enable_SpeedLimit { get; set; }
|
||||
[Category("Advanced Parameter"), DisplayName("*.Max Speed"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public int LimitSpeed { get; set; }
|
||||
|
||||
[Category("Advanced Parameter"), Browsable(false), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public Boolean Disable_SidQtyCheck { get; set; }
|
||||
|
||||
[Category("Advanced Parameter"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public Boolean EnableDebugMode { get; set; }
|
||||
|
||||
//[Category("Advanced Parameter"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
//public int AutoConveyorReelOut { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region "function"
|
||||
[Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public Boolean Force_JobEndBuzzer { get; set; }
|
||||
|
||||
|
||||
[Browsable(false)]
|
||||
public Boolean Disable_Buzzer { get; set; }
|
||||
|
||||
[Browsable(false)]
|
||||
public Boolean Enable_Magnet0 { get; set; }
|
||||
|
||||
[Browsable(false)]
|
||||
public Boolean Enable_Magnet1 { get; set; }
|
||||
|
||||
[Browsable(false)]
|
||||
public Boolean Enable_Magnet2 { get; set; }
|
||||
[Browsable(false)]
|
||||
public Boolean Enable_PickerCylinder { get; set; }
|
||||
|
||||
|
||||
public string GetDataPath()
|
||||
{
|
||||
if (Path_Data == null) Path_Data = AppDomain.CurrentDomain.BaseDirectory;
|
||||
var di = new System.IO.DirectoryInfo(this.Path_Data);
|
||||
return di.FullName;
|
||||
}
|
||||
|
||||
[Category("Function"), DisplayName("Label QR Code Verification"), Description("Verifies QR code of attached label with print data"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public Boolean Enable_Unloader_QRValidation { get; set; }
|
||||
|
||||
[Category("Function"), DisplayName("Save Captured Images"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public Boolean Save_Image { get; set; }
|
||||
|
||||
[Category("Function"), DisplayName("Picker Auto Move (Front Door)"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public Boolean PickerAutoMoveForDoor { get; set; }
|
||||
|
||||
[Category("Function"), DisplayName("Data Save Path"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public string Path_Data { get; set; }
|
||||
|
||||
[Category("Function"), Browsable(false), DisplayName("Room Light Auto Control"),
|
||||
Description("Automatically turns room light ON/OFF according to door status"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public Boolean Enable_AutoLight { get; set; }
|
||||
|
||||
//[Category("Function"), DisplayName("AIR OFF Timer(ms)"),
|
||||
//Description("공압 OFF시 유지 시간(ms), 지정 시간 동안 스위치를 ON 시켜야 공압이 OFF 됩니다.")]
|
||||
//public int AirOFFTimer { get; set; }
|
||||
|
||||
[Category("Function"), DisplayName("Buzzer Duration (ms)"),
|
||||
Description("Buzzer sounds for specified duration (ms) when triggered"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public int buzz_run_ms { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region "Vision"
|
||||
[Category("Vision"), DisplayName("13' Image Center Position"), Description("Keyence image rotation axis coordinates")]
|
||||
public System.Drawing.Point CenterPosition13 { get; set; }
|
||||
[Category("Vision"), DisplayName("7' Image Center Position"), Description("Keyence image rotation axis coordinates")]
|
||||
public System.Drawing.Point CenterPosition7 { get; set; }
|
||||
|
||||
[Category("Vision"), DisplayName("Disable Left Camera"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public Boolean Disable_Left { get; set; }
|
||||
[Category("Vision"), DisplayName("Disable Right Camera"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public Boolean Disable_Right { get; set; }
|
||||
[Category("Vision"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public string HostIPL { get; set; }
|
||||
[Category("Vision"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public string HostIPR { get; set; }
|
||||
[Category("Vision"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public int HostPortL { get; set; }
|
||||
[Category("Vision"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public int HostPortR { get; set; }
|
||||
[Category("Vision"), DisplayName("Camera Filename"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public string CameraLFile { get; set; }
|
||||
[Category("Vision"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public float AngleOffsetL { get; set; }
|
||||
[Category("Vision"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public float AngleOffsetR { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region "Count Reset Setting"
|
||||
|
||||
[Category("Count Reset Setting"), Browsable(false), DisplayName("A/M Clear Enable"),
|
||||
Description("AM reset enabled\nSet to True to reset work count"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public Boolean datetime_Check_1 { get; set; }
|
||||
[Category("Count Reset Setting"), Browsable(false), DisplayName("P/M Clear Enable"),
|
||||
Description("PM reset enabled\nSet to True to reset work count"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public Boolean datetime_Check_2 { get; set; }
|
||||
[Category("Count Reset Setting"), Browsable(false), DisplayName("A/M Clear Time(HH:mm)"),
|
||||
Description("AM reset time(HH:mm)\nExample) 09:00"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public string datetime_Reset_1 { get; set; }
|
||||
[Category("Count Reset Setting"), Browsable(false), DisplayName("P/M Clear Time(HH:mm)"),
|
||||
Description("PM reset time(HH:mm)\nExample) 19:00"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public string datetime_Reset_2 { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region "Sensitive"
|
||||
[Category("Sensitive"), DisplayName("Un/Loader Port Detect (fall)"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public ushort PortDetectFall { get; set; }
|
||||
[Category("Sensitive"), DisplayName("Un/Loader Port Detect (rise)"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public ushort PortDetectRise { get; set; }
|
||||
[Category("Sensitive"), DisplayName("Door Detection Sensor (rise)"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public ushort SaftyDetectRise { get; set; }
|
||||
[Category("Sensitive"), DisplayName("Door Detection Sensor (fall)"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public ushort SaftyDetectFall { get; set; }
|
||||
[Category("Sensitive"), DisplayName("AIR Button (rise/fall)"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public ushort AirChange { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region "Operation Delay"
|
||||
[Category("Operation Delay(ms)"), DisplayName("Wait time after label attach"), Description("PURGE wait time after label attachment"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public int PrintVacOffPurgeMS { get; set; }
|
||||
[Category("Operation Delay(sec)"), DisplayName("Cart detect wait time (Left)"), Description("Cart will be HELD after specified time - ms"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public ushort WaitTime_Magnet0 { get; set; }
|
||||
[Category("Operation Delay(sec)"), DisplayName("Cart detect wait time (Center)"), Description("Cart will be HELD after specified time - ms"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public ushort WaitTime_Magnet1 { get; set; }
|
||||
[Category("Operation Delay(sec)"), DisplayName("Cart detect wait time (Right)"), Description("Cart will be HELD after specified time - ms"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public ushort WaitTime_Magnet2 { get; set; }
|
||||
[Category("Operation Delay(sec)"), DisplayName("Print wait time (Left)"), Description("Wait time after printer label output (Left) - ms"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public int PrintLWaitMS { get; set; }
|
||||
[Category("Operation Delay(sec)"), DisplayName("Print wait time (Right)"), Description("Wait time after printer label output (Right) - ms"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public int PrintRWaitMS { get; set; }
|
||||
[Category("Operation Delay(sec)"), DisplayName("Port Down Time (Unloader)"), Description("Port descends for specified time during alignment"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public float PortAlignDownTimeU { get; set; }
|
||||
[Category("Operation Delay(sec)"), DisplayName("Port Down Time (Loader)"), Description("Port descends for specified time during alignment"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public float PortAlignDownTimeL { get; set; }
|
||||
[Category("Operation Delay(sec)"), DisplayName("Loader Port Down Time (Finish)"), Description("Descends for specified time (ms) after job completion"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public ushort Port1FisnishDownTime { get; set; }
|
||||
#endregion
|
||||
|
||||
#region "GENERAL
|
||||
[Category("General Setting"), DisplayName("Room Light Auto OFF Time (min)")]
|
||||
public int AutoOffRoomLightMin { get; set; }
|
||||
|
||||
[Category("General Setting"), DisplayName("Equipment Asset Number"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public string Asset { get; set; }
|
||||
|
||||
[Category("General Setting"), DisplayName("Equipment Name"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public string McName { get; set; }
|
||||
|
||||
[Category("General Setting"), DisplayName("Ignore Barcode"), Description("Ignores barcodes starting with entered value. Separate multiple entries with comma (,)"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public string IgnoreBarcode { get; set; }
|
||||
|
||||
[Category("General Setting"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public string ReelIdDeviceID { get; set; }
|
||||
[Category("General Setting"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public string ReelIdDeviceLoc { get; set; }
|
||||
[Category("General Setting"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public bool Enable_AutoChangeModelbyHandBarcode { get; set; }
|
||||
|
||||
#endregion
|
||||
//public Boolean MoveYForPaperVaccume { get; set; }
|
||||
[Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public float MoveYForPaperVaccumeValue { get; set; }
|
||||
[Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public uint MoveYForPaperVaccumeVel { get; set; }
|
||||
[Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public uint MoveYForPaperVaccumeAcc { get; set; }
|
||||
[Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public Boolean OnlineMode { get; set; }
|
||||
|
||||
//public Boolean STDLabelFormat7 { get; set; }
|
||||
#region "Printer"
|
||||
[Category("Printer"), DisplayName("Draw Barcode Outer Box"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public Boolean DrawOutbox { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
[DisplayName("Barcode Position Rotation (Rear)")]
|
||||
public float RearBarcodeRotate { get; set; }
|
||||
[DisplayName("Barcode Position Rotation (Front)")]
|
||||
public float FrontBarcodeRotate { get; set; }
|
||||
|
||||
[Browsable(false)]
|
||||
public bool SystemBypass { get; set; }
|
||||
|
||||
|
||||
#region "general"
|
||||
|
||||
[Category("General Setting"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public string Sidinfofilename { get; set; }
|
||||
[Category("General Setting"), DisplayName("Bug Report Recipients"), Description("Bug report recipient list. Separate multiple recipients with semicolon"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public string BugreportToList { get; set; }
|
||||
|
||||
[Category("General Setting"), Browsable(false),
|
||||
Description("Data auto-delete period (days) disabled=0"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public int AutoDeleteDay { get; set; }
|
||||
[Category("General Setting"), Browsable(false),
|
||||
Description("Data auto-delete condition (remaining capacity %)"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public int AutoDeleteThreshold { get; set; }
|
||||
|
||||
[Category("General Setting"), Browsable(false), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public string Password_Setup { get; set; }
|
||||
|
||||
[Category("General Setting"), Browsable(false), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public string Language { get; set; }
|
||||
|
||||
[Category("General Setting"), DisplayName("Full Screen Window State"),
|
||||
Description("Use full screen mode."), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public Boolean FullScreen { get; set; }
|
||||
|
||||
|
||||
#region "표시안함"
|
||||
[Category("Sensor Detect"), Browsable(false), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public Boolean Detect_CartL { get; set; }
|
||||
[Category("Sensor Detect"), Browsable(false), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public Boolean Detect_CartC { get; set; }
|
||||
[Category("Sensor Detect"), Browsable(false), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public Boolean Detect_CartR { get; set; }
|
||||
[Category("Sensor Detect"), Browsable(false), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public Boolean Detect_PrintL { get; set; }
|
||||
[Category("Sensor Detect"), Browsable(false), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public Boolean Detect_PrintR { get; set; }
|
||||
//[Category("Sensor Detect"), Browsable(false)]
|
||||
//public Boolean Detect_CenterSafty { get; set; }
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
#region "Report"
|
||||
[Category("Report"),
|
||||
Description("Equipment identification code for status recording (4 digits)"),
|
||||
DisplayName("M/C ID")]
|
||||
public string MCID { get; set; }
|
||||
|
||||
[Category("Report"),
|
||||
Description("Saves work records to Equipment Engineering (EE) Database. Allows remote monitoring of equipment status"),
|
||||
DisplayName("SAVE EE-DB")]
|
||||
public Boolean Save_EEDatabase { get; set; }
|
||||
[Category("Report"), Description("Status transmission interval (sec)")]
|
||||
public int StatusInterval { get; set; }
|
||||
#endregion
|
||||
|
||||
#region "swplc"
|
||||
public string swplc_name { get; set; }
|
||||
public int swplc_size { get; set; }
|
||||
#endregion
|
||||
|
||||
[Category("Develop")]
|
||||
public string Bugreport_mail { get; set; }
|
||||
|
||||
public override void AfterLoad()
|
||||
{
|
||||
if (Timeout_AutoOutConvSignal < 1) Timeout_AutoOutConvSignal = 5;
|
||||
if (WMS_CENTER_CD.isEmpty()) WMS_CENTER_CD = "V1";
|
||||
if (WMS_PROGRAM_ID.isEmpty()) WMS_PROGRAM_ID = "LABEL ATTACH";
|
||||
if (WMS_REG_USERID.isEmpty()) WMS_REG_USERID = "ATVLA1";
|
||||
if (swplc_size < 1) swplc_size = 100;
|
||||
if (swplc_name.isEmpty()) swplc_name = "swplc";
|
||||
if (StatusInterval < 10) StatusInterval = 300; //5분간격
|
||||
|
||||
var currentpath = AppDomain.CurrentDomain.BaseDirectory;
|
||||
if (AutoOffRoomLightMin == 0) AutoOffRoomLightMin = 5;
|
||||
|
||||
if (RetryPickOnAngle == 0) RetryPickOnAngle = 79;
|
||||
|
||||
if (Barcode_Baud == 0) Barcode_Baud = 9600;
|
||||
if (JOG_Speed < 1) JOG_Speed = 200;
|
||||
if (JOG_Acc < 1) JOG_Acc = 500;
|
||||
|
||||
if (PrintL_Baud == 0) PrintL_Baud = 115200;
|
||||
if (PrintR_Baud == 0) PrintR_Baud = 115200;
|
||||
|
||||
|
||||
if (BugreportToList.isEmpty()) BugreportToList = "chikyun.kim@amkor.co.kr";
|
||||
if (HostIPL.isEmpty() && HostPortL < 1)
|
||||
{
|
||||
HostIPL = "127.0.0.1";
|
||||
HostPortL = 7979;
|
||||
}
|
||||
if (HostIPR.isEmpty() && HostPortR < 1)
|
||||
{
|
||||
HostIPR = "127.0.0.1";
|
||||
HostPortR = 7980;
|
||||
}
|
||||
if (ReelIdDeviceLoc.isEmpty()) ReelIdDeviceLoc = "4";
|
||||
if (ReelIdDeviceID.isEmpty()) ReelIdDeviceID = "A";
|
||||
if (IgnoreBarcode.isEmpty()) IgnoreBarcode = "{{{";
|
||||
if (Timeout_AutoConfirm == 0) Timeout_AutoConfirm = 5;
|
||||
//if (PrintVacOffPurgesec <= 0.0) PrintVacOffPurgesec = 1.1f;
|
||||
if (PrintVacOffPurgeMS == 0) PrintVacOffPurgeMS = 500;
|
||||
if (MoveYForPaperVaccumeVel == 0) MoveYForPaperVaccumeVel = 10;
|
||||
if (MoveYForPaperVaccumeAcc == 0) MoveYForPaperVaccumeAcc = 1000;
|
||||
|
||||
//포트얼라인시간 210401
|
||||
if (PortAlignDownTimeU == 0f &&
|
||||
PortAlignDownTimeL == 0f)
|
||||
{
|
||||
PortAlignDownTimeL = 1.5f;
|
||||
PortAlignDownTimeU = 1.0f;
|
||||
}
|
||||
|
||||
if (PrintLWaitMS == 0) PrintLWaitMS = 1500;
|
||||
if (PrintRWaitMS == 0) PrintRWaitMS = 1500;
|
||||
|
||||
if (WaitTime_Magnet0 == 0) WaitTime_Magnet0 = 3000;
|
||||
if (WaitTime_Magnet1 == 0) WaitTime_Magnet1 = 3000;
|
||||
if (WaitTime_Magnet2 == 0) WaitTime_Magnet2 = 3000;
|
||||
|
||||
//if (PrintLeftName.isEmpty()) PrintLeftName = "PrinterL";
|
||||
//if (PrintRightName.isEmpty()) PrintRightName = "PrinterR";
|
||||
|
||||
if (SaftyDetectRise == 0) SaftyDetectRise = 20;
|
||||
if (SaftyDetectFall == 0) SaftyDetectFall = 1000; //안전센서는 느리게 해제 한다
|
||||
|
||||
if (Timeout_JOBEnd == 0) Timeout_JOBEnd = 10;
|
||||
|
||||
if (Timeout_VisionProcessL == 0) Timeout_VisionProcessL = 10000;
|
||||
if (Timeout_VisionProcessU == 0) Timeout_VisionProcessU = 10000;
|
||||
if (PortDetectFall == 0) PortDetectFall = 50;
|
||||
if (PortDetectRise == 0) PortDetectRise = 10;
|
||||
|
||||
if (AirChange == 0) AirChange = 3000;
|
||||
|
||||
if (Keyence_IPF.isEmpty()) Keyence_IPF = "192.168.100.100";
|
||||
//if (Keyence_IPR.isEmpty()) Keyence_IPR = "192.168.100.101";
|
||||
if (Keyence_Port == 0) Keyence_Port = 9004;
|
||||
|
||||
//데이터베이스
|
||||
//if (Keyence_IPL.isEmpty() == true) Keyence_IPL = "net.pipe://127.0.0.1/barcode";
|
||||
//if (Keyence_IPR.isEmpty() == true) Keyence_IPR = "net.pipe://127.0.0.1/barcode";
|
||||
|
||||
if (Timeout_MotionCommand == 0) Timeout_MotionCommand = 10;
|
||||
if (Timeout_DIOCommand == 0) Timeout_DIOCommand = 10;
|
||||
|
||||
if (AutoDeleteThreshold == 0) AutoDeleteThreshold = 20;
|
||||
if (Timeout_HomeSearch == 0) Timeout_HomeSearch = 50;
|
||||
//if (AirOFFTimer == 0) AirOFFTimer = 3000; //181226
|
||||
if (Asset == "") Asset = "DEV_SPLIT";
|
||||
if (Language.isEmpty()) Language = "Kor";
|
||||
//if (Password_Setup.isEmpty()) Password_Setup = "0000";
|
||||
|
||||
if (Path_Data == "") Path_Data = @".\SaveData";
|
||||
try
|
||||
{
|
||||
if (System.IO.Directory.Exists(GetDataPath()) == false)
|
||||
System.IO.Directory.CreateDirectory(GetDataPath());
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
||||
}
|
||||
//if (Password_User.isEmpty()) Password_User = "9999";
|
||||
}
|
||||
|
||||
public override void AfterSave()
|
||||
{
|
||||
//throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public void CopyTo(CommonSetting dest)
|
||||
{
|
||||
//이곳의 모든 쓰기가능한 속성값을 대상에 써준다.
|
||||
Type thClass = this.GetType();
|
||||
foreach (var method in thClass.GetMethods())
|
||||
{
|
||||
var parameters = method.GetParameters();
|
||||
if (!method.Name.StartsWith("get_")) continue;
|
||||
|
||||
string keyname = method.Name.Substring(4);
|
||||
string methodName = method.Name;
|
||||
|
||||
object odata = GetType().GetMethod(methodName).Invoke(this, null);
|
||||
var wMethod = dest.GetType().GetMethod(Convert.ToString("set_") + keyname);
|
||||
if (wMethod != null) wMethod.Invoke(dest, new object[] { odata });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
78
Handler/Sub/Setting/Model/Count.cs
Normal file
78
Handler/Sub/Setting/Model/Count.cs
Normal file
@@ -0,0 +1,78 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace AR
|
||||
{
|
||||
public class CountSetting : SettingJson
|
||||
{
|
||||
public int seq { get; set; }
|
||||
public string DateStr { get; set; }
|
||||
|
||||
|
||||
|
||||
public void ClearP()
|
||||
{
|
||||
CountV0 = CountV1 = CountV2 = CountE = CountP0 = CountP1 = CountP2 = CountPrintL = CountPrintR = 0;
|
||||
this.Save();
|
||||
}
|
||||
|
||||
public void ClearDay()
|
||||
{
|
||||
DateStr = string.Empty;
|
||||
CountDP0 = CountDP1 = CountDP2 = CountDP3 = CountDP4 = 0;
|
||||
this.Save();
|
||||
}
|
||||
|
||||
public int CountD
|
||||
{
|
||||
get
|
||||
{
|
||||
return CountDP0 + CountDP1 + CountDP2 + CountDP3 + CountDP4;
|
||||
}
|
||||
}
|
||||
public int Count
|
||||
{
|
||||
get
|
||||
{
|
||||
return CountP0 + CountP1 + CountP2 + CountPrintL + CountPrintR;
|
||||
}
|
||||
}
|
||||
|
||||
public int CountDP0 { get; set; }
|
||||
public int CountDP1 { get; set; }
|
||||
public int CountDP2 { get; set; }
|
||||
public int CountDP3 { get; set; }
|
||||
public int CountDP4 { get; set; }
|
||||
|
||||
|
||||
|
||||
|
||||
//메인카운터
|
||||
public int CountP0 { get; set; }
|
||||
public int CountP1 { get; set; }
|
||||
public int CountP2 { get; set; }
|
||||
public int CountPrintL { get; set; }
|
||||
public int CountPrintR { get; set; }
|
||||
public int CountE { get; set; }
|
||||
public int CountV0 { get; set; }
|
||||
public int CountV1 { get; set; }
|
||||
public int CountV2 { get; set; }
|
||||
|
||||
|
||||
public CountSetting()
|
||||
{
|
||||
this.filename = AR.UTIL.MakePath("Data", "counter.json");
|
||||
}
|
||||
public override void AfterLoad()
|
||||
{
|
||||
//if (CountReset == null) CountReset = DateTime.Parse("1982-11-23");
|
||||
}
|
||||
public override void AfterSave()
|
||||
{
|
||||
//throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
82
Handler/Sub/Setting/Model/System.cs
Normal file
82
Handler/Sub/Setting/Model/System.cs
Normal file
@@ -0,0 +1,82 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace AR
|
||||
{
|
||||
|
||||
public class SystemSetting : SettingJson
|
||||
{
|
||||
public int SaftySensor_Threshold { get; set; }
|
||||
|
||||
#region "System Setting"
|
||||
public int MotaxisCount { get; set; }
|
||||
#endregion
|
||||
|
||||
#region "Signal Reverse"
|
||||
|
||||
|
||||
[Category("Signal Reverse")]
|
||||
public Boolean ReverseSIG_Emgergency { get; set; }
|
||||
[Category("Signal Reverse")]
|
||||
public Boolean ReverseSIG_ButtonAir { get; set; }
|
||||
[Category("Signal Reverse")]
|
||||
public Boolean ReverseSIG_DoorF { get; set; }
|
||||
[Category("Signal Reverse")]
|
||||
public Boolean ReverseSIG_DoorR { get; set; }
|
||||
[Category("Signal Reverse")]
|
||||
public Boolean ReverseSIG_AirCheck { get; set; }
|
||||
[Category("Signal Reverse")]
|
||||
public Boolean ReverseSIG_PortLimitUp { get; set; }
|
||||
[Category("Signal Reverse")]
|
||||
public Boolean ReverseSIG_PortLimitDn { get; set; }
|
||||
[Category("Signal Reverse")]
|
||||
public Boolean ReverseSIG_PortDetect0Up { get; set; }
|
||||
[Category("Signal Reverse")]
|
||||
public Boolean ReverseSIG_PortDetect1Up { get; set; }
|
||||
[Category("Signal Reverse")]
|
||||
public Boolean ReverseSIG_PortDetect2Up { get; set; }
|
||||
[Category("Signal Reverse")]
|
||||
public Boolean ReverseSIG_PickerSafe { get; set; }
|
||||
|
||||
[Category("Signal Reverse")]
|
||||
public Boolean ReverseSIG_ExtConvReady { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
[Category("Door Safty"), DisplayName("Disable Front - Left")]
|
||||
|
||||
public Boolean Disable_safty_F0 { get; set; }
|
||||
[Category("Door Safty"), DisplayName("Disable Front - Center")]
|
||||
|
||||
public Boolean Disable_safty_F1 { get; set; }
|
||||
[Category("Door Safty"), DisplayName("Disable Front - Right")]
|
||||
|
||||
public Boolean Disable_safty_F2 { get; set; }
|
||||
[Category("Door Safty"), DisplayName("Disable Rear - Left")]
|
||||
|
||||
public Boolean Disable_safty_R0 { get; set; }
|
||||
[Category("Door Safty"), DisplayName("Disable Rear - Center")]
|
||||
|
||||
public Boolean Disable_safty_R1 { get; set; }
|
||||
[Category("Door Safty"), DisplayName("Disable Rear - Right")]
|
||||
|
||||
public Boolean Disable_safty_R2 { get; set; }
|
||||
|
||||
public SystemSetting()
|
||||
{
|
||||
this.filename = UTIL.MakePath("Data", "system.json");
|
||||
}
|
||||
public override void AfterLoad()
|
||||
{
|
||||
MotaxisCount = 7;
|
||||
}
|
||||
public override void AfterSave()
|
||||
{
|
||||
//throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
72
Handler/Sub/Setting/Model/User.cs
Normal file
72
Handler/Sub/Setting/Model/User.cs
Normal file
@@ -0,0 +1,72 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.ComponentModel;
|
||||
|
||||
|
||||
namespace AR
|
||||
{
|
||||
public class UserSetting : SettingJson
|
||||
{
|
||||
public string customerlist { get; set; }
|
||||
public Boolean Option_QtyUpdate1 { get; set; }
|
||||
public Boolean Option_PartUpdate { get; set; }
|
||||
public Boolean Option_printforce1 { get; set; }
|
||||
public Boolean Option_Confirm1 { get; set; }
|
||||
public Boolean Option_AutoConfirm { get; set; }
|
||||
public Boolean Option_vname { get; set; }
|
||||
public Boolean Option_FixPrint1 { get; set; }
|
||||
public string Option_PrintPos1 { get; set; }
|
||||
public Boolean Option_SidConv { get; set; }
|
||||
|
||||
//public Boolean Option_QtyUpdate3 { get; set; }
|
||||
//public Boolean Option_printforce3 { get; set; }
|
||||
//public Boolean Option_Confirm3 { get; set; }
|
||||
//public Boolean Option_FixPrint3 { get; set; }
|
||||
//public string Option_PrintPos3 { get; set; }
|
||||
|
||||
public string LastJobUnP11 { get; set; }
|
||||
public string LastJobUnP12 { get; set; }
|
||||
public string LastJobUnP21 { get; set; }
|
||||
public string LastJobUnP22 { get; set; }
|
||||
public string LastJobUnP31 { get; set; }
|
||||
public string LastJobUnP32 { get; set; }
|
||||
public string LastJobUnP41 { get; set; }
|
||||
public string LastJobUnP42 { get; set; }
|
||||
|
||||
|
||||
public string LastLot { get; set; }
|
||||
public string LastAltag { get; set; }
|
||||
public string LastModelM { get; set; }
|
||||
public string LastModelV { get; set; }
|
||||
|
||||
public string LastMC { get; set; }
|
||||
|
||||
public int jobtype { get; set; }
|
||||
public int scantype { get; set; }
|
||||
public bool useConv { get; set; }
|
||||
public UserSetting()
|
||||
{
|
||||
this.filename = UTIL.MakePath("data", "UserSet.json");
|
||||
}
|
||||
|
||||
public override void AfterLoad()
|
||||
{
|
||||
|
||||
if (LastJobUnP11.isEmpty()) LastJobUnP11 = "AUTO";
|
||||
if (LastJobUnP12.isEmpty()) LastJobUnP12 = "AUTO";
|
||||
if (LastJobUnP21.isEmpty()) LastJobUnP21 = "AUTO";
|
||||
if (LastJobUnP22.isEmpty()) LastJobUnP22 = "AUTO";
|
||||
if (LastJobUnP31.isEmpty()) LastJobUnP31 = "AUTO";
|
||||
if (LastJobUnP32.isEmpty()) LastJobUnP32 = "AUTO";
|
||||
if (LastJobUnP41.isEmpty()) LastJobUnP41 = "AUTO";
|
||||
if (LastJobUnP42.isEmpty()) LastJobUnP42 = "AUTO";
|
||||
|
||||
}
|
||||
public override void AfterSave()
|
||||
{
|
||||
//throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
36
Handler/Sub/Setting/Properties/AssemblyInfo.cs
Normal file
36
Handler/Sub/Setting/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// 어셈블리에 대한 일반 정보는 다음 특성 집합을 통해
|
||||
// 제어됩니다. 어셈블리와 관련된 정보를 수정하려면
|
||||
// 이러한 특성 값을 변경하세요.
|
||||
[assembly: AssemblyTitle("Setting")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("Setting")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2022")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// ComVisible을 false로 설정하면 이 어셈블리의 형식이 COM 구성 요소에
|
||||
// 표시되지 않습니다. COM에서 이 어셈블리의 형식에 액세스하려면
|
||||
// 해당 형식에 대해 ComVisible 특성을 true로 설정하세요.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// 이 프로젝트가 COM에 노출되는 경우 다음 GUID는 typelib의 ID를 나타냅니다.
|
||||
[assembly: Guid("48654765-548d-42ed-9238-d65eb3bc99ad")]
|
||||
|
||||
// 어셈블리의 버전 정보는 다음 네 가지 값으로 구성됩니다.
|
||||
//
|
||||
// 주 버전
|
||||
// 부 버전
|
||||
// 빌드 번호
|
||||
// 수정 버전
|
||||
//
|
||||
// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호를
|
||||
// 기본값으로 할 수 있습니다.
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
36
Handler/Sub/Setting/SETTING.cs
Normal file
36
Handler/Sub/Setting/SETTING.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
|
||||
namespace AR
|
||||
{
|
||||
public static class SETTING
|
||||
{
|
||||
public static SystemSetting System;
|
||||
public static CountSetting Counter;
|
||||
public static CommonSetting Data;
|
||||
public static UserSetting User;
|
||||
public static Boolean isInit { get; private set; } = false;
|
||||
public static void Load()
|
||||
{
|
||||
if (Data == null) Data = new CommonSetting();
|
||||
Data.Load();
|
||||
if (User == null) User = new UserSetting();
|
||||
User.Load();
|
||||
if (System == null) System = new SystemSetting();
|
||||
System.Load();
|
||||
if (Counter == null) Counter = new CountSetting();
|
||||
Counter.Load();
|
||||
isInit = true;
|
||||
}
|
||||
public static void Save()
|
||||
{
|
||||
Data.Save();
|
||||
User.Save();
|
||||
System.Save();
|
||||
Counter.Save();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
63
Handler/Sub/Setting/Setting.csproj
Normal file
63
Handler/Sub/Setting/Setting.csproj
Normal file
@@ -0,0 +1,63 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{48654765-548D-42ED-9238-D65EB3BC99AD}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Setting</RootNamespace>
|
||||
<AssemblyName>Setting</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<Deterministic>true</Deterministic>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Management" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Model\Common.cs" />
|
||||
<Compile Include="Model\Count.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="SETTING.cs" />
|
||||
<Compile Include="Model\System.cs" />
|
||||
<Compile Include="Model\User.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\commutil\arCommUtil.csproj">
|
||||
<Project>{14e8c9a5-013e-49ba-b435-ffffff7dd623}</Project>
|
||||
<Name>arCommUtil</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
Reference in New Issue
Block a user