- 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>
103 lines
3.3 KiB
C#
103 lines
3.3 KiB
C#
using AR;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Diagnostics;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Project.Dialog
|
|
{
|
|
public partial class RegExRule : Form
|
|
{
|
|
public RegExRule()
|
|
{
|
|
InitializeComponent();
|
|
this.dataSet1.K4EE_Component_Reel_RegExRule.TableNewRow += (s1, e1) => {
|
|
if(PUB.Result.isSetvModel)
|
|
e1.Row["CustCode"] = PUB.Result.vModel.Title;
|
|
};
|
|
}
|
|
|
|
private void RegExRule_Load(object sender, EventArgs e)
|
|
{
|
|
RefreshList(PUB.Result.vModel.Title);
|
|
}
|
|
|
|
private void component_Reel_RegExRuleBindingNavigatorSaveItem_Click(object sender, EventArgs e)
|
|
{
|
|
this.Validate();
|
|
this.bs.EndEdit();
|
|
this.tam.UpdateAll(this.dataSet1);
|
|
|
|
var modelName = PUB.Result.vModel.Title;
|
|
PUB.Result.BCDPattern = PUB.GetPatterns(modelName, false);
|
|
PUB.Result.BCDIgnorePattern = PUB.GetPatterns(modelName, true);
|
|
PUB.log.Add($"모델패턴로딩:{PUB.Result.BCDPattern.Count}/{PUB.Result.BCDIgnorePattern.Count}");
|
|
}
|
|
|
|
private void RefreshList(string cust)
|
|
{
|
|
try
|
|
{
|
|
this.ta.FillByWithSample(this.dataSet1.K4EE_Component_Reel_RegExRule, cust);
|
|
foreach(DataGridViewRow drow in this.dv1.Rows)
|
|
{
|
|
var drv = drow.DataBoundItem as DataRowView;
|
|
if (drv == null) continue;
|
|
var dr = drv.Row as DataSet1.K4EE_Component_Reel_RegExRuleRow;
|
|
if (dr.IsCustCodeNull() || dr.CustCode.isEmpty())
|
|
drow.DefaultCellStyle.BackColor = Color.DimGray;
|
|
else
|
|
drow.DefaultCellStyle.BackColor = Color.WhiteSmoke;
|
|
}
|
|
dv1.AutoResizeColumns();
|
|
}
|
|
catch (System.Exception ex)
|
|
{
|
|
System.Windows.Forms.MessageBox.Show(ex.Message);
|
|
}
|
|
|
|
}
|
|
|
|
private void toolStripButton1_Click(object sender, EventArgs e)
|
|
{
|
|
RefreshList(PUB.Result.vModel.Title);
|
|
}
|
|
|
|
private void bs_CurrentChanged(object sender, EventArgs e)
|
|
{
|
|
var drv = this.bs.Current as DataRowView;
|
|
if (drv == null) return;
|
|
var dr = drv.Row as DataSet1.K4EE_Component_Reel_RegExRuleRow;
|
|
}
|
|
|
|
private void toolStripButton2_Click(object sender, EventArgs e)
|
|
{
|
|
try
|
|
{
|
|
DataSet1 ds1 = new DataSet1();
|
|
this.ta.FillAll(ds1.K4EE_Component_Reel_RegExRule);
|
|
|
|
var path = UTIL.MakePath("Export", "BarcodeRule.xml");
|
|
var fi = new System.IO.FileInfo(path);
|
|
if (fi.Directory.Exists == false) fi.Directory.Create();
|
|
ds1.K4EE_Component_Reel_RegExRule.WriteXml(path);
|
|
UTIL.MsgI($"Export list File = {path},count={ds1.K4EE_Component_Reel_RegExRule.Count}");
|
|
}
|
|
catch (System.Exception ex)
|
|
{
|
|
System.Windows.Forms.MessageBox.Show(ex.Message);
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|
|
}
|