주문내역 엑셀 업로드기능에서 공백제거 추가, 주문내역에서 품목정보 생성하는 기능 추가(관리자)

This commit is contained in:
chi
2024-01-26 11:33:04 +09:00
parent 5d7945d5c9
commit d2c5ed6bd4
39 changed files with 1198 additions and 968 deletions

View File

@@ -61,6 +61,8 @@
FarPoint.Win.Spread.CellType.NumberCellType numberCellType8 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType9 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType10 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType11 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType12 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.NoPrinterPrintInfo noPrinterPrintInfo1 = new FarPoint.Win.Spread.NoPrinterPrintInfo();
this.panel1 = new System.Windows.Forms.Panel();
this.label3 = new System.Windows.Forms.Label();
@@ -949,6 +951,7 @@
//
this.bindingNavigatorPositionItem.AccessibleName = "위치";
this.bindingNavigatorPositionItem.AutoSize = false;
this.bindingNavigatorPositionItem.Font = new System.Drawing.Font("맑은 고딕", 9F);
this.bindingNavigatorPositionItem.Name = "bindingNavigatorPositionItem";
this.bindingNavigatorPositionItem.Size = new System.Drawing.Size(50, 23);
this.bindingNavigatorPositionItem.Text = "0";
@@ -1006,6 +1009,7 @@
// tbFind
//
this.tbFind.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.tbFind.Font = new System.Drawing.Font("맑은 고딕", 9F);
this.tbFind.Name = "tbFind";
this.tbFind.Size = new System.Drawing.Size(100, 47);
this.tbFind.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tbFind_KeyDown);
@@ -1152,6 +1156,7 @@
flatScrollBarRenderer2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.fpSpread1.VerticalScrollBar.Renderer = flatScrollBarRenderer2;
this.fpSpread1.EditModeOff += new System.EventHandler(this.fpSpread1_EditModeOff);
this.fpSpread1.SetViewportLeftColumn(0, 0, 3);
//
// fpSpread1_Sheet1
//
@@ -1159,7 +1164,7 @@
this.fpSpread1_Sheet1.SheetName = "Sheet1";
// Formulas and custom names must be loaded with R1C1 reference style
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.R1C1;
this.fpSpread1_Sheet1.ColumnCount = 21;
this.fpSpread1_Sheet1.ColumnCount = 23;
this.fpSpread1_Sheet1.ColumnHeader.RowCount = 2;
this.fpSpread1_Sheet1.ActiveColumnIndex = -1;
this.fpSpread1_Sheet1.ActiveRowIndex = -1;
@@ -1191,9 +1196,9 @@
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 14).Value = "공급";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 15).RowSpan = 2;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 15).Value = "비고";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 16).ColumnSpan = 2;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 16).ColumnSpan = 4;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 16).Value = "구매";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 17).Value = "상태";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 19).Value = "상태";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 0).Value = "중";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 1).Value = "소";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 3).Value = "SID";
@@ -1207,7 +1212,9 @@
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 11).Value = " 금액";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 12).Value = "금액(N)";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 16).Value = "요청";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 17).Value = "입고";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 17).Value = "승인";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 18).Value = "진행";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 19).Value = "완료";
this.fpSpread1_Sheet1.ColumnHeader.DefaultStyle.BackColor = System.Drawing.Color.Empty;
this.fpSpread1_Sheet1.ColumnHeader.DefaultStyle.ForeColor = System.Drawing.Color.Empty;
this.fpSpread1_Sheet1.ColumnHeader.DefaultStyle.Parent = "ColumnHeaderFlat";
@@ -1355,29 +1362,46 @@
this.fpSpread1_Sheet1.Columns.Get(16).Locked = false;
this.fpSpread1_Sheet1.Columns.Get(16).Tag = "구매요청";
this.fpSpread1_Sheet1.Columns.Get(16).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(16).Width = 93F;
this.fpSpread1_Sheet1.Columns.Get(17).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.fpSpread1_Sheet1.Columns.Get(16).Width = 75F;
numberCellType7.DecimalPlaces = 0;
numberCellType7.MaximumValue = 10000000D;
numberCellType7.MinimumValue = -10000000D;
this.fpSpread1_Sheet1.Columns.Get(17).CellType = numberCellType7;
this.fpSpread1_Sheet1.Columns.Get(17).Label = "입고";
this.fpSpread1_Sheet1.Columns.Get(17).Tag = "구매입고";
this.fpSpread1_Sheet1.Columns.Get(17).Width = 93F;
this.fpSpread1_Sheet1.Columns.Get(17).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(17).Label = "승인";
this.fpSpread1_Sheet1.Columns.Get(17).Tag = "구매승인";
this.fpSpread1_Sheet1.Columns.Get(17).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
numberCellType8.DecimalPlaces = 0;
numberCellType8.MaximumValue = 10000000D;
numberCellType8.MinimumValue = -10000000D;
this.fpSpread1_Sheet1.Columns.Get(18).CellType = numberCellType8;
this.fpSpread1_Sheet1.Columns.Get(18).DataField = "Item";
this.fpSpread1_Sheet1.Columns.Get(18).Tag = "item";
this.fpSpread1_Sheet1.Columns.Get(18).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(18).Width = 93F;
this.fpSpread1_Sheet1.Columns.Get(18).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(18).Label = "진행";
this.fpSpread1_Sheet1.Columns.Get(18).Tag = "구매진행";
this.fpSpread1_Sheet1.Columns.Get(18).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(18).Width = 77F;
this.fpSpread1_Sheet1.Columns.Get(19).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
numberCellType9.DecimalPlaces = 0;
numberCellType9.MaximumValue = 10000000D;
numberCellType9.MinimumValue = -10000000D;
this.fpSpread1_Sheet1.Columns.Get(19).CellType = numberCellType9;
this.fpSpread1_Sheet1.Columns.Get(19).DataField = "ItemSupplyidx";
this.fpSpread1_Sheet1.Columns.Get(19).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(19).Width = 93F;
this.fpSpread1_Sheet1.Columns.Get(19).Label = "완료";
this.fpSpread1_Sheet1.Columns.Get(19).Tag = "구매완료";
this.fpSpread1_Sheet1.Columns.Get(19).Width = 84F;
this.fpSpread1_Sheet1.Columns.Get(20).CellType = numberCellType10;
this.fpSpread1_Sheet1.Columns.Get(20).DataField = "idx";
this.fpSpread1_Sheet1.Columns.Get(20).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(20).Tag = "idx";
this.fpSpread1_Sheet1.Columns.Get(20).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(20).DataField = "Item";
this.fpSpread1_Sheet1.Columns.Get(20).Tag = "item";
this.fpSpread1_Sheet1.Columns.Get(20).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(20).Width = 93F;
this.fpSpread1_Sheet1.Columns.Get(21).CellType = numberCellType11;
this.fpSpread1_Sheet1.Columns.Get(21).DataField = "ItemSupplyidx";
this.fpSpread1_Sheet1.Columns.Get(21).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(21).Width = 93F;
this.fpSpread1_Sheet1.Columns.Get(22).CellType = numberCellType12;
this.fpSpread1_Sheet1.Columns.Get(22).DataField = "idx";
this.fpSpread1_Sheet1.Columns.Get(22).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(22).Tag = "idx";
this.fpSpread1_Sheet1.Columns.Get(22).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.DataAutoCellTypes = false;
this.fpSpread1_Sheet1.DataAutoSizeColumns = false;
this.fpSpread1_Sheet1.DataSource = this.bsPart;
@@ -1507,10 +1531,10 @@
private arCtl.arLabel prb4;
private arCtl.arLabel prb3;
private System.Windows.Forms.Label label3;
private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1;
private System.Windows.Forms.ToolStripDropDownButton toolStripButton1;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripButton toolStripButton5;
private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1;
}
}

