프로젝트 구조 개선 및 README.md 추가
- UIControl 프로젝트 구조 변경 (CapCleaningControl → Sub/UIControl) - arAjinextek 라이브러리 통합 및 구조 개선 - 새로운 arAjinextek_Union 프로젝트 추가 - 솔루션 파일에 README.md 추가 - QR 모드에서 WMS RCV 태그 인식 기능 강화 - 데이터베이스 스키마 업데이트 및 관련 클래스 수정 - 프린터 및 바코드 장치 연동 로직 개선 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
90
Handler/Sub/UIControl/CPicker.cs
Normal file
90
Handler/Sub/UIControl/CPicker.cs
Normal file
@@ -0,0 +1,90 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace UIControl
|
||||
{
|
||||
public class CPicker
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 언로드포트 위치(L/R)
|
||||
/// </summary>
|
||||
public string PortPos { get; set; }
|
||||
/// <summary>
|
||||
/// 프린트 위치(H/L)
|
||||
/// </summary>
|
||||
public string PrintPos { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 릴이 있는 경우 해당 릴이 어느 포트에서 왔는지의 번호
|
||||
/// </summary>
|
||||
public short PortIndex { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 현재 작업이 프론트 포트의 작업인가? (portindex 값을 가지고 판단함)
|
||||
/// </summary>
|
||||
public Boolean isFrontJob
|
||||
{
|
||||
get
|
||||
{
|
||||
if (PortIndex <= 1) return true;
|
||||
else return false;
|
||||
}
|
||||
}
|
||||
|
||||
public Boolean Overload { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// VAC센서의 값을 가지고 있음, 현재 릴이 감지되었는가?
|
||||
/// </summary>
|
||||
public Boolean isReelDetect
|
||||
{
|
||||
get
|
||||
{
|
||||
return VacOutput.Where(t => t == true).Count() > 0;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// PICK후 60mm위치에서 미리 확인한 감지 상태값
|
||||
/// 이값을 가지고 도중에 떨궜을 상황을 감지한다
|
||||
/// </summary>
|
||||
public Boolean PreCheckItemOn { get; set; }
|
||||
public Boolean HasRealItemOn { get; set; }
|
||||
public Boolean ItemOn { get; set; }
|
||||
//public Boolean[] VacDetect { get; set; }
|
||||
public Boolean[] VacOutput { get; set; }
|
||||
public CPicker()
|
||||
{
|
||||
this.Overload = false;
|
||||
PortPos = "7";
|
||||
PortIndex = -1;
|
||||
HasRealItemOn = false;
|
||||
PreCheckItemOn = false;
|
||||
}
|
||||
public void Clear()
|
||||
{
|
||||
this.Overload = false;
|
||||
ItemOn = false;
|
||||
PortPos = "--";
|
||||
PortIndex = -1;
|
||||
//if(VacDetect != null && VacDetect.Length > 0)
|
||||
//{
|
||||
// for (int i = 0; i < VacDetect.Length; i++)
|
||||
// VacDetect[i] = false;
|
||||
//}
|
||||
if (VacOutput != null && VacOutput.Length > 0)
|
||||
{
|
||||
for (int i = 0; i < VacOutput.Length; i++)
|
||||
VacOutput[i] = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user