Initial commit

This commit is contained in:
ChiKyun Kim
2025-07-17 16:11:46 +09:00
parent 4865711adc
commit 4a1b1924ba
743 changed files with 230954 additions and 0 deletions

View File

@@ -0,0 +1,548 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
namespace Project
{
public class CSetting : arUtil.Setting
{
#region "log"
[Category("System Log - Main")]
public Boolean Log_CameraConn { get; set; }
[Category("System Log - Main"), DisplayName("Digital Input"),
Description("입/출력 장치의 상태 변화를 기록 합니다.")]
public Boolean Log_DI { get; set; }
[Category("System Log - Main"), DisplayName("Digital Output"),
Description("입/출력 장치의 상태 변화를 기록 합니다.")]
public Boolean Log_DO { get; set; }
[Category("System Log - Main"), DisplayName("Network Alive Check(Ping)"),
Description("디버그 메세지 사용")]
public Boolean Log_Debug { get; set; }
[Category("System Log - Main"), DisplayName("S/M Step Change"),
Description("상태머신의 변화 상태를 기록 합니다.")]
public Boolean Log_StepChange { get; set; }
[Category("System Log - Main"), DisplayName("Motion State Change"),
Description("모션 상태 변화를 기록 합니다.")]
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("키엔스바코드IP"), Description("키엔스 바코드 프로그램의 접속 IP Address")]
public string IP_Barcode { get; set; }
#endregion
#region "Time Out"
[Category("Timeout Setting"), DisplayName()]
public int Timeout_AutoConfirm { get; set; }
[Category("Timeout Setting"), DisplayName("작업 완료 대기시간(단위:초)")]
public int Timeout_JOBEnd { get; set; }
[Category("Timeout Setting"), DisplayName("최대비젼분석시간(로더)")]
public int Timeout_VisionProcessL { get; set; }
[Category("Timeout Setting"), DisplayName("최대비젼분석시간(언로더)")]
public int Timeout_VisionProcessU { get; set; }
[Category("Timeout Setting"), DisplayName("장비 초기화 대기시간(단위:초)")]
public int Timeout_HomeSearch { get; set; }
[Category("Timeout Setting"), DisplayName("개별 동작의 대기시간(단위:초)")]
public double Timeout_StepMaxTime { get; set; }
[Category("Timeout Setting"), DisplayName("모션의 최대 동작시간(단위:초)")]
public int Timeout_MotionCommand { get; set; }
[Category("Timeout Setting"), DisplayName("DIO의 최대 동작시간(단위:초)")]
public int Timeout_DIOCommand { get; set; }
#endregion
#region "Advanced Parameter"
[Category("Advanced Parameter"), DisplayName("Remote Contoller Port"), Description("디버그 포트 정보(시리얼통신), 입력 예) COM1:9600")]
public string Serial_Remocon { get; set; }
[Category("Advanced Parameter"), Browsable(false)]
public Boolean Disable_PrinterL { get; set; }
[Category("Advanced Parameter"), Browsable(false)]
public Boolean Disable_PrinterR { get; set; }
[Category("Advanced Parameter"), Browsable(false)]
public Boolean Disable_PLVac { get; set; }
[Category("Advanced Parameter"), Browsable(false)]
public Boolean Disable_PRVac { get; set; }
[Category("Advanced Parameter"), Browsable(false)]
public Boolean Disable_PKVac { get; set; }
[Category("Advanced Parameter"), Browsable(false)]
public Boolean Disable_Port0 { get; set; }
[Category("Advanced Parameter")]
public Boolean Disable_Port1 { get; set; }
[Category("Advanced Parameter"), Browsable(false)]
public Boolean Disable_Port2 { get; set; }
[Category("Advanced Parameter")]
public Boolean Disable_SIDReferenceCheck { get; set; }
[Category("Advanced Parameter")]
public Boolean Enable_ButtonStart { get; set; }
[Category("Advanced Parameter")]
public Boolean Disable_RequestJobSeqNo { get; set; }
[Category("Advanced Parameter")]
public Boolean DisableSensor_AIRCheck { get; set; }
[Category("Advanced Parameter"), Browsable(false)]
public Boolean Disable_TowerLamp { get; set; }
[Category("Advanced Parameter"), Browsable(false)]
public Boolean Disable_RoomLight { get; set; }
[Category("Advanced Parameter")]
public bool Disable_vacum { get; set; }
[Category("Advanced Parameter"), DisplayName("*.속도제한")]
public Boolean Enable_SpeedLimit { get; set; }
[Category("Advanced Parameter"), DisplayName("*.최대속도")]
public int LimitSpeed { get; set; }
[Category("Advanced Parameter"), Browsable(false)]
public Boolean Disable_SidQtyCheck { get; set; }
[Category("Advanced Parameter")]
public Boolean Disable_Axis0 { get; set; }
[Category("Advanced Parameter")]
public Boolean Disable_Axis1 { get; set; }
[Category("Advanced Parameter")]
public Boolean Disable_Axis2 { get; set; }
[Category("Advanced Parameter")]
public Boolean Disable_Axis3 { get; set; }
[Category("Advanced Parameter")]
public Boolean Disable_Axis4 { get; set; }
[Category("Advanced Parameter")]
public Boolean Disable_Axis5 { get; set; }
[Category("Advanced Parameter")]
public Boolean Disable_Axis6 { get; set; }
[Category("Advanced Parameter")]
public Boolean EnableDebugMode { get; set; }
#endregion
#region "function"
[Browsable(false)]
public Boolean Disable_safty_F0 { get; set; }
[Browsable(false)]
public Boolean Disable_safty_F1 { get; set; }
[Browsable(false)]
public Boolean Disable_safty_F2 { get; set; }
[Browsable(false)]
public Boolean Disable_safty_R0 { get; set; }
[Browsable(false)]
public Boolean Disable_safty_R1 { get; set; }
[Browsable(false)]
public Boolean Disable_safty_R2 { get; set; }
[Browsable(false)]
public Boolean Disable_Buzzer { get; set; }
[Browsable(false)]
public Boolean Enable_RQAuto { 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 Disable_Left { get; set; }
[Browsable(false)]
public Boolean Disable_Right { get; set; }
public string GetPathData()
{
if (Path_Data.isEmpty()) return System.IO.Path.Combine(Util.CurrentPath, "SaveData");
else return Path_Data;
}
[Category("Function"), DisplayName("라벨QR코드검증"), Description("부착된 라벨의 QR코드를 인쇄데이터와 검증 합니다")]
public Boolean Enable_Unloader_QRValidation { get; set; }
[Category("Function"), DisplayName("촬영이미지저장")]
public Boolean Save_Image { get; set; }
[Category("Function"), DisplayName("피커자동이동(전면도어)")]
public Boolean PickerAutoMoveForDoor { get; set; }
[Category("Function"), DisplayName("Data Save Path")]
public string Path_Data { get; set; }
[Category("Function"), Browsable(false), DisplayName("실내등 자동 제어"),
Description("도어 상태에 따라서 내부 조명을 자동 ON/OFF 합니다")]
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("부저 동작시간(ms)"),
Description("부저 발생시 지정된 시간(ms) 동안 부저가 울립니다")]
public int buzz_run_ms { get; set; }
#endregion
#region "Vision"
[Category("Vision"), DisplayName("13' 이미지 중앙 위치"), Description("키엔스 이미지의 회전축 좌표")]
public System.Drawing.Point CenterPosition13 { get; set; }
[Category("Vision"), DisplayName("7' 이미지 중앙 위치"), Description("키엔트 이미지의 회전축 좌표")]
public System.Drawing.Point CenterPosition7 { get; set; }
[Category("Vision"), DisplayName("Vision Refresh Time"), Description("좌/우 비젼의 갱신 시간(ms)")]
public int Vis_Liveview_Interval { get; set; }
[Category("Vision"), DisplayName("카메라사용안함(좌)")]
public Boolean DisableCamera0 { get; set; }
[Category("Vision"), DisplayName("카메라사용안함(우)")]
public Boolean DisableCamera2 { get; set; }
public float RosRectScale { get; set; }
[Category("Vision")]
public float AngleOffsetL { get; set; }
[Category("Vision")]
public float AngleOffsetR { get; set; }
public Boolean DisableCamera(int idx)
{
if (idx == 0) return DisableCamera0;
else if (idx == 1) return false;
else return DisableCamera2;
}
#endregion
#region "Vision Processing"
//[Category("Vision Processing")]
//public int processCount { get; set; }
[Category("Vision Processing")]
public string erodevaluestr { get; set; }
[Category("Vision Processing")]
public uint blob_area_min { get; set; }
[Category("Vision Processing")]
public uint blob_area_max { get; set; }
[Category("Vision Processing")]
public float blob_sigmaxy { get; set; }
[Category("Vision Processing")]
public float blob_sigmayy { get; set; }
[Category("Vision Processing")]
public float blob_sigmaxx { get; set; }
//[Category("Vision Processing")]
//public Boolean SaveErrorImage { get; set; }
[Category("Vision Processing")]
public string GainOffsetListStr { get; set; }
#endregion
#region "Count Reset Setting"
[Category("Count Reset Setting"), Browsable(false), DisplayName("A/M Clear Enable"),
Description("오전 초기화 여부\n작업수량을 초기화 하려면 True 로 설정하세요")]
public Boolean datetime_Check_1 { get; set; }
[Category("Count Reset Setting"), Browsable(false), DisplayName("P/M Clear Enable"),
Description("오후 초기화 여부\n작업수량을 초기화 하려면 True 로 설정하세요")]
public Boolean datetime_Check_2 { get; set; }
[Category("Count Reset Setting"), Browsable(false), DisplayName("A/M Clear Time(HH:mm)"),
Description("오전 초기화 시간(시:분)\n예) 09:00")]
public string datetime_Reset_1 { get; set; }
[Category("Count Reset Setting"), Browsable(false), DisplayName("P/M Clear Time(HH:mm)"),
Description("오후 초기화 시간(시:분)\n예) 19:00")]
public string datetime_Reset_2 { get; set; }
#endregion
#region "Sensitive"
[Category("Sensitive"), DisplayName("언/로더포트 감지(fall)")]
public ushort PortDetectFall { get; set; }
[Category("Sensitive"), DisplayName("언/로더포트 감지(rise)")]
public ushort PortDetectRise { get; set; }
[Category("Sensitive"), DisplayName("도어 감지센서(rise)")]
public ushort SaftyDetectRise { get; set; }
[Category("Sensitive"), DisplayName("도어 감지센서(rise)")]
public ushort SaftyDetectFall { get; set; }
[Category("Sensitive"), DisplayName("AIR 버튼(rise/fall)")]
public ushort AirChange { get; set; }
#endregion
#region "Operation Delay"
[Category("Operation Delay(sec)"), DisplayName("라벨 붙인 후 대기 시간"), Description("라벨 부착 후 PURGE 대기 시간")]
public float PrintVacOffPurgesec { get; set; }
[Category("Operation Delay(sec)"), DisplayName("카트감지대기시간(좌)"), Description("지정된 시간 이후에 카트가 HOLD 됩니다- ms")]
public ushort WaitTime_Magnet0 { get; set; }
[Category("Operation Delay(sec)"), DisplayName("카트감지대기시간(중앙)"), Description("지정된 시간 이후에 카트가 HOLD 됩니다- ms")]
public ushort WaitTime_Magnet1 { get; set; }
[Category("Operation Delay(sec)"), DisplayName("카트감지대기시간(우)"), Description("지정된 시간 이후에 카트가 HOLD 됩니다 - ms")]
public ushort WaitTime_Magnet2 { get; set; }
[Category("Operation Delay(sec)"), DisplayName("프린트후대기시간(좌s)"), Description("프린터 라벨 출력 후 대기 시간(좌)- ms")]
public int PrintLWaitMS { get; set; }
[Category("Operation Delay(sec)"), DisplayName("프린트후대기시간(우)"), Description("프린터 라벨 출력 후 대기 시간(우)- ms")]
public int PrintRWaitMS { get; set; }
[Category("Operation Delay(sec)"), DisplayName("포트 하강 시간(Unloader)"), Description("포트 정렬시 지정된 시간동안 하강 합니다")]
public float PortAlignDownTimeU { get; set; }
[Category("Operation Delay(sec)"), DisplayName("포트 하강 시간(Loader)"), Description("포트 정렬시 지정된 시간동안 하강 합니다")]
public float PortAlignDownTimeL { get; set; }
[Category("Operation Delay(sec)"), DisplayName("Loder포트 하강 시간(Finish)"), Description("작업 완료 후 지정된 시간(ms) 만큼 하강 합니다")]
public ushort Port1FisnishDownTime { get; set; }
#endregion
[Category("General Setting"), DisplayName("장비 자산 번호")]
public string Asset { get; set; }
[Category("General Setting"), DisplayName("무시바코드"), Description("입려된 값으로 시작하는 바코드를 무시합니다. 여러개 입력하려면 콤마(,) 로 구분 하세요")]
public string IgnoreBarcode { get; set; }
[Category("General Setting")]
public string ReelIdDeviceID { get; set; }
[Category("General Setting")]
public string ReelIdDeviceLoc { get; set; }
public Boolean MoveYForPaperVaccume { get; set; }
public float MoveYForPaperVaccumeValue { get; set; }
public uint MoveYForPaperVaccumeVel { get; set; }
public uint MoveYForPaperVaccumeAcc { get; set; }
public Boolean OnlineMode { get; set; }
public string HostIPL { get; set; }
public string HostIPR { get; set; }
public int HostPortL { get; set; }
public int HostPortR { get; set; }
public string CameraLFile { get; set; }
public string CameraRFile { get; set; }
public Boolean STDLabelFormat7 { get; set; }
#region "Printer"
[Category("Printer"), DisplayName("프린트이름(좌)"), Description("프린트 장치 이름")]
public string PrintLeftName { get; set; }
[Category("Printer"), DisplayName("프린트이름(우)"), Description("프린트 장치 이름")]
public string PrintRightName { get; set; }
[Category("Printer"), DisplayName("바코드 외곽 박스 그리기")]
public Boolean DrawOutbox { get; set; }
#endregion
[Category("Joystick")]
public int Jostick_vid { get; set; }
[Category("Joystick")]
public int Jostick_pid { get; set; }
#region "general"
[Category("General Setting"), Browsable(false),
Description("데이터 자동 소거 기간(일) 비활성=0")]
public int AutoDeleteDay { get; set; }
[Category("General Setting"), Browsable(false),
Description("데이터 자동 소거 조건(남은용량 %)")]
public int AutoDeleteThreshold { get; set; }
[Category("General Setting"), Browsable(false)]
public string Password_Setup { get; set; }
[Category("General Setting"), Browsable(false)]
public string Language { get; set; }
[Category("General Setting"), DisplayName("Full Screen Window State"),
Description("화면을 전체화면으로 사용 합니다.")]
public Boolean FullScreen { get; set; }
#region "표시안함"
[Category("Sensor Detect"), Browsable(false)]
public Boolean Detect_CartL { get; set; }
[Category("Sensor Detect"), Browsable(false)]
public Boolean Detect_CartC { get; set; }
[Category("Sensor Detect"), Browsable(false)]
public Boolean Detect_CartR { get; set; }
[Category("Sensor Detect"), Browsable(false)]
public Boolean Detect_PrintL { get; set; }
[Category("Sensor Detect"), Browsable(false)]
public Boolean Detect_PrintR { get; set; }
[Category("Sensor Detect"), Browsable(false)]
public Boolean Detect_CenterSafty { get; set; }
#endregion
#endregion
public override void AfterLoad()
{
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 (MoveYForPaperVaccumeVel == 0) MoveYForPaperVaccumeVel = 10;
if (MoveYForPaperVaccumeAcc == 0) MoveYForPaperVaccumeAcc = 1000;
if (blob_area_max == 0 && blob_area_min == 0)
{
//processCount = 6;
erodevaluestr = "3,1";
blob_area_min = 5000;
blob_area_max = 50000;
blob_sigmaxy = 500f;
blob_sigmaxx = 5000f;
blob_sigmayy = 500f;
}
if (RosRectScale == 0f)
RosRectScale = 1.5f;
//포트얼라인시간 210401
if (PortAlignDownTimeU == 0f &&
PortAlignDownTimeL == 0f)
{
PortAlignDownTimeL = 1.5f;
PortAlignDownTimeU = 1.0f;
}
//if (Port1FisnishDownTime == 0)
// Port1FisnishDownTime = 5000;
if (GainOffsetListStr.isEmpty())
{
GainOffsetListStr = "1,0;1.3,0;1,50;1,-50;3,50;0.5,-20;2.5,150;2,0";
}
if (Jostick_vid == 0) Jostick_vid = 121;
if (Jostick_pid == 0) Jostick_pid = 17;
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 (Vis_Liveview_Interval < 0) Vis_Liveview_Interval = 100;
if (SaftyDetectRise == 0) SaftyDetectRise = 20;
if (SaftyDetectFall == 0) SaftyDetectFall = 1000; //안전센서는 느리게 해제 한다
if (Timeout_JOBEnd == 0) Timeout_JOBEnd = 10;
if (Timeout_VisionProcessL == 0) Timeout_VisionProcessL = 3000;
if (Timeout_VisionProcessU == 0) Timeout_VisionProcessU = 10000;
if (PortDetectFall == 0) PortDetectFall = 50;
if (PortDetectRise == 0) PortDetectRise = 10;
if (AirChange == 0) AirChange = 3000;
if (IP_Barcode.isEmpty()) IP_Barcode = "192.168.100.100";
//데이터베이스
if (IP_Barcode.isEmpty() == true) IP_Barcode = "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 = System.IO.Path.Combine(Util.CurrentPath, "SaveData");
try
{
if (System.IO.Directory.Exists(Path_Data) == false)
System.IO.Directory.CreateDirectory(Path_Data);
}
catch
{
}
//if (Password_User.isEmpty()) Password_User = "9999";
}
public override void AfterSave()
{
//throw new NotImplementedException();
}
public void CopyTo(CSetting 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 });
}
}
}
}

