영문화완료
This commit is contained in:
@@ -73,8 +73,8 @@ namespace Project
|
||||
/// <summary>
|
||||
/// database manager
|
||||
/// </summary>
|
||||
//public static Manager.DatabaseManagerHistory dbmHistory; //트레이기록(날짜기준)
|
||||
public static Manager.DatabaseManagerCount dbmCount; //수량기록(ID기준)
|
||||
//public static Manager.DatabaseManagerHistory dbmHistory; //Tray records (by date)
|
||||
public static Manager.DatabaseManagerCount dbmCount; //Quantity records (by ID)
|
||||
public static Manager.DatabaseManagerSIDHistory dbmSidHistory;
|
||||
|
||||
//public static Manager.DataBaseMSSQL dbSQL;
|
||||
@@ -107,7 +107,7 @@ namespace Project
|
||||
//########################################################
|
||||
// DEVICE DEFINE
|
||||
//########################################################
|
||||
public static Device.CStateMachine sm; //상태머신분리 190529
|
||||
public static Device.CStateMachine sm; //State machine separation 190529
|
||||
|
||||
|
||||
public static Boolean UserAdmin { get { return true; } }
|
||||
@@ -117,7 +117,7 @@ namespace Project
|
||||
var retval = VAR.BOOL[eVarBool.Opt_DisableCamera];
|
||||
if (retval == false)
|
||||
{
|
||||
//전체옵션은 사용가능하지만 환경설정의 개별옵션이 꺼진경우에 동작안함
|
||||
//Overall option is available but doesn't work when individual option in environment settings is off
|
||||
retval = !AR.SETTING.Data.Enable_Unloader_QRValidation;
|
||||
}
|
||||
return retval;
|
||||
@@ -131,7 +131,7 @@ namespace Project
|
||||
var retval = VAR.BOOL[eVarBool.Opt_DisablePrinter];
|
||||
if (retval == false)
|
||||
{
|
||||
//전체옵션은 사용가능하지만 환경설정의 개별옵션이 꺼진경우에 동작안함
|
||||
//Overall option is available but doesn't work when individual option in environment settings is off
|
||||
if (target == eWorkPort.Left)
|
||||
retval = AR.SETTING.Data.Disable_PrinterL;
|
||||
else
|
||||
@@ -170,13 +170,13 @@ namespace Project
|
||||
// return;
|
||||
//}
|
||||
|
||||
//초기화
|
||||
//Initialize
|
||||
var rlt = PUB.Result.mModel.ReadValue(modelName);
|
||||
if (rlt && PUB.Result.mModel.isSet)
|
||||
{
|
||||
PUB.log.AddAT("모션모델선택완료 : " + PUB.Result.mModel.Title);
|
||||
PUB.log.AddAT("Motion model selection complete: " + PUB.Result.mModel.Title);
|
||||
|
||||
//사용한 모델이름을 저장함
|
||||
//Save the model name used
|
||||
if (SETTING.User.LastModelM != PUB.Result.mModel.Title)
|
||||
{
|
||||
SETTING.User.LastModelM = PUB.Result.mModel.Title;
|
||||
@@ -186,7 +186,7 @@ namespace Project
|
||||
}
|
||||
else
|
||||
{
|
||||
PUB.log.AddE("모션모델선택실패(없는모델명:" + modelName + ")");
|
||||
PUB.log.AddE("Motion model selection failed (non-existent model name:" + modelName + ")");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -231,9 +231,9 @@ namespace Project
|
||||
// return;
|
||||
//}
|
||||
|
||||
//초기화
|
||||
//Initialize
|
||||
PUB.Result.vModel.Title = string.Empty;
|
||||
PUB.PrinterL.ZPLFileName = "zpl.txt"; //기본파일로 설정
|
||||
PUB.PrinterL.ZPLFileName = "zpl.txt"; //Set as default file
|
||||
PUB.PrinterR.ZPLFileName = "zpl.txt";
|
||||
|
||||
var modelVision = PUB.mdm.GetDataV(modelName);
|
||||
@@ -241,9 +241,9 @@ namespace Project
|
||||
{
|
||||
var mv = PUB.Result.vModel;
|
||||
mv.ReadValue(modelVision); //Util.CopyData(model, Pub.Result.vModel);
|
||||
PUB.log.AddAT("작업모델선택완료 : " + mv.Title);
|
||||
PUB.log.AddAT("Work model selection complete: " + mv.Title);
|
||||
|
||||
//선택한 모델을 저장함
|
||||
//Save the selected model
|
||||
if (SETTING.User.LastModelV != mv.Title)
|
||||
{
|
||||
SETTING.User.LastModelV = mv.Title;
|
||||
@@ -254,7 +254,7 @@ namespace Project
|
||||
PUB.Result.BCDIgnorePattern = PUB.GetPatterns(modelName, true);
|
||||
PUB.Result.BCDPrintPattern = PUB.GetPrintPatterns(); //220902
|
||||
|
||||
PUB.log.Add($"모델패턴로딩:{PUB.Result.BCDPattern.Count}/{PUB.Result.BCDIgnorePattern.Count}");
|
||||
PUB.log.Add($"Model pattern loading:{PUB.Result.BCDPattern.Count}/{PUB.Result.BCDIgnorePattern.Count}");
|
||||
if (modelVision.Code.isEmpty())
|
||||
{
|
||||
//PUB.Result.CustCode = string.Empty;
|
||||
@@ -269,10 +269,10 @@ namespace Project
|
||||
VAR.STR[eVarString.JOB_CUSTOMER_CODE] = custcode;
|
||||
}
|
||||
|
||||
//모든 저장된 바코드를 삭제한ㄷ.
|
||||
//Delete all saved barcodes
|
||||
PUB.Result.ItemDataC.Clear("SELCTMODEL");
|
||||
|
||||
//바코드설정파일 업데이트
|
||||
//Update barcode configuration file
|
||||
if (bUploadConfig)
|
||||
{
|
||||
//SAVE
|
||||
@@ -287,16 +287,16 @@ namespace Project
|
||||
{
|
||||
PUB.PrinterL.ZPLFileName = fn;
|
||||
PUB.PrinterR.ZPLFileName = fn;
|
||||
PUB.log.AddI($"전용 ZPL 설정 {fn}");
|
||||
PUB.log.AddI($"Dedicated ZPL settings {fn}");
|
||||
}
|
||||
else
|
||||
{
|
||||
PUB.log.AddE($"전용 ZPL파일이 없습니다 {fn}");
|
||||
PUB.log.AddE($"No dedicated ZPL file {fn}");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
PUB.log.AddI($"공용 ZPL파일을 사용합니다");
|
||||
PUB.log.AddI($"Using shared ZPL file");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@@ -304,7 +304,7 @@ namespace Project
|
||||
{
|
||||
//PUB.Result.CustCode = string.Empty;
|
||||
VAR.STR[eVarString.JOB_CUSTOMER_CODE] = string.Empty;
|
||||
PUB.log.AddE("모델선택실패(없는모델명:" + modelName + ")");
|
||||
PUB.log.AddE("Model selection failed (non-existent model name:" + modelName + ")");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -316,13 +316,13 @@ namespace Project
|
||||
{
|
||||
var tagstr = keyence?.Tag ?? string.Empty;
|
||||
|
||||
PUB.log.AddAT($"바코드({tagstr})가 연결되지 않아 설정 파일을 업로드하지 않습니다." +
|
||||
"신규 작업 시작시 해당 정보는 재 전송 됩니다." +
|
||||
$"{(tagstr == "F" ? "좌" : "우")}측하단의 바코드 연결을 확인 후 모델을 선택하시면 이 오류가 발생되지 않습니다");
|
||||
PUB.log.AddAT($"Barcode ({tagstr}) is not connected, configuration file will not be uploaded." +
|
||||
"This information will be retransmitted when starting a new job." +
|
||||
$"This error will not occur if you select the model after checking the barcode connection at the {(tagstr == "F" ? "left" : "right")} bottom.");
|
||||
return false;
|
||||
}
|
||||
|
||||
//바코드설정파일 입력
|
||||
//Input barcode configuration file
|
||||
var mv = PUB.Result.vModel;
|
||||
var configfilenameB = mv.Title;
|
||||
if (configfilenameB.isEmpty()) configfilenameB = mv.Title;
|
||||
@@ -344,7 +344,7 @@ namespace Project
|
||||
|
||||
if (configfiB.Exists == false && configfiJ.Exists == false)
|
||||
{
|
||||
PUB.log.AddAT($"바코드({keyence.Tag}) 설정파일({configfiB.Name})이 없습니다");
|
||||
PUB.log.AddAT($"Barcode({keyence.Tag}) configuration file({configfiB.Name}) not found");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -360,14 +360,14 @@ namespace Project
|
||||
|
||||
var fn = configfiJ.Exists ? configfiJ.FullName : configfiB.FullName;
|
||||
var upOk = ftp.Upload(UPFileName, fn);
|
||||
if (upOk == false) PUB.log.AddE($"바코드({keyence.Tag}) 설정파일 업로드 실패");
|
||||
else PUB.log.AddI($"바코드({keyence.Tag}) 설정파일 업로드 완료({fn})");
|
||||
if (upOk == false) PUB.log.AddE($"Barcode({keyence.Tag}) configuration file upload failed");
|
||||
else PUB.log.AddI($"Barcode({keyence.Tag}) configuration file upload completed({fn})");
|
||||
if (keyence.IsConnect) keyence.Trigger(true);
|
||||
return true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
PUB.log.AddE($"바코드({keyence.Tag}) FTP전송 실패:{ex.Message}");
|
||||
PUB.log.AddE($"Barcode({keyence.Tag}) FTP transfer failed:{ex.Message}");
|
||||
}
|
||||
}
|
||||
return false;
|
||||
@@ -386,13 +386,13 @@ namespace Project
|
||||
|
||||
//기존 SID정보에서 데이터를 취합니다.
|
||||
var mc = AR.SETTING.Data.McName;
|
||||
PUB.log.AddAT($"환경설정에서 ECS SKIP이 되었습니다 기존 정보에서 데이터를 생성합니다 MC={mc}");
|
||||
PUB.log.AddAT($"ECS SKIP is set in configuration. Data will be generated from existing information MC={mc}");
|
||||
using (var tainfo = new DataSet1TableAdapters.K4EE_Component_Reel_SID_InformationTableAdapter())
|
||||
{
|
||||
var cntd = tainfo.DeleteAll("IB");
|
||||
PUB.log.AddAT($"{cntd}건의 자료가 삭제됨");
|
||||
PUB.log.AddAT($"{cntd} records deleted");
|
||||
var cnti = tainfo.MakeIBData(mc);
|
||||
PUB.log.AddAT($"{cnti}건의 자료가 복제됨");
|
||||
PUB.log.AddAT($"{cnti} records duplicated");
|
||||
}
|
||||
message = "ECS-OFF 됨 장비전용 데이터로 진행 함";
|
||||
result = true;
|
||||
@@ -460,7 +460,7 @@ namespace Project
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
PUB.log.AddE("SID변환정보 확인실패\n" + ex.Message);
|
||||
PUB.log.AddE("SID conversion information check failed\n" + ex.Message);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -653,7 +653,7 @@ namespace Project
|
||||
}
|
||||
else
|
||||
{
|
||||
PUB.log.AddAT($"SId변환테이블에 자료가 없습니다");
|
||||
PUB.log.AddAT($"No data in SID conversion table");
|
||||
VAR.BOOL[eVarBool.JOB_Empty_SIDConvertInfo] = true;
|
||||
}
|
||||
|
||||
@@ -696,7 +696,7 @@ namespace Project
|
||||
var sidconvDr = sidconvlist.First();
|
||||
err = false;
|
||||
if (PUB.sm.Step == eSMStep.RUN)
|
||||
PUB.log.AddI($"[{src}] sid변환완료 {oldsid}->{sidconvDr.SIDTo}");
|
||||
PUB.log.AddI($"[{src}] SID conversion completed {oldsid}->{sidconvDr.SIDTo}");
|
||||
return sidconvDr.SIDTo;
|
||||
}
|
||||
}
|
||||
@@ -905,7 +905,7 @@ namespace Project
|
||||
//신규발행에의해 신뢰된 자료라면 원본릴아이디에 이 값을 쓴다
|
||||
if (vdata.QTY0.Equals("NONE") || vdata.QTY0.isEmpty())
|
||||
{
|
||||
PUB.log.AddAT($"릴수량(원본)값 적용(신규값적용상태):{Value}");
|
||||
PUB.log.AddAT($"Reel quantity(original) value applied(new value applied state):{Value}");
|
||||
vdata.QTY0 = Value.Trim();
|
||||
}
|
||||
}
|
||||
@@ -1251,8 +1251,8 @@ namespace Project
|
||||
iLock[i].idx = i;
|
||||
}
|
||||
|
||||
//language
|
||||
Lang.Loading(AR.SETTING.Data.Language + ".ini");
|
||||
//language - disabled (now using hardcoded English)
|
||||
// Lang.Loading(AR.SETTING.Data.Language + ".ini");
|
||||
|
||||
LoadDataTable();
|
||||
|
||||
@@ -1749,12 +1749,12 @@ namespace Project
|
||||
var val = decimal.Parse(f.tbInput.Text);
|
||||
if (val < valueCtl.Minimum)
|
||||
{
|
||||
UTIL.MsgE(string.Format("최소 입력값은 {0} 입니다.", valueCtl.Minimum));
|
||||
UTIL.MsgE(string.Format("Minimum input value is {0}.", valueCtl.Minimum));
|
||||
val = valueCtl.Minimum;
|
||||
}
|
||||
if (val > valueCtl.Maximum)
|
||||
{
|
||||
UTIL.MsgE(string.Format("최대 입력값은 {0} 입니다.", valueCtl.Maximum));
|
||||
UTIL.MsgE(string.Format("Maximum input value is {0}.", valueCtl.Maximum));
|
||||
val = valueCtl.Maximum;
|
||||
}
|
||||
valueCtl.Value = val;
|
||||
|
||||
Reference in New Issue
Block a user