View File

@@ -191,8 +191,11 @@ namespace FPJ0000
var col_supply = this.fpSpread1.ActiveSheet.Columns["ItemSupply"].Index;
//구매요청컬럼값
var col_buyqty = this.fpSpread1.ActiveSheet.Columns["구매요청"].Index;
var col_inqty = this.fpSpread1.ActiveSheet.Columns["구매입고"].Index;
var col_buyrq = this.fpSpread1.ActiveSheet.Columns["구매요청"].Index;
var col_buypr = this.fpSpread1.ActiveSheet.Columns["구매승인"].Index;
var col_buypo = this.fpSpread1.ActiveSheet.Columns["구매진행"].Index;
var col_byuin = this.fpSpread1.ActiveSheet.Columns["구매완료"].Index;
//var col_inuser = this.fpSpread1.ActiveSheet.Columns["구매수령인"].Index;
//var col_indate = this.fpSpread1.ActiveSheet.Columns["구매수령일"].Index;
//var col_inbigo = this.fpSpread1.ActiveSheet.Columns["구매비고"].Index;
@@ -228,6 +231,11 @@ namespace FPJ0000
FCOMMON.DBM.buyinfo sidinfo;
if (v_sid.isEmpty() == false && v_sid.Length == 9 && v_sid.StartsWith("10"))
{
if (v_sid == "108963609")
{
}
if (sidlist.Contains(v_sid))
{
//한번 계산했던 SID이다
@@ -235,15 +243,25 @@ namespace FPJ0000
row.ForeColor = Color.Gray;
row.BackColor = Color.WhiteSmoke;
sidinfo = FCOMMON.DBM.GetPartBuyInfo(project, v_sid);
fpSpread1.ActiveSheet.Cells[i, col_buyqty].Value = sidinfo.Total_Request;
fpSpread1.ActiveSheet.Cells[i, col_inqty].Value = sidinfo.Total_Buy;
fpSpread1.ActiveSheet.Cells[i, col_buyrq].Value = sidinfo.Request;
fpSpread1.ActiveSheet.Cells[i, col_buypr].Value = sidinfo.PR;
fpSpread1.ActiveSheet.Cells[i, col_buypo].Value = sidinfo.PO;
fpSpread1.ActiveSheet.Cells[i, col_byuin].Value = sidinfo.Received;
continue;
}
else
{
sidinfo = FCOMMON.DBM.GetPartBuyInfo(project, v_sid);
sidlist.Add(v_sid);
fpSpread1.ActiveSheet.Cells[i, col_buyrq].Value = sidinfo.Request;
fpSpread1.ActiveSheet.Cells[i, col_buypr].Value = sidinfo.PR;
fpSpread1.ActiveSheet.Cells[i, col_buypo].Value = sidinfo.PO;
fpSpread1.ActiveSheet.Cells[i, col_byuin].Value = sidinfo.Received;
}
}
@@ -262,8 +280,8 @@ namespace FPJ0000
continue;
}
fpSpread1.ActiveSheet.Cells[i, col_buyqty].Value = sidinfo.Total_Request;
fpSpread1.ActiveSheet.Cells[i, col_inqty].Value = sidinfo.Total_Buy;
//fpSpread1.ActiveSheet.Cells[i, col_buyrq].Value = sidinfo.Total_Request;
//fpSpread1.ActiveSheet.Cells[i, col_byuin].Value = sidinfo.Total_Ipko;
TotInfo.PO += sidinfo.PO;
@@ -273,7 +291,7 @@ namespace FPJ0000
+= 1;
int qty_in = sidinfo.Total_Buy;// 0;
int qty_in = sidinfo.Total_Ipko;// 0;
int qty_buy = sidinfo.Total_Request;// ;
if (sidinfo.Total_Request < 1) //비구매건
@@ -284,37 +302,44 @@ namespace FPJ0000
}
else
{
//if(v_sid == "108963609")
//{
//}
//여기서부터는 무조건 구매대상이다
//입고수량이 구매수량을 넘어가면 완료이다
if (sidinfo.Total_Buy >= sidinfo.Total_Request)
if (sidinfo.Received >= sidinfo.Total_Request)
{
+= 1;
row.ForeColor = Color.Black;
row.BackColor = Color.LimeGreen;
}
else if (sidinfo.Total_Buy > 0) //구매진행중이다
else if (sidinfo.PO > 0) //구매진행중이다
{
+= 1;
row.ForeColor = Color.White;
row.BackColor = Color.DarkMagenta;
}
else if (sidinfo.PR > 0)
else if (sidinfo.PR > 0) //승인요청
{
PO대기 += 1;
row.ForeColor = Color.Black;
row.BackColor = Color.Gold;
}
else if (sidinfo.PO > 0)
{
+= 1;
row.ForeColor = Color.White;
row.BackColor = Color.DarkMagenta;
}
else
{
+= 1;
row.ForeColor = Color.Black;
row.BackColor = Color.LightSkyBlue;
if(sidinfo.Request > 0)
{
+= 1;
row.ForeColor = Color.Black;
row.BackColor = Color.LightSkyBlue;
}
else
{
+= 1;
row.ForeColor = Color.Black;
row.BackColor = Color.White;
}
}
//if (bPR == false)
//{

View File

@@ -161,7 +161,7 @@
<data name="button3.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wAAADsABataJCQAAAkBJREFUSEvt1u9LE3EcB/B7XA/6U3rQv2AFouxBRVvD9EE9KbAHISwoC6IpDVx0
vgAADr4B6kKxwAAAAkBJREFUSEvt1u9LE3EcB/B7XA/6U3rQv2AFouxBRVvD9EE9KbAHISwoC6IpDVx0
bm2IgkkxzMIfiaFECYp33o/9aC3O0+XImei2s83Vft19uru+F6tuxfTOHugb3tzY7njx/ex7x2EHM+cf
0m0XH7Gx/ejZB4tXEIthdi/b/TRcAh8tmlrFsOKUB7EHFR6PFWBiSTK1ivEHHP2UBbOjGIfwIQypbBGo
FeHnZ0cgVneV66rz31ZM8Bk44yafIXb/4Al2A5pdBINY40cdWEiq1/0ecjkDvdPxOGLNWXE6V4S+twno
@@ -177,7 +177,7 @@
<data name="button2.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAG
6QAABukBM89dwwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAFNSURBVFhH7ZLN
6AAABugB4Yi/JwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAFNSURBVFhH7ZLN
S8MwGIf7Z3sXvHSIIlU2u01oL0rXzTm/ceuGzM+rB0FchTEQbx1MwUrllbTLIV3bZUknyQPPpdD+HtIo
kkVRXGsMm8YN0Xbj2QvdLDV9s977mUfDdnxwXbO/KoVWAU2nw65eD16evIBk/2IUuWd1grcPj0qj3g3u
Ou5nRW1to/lkeAfCdzNFsghcUfVI/HkYCEJkWT3WUEY8eQWC9447SYzMMxC8bb/O/t15B4IzI5chEIyN
@@ -189,7 +189,7 @@
<data name="button1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAG
6QAABukBM89dwwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAVsSURBVFhH3VhZ
6AAABugB4Yi/JwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAVsSURBVFhH3VhZ
TxtXFJ6qfWr7Q1pVrSK1PyAvSaUWAqZsITg4tC8EUvWhUpUAqVMgYLOTsENMqzSYNSyChLAFSAqhNuAQ
A0ElQMJOKPsYg8fTe8Z3wtg+GIOBh37SJ4/mnuXzzF3OGeZ/i7zob766l3QuvToj4NHD3NCnjzUKQ0dJ
+CiwrVhhgHvV6QFNxCY1J/bsl9TteJGtPP2xNlmmbswN0Rvrflr+t0fJb/YluCTYvKj9cRl8ylL8VMk/
@@ -276,7 +276,7 @@
<data name="bindingNavigatorAddNewItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wAAADsABataJCQAAAUpJREFUOE9jGLzg7gL2/7fmcf6/Oofr/8UZvP+hwsSD60CNfx41/v/zsOH/yckC
vgAADr4B6kKxwAAAAUpJREFUOE9jGLzg7gL2/7fmcf6/Oofr/8UZvP+hwsSD60CNfx41/v/zsOH/yckC
pBtwfjov3ICDPSKkG3B8kiBQc93/Pw+q/u9oFydswKWZPP/PTuX7fxKo8Ui/0P993SJAzeX//94r+r++
Qeb/qhq5/0srFf/PL1X+P6tIFdPAU0B//nlYD9RUC8SV///cKwHivP9/72b+/3sn+f/f23H//92MAOKQ
/5NyNDENONQrDHbu3/ulQI0FQI3ZQI2pQI0J///digZqDPv/70bQ/3/X/f53peliGrCzXeL/lmap/+vA
@@ -288,7 +288,7 @@
<data name="bindingNavigatorDeleteItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wAAADsABataJCQAAAW9JREFUOE+1kE0ow2Ecx3dV3krt4oJaOSCTvIRkMqSxyITIzCQHDouEdnFwIOVC
vgAADr4B6kKxwAAAAW9JREFUOE+1kE0ow2Ecx3dV3krt4oJaOSCTvIRkMqSxyITIzCQHDouEdnFwIOVC
DrhIDiQl5UTiNG/z2ppafy1S2gX/uDwfY6i1v7Hie3nqeb7fz+/7/FR/Ilwn0G0Exw4fV5GJlXlEZxXC
rIet9bAQvB5Ymgn2sLYAvSZEux7RUQFzE4qQt4bCXAYjPaHvnDoCkLpsRGMB2JqCTGLIijDlwqQ9bEMV
i9OIytR3EMNWcJ/BWH8A6j8/bOGFxwXNxYEvGbMQ9XnQ1/K78KfY3/VXzkMY0qFGG2H4RoLGQshJQNbG
@@ -300,7 +300,7 @@
<data name="bindingNavigatorMoveFirstItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wAAADsABataJCQAAASpJREFUOE9jGDygcNbz/00Lnv/PnPj4P1QIA4S3P8Apx5A789n/VUfe/8elKL77
vgAADr4B6kKxwAAAASpJREFUOE9jGDygcNbz/00Lnv/PnPj4P1QIA4S3P8Apx5A789n/VUfe/8elKL77
wf/ghmu4DciY8vT/wn0fsCqK73n4f+n+///9qy/gNiCh58n/aVveYyiKaL8P1pw56/9/r9ITuA2I7Hr0
v3f1BxRFoa33wJpb1wFt7/z73yX/AG4DApsf/q+b/w6uKLjl7v9Fe///7wBqzpjz879d3c//9hnbcRvg
UXX/f/60NyiK7Ipv/0+f8/u/f9e3/zqF7/5bJKzHbYB96d3/2ZNfYyjSTzn/36ToxX+VrE//jSOX4TbA
@@ -311,7 +311,7 @@
<data name="bindingNavigatorMovePreviousItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wAAADsABataJCQAAALZJREFUOE9jGDogvP3BfyiTdBDf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w
vgAADr4B6kKxwAAAALZJREFUOE9jGDogvP3BfyiTdBDf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w
5sxZ//97lZ4gzYDQ1ntgza3rgLZ3/v3vkn+AeAOCW+7+X7T3//8OoOaMOT//29X9/G+fsZ00F9gV3/6f
Puf3f/+ub/91Ct/9t0hYT3oY6Kec/29S9OK/Stan/8aRy0g3AAQMkk78l037+l83eB55BoCAfurl/xq+
08g3AARUPCZQZsBgBQwMANAUYJgEulBVAAAAAElFTkSuQmCC
@@ -320,7 +320,7 @@
<data name="bindingNavigatorMoveNextItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wAAADsABataJCQAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78
vgAADr4B6kKxwAAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78
n73v1//OrX//u5VeJt2QyK5H/6ds+/W/ZOnf/wnT//63yT1LmiGBzQ//t659D9ZsXPLlv3T0tf/GkcuI
N8Sj6v7/krnv4JoVXXpIc4F96d3/gS3PyNMMAhZ5d/7bFFwhTzMIGGbdJl8zCOik3SBf81AEDAwAoH5f
oAc0QjgAAAAASUVORK5CYII=
@@ -329,7 +329,7 @@
<data name="bindingNavigatorMoveLastItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wAAADsABataJCQAAASxJREFUOE9jGFygcNbz/1AmBgDJNS14/j9z4mOcahhyZz77n9B9D6sCkNyqI+//
vgAADr4B6kKxwAAAASxJREFUOE9jGFygcNbz/1AmBgDJNS14/j9z4mOcahhyZz77n9B9D6sCkNyqI+//
h7c/wG1AxpSn/+ft//0/oesOhiKQ3MJ9H/4HN1zDbUBCz5P/s/f9+t+59e9/t9LLKApBctO2vP/vX30B
twGRXY/+T9n263/J0r//E6b//W+TexauGCTXu/rDf6/SE7gNCGx++L917XuwZuOSL/+lo6/9N45cBtYA
kqub/+6/S/4B3AZ4VN3/XzL3HVyzoksPXDFILn/am//2GdtxG2Bfevd/YMszDM0gAJLLnvz6v0XCetwG
@@ -360,20 +360,20 @@
<data name="toolStripButton3.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAALqSURBVDhPhZLrS1NhHMf3qv6EsF70UpBSyqioF6WpTQ3s
ZjrMvM0pmprowiBbzEWmLjTRQYUoRi+6aBed2rzNOd1wi8xlal7nBbwsdZdz5s7023POlhoI/eDD8+I5
3w/n9z2Hx07ofXXipVKdKqpM9ztMoqPISXPI2VNPR5X20xFPtKazYk2FX/SbfVxo94Q/6tUsWekVk8nk
ttidsNh2WLGy0Pi5YEXhJzMEZSMOfpZyvzfqmchi7RIb7p92QT/DQG9moJtmoJ3agPqXE63DdjgZoGmE
QuGHGaQ8M1H/SMIkrdS6YwPGWTe+zjLkZDDASTbQM+7El2EHEWzCuOCGft4FmdKM4Hudr7lwrDxo8oYk
ektUfQ0pVddR1VaHogY5giX+CCLwZWcQKj2J8qZybhUbzWBx1YHQhB6GE8SUBr/rHGpG89hLVOnyOUlC
ZQTyX8Uju04AoeIykhXJaBpcRLPJhs/f17FGegqT9tKcgF/B3+8nyXHrRrtRPyRFiTqLkyRWR5LwFaQ/
T4Nm3M6t0jFGQUV6WLW7EFbU5xGwE17cQ+fWJMEwroVCfxeP2/MQK7+AxMpoGKYdMJBi2YI1E55OLEQQ
Kt0lOPdA4jpVcBjxFXwYJ/oh686AVJkLwdMQ1Kk/4tscAwMptn/KhT7CktWF4IdewXGxjyhQfAjZtXG4
WR2OuPKLnCRXGQ9xQxp5kxCw90azGwPsJyZYSZEBOVqPIFB8YC5QfJA85IPAfB9cLQlB5oskaIZVkKkK
kPE2CcLqGBiIQE/+DR0R0K5NIlDvrHA+p5deWKMxOOfm6Bmdx52adKSSoEghQF7t7e07FseGmwgadwSs
bdayI/gfdnaFtF2C07ldDkX9+629Ht6Lrq6uzaMJTTZvnBSZ3j45s+6wsheTyxQmlyiMe1m2uTjY5m20
J0xR1JrvrZYf3jiPdyK9LTNA2Np+TKSyBIga6W1SPfj/RdhI+wpbVo8kt3T4JylTeDwe7w8N254ecwx/
mgAAAABJRU5ErkJggg==
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAALqSURBVDhPhZLrS1NhHMf3Kv+EsF70UpBSyqioF+VSmxrY
zVTMvM0pmprowiBbTCPzEppMoUKUohcZ2kWnNnXOOd1wi8xlanPeBS9L3eUctzP99pyzpQZCP/jwvHjO
98P5fc/hsRP6QJV0uVyriKrQ/g6TaCly0hyV7Kmjo8oH6YinGuM5sbraP/rdAS60d8If96uXrfSq0Wh0
W+ybsNh2WbWy0Pi5aEXRp1nEVYw5BNlyH2/UM5GlmmU2PDjtgm6GgW6WgXaagWbKCdWvTXSM2rHJAK1j
FIo+zCD1uZH6RxIm6aA2HE4Y5tz4OseQk8EQJ3Giz7SJL6MOItiCYdEN3YILJfJZ8O/3vOXCsZXB5puS
6G1R7XWkym5A1tmI4uZK8CUBCCYISs4iVHoKVa1V3Co2msHSmgOhiX0MJ4gp57/vGWlD28QryLQFnCSx
JgIFbxKQ0xgHYd0VpNSloHV4CW1GGz5/38A66SlM2k9zAkG1wMdfkuvWjvfi9YgUZapsTpJUG0nCV5Hx
Ih1qk51bpXuCgoL0sGZ3Iax4wCNgJ7y0j86rT4bepEGd7h6edOUjtvIikmqioZ92QE+KZQtWT3o6sRBB
qHSP4PxDiet04REkVAtgmBxESW8mpPI8xD0LQaPqI77NM9CTYgenXBggLFtd4D/yCk6IfUVB4sPIaYjH
rdpwxFdd4iR58gSIm9PJm4SAvTfMujHEfmKClRQZmKvxCILEB+eDxIfIQ74IKvDFtbIQZL1MhnpUgRJF
ITKbkiGsjYGeCHTk39ASAe3aIgLV7goXcvvpxXUaw/Nujr7xBdytz0AaCYrq4pDfcGfnjsXhdBNBy66A
tc1ZdgX/w86ukL5HcCZP6ZA1Nm3v9/B+KJXKrWOJrTZvnBSZ0WWe2XBY2QvzCgXzMgWTlxWbi4Nt3kZ7
whRFrfvdbv/hjfN4JzM6swKFHV3HRQpLoKiF3iHNQ8BfhC20n7B97WhKe3dAsjyVx+Px/gAJhZ4YRxAS
FgAAAABJRU5ErkJggg==
</value>
</data>
<data name="toolStripButton4.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">

View File

@@ -35,7 +35,7 @@
System.Windows.Forms.Label label6;
System.Windows.Forms.Label label7;
System.Windows.Forms.Label label2;
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fProjectPartToPurchaseCR));
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
@@ -44,6 +44,7 @@
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
this.tbProject = new System.Windows.Forms.TextBox();
this.tbProjectIndex = new System.Windows.Forms.TextBox();
this.dtPdate = new System.Windows.Forms.DateTimePicker();
@@ -64,21 +65,23 @@
this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
this.toolStripButton4 = new System.Windows.Forms.ToolStripButton();
this.toolStripButton8 = new System.Windows.Forms.ToolStripButton();
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
this.toolStripButton3 = new System.Windows.Forms.ToolStripButton();
this.panel1 = new System.Windows.Forms.Panel();
this.panel3 = new System.Windows.Forms.Panel();
this.statusStrip1 = new System.Windows.Forms.StatusStrip();
this.taProject = new FPJ0000.dsPRJTableAdapters.ProjectsTableAdapter();
this.taPart = new FPJ0000.dsPRJTableAdapters.ProjectsPartTableAdapter();
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
this.toolStripButton5 = new System.Windows.Forms.ToolStripButton();
this.dvc_sid = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dvc_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dvc_model = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dvc_price = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dvc_qtyreq = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dvc_qty = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dvc_amt = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dvc_spm = new System.Windows.Forms.DataGridViewButtonColumn();
this.dvc_remark = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.toolStripButton3 = new System.Windows.Forms.ToolStripButton();
projectLabel = new System.Windows.Forms.Label();
label1 = new System.Windows.Forms.Label();
label3 = new System.Windows.Forms.Label();
@@ -316,18 +319,19 @@
this.dvc_name,
this.dvc_model,
this.dvc_price,
this.dvc_qtyreq,
this.dvc_qty,
this.dvc_amt,
this.dvc_spm,
this.dvc_remark});
dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle8.Font = new System.Drawing.Font("맑은 고딕", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dv1.DefaultCellStyle = dataGridViewCellStyle8;
dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle9.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle9.Font = new System.Drawing.Font("맑은 고딕", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle9.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle9.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle9.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dv1.DefaultCellStyle = dataGridViewCellStyle9;
this.dv1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dv1.Location = new System.Drawing.Point(3, 21);
this.dv1.Name = "dv1";
@@ -335,6 +339,8 @@
this.dv1.Size = new System.Drawing.Size(968, 370);
this.dv1.TabIndex = 27;
this.dv1.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dv1_CellContentClick);
this.dv1.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.dv1_CellEndEdit_1);
this.dv1.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.dv1_CellFormatting);
//
// toolStrip1
//
@@ -345,7 +351,8 @@
this.toolStripButton4,
this.toolStripButton8,
this.toolStripButton1,
this.toolStripButton3});
this.toolStripButton3,
this.toolStripButton5});
this.toolStrip1.Location = new System.Drawing.Point(3, 391);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(968, 47);
@@ -380,6 +387,26 @@
this.toolStripButton8.Text = "목록 재구성(&R)";
this.toolStripButton8.Click += new System.EventHandler(this.toolStripButton8_Click);
//
// toolStripButton1
//
this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image")));
this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton1.Name = "toolStripButton1";
this.toolStripButton1.Size = new System.Drawing.Size(100, 44);
this.toolStripButton1.Text = "SPM검사";
this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click);
//
// toolStripButton3
//
this.toolStripButton3.ForeColor = System.Drawing.Color.Red;
this.toolStripButton3.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton3.Image")));
this.toolStripButton3.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton3.Name = "toolStripButton3";
this.toolStripButton3.Size = new System.Drawing.Size(192, 44);
this.toolStripButton3.Text = "구매수량에 SPM수량 제외";
this.toolStripButton3.Visible = false;
this.toolStripButton3.Click += new System.EventHandler(this.toolStripButton3_Click);
//
// panel1
//
this.panel1.Controls.Add(this.groupBox2);
@@ -416,14 +443,14 @@
//
this.taPart.ClearBeforeFill = true;
//
// toolStripButton1
// toolStripButton5
//
this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image")));
this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton1.Name = "toolStripButton1";
this.toolStripButton1.Size = new System.Drawing.Size(100, 44);
this.toolStripButton1.Text = "SPM사";
this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click);
this.toolStripButton5.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton5.Image")));
this.toolStripButton5.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton5.Name = "toolStripButton5";
this.toolStripButton5.Size = new System.Drawing.Size(136, 44);
this.toolStripButton5.Text = "SPM사이트열기";
this.toolStripButton5.Click += new System.EventHandler(this.toolStripButton5_Click);
//
// dvc_sid
//
@@ -458,19 +485,28 @@
this.dvc_price.HeaderText = "단가";
this.dvc_price.Name = "dvc_price";
//
// dvc_qtyreq
//
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.dvc_qtyreq.DefaultCellStyle = dataGridViewCellStyle5;
this.dvc_qtyreq.HeaderText = "구매요청";
this.dvc_qtyreq.Name = "dvc_qtyreq";
this.dvc_qtyreq.ReadOnly = true;
//
// dvc_qty
//
dataGridViewCellStyle5.Format = "N0";
this.dvc_qty.DefaultCellStyle = dataGridViewCellStyle5;
this.dvc_qty.HeaderText = "구매수량";
dataGridViewCellStyle6.Format = "N0";
this.dvc_qty.DefaultCellStyle = dataGridViewCellStyle6;
this.dvc_qty.HeaderText = "구매신청";
this.dvc_qty.Name = "dvc_qty";
//
// dvc_amt
//
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
dataGridViewCellStyle6.Format = "N0";
this.dvc_amt.DefaultCellStyle = dataGridViewCellStyle6;
dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
dataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
dataGridViewCellStyle7.Format = "N0";
this.dvc_amt.DefaultCellStyle = dataGridViewCellStyle7;
this.dvc_amt.HeaderText = "구매금액";
this.dvc_amt.Name = "dvc_amt";
this.dvc_amt.ReadOnly = true;
@@ -483,22 +519,11 @@
// dvc_remark
//
this.dvc_remark.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
this.dvc_remark.DefaultCellStyle = dataGridViewCellStyle7;
dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
this.dvc_remark.DefaultCellStyle = dataGridViewCellStyle8;
this.dvc_remark.HeaderText = "비고";
this.dvc_remark.Name = "dvc_remark";
//
// toolStripButton3
//
this.toolStripButton3.ForeColor = System.Drawing.Color.Red;
this.toolStripButton3.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton3.Image")));
this.toolStripButton3.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton3.Name = "toolStripButton3";
this.toolStripButton3.Size = new System.Drawing.Size(192, 44);
this.toolStripButton3.Text = "구매수량에 SPM수량 제외";
this.toolStripButton3.Visible = false;
this.toolStripButton3.Click += new System.EventHandler(this.toolStripButton3_Click);
//
// fProjectPartToPurchaseCR
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
@@ -560,14 +585,16 @@
private System.Windows.Forms.ToolStripButton toolStripButton8;
private arCtl.arDatagridView dv1;
private System.Windows.Forms.ToolStripButton toolStripButton1;
private System.Windows.Forms.ToolStripButton toolStripButton3;
private System.Windows.Forms.ToolStripButton toolStripButton5;
private System.Windows.Forms.DataGridViewTextBoxColumn dvc_sid;
private System.Windows.Forms.DataGridViewTextBoxColumn dvc_name;
private System.Windows.Forms.DataGridViewTextBoxColumn dvc_model;
private System.Windows.Forms.DataGridViewTextBoxColumn dvc_price;
private System.Windows.Forms.DataGridViewTextBoxColumn dvc_qtyreq;
private System.Windows.Forms.DataGridViewTextBoxColumn dvc_qty;
private System.Windows.Forms.DataGridViewTextBoxColumn dvc_amt;
private System.Windows.Forms.DataGridViewButtonColumn dvc_spm;
private System.Windows.Forms.DataGridViewTextBoxColumn dvc_remark;
private System.Windows.Forms.ToolStripButton toolStripButton3;
}
}

