migratino complete

This commit is contained in:
chi
2025-04-07 00:54:29 +09:00
parent 2b22ca9c51
commit 8ac3600ec1
158 changed files with 39098 additions and 21257 deletions

View File

@@ -113,6 +113,8 @@ namespace Project
this.Text = Application.ProductName + " v" + Application.ProductVersion;
Pub.init();
setToolbar();
@@ -122,6 +124,31 @@ namespace Project
this.Show();
Application.DoEvents();
// 데이터베이스 접속 정보 확인
Pub.dbinfo = DatabaseConnectionString.Utility.Read();
if (Pub.dbinfo.IsValid == false)
{
Application.DoEvents();
this.Visible = false;
MessageBox.Show("데이터베이스 접속정보가 존재하지 않습니다\n개발부서에 접속정보를 문의하세요", "Alert", MessageBoxButtons.OK, MessageBoxIcon.Error);
Pub.dbinfo = DatabaseConnectionString.Utility.ShowForm();
if (Pub.dbinfo.IsValid == false)
{
MessageBox.Show("데이터 베이스 정보가 없습니다\n프로그램이 정상 작동하지 않을 수 있습니다", "Alert", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
this.Visible = true;
}
Properties.Settings.Default["CS"] = Pub.dbinfo.ToString();
Properties.Settings.Default["gwcs"] = Pub.dbinfo.ToString();
//Util.MsgE(Pub.dbinfo.ToString());
//Data Source=K4FASQL.kr.ds.amkor.com,50150;Initial Catalog=EE;Persist Security Info=True;User ID=eeadm;Password=uJnU8a8q&DJ+ug-D;Encrypt=False;TrustServerCertificate=True
Pub.barcode = new Device.Barcode();
if (!Pub.setting.Barcode.isEmpty()) Pub.barcode.PortName = Pub.setting.Barcode;
Pub.barcode.ReceiveData += barcode_ReceiveData;
@@ -205,9 +232,9 @@ namespace Project
void Func_Login()
{
Dialog.fLogin flogIn = new Dialog.fLogin();
if (flogIn.ShowDialog() != System.Windows.Forms.DialogResult.OK)
Application.ExitThread();
using (Dialog.fLogin flogIn = new Dialog.fLogin())
if (flogIn.ShowDialog() != System.Windows.Forms.DialogResult.OK)
Application.ExitThread();
this.mn_purchase.Visible = FCOMMON.Util.getBit(FCOMMON.info.Login.gpermission, (int)FCOMMON.eGroupPermission.menu_purchase);
this.mn_project.Visible = FCOMMON.Util.getBit(FCOMMON.info.Login.gpermission, (int)FCOMMON.eGroupPermission.menu_project);
@@ -232,7 +259,7 @@ namespace Project
FCOMMON.info.Login.gcode);
Pub.log.Add("Program Start");
sbLoginUseTime.Text = "접속시간:"+FCOMMON.info.Login.loginusetime.ToString("N1") + "ms";
sbLoginUseTime.Text = "접속시간:" + FCOMMON.info.Login.loginusetime.ToString("N1") + "ms";
Func_RunStartForm();
}
@@ -507,7 +534,7 @@ namespace Project
// FCOMMON.Util.MsgE("SPR구매현황은 신규 개발 기능으로 아직 open 되지 않았습니다");
// return;
//}
string formkey = "PUCHASEEB";
if (!ShowForm(formkey))
AddForm(formkey, new FEQ0000.fPurchaseEB(), "해외지원+전자실 구매");
@@ -962,7 +989,7 @@ namespace Project
menu_work_report();
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
@@ -985,8 +1012,8 @@ namespace Project
{
menu_projecT_list();
}
private void toolStripButton2_Click_1(object sender, EventArgs e)
{
@@ -1022,7 +1049,7 @@ namespace Project
//f.Show();
}
private void layoutToolStripMenuItem_Click(object sender, EventArgs e)
{
string formkey = "PLYOU";
@@ -1354,12 +1381,12 @@ namespace Project
var itemsid = dar["sid"].ToString().Trim();
var itemgcode = dar["gcode"].ToString().Trim();
if(cnt1 % 50 == 0) Application.DoEvents();
if (cnt1 % 50 == 0) Application.DoEvents();
//해당uidname 을 프로젝트 정보에서 찾는다.
cmdupdate.CommandText = $"select max(idx) from Items where gcode = '{itemgcode}' and [sid] = '{itemsid}' and isnull(disable,0) = 0";
cmdupdate.Parameters.Clear();
var obj_pumidx = cmdupdate.ExecuteScalar();
if (obj_pumidx == null) continue;
@@ -1389,7 +1416,7 @@ namespace Project
if (cnt == 1) Console.WriteLine($"[{rec}] update {cnt} {itemsid} -> {str_pumidx}");
}
}
@@ -1411,7 +1438,7 @@ namespace Project
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
menu_itemin();
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
@@ -1491,7 +1518,7 @@ namespace Project
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
var f = new FPJ0000.JobReport_.fJobProcessSelect("",true);
var f = new FPJ0000.JobReport_.fJobProcessSelect("", true);
f.Show();
}