프로젝트 구조 개선 및 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:
@@ -16,7 +16,7 @@ namespace SIDConvInfoEditorII
|
||||
{
|
||||
InitializeComponent();
|
||||
PUB.init();
|
||||
this.dataSet1.Component_Reel_SID_Information.TableNewRow += Component_Reel_SID_Information_TableNewRow;
|
||||
this.dataSet1.K4EE_Component_Reel_SID_Information.TableNewRow += Component_Reel_SID_Information_TableNewRow;
|
||||
this.FormClosed += FSIDInformation_FormClosed;
|
||||
this.Text = $"{Application.ProductName} v{Application.ProductVersion}";
|
||||
this.dvC.DataError += DvC_DataError;
|
||||
@@ -44,22 +44,26 @@ namespace SIDConvInfoEditorII
|
||||
{
|
||||
this.Validate();
|
||||
this.bsC.EndEdit();
|
||||
this.taC.Update(this.dataSet1.Component_Reel_SID_Convert);
|
||||
this.taC.Update(this.dataSet1.K4EE_Component_Reel_SID_Convert);
|
||||
//this.tam.UpdateAll(this.dataSet1);
|
||||
|
||||
}
|
||||
|
||||
void SelectCombo()
|
||||
{
|
||||
//
|
||||
for (int i = 0; i < this.cmbRCode.Items.Count; i++)
|
||||
if (cmbRCode.Items.Count == 1) cmbRCode.SelectedIndex = 0;
|
||||
else
|
||||
{
|
||||
if (cmbRCode.Items[i].ToString().StartsWith($"[{PUB.setting.McName}]"))
|
||||
for (int i = 0; i < this.cmbRCode.Items.Count; i++)
|
||||
{
|
||||
cmbRCode.SelectedIndex = i;
|
||||
break;
|
||||
if (cmbRCode.Items[i].ToString().StartsWith($"[{PUB.setting.McName}]"))
|
||||
{
|
||||
cmbRCode.SelectedIndex = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
private void fSIDInformation_Load(object sender, EventArgs e)
|
||||
{
|
||||
@@ -71,7 +75,7 @@ namespace SIDConvInfoEditorII
|
||||
Refresh_SidConv();
|
||||
Refresh_SidPrintInfo();
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
this.Show();
|
||||
Application.DoEvents();
|
||||
@@ -88,7 +92,7 @@ namespace SIDConvInfoEditorII
|
||||
void Refresh_SidPrintInfo()
|
||||
{
|
||||
// TODO: 이 코드는 데이터를 'dataSet1.Component_Reel_SID_Convert' 테이블에 로드합니다. 필요 시 이 코드를 이동하거나 제거할 수 있습니다.
|
||||
this.taP.Fill(this.dataSet1.Component_Reel_Print_Information, PUB.setting.McName);
|
||||
this.taP.Fill(this.dataSet1.K4EE_Component_Reel_Print_Information, PUB.setting.McName);
|
||||
dvP.AutoResizeColumns();
|
||||
this.bnP.Enabled = true;
|
||||
}
|
||||
@@ -97,14 +101,14 @@ namespace SIDConvInfoEditorII
|
||||
void Refresh_SidConv()
|
||||
{
|
||||
// TODO: 이 코드는 데이터를 'dataSet1.Component_Reel_SID_Convert' 테이블에 로드합니다. 필요 시 이 코드를 이동하거나 제거할 수 있습니다.
|
||||
this.taC.Fill(this.dataSet1.Component_Reel_SID_Convert);//, PUB.setting.McName);
|
||||
this.taC.Fill(this.dataSet1.K4EE_Component_Reel_SID_Convert);//, PUB.setting.McName);
|
||||
dvC.AutoResizeColumns();
|
||||
this.bnC.Enabled = true;
|
||||
}
|
||||
void Refresh_SidInfo()
|
||||
{
|
||||
// TODO: 이 코드는 데이터를 'dataSet1.Component_Reel_SID_Information' 테이블에 로드합니다. 필요 시 이 코드를 이동하거나 제거할 수 있습니다.
|
||||
this.taI.Fill(this.dataSet1.Component_Reel_SID_Information, PUB.setting.McName);
|
||||
this.taI.Fill(this.dataSet1.K4EE_Component_Reel_SID_Information, PUB.setting.McName);
|
||||
dvI.AutoResizeColumns();
|
||||
this.bnI.Enabled = true;
|
||||
}
|
||||
@@ -115,7 +119,7 @@ namespace SIDConvInfoEditorII
|
||||
this.Validate();
|
||||
this.bsI.EndEdit();
|
||||
this.bsC.EndEdit();
|
||||
if (this.dataSet1.Component_Reel_SID_Information.GetChanges() != null)
|
||||
if (this.dataSet1.K4EE_Component_Reel_SID_Information.GetChanges() != null)
|
||||
{
|
||||
if (UTIL.MsgQ("새로고침을 진행하면 변경된 자료가 손실됩니다\n실행할까요?") != DialogResult.Yes) return;
|
||||
}
|
||||
@@ -177,20 +181,20 @@ namespace SIDConvInfoEditorII
|
||||
//if (cSID.isEmpty() && cCustCode.isEmpty()) break; //
|
||||
//if (cSID.StartsWith("10"))
|
||||
//{
|
||||
EnumerableRowCollection<DataSet1.Component_Reel_SID_ConvertRow> plist = null;
|
||||
plist = this.dataSet1.Component_Reel_SID_Convert.Where(t => t.SIDFrom == cSidFrom && t.SIDTo == cSidTo);
|
||||
EnumerableRowCollection<DataSet1.K4EE_Component_Reel_SID_ConvertRow> plist = null;
|
||||
plist = this.dataSet1.K4EE_Component_Reel_SID_Convert.Where(t => t.SIDFrom == cSidFrom && t.SIDTo == cSidTo);
|
||||
|
||||
if (plist == null || plist.Any() == false)
|
||||
{
|
||||
//존재하지않으면 추가한다.
|
||||
var newdr = this.dataSet1.Component_Reel_SID_Convert.NewComponent_Reel_SID_ConvertRow();
|
||||
var newdr = this.dataSet1.K4EE_Component_Reel_SID_Convert.NewK4EE_Component_Reel_SID_ConvertRow();
|
||||
newdr.MC = PUB.setting.McName;
|
||||
newdr.SIDFrom = cSidFrom;
|
||||
newdr.SIDTo = cSidTo;
|
||||
newdr.Remark = cRemark;
|
||||
newdr.Chk = true;
|
||||
newdr.wdate = DateTime.Now;
|
||||
this.dataSet1.Component_Reel_SID_Convert.AddComponent_Reel_SID_ConvertRow(newdr);
|
||||
this.dataSet1.K4EE_Component_Reel_SID_Convert.AddK4EE_Component_Reel_SID_ConvertRow(newdr);
|
||||
cntA += 1;
|
||||
}
|
||||
else
|
||||
@@ -300,17 +304,17 @@ namespace SIDConvInfoEditorII
|
||||
|
||||
//if (cSID.StartsWith("10"))
|
||||
//{
|
||||
EnumerableRowCollection<DataSet1.Component_Reel_SID_InformationRow> plist = null;
|
||||
EnumerableRowCollection<DataSet1.K4EE_Component_Reel_SID_InformationRow> plist = null;
|
||||
|
||||
if (vLot.isEmpty() == false)
|
||||
plist = this.dataSet1.Component_Reel_SID_Information.Where(t => t.SID == cSID && t.CustCode == cCustCode && t.PartNo == cPartNo && t.VenderLot == vLot);
|
||||
plist = this.dataSet1.K4EE_Component_Reel_SID_Information.Where(t => t.SID == cSID && t.CustCode == cCustCode && t.PartNo == cPartNo && t.VenderLot == vLot);
|
||||
else
|
||||
plist = this.dataSet1.Component_Reel_SID_Information.Where(t => t.SID == cSID && t.CustCode == cCustCode && t.PartNo == cPartNo);
|
||||
plist = this.dataSet1.K4EE_Component_Reel_SID_Information.Where(t => t.SID == cSID && t.CustCode == cCustCode && t.PartNo == cPartNo);
|
||||
|
||||
if (plist == null || plist.Any() == false)
|
||||
{
|
||||
//존재하지않으면 추가한다.
|
||||
var newdr = this.dataSet1.Component_Reel_SID_Information.NewComponent_Reel_SID_InformationRow();
|
||||
var newdr = this.dataSet1.K4EE_Component_Reel_SID_Information.NewK4EE_Component_Reel_SID_InformationRow();
|
||||
newdr.CustCode = cCustCode;
|
||||
newdr.SID = cSID;
|
||||
newdr.PartNo = cPartNo;
|
||||
@@ -322,7 +326,7 @@ namespace SIDConvInfoEditorII
|
||||
newdr.VenderLot = vLot; //221013
|
||||
newdr.Remark = string.Empty;
|
||||
newdr.wdate = DateTime.Now;
|
||||
this.dataSet1.Component_Reel_SID_Information.AddComponent_Reel_SID_InformationRow(newdr);
|
||||
this.dataSet1.K4EE_Component_Reel_SID_Information.AddK4EE_Component_Reel_SID_InformationRow(newdr);
|
||||
cntA += 1;
|
||||
}
|
||||
else
|
||||
@@ -360,7 +364,7 @@ namespace SIDConvInfoEditorII
|
||||
private void toolStripButton13_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (UTIL.MsgQ("현재 자료를 삭제 할까요?") != DialogResult.Yes) return;
|
||||
dataSet1.Component_Reel_SID_Convert.Clear();
|
||||
dataSet1.K4EE_Component_Reel_SID_Convert.Clear();
|
||||
taC.DeleteAll();
|
||||
Refresh_SidConv();
|
||||
}
|
||||
@@ -371,7 +375,7 @@ namespace SIDConvInfoEditorII
|
||||
this.bsI.EndEdit();
|
||||
this.bsC.EndEdit();
|
||||
|
||||
this.taI.Update(this.dataSet1.Component_Reel_SID_Information);
|
||||
this.taI.Update(this.dataSet1.K4EE_Component_Reel_SID_Information);
|
||||
}
|
||||
|
||||
private void cmbRCode_SelectedIndexChanged(object sender, EventArgs e)
|
||||
@@ -428,7 +432,7 @@ namespace SIDConvInfoEditorII
|
||||
else
|
||||
{
|
||||
List<string> cols = new List<string>();
|
||||
foreach (DataColumn col in this.dataSet1.Component_Reel_SID_Information.Columns)
|
||||
foreach (DataColumn col in this.dataSet1.K4EE_Component_Reel_SID_Information.Columns)
|
||||
{
|
||||
if (col.ColumnName.ToString().ToUpper() == "IDX") continue;
|
||||
if (col.ColumnName.ToString().ToUpper() == "WDATE") continue;
|
||||
@@ -473,7 +477,7 @@ namespace SIDConvInfoEditorII
|
||||
else
|
||||
{
|
||||
List<string> cols = new List<string>();
|
||||
foreach (DataColumn col in this.dataSet1.Component_Reel_SID_Convert.Columns)
|
||||
foreach (DataColumn col in this.dataSet1.K4EE_Component_Reel_SID_Convert.Columns)
|
||||
{
|
||||
if (col.ColumnName.ToString().ToUpper() == "IDX") continue;
|
||||
if (col.ColumnName.ToString().ToUpper() == "WDATE") continue;
|
||||
@@ -510,7 +514,7 @@ namespace SIDConvInfoEditorII
|
||||
{
|
||||
this.Validate();
|
||||
this.bsP.EndEdit();
|
||||
this.taP.Update(this.dataSet1.Component_Reel_Print_Information);
|
||||
this.taP.Update(this.dataSet1.K4EE_Component_Reel_Print_Information);
|
||||
//this.tam.UpdateAll(this.dataSet1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user