View File

@@ -0,0 +1,81 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
namespace Project
{
public class CounterSetting : arUtil.Setting
{
public int seq { get; set; }
public string DateStr { get; set; }
public void ClearP()
{
CountV0 = CountV1 = CountV2 = CountE = CountP0 = CountP1 = CountP2 = CountPrint0 = CountPrint1 = 0;
Pub.log.Add("Count(Port) Clear");
this.Save();
}
public void ClearDay()
{
DateStr = string.Empty;
CountDP0 = CountDP1 = CountDP2 = CountDP3 = CountDP4 = 0;
Pub.log.Add("Count(Day) Clear");
this.Save();
}
public int CountD
{
get
{
return CountDP0 + CountDP1 + CountDP2 + CountDP3 + CountDP4;
}
}
public int Count
{
get
{
return CountP0 + CountP1 + CountP2 + CountPrint0 + CountPrint1;
}
}
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 CountPrint0 { get; set; }
public int CountPrint1 { get; set; }
public int CountE { get; set; }
public int CountV0 { get; set; }
public int CountV1 { get; set; }
public int CountV2 { get; set; }
public CounterSetting()
{
this.filename = Util.CurrentPath + "counter.xml";
}
public override void AfterLoad()
{
//if (CountReset == null) CountReset = DateTime.Parse("1982-11-23");
}
public override void AfterSave()
{
//throw new NotImplementedException();
}
}
}

View File