View File

@@ -89,6 +89,7 @@ namespace FPJ0000
row.Cells[col++].Value = dr.price;
row.Cells[col].Tag = dr.qty;
row.Cells[col++].Value = dr.qty;
row.Cells[col++].Value = dr.qty;
row.Cells[col++].Value = dr.price * dr.qty;
// row.Cells[col++].Value = 0;
row.Cells[col++].Value = "";
@@ -219,7 +220,13 @@ namespace FPJ0000
decimal sumAmt = 0;
foreach (DataGridViewRow item in dv1.Rows)
{
sumAmt += (decimal)item.Cells["dvc_amt"].Value;
var v = item.Cells["dvc_amt"].Value;
if (v != null)
{
if (decimal.TryParse(v.ToString(), out decimal vv))
sumAmt += vv;
}
}
this.tbSum.Text = sumAmt.ToString("N0");
@@ -237,6 +244,9 @@ namespace FPJ0000
FCOMMON.Util.MsgE("SPM검사가 완료되지 않았습니다");
return false;
}
}
if (this.dv1.Rows.Count < 1)
@@ -317,11 +327,28 @@ namespace FPJ0000
var dtCR = new dsPurchase.EETGW_PurchaseCRDataTable();
var dtNR = new dsPurchase.PurchaseDataTable();
var skipcnt = 0;
foreach (DataGridViewRow item in dv1.Rows)
{
var dr = item.Tag as dsPRJ.ProjectsPartRow;
var sid = dr.ItemSid.Replace(" ", "").Trim();
var o_price = item.Cells[Col_Price].Value;
var o_qty = item.Cells[Col_Qty].Value;
decimal v_price = 0;
int v_qty = 0;
if (o_price != null) v_price = decimal.Parse(o_price.ToString());
if (o_qty != null) v_qty = int.Parse(o_qty.ToString());
if (v_qty < 1)
{
skipcnt += 1;
fProg.IncProgress();
continue;
}
bool newadd = false;
if (isCR)
{
@@ -335,12 +362,7 @@ namespace FPJ0000
// newdr.asset = cbEQModel.Text.Trim();
// newdr.dept = cbEQModel.Text.Trim();
///newdr.manuproc = cbManuProc.Text.Trim();
var o_price = item.Cells[Col_Price].Value;
var o_qty = item.Cells[Col_Qty].Value;
decimal v_price = 0;
int v_qty = 0;
if (o_price != null) v_price = decimal.Parse(o_price.ToString());
if (o_qty != null) v_qty = int.Parse(o_qty.ToString());
if (newadd)
@@ -403,12 +425,7 @@ namespace FPJ0000
// newdr.asset = cbEQModel.Text.Trim();
// newdr.dept = cbEQModel.Text.Trim();
///newdr.manuproc = cbManuProc.Text.Trim();
var o_price = item.Cells[Col_Price].Value;
var o_qty = item.Cells[Col_Qty].Value;
decimal v_price = 0;
int v_qty = 0;
if (o_price != null) v_price = decimal.Parse(o_price.ToString());
if (o_qty != null) v_qty = int.Parse(o_qty.ToString());
if (newadd)
@@ -476,6 +493,25 @@ namespace FPJ0000
addcnt = ta.Update(dtNR);
}
//비고를 업데이트한다.
foreach (DataGridViewRow row in this.dv1.Rows)
{
var drpart = row.Tag as dsPRJ.ProjectsPartRow;
var vmemo = row.Cells["dvc_remark"].Value;
if (vmemo != null)
{
drpart.memo = vmemo.ToString();
drpart.EndEdit();
}
}
if (skipcnt > 0)
{
FCOMMON.Util.MsgE($"{skipcnt}건은 수량이 없어 등록되지 않았습니다");
}
FCOMMON.Util.MsgI(string.Format("{0}/{1}건의 자료가 생성 되었습니다.\n\n구매등록 화면에서 내용을 확인하세요.", addcnt, itemCount));
fProg.Close();
fProg.Dispose();
@@ -586,7 +622,7 @@ namespace FPJ0000
if (col.Name == "dvc_spm")
{
//site검색 해야한다
var sid = dv1.Rows[e.RowIndex].Cells["dvc_spm"].Value.ToString();// dr.sid;
var sid = dv1.Rows[e.RowIndex].Cells["dvc_sid"].Value.ToString();// dr.sid;
if (sid.Length != 9 || sid.StartsWith("10") == false)
{
dv1.Rows[e.RowIndex].Cells["dvc_spm"].Value = "SID오류";
@@ -600,15 +636,59 @@ namespace FPJ0000
dv1.Rows[e.RowIndex].Cells["dvc_spm"].Value = $"{dt.Result.Rows.Count}건";
dv1.Rows[e.RowIndex].Cells["dvc_spm"].Tag = dt.Result.Rows.Count;
var f = new FCM0000.fSIDListSelect(sid, dt.Result);
f.ShowDialog();
if (f.ShowDialog() == DialogResult.OK)
{
var oldvalue = dv1.Rows[e.RowIndex].Cells["dvc_remark"].Value;
if (oldvalue == null)
dv1.Rows[e.RowIndex].Cells["dvc_remark"].Value = "SPM:" + f.selectbatch;
else
dv1.Rows[e.RowIndex].Cells["dvc_remark"].Value = oldvalue.ToString() + ",SPM:" + f.selectbatch;
}
}
else
{
dv1.Rows[e.RowIndex].Cells["dvc_sid"].Value = "없음";
dv1.Rows[e.RowIndex].Cells["dvc_sid"].Tag = 0;
dv1.Rows[e.RowIndex].Cells["dvc_spm"].Value = "없음";
dv1.Rows[e.RowIndex].Cells["dvc_spm"].Tag = 0;
}
}
}
}
private void toolStripButton5_Click(object sender, EventArgs e)
{
var url = @"https://atknet.amkor.co.kr/#/department/ee/spm";
FCOMMON.Util.RunExplorer(url);
}
private void dv1_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
{
if (e.RowIndex < 0 || e.ColumnIndex < 0) return;
var colr = "dvc_qtyreq";
var col = "dvc_qty";
//dv1.Rows[e.RowIndex].Cells[e.ColumnIndex]
}
private void dv1_CellEndEdit_1(object sender, DataGridViewCellEventArgs e)
{
if (e.RowIndex < 0 || e.ColumnIndex < 0) return;
var coli = dv1.Columns["dvc_qty"].Index;
var colr = dv1.Columns["dvc_qtyreq"].Index;
if (e.ColumnIndex != coli && e.ColumnIndex != colr) return;
var vqty = dv1.Rows[e.RowIndex].Cells[coli].Value;
var vqtr = dv1.Rows[e.RowIndex].Cells[colr].Value;
if (vqty != null && vqtr != null)
{
if (vqty.ToString() != vqtr.ToString())
{
dv1.Rows[e.RowIndex].DefaultCellStyle.BackColor = Color.LightSkyBlue;
}
else
{
dv1.Rows[e.RowIndex].DefaultCellStyle.BackColor = Color.White;
}
}
else dv1.Rows[e.RowIndex].DefaultCellStyle.BackColor = Color.DimGray;
}
}
}

View File

@@ -159,6 +159,9 @@
<metadata name="dvc_price.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dvc_qtyreq.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dvc_qty.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
@@ -244,6 +247,21 @@
mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+
kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D
TgDQASA1MVpwzwAAAABJRU5ErkJggg==
</value>
</data>
<data name="toolStripButton5.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG
YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9
0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw
bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc
VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9
c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32
Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo
mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+
kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D
TgDQASA1MVpwzwAAAABJRU5ErkJggg==
</value>
</data>
<metadata name="statusStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">