@@ -0,0 +1,239 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
namespace Project
{
public class SystemSetting : arUtil.Setting
{
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; }
#endregion
#region "Axis-0 Setting (Y-Picker)"
[Category("Axis-0 Setting (Y-Picker)")]
public Boolean axis0_disable_orgsensor { get; set; }
[Category("Axis-0 Setting (Y-Picker)"), DisplayName("Home Speed (High)")]
public double HSpeed0H { get; set; }
[Category("Axis-0 Setting (Y-Picker)"), DisplayName("Home Speed (Low)")]
public double HSpeed0L { get; set; }
[Category("Axis-0 Setting (Y-Picker)"), DisplayName("Home Speed (Acc/Dcc)")]
public double HAcc0 { get; set; }
[Category("Axis-0 Setting (Y-Picker)")]
public double SWLimitP0 { get; set; }
#endregion
#region "Axis-1 Setting"
[Category("Axis-1 Setting"), DisplayName("★ Disable Origin Sensor")]
public Boolean axis1_disable_orgsensor { get; set; }
[Category("Axis-1 Setting"), DisplayName("Home Speed (High)")]
public double HSpeed1H { get; set; }
[Category("Axis-1 Setting"), DisplayName("Home Speed (Low)")]
public double HSpeed1L { get; set; }
[Category("Axis-1 Setting"), DisplayName("Home Speed (Acc/Dcc)")]
public double HAcc1 { get; set; }
[Category("Axis-1 Setting")]
public double SWLimitP1 { get; set; }
#endregion
#region "Axis-2 Setting"
[Category("Axis-2 Setting"), DisplayName("★ Disable Origin Sensor")]
public Boolean axis2_disable_orgsensor { get; set; }
[Category("Axis-2 Setting"), DisplayName("Home Speed (High)")]
public double HSpeed2H { get; set; }
[Category("Axis-2 Setting"), DisplayName("Home Speed (Low)")]
public double HSpeed2L { get; set; }
[Category("Axis-2 Setting"), DisplayName("Home Speed (Acc/Dcc)")]
public double HAcc2 { get; set; }
[Category("Axis-2 Setting")]
public double SWLimitP2 { get; set; }
#endregion
#region "Axis-3 Setting"
[Category("Axis-3 Setting"), DisplayName("★ Disable Origin Sensor")]
public Boolean axis3_disable_orgsensor { get; set; }
[Category("Axis-3 Setting"), DisplayName("Home Speed (High)")]
public double HSpeed3H { get; set; }
[Category("Axis-3 Setting"), DisplayName("Home Speed (Low)")]
public double HSpeed3L { get; set; }
[Category("Axis-3 Setting"), DisplayName("Home Speed (Acc/Dcc)")]
public double HAcc3 { get; set; }
[Category("Axis-3 Setting")]
public double SWLimitP3 { get; set; }
#endregion
#region "Axis-4 Setting"
[Category("Axis-4 Setting"), DisplayName("★ Disable Origin Sensor")]
public Boolean axis4_disable_orgsensor { get; set; }
[Category("Axis-4 Setting"), DisplayName("Home Speed (High)")]
public double HSpeed4H { get; set; }
[Category("Axis-4 Setting"), DisplayName("Home Speed (Low)")]
public double HSpeed4L { get; set; }
[Category("Axis-4 Setting"), DisplayName("Home Speed (Acc/Dcc)")]
public double HAcc4 { get; set; }
[Category("Axis-4 Setting")]
public double SWLimitP4 { get; set; }
#endregion
#region "Axis-5 Setting"
[Category("Axis-5 Setting"), DisplayName("★ Disable Origin Sensor")]
public Boolean axis5_disable_orgsensor { get; set; }
[Category("Axis-5 Setting"), DisplayName("Home Speed (High)")]
public double HSpeed5H { get; set; }
[Category("Axis-5 Setting"), DisplayName("Home Speed (Low)")]
public double HSpeed5L { get; set; }
[Category("Axis-5 Setting"), DisplayName("Home Speed (Acc/Dcc)")]
public double HAcc5 { get; set; }
[Category("Axis-5 Setting")]
public double SWLimitP5 { get; set; }
#endregion
#region "Axis-6 Setting"
[Category("Axis-6 Setting"), DisplayName("★ Disable Origin Sensor")]
public Boolean axis6_disable_orgsensor { get; set; }
[Category("Axis-6 Setting"), DisplayName("Home Speed (High)")]
public double HSpeed6H { get; set; }
[Category("Axis-6 Setting"), DisplayName("Home Speed (Low)")]
public double HSpeed6L { get; set; }
[Category("Axis-6 Setting"), DisplayName("Home Speed (Acc/Dcc)")]
public double HAcc6 { get; set; }
[Category("Axis-6 Setting")]
public double SWLimitP6 { get; set; }
#endregion
#region "Axis-7 Setting"
[Category("Axis-7 Setting"), DisplayName("★ Disable Origin Sensor")]
public Boolean axis7_disable_orgsensor { get; set; }
[Category("Axis-7 Setting"), DisplayName("Home Speed (High)")]
public double HSpeed7H { get; set; }
[Category("Axis-7 Setting"), DisplayName("Home Speed (Low)")]
public double HSpeed7L { get; set; }
[Category("Axis-7 Setting"), DisplayName("Home Speed (Acc/Dcc)")]
public double HAcc7 { get; set; }
[Category("Axis-7 Setting")]
public double SWLimitP7 { get; set; }
#endregion
#region "disalbe axis"
[Category("Disable Axis")]
public Boolean Disable_Axis0 { get; set; }
[Category("Disable Axis")]
public Boolean Disable_Axis1 { get; set; }
[Category("Disable Axis")]
public Boolean Disable_Axis2 { get; set; }
[Category("Disable Axis")]
public Boolean Disable_Axis3 { get; set; }
[Category("Disable Axis")]
public Boolean Disable_Axis4 { get; set; }
[Category("Disable Axis")]
public Boolean Disable_Axis5 { get; set; }
[Category("Disable Axis")]
public Boolean Disable_Axis6 { get; set; }
[Category("Disable Axis")]
public Boolean Disable_Axis7 { get; set; }
#endregion
public SystemSetting()
{
this.filename = Util.CurrentPath + "system.xml";
}
public override void AfterLoad()
{
MotaxisCount = 7;
if (HSpeed0H == 0) HSpeed0H = 10;
if (HSpeed0L == 0) HSpeed0L = 5;
if (HAcc0 == 0) HAcc0 = 100;
if (HSpeed1H == 0) HSpeed1H = 10;
if (HSpeed1L == 0) HSpeed1L = 5;
if (HAcc1 == 0) HAcc1 = 100;
if (HSpeed2H == 0) HSpeed2H = 10;
if (HSpeed2L == 0) HSpeed2L = 5;
if (HAcc2 == 0) HAcc2 = 100;
if (HSpeed3H == 0) HSpeed3H = 10;
if (HSpeed3L == 0) HSpeed3L = 5;
if (HAcc3 == 0) HAcc3 = 100;
if (HSpeed4H == 0) HSpeed4H = 10;
if (HSpeed4L == 0) HSpeed4L = 5;
if (HAcc4 == 0) HAcc4 = 100;
if (HSpeed5H == 0) HSpeed5H = 10;
if (HSpeed5L == 0) HSpeed5L = 5;
if (HAcc5 == 0) HAcc5 = 100;
if (HSpeed6H == 0) HSpeed6H = 10;
if (HSpeed6L == 0) HSpeed6L = 5;
if (HAcc6 == 0) HAcc6 = 100;
if (HSpeed7H == 0) HSpeed7H = 10;
if (HSpeed7L == 0) HSpeed7L = 5;
if (HAcc7 == 0) HAcc7 = 100;
}
public override void AfterSave()
{
//throw new NotImplementedException();
}
}
}

View File

@@ -0,0 +1,72 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
namespace Project
{
public class UserSetting : arUtil.Setting
{
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_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 UserSetting()
{
this.filename = AppDomain.CurrentDomain.BaseDirectory + "UserSet.xml";
}
public override void AfterLoad()
{
if (Pub.uSetting.LastJobUnP11.isEmpty()) Pub.uSetting.LastJobUnP11 = "AUTO";
if (Pub.uSetting.LastJobUnP12.isEmpty()) Pub.uSetting.LastJobUnP12 = "AUTO";
if (Pub.uSetting.LastJobUnP21.isEmpty()) Pub.uSetting.LastJobUnP21 = "AUTO";
if (Pub.uSetting.LastJobUnP22.isEmpty()) Pub.uSetting.LastJobUnP22 = "AUTO";
if (Pub.uSetting.LastJobUnP31.isEmpty()) Pub.uSetting.LastJobUnP31 = "AUTO";
if (Pub.uSetting.LastJobUnP32.isEmpty()) Pub.uSetting.LastJobUnP32 = "AUTO";
if (Pub.uSetting.LastJobUnP41.isEmpty()) Pub.uSetting.LastJobUnP41 = "AUTO";
if (Pub.uSetting.LastJobUnP42.isEmpty()) Pub.uSetting.LastJobUnP42 = "AUTO";
}
public override void AfterSave()
{
//throw new NotImplementedException();
}
}
}

View File

@@ -0,0 +1,827 @@
namespace Project
{
partial class fSetting
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fSetting));
this.button1 = new System.Windows.Forms.Button();
this.panel1 = new System.Windows.Forms.Panel();
this.propertyGrid1 = new System.Windows.Forms.PropertyGrid();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage2 = new System.Windows.Forms.TabPage();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.btDetectPrintR = new System.Windows.Forms.Button();
this.btDetectPrintL = new System.Windows.Forms.Button();
this.btCartDetR = new System.Windows.Forms.Button();
this.btCartDetL = new System.Windows.Forms.Button();
this.btCartDetC = new System.Windows.Forms.Button();
this.btdoorr3 = new System.Windows.Forms.Button();
this.btdoorr1 = new System.Windows.Forms.Button();
this.btdoorf3 = new System.Windows.Forms.Button();
this.btdoorr2 = new System.Windows.Forms.Button();
this.btdoorf1 = new System.Windows.Forms.Button();
this.btdoorf2 = new System.Windows.Forms.Button();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.button9 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.btmag2 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.button6 = new System.Windows.Forms.Button();
this.btPickerVac = new System.Windows.Forms.Button();
this.btPort1 = new System.Windows.Forms.Button();
this.btmag1 = new System.Windows.Forms.Button();
this.btTWLamp = new System.Windows.Forms.Button();
this.btBuz = new System.Windows.Forms.Button();
this.btmag0 = new System.Windows.Forms.Button();
this.button5 = new System.Windows.Forms.Button();
this.btPort0 = new System.Windows.Forms.Button();
this.btPort2 = new System.Windows.Forms.Button();
this.btLeftVac = new System.Windows.Forms.Button();
this.btPrintR = new System.Windows.Forms.Button();
this.btPrintL = new System.Windows.Forms.Button();
this.btRightVac = new System.Windows.Forms.Button();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.tabPage3 = new System.Windows.Forms.TabPage();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.keyDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.valueDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.bsLang = new System.Windows.Forms.BindingSource(this.components);
this.dataSet1 = new Project.DataSet1();
this.statusStrip2 = new System.Windows.Forms.StatusStrip();
this.lbFile = new System.Windows.Forms.ToolStripStatusLabel();
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
this.toolStripButton3 = new System.Windows.Forms.ToolStripButton();
this.toolStripButton4 = new System.Windows.Forms.ToolStripButton();
this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
this.tabPage4 = new System.Windows.Forms.TabPage();
this.button4 = new System.Windows.Forms.Button();
this.button8 = new System.Windows.Forms.Button();
this.button7 = new System.Windows.Forms.Button();
this.bsRecipient = new System.Windows.Forms.BindingSource(this.components);
this.bsMailForm = new System.Windows.Forms.BindingSource(this.components);
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
this.errorProvider1 = new System.Windows.Forms.ErrorProvider(this.components);
this.button10 = new System.Windows.Forms.Button();
this.panel1.SuspendLayout();
this.tabControl1.SuspendLayout();
this.tabPage2.SuspendLayout();
this.groupBox2.SuspendLayout();
this.groupBox1.SuspendLayout();
this.tabPage1.SuspendLayout();
this.tabPage3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bsLang)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dataSet1)).BeginInit();
this.statusStrip2.SuspendLayout();
this.toolStrip1.SuspendLayout();
this.tabPage4.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.bsRecipient)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bsMailForm)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.errorProvider1)).BeginInit();
this.SuspendLayout();
//
// button1
//
this.button1.Dock = System.Windows.Forms.DockStyle.Fill;
this.button1.Location = new System.Drawing.Point(5, 5);
this.button1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(604, 53);
this.button1.TabIndex = 0;
this.button1.Text = "저장(&S)";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// panel1
//
this.panel1.Controls.Add(this.button1);
this.panel1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel1.Location = new System.Drawing.Point(0, 547);
this.panel1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.panel1.Name = "panel1";
this.panel1.Padding = new System.Windows.Forms.Padding(5);
this.panel1.Size = new System.Drawing.Size(614, 63);
this.panel1.TabIndex = 1;
//
// propertyGrid1
//
this.propertyGrid1.Dock = System.Windows.Forms.DockStyle.Fill;
this.propertyGrid1.Font = new System.Drawing.Font("맑은 고딕", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.propertyGrid1.LineColor = System.Drawing.SystemColors.ControlDark;
this.propertyGrid1.Location = new System.Drawing.Point(3, 3);
this.propertyGrid1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.propertyGrid1.Name = "propertyGrid1";
this.propertyGrid1.Size = new System.Drawing.Size(600, 508);
this.propertyGrid1.TabIndex = 1;
//
// tabControl1
//
this.tabControl1.Controls.Add(this.tabPage2);
this.tabControl1.Controls.Add(this.tabPage1);
this.tabControl1.Controls.Add(this.tabPage3);
this.tabControl1.Controls.Add(this.tabPage4);
this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabControl1.Location = new System.Drawing.Point(0, 0);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(614, 547);
this.tabControl1.TabIndex = 2;
this.tabControl1.SelectedIndexChanged += new System.EventHandler(this.tabControl1_SelectedIndexChanged);
//
// tabPage2
//
this.tabPage2.Controls.Add(this.groupBox2);
this.tabPage2.Controls.Add(this.groupBox1);
this.tabPage2.Font = new System.Drawing.Font("맑은 고딕", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.tabPage2.Location = new System.Drawing.Point(4, 29);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Size = new System.Drawing.Size(606, 514);
this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "간편설정";
this.tabPage2.UseVisualStyleBackColor = true;
//
// groupBox2
//
this.groupBox2.Controls.Add(this.button10);
this.groupBox2.Controls.Add(this.btDetectPrintR);
this.groupBox2.Controls.Add(this.btDetectPrintL);
this.groupBox2.Controls.Add(this.btCartDetR);
this.groupBox2.Controls.Add(this.btCartDetL);
this.groupBox2.Controls.Add(this.btCartDetC);
this.groupBox2.Controls.Add(this.btdoorr3);
this.groupBox2.Controls.Add(this.btdoorr1);
this.groupBox2.Controls.Add(this.btdoorf3);
this.groupBox2.Controls.Add(this.btdoorr2);
this.groupBox2.Controls.Add(this.btdoorf1);
this.groupBox2.Controls.Add(this.btdoorf2);
this.groupBox2.Font = new System.Drawing.Font("맑은 고딕", 13F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.groupBox2.Location = new System.Drawing.Point(10, 329);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(580, 177);
this.groupBox2.TabIndex = 2;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "센서 사용";
//
// btDetectPrintR
//
this.btDetectPrintR.Font = new System.Drawing.Font("맑은 고딕", 10F, System.Drawing.FontStyle.Bold);
this.btDetectPrintR.Location = new System.Drawing.Point(466, 32);
this.btDetectPrintR.Name = "btDetectPrintR";
this.btDetectPrintR.Size = new System.Drawing.Size(100, 43);
this.btDetectPrintR.TabIndex = 24;
this.btDetectPrintR.Text = "인쇄감지-R";
this.btDetectPrintR.UseVisualStyleBackColor = true;
this.btDetectPrintR.Click += new System.EventHandler(this.btDetectPrintR_Click);
//
// btDetectPrintL
//
this.btDetectPrintL.Font = new System.Drawing.Font("맑은 고딕", 10F, System.Drawing.FontStyle.Bold);
this.btDetectPrintL.Location = new System.Drawing.Point(365, 32);
this.btDetectPrintL.Name = "btDetectPrintL";
this.btDetectPrintL.Size = new System.Drawing.Size(100, 43);
this.btDetectPrintL.TabIndex = 23;
this.btDetectPrintL.Text = "인쇄감지-L";
this.btDetectPrintL.UseVisualStyleBackColor = true;
this.btDetectPrintL.Click += new System.EventHandler(this.btDetectPrintL_Click);
//
// btCartDetR
//
this.btCartDetR.Font = new System.Drawing.Font("맑은 고딕", 10F, System.Drawing.FontStyle.Bold);
this.btCartDetR.Location = new System.Drawing.Point(219, 122);
this.btCartDetR.Name = "btCartDetR";
this.btCartDetR.Size = new System.Drawing.Size(100, 43);
this.btCartDetR.TabIndex = 20;
this.btCartDetR.Text = "카트감지(R)";
this.btCartDetR.UseVisualStyleBackColor = true;
this.btCartDetR.Click += new System.EventHandler(this.button5_Click);
//
// btCartDetL
//
this.btCartDetL.Font = new System.Drawing.Font("맑은 고딕", 10F, System.Drawing.FontStyle.Bold);
this.btCartDetL.Location = new System.Drawing.Point(16, 122);
this.btCartDetL.Name = "btCartDetL";
this.btCartDetL.Size = new System.Drawing.Size(100, 43);
this.btCartDetL.TabIndex = 21;
this.btCartDetL.Text = "카트감지(L)";
this.btCartDetL.UseVisualStyleBackColor = true;
this.btCartDetL.Click += new System.EventHandler(this.button6_Click_1);
//
// btCartDetC
//
this.btCartDetC.Font = new System.Drawing.Font("맑은 고딕", 10F, System.Drawing.FontStyle.Bold);
this.btCartDetC.Location = new System.Drawing.Point(118, 122);
this.btCartDetC.Name = "btCartDetC";
this.btCartDetC.Size = new System.Drawing.Size(100, 43);
this.btCartDetC.TabIndex = 22;
this.btCartDetC.Text = "카트감지(C)";
this.btCartDetC.UseVisualStyleBackColor = true;
this.btCartDetC.Click += new System.EventHandler(this.button7_Click);
//
// btdoorr3
//
this.btdoorr3.Font = new System.Drawing.Font("맑은 고딕", 10F, System.Drawing.FontStyle.Bold);
this.btdoorr3.Location = new System.Drawing.Point(219, 32);
this.btdoorr3.Name = "btdoorr3";
this.btdoorr3.Size = new System.Drawing.Size(100, 43);
this.btdoorr3.TabIndex = 19;
this.btdoorr3.Text = "DOOR-R3";
this.btdoorr3.UseVisualStyleBackColor = true;
this.btdoorr3.Click += new System.EventHandler(this.btSafetyP3_Click);
//
// btdoorr1
//
this.btdoorr1.Font = new System.Drawing.Font("맑은 고딕", 10F, System.Drawing.FontStyle.Bold);
this.btdoorr1.Location = new System.Drawing.Point(16, 32);
this.btdoorr1.Name = "btdoorr1";
this.btdoorr1.Size = new System.Drawing.Size(100, 43);
this.btdoorr1.TabIndex = 0;
this.btdoorr1.Text = "DOOR-R1";
this.btdoorr1.UseVisualStyleBackColor = true;
this.btdoorr1.Click += new System.EventHandler(this.button2_Click_1);
//
// btdoorf3
//
this.btdoorf3.Font = new System.Drawing.Font("맑은 고딕", 10F, System.Drawing.FontStyle.Bold);
this.btdoorf3.Location = new System.Drawing.Point(219, 77);
this.btdoorf3.Name = "btdoorf3";
this.btdoorf3.Size = new System.Drawing.Size(100, 43);
this.btdoorf3.TabIndex = 2;
this.btdoorf3.Text = "DOOR-F3";
this.btdoorf3.UseVisualStyleBackColor = true;
this.btdoorf3.Click += new System.EventHandler(this.btLoaderDetect_Click);
//
// btdoorr2
//
this.btdoorr2.Font = new System.Drawing.Font("맑은 고딕", 10F, System.Drawing.FontStyle.Bold);
this.btdoorr2.Location = new System.Drawing.Point(118, 32);
this.btdoorr2.Name = "btdoorr2";
this.btdoorr2.Size = new System.Drawing.Size(100, 43);
this.btdoorr2.TabIndex = 2;
this.btdoorr2.Text = "DOOR-R2";
this.btdoorr2.UseVisualStyleBackColor = true;
this.btdoorr2.Click += new System.EventHandler(this.button4_Click);
//
// btdoorf1
//
this.btdoorf1.Font = new System.Drawing.Font("맑은 고딕", 10F, System.Drawing.FontStyle.Bold);
this.btdoorf1.Location = new System.Drawing.Point(16, 77);
this.btdoorf1.Name = "btdoorf1";
this.btdoorf1.Size = new System.Drawing.Size(100, 43);
this.btdoorf1.TabIndex = 5;
this.btdoorf1.Text = "DOOR-F1";
this.btdoorf1.UseVisualStyleBackColor = true;
this.btdoorf1.Click += new System.EventHandler(this.btSafetyCvIn_Click);
//
// btdoorf2
//
this.btdoorf2.Font = new System.Drawing.Font("맑은 고딕", 10F, System.Drawing.FontStyle.Bold);
this.btdoorf2.Location = new System.Drawing.Point(118, 77);
this.btdoorf2.Name = "btdoorf2";
this.btdoorf2.Size = new System.Drawing.Size(100, 43);
this.btdoorf2.TabIndex = 8;
this.btdoorf2.Text = "DOOR-F2";
this.btdoorf2.UseVisualStyleBackColor = true;
this.btdoorf2.Click += new System.EventHandler(this.btSafetyCvOut_Click);
//
// groupBox1
//
this.groupBox1.Controls.Add(this.button9);
this.groupBox1.Controls.Add(this.button3);
this.groupBox1.Controls.Add(this.btmag2);
this.groupBox1.Controls.Add(this.button2);
this.groupBox1.Controls.Add(this.button6);
this.groupBox1.Controls.Add(this.btPickerVac);
this.groupBox1.Controls.Add(this.btPort1);
this.groupBox1.Controls.Add(this.btmag1);
this.groupBox1.Controls.Add(this.btTWLamp);
this.groupBox1.Controls.Add(this.btBuz);
this.groupBox1.Controls.Add(this.btmag0);
this.groupBox1.Controls.Add(this.button5);
this.groupBox1.Controls.Add(this.btPort0);
this.groupBox1.Controls.Add(this.btPort2);
this.groupBox1.Controls.Add(this.btLeftVac);
this.groupBox1.Controls.Add(this.btPrintR);
this.groupBox1.Controls.Add(this.btPrintL);
this.groupBox1.Controls.Add(this.btRightVac);
this.groupBox1.Font = new System.Drawing.Font("맑은 고딕", 13F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.groupBox1.Location = new System.Drawing.Point(10, 9);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(580, 314);
this.groupBox1.TabIndex = 1;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "기능 사용";
//
// button9
//
this.button9.Location = new System.Drawing.Point(18, 30);
this.button9.Name = "button9";
this.button9.Size = new System.Drawing.Size(135, 43);
this.button9.TabIndex = 45;
this.button9.Text = "RQ자동진행";
this.button9.UseVisualStyleBackColor = true;
this.button9.Click += new System.EventHandler(this.button9_Click);
//
// button3
//
this.button3.Font = new System.Drawing.Font("맑은 고딕", 13F, System.Drawing.FontStyle.Bold);
this.button3.Location = new System.Drawing.Point(230, 99);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(124, 43);
this.button3.TabIndex = 38;
this.button3.Text = "QR검증";
this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new System.EventHandler(this.button3_Click_1);
//
// btmag2
//
this.btmag2.Location = new System.Drawing.Point(230, 246);
this.btmag2.Name = "btmag2";
this.btmag2.Size = new System.Drawing.Size(124, 43);
this.btmag2.TabIndex = 42;
this.btmag2.Text = "피커-자석";
this.btmag2.UseVisualStyleBackColor = true;
this.btmag2.Click += new System.EventHandler(this.button5_Click_1);
//
// button2
//
this.button2.Location = new System.Drawing.Point(429, 30);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(135, 43);
this.button2.TabIndex = 28;
this.button2.Text = "내부조명";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click_2);
//
// button6
//
this.button6.Font = new System.Drawing.Font("맑은 고딕", 18F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.button6.Location = new System.Drawing.Point(404, 75);
this.button6.Name = "button6";
this.button6.Size = new System.Drawing.Size(163, 49);
this.button6.TabIndex = 44;
this.button6.Text = "우측-기능";
this.button6.UseVisualStyleBackColor = true;
this.button6.Click += new System.EventHandler(this.button6_Click_3);
//
// btPickerVac
//
this.btPickerVac.Location = new System.Drawing.Point(230, 148);
this.btPickerVac.Name = "btPickerVac";
this.btPickerVac.Size = new System.Drawing.Size(124, 43);
this.btPickerVac.TabIndex = 34;
this.btPickerVac.Text = "피커-진공";
this.btPickerVac.UseVisualStyleBackColor = true;
this.btPickerVac.Click += new System.EventHandler(this.btPickerVac_Click);
//
// btPort1
//
this.btPort1.ForeColor = System.Drawing.Color.Black;
this.btPort1.Location = new System.Drawing.Point(230, 197);
this.btPort1.Name = "btPort1";
this.btPort1.Size = new System.Drawing.Size(124, 43);
this.btPort1.TabIndex = 23;
this.btPort1.Text = "피커-포트";
this.btPort1.UseVisualStyleBackColor = true;
this.btPort1.Click += new System.EventHandler(this.btPort1_Click);
//
// btmag1
//
this.btmag1.Location = new System.Drawing.Point(404, 259);
this.btmag1.Name = "btmag1";
this.btmag1.Size = new System.Drawing.Size(128, 42);
this.btmag1.TabIndex = 41;
this.btmag1.Text = "자석";
this.btmag1.UseVisualStyleBackColor = true;
this.btmag1.Click += new System.EventHandler(this.button6_Click_2);
//
// btTWLamp
//
this.btTWLamp.Location = new System.Drawing.Point(292, 30);
this.btTWLamp.Name = "btTWLamp";
this.btTWLamp.Size = new System.Drawing.Size(135, 43);
this.btTWLamp.TabIndex = 21;
this.btTWLamp.Text = "타워램프";
this.btTWLamp.UseVisualStyleBackColor = true;
this.btTWLamp.Click += new System.EventHandler(this.btTWLamp_Click);
//
// btBuz
//
this.btBuz.Location = new System.Drawing.Point(155, 30);
this.btBuz.Name = "btBuz";
this.btBuz.Size = new System.Drawing.Size(135, 43);
this.btBuz.TabIndex = 4;
this.btBuz.Text = "부저";
this.btBuz.UseVisualStyleBackColor = true;
this.btBuz.Click += new System.EventHandler(this.button6_Click);
//
// btmag0
//
this.btmag0.Location = new System.Drawing.Point(53, 261);
this.btmag0.Name = "btmag0";
this.btmag0.Size = new System.Drawing.Size(128, 42);
this.btmag0.TabIndex = 40;
this.btmag0.Text = "자석";
this.btmag0.UseVisualStyleBackColor = true;
this.btmag0.Click += new System.EventHandler(this.button7_Click_1);
//
// button5
//
this.button5.Font = new System.Drawing.Font("맑은 고딕", 18F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.button5.Location = new System.Drawing.Point(18, 77);
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(163, 49);
this.button5.TabIndex = 43;
this.button5.Text = "좌측-기능";
this.button5.UseVisualStyleBackColor = true;
this.button5.Click += new System.EventHandler(this.button5_Click_2);
//
// btPort0
//
this.btPort0.ForeColor = System.Drawing.Color.Black;
this.btPort0.Location = new System.Drawing.Point(53, 217);
this.btPort0.Name = "btPort0";
this.btPort0.Size = new System.Drawing.Size(128, 42);
this.btPort0.TabIndex = 22;
this.btPort0.Text = "포트";
this.btPort0.UseVisualStyleBackColor = true;
this.btPort0.Click += new System.EventHandler(this.btPort0_Click);
//
// btPort2
//
this.btPort2.ForeColor = System.Drawing.Color.Black;
this.btPort2.Location = new System.Drawing.Point(404, 215);
this.btPort2.Name = "btPort2";
this.btPort2.Size = new System.Drawing.Size(128, 42);
this.btPort2.TabIndex = 35;
this.btPort2.Text = "포트";
this.btPort2.UseVisualStyleBackColor = true;
this.btPort2.Click += new System.EventHandler(this.btPort2_Click);
//
// btLeftVac
//
this.btLeftVac.Location = new System.Drawing.Point(53, 173);
this.btLeftVac.Name = "btLeftVac";
this.btLeftVac.Size = new System.Drawing.Size(128, 42);
this.btLeftVac.TabIndex = 32;
this.btLeftVac.Text = "진공";
this.btLeftVac.UseVisualStyleBackColor = true;
this.btLeftVac.Click += new System.EventHandler(this.btLeftVac_Click);
//
// btPrintR
//
this.btPrintR.ForeColor = System.Drawing.Color.Black;
this.btPrintR.Location = new System.Drawing.Point(404, 127);
this.btPrintR.Name = "btPrintR";
this.btPrintR.Size = new System.Drawing.Size(128, 42);
this.btPrintR.TabIndex = 37;
this.btPrintR.Text = "프린터";
this.btPrintR.UseVisualStyleBackColor = true;
this.btPrintR.Click += new System.EventHandler(this.button3_Click);
//
// btPrintL
//
this.btPrintL.ForeColor = System.Drawing.Color.Black;
this.btPrintL.Location = new System.Drawing.Point(53, 129);
this.btPrintL.Name = "btPrintL";
this.btPrintL.Size = new System.Drawing.Size(128, 42);
this.btPrintL.TabIndex = 36;
this.btPrintL.Text = "프린터";
this.btPrintL.UseVisualStyleBackColor = true;
this.btPrintL.Click += new System.EventHandler(this.button4_Click_2);
//
// btRightVac
//
this.btRightVac.Location = new System.Drawing.Point(404, 171);
this.btRightVac.Name = "btRightVac";
this.btRightVac.Size = new System.Drawing.Size(128, 42);
this.btRightVac.TabIndex = 33;
this.btRightVac.Text = "진공";
this.btRightVac.UseVisualStyleBackColor = true;
this.btRightVac.Click += new System.EventHandler(this.btRightVac_Click);
//
// tabPage1
//
this.tabPage1.Controls.Add(this.propertyGrid1);
this.tabPage1.Location = new System.Drawing.Point(4, 29);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
this.tabPage1.Size = new System.Drawing.Size(606, 514);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "상세설정";
this.tabPage1.UseVisualStyleBackColor = true;
//
// tabPage3
//
this.tabPage3.Controls.Add(this.dataGridView1);
this.tabPage3.Controls.Add(this.statusStrip2);
this.tabPage3.Controls.Add(this.toolStrip1);
this.tabPage3.Location = new System.Drawing.Point(4, 29);
this.tabPage3.Name = "tabPage3";
this.tabPage3.Size = new System.Drawing.Size(606, 514);
this.tabPage3.TabIndex = 2;
this.tabPage3.Text = "언어설정";
this.tabPage3.UseVisualStyleBackColor = true;
//
// dataGridView1
//
this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.AutoGenerateColumns = false;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.keyDataGridViewTextBoxColumn,
this.valueDataGridViewTextBoxColumn});
this.dataGridView1.DataSource = this.bsLang;
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView1.Location = new System.Drawing.Point(0, 25);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(606, 467);
this.dataGridView1.TabIndex = 2;
//
// keyDataGridViewTextBoxColumn
//
this.keyDataGridViewTextBoxColumn.DataPropertyName = "Key";
this.keyDataGridViewTextBoxColumn.HeaderText = "Key";
this.keyDataGridViewTextBoxColumn.Name = "keyDataGridViewTextBoxColumn";
//
// valueDataGridViewTextBoxColumn
//
this.valueDataGridViewTextBoxColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.valueDataGridViewTextBoxColumn.DataPropertyName = "Value";
this.valueDataGridViewTextBoxColumn.HeaderText = "Value";
this.valueDataGridViewTextBoxColumn.Name = "valueDataGridViewTextBoxColumn";
//
// bsLang
//
this.bsLang.DataMember = "language";
this.bsLang.DataSource = this.dataSet1;
//
// dataSet1
//
this.dataSet1.DataSetName = "DataSet1";
this.dataSet1.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
//
// statusStrip2
//
this.statusStrip2.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.lbFile});
this.statusStrip2.Location = new System.Drawing.Point(0, 492);
this.statusStrip2.Name = "statusStrip2";
this.statusStrip2.Size = new System.Drawing.Size(606, 22);
this.statusStrip2.TabIndex = 1;
this.statusStrip2.Text = "statusStrip2";
//
// lbFile
//
this.lbFile.Name = "lbFile";
this.lbFile.Size = new System.Drawing.Size(17, 17);
this.lbFile.Text = "--";
//
// toolStrip1
//
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripButton1,
this.toolStripButton3,
this.toolStripButton4,
this.toolStripButton2});
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(606, 25);
this.toolStrip1.TabIndex = 0;
this.toolStrip1.Text = "toolStrip1";
//
// toolStripButton1
//
this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image")));
this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton1.Name = "toolStripButton1";
this.toolStripButton1.Size = new System.Drawing.Size(75, 22);
this.toolStripButton1.Text = "신규생성";
this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click);
//
// toolStripButton3
//
this.toolStripButton3.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton3.Image")));
this.toolStripButton3.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton3.Name = "toolStripButton3";
this.toolStripButton3.Size = new System.Drawing.Size(75, 22);
this.toolStripButton3.Text = "새로고침";
this.toolStripButton3.Click += new System.EventHandler(this.toolStripButton3_Click);
//
// toolStripButton4
//
this.toolStripButton4.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.toolStripButton4.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton4.Image")));
this.toolStripButton4.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton4.Name = "toolStripButton4";
this.toolStripButton4.Size = new System.Drawing.Size(51, 22);
this.toolStripButton4.Text = "적용";
this.toolStripButton4.Click += new System.EventHandler(this.toolStripButton4_Click);
//
// toolStripButton2
//
this.toolStripButton2.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.toolStripButton2.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton2.Image")));
this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton2.Name = "toolStripButton2";
this.toolStripButton2.Size = new System.Drawing.Size(51, 22);
this.toolStripButton2.Text = "저장";
this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click);
//
// tabPage4
//
this.tabPage4.Controls.Add(this.button4);
this.tabPage4.Controls.Add(this.button8);
this.tabPage4.Controls.Add(this.button7);
this.tabPage4.Location = new System.Drawing.Point(4, 29);
this.tabPage4.Name = "tabPage4";
this.tabPage4.Size = new System.Drawing.Size(606, 514);
this.tabPage4.TabIndex = 3;
this.tabPage4.Text = "기타";
this.tabPage4.UseVisualStyleBackColor = true;
//
// button4
//
this.button4.Location = new System.Drawing.Point(21, 142);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(189, 43);
this.button4.TabIndex = 46;
this.button4.Text = "ZPL 열기";
this.button4.UseVisualStyleBackColor = true;
this.button4.Click += new System.EventHandler(this.button4_Click_3);
//
// button8
//
this.button8.Location = new System.Drawing.Point(21, 81);
this.button8.Name = "button8";
this.button8.Size = new System.Drawing.Size(189, 43);
this.button8.TabIndex = 45;
this.button8.Text = "SID 정보 테이블 열기";
this.button8.UseVisualStyleBackColor = true;
this.button8.Click += new System.EventHandler(this.button8_Click);
//
// button7
//
this.button7.Location = new System.Drawing.Point(21, 21);
this.button7.Name = "button7";
this.button7.Size = new System.Drawing.Size(189, 43);
this.button7.TabIndex = 44;
this.button7.Text = "SID 변환 테이블 열기";
this.button7.UseVisualStyleBackColor = true;
this.button7.Click += new System.EventHandler(this.button7_Click_2);
//
// bsRecipient
//
this.bsRecipient.DataMember = "MailRecipient";
this.bsRecipient.DataSource = this.dataSet1;
//
// bsMailForm
//
this.bsMailForm.DataMember = "MailFormat";
this.bsMailForm.DataSource = this.dataSet1;
//
// errorProvider1
//
this.errorProvider1.ContainerControl = this;
//
// button10
//
this.button10.Font = new System.Drawing.Font("맑은 고딕", 10F, System.Drawing.FontStyle.Bold);
this.button10.Location = new System.Drawing.Point(365, 77);
this.button10.Name = "button10";
this.button10.Size = new System.Drawing.Size(201, 43);
this.button10.TabIndex = 25;
this.button10.Text = "안전위치(X축 중앙감지)";
this.button10.UseVisualStyleBackColor = true;
this.button10.Click += new System.EventHandler(this.button10_Click);
//
// fSetting
//
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(614, 610);
this.Controls.Add(this.tabControl1);
this.Controls.Add(this.panel1);
this.Font = new System.Drawing.Font("맑은 고딕", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.KeyPreview = true;
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "fSetting";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "프로그램 설정";
this.Load += new System.EventHandler(this.@__Load);
this.panel1.ResumeLayout(false);
this.tabControl1.ResumeLayout(false);
this.tabPage2.ResumeLayout(false);
this.groupBox2.ResumeLayout(false);
this.groupBox1.ResumeLayout(false);
this.tabPage1.ResumeLayout(false);
this.tabPage3.ResumeLayout(false);
this.tabPage3.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.bsLang)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dataSet1)).EndInit();
this.statusStrip2.ResumeLayout(false);
this.statusStrip2.PerformLayout();
this.toolStrip1.ResumeLayout(false);
this.toolStrip1.PerformLayout();
this.tabPage4.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.bsRecipient)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.bsMailForm)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.errorProvider1)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.PropertyGrid propertyGrid1;
private System.Windows.Forms.TabControl tabControl1;
private System.Windows.Forms.TabPage tabPage1;
private System.Windows.Forms.BindingSource bsLang;
private DataSet1 dataSet1;
private System.Windows.Forms.TabPage tabPage2;
private System.Windows.Forms.ToolTip toolTip1;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Button btdoorr2;
private System.Windows.Forms.Button btdoorr1;
private System.Windows.Forms.Button btdoorf1;
private System.Windows.Forms.Button btBuz;
private System.Windows.Forms.TabPage tabPage3;
private System.Windows.Forms.StatusStrip statusStrip2;
private System.Windows.Forms.ToolStrip toolStrip1;
private System.Windows.Forms.ToolStripButton toolStripButton1;
private System.Windows.Forms.ToolStripButton toolStripButton2;
private System.Windows.Forms.ToolStripStatusLabel lbFile;
private System.Windows.Forms.ToolStripButton toolStripButton3;
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.DataGridViewTextBoxColumn keyDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn valueDataGridViewTextBoxColumn;
private System.Windows.Forms.ToolStripButton toolStripButton4;
private System.Windows.Forms.Button btdoorf2;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.Button btdoorf3;
private System.Windows.Forms.ErrorProvider errorProvider1;
private System.Windows.Forms.Button btdoorr3;
private System.Windows.Forms.Button btTWLamp;
private System.Windows.Forms.BindingSource bsRecipient;
private System.Windows.Forms.BindingSource bsMailForm;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button btPickerVac;
private System.Windows.Forms.Button btRightVac;
private System.Windows.Forms.Button btLeftVac;
private System.Windows.Forms.Button btPort1;
private System.Windows.Forms.Button btPort0;
private System.Windows.Forms.Button btPort2;
private System.Windows.Forms.Button btPrintR;
private System.Windows.Forms.Button btPrintL;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Button btCartDetR;
private System.Windows.Forms.Button btCartDetL;
private System.Windows.Forms.Button btCartDetC;
private System.Windows.Forms.Button btmag2;
private System.Windows.Forms.Button btmag1;
private System.Windows.Forms.Button btmag0;
private System.Windows.Forms.Button btDetectPrintR;
private System.Windows.Forms.Button btDetectPrintL;
private System.Windows.Forms.Button button6;
private System.Windows.Forms.Button button5;
private System.Windows.Forms.TabPage tabPage4;
private System.Windows.Forms.Button button7;
private System.Windows.Forms.Button button8;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.Button button9;
private System.Windows.Forms.Button button10;
}
}

View File

@@ -0,0 +1,481 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Project
{
public partial class fSetting : Form
{
CSetting dummySetting; //설정을 임시로 저장하고 있다가 완료시에 덮어준다.
public fSetting()
{
InitializeComponent();
//setting
dummySetting = new CSetting();
Pub.setting.CopyTo(dummySetting);
this.KeyDown += (s1, e1) =>
{
if (e1.KeyCode == Keys.Escape)
this.Close();
if (DateTime.Now > Pub.LastInputTime) Pub.LastInputTime = DateTime.Now;
};
this.MouseMove += (s1, e1) => { if (DateTime.Now > Pub.LastInputTime) Pub.LastInputTime = DateTime.Now; };
this.FormClosed += __Closed;
bsRecipient.DataSource = Pub.mailList;
bsMailForm.DataSource = Pub.mailForm;
}
private void __Closed(object sender, FormClosedEventArgs e)
{
}
private void __Load(object sender, EventArgs e)
{
this.Show();
this.propertyGrid1.SelectedObject = this.dummySetting;
this.propertyGrid1.Refresh();
//기능사용
btdoorr1.BackColor = dummySetting.Disable_safty_R0 ? Color.Tomato : Color.Lime;
btdoorr2.BackColor = dummySetting.Disable_safty_R1 ? Color.Tomato : Color.Lime;
btdoorr3.BackColor = dummySetting.Disable_safty_R2 ? Color.Tomato : Color.Lime;
btdoorf1.BackColor = dummySetting.Disable_safty_F0 ? Color.Tomato : Color.Lime;
btdoorf2.BackColor = dummySetting.Disable_safty_F1 ? Color.Tomato : Color.Lime;
btdoorf3.BackColor = dummySetting.Disable_safty_F2 ? Color.Tomato : Color.Lime;
btBuz.BackColor = dummySetting.Disable_Buzzer == false ? Color.Lime : Color.Tomato;
this.btTWLamp.BackColor = dummySetting.Disable_TowerLamp ? Color.Tomato : Color.Lime;
this.button2.BackColor = dummySetting.Disable_RoomLight == true ? Color.Tomato : Color.Lime;
//진공사용여부
this.btLeftVac.BackColor = dummySetting.Disable_PLVac ? Color.Tomato : Color.Lime;
this.btRightVac.BackColor = dummySetting.Disable_PRVac ? Color.Tomato : Color.Lime;
this.btPickerVac.BackColor = dummySetting.Disable_PKVac ? Color.Tomato : Color.Lime;
//포트사용여부
this.btPort0.BackColor = dummySetting.Disable_Port0 ? Color.Tomato : Color.Lime;
this.btPort1.BackColor = dummySetting.Disable_Port1 ? Color.Tomato : Color.Lime;
this.btPort2.BackColor = dummySetting.Disable_Port2 ? Color.Tomato : Color.Lime;
//프린터사용여부
this.btPrintL.BackColor = dummySetting.Disable_PrinterL ? Color.Tomato : Color.Lime;
this.btPrintR.BackColor = dummySetting.Disable_PrinterR ? Color.Tomato : Color.Lime;
//언로더QR검증
this.button3.BackColor = dummySetting.Enable_Unloader_QRValidation ? Color.Lime : Color.Tomato;
//카드감지센서
this.btCartDetL.BackColor = dummySetting.Detect_CartL ? Color.Lime : Color.Tomato;
this.btCartDetC.BackColor = dummySetting.Detect_CartC ? Color.Lime : Color.Tomato;
this.btCartDetR.BackColor = dummySetting.Detect_CartR ? Color.Lime : Color.Tomato;
//마그넷사용
this.btmag0.BackColor = dummySetting.Enable_Magnet0 ? Color.Lime : Color.Tomato;
this.btmag1.BackColor = dummySetting.Enable_Magnet1 ? Color.Lime : Color.Tomato;
this.btmag2.BackColor = dummySetting.Enable_Magnet2 ? Color.Lime : Color.Tomato;
//인쇄용지감지
this.btDetectPrintL.BackColor = dummySetting.Detect_PrintL ? Color.Lime : Color.Tomato;
this.btDetectPrintR.BackColor = dummySetting.Detect_PrintR ? Color.Lime : Color.Tomato;
//기능사용
this.button5.BackColor = dummySetting.Disable_Left==false ? Color.Lime : Color.Tomato;
this.button6.BackColor = dummySetting.Disable_Right == false ? Color.Lime : Color.Tomato;
this.button9.BackColor = dummySetting.Enable_RQAuto ? Color.Lime : Color.Tomato;
button10.BackColor = dummySetting.Detect_CenterSafty == false ? Color.Tomato : Color.Lime;
lbFile.Text = Lang.FileName;
}
private void button1_Click(object sender, EventArgs e)
{
var f = new Dialog.fPassword();
if (f.ShowDialog() != DialogResult.OK) return;
var pass = f.tbInput.Text;
if (pass != this.dummySetting.Password_Setup)
{
Util.MsgE("Password incorrect");
return;
}
this.Invalidate();
var chTable = Pub.userList.GetChanges();
if (chTable != null)
{
string fn = AppDomain.CurrentDomain.BaseDirectory + "users.xml";
Pub.userList.WriteXml(fn, true);
Pub.userList.AcceptChanges();
}
bsRecipient.EndEdit();
this.Validate();
var recpTable = Pub.mailList.GetChanges();
if (recpTable != null)
{
string fn = AppDomain.CurrentDomain.BaseDirectory + "mailList.xml";
Pub.mailList.WriteXml(fn, true);
Pub.mailList.AcceptChanges();
}
bsMailForm.EndEdit();
var formTable = Pub.mailForm.GetChanges();
if (formTable != null)
{
string fn = AppDomain.CurrentDomain.BaseDirectory + "mailForm.xml";
Pub.mailForm.WriteXml(fn, true);
Pub.mailForm.AcceptChanges();
}
try
{
dummySetting.CopyTo(Pub.setting);
Pub.setting.Save();
Pub.log.AddI("Setting Save");
Pub.log.Add(Pub.setting.ToString());
}
catch (Exception ex)
{
Pub.log.AddE("Setting Save Error:" + ex.Message);
Util.MsgE("Error\n" + ex.Message + "\n\n다시 시도하세요");
}
//Pub.flag.set(eFlag.TestRun, btLoaderDetect.BackColor == Color.Lime);
DialogResult = DialogResult.OK;
}
private void button2_Click(object sender, EventArgs e)
{
var f = new Dialog.fPassword();
if (f.ShowDialog() != DialogResult.OK) return;
var pass = f.tbInput.Text;
if (pass == this.dummySetting.Password_Setup)
{
Pub.log.AddAT("Master Login");
//this.dataGridView1.Enabled = true;
}
else
{
Util.MsgE("Password incorrect");
}
}
private void button6_Click(object sender, EventArgs e)
{
dummySetting.Disable_Buzzer = !dummySetting.Disable_Buzzer;
btBuz.BackColor = dummySetting.Disable_Buzzer ? Color.Tomato : Color.Lime;
}
private void toolStripButton1_Click(object sender, EventArgs e)
{
var langfile = Lang.FileName;
Lang.CreateFile();
Util.MsgI("다음 파일이 생성되었습니다.\n\n" + langfile);
}
private void toolStripButton3_Click(object sender, EventArgs e)
{
var langfile = Lang.FileName;
if (System.IO.File.Exists(langfile) == false)
{
Util.MsgE("언어파일이 없습니다\n" + langfile);
return;
}
arUtil.INIHelper ini = new arUtil.INIHelper();
ini.Load(langfile);
this.dataSet1.language.Clear();
foreach (var item in ini.GetItemList("lang").OrderBy(t => t.Key))
{
this.dataSet1.language.Rows.Add(new string[] {
"lang",
item.Key,
item.Value.Replace("\n","\\n"),
});
}
this.dataSet1.language.AcceptChanges();
}
private void toolStripButton2_Click(object sender, EventArgs e)
{
var file = Lang.FileName;
var ini = new arUtil.INIHelper(file);
this.bsLang.EndEdit();
this.dataSet1.language.AcceptChanges();
foreach (DataSet1.languageRow dr in dataSet1.language.Rows)
{
if (dr.Key == "") continue;
ini.set_Data("lang", dr.Key, dr.Value);
}
ini.Flush();
Util.MsgE("다음 파일에 저장되었습니다.\n\n" + file);
}
private void toolStripButton4_Click(object sender, EventArgs e)
{
//적용
var file = new System.IO.FileInfo(Lang.FileName);
var langname = file.Name.Replace(file.Extension, "");
Lang.Loading(langname);
}
private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
{
if (this.tabControl1.SelectedIndex == 2)
{
if (this.dataSet1.language.Rows.Count < 1)
toolStripButton3.PerformClick();
}
}
private void btTWLamp_Click(object sender, EventArgs e)
{
var but = sender as Button;
dummySetting.Disable_TowerLamp = !dummySetting.Disable_TowerLamp;
but.BackColor = dummySetting.Disable_TowerLamp ? Color.Tomato : Color.Lime;
}
private void button2_Click_2(object sender, EventArgs e)
{
var but = sender as Button;
dummySetting.Disable_RoomLight = !dummySetting.Disable_RoomLight;
but.BackColor = dummySetting.Disable_RoomLight == true ? Color.Tomato : Color.Lime;
}
private void button4_Click_1(object sender, EventArgs e)
{
var but = sender as Button;
dummySetting.Disable_SidQtyCheck = !dummySetting.Disable_SidQtyCheck;
but.BackColor = dummySetting.Disable_SidQtyCheck == true ? Color.Tomato : Color.Lime;
}
private void button2_Click_1(object sender, EventArgs e)
{
var but = sender as Button;
dummySetting.Disable_safty_R0 = !dummySetting.Disable_safty_R0;
but.BackColor = dummySetting.Disable_safty_R0 ? Color.Tomato : Color.Lime;
}
private void button4_Click(object sender, EventArgs e)
{
var but = sender as Button;
dummySetting.Disable_safty_R1 = !dummySetting.Disable_safty_R1;
but.BackColor = dummySetting.Disable_safty_R1 ? Color.Tomato : Color.Lime;
}
private void btSafetyP3_Click(object sender, EventArgs e)
{
var but = sender as Button;
dummySetting.Disable_safty_R2 = !dummySetting.Disable_safty_R2;
but.BackColor = dummySetting.Disable_safty_R2 ? Color.Tomato : Color.Lime;
}
private void btSafetyCvIn_Click(object sender, EventArgs e)
{
var but = sender as Button;
dummySetting.Disable_safty_F0 = !dummySetting.Disable_safty_F0;
but.BackColor = dummySetting.Disable_safty_F0 ? Color.Tomato : Color.Lime;
}
private void btSafetyCvOut_Click(object sender, EventArgs e)
{
var but = sender as Button;
dummySetting.Disable_safty_F1 = !dummySetting.Disable_safty_F1;
but.BackColor = dummySetting.Disable_safty_F1 ? Color.Tomato : Color.Lime;
}
private void btLoaderDetect_Click(object sender, EventArgs e)
{
var but = sender as Button;
dummySetting.Disable_safty_F2 = !dummySetting.Disable_safty_F2;
but.BackColor = dummySetting.Disable_safty_F2 ? Color.Tomato : Color.Lime;
}
private void btLeftVac_Click(object sender, EventArgs e)
{
var but = sender as Button;
dummySetting.Disable_PLVac = !dummySetting.Disable_PLVac;
but.BackColor = dummySetting.Disable_PLVac ? Color.Tomato : Color.Lime;
}
private void btRightVac_Click(object sender, EventArgs e)
{
var but = sender as Button;
dummySetting.Disable_PRVac = !dummySetting.Disable_PRVac;
but.BackColor = dummySetting.Disable_PRVac ? Color.Tomato : Color.Lime;
}
private void btPickerVac_Click(object sender, EventArgs e)
{
var but = sender as Button;
dummySetting.Disable_PKVac = !dummySetting.Disable_PKVac;
but.BackColor = dummySetting.Disable_PKVac ? Color.Tomato : Color.Lime;
}
private void btPort0_Click(object sender, EventArgs e)
{
var but = sender as Button;
dummySetting.Disable_Port0 = !dummySetting.Disable_Port0;
but.BackColor = dummySetting.Disable_Port0 ? Color.Tomato : Color.Lime;
}
private void btPort1_Click(object sender, EventArgs e)
{
var but = sender as Button;
dummySetting.Disable_Port1 = !dummySetting.Disable_Port1;
but.BackColor = dummySetting.Disable_Port1 ? Color.Tomato : Color.Lime;
}
private void btPort2_Click(object sender, EventArgs e)
{
var but = sender as Button;
dummySetting.Disable_Port2 = !dummySetting.Disable_Port2;
but.BackColor = dummySetting.Disable_Port2 ? Color.Tomato : Color.Lime;
}
private void button4_Click_2(object sender, EventArgs e)
{
var but = sender as Button;
dummySetting.Disable_PrinterL = !dummySetting.Disable_PrinterL;
but.BackColor = dummySetting.Disable_PrinterL ? Color.Tomato : Color.Lime;
}
private void button3_Click(object sender, EventArgs e)
{
var but = sender as Button;
dummySetting.Disable_PrinterR = !dummySetting.Disable_PrinterR;
but.BackColor = dummySetting.Disable_PrinterR ? Color.Tomato : Color.Lime;
}
private void button3_Click_1(object sender, EventArgs e)
{
var but = sender as Button;
dummySetting.Enable_Unloader_QRValidation = !dummySetting.Enable_Unloader_QRValidation;
but.BackColor = dummySetting.Enable_Unloader_QRValidation == false ? Color.Tomato : Color.Lime;
}
private void button6_Click_1(object sender, EventArgs e)
{
//카트감지l
var but = sender as Button;
dummySetting.Detect_CartL = !dummySetting.Detect_CartL;
but.BackColor = dummySetting.Detect_CartL == false ? Color.Tomato : Color.Lime;
}
private void button7_Click(object sender, EventArgs e)
{
//카드감지c
var but = sender as Button;
dummySetting.Detect_CartC = !dummySetting.Detect_CartC;
but.BackColor = dummySetting.Detect_CartC == false ? Color.Tomato : Color.Lime;
}
private void button5_Click(object sender, EventArgs e)
{
//카트감지r
var but = sender as Button;
dummySetting.Detect_CartR = !dummySetting.Detect_CartR;
but.BackColor = dummySetting.Detect_CartR == false ? Color.Tomato : Color.Lime;
}
private void button7_Click_1(object sender, EventArgs e)
{
var but = sender as Button;
dummySetting.Enable_Magnet0 = !dummySetting.Enable_Magnet0;
but.BackColor = dummySetting.Enable_Magnet0 == false ? Color.Tomato : Color.Lime;
}
private void button6_Click_2(object sender, EventArgs e)
{
var but = sender as Button;
dummySetting.Enable_Magnet1 = !dummySetting.Enable_Magnet1;
but.BackColor = dummySetting.Enable_Magnet1 == false ? Color.Tomato : Color.Lime;
}
private void button5_Click_1(object sender, EventArgs e)
{
var but = sender as Button;
dummySetting.Enable_Magnet2 = !dummySetting.Enable_Magnet2;
but.BackColor = dummySetting.Enable_Magnet2 == false ? Color.Tomato : Color.Lime;
}
private void btDetectPrintL_Click(object sender, EventArgs e)
{
var but = sender as Button;
dummySetting.Detect_PrintL = !dummySetting.Detect_PrintL;
but.BackColor = dummySetting.Detect_PrintL == false ? Color.Tomato : Color.Lime;
}
private void btDetectPrintR_Click(object sender, EventArgs e)
{
var but = sender as Button;
dummySetting.Detect_PrintR = !dummySetting.Detect_PrintR;
but.BackColor = dummySetting.Detect_PrintR == false ? Color.Tomato : Color.Lime;
}
private void button5_Click_2(object sender, EventArgs e)
{
//기능-좌
var but = sender as Button;
dummySetting.Disable_Left = !dummySetting.Disable_Left;
but.BackColor = dummySetting.Disable_Left == true ? Color.Tomato : Color.Lime;
}
private void button6_Click_3(object sender, EventArgs e)
{
//기능-우
var but = sender as Button;
dummySetting.Disable_Right = !dummySetting.Disable_Right;
but.BackColor = dummySetting.Disable_Right == true ? Color.Tomato : Color.Lime;
}
private void button7_Click_2(object sender, EventArgs e)
{
var f = new Dialog.fImportSIDConv();
f.ShowDialog();
}
private void button8_Click(object sender, EventArgs e)
{
var f = new Dialog.fImportSIDInfo();
f.ShowDialog();
}
private void button4_Click_3(object sender, EventArgs e)
{
var fn = System.IO.Path.Combine(Util.CurrentPath, "zpl.txt");
Util.RunExplorer(fn);
}
private void button9_Click(object sender, EventArgs e)
{
dummySetting.Enable_RQAuto = !dummySetting.Enable_RQAuto;
btBuz.BackColor = dummySetting.Enable_RQAuto == false ? Color.Tomato : Color.Lime;
}
private void button10_Click(object sender, EventArgs e)
{
var but = sender as Button;
dummySetting.Detect_CenterSafty = !dummySetting.Detect_CenterSafty;
but.BackColor = dummySetting.Detect_CenterSafty == false ? Color.Tomato : Color.Lime;
}
}
}

File diff suppressed because it is too large Load Diff