This commit is contained in:
chi
2024-01-16 10:09:25 +09:00
parent d76b40ddf0
commit c2be3da94a
40 changed files with 3288 additions and 2627 deletions

View File

@@ -203,6 +203,401 @@ namespace FEQ0000
}
if (book != null)
{
try
{
book.save(savefilenamexls);
}
catch { }
}
return sb.ToString().Replace("{금액}", totalamt.ToString("N0"));
}
public static string MakeDataTableToHTML(List<dsPurchase.PurchaseRow> rows, string savefilenamexls = "")
{
libxl.Book book = null;// = new libxl.BinBook();
libxl.Sheet sheet = null;
libxl.Format fTitle = null;
libxl.Format fDataStr = null;
libxl.Format fDataNum = null;
if (savefilenamexls.isEmpty() == false)
{
book = new libxl.XmlBook();
book.setKey(FCOMMON.info.libxlCompany, FCOMMON.info.libxlKey);
sheet = book.addSheet("Data");
fTitle = book.addFormat();
fDataStr = book.addFormat();
fDataNum = book.addFormat();
fDataStr.alignH = libxl.AlignH.ALIGNH_CENTER;
fDataStr.alignV = libxl.AlignV.ALIGNV_CENTER;
fDataStr.setBorder(libxl.BorderStyle.BORDERSTYLE_THIN);
fDataStr.fillPattern = libxl.FillPattern.FILLPATTERN_SOLID;
fDataStr.patternForegroundColor = libxl.Color.COLOR_WHITE;
fTitle.alignV = libxl.AlignV.ALIGNV_CENTER;
fTitle.alignH = libxl.AlignH.ALIGNH_CENTER;
fTitle.setBorder(libxl.BorderStyle.BORDERSTYLE_THIN);
fTitle.fillPattern = libxl.FillPattern.FILLPATTERN_SOLID;
fTitle.patternForegroundColor = libxl.Color.COLOR_GRAY25;
fDataNum.alignH = libxl.AlignH.ALIGNH_GENERAL;
fDataNum.alignV = libxl.AlignV.ALIGNV_CENTER;
fDataNum.setBorder(libxl.BorderStyle.BORDERSTYLE_THIN);
fDataNum.fillPattern = libxl.FillPattern.FILLPATTERN_SOLID;
fDataNum.patternForegroundColor = libxl.Color.COLOR_WHITE;
}
//목록을 본문에 추가한다
System.Text.StringBuilder sb = new StringBuilder();
sb.AppendLine("<table border='1' cellspacing='0' cellpadding='1'>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("<td style='text-align:center;'>TOTAL</td>");
sb.AppendLine("<td style='text-align:center;' colspan='2'><strong>{금액}</strong></td>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>No</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>SC</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>자재번호</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>청구자</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>품목</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>규격</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>수량</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>단가</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>금액</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>공급업체</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>용도</td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tbody>");
var row = 0;
var col = 0;
if (sheet != null)
{
var basewidth = 15;
sheet.setRow(row, 30);
sheet.setCol(col, basewidth); sheet.writeStr(row, col++, "No", fTitle);
sheet.setCol(col, basewidth); sheet.writeStr(row, col++, "S/C", fTitle);
sheet.setCol(col, basewidth); sheet.writeStr(row, col++, "자재번호", fTitle);
sheet.setCol(col, basewidth); sheet.writeStr(row, col++, "청구자", fTitle);
sheet.setCol(col, (int)(basewidth * 2)); sheet.writeStr(row, col++, "품목", fTitle);
sheet.setCol(col, (int)(basewidth * 3)); sheet.writeStr(row, col++, "규격", fTitle);
sheet.setCol(col, (int)(basewidth * 0.5)); sheet.writeStr(row, col++, "수량", fTitle);
sheet.setCol(col, (int)(basewidth * 0.5)); sheet.writeStr(row, col++, "단가", fTitle);
sheet.setCol(col, basewidth); sheet.writeStr(row, col++, "금액", fTitle);
sheet.setCol(col, basewidth); sheet.writeStr(row, col++, "공급업체", fTitle);
sheet.setCol(col, basewidth); sheet.writeStr(row, col++, "용도", fTitle);
}
decimal totalamt = 0;
row = 1;
col = 0;
foreach (dsPurchase.PurchaseRow dr in rows)
{
var s요청 = dr.IsrequestNameNull() ? "" : dr.requestName;// fpSpread1_Sheet1.Cells[i, col_요청].Value;
var sSID = dr.IssidNull() ? "" : dr.sid;// fpSpread1_Sheet1.Cells[i, col_SID].Value;
var s품명 = dr.IspumnameNull() ? "" : dr.pumname;// fpSpread1_Sheet1.Cells[i, col_품명].Value;
var s규격 = dr.IspumunitNull() ? "" : dr.pumunit;// fpSpread1_Sheet1.Cells[i, col_규격].Value;
var qty = dr.IspumqtyNull() ? 0 : dr.pumqty;// fpSpread1_Sheet1.Cells[i, col_수량].Value;
var price = dr.IspumpriceNull() ? 0 : dr.pumprice;// fpSpread1_Sheet1.Cells[i, col_단가].Value;
var amt = dr.IspumamtNull() ? 0 : dr.pumamt;// fpSpread1_Sheet1.Cells[i, col_금액].Value;
var s공급 = dr.IssupplyNull() ? "" : dr.supply;// fpSpread1_Sheet1.Cells[i, col_공급].Value;
var s비고 = dr.IsbigoNull() ? "" : dr.bigo;// fpSpread1_Sheet1.Cells[i, col_비고].Value;
//var sSITE = dr.IssiteNull() ? "" : dr.site;// fpSpread1_Sheet1.Cells[i, col_site].Value;
var s분류 = dr.IsdeptNull() ? "" : dr.dept;
var sSC = dr.IsscNull() ? "" : dr.sc;//
totalamt += amt;
sb.AppendLine("<tr>");
sb.AppendLine($"<td>{row}</td>");
sb.AppendLine("<td>" + getmaxstr(sSC) + "</td>");
sb.AppendLine("<td>" + getmaxstr(sSID) + "</td>");
sb.AppendLine("<td>" + getmaxstr(s요청) + "</td>");
sb.AppendLine("<td>" + getmaxstr(s품명) + "</td>");
sb.AppendLine("<td>" + getmaxstr(s규격) + "</td>");
sb.AppendLine("<td style='text-align:center'>" + qty.ToString("N0") + "</td>");
sb.AppendLine("<td style='text-align:right'>" + price.ToString("N0") + "</td>");
sb.AppendLine("<td style='text-align:right'>" + amt.ToString("N0") + "</td>");
sb.AppendLine("<td>" + getmaxstr(s공급) + "</td>");
sb.AppendLine("<td>" + s비고 + "</td>");
if (sheet != null)
{
col = 0;
sheet.setRow(row, 23);
sheet.writeNum(row, col++, row, fDataNum);
sheet.writeStr(row, col++, sSC, fDataStr);
sheet.writeStr(row, col++, sSID, fDataStr);
sheet.writeStr(row, col++, s요청, fDataStr);
sheet.writeStr(row, col++, s품명, fDataStr);
sheet.writeStr(row, col++, s규격, fDataStr);
sheet.writeNum(row, col++, qty, fDataNum);
sheet.writeNum(row, col++, (int)price, fDataNum);
sheet.writeNum(row, col++, (int)amt, fDataNum);
sheet.writeStr(row, col++, s공급, fDataStr);
sheet.writeStr(row, col++, s비고, fDataStr);
row += 1;
}
////sb.AppendLine("<td>" + getmaxstr(sSTIE) + "</td>");
//''sb.AppendLine("<td>" + getmaxstr(s분류) + "</td>");
//sb.AppendLine("<td>" + getmaxstr(sCRCF) + "</td>");
//sb.AppendLine("<td>" + getmaxstr(s수령) + "</td>");
sb.AppendLine("</tr>");
}
sb.AppendLine("<tr>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("<td style='text-align:center;'>TOTAL</td>");
sb.AppendLine("<td style='text-align:center;' colspan='2'><strong>{금액}</strong></td>");
sb.AppendLine("</tr>");
sb.AppendLine("</tbody>");
sb.AppendLine("</table>");
if (sheet != null)
{
col = 0;
sheet.setRow(row, 30);
sheet.writeStr(row, col++, "합계", fTitle);
sheet.writeStr(row, col++, "", fTitle);
sheet.writeStr(row, col++, "", fTitle);
sheet.writeStr(row, col++, "", fTitle);
sheet.writeStr(row, col++, "", fTitle);
sheet.writeStr(row, col++, "", fTitle);
sheet.writeStr(row, col++, "", fTitle);
sheet.writeNum(row, col++, (int)totalamt, fTitle);
sheet.setMerge(row, row, col - 1, col);
sheet.writeStr(row, col++, "", fTitle);
sheet.writeStr(row, col++, "", fTitle);
sheet.writeStr(row, col++, "", fTitle);
row += 1;
}
if (book != null)
{
try
{
book.save(savefilenamexls);
}
catch { }
}
return sb.ToString().Replace("{금액}", totalamt.ToString("N0"));
}
public static string MakeDataTableToHTML(List<dsPurchase.EETGW_PurchaseCRRow> rows, string savefilenamexls = "")
{
libxl.Book book = null;// = new libxl.BinBook();
libxl.Sheet sheet = null;
libxl.Format fTitle = null;
libxl.Format fDataStr = null;
libxl.Format fDataNum = null;
if (savefilenamexls.isEmpty() == false)
{
book = new libxl.XmlBook();
book.setKey(FCOMMON.info.libxlCompany, FCOMMON.info.libxlKey);
sheet = book.addSheet("Data");
fTitle = book.addFormat();
fDataStr = book.addFormat();
fDataNum = book.addFormat();
fDataStr.alignH = libxl.AlignH.ALIGNH_CENTER;
fDataStr.alignV = libxl.AlignV.ALIGNV_CENTER;
fDataStr.setBorder(libxl.BorderStyle.BORDERSTYLE_THIN);
fDataStr.fillPattern = libxl.FillPattern.FILLPATTERN_SOLID;
fDataStr.patternForegroundColor = libxl.Color.COLOR_WHITE;
fTitle.alignV = libxl.AlignV.ALIGNV_CENTER;
fTitle.alignH = libxl.AlignH.ALIGNH_CENTER;
fTitle.setBorder(libxl.BorderStyle.BORDERSTYLE_THIN);
fTitle.fillPattern = libxl.FillPattern.FILLPATTERN_SOLID;
fTitle.patternForegroundColor = libxl.Color.COLOR_GRAY25;
fDataNum.alignH = libxl.AlignH.ALIGNH_GENERAL;
fDataNum.alignV = libxl.AlignV.ALIGNV_CENTER;
fDataNum.setBorder(libxl.BorderStyle.BORDERSTYLE_THIN);
fDataNum.fillPattern = libxl.FillPattern.FILLPATTERN_SOLID;
fDataNum.patternForegroundColor = libxl.Color.COLOR_WHITE;
}
//목록을 본문에 추가한다
System.Text.StringBuilder sb = new StringBuilder();
sb.AppendLine("<table border='1' cellspacing='0' cellpadding='1'>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("<td style='text-align:center;'>TOTAL</td>");
sb.AppendLine("<td style='text-align:center;' colspan='2'><strong>{금액}</strong></td>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>SC</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>자재번호</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>청구자</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>품목</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>규격</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>수량</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>단가</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>금액</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>공급업체</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>용도</td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tbody>");
var row = 0;
var col = 0;
if (sheet != null)
{
var basewidth = 15;
sheet.setRow(row, 30);
sheet.setCol(col, basewidth); sheet.writeStr(row, col++, "S/C", fTitle);
sheet.setCol(col, basewidth); sheet.writeStr(row, col++, "자재번호", fTitle);
sheet.setCol(col, basewidth); sheet.writeStr(row, col++, "청구자", fTitle);
sheet.setCol(col, (int)(basewidth * 2)); sheet.writeStr(row, col++, "품목", fTitle);
sheet.setCol(col, (int)(basewidth * 3)); sheet.writeStr(row, col++, "규격", fTitle);
sheet.setCol(col, (int)(basewidth * 0.5)); sheet.writeStr(row, col++, "수량", fTitle);
sheet.setCol(col, (int)(basewidth * 0.5)); sheet.writeStr(row, col++, "단가", fTitle);
sheet.setCol(col, basewidth); sheet.writeStr(row, col++, "금액", fTitle);
sheet.setCol(col, basewidth); sheet.writeStr(row, col++, "공급업체", fTitle);
sheet.setCol(col, basewidth); sheet.writeStr(row, col++, "용도", fTitle);
}
decimal totalamt = 0;
row = 1;
col = 0;
foreach (dsPurchase.EETGW_PurchaseCRRow dr in rows)
{
var s요청 = dr.IsrequestNameNull() ? "" : dr.requestName;// fpSpread1_Sheet1.Cells[i, col_요청].Value;
var sSID = dr.IssidNull() ? "" : dr.sid;// fpSpread1_Sheet1.Cells[i, col_SID].Value;
var s품명 = dr.IspumnameNull() ? "" : dr.pumname;// fpSpread1_Sheet1.Cells[i, col_품명].Value;
var s규격 = dr.IspumunitNull() ? "" : dr.pumunit;// fpSpread1_Sheet1.Cells[i, col_규격].Value;
var qty = dr.IspumqtyNull() ? 0 : dr.pumqty;// fpSpread1_Sheet1.Cells[i, col_수량].Value;
var price = dr.IspumpriceNull() ? 0 : dr.pumprice;// fpSpread1_Sheet1.Cells[i, col_단가].Value;
var amt = dr.IspumamtNull() ? 0 : dr.pumamt;// fpSpread1_Sheet1.Cells[i, col_금액].Value;
var s공급 = dr.IssupplyNull() ? "" : dr.supply;// fpSpread1_Sheet1.Cells[i, col_공급].Value;
var s비고 = dr.IsbigoNull() ? "" : dr.bigo;// fpSpread1_Sheet1.Cells[i, col_비고].Value;
//var sSITE = dr.IssiteNull() ? "" : dr.site;// fpSpread1_Sheet1.Cells[i, col_site].Value;
var s분류 = dr.IsdeptNull() ? "" : dr.dept;
var sSC = dr.IsscNull() ? "" : dr.sc;//
totalamt += amt;
sb.AppendLine("<tr>");
sb.AppendLine("<td>" + getmaxstr(sSC) + "</td>");
sb.AppendLine("<td>" + getmaxstr(sSID) + "</td>");
sb.AppendLine("<td>" + getmaxstr(s요청) + "</td>");
sb.AppendLine("<td>" + getmaxstr(s품명) + "</td>");
sb.AppendLine("<td>" + getmaxstr(s규격) + "</td>");
sb.AppendLine("<td style='text-align:center'>" + qty.ToString("N0") + "</td>");
sb.AppendLine("<td style='text-align:right'>" + price.ToString("N0") + "</td>");
sb.AppendLine("<td style='text-align:right'>" + amt.ToString("N0") + "</td>");
sb.AppendLine("<td>" + getmaxstr(s공급) + "</td>");
sb.AppendLine("<td>" + s비고 + "</td>");
if (sheet != null)
{
col = 0;
sheet.setRow(row, 23);
sheet.writeStr(row, col++, sSC, fDataStr);
sheet.writeStr(row, col++, sSID, fDataStr);
sheet.writeStr(row, col++, s요청, fDataStr);
sheet.writeStr(row, col++, s품명, fDataStr);
sheet.writeStr(row, col++, s규격, fDataStr);
sheet.writeNum(row, col++, qty, fDataNum);
sheet.writeNum(row, col++, (int)price, fDataNum);
sheet.writeNum(row, col++, (int)amt, fDataNum);
sheet.writeStr(row, col++, s공급, fDataStr);
sheet.writeStr(row, col++, s비고, fDataStr);
row += 1;
}
////sb.AppendLine("<td>" + getmaxstr(sSTIE) + "</td>");
//''sb.AppendLine("<td>" + getmaxstr(s분류) + "</td>");
//sb.AppendLine("<td>" + getmaxstr(sCRCF) + "</td>");
//sb.AppendLine("<td>" + getmaxstr(s수령) + "</td>");
sb.AppendLine("</tr>");
}
sb.AppendLine("<tr>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("<td style='border:none;text-align:center;'>&nbsp;</td>");
sb.AppendLine("<td style='text-align:center;'>TOTAL</td>");
sb.AppendLine("<td style='text-align:center;' colspan='2'><strong>{금액}</strong></td>");
sb.AppendLine("</tr>");
sb.AppendLine("</tbody>");
sb.AppendLine("</table>");
if (sheet != null)
{
col = 0;
sheet.setRow(row, 30);
sheet.writeStr(row, col++, "합계", fTitle);
sheet.writeStr(row, col++, "", fTitle);
sheet.writeStr(row, col++, "", fTitle);
sheet.writeStr(row, col++, "", fTitle);
sheet.writeStr(row, col++, "", fTitle);
sheet.writeStr(row, col++, "", fTitle);
sheet.writeNum(row, col++, (int)totalamt, fTitle);
sheet.setMerge(row, row, col - 1, col);
sheet.writeStr(row, col++, "", fTitle);
sheet.writeStr(row, col++, "", fTitle);
sheet.writeStr(row, col++, "", fTitle);
row += 1;
}
if (book != null)
{
try

View File

@@ -30,44 +30,44 @@
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fPurchaseCR));
FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType1 = new FarPoint.Win.Spread.CellType.CheckBoxCellType();
FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType2 = new FarPoint.Win.Spread.CellType.CheckBoxCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType1 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType2 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType3 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType4 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType5 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType6 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType7 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType8 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType9 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType1 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType10 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType11 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType2 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType3 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType12 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType4 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType5 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType6 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType13 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType7 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType14 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType8 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType15 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType16 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType17 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType18 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType9 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType19 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType20 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType21 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType22 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType3 = new FarPoint.Win.Spread.CellType.CheckBoxCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType10 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType23 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType24 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType25 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType10 = new FarPoint.Win.Spread.CellType.CheckBoxCellType();
FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType11 = new FarPoint.Win.Spread.CellType.CheckBoxCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType76 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType77 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType78 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType79 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType80 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType81 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType82 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType83 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType84 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType31 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType85 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType86 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType32 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType33 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType87 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType34 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType35 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType36 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType88 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType37 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType89 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType38 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType90 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType91 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType92 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType93 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType39 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType94 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType95 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType96 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType97 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType12 = new FarPoint.Win.Spread.CellType.CheckBoxCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType40 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType98 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType99 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType100 = new FarPoint.Win.Spread.CellType.TextCellType();
this.dsPurchase = new FEQ0000.dsPurchase();
this.bs = new System.Windows.Forms.BindingSource(this.components);
this.ta = new FEQ0000.dsPurchaseTableAdapters.EETGW_PurchaseCRTableAdapter();
@@ -99,7 +99,6 @@
this.toolStripButton1 = new System.Windows.Forms.ToolStripDropDownButton();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripButton7 = new System.Windows.Forms.ToolStripDropDownButton();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.sAP구매신청엑셀작성ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripButton5 = new System.Windows.Forms.ToolStripDropDownButton();
@@ -156,7 +155,12 @@
this.fpSpread1 = new FarPoint.Win.Spread.FpSpread();
this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
this.label2 = new System.Windows.Forms.Label();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator7 = new System.Windows.Forms.ToolStripSeparator();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
@@ -437,10 +441,9 @@
// toolStripButton7
//
this.toolStripButton7.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.ToolStripMenuItem,
this.ToolStripMenuItem,
this.ToolStripMenuItem,
this.sAP구매신청엑셀작성ToolStripMenuItem,
this.ToolStripMenuItem});
this.sAP구매신청엑셀작성ToolStripMenuItem});
this.toolStripButton7.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton7.Image")));
this.toolStripButton7.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton7.Name = "toolStripButton7";
@@ -448,14 +451,6 @@
this.toolStripButton7.Text = "기능";
this.toolStripButton7.Click += new System.EventHandler(this.toolStripButton7_Click);
//
// 입고품목메일전송ToolStripMenuItem
//
this.ToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("입고품목메일전송ToolStripMenuItem.Image")));
this.ToolStripMenuItem.Name = "입고품목메일전송ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(208, 22);
this.ToolStripMenuItem.Text = "입고 품목 메일 전송";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// 엑셀에서가져오기ToolStripMenuItem
//
this.ToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("엑셀에서가져오기ToolStripMenuItem.Image")));
@@ -997,15 +992,15 @@
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 29).Value = "비고";
this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 29F;
this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(1).Height = 35F;
this.fpSpread1_Sheet1.Columns.Get(0).CellType = checkBoxCellType1;
this.fpSpread1_Sheet1.Columns.Get(0).CellType = checkBoxCellType10;
this.fpSpread1_Sheet1.Columns.Get(0).DataField = "chk1";
this.fpSpread1_Sheet1.Columns.Get(0).Width = 33F;
this.fpSpread1_Sheet1.Columns.Get(1).CellType = checkBoxCellType2;
this.fpSpread1_Sheet1.Columns.Get(1).CellType = checkBoxCellType11;
this.fpSpread1_Sheet1.Columns.Get(1).DataField = "chk2";
this.fpSpread1_Sheet1.Columns.Get(1).Width = 37F;
this.fpSpread1_Sheet1.Columns.Get(2).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(2).AllowAutoSort = true;
this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType1;
this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType76;
this.fpSpread1_Sheet1.Columns.Get(2).DataField = "pdate";
this.fpSpread1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(2).Tag = "pdate";
@@ -1013,243 +1008,243 @@
this.fpSpread1_Sheet1.Columns.Get(2).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(3).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(3).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType2;
this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType77;
this.fpSpread1_Sheet1.Columns.Get(3).DataField = "state";
this.fpSpread1_Sheet1.Columns.Get(3).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(3).Tag = "state";
this.fpSpread1_Sheet1.Columns.Get(3).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(3).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(4).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType3;
this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType78;
this.fpSpread1_Sheet1.Columns.Get(4).DataField = "place";
this.fpSpread1_Sheet1.Columns.Get(4).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(4).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(4).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(5).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType4;
this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType79;
this.fpSpread1_Sheet1.Columns.Get(5).DataField = "requestName";
this.fpSpread1_Sheet1.Columns.Get(5).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(5).Tag = "requestName";
this.fpSpread1_Sheet1.Columns.Get(5).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType5;
this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType80;
this.fpSpread1_Sheet1.Columns.Get(6).DataField = "costcenter";
this.fpSpread1_Sheet1.Columns.Get(6).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(6).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType6;
this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType81;
this.fpSpread1_Sheet1.Columns.Get(7).DataField = "linecode";
this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(7).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType7;
this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType82;
this.fpSpread1_Sheet1.Columns.Get(8).DataField = "sc";
this.fpSpread1_Sheet1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(8).Tag = "sc";
this.fpSpread1_Sheet1.Columns.Get(8).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(8).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(9).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(9).CellType = textCellType8;
this.fpSpread1_Sheet1.Columns.Get(9).CellType = textCellType83;
this.fpSpread1_Sheet1.Columns.Get(9).DataField = "orderno";
this.fpSpread1_Sheet1.Columns.Get(9).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(9).Tag = "crcf";
this.fpSpread1_Sheet1.Columns.Get(9).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(9).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(10).CellType = textCellType9;
this.fpSpread1_Sheet1.Columns.Get(10).CellType = textCellType84;
this.fpSpread1_Sheet1.Columns.Get(10).DataField = "pumname";
this.fpSpread1_Sheet1.Columns.Get(10).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(10).Label = "품명";
this.fpSpread1_Sheet1.Columns.Get(10).Tag = "pumname";
this.fpSpread1_Sheet1.Columns.Get(10).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(11).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
numberCellType1.DecimalPlaces = 0;
numberCellType1.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType1.MaximumValue = 2147483647D;
numberCellType1.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(11).CellType = numberCellType1;
numberCellType31.DecimalPlaces = 0;
numberCellType31.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType31.MaximumValue = 2147483647D;
numberCellType31.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(11).CellType = numberCellType31;
this.fpSpread1_Sheet1.Columns.Get(11).DataField = "pumidx";
this.fpSpread1_Sheet1.Columns.Get(11).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(11).Label = "*";
this.fpSpread1_Sheet1.Columns.Get(11).Tag = "pumidx";
this.fpSpread1_Sheet1.Columns.Get(11).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(12).CellType = textCellType10;
this.fpSpread1_Sheet1.Columns.Get(12).CellType = textCellType85;
this.fpSpread1_Sheet1.Columns.Get(12).DataField = "sid";
this.fpSpread1_Sheet1.Columns.Get(12).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(12).Label = "SID#";
this.fpSpread1_Sheet1.Columns.Get(12).Tag = "sid";
this.fpSpread1_Sheet1.Columns.Get(12).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(13).CellType = textCellType11;
this.fpSpread1_Sheet1.Columns.Get(13).CellType = textCellType86;
this.fpSpread1_Sheet1.Columns.Get(13).DataField = "pumscale";
this.fpSpread1_Sheet1.Columns.Get(13).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(13).Label = "모델";
this.fpSpread1_Sheet1.Columns.Get(13).Tag = "pumscale";
this.fpSpread1_Sheet1.Columns.Get(13).Width = 51F;
numberCellType2.DecimalPlaces = 0;
numberCellType2.NegativeRed = true;
numberCellType2.NullDisplay = "--";
numberCellType2.Separator = ",";
numberCellType2.ShowSeparator = true;
numberCellType2.ShrinkToFit = true;
this.fpSpread1_Sheet1.Columns.Get(14).CellType = numberCellType2;
numberCellType32.DecimalPlaces = 0;
numberCellType32.NegativeRed = true;
numberCellType32.NullDisplay = "--";
numberCellType32.Separator = ",";
numberCellType32.ShowSeparator = true;
numberCellType32.ShrinkToFit = true;
this.fpSpread1_Sheet1.Columns.Get(14).CellType = numberCellType32;
this.fpSpread1_Sheet1.Columns.Get(14).DataField = "pumqtyReq";
this.fpSpread1_Sheet1.Columns.Get(14).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(14).Label = "수량\r\n(요청)";
this.fpSpread1_Sheet1.Columns.Get(14).Tag = "pumqty";
this.fpSpread1_Sheet1.Columns.Get(14).Width = 51F;
numberCellType3.DecimalPlaces = 0;
this.fpSpread1_Sheet1.Columns.Get(15).CellType = numberCellType3;
numberCellType33.DecimalPlaces = 0;
this.fpSpread1_Sheet1.Columns.Get(15).CellType = numberCellType33;
this.fpSpread1_Sheet1.Columns.Get(15).DataField = "pumqty";
this.fpSpread1_Sheet1.Columns.Get(15).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(15).Label = "수량\r\n(구매)\r\n";
this.fpSpread1_Sheet1.Columns.Get(15).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(16).CellType = textCellType12;
this.fpSpread1_Sheet1.Columns.Get(16).CellType = textCellType87;
this.fpSpread1_Sheet1.Columns.Get(16).DataField = "pumunit";
this.fpSpread1_Sheet1.Columns.Get(16).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(16).Label = "단위";
this.fpSpread1_Sheet1.Columns.Get(16).Tag = "pumunit";
this.fpSpread1_Sheet1.Columns.Get(16).Width = 51F;
numberCellType4.DecimalPlaces = 2;
this.fpSpread1_Sheet1.Columns.Get(17).CellType = numberCellType4;
numberCellType34.DecimalPlaces = 2;
this.fpSpread1_Sheet1.Columns.Get(17).CellType = numberCellType34;
this.fpSpread1_Sheet1.Columns.Get(17).DataField = "pumpriceD";
this.fpSpread1_Sheet1.Columns.Get(17).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
this.fpSpread1_Sheet1.Columns.Get(17).Label = "단가($)";
this.fpSpread1_Sheet1.Columns.Get(17).Tag = "pumpriceD";
this.fpSpread1_Sheet1.Columns.Get(17).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
numberCellType5.DecimalPlaces = 0;
numberCellType5.MaximumValue = 9999999999999.99D;
numberCellType5.MinimumValue = -9999999999999.99D;
numberCellType5.NegativeRed = true;
numberCellType5.NullDisplay = "--";
numberCellType5.Separator = ",";
numberCellType5.ShowSeparator = true;
numberCellType5.ShrinkToFit = true;
this.fpSpread1_Sheet1.Columns.Get(18).CellType = numberCellType5;
numberCellType35.DecimalPlaces = 0;
numberCellType35.MaximumValue = 9999999999999.99D;
numberCellType35.MinimumValue = -9999999999999.99D;
numberCellType35.NegativeRed = true;
numberCellType35.NullDisplay = "--";
numberCellType35.Separator = ",";
numberCellType35.ShowSeparator = true;
numberCellType35.ShrinkToFit = true;
this.fpSpread1_Sheet1.Columns.Get(18).CellType = numberCellType35;
this.fpSpread1_Sheet1.Columns.Get(18).DataField = "pumprice";
this.fpSpread1_Sheet1.Columns.Get(18).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
this.fpSpread1_Sheet1.Columns.Get(18).Label = "단가";
this.fpSpread1_Sheet1.Columns.Get(18).Tag = "pumprice";
this.fpSpread1_Sheet1.Columns.Get(18).Width = 51F;
numberCellType6.DecimalPlaces = 0;
numberCellType6.MaximumValue = 9999999999999.99D;
numberCellType6.MinimumValue = -9999999999999.99D;
numberCellType6.NegativeRed = true;
numberCellType6.NullDisplay = "--";
numberCellType6.Separator = ",";
numberCellType6.ShowSeparator = true;
numberCellType6.ShrinkToFit = true;
this.fpSpread1_Sheet1.Columns.Get(19).CellType = numberCellType6;
numberCellType36.DecimalPlaces = 0;
numberCellType36.MaximumValue = 9999999999999.99D;
numberCellType36.MinimumValue = -9999999999999.99D;
numberCellType36.NegativeRed = true;
numberCellType36.NullDisplay = "--";
numberCellType36.Separator = ",";
numberCellType36.ShowSeparator = true;
numberCellType36.ShrinkToFit = true;
this.fpSpread1_Sheet1.Columns.Get(19).CellType = numberCellType36;
this.fpSpread1_Sheet1.Columns.Get(19).DataField = "pumamt";
this.fpSpread1_Sheet1.Columns.Get(19).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
this.fpSpread1_Sheet1.Columns.Get(19).Label = "금액";
this.fpSpread1_Sheet1.Columns.Get(19).Tag = "pumamt";
this.fpSpread1_Sheet1.Columns.Get(19).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(20).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(20).CellType = textCellType13;
this.fpSpread1_Sheet1.Columns.Get(20).CellType = textCellType88;
this.fpSpread1_Sheet1.Columns.Get(20).DataField = "supply";
this.fpSpread1_Sheet1.Columns.Get(20).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(20).Label = "공급";
this.fpSpread1_Sheet1.Columns.Get(20).Tag = "supply";
this.fpSpread1_Sheet1.Columns.Get(20).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(21).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
numberCellType7.DecimalPlaces = 0;
numberCellType7.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType7.MaximumValue = 2147483647D;
numberCellType7.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(21).CellType = numberCellType7;
numberCellType37.DecimalPlaces = 0;
numberCellType37.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType37.MaximumValue = 2147483647D;
numberCellType37.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(21).CellType = numberCellType37;
this.fpSpread1_Sheet1.Columns.Get(21).DataField = "supplyidx";
this.fpSpread1_Sheet1.Columns.Get(21).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(21).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(21).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(22).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(22).CellType = textCellType14;
this.fpSpread1_Sheet1.Columns.Get(22).CellType = textCellType89;
this.fpSpread1_Sheet1.Columns.Get(22).DataField = "project";
this.fpSpread1_Sheet1.Columns.Get(22).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(22).Tag = "project";
this.fpSpread1_Sheet1.Columns.Get(22).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(23).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
numberCellType8.DecimalPlaces = 0;
numberCellType8.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType8.MaximumValue = 2147483647D;
numberCellType8.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(23).CellType = numberCellType8;
numberCellType38.DecimalPlaces = 0;
numberCellType38.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType38.MaximumValue = 2147483647D;
numberCellType38.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(23).CellType = numberCellType38;
this.fpSpread1_Sheet1.Columns.Get(23).DataField = "projectidx";
this.fpSpread1_Sheet1.Columns.Get(23).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(23).Tag = "projectidx";
this.fpSpread1_Sheet1.Columns.Get(23).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(23).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(24).CellType = textCellType15;
this.fpSpread1_Sheet1.Columns.Get(24).CellType = textCellType90;
this.fpSpread1_Sheet1.Columns.Get(24).DataField = "bigo";
this.fpSpread1_Sheet1.Columns.Get(24).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(24).Tag = "bigo";
this.fpSpread1_Sheet1.Columns.Get(24).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(25).CellType = textCellType16;
this.fpSpread1_Sheet1.Columns.Get(25).CellType = textCellType91;
this.fpSpread1_Sheet1.Columns.Get(25).DataField = "edate";
this.fpSpread1_Sheet1.Columns.Get(25).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(25).Label = "예정일";
this.fpSpread1_Sheet1.Columns.Get(25).Tag = "edate";
this.fpSpread1_Sheet1.Columns.Get(25).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(26).CellType = textCellType17;
this.fpSpread1_Sheet1.Columns.Get(26).CellType = textCellType92;
this.fpSpread1_Sheet1.Columns.Get(26).DataField = "receiveName";
this.fpSpread1_Sheet1.Columns.Get(26).Label = "수령인";
this.fpSpread1_Sheet1.Columns.Get(26).Tag = "receiveName";
this.fpSpread1_Sheet1.Columns.Get(27).CellType = textCellType18;
this.fpSpread1_Sheet1.Columns.Get(27).CellType = textCellType93;
this.fpSpread1_Sheet1.Columns.Get(27).DataField = "indate";
this.fpSpread1_Sheet1.Columns.Get(27).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(27).Label = "입고일";
this.fpSpread1_Sheet1.Columns.Get(27).Tag = "indate";
this.fpSpread1_Sheet1.Columns.Get(27).Width = 51F;
numberCellType9.DecimalPlaces = 0;
numberCellType9.NegativeRed = true;
numberCellType9.ShowSeparator = true;
this.fpSpread1_Sheet1.Columns.Get(28).CellType = numberCellType9;
numberCellType39.DecimalPlaces = 0;
numberCellType39.NegativeRed = true;
numberCellType39.ShowSeparator = true;
this.fpSpread1_Sheet1.Columns.Get(28).CellType = numberCellType39;
this.fpSpread1_Sheet1.Columns.Get(28).DataField = "inqty";
this.fpSpread1_Sheet1.Columns.Get(28).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(28).Label = "수량";
this.fpSpread1_Sheet1.Columns.Get(28).Tag = "inqty";
this.fpSpread1_Sheet1.Columns.Get(28).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(28).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(29).CellType = textCellType19;
this.fpSpread1_Sheet1.Columns.Get(29).CellType = textCellType94;
this.fpSpread1_Sheet1.Columns.Get(29).DataField = "inremark";
this.fpSpread1_Sheet1.Columns.Get(29).Label = "비고";
this.fpSpread1_Sheet1.Columns.Get(29).Tag = "inremark";
this.fpSpread1_Sheet1.Columns.Get(30).CellType = textCellType20;
this.fpSpread1_Sheet1.Columns.Get(30).CellType = textCellType95;
this.fpSpread1_Sheet1.Columns.Get(30).DataField = "po";
this.fpSpread1_Sheet1.Columns.Get(30).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(30).Tag = "po";
this.fpSpread1_Sheet1.Columns.Get(30).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(31).CellType = textCellType21;
this.fpSpread1_Sheet1.Columns.Get(31).CellType = textCellType96;
this.fpSpread1_Sheet1.Columns.Get(31).DataField = "chkremark";
this.fpSpread1_Sheet1.Columns.Get(31).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(31).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(32).CellType = textCellType22;
this.fpSpread1_Sheet1.Columns.Get(32).CellType = textCellType97;
this.fpSpread1_Sheet1.Columns.Get(32).DataField = "purchase_manager";
this.fpSpread1_Sheet1.Columns.Get(32).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(32).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(33).CellType = textCellType22;
this.fpSpread1_Sheet1.Columns.Get(33).CellType = textCellType97;
this.fpSpread1_Sheet1.Columns.Get(33).DataField = "purchase_admin";
this.fpSpread1_Sheet1.Columns.Get(33).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(33).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(34).CellType = checkBoxCellType3;
this.fpSpread1_Sheet1.Columns.Get(34).CellType = checkBoxCellType12;
this.fpSpread1_Sheet1.Columns.Get(34).DataField = "isdel";
this.fpSpread1_Sheet1.Columns.Get(34).Tag = "isdel";
this.fpSpread1_Sheet1.Columns.Get(34).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(35).BackColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(35).CellType = numberCellType10;
this.fpSpread1_Sheet1.Columns.Get(35).CellType = numberCellType40;
this.fpSpread1_Sheet1.Columns.Get(35).DataField = "idx";
this.fpSpread1_Sheet1.Columns.Get(35).ForeColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(35).Tag = "idx";
this.fpSpread1_Sheet1.Columns.Get(35).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(36).BackColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(36).CellType = textCellType23;
this.fpSpread1_Sheet1.Columns.Get(36).CellType = textCellType98;
this.fpSpread1_Sheet1.Columns.Get(36).DataField = "conf_status";
this.fpSpread1_Sheet1.Columns.Get(36).ForeColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(36).Tag = "conf_status";
this.fpSpread1_Sheet1.Columns.Get(36).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(37).BackColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(37).CellType = textCellType24;
this.fpSpread1_Sheet1.Columns.Get(37).CellType = textCellType99;
this.fpSpread1_Sheet1.Columns.Get(37).DataField = "conf_request";
this.fpSpread1_Sheet1.Columns.Get(37).ForeColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(37).Tag = "conf_request";
this.fpSpread1_Sheet1.Columns.Get(37).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(38).BackColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(38).CellType = textCellType25;
this.fpSpread1_Sheet1.Columns.Get(38).CellType = textCellType100;
this.fpSpread1_Sheet1.Columns.Get(38).DataField = "conf_request";
this.fpSpread1_Sheet1.Columns.Get(38).ForeColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(38).Tag = "conf_request";
@@ -1274,12 +1269,51 @@
this.label2.Text = "--";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// 현재목록메일전송ToolStripMenuItem
// 메일전송ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "현재목록메일전송ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(208, 22);
this.ToolStripMenuItem.Text = "현재목록 메일전송";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
this.ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.ToolStripMenuItem,
this.ToolStripMenuItem,
this.toolStripSeparator7,
this.ToolStripMenuItem,
this.ToolStripMenuItem});
this.ToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("메일전송ToolStripMenuItem.Image")));
this.ToolStripMenuItem.Name = "메일전송ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(208, 22);
this.ToolStripMenuItem.Text = "메일 전송";
//
// 현재목록ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "현재목록ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "현재목록";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// 선택목록ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "선택목록ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "선택목록";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// toolStripSeparator7
//
this.toolStripSeparator7.Name = "toolStripSeparator7";
this.toolStripSeparator7.Size = new System.Drawing.Size(177, 6);
//
// 현재목록입고양식ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "현재목록입고양식ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "현재목록(입고양식)";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// 선택목록입고양식ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "선택목록입고양식ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "선택목록(입고양식)";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// fPurchaseCR
//
@@ -1380,7 +1414,6 @@
private System.Windows.Forms.ToolStripMenuItem cRCF검색ToolStripMenuItem;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.ToolStripDropDownButton toolStripButton7;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripButton toolStripButton3;
private FarPoint.Win.Spread.FpSpread fpSpread1;
@@ -1400,6 +1433,11 @@
private System.Windows.Forms.ToolStripTextBox tbAdmin;
private System.Windows.Forms.ToolStripButton toolStripButton8;
private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator7;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
}
}

View File

@@ -779,6 +779,173 @@ namespace FEQ0000
refreshData();
}
List<dsPurchase.EETGW_PurchaseCRRow> GetDatarows(bool all = false)
{
List<dsPurchase.EETGW_PurchaseCRRow> rows = new List<dsPurchase.EETGW_PurchaseCRRow>();
if (all)
{
var drows = (dsPurchase.EETGW_PurchaseCRRow[])(this.dsPurchase.EETGW_PurchaseCR.Select(this.bs.Filter, this.bs.Sort)); ;
foreach (var dr in drows)
rows.Add(dr);
}
else
{
//선택된 자료의 데이터를 추출한다.
var selected = this.fpSpread1_Sheet1.GetSelections(); //선택된 개체확인
List<int> rowidxs = new List<int>();
var idxcol = this.fpSpread1_Sheet1.Columns["idx"];
var idxconf = this.fpSpread1_Sheet1.Columns["conf_status"];
var idxstatus = this.fpSpread1_Sheet1.Columns["state"];
foreach (var item in selected)
{
for (int i = item.Row; i < item.Row + item.RowCount; i++)
{
if (rowidxs.Contains(i) == false)
{
if (fpSpread1_Sheet1.IsRowBound(i))
{
var confsta = fpSpread1.ActiveSheet.GetValue(i, idxconf.Index);
var state = fpSpread1.ActiveSheet.GetValue(i, idxstatus.Index);
//if (state != null && state.ToString() != "---")
//{
// FCOMMON.Util.MsgE($"{i}번 줄의 데이터는 신규 요청데이터가 아닙니다");
//}
//else if (confsta != null && confsta.ToString() != "0")
//{
// FCOMMON.Util.MsgE($"{i}번 줄의 데이터는 신청이 완료된 자료 입니다");
//}
// else
rowidxs.Add(i);
}
}
}
}
//수집된데이터를 보내야한다.
var idx = 0;
foreach (var i in rowidxs)
{
var rowidx = (int)fpSpread1.ActiveSheet.GetValue(i, idxcol.Index);
var row = this.dsPurchase.EETGW_PurchaseCR.Where(t => t.idx == rowidx).First();
rows.Add(row);
}
if (rows.Any() == false)
{
if (this.bs.Count > 0)
{
var drv = this.bs.Current as DataRowView;
rows.Add(drv.Row as dsPurchase.EETGW_PurchaseCRRow);
}
}
}
return rows;
}
void MailSendNoForm(bool alldata, string cate = "")
{
var form_subject = "";
var form_body = "";
var form_to = "";
var form_cc = "{요청}";
var form_bcc = "";//f.tbBcc.Text.Trim();
bool attachfile = true;
bool attachlist = true;
if (cate.isEmpty() == false)
{
var db = new DataClasses1DataContext();
var dr = db.MailForm.Where(t => t.cate == cate).FirstOrDefault();
var f = new Purchase.fMailForm(cate);
if (f.ShowDialog() != DialogResult.OK) return;
form_subject = f.tbSubject.Text.Trim();
form_body = f.htmlEditor1.Html;
form_to = f.tbTo.Text.Trim();
form_cc = f.tbCC.Text.Trim();
form_bcc = f.tbBcc.Text.Trim();
attachfile = f.chkAttach.Checked;
attachlist = f.chkList.Checked;
}
//현재표시데이터중에 수신자목록을 가져온다
var drows = this.GetDatarows(alldata);
var grp_req = drows.Where(t => t.request.isEmpty() == false).GroupBy(t => t.request).Select(t => t.FirstOrDefault().request).ToList();
var grp_rec = drows.Where(t => t.receive.isEmpty() == false).GroupBy(t => t.receive).Select(t => t.FirstOrDefault().receive).ToList();
List<string> tolist = new List<string>(); //최종받는사람
List<string> cclist = new List<string>();
List<string> bcclist = new List<string>();
//받는사람
if (form_to.Contains("{요청}") == true) tolist.AddRange(grp_req);
if (form_to.Contains("{수령}") == true) tolist.AddRange(grp_rec);
form_to = form_to.Replace("{요청}", "");
form_to = form_to.Replace("{수령}", "");
tolist.AddRange(form_to.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries));
tolist = ChangeMailAddress(tolist);
//참조
if (form_cc.Contains("{요청}") == true) cclist.AddRange(grp_req);
if (form_cc.Contains("{수령}") == true) cclist.AddRange(grp_rec);
form_cc = form_cc.Replace("{요청}", "");
form_cc = form_cc.Replace("{수령}", "");
cclist.AddRange(form_cc.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries));
cclist = ChangeMailAddress(cclist);
//숨은참조
if (form_bcc.Contains("{요청}") == true) bcclist.AddRange(grp_req);
if (form_bcc.Contains("{수령}") == true) bcclist.AddRange(grp_rec);
form_bcc = form_bcc.Replace("{요청}", "");
form_bcc = form_bcc.Replace("{수령}", "");
bcclist.AddRange(form_bcc.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries));
bcclist = ChangeMailAddress(bcclist);
var datestr = DateTime.Now.ToShortDateString();
if (dtSD.Text == dtED.Text) datestr = dtSD.Text;
else datestr = dtSD.Text + "~" + dtED.Text;
form_subject = form_subject.Replace("{DATE}", datestr);
try
{
Outlook.Application outlookApplication = new Outlook.Application();
var newMail = outlookApplication.CreateItem(OlItemType.olMailItem) as Outlook.MailItem;
newMail.Display();
newMail.Subject = form_subject; // this.tbSubject.Text.Trim(); // dr.title;
newMail.To = string.Join(";", tolist.ToArray());
newMail.CC = string.Join(";", cclist.ToArray());
newMail.BCC = string.Join(";", bcclist.ToArray());
string fn = "";
if (attachfile)
{
var fi = new System.IO.FileInfo(FCOMMON.Util.CurrentPath + "\\Export\\PurchaseNRI_" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".xls");
if (fi.Directory.Exists == false) fi.Directory.Create();
fn = fi.FullName;
}
var tabledata = UTIL_EQ0000.MakeDataTableToHTML(drows, fn);
if (attachlist)
{
form_body += "<br />" + tabledata;
}
if (fn.isEmpty() == false)
newMail.Attachments.Add(fn);
//newMail.BodyFormat = OlBodyFormat.olFormatHTML;
form_body = form_body.Replace("{DATE}", datestr);
newMail.HTMLBody = form_body + newMail.HTMLBody; //
}
catch (Exception ex)
{
util.MsgE("전송실패\n\n" + ex.Message + "\n\n" +
"아웃룩의 설정이 정상인지 확인하세요");
}
}
void func_copy()
{
@@ -941,16 +1108,6 @@ namespace FEQ0000
else this.label2.Visible = false;
}
private void toolStripButton4_Click(object sender, EventArgs e)
{
}
string getmaxstr(string src, int len = 30)
{
if (src.Length > len) return src.Substring(0, len) + "...";
else return src;
}
List<string> ChangeMailAddress(List<string> userid)
{
@@ -980,16 +1137,6 @@ namespace FEQ0000
}
private void toolStripButton6_Click(object sender, EventArgs e)
{
//선택된 줄의 데이터를 생성하낟.
var drv = this.bs.Current as DataRowView;
if (drv == null) return;
var dr = drv.Row as dsPurchase.EETGW_PurchaseCRRow;
string buffer = string.Format("{0}_{1}", dr.pumname.Replace("_", "-"), dr.pumscale.Replace("_", "-"), dr.dept.Replace("_", "-"), dr.manuproc.Replace("_", "-"), dr.asset.Replace("_", "-"));
Clipboard.SetText(buffer);
//FCOMMON.Util.MsgI("다음 데이터가 클립보드에 저장됨\n\n" + buffer); 190131
}
private void dtSD_DoubleClick(object sender, EventArgs e)
{
@@ -1014,190 +1161,7 @@ namespace FEQ0000
f.Show();
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
var db = new DataClasses1DataContext();
var dr = db.MailForm.Where(t => t.cate == "PD").FirstOrDefault();
//현재표시데이터중에 수신자목록을 가져온다
var drows = (dsPurchase.EETGW_PurchaseCRRow[])(this.dsPurchase.EETGW_PurchaseCR.Select(this.bs.Filter, this.bs.Sort));
var grp_req = drows.Where(t => t.request.isEmpty() == false).GroupBy(t => t.request).Select(t => t.FirstOrDefault().request).ToList();
var grp_rec = drows.Where(t => t.receive.isEmpty() == false).GroupBy(t => t.receive).Select(t => t.FirstOrDefault().receive).ToList();
var f = new Purchase.fMailForm("PD");
if (f.ShowDialog() != DialogResult.OK) return;
var form_subject = f.tbSubject.Text.Trim();
var form_body = f.htmlEditor1.Html;
var form_to = f.tbTo.Text.Trim();
var form_cc = f.tbCC.Text.Trim();
var form_bcc = f.tbBcc.Text.Trim();
List<string> tolist = new List<string>(); //최종받는사람
List<string> cclist = new List<string>();
List<string> bcclist = new List<string>();
//받는사람
if (form_to.Contains("{요청}") == true) tolist.AddRange(grp_req);
if (form_to.Contains("{수령}") == true) tolist.AddRange(grp_rec);
form_to = form_to.Replace("{요청}", "");
form_to = form_to.Replace("{수령}", "");
tolist.AddRange(form_to.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries));
tolist = ChangeMailAddress(tolist);
//참조
if (form_cc.Contains("{요청}") == true) cclist.AddRange(grp_req);
if (form_cc.Contains("{수령}") == true) cclist.AddRange(grp_rec);
form_cc = form_cc.Replace("{요청}", "");
form_cc = form_cc.Replace("{수령}", "");
cclist.AddRange(form_cc.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries));
cclist = ChangeMailAddress(cclist);
//숨은참조
if (form_bcc.Contains("{요청}") == true) bcclist.AddRange(grp_req);
if (form_bcc.Contains("{수령}") == true) bcclist.AddRange(grp_rec);
form_bcc = form_bcc.Replace("{요청}", "");
form_bcc = form_bcc.Replace("{수령}", "");
bcclist.AddRange(form_bcc.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries));
bcclist = ChangeMailAddress(bcclist);
var datestr = DateTime.Now.ToShortDateString();
if (dtSD.Text == dtED.Text) datestr = dtSD.Text;
else datestr = dtSD.Text + "~" + dtED.Text;
form_subject = form_subject.Replace("{DATE}", datestr);
try
{
Outlook.Application outlookApplication = new Outlook.Application();
var newMail = outlookApplication.CreateItem(OlItemType.olMailItem) as Outlook.MailItem;
newMail.Display();
newMail.Subject = form_subject; // this.tbSubject.Text.Trim(); // dr.title;
newMail.To = string.Join(";", tolist.ToArray());
newMail.CC = string.Join(";", cclist.ToArray());
newMail.BCC = string.Join(";", bcclist.ToArray());
if (f.chkAttach.Checked)
{
var fi = new System.IO.FileInfo(FCOMMON.Util.CurrentPath + "\\Export\\PurchaseCR_" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".xls");
if (fi.Directory.Exists == false) fi.Directory.Create();
///save file
fpSpread1.SaveExcel(fi.FullName,
FarPoint.Excel.ExcelSaveFlags.SaveAsViewed
| FarPoint.Excel.ExcelSaveFlags.SaveAsFiltered
| FarPoint.Excel.ExcelSaveFlags.NoFormulas
| FarPoint.Excel.ExcelSaveFlags.SaveCustomColumnHeaders);
newMail.Attachments.Add(fi.FullName);
}
if (f.chkList.Checked)
{
//목록을 본문에 추가한다
System.Text.StringBuilder sb = new StringBuilder();
sb.AppendLine("<table border='1' cellspacing='0' cellpadding='1'>");
sb.AppendLine("<thead>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>신청</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>요청</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>CR/CF</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>수령</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>SID</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>품명</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>규격</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>수량</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>단가</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>금액</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>공급</td>");
sb.AppendLine("</thead>");
sb.AppendLine("<tbody>");
var col_신청 = fpSpread1_Sheet1.Columns["pdate"].Index;
var col_요청 = fpSpread1_Sheet1.Columns["requestName"].Index;
var col_CRLF = fpSpread1_Sheet1.Columns["crcf"].Index;
var col_수령 = fpSpread1_Sheet1.Columns["receiveName"].Index;
var col_SID = fpSpread1_Sheet1.Columns["sid"].Index;
var col_품명 = fpSpread1_Sheet1.Columns["pumname"].Index;
var col_규격 = fpSpread1_Sheet1.Columns["pumscale"].Index;
var col_수량 = fpSpread1_Sheet1.Columns["pumqty"].Index;
var col_단가 = fpSpread1_Sheet1.Columns["pumprice"].Index;
var col_금액 = fpSpread1_Sheet1.Columns["pumamt"].Index;
var col_공급 = fpSpread1_Sheet1.Columns["supply"].Index;
var col_비고 = fpSpread1_Sheet1.Columns["bigo"].Index;
for (int i = 0; i < this.fpSpread1_Sheet1.RowCount; i++)
{
var v신청 = fpSpread1_Sheet1.Cells[i, col_신청].Value;
var v요청 = fpSpread1_Sheet1.Cells[i, col_요청].Value;
var vCRCF = fpSpread1_Sheet1.Cells[i, col_CRLF].Value;
var v수령 = fpSpread1_Sheet1.Cells[i, col_수령].Value;
var vSID = fpSpread1_Sheet1.Cells[i, col_SID].Value;
var v품명 = fpSpread1_Sheet1.Cells[i, col_품명].Value;
var v규격 = fpSpread1_Sheet1.Cells[i, col_규격].Value;
var v수량 = fpSpread1_Sheet1.Cells[i, col_수량].Value;
var v단가 = fpSpread1_Sheet1.Cells[i, col_단가].Value;
var v금액 = fpSpread1_Sheet1.Cells[i, col_금액].Value;
var v공급 = fpSpread1_Sheet1.Cells[i, col_공급].Value;
var v비고 = fpSpread1_Sheet1.Cells[i, col_비고].Value;
var s신청 = String.Empty;
var s요청 = String.Empty;
var sCRCF = String.Empty;
var s수령 = String.Empty;
var sSID = String.Empty;
var s품명 = String.Empty;
var s규격 = String.Empty;
var s수량 = "0";
var s단가 = "0";
var s금액 = "0";
var s입고 = String.Empty;
var s공급 = String.Empty;
var s비고 = String.Empty;
if (v신청 != null) s신청 = v신청.ToString();
if (v요청 != null) s요청 = v요청.ToString();
if (vCRCF != null) sCRCF = vCRCF.ToString();
if (v수령 != null) s수령 = v수령.ToString();
if (vSID != null) sSID = vSID.ToString();
if (v품명 != null) s품명 = v품명.ToString();
if (v규격 != null) s규격 = v규격.ToString();
if (v수량 != null) s수량 = v수량.ToString();
if (v단가 != null) s단가 = v단가.ToString();
if (v금액 != null) s금액 = v금액.ToString();
if (v공급 != null) s공급 = v공급.ToString();
sb.AppendLine("<tr>");
sb.AppendLine("<td>" + getmaxstr(s신청) + "</td>");
sb.AppendLine("<td>" + getmaxstr(s요청) + "</td>");
sb.AppendLine("<td>" + getmaxstr(sCRCF) + "</td>");
sb.AppendLine("<td>" + getmaxstr(s수령) + "</td>");
sb.AppendLine("<td>" + getmaxstr(sSID) + "</td>");
sb.AppendLine("<td>" + getmaxstr(s품명) + "</td>");
sb.AppendLine("<td>" + getmaxstr(s규격) + "</td>");
sb.AppendLine("<td style='text-align:center'>" + int.Parse(s수량).ToString("N0") + "</td>");
sb.AppendLine("<td style='text-align:right'>" + int.Parse(s단가).ToString("N0") + "</td>");
sb.AppendLine("<td style='text-align:right'>" + int.Parse(s금액).ToString("N0") + "</td>");
sb.AppendLine("<td>" + getmaxstr(s공급) + "</td>");
sb.AppendLine("</tr>");
}
sb.AppendLine("</tbody>");
sb.AppendLine("</table>");
form_body += sb.ToString();
}
//newMail.BodyFormat = OlBodyFormat.olFormatHTML;
form_body = form_body.Replace("{DATE}", datestr);
newMail.HTMLBody = form_body + newMail.HTMLBody; //
}
catch (Exception ex)
{
util.MsgE("전송실패\n\n" + ex.Message + "\n\n" +
"아웃룩의 설정이 정상인지 확인하세요");
}
}
private void toolStripButton3_Click_1(object sender, EventArgs e)
{
var fn = System.IO.Path.Combine(FCOMMON.Util.CurrentPath, "PurcManual.pdf");
@@ -1437,189 +1401,25 @@ namespace FEQ0000
FormattingData();
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
var cate = "PO";
MailSendNoForm(true);
}
var db = new DataClasses1DataContext();
var dr = db.MailForm.Where(t => t.cate == cate).FirstOrDefault();
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
MailSendNoForm(false);
}
//현재표시데이터중에 수신자목록을 가져온다
var drows = (dsPurchase.EETGW_PurchaseEBRow[])(this.dsPurchase.EETGW_PurchaseEB.Select(this.bs.Filter, this.bs.Sort));
var grp_req = drows.Where(t => t.request.isEmpty() == false).GroupBy(t => t.request).Select(t => t.FirstOrDefault().request).ToList();
var grp_rec = drows.Where(t => t.receive.isEmpty() == false).GroupBy(t => t.receive).Select(t => t.FirstOrDefault().receive).ToList();
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
MailSendNoForm(true, "PD");
}
var f = new Purchase.fMailForm(cate);
if (f.ShowDialog() != DialogResult.OK) return;
var form_subject = f.tbSubject.Text.Trim();
var form_body = f.htmlEditor1.Html;
var form_to = f.tbTo.Text.Trim();
var form_cc = f.tbCC.Text.Trim();
var form_bcc = f.tbBcc.Text.Trim();
List<string> tolist = new List<string>(); //최종받는사람
List<string> cclist = new List<string>();
List<string> bcclist = new List<string>();
//받는사람
if (form_to.Contains("{요청}") == true) tolist.AddRange(grp_req);
if (form_to.Contains("{수령}") == true) tolist.AddRange(grp_rec);
form_to = form_to.Replace("{요청}", "");
form_to = form_to.Replace("{수령}", "");
tolist.AddRange(form_to.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries));
tolist = ChangeMailAddress(tolist);
//참조
if (form_cc.Contains("{요청}") == true) cclist.AddRange(grp_req);
if (form_cc.Contains("{수령}") == true) cclist.AddRange(grp_rec);
form_cc = form_cc.Replace("{요청}", "");
form_cc = form_cc.Replace("{수령}", "");
cclist.AddRange(form_cc.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries));
cclist = ChangeMailAddress(cclist);
//숨은참조
if (form_bcc.Contains("{요청}") == true) bcclist.AddRange(grp_req);
if (form_bcc.Contains("{수령}") == true) bcclist.AddRange(grp_rec);
form_bcc = form_bcc.Replace("{요청}", "");
form_bcc = form_bcc.Replace("{수령}", "");
bcclist.AddRange(form_bcc.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries));
bcclist = ChangeMailAddress(bcclist);
var datestr = DateTime.Now.ToShortDateString();
if (dtSD.Text == dtED.Text) datestr = dtSD.Text;
else datestr = dtSD.Text + "~" + dtED.Text;
form_subject = form_subject.Replace("{DATE}", datestr);
try
{
Outlook.Application outlookApplication = new Outlook.Application();
var newMail = outlookApplication.CreateItem(OlItemType.olMailItem) as Outlook.MailItem;
newMail.Display();
newMail.Subject = form_subject; // this.tbSubject.Text.Trim(); // dr.title;
newMail.To = string.Join(";", tolist.ToArray());
newMail.CC = string.Join(";", cclist.ToArray());
newMail.BCC = string.Join(";", bcclist.ToArray());
if (f.chkAttach.Checked)
{
var fi = new System.IO.FileInfo(FCOMMON.Util.CurrentPath + "\\Export\\PurchaseListEB_" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".xls");
if (fi.Directory.Exists == false) fi.Directory.Create();
///save file
fpSpread1.SaveExcel(fi.FullName,
FarPoint.Excel.ExcelSaveFlags.SaveAsViewed
| FarPoint.Excel.ExcelSaveFlags.SaveAsFiltered
| FarPoint.Excel.ExcelSaveFlags.NoFormulas
| FarPoint.Excel.ExcelSaveFlags.SaveCustomColumnHeaders);
newMail.Attachments.Add(fi.FullName);
}
if (f.chkList.Checked)
{
//목록을 본문에 추가한다
System.Text.StringBuilder sb = new StringBuilder();
sb.AppendLine("<table border='1' cellspacing='0' cellpadding='1'>");
sb.AppendLine("<thead>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>신청</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>요청</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>CR/CF</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>수령</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>SID</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>품명</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>규격</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>수량</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>단가</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>금액</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>공급</td>");
sb.AppendLine("</thead>");
sb.AppendLine("<tbody>");
var col_신청 = fpSpread1_Sheet1.Columns["pdate"].Index;
var col_요청 = fpSpread1_Sheet1.Columns["requestName"].Index;
var col_CRLF = fpSpread1_Sheet1.Columns["crcf"].Index;
var col_수령 = fpSpread1_Sheet1.Columns["receiveName"].Index;
var col_SID = fpSpread1_Sheet1.Columns["sid"].Index;
var col_품명 = fpSpread1_Sheet1.Columns["pumname"].Index;
var col_규격 = fpSpread1_Sheet1.Columns["pumscale"].Index;
var col_수량 = fpSpread1_Sheet1.Columns["pumqty"].Index;
var col_단가 = fpSpread1_Sheet1.Columns["pumprice"].Index;
var col_금액 = fpSpread1_Sheet1.Columns["pumamt"].Index;
var col_공급 = fpSpread1_Sheet1.Columns["supply"].Index;
var col_비고 = fpSpread1_Sheet1.Columns["bigo"].Index;
for (int i = 0; i < this.fpSpread1_Sheet1.RowCount; i++)
{
var v신청 = fpSpread1_Sheet1.Cells[i, col_신청].Value;
var v요청 = fpSpread1_Sheet1.Cells[i, col_요청].Value;
var vCRCF = fpSpread1_Sheet1.Cells[i, col_CRLF].Value;
var v수령 = fpSpread1_Sheet1.Cells[i, col_수령].Value;
var vSID = fpSpread1_Sheet1.Cells[i, col_SID].Value;
var v품명 = fpSpread1_Sheet1.Cells[i, col_품명].Value;
var v규격 = fpSpread1_Sheet1.Cells[i, col_규격].Value;
var v수량 = fpSpread1_Sheet1.Cells[i, col_수량].Value;
var v단가 = fpSpread1_Sheet1.Cells[i, col_단가].Value;
var v금액 = fpSpread1_Sheet1.Cells[i, col_금액].Value;
var v공급 = fpSpread1_Sheet1.Cells[i, col_공급].Value;
var v비고 = fpSpread1_Sheet1.Cells[i, col_비고].Value;
var s신청 = String.Empty;
var s요청 = String.Empty;
var sCRCF = String.Empty;
var s수령 = String.Empty;
var sSID = String.Empty;
var s품명 = String.Empty;
var s규격 = String.Empty;
var s수량 = "0";
var s단가 = "0";
var s금액 = "0";
var s입고 = String.Empty;
var s공급 = String.Empty;
var s비고 = String.Empty;
if (v신청 != null) s신청 = v신청.ToString();
if (v요청 != null) s요청 = v요청.ToString();
if (vCRCF != null) sCRCF = vCRCF.ToString();
if (v수령 != null) s수령 = v수령.ToString();
if (vSID != null) sSID = vSID.ToString();
if (v품명 != null) s품명 = v품명.ToString();
if (v규격 != null) s규격 = v규격.ToString();
if (v수량 != null) s수량 = v수량.ToString();
if (v단가 != null) s단가 = v단가.ToString();
if (v금액 != null) s금액 = v금액.ToString();
if (v공급 != null) s공급 = v공급.ToString();
sb.AppendLine("<tr>");
sb.AppendLine("<td>" + getmaxstr(s신청) + "</td>");
sb.AppendLine("<td>" + getmaxstr(s요청) + "</td>");
sb.AppendLine("<td>" + getmaxstr(sCRCF) + "</td>");
sb.AppendLine("<td>" + getmaxstr(s수령) + "</td>");
sb.AppendLine("<td>" + getmaxstr(sSID) + "</td>");
sb.AppendLine("<td>" + getmaxstr(s품명) + "</td>");
sb.AppendLine("<td>" + getmaxstr(s규격) + "</td>");
sb.AppendLine("<td style='text-align:center'>" + int.Parse(s수량).ToString("N0") + "</td>");
sb.AppendLine("<td style='text-align:right'>" + int.Parse(s단가).ToString("N0") + "</td>");
sb.AppendLine("<td style='text-align:right'>" + int.Parse(s금액).ToString("N0") + "</td>");
sb.AppendLine("<td>" + getmaxstr(s공급) + "</td>");
sb.AppendLine("</tr>");
}
sb.AppendLine("</tbody>");
sb.AppendLine("</table>");
form_body += sb.ToString();
}
//newMail.BodyFormat = OlBodyFormat.olFormatHTML;
form_body = form_body.Replace("{DATE}", datestr);
newMail.HTMLBody = form_body + newMail.HTMLBody; //
}
catch (Exception ex)
{
util.MsgE("전송실패\n\n" + ex.Message + "\n\n" +
"아웃룩의 설정이 정상인지 확인하세요");
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
MailSendNoForm(false, "PD");
}
}
}

View File

@@ -281,7 +281,7 @@
brxxceG+j2Kl3h27zR5GDDxbI4jQ6H0RFvYPxczhJbhCpsgAAAAASUVORK5CYII=
</value>
</data>
<data name="입고품목메일전송ToolStripMenuItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<data name="메일전송ToolStripMenuItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
R0lGODlhEAAQAIQfAPr8/VVritvj7IqsyElVa+Ps9MvT2rvc/aPQ/KrU/Or0/nmYspzN/LbZ/FJgeXiQ
q0NLXHWPrJnA1sDf/CkxQ9RSXD5FVa/X/H2fudPn8HyjwMPg/WV/nG+Or////////yH/C05FVFNDQVBF

View File

@@ -314,11 +314,6 @@ namespace FEQ0000
}
private void toolStripButton3_Click(object sender, EventArgs e)
{
}
private void bs_CurrentChanged(object sender, EventArgs e)
{
var dr = bs.Current as dsPurchase.EETGW_PurchaseCRRow;
@@ -328,10 +323,7 @@ namespace FEQ0000
//else richTextBox2.Text = dr.bigo;
}
private void toolStripButton4_Click(object sender, EventArgs e)
{
}
string getmaxstr(string src, int len = 30)
{
@@ -440,77 +432,25 @@ namespace FEQ0000
newMail.To = string.Join(";", tolist.ToArray());
newMail.CC = string.Join(";", cclist.ToArray());
newMail.BCC = string.Join(";", bcclist.ToArray());
string fn = "";
if (f.chkAttach.Checked)
{
var fi = new System.IO.FileInfo(FCOMMON.Util.CurrentPath + "\\Export\\Purchase_confirmcr_" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".xls");
var fi = new System.IO.FileInfo(FCOMMON.Util.CurrentPath + "\\Export\\Purchase_confirmeb_" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".xls");
if (fi.Directory.Exists == false) fi.Directory.Create();
fn = fi.FullName;
//FCOMMON.Util.savetoexcel(this.dataGridView1, fi.FullName);
FCOMMON.Util.savetoexcel(this.dataGridView1, fi.FullName);
newMail.Attachments.Add(fi.FullName);
//newMail.Attachments.Add(fi.FullName);
}
if (f.chkList.Checked)
{
var rows = this.rows;
var tabledata = UTIL_EQ0000.MakeDataTableToHTML(rows, fn);
//목록을 본문에 추가한다
System.Text.StringBuilder sb = new StringBuilder();
sb.AppendLine("<table border='1' cellspacing='0' cellpadding='1'>");
sb.AppendLine("<thead>");
foreach (DataGridViewColumn col in this.dataGridView1.Columns)
{
if (col.DataPropertyName.ToLower() == "pumqty") continue;
sb.AppendLine($"<td style='text-align:center;background-color: aqua;'>{col.HeaderText}</td>");
}
sb.AppendLine("</thead>");
sb.AppendLine("<tbody>");
for (int i = 0; i < this.dataGridView1.RowCount; i++)
{
sb.AppendLine("<tr>");
foreach (DataGridViewColumn col in this.dataGridView1.Columns)
{
if (col.DataPropertyName.ToLower() == "pumqty") continue;
var v = dataGridView1.Rows[i].Cells[col.Index].Value;
string value = "";
if (v != null) value = v.ToString();
if (col.ValueType == typeof(int))
{
var ivalue = (int)v;
sb.AppendLine($"<td style='text-align:center'>{ivalue:N0}</td>");
}
else if (col.ValueType == typeof(decimal))
{
var ivalue = (decimal)v;
sb.AppendLine($"<td style='text-align:center'>{ivalue:N0}</td>");
}
else if (col.ValueType == typeof(float))
{
var ivalue = (float)v;
sb.AppendLine($"<td style='text-align:center'>{ivalue:N1}</td>");
}
else if (col.ValueType == typeof(double))
{
var ivalue = (double)v;
sb.AppendLine($"<td style='text-align:center'>{ivalue:N1}</td>");
}
else sb.AppendLine($"<td>{getmaxstr(value)}</td>");
}
sb.AppendLine("</tr>");
}
sb.AppendLine("</tbody>");
sb.AppendLine("</table>");
sb.AppendLine($"항목:{this.bs.Count}건,합계금액:{lbSum.Text}");
form_body = form_body.Replace("{body}", sb.ToString());
}
//newMail.BodyFormat = OlBodyFormat.olFormatHTML;
if (fn.isEmpty() == false)
newMail.Attachments.Add(fn);
form_body = form_body.Replace("{body}", tabledata);
newMail.HTMLBody = form_body + newMail.HTMLBody; //
}
catch (Exception ex)

View File

@@ -30,37 +30,37 @@
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fPurchaseEB));
FarPoint.Win.Spread.CellType.TextCellType textCellType81 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType82 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType83 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType84 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType85 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType86 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType87 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType88 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType89 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType90 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType41 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType91 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType42 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType43 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType92 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType44 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType93 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType45 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType46 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType94 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType47 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType48 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType95 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType96 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType97 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType49 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType98 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType99 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType5 = new FarPoint.Win.Spread.CellType.CheckBoxCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType50 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType100 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType121 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType122 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType123 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType124 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType125 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType126 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType127 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType128 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType129 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType130 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType61 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType131 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType62 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType63 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType132 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType64 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType133 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType65 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType66 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType134 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType67 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType68 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType135 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType136 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType137 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType69 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType138 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType139 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType7 = new FarPoint.Win.Spread.CellType.CheckBoxCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType70 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType140 = new FarPoint.Win.Spread.CellType.TextCellType();
this.dsPurchase = new FEQ0000.dsPurchase();
this.bs = new System.Windows.Forms.BindingSource(this.components);
this.tam = new FEQ0000.dsPurchaseTableAdapters.TableAdapterManager();
@@ -94,10 +94,8 @@
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripButton7 = new System.Windows.Forms.ToolStripDropDownButton();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator();
this.cm1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.columnSizeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@@ -143,6 +141,12 @@
this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator7 = new System.Windows.Forms.ToolStripSeparator();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
@@ -255,6 +259,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";
@@ -381,6 +386,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, 26);
this.tbFind.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tbFind_KeyDown);
@@ -439,10 +445,9 @@
// toolStripButton7
//
this.toolStripButton7.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.ToolStripMenuItem,
this.ToolStripMenuItem,
this.ToolStripMenuItem,
this.ToolStripMenuItem,
this.ToolStripMenuItem,
this.toolStripMenuItem2});
this.toolStripButton7.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton7.Image")));
this.toolStripButton7.ImageTransparentColor = System.Drawing.Color.Magenta;
@@ -450,14 +455,6 @@
this.toolStripButton7.Size = new System.Drawing.Size(60, 23);
this.toolStripButton7.Text = "기능";
//
// 입고품목메일전송ToolStripMenuItem
//
this.ToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("입고품목메일전송ToolStripMenuItem.Image")));
this.ToolStripMenuItem.Name = "입고품목메일전송ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(182, 22);
this.ToolStripMenuItem.Text = "입고 품목 메일 전송";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// 엑셀에서가져오기ToolStripMenuItem
//
this.ToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("엑셀에서가져오기ToolStripMenuItem.Image")));
@@ -474,13 +471,6 @@
this.ToolStripMenuItem.Text = "견적서 폴더 열기";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// 현재목록메일전송ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "현재목록메일전송ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(182, 22);
this.ToolStripMenuItem.Text = "현재 목록 메일 전송";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// toolStripMenuItem2
//
this.toolStripMenuItem2.Name = "toolStripMenuItem2";
@@ -661,6 +651,7 @@
// dtSD
//
this.dtSD.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.dtSD.Font = new System.Drawing.Font("맑은 고딕", 9F);
this.dtSD.Name = "dtSD";
this.dtSD.Size = new System.Drawing.Size(75, 37);
this.dtSD.Text = "1982-11-23";
@@ -677,6 +668,7 @@
// dtED
//
this.dtED.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.dtED.Font = new System.Drawing.Font("맑은 고딕", 9F);
this.dtED.Name = "dtED";
this.dtED.Size = new System.Drawing.Size(75, 37);
this.dtED.Text = "1982-11-23";
@@ -732,6 +724,7 @@
// tbRequest
//
this.tbRequest.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.tbRequest.Font = new System.Drawing.Font("맑은 고딕", 9F);
this.tbRequest.Name = "tbRequest";
this.tbRequest.Size = new System.Drawing.Size(70, 37);
this.tbRequest.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center;
@@ -878,7 +871,7 @@
this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 37F;
this.fpSpread1_Sheet1.Columns.Get(0).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(0).AllowAutoSort = true;
this.fpSpread1_Sheet1.Columns.Get(0).CellType = textCellType81;
this.fpSpread1_Sheet1.Columns.Get(0).CellType = textCellType121;
this.fpSpread1_Sheet1.Columns.Get(0).DataField = "pdate";
this.fpSpread1_Sheet1.Columns.Get(0).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(0).Label = "구매신청일";
@@ -887,7 +880,7 @@
this.fpSpread1_Sheet1.Columns.Get(0).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(1).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(1).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType82;
this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType122;
this.fpSpread1_Sheet1.Columns.Get(1).DataField = "state";
this.fpSpread1_Sheet1.Columns.Get(1).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(1).Label = "상태";
@@ -895,7 +888,7 @@
this.fpSpread1_Sheet1.Columns.Get(1).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(1).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(2).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType83;
this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType123;
this.fpSpread1_Sheet1.Columns.Get(2).DataField = "site";
this.fpSpread1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(2).Label = "SITE";
@@ -903,7 +896,7 @@
this.fpSpread1_Sheet1.Columns.Get(2).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(2).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(3).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType84;
this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType124;
this.fpSpread1_Sheet1.Columns.Get(3).DataField = "dept";
this.fpSpread1_Sheet1.Columns.Get(3).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(3).Label = "분류";
@@ -911,13 +904,13 @@
this.fpSpread1_Sheet1.Columns.Get(3).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(3).Width = 100F;
this.fpSpread1_Sheet1.Columns.Get(4).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType85;
this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType125;
this.fpSpread1_Sheet1.Columns.Get(4).DataField = "requestName";
this.fpSpread1_Sheet1.Columns.Get(4).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(4).Label = "요청";
this.fpSpread1_Sheet1.Columns.Get(4).Tag = "requestName";
this.fpSpread1_Sheet1.Columns.Get(4).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType86;
this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType126;
this.fpSpread1_Sheet1.Columns.Get(5).DataField = "sc";
this.fpSpread1_Sheet1.Columns.Get(5).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(5).Label = "SC#";
@@ -925,7 +918,7 @@
this.fpSpread1_Sheet1.Columns.Get(5).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(5).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(6).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType87;
this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType127;
this.fpSpread1_Sheet1.Columns.Get(6).DataField = "orderno";
this.fpSpread1_Sheet1.Columns.Get(6).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(6).Label = "SCR/CF";
@@ -933,208 +926,208 @@
this.fpSpread1_Sheet1.Columns.Get(6).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(6).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(6).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType88;
this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType128;
this.fpSpread1_Sheet1.Columns.Get(7).DataField = "receiveName";
this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(7).Label = "수령";
this.fpSpread1_Sheet1.Columns.Get(7).Tag = "receiveName";
this.fpSpread1_Sheet1.Columns.Get(7).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(8).AllowAutoSort = true;
this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType89;
this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType129;
this.fpSpread1_Sheet1.Columns.Get(8).DataField = "sid";
this.fpSpread1_Sheet1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(8).Label = "SID#";
this.fpSpread1_Sheet1.Columns.Get(8).Tag = "sid";
this.fpSpread1_Sheet1.Columns.Get(8).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(8).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(9).CellType = textCellType90;
this.fpSpread1_Sheet1.Columns.Get(9).CellType = textCellType130;
this.fpSpread1_Sheet1.Columns.Get(9).DataField = "pumname";
this.fpSpread1_Sheet1.Columns.Get(9).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(9).Label = "품명";
this.fpSpread1_Sheet1.Columns.Get(9).Tag = "pumname";
this.fpSpread1_Sheet1.Columns.Get(9).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(10).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
numberCellType41.DecimalPlaces = 0;
numberCellType41.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType41.MaximumValue = 2147483647D;
numberCellType41.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(10).CellType = numberCellType41;
numberCellType61.DecimalPlaces = 0;
numberCellType61.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType61.MaximumValue = 2147483647D;
numberCellType61.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(10).CellType = numberCellType61;
this.fpSpread1_Sheet1.Columns.Get(10).DataField = "pumidx";
this.fpSpread1_Sheet1.Columns.Get(10).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(10).Label = "*";
this.fpSpread1_Sheet1.Columns.Get(10).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(11).CellType = textCellType91;
this.fpSpread1_Sheet1.Columns.Get(11).CellType = textCellType131;
this.fpSpread1_Sheet1.Columns.Get(11).DataField = "pumscale";
this.fpSpread1_Sheet1.Columns.Get(11).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(11).Label = "규격";
this.fpSpread1_Sheet1.Columns.Get(11).Tag = "pumscale";
this.fpSpread1_Sheet1.Columns.Get(11).Width = 119F;
numberCellType42.DecimalPlaces = 0;
numberCellType42.NegativeRed = true;
numberCellType42.NullDisplay = "--";
numberCellType42.Separator = ",";
numberCellType42.ShowSeparator = true;
numberCellType42.ShrinkToFit = true;
this.fpSpread1_Sheet1.Columns.Get(12).CellType = numberCellType42;
numberCellType62.DecimalPlaces = 0;
numberCellType62.NegativeRed = true;
numberCellType62.NullDisplay = "--";
numberCellType62.Separator = ",";
numberCellType62.ShowSeparator = true;
numberCellType62.ShrinkToFit = true;
this.fpSpread1_Sheet1.Columns.Get(12).CellType = numberCellType62;
this.fpSpread1_Sheet1.Columns.Get(12).DataField = "pumqtyReq";
this.fpSpread1_Sheet1.Columns.Get(12).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(12).Label = "수량\r\n(요청)";
this.fpSpread1_Sheet1.Columns.Get(12).Tag = "pumqty";
this.fpSpread1_Sheet1.Columns.Get(12).Width = 119F;
numberCellType43.DecimalPlaces = 0;
this.fpSpread1_Sheet1.Columns.Get(13).CellType = numberCellType43;
numberCellType63.DecimalPlaces = 0;
this.fpSpread1_Sheet1.Columns.Get(13).CellType = numberCellType63;
this.fpSpread1_Sheet1.Columns.Get(13).DataField = "pumqty";
this.fpSpread1_Sheet1.Columns.Get(13).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(13).Label = "수량\r\n(구매)";
this.fpSpread1_Sheet1.Columns.Get(13).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(13).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(14).CellType = textCellType92;
this.fpSpread1_Sheet1.Columns.Get(14).CellType = textCellType132;
this.fpSpread1_Sheet1.Columns.Get(14).DataField = "pumunit";
this.fpSpread1_Sheet1.Columns.Get(14).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(14).Label = "단위";
this.fpSpread1_Sheet1.Columns.Get(14).Width = 119F;
numberCellType44.DecimalPlaces = 2;
this.fpSpread1_Sheet1.Columns.Get(15).CellType = numberCellType44;
numberCellType64.DecimalPlaces = 2;
this.fpSpread1_Sheet1.Columns.Get(15).CellType = numberCellType64;
this.fpSpread1_Sheet1.Columns.Get(15).DataField = "pumpriceD";
this.fpSpread1_Sheet1.Columns.Get(15).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
this.fpSpread1_Sheet1.Columns.Get(15).Label = "단가\r\n(해외)";
this.fpSpread1_Sheet1.Columns.Get(15).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(15).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(16).CellType = textCellType93;
this.fpSpread1_Sheet1.Columns.Get(16).CellType = textCellType133;
this.fpSpread1_Sheet1.Columns.Get(16).DataField = "currency";
this.fpSpread1_Sheet1.Columns.Get(16).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(16).Label = "통화";
this.fpSpread1_Sheet1.Columns.Get(16).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(16).Width = 119F;
numberCellType45.DecimalPlaces = 0;
numberCellType45.MaximumValue = 9999999999999.99D;
numberCellType45.MinimumValue = -9999999999999.99D;
numberCellType45.NegativeRed = true;
numberCellType45.NullDisplay = "--";
numberCellType45.Separator = ",";
numberCellType45.ShowSeparator = true;
numberCellType45.ShrinkToFit = true;
this.fpSpread1_Sheet1.Columns.Get(17).CellType = numberCellType45;
numberCellType65.DecimalPlaces = 0;
numberCellType65.MaximumValue = 9999999999999.99D;
numberCellType65.MinimumValue = -9999999999999.99D;
numberCellType65.NegativeRed = true;
numberCellType65.NullDisplay = "--";
numberCellType65.Separator = ",";
numberCellType65.ShowSeparator = true;
numberCellType65.ShrinkToFit = true;
this.fpSpread1_Sheet1.Columns.Get(17).CellType = numberCellType65;
this.fpSpread1_Sheet1.Columns.Get(17).DataField = "pumprice";
this.fpSpread1_Sheet1.Columns.Get(17).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
this.fpSpread1_Sheet1.Columns.Get(17).Label = "단가";
this.fpSpread1_Sheet1.Columns.Get(17).Tag = "pumprice";
this.fpSpread1_Sheet1.Columns.Get(17).Width = 119F;
numberCellType46.DecimalPlaces = 0;
numberCellType46.MaximumValue = 9999999999999.99D;
numberCellType46.MinimumValue = -9999999999999.99D;
numberCellType46.NegativeRed = true;
numberCellType46.NullDisplay = "--";
numberCellType46.Separator = ",";
numberCellType46.ShowSeparator = true;
numberCellType46.ShrinkToFit = true;
this.fpSpread1_Sheet1.Columns.Get(18).CellType = numberCellType46;
numberCellType66.DecimalPlaces = 0;
numberCellType66.MaximumValue = 9999999999999.99D;
numberCellType66.MinimumValue = -9999999999999.99D;
numberCellType66.NegativeRed = true;
numberCellType66.NullDisplay = "--";
numberCellType66.Separator = ",";
numberCellType66.ShowSeparator = true;
numberCellType66.ShrinkToFit = true;
this.fpSpread1_Sheet1.Columns.Get(18).CellType = numberCellType66;
this.fpSpread1_Sheet1.Columns.Get(18).DataField = "pumamt";
this.fpSpread1_Sheet1.Columns.Get(18).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
this.fpSpread1_Sheet1.Columns.Get(18).Label = "합계금액";
this.fpSpread1_Sheet1.Columns.Get(18).Tag = "pumamt";
this.fpSpread1_Sheet1.Columns.Get(18).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(19).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(19).CellType = textCellType94;
this.fpSpread1_Sheet1.Columns.Get(19).CellType = textCellType134;
this.fpSpread1_Sheet1.Columns.Get(19).DataField = "supply";
this.fpSpread1_Sheet1.Columns.Get(19).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(19).Label = "공급업체";
this.fpSpread1_Sheet1.Columns.Get(19).Tag = "supply";
this.fpSpread1_Sheet1.Columns.Get(19).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(20).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
numberCellType47.DecimalPlaces = 0;
numberCellType47.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType47.MaximumValue = 2147483647D;
numberCellType47.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(20).CellType = numberCellType47;
numberCellType67.DecimalPlaces = 0;
numberCellType67.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType67.MaximumValue = 2147483647D;
numberCellType67.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(20).CellType = numberCellType67;
this.fpSpread1_Sheet1.Columns.Get(20).DataField = "supplyidx";
this.fpSpread1_Sheet1.Columns.Get(20).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(20).Label = "*";
this.fpSpread1_Sheet1.Columns.Get(20).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(20).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(21).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
numberCellType48.DecimalPlaces = 0;
numberCellType48.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType48.MaximumValue = 2147483647D;
numberCellType48.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(21).CellType = numberCellType48;
numberCellType68.DecimalPlaces = 0;
numberCellType68.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType68.MaximumValue = 2147483647D;
numberCellType68.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(21).CellType = numberCellType68;
this.fpSpread1_Sheet1.Columns.Get(21).DataField = "projectidx";
this.fpSpread1_Sheet1.Columns.Get(21).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(21).Label = "*";
this.fpSpread1_Sheet1.Columns.Get(21).Tag = "projectidx";
this.fpSpread1_Sheet1.Columns.Get(21).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(21).Width = 119F;
textCellType95.WordWrap = true;
this.fpSpread1_Sheet1.Columns.Get(22).CellType = textCellType95;
textCellType135.WordWrap = true;
this.fpSpread1_Sheet1.Columns.Get(22).CellType = textCellType135;
this.fpSpread1_Sheet1.Columns.Get(22).DataField = "bigo";
this.fpSpread1_Sheet1.Columns.Get(22).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(22).Label = "비고(구매사유)\r\n(요청자)";
this.fpSpread1_Sheet1.Columns.Get(22).Tag = "bigo";
this.fpSpread1_Sheet1.Columns.Get(22).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(22).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(23).CellType = textCellType96;
this.fpSpread1_Sheet1.Columns.Get(23).CellType = textCellType136;
this.fpSpread1_Sheet1.Columns.Get(23).DataField = "edate";
this.fpSpread1_Sheet1.Columns.Get(23).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(23).Label = "입고예정";
this.fpSpread1_Sheet1.Columns.Get(23).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(23).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(24).CellType = textCellType97;
this.fpSpread1_Sheet1.Columns.Get(24).CellType = textCellType137;
this.fpSpread1_Sheet1.Columns.Get(24).DataField = "indate";
this.fpSpread1_Sheet1.Columns.Get(24).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(24).Label = "입고일";
this.fpSpread1_Sheet1.Columns.Get(24).Tag = "indate";
this.fpSpread1_Sheet1.Columns.Get(24).Width = 119F;
numberCellType49.DecimalPlaces = 0;
numberCellType49.NegativeRed = true;
numberCellType49.ShowSeparator = true;
this.fpSpread1_Sheet1.Columns.Get(25).CellType = numberCellType49;
numberCellType69.DecimalPlaces = 0;
numberCellType69.NegativeRed = true;
numberCellType69.ShowSeparator = true;
this.fpSpread1_Sheet1.Columns.Get(25).CellType = numberCellType69;
this.fpSpread1_Sheet1.Columns.Get(25).DataField = "inqty";
this.fpSpread1_Sheet1.Columns.Get(25).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(25).Label = "입고수량";
this.fpSpread1_Sheet1.Columns.Get(25).Tag = "inqty";
this.fpSpread1_Sheet1.Columns.Get(25).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(25).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(26).CellType = textCellType98;
this.fpSpread1_Sheet1.Columns.Get(26).CellType = textCellType138;
this.fpSpread1_Sheet1.Columns.Get(26).DataField = "po";
this.fpSpread1_Sheet1.Columns.Get(26).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(26).Label = "PO#";
this.fpSpread1_Sheet1.Columns.Get(26).Tag = "po";
this.fpSpread1_Sheet1.Columns.Get(26).Width = 119F;
textCellType99.WordWrap = true;
this.fpSpread1_Sheet1.Columns.Get(27).CellType = textCellType99;
textCellType139.WordWrap = true;
this.fpSpread1_Sheet1.Columns.Get(27).CellType = textCellType139;
this.fpSpread1_Sheet1.Columns.Get(27).DataField = "chkremark";
this.fpSpread1_Sheet1.Columns.Get(27).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(27).Label = "비고\r\n(담당자)";
this.fpSpread1_Sheet1.Columns.Get(27).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(27).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(28).CellType = checkBoxCellType5;
this.fpSpread1_Sheet1.Columns.Get(28).CellType = checkBoxCellType7;
this.fpSpread1_Sheet1.Columns.Get(28).DataField = "isdel";
this.fpSpread1_Sheet1.Columns.Get(28).Label = "삭제됨";
this.fpSpread1_Sheet1.Columns.Get(28).Tag = "isdel";
this.fpSpread1_Sheet1.Columns.Get(28).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(29).BackColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(29).CellType = numberCellType50;
this.fpSpread1_Sheet1.Columns.Get(29).CellType = numberCellType70;
this.fpSpread1_Sheet1.Columns.Get(29).DataField = "idx";
this.fpSpread1_Sheet1.Columns.Get(29).ForeColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(29).Tag = "idx";
this.fpSpread1_Sheet1.Columns.Get(29).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(29).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(30).BackColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(30).CellType = textCellType100;
this.fpSpread1_Sheet1.Columns.Get(30).CellType = textCellType140;
this.fpSpread1_Sheet1.Columns.Get(30).DataField = "conf_status";
this.fpSpread1_Sheet1.Columns.Get(30).ForeColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(30).Tag = "conf_status";
this.fpSpread1_Sheet1.Columns.Get(30).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(30).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(31).BackColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(31).CellType = textCellType100;
this.fpSpread1_Sheet1.Columns.Get(31).CellType = textCellType140;
this.fpSpread1_Sheet1.Columns.Get(31).DataField = "conf_request";
this.fpSpread1_Sheet1.Columns.Get(31).ForeColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(31).Tag = "conf_request";
this.fpSpread1_Sheet1.Columns.Get(31).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(31).Width = 119F;
this.fpSpread1_Sheet1.Columns.Get(32).BackColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(32).CellType = textCellType100;
this.fpSpread1_Sheet1.Columns.Get(32).CellType = textCellType140;
this.fpSpread1_Sheet1.Columns.Get(32).DataField = "conf_reponse";
this.fpSpread1_Sheet1.Columns.Get(32).ForeColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(32).Tag = "conf_reponse";
@@ -1171,6 +1164,52 @@
this.label2.Text = "--";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// 메일전송ToolStripMenuItem
//
this.ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.ToolStripMenuItem,
this.ToolStripMenuItem,
this.toolStripSeparator7,
this.ToolStripMenuItem,
this.ToolStripMenuItem});
this.ToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("메일전송ToolStripMenuItem.Image")));
this.ToolStripMenuItem.Name = "메일전송ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "메일 전송";
//
// 현재목록ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "현재목록ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "현재목록";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// 선택목록ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "선택목록ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "선택목록";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// toolStripSeparator7
//
this.toolStripSeparator7.Name = "toolStripSeparator7";
this.toolStripSeparator7.Size = new System.Drawing.Size(177, 6);
//
// 현재목록입고양식ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "현재목록입고양식ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "현재목록(입고양식)";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// 선택목록입고양식ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "선택목록입고양식ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "선택목록(입고양식)";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// fPurchaseEB
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -1271,7 +1310,6 @@
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripButton toolStripButton6;
private System.Windows.Forms.ToolStripDropDownButton toolStripButton7;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripButton toolStripButton4;
@@ -1280,9 +1318,14 @@
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private dsPurchaseTableAdapters.EETGW_PurchaseEBTableAdapter ta;
private System.Windows.Forms.ToolStripButton toolStripButton8;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem2;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator7;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
}
}

View File

@@ -1015,101 +1015,7 @@ namespace FEQ0000
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
var cate = "PF";
var db = new DataClasses1DataContext();
var dr = db.MailForm.Where(t => t.cate == cate).FirstOrDefault();
//현재표시데이터중에 수신자목록을 가져온다
var drows = (dsPurchase.EETGW_PurchaseEBRow[])(this.dsPurchase.EETGW_PurchaseEB.Select(this.bs.Filter, this.bs.Sort));
var grp_req = drows.Where(t => t.request.isEmpty() == false).GroupBy(t => t.request).Select(t => t.FirstOrDefault().request).ToList();
var grp_rec = drows.Where(t => t.receive.isEmpty() == false).GroupBy(t => t.receive).Select(t => t.FirstOrDefault().receive).ToList();
var f = new Purchase.fMailForm(cate);
if (f.ShowDialog() != DialogResult.OK) return;
var form_subject = f.tbSubject.Text.Trim();
var form_body = f.htmlEditor1.Html;
var form_to = f.tbTo.Text.Trim();
var form_cc = f.tbCC.Text.Trim();
var form_bcc = f.tbBcc.Text.Trim();
List<string> tolist = new List<string>(); //최종받는사람
List<string> cclist = new List<string>();
List<string> bcclist = new List<string>();
//받는사람
if (form_to.Contains("{요청}") == true) tolist.AddRange(grp_req);
if (form_to.Contains("{수령}") == true) tolist.AddRange(grp_rec);
form_to = form_to.Replace("{요청}", "");
form_to = form_to.Replace("{수령}", "");
tolist.AddRange(form_to.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries));
tolist = ChangeMailAddress(tolist);
//참조
if (form_cc.Contains("{요청}") == true) cclist.AddRange(grp_req);
if (form_cc.Contains("{수령}") == true) cclist.AddRange(grp_rec);
form_cc = form_cc.Replace("{요청}", "");
form_cc = form_cc.Replace("{수령}", "");
cclist.AddRange(form_cc.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries));
cclist = ChangeMailAddress(cclist);
//숨은참조
if (form_bcc.Contains("{요청}") == true) bcclist.AddRange(grp_req);
if (form_bcc.Contains("{수령}") == true) bcclist.AddRange(grp_rec);
form_bcc = form_bcc.Replace("{요청}", "");
form_bcc = form_bcc.Replace("{수령}", "");
bcclist.AddRange(form_bcc.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries));
bcclist = ChangeMailAddress(bcclist);
var datestr = DateTime.Now.ToShortDateString();
if (dtSD.Text == dtED.Text) datestr = dtSD.Text;
else datestr = dtSD.Text + "~" + dtED.Text;
form_subject = form_subject.Replace("{DATE}", datestr);
try
{
Outlook.Application outlookApplication = new Outlook.Application();
var newMail = outlookApplication.CreateItem(OlItemType.olMailItem) as Outlook.MailItem;
newMail.Display();
newMail.Subject = form_subject; // this.tbSubject.Text.Trim(); // dr.title;
newMail.To = string.Join(";", tolist.ToArray());
newMail.CC = string.Join(";", cclist.ToArray());
newMail.BCC = string.Join(";", bcclist.ToArray());
string fn = "";
if (f.chkAttach.Checked)
{
var fi = new System.IO.FileInfo(FCOMMON.Util.CurrentPath + "\\Export\\PurchaseEB_" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".xls");
if (fi.Directory.Exists == false) fi.Directory.Create();
fn = fi.FullName;
///save file
//fpSpread1.SaveExcel(fi.FullName,
// FarPoint.Excel.ExcelSaveFlags.SaveAsViewed
// | FarPoint.Excel.ExcelSaveFlags.SaveAsFiltered
// | FarPoint.Excel.ExcelSaveFlags.NoFormulas
// | FarPoint.Excel.ExcelSaveFlags.SaveCustomColumnHeaders);
}
var rows = this.GetDatarows();
var tabledata = UTIL_EQ0000.MakeDataTableToHTML(rows, fn);
if (f.chkList.Checked)
{
form_body += tabledata;
}
if (fn.isEmpty() == false)
newMail.Attachments.Add(fn);
//newMail.BodyFormat = OlBodyFormat.olFormatHTML;
form_body = form_body.Replace("{DATE}", datestr);
newMail.HTMLBody = form_body + newMail.HTMLBody; //
}
catch (Exception ex)
{
util.MsgE("전송실패\n\n" + ex.Message + "\n\n" +
"아웃룩의 설정이 정상인지 확인하세요");
}
}
//string MakeDataTableToHTML(string savefilenamexls = "")
@@ -1473,56 +1379,67 @@ namespace FEQ0000
}
List<dsPurchase.EETGW_PurchaseEBRow> GetDatarows()
List<dsPurchase.EETGW_PurchaseEBRow> GetDatarows(bool all = false)
{
List<dsPurchase.EETGW_PurchaseEBRow> rows = new List<dsPurchase.EETGW_PurchaseEBRow>();
//선택된 자료의 데이터를 추출한다.
var selected = this.fpSpread1_Sheet1.GetSelections(); //선택된 개체확인
List<int> rowidxs = new List<int>();
var idxcol = this.fpSpread1_Sheet1.Columns["idx"];
var idxconf = this.fpSpread1_Sheet1.Columns["conf_status"];
var idxstatus = this.fpSpread1_Sheet1.Columns["state"];
foreach (var item in selected)
if (all)
{
for (int i = item.Row; i < item.Row + item.RowCount; i++)
var drows = (dsPurchase.EETGW_PurchaseEBRow[])(this.dsPurchase.EETGW_PurchaseEB.Select(this.bs.Filter, this.bs.Sort));
foreach (var dr in drows)
rows.Add(dr);
}
else
{
//선택된 자료의 데이터를 추출한다.
var selected = this.fpSpread1_Sheet1.GetSelections(); //선택된 개체확인
List<int> rowidxs = new List<int>();
var idxcol = this.fpSpread1_Sheet1.Columns["idx"];
var idxconf = this.fpSpread1_Sheet1.Columns["conf_status"];
var idxstatus = this.fpSpread1_Sheet1.Columns["state"];
foreach (var item in selected)
{
if (rowidxs.Contains(i) == false)
for (int i = item.Row; i < item.Row + item.RowCount; i++)
{
if (fpSpread1_Sheet1.IsRowBound(i))
if (rowidxs.Contains(i) == false)
{
var confsta = fpSpread1.ActiveSheet.GetValue(i, idxconf.Index);
var state = fpSpread1.ActiveSheet.GetValue(i, idxstatus.Index);
if (state != null && state.ToString() != "---")
if (fpSpread1_Sheet1.IsRowBound(i))
{
FCOMMON.Util.MsgE($"{i}번 줄의 데이터는 신규 요청데이터가 아닙니다");
var confsta = fpSpread1.ActiveSheet.GetValue(i, idxconf.Index);
var state = fpSpread1.ActiveSheet.GetValue(i, idxstatus.Index);
if (state != null && state.ToString() != "---")
{
FCOMMON.Util.MsgE($"{i}번 줄의 데이터는 신규 요청데이터가 아닙니다");
}
//else if (confsta != null && confsta.ToString() != "0")
//{
// FCOMMON.Util.MsgE($"{i}번 줄의 데이터는 신청이 완료된 자료 입니다");
//}
else rowidxs.Add(i);
}
//else if (confsta != null && confsta.ToString() != "0")
//{
// FCOMMON.Util.MsgE($"{i}번 줄의 데이터는 신청이 완료된 자료 입니다");
//}
else rowidxs.Add(i);
}
}
}
}
//수집된데이터를 보내야한다.
//수집된데이터를 보내야한다.
var idx = 0;
foreach (var i in rowidxs)
{
var rowidx = (int)fpSpread1.ActiveSheet.GetValue(i, idxcol.Index);
var row = this.dsPurchase.EETGW_PurchaseEB.Where(t => t.idx == rowidx).First();
rows.Add(row);
}
if (rows.Any() == false)
{
if (this.bs.Count > 0)
var idx = 0;
foreach (var i in rowidxs)
{
var drv = this.bs.Current as DataRowView;
rows.Add(drv.Row as dsPurchase.EETGW_PurchaseEBRow);
var rowidx = (int)fpSpread1.ActiveSheet.GetValue(i, idxcol.Index);
var row = this.dsPurchase.EETGW_PurchaseEB.Where(t => t.idx == rowidx).First();
rows.Add(row);
}
if (rows.Any() == false)
{
if (this.bs.Count > 0)
{
var drv = this.bs.Current as DataRowView;
rows.Add(drv.Row as dsPurchase.EETGW_PurchaseEBRow);
}
}
}
return rows;
}
@@ -1546,24 +1463,83 @@ namespace FEQ0000
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
var cate = "PO";
}
var db = new DataClasses1DataContext();
var dr = db.MailForm.Where(t => t.cate == cate).FirstOrDefault();
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
var selected = this.fpSpread1_Sheet1.GetSelections(); //선택된 개체확인
List<int> rows = new List<int>();
foreach (var item in selected)
{
for (int i = item.Row; i < item.Row + item.RowCount; i++)
{
if (rows.Contains(i) == false)
{
if (fpSpread1_Sheet1.IsRowBound(i))
{
rows.Add(i);
}
}
}
}
//이대상의 실제 데이터베이스 인덱스값을 생성해서 폼에 전송한다.
var codlist = DBM.getCodeList("04");
var f = new FEQ0000.Purchase.fBatchUpdate(rows);
if (f.ShowDialog() != DialogResult.OK) return;
var colstat = fpSpread1_Sheet1.Columns["state"];
var value = f.cmbState.Text;
foreach (var rowindex in rows)
{
fpSpread1_Sheet1.SetValue(rowindex, colstat.Index, value);
}
FCOMMON.Util.MsgI($"{rows.Count} 건의 자료가 변경되었습니다\n저장 버튼을 누르면 적용 됩니다\n취소하려면 새로고침을 누르세요");
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
MailSendNoForm(true);
}
void MailSendNoForm(bool alldata, string cate = "")
{
var form_subject = "";
var form_body = "";
var form_to = "";
var form_cc = "{요청}";
var form_bcc = "";//f.tbBcc.Text.Trim();
bool attachfile = true;
bool attachlist = true;
if (cate.isEmpty() == false)
{
var db = new DataClasses1DataContext();
var dr = db.MailForm.Where(t => t.cate == cate).FirstOrDefault();
var f = new Purchase.fMailForm(cate);
if (f.ShowDialog() != DialogResult.OK) return;
form_subject = f.tbSubject.Text.Trim();
form_body = f.htmlEditor1.Html;
form_to = f.tbTo.Text.Trim();
form_cc = f.tbCC.Text.Trim();
form_bcc = f.tbBcc.Text.Trim();
attachfile = f.chkAttach.Checked;
attachlist = f.chkList.Checked;
}
//현재표시데이터중에 수신자목록을 가져온다
var drows = (dsPurchase.EETGW_PurchaseEBRow[])(this.dsPurchase.EETGW_PurchaseEB.Select(this.bs.Filter, this.bs.Sort));
var drows = this.GetDatarows(alldata);
var grp_req = drows.Where(t => t.request.isEmpty() == false).GroupBy(t => t.request).Select(t => t.FirstOrDefault().request).ToList();
var grp_rec = drows.Where(t => t.receive.isEmpty() == false).GroupBy(t => t.receive).Select(t => t.FirstOrDefault().receive).ToList();
var f = new Purchase.fMailForm(cate);
if (f.ShowDialog() != DialogResult.OK) return;
var form_subject = f.tbSubject.Text.Trim();
var form_body = f.htmlEditor1.Html;
var form_to = f.tbTo.Text.Trim();
var form_cc = f.tbCC.Text.Trim();
var form_bcc = f.tbBcc.Text.Trim();
List<string> tolist = new List<string>(); //최종받는사람
List<string> cclist = new List<string>();
@@ -1607,117 +1583,23 @@ namespace FEQ0000
newMail.To = string.Join(";", tolist.ToArray());
newMail.CC = string.Join(";", cclist.ToArray());
newMail.BCC = string.Join(";", bcclist.ToArray());
if (f.chkAttach.Checked)
string fn = "";
if (attachfile)
{
var fi = new System.IO.FileInfo(FCOMMON.Util.CurrentPath + "\\Export\\PurchaseListEB_" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".xls");
var fi = new System.IO.FileInfo(FCOMMON.Util.CurrentPath + "\\Export\\PurchaseNRI_" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".xls");
if (fi.Directory.Exists == false) fi.Directory.Create();
///save file
fpSpread1.SaveExcel(fi.FullName,
FarPoint.Excel.ExcelSaveFlags.SaveAsViewed
| FarPoint.Excel.ExcelSaveFlags.SaveAsFiltered
| FarPoint.Excel.ExcelSaveFlags.NoFormulas
| FarPoint.Excel.ExcelSaveFlags.SaveCustomColumnHeaders);
newMail.Attachments.Add(fi.FullName);
fn = fi.FullName;
}
if (f.chkList.Checked)
var tabledata = UTIL_EQ0000.MakeDataTableToHTML(drows, fn);
if (attachlist)
{
//목록을 본문에 추가한다
System.Text.StringBuilder sb = new StringBuilder();
sb.AppendLine("<table border='1' cellspacing='0' cellpadding='1'>");
sb.AppendLine("<thead>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>신청</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>요청</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>CR/CF</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>수령</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>SID</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>품명</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>규격</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>수량</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>단가</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>금액</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>공급</td>");
sb.AppendLine("</thead>");
sb.AppendLine("<tbody>");
var col_신청 = fpSpread1_Sheet1.Columns["pdate"].Index;
var col_요청 = fpSpread1_Sheet1.Columns["requestName"].Index;
var col_CRLF = fpSpread1_Sheet1.Columns["crcf"].Index;
var col_수령 = fpSpread1_Sheet1.Columns["receiveName"].Index;
var col_SID = fpSpread1_Sheet1.Columns["sid"].Index;
var col_품명 = fpSpread1_Sheet1.Columns["pumname"].Index;
var col_규격 = fpSpread1_Sheet1.Columns["pumscale"].Index;
var col_수량 = fpSpread1_Sheet1.Columns["pumqty"].Index;
var col_단가 = fpSpread1_Sheet1.Columns["pumprice"].Index;
var col_금액 = fpSpread1_Sheet1.Columns["pumamt"].Index;
var col_공급 = fpSpread1_Sheet1.Columns["supply"].Index;
var col_비고 = fpSpread1_Sheet1.Columns["bigo"].Index;
for (int i = 0; i < this.fpSpread1_Sheet1.RowCount; i++)
{
var v신청 = fpSpread1_Sheet1.Cells[i, col_신청].Value;
var v요청 = fpSpread1_Sheet1.Cells[i, col_요청].Value;
var vCRCF = fpSpread1_Sheet1.Cells[i, col_CRLF].Value;
var v수령 = fpSpread1_Sheet1.Cells[i, col_수령].Value;
var vSID = fpSpread1_Sheet1.Cells[i, col_SID].Value;
var v품명 = fpSpread1_Sheet1.Cells[i, col_품명].Value;
var v규격 = fpSpread1_Sheet1.Cells[i, col_규격].Value;
var v수량 = fpSpread1_Sheet1.Cells[i, col_수량].Value;
var v단가 = fpSpread1_Sheet1.Cells[i, col_단가].Value;
var v금액 = fpSpread1_Sheet1.Cells[i, col_금액].Value;
var v공급 = fpSpread1_Sheet1.Cells[i, col_공급].Value;
var v비고 = fpSpread1_Sheet1.Cells[i, col_비고].Value;
var s신청 = String.Empty;
var s요청 = String.Empty;
var sCRCF = String.Empty;
var s수령 = String.Empty;
var sSID = String.Empty;
var s품명 = String.Empty;
var s규격 = String.Empty;
var s수량 = "0";
var s단가 = "0";
var s금액 = "0";
var s입고 = String.Empty;
var s공급 = String.Empty;
var s비고 = String.Empty;
if (v신청 != null) s신청 = v신청.ToString();
if (v요청 != null) s요청 = v요청.ToString();
if (vCRCF != null) sCRCF = vCRCF.ToString();
if (v수령 != null) s수령 = v수령.ToString();
if (vSID != null) sSID = vSID.ToString();
if (v품명 != null) s품명 = v품명.ToString();
if (v규격 != null) s규격 = v규격.ToString();
if (v수량 != null) s수량 = v수량.ToString();
if (v단가 != null) s단가 = v단가.ToString();
if (v금액 != null) s금액 = v금액.ToString();
if (v공급 != null) s공급 = v공급.ToString();
sb.AppendLine("<tr>");
sb.AppendLine("<td>" + UTIL_EQ0000.getmaxstr(s신청) + "</td>");
sb.AppendLine("<td>" + UTIL_EQ0000.getmaxstr(s요청) + "</td>");
sb.AppendLine("<td>" + UTIL_EQ0000.getmaxstr(sCRCF) + "</td>");
sb.AppendLine("<td>" + UTIL_EQ0000.getmaxstr(s수령) + "</td>");
sb.AppendLine("<td>" + UTIL_EQ0000.getmaxstr(sSID) + "</td>");
sb.AppendLine("<td>" + UTIL_EQ0000.getmaxstr(s품명) + "</td>");
sb.AppendLine("<td>" + UTIL_EQ0000.getmaxstr(s규격) + "</td>");
sb.AppendLine("<td style='text-align:center'>" + int.Parse(s수량).ToString("N0") + "</td>");
sb.AppendLine("<td style='text-align:right'>" + int.Parse(s단가).ToString("N0") + "</td>");
sb.AppendLine("<td style='text-align:right'>" + int.Parse(s금액).ToString("N0") + "</td>");
sb.AppendLine("<td>" + UTIL_EQ0000.getmaxstr(s공급) + "</td>");
sb.AppendLine("</tr>");
}
sb.AppendLine("</tbody>");
sb.AppendLine("</table>");
form_body += sb.ToString();
form_body += "<br />" + tabledata;
}
if (fn.isEmpty() == false)
newMail.Attachments.Add(fn);
//newMail.BodyFormat = OlBodyFormat.olFormatHTML;
form_body = form_body.Replace("{DATE}", datestr);
newMail.HTMLBody = form_body + newMail.HTMLBody; //
@@ -1729,42 +1611,20 @@ namespace FEQ0000
}
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
MailSendNoForm(true,"PF");
var selected = this.fpSpread1_Sheet1.GetSelections(); //선택된 개체확인
List<int> rows = new List<int>();
foreach (var item in selected)
{
for (int i = item.Row; i < item.Row + item.RowCount; i++)
{
if (rows.Contains(i) == false)
{
if (fpSpread1_Sheet1.IsRowBound(i))
{
rows.Add(i);
}
}
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
MailSendNoForm(false);
}
}
}
//이대상의 실제 데이터베이스 인덱스값을 생성해서 폼에 전송한다.
var codlist = DBM.getCodeList("04");
var f = new FEQ0000.Purchase.fBatchUpdate(rows);
if (f.ShowDialog() != DialogResult.OK) return;
var colstat = fpSpread1_Sheet1.Columns["state"];
var value = f.cmbState.Text;
foreach (var rowindex in rows)
{
fpSpread1_Sheet1.SetValue(rowindex, colstat.Index, value);
}
FCOMMON.Util.MsgI($"{rows.Count} 건의 자료가 변경되었습니다\n저장 버튼을 누르면 적용 됩니다\n취소하려면 새로고침을 누르세요");
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
MailSendNoForm(false, "PF");
}
}
}

View File

@@ -296,21 +296,7 @@
brxxceG+j2Kl3h27zR5GDDxbI4jQ6H0RFvYPxczhJbhCpsgAAAAASUVORK5CYII=
</value>
</data>
<data name="toolStripButton7.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAG8SURBVDhPjZI5SwNRFIXzY+wsLGysAgqiop2NAXHBBQSX
EGNQEHsbFdMJWphCcCHggmgaUaIhLlHjJDHuqCjqjOKWxBk95l7mjQxRyYEPZh7vfO8Obyz/RVVVCPSl
7CJKtdNBg6xFotjg3YLn9BXd/kss3Gomkb7VHHECbaLC6NEzCxyrZ/xMa4R10Jsp0TQN7rUmjATaWEAR
BdfqufHcG1JQNrljFtALlWPJJQTkcRbEHxNQUsCG/AnbzBY6g9cMCUongqAD9fqPgEISEsSUBNz7D5CT
Glp9UTj8V8zgSQrFnvXfBXfqId6+HlmwfPGEuUtASos6fHEuEiTJHZpHyFbHEv4UIbhSwxgPORFVVlAz
tY6I/A5JThjjU5HA7CKzUGA1C8aCDozu2nGjHsAT7jIKgmu7yyi/uvogFVX8CFiy0oibD4kF3tMeHjMV
iwOKAvgD2K+sxn1bD0OCvcLyzNuwT+cbsCB6iKcBNz4fFBw3t+Ou1cl89Q9j21piFlDENAQJXhZ96R9i
DqlwBGctHVwkSOLLycsUiAjJZlU9kgeRtEAyxqeiKP8pEKENoiAwri/biJME+rIei+Ub4tJbaW7QZrcA
AAAASUVORK5CYII=
</value>
</data>
<data name="입고품목메일전송ToolStripMenuItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<data name="메일전송ToolStripMenuItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
R0lGODlhEAAQAIQfAPr8/VVritvj7IqsyElVa+Ps9MvT2rvc/aPQ/KrU/Or0/nmYspzN/LbZ/FJgeXiQ
q0NLXHWPrJnA1sDf/CkxQ9RSXD5FVa/X/H2fudPn8HyjwMPg/WV/nG+Or////////yH/C05FVFNDQVBF
@@ -347,6 +333,20 @@
oQIAAAJCCriYcSOGDCgzBAiQYSTGDQM4AjBAEwGCCRRIftypoKcDBwcS5MQIYIBRBQ0aPCBAwIKDoR4A
cFiZdKmFAgUOQAWwIKnSpgUkSOgA1UCCqmAlVKgAoWyCBQsSOLhwoAMECBfK2tw7oa9fqBYDL2yIMCAA
Ow==
</value>
</data>
<data name="toolStripButton7.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAG8SURBVDhPjZI5SwNRFIXzY+wsLGysAgqiop2NAXHBBQSX
EGNQEHsbFdMJWphCcCHggmgaUaIhLlHjJDHuqCjqjOKWxBk95l7mjQxRyYEPZh7vfO8Obyz/RVVVCPSl
7CJKtdNBg6xFotjg3YLn9BXd/kss3Gomkb7VHHECbaLC6NEzCxyrZ/xMa4R10Jsp0TQN7rUmjATaWEAR
BdfqufHcG1JQNrljFtALlWPJJQTkcRbEHxNQUsCG/AnbzBY6g9cMCUongqAD9fqPgEISEsSUBNz7D5CT
Glp9UTj8V8zgSQrFnvXfBXfqId6+HlmwfPGEuUtASos6fHEuEiTJHZpHyFbHEv4UIbhSwxgPORFVVlAz
tY6I/A5JThjjU5HA7CKzUGA1C8aCDozu2nGjHsAT7jIKgmu7yyi/uvogFVX8CFiy0oibD4kF3tMeHjMV
iwOKAvgD2K+sxn1bD0OCvcLyzNuwT+cbsCB6iKcBNz4fFBw3t+Ou1cl89Q9j21piFlDENAQJXhZ96R9i
DqlwBGctHVwkSOLLycsUiAjJZlU9kgeRtEAyxqeiKP8pEKENoiAwri/biJME+rIei+Ub4tJbaW7QZrcA
AAAASUVORK5CYII=
</value>
</data>
<metadata name="cm1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">

View File

@@ -307,11 +307,6 @@ namespace FEQ0000
}
private void toolStripButton3_Click(object sender, EventArgs e)
{
}
private void bs_CurrentChanged(object sender, EventArgs e)
{
var dr = bs.Current as dsPurchase.EETGW_PurchaseEBRow;
@@ -321,10 +316,6 @@ namespace FEQ0000
//else richTextBox2.Text = dr.bigo;
}
private void toolStripButton4_Click(object sender, EventArgs e)
{
}
string getmaxstr(string src, int len = 30)
{
@@ -440,7 +431,7 @@ namespace FEQ0000
string fn = "";
if (f.chkAttach.Checked)
{
var fi = new System.IO.FileInfo(FCOMMON.Util.CurrentPath + "\\Export\\Purchase_confirmeb_" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".xls");
var fi = new System.IO.FileInfo(FCOMMON.Util.CurrentPath + "\\Export\\PurchaseEB_confirmeb_" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".xls");
if (fi.Directory.Exists == false) fi.Directory.Create();
fn = fi.FullName;
//FCOMMON.Util.savetoexcel(this.dataGridView1, fi.FullName);

View File

@@ -63,6 +63,9 @@ namespace FEQ0000.Purchase
this.tbPrjName = new System.Windows.Forms.TextBox();
this.tbIdx = new System.Windows.Forms.TextBox();
this.panel2 = new System.Windows.Forms.Panel();
this.tbSCRCF = new System.Windows.Forms.TextBox();
this.tbSC = new System.Windows.Forms.TextBox();
this.tbSID = new System.Windows.Forms.TextBox();
this.tbRemarkO = new System.Windows.Forms.TextBox();
this.tbAmt = new System.Windows.Forms.TextBox();
this.tbPriceO = new System.Windows.Forms.TextBox();
@@ -82,9 +85,6 @@ namespace FEQ0000.Purchase
this.dtInDate = new System.Windows.Forms.DateTimePicker();
this.btOK = new System.Windows.Forms.Button();
this.arLabel3 = new System.Windows.Forms.Label();
this.tbSID = new System.Windows.Forms.TextBox();
this.tbSCRCF = new System.Windows.Forms.TextBox();
this.tbSC = new System.Windows.Forms.TextBox();
label17 = new System.Windows.Forms.Label();
label12 = new System.Windows.Forms.Label();
label11 = new System.Windows.Forms.Label();
@@ -276,6 +276,45 @@ namespace FEQ0000.Purchase
label1.TabIndex = 98;
label1.Text = "수량/단가/금액";
//
// label10
//
label10.AutoSize = true;
label10.Location = new System.Drawing.Point(40, 171);
label10.Name = "label10";
label10.Size = new System.Drawing.Size(58, 12);
label10.TabIndex = 109;
label10.Text = "SCR/CF#";
//
// label15
//
label15.AutoSize = true;
label15.Location = new System.Drawing.Point(76, 152);
label15.Name = "label15";
label15.Size = new System.Drawing.Size(22, 12);
label15.TabIndex = 110;
label15.Text = "SC";
//
// label14
//
label14.AutoSize = true;
label14.Font = new System.Drawing.Font("맑은 고딕", 15F);
label14.Location = new System.Drawing.Point(67, 303);
label14.Name = "label14";
label14.Size = new System.Drawing.Size(38, 28);
label14.TabIndex = 115;
label14.Text = "PO";
//
// label7
//
label7.AutoSize = true;
label7.Font = new System.Drawing.Font("맑은 고딕", 15F);
label7.Location = new System.Drawing.Point(53, 221);
label7.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label7.Name = "label7";
label7.Size = new System.Drawing.Size(52, 28);
label7.TabIndex = 116;
label7.Text = "비고";
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.Gainsboro;
@@ -438,6 +477,37 @@ namespace FEQ0000.Purchase
this.panel2.Size = new System.Drawing.Size(582, 192);
this.panel2.TabIndex = 88;
//
// tbSCRCF
//
this.tbSCRCF.Font = new System.Drawing.Font("굴림", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.tbSCRCF.ImeMode = System.Windows.Forms.ImeMode.Hangul;
this.tbSCRCF.Location = new System.Drawing.Point(338, 147);
this.tbSCRCF.Name = "tbSCRCF";
this.tbSCRCF.ReadOnly = true;
this.tbSCRCF.Size = new System.Drawing.Size(232, 38);
this.tbSCRCF.TabIndex = 112;
//
// tbSC
//
this.tbSC.Font = new System.Drawing.Font("굴림", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.tbSC.ImeMode = System.Windows.Forms.ImeMode.Hangul;
this.tbSC.Location = new System.Drawing.Point(104, 147);
this.tbSC.Name = "tbSC";
this.tbSC.ReadOnly = true;
this.tbSC.Size = new System.Drawing.Size(232, 38);
this.tbSC.TabIndex = 111;
//
// tbSID
//
this.tbSID.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.tbSID.Location = new System.Drawing.Point(433, 53);
this.tbSID.Name = "tbSID";
this.tbSID.ReadOnly = true;
this.tbSID.Size = new System.Drawing.Size(137, 30);
this.tbSID.TabIndex = 108;
this.tbSID.Text = "000000000";
this.tbSID.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// tbRemarkO
//
this.tbRemarkO.ImeMode = System.Windows.Forms.ImeMode.Hangul;
@@ -659,77 +729,7 @@ namespace FEQ0000.Purchase
this.arLabel3.Text = "입고정보";
this.arLabel3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// tbSID
//
this.tbSID.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.tbSID.Location = new System.Drawing.Point(433, 53);
this.tbSID.Name = "tbSID";
this.tbSID.ReadOnly = true;
this.tbSID.Size = new System.Drawing.Size(137, 30);
this.tbSID.TabIndex = 108;
this.tbSID.Text = "000000000";
this.tbSID.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// tbSCRCF
//
this.tbSCRCF.Font = new System.Drawing.Font("굴림", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.tbSCRCF.ImeMode = System.Windows.Forms.ImeMode.Hangul;
this.tbSCRCF.Location = new System.Drawing.Point(338, 147);
this.tbSCRCF.Name = "tbSCRCF";
this.tbSCRCF.ReadOnly = true;
this.tbSCRCF.Size = new System.Drawing.Size(232, 38);
this.tbSCRCF.TabIndex = 112;
//
// tbSC
//
this.tbSC.Font = new System.Drawing.Font("굴림", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.tbSC.ImeMode = System.Windows.Forms.ImeMode.Hangul;
this.tbSC.Location = new System.Drawing.Point(104, 147);
this.tbSC.Name = "tbSC";
this.tbSC.ReadOnly = true;
this.tbSC.Size = new System.Drawing.Size(232, 38);
this.tbSC.TabIndex = 111;
//
// label10
//
label10.AutoSize = true;
label10.Location = new System.Drawing.Point(40, 171);
label10.Name = "label10";
label10.Size = new System.Drawing.Size(58, 12);
label10.TabIndex = 109;
label10.Text = "SCR/CF#";
//
// label15
//
label15.AutoSize = true;
label15.Location = new System.Drawing.Point(76, 152);
label15.Name = "label15";
label15.Size = new System.Drawing.Size(22, 12);
label15.TabIndex = 110;
label15.Text = "SC";
//
// label14
//
label14.AutoSize = true;
label14.Font = new System.Drawing.Font("맑은 고딕", 15F);
label14.Location = new System.Drawing.Point(67, 303);
label14.Name = "label14";
label14.Size = new System.Drawing.Size(38, 28);
label14.TabIndex = 115;
label14.Text = "PO";
//
// label7
//
label7.AutoSize = true;
label7.Font = new System.Drawing.Font("맑은 고딕", 15F);
label7.Location = new System.Drawing.Point(53, 221);
label7.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label7.Name = "label7";
label7.Size = new System.Drawing.Size(52, 28);
label7.TabIndex = 116;
label7.Text = "비고";
//
// fPurchaseNR_Ipgo
// fPurchaseEB_Ipgo
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
@@ -739,9 +739,9 @@ namespace FEQ0000.Purchase
this.Controls.Add(this.panel1);
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "fPurchaseNR_Ipgo";
this.Name = "fPurchaseEB_Ipgo";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "NR 품목 입고";
this.Text = " 전자실 품목 입고";
this.Load += new System.EventHandler(this.fPurchaseCR_Ipgo_Load);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();

View File

@@ -122,7 +122,7 @@ namespace FEQ0000.Purchase
cmbReceive.Focus();
return;
}
var ta = new dsPurchaseTableAdapters.PurchaseTableAdapter ();
var ta = new dsPurchaseTableAdapters.EETGW_PurchaseEBTableAdapter();
var dr = ta.GetByIdx(this.idx).First();
if (chkInDate.Checked == false)
{

View File

@@ -180,16 +180,4 @@
<metadata name="label7.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label10.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label15.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label14.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label7.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
</root>

View File

@@ -30,45 +30,45 @@
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fPurchaseNR));
FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType1 = new FarPoint.Win.Spread.CellType.CheckBoxCellType();
FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType2 = new FarPoint.Win.Spread.CellType.CheckBoxCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType1 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType2 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType3 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType4 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType5 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType6 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType7 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType8 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType9 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType10 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType11 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType12 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType13 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType1 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType14 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType15 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType2 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType3 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType16 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType4 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType17 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType5 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType6 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType18 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType7 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType19 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType8 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType20 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType21 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType22 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType9 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType23 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType24 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType25 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType10 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType26 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType3 = new FarPoint.Win.Spread.CellType.CheckBoxCellType();
FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType19 = new FarPoint.Win.Spread.CellType.CheckBoxCellType();
FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType20 = new FarPoint.Win.Spread.CellType.CheckBoxCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType157 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType158 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType159 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType160 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType161 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType162 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType163 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType164 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType165 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType166 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType167 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType168 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType169 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType61 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType170 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType171 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType62 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType63 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType172 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType64 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType173 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType65 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType66 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType174 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType67 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType175 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType68 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType176 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType177 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType178 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType69 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType179 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType180 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType181 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType70 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType182 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType21 = new FarPoint.Win.Spread.CellType.CheckBoxCellType();
this.dsPurchase = new FEQ0000.dsPurchase();
this.bs = new System.Windows.Forms.BindingSource(this.components);
this.ta = new FEQ0000.dsPurchaseTableAdapters.PurchaseTableAdapter();
@@ -102,7 +102,6 @@
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripButton7 = new System.Windows.Forms.ToolStripDropDownButton();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripButton5 = new System.Windows.Forms.ToolStripButton();
@@ -154,7 +153,12 @@
this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator();
((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
@@ -439,38 +443,29 @@
// 집계표ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "집계표ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(150, 22);
this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "집계표";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// 구매승인양식ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "구매승인양식ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(150, 22);
this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "구매승인 양식";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// toolStripButton7
//
this.toolStripButton7.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.ToolStripMenuItem,
this.ToolStripMenuItem,
this.ToolStripMenuItem,
this.ToolStripMenuItem,
this.ToolStripMenuItem});
this.ToolStripMenuItem});
this.toolStripButton7.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton7.Image")));
this.toolStripButton7.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton7.Name = "toolStripButton7";
this.toolStripButton7.Size = new System.Drawing.Size(68, 28);
this.toolStripButton7.Text = "기능";
//
// 입고품목메일전송ToolStripMenuItem
//
this.ToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("입고품목메일전송ToolStripMenuItem.Image")));
this.ToolStripMenuItem.Name = "입고품목메일전송ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(190, 30);
this.ToolStripMenuItem.Text = "입고 품목 메일 전송";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// 엑셀에서가져오기ToolStripMenuItem
//
this.ToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("엑셀에서가져오기ToolStripMenuItem.Image")));
@@ -928,17 +923,17 @@
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 37).Value = "구매담당";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 42).Value = "삭제됨";
this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 37F;
this.fpSpread1_Sheet1.Columns.Get(0).CellType = checkBoxCellType1;
this.fpSpread1_Sheet1.Columns.Get(0).CellType = checkBoxCellType19;
this.fpSpread1_Sheet1.Columns.Get(0).DataField = "chk1";
this.fpSpread1_Sheet1.Columns.Get(0).Label = "요청\r\n검사";
this.fpSpread1_Sheet1.Columns.Get(0).Width = 37F;
this.fpSpread1_Sheet1.Columns.Get(1).CellType = checkBoxCellType2;
this.fpSpread1_Sheet1.Columns.Get(1).CellType = checkBoxCellType20;
this.fpSpread1_Sheet1.Columns.Get(1).DataField = "chk2";
this.fpSpread1_Sheet1.Columns.Get(1).Label = "구매\r\n검사";
this.fpSpread1_Sheet1.Columns.Get(1).Width = 35F;
this.fpSpread1_Sheet1.Columns.Get(2).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(2).AllowAutoSort = true;
this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType1;
this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType157;
this.fpSpread1_Sheet1.Columns.Get(2).DataField = "pdate";
this.fpSpread1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(2).Label = "구매신청";
@@ -947,7 +942,7 @@
this.fpSpread1_Sheet1.Columns.Get(2).Width = 68F;
this.fpSpread1_Sheet1.Columns.Get(3).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(3).AllowAutoSort = true;
this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType2;
this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType158;
this.fpSpread1_Sheet1.Columns.Get(3).DataField = "prdate";
this.fpSpread1_Sheet1.Columns.Get(3).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(3).Label = "PR입력";
@@ -955,7 +950,7 @@
this.fpSpread1_Sheet1.Columns.Get(3).Width = 76F;
this.fpSpread1_Sheet1.Columns.Get(4).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(4).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType3;
this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType159;
this.fpSpread1_Sheet1.Columns.Get(4).DataField = "state";
this.fpSpread1_Sheet1.Columns.Get(4).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(4).Label = "상태";
@@ -963,39 +958,39 @@
this.fpSpread1_Sheet1.Columns.Get(4).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(4).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(5).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType4;
this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType160;
this.fpSpread1_Sheet1.Columns.Get(5).DataField = "place";
this.fpSpread1_Sheet1.Columns.Get(5).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(5).Label = "보관소";
this.fpSpread1_Sheet1.Columns.Get(5).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(5).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(6).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType5;
this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType161;
this.fpSpread1_Sheet1.Columns.Get(6).DataField = "process";
this.fpSpread1_Sheet1.Columns.Get(6).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(6).Label = "공정";
this.fpSpread1_Sheet1.Columns.Get(6).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(6).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(7).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType6;
this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType162;
this.fpSpread1_Sheet1.Columns.Get(7).DataField = "requestName";
this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(7).Label = "요청";
this.fpSpread1_Sheet1.Columns.Get(7).Tag = "requestName";
this.fpSpread1_Sheet1.Columns.Get(7).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(8).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType7;
this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType163;
this.fpSpread1_Sheet1.Columns.Get(8).DataField = "costcenter";
this.fpSpread1_Sheet1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(8).Label = "Cost Center";
this.fpSpread1_Sheet1.Columns.Get(8).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(9).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(9).CellType = textCellType8;
this.fpSpread1_Sheet1.Columns.Get(9).CellType = textCellType164;
this.fpSpread1_Sheet1.Columns.Get(9).DataField = "linecode";
this.fpSpread1_Sheet1.Columns.Get(9).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(9).Label = "LineCode";
this.fpSpread1_Sheet1.Columns.Get(9).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(10).CellType = textCellType9;
this.fpSpread1_Sheet1.Columns.Get(10).CellType = textCellType165;
this.fpSpread1_Sheet1.Columns.Get(10).DataField = "sc";
this.fpSpread1_Sheet1.Columns.Get(10).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(10).Label = "SC#";
@@ -1003,231 +998,231 @@
this.fpSpread1_Sheet1.Columns.Get(10).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(10).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(11).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(11).CellType = textCellType10;
this.fpSpread1_Sheet1.Columns.Get(11).CellType = textCellType166;
this.fpSpread1_Sheet1.Columns.Get(11).DataField = "orderno";
this.fpSpread1_Sheet1.Columns.Get(11).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(11).Label = "SCR/CF";
this.fpSpread1_Sheet1.Columns.Get(11).Tag = "crcf";
this.fpSpread1_Sheet1.Columns.Get(11).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(11).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(12).CellType = textCellType11;
this.fpSpread1_Sheet1.Columns.Get(12).CellType = textCellType167;
this.fpSpread1_Sheet1.Columns.Get(12).DataField = "receiveName";
this.fpSpread1_Sheet1.Columns.Get(12).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(12).Label = "수령";
this.fpSpread1_Sheet1.Columns.Get(12).Tag = "receiveName";
this.fpSpread1_Sheet1.Columns.Get(12).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(13).AllowAutoSort = true;
this.fpSpread1_Sheet1.Columns.Get(13).CellType = textCellType12;
this.fpSpread1_Sheet1.Columns.Get(13).CellType = textCellType168;
this.fpSpread1_Sheet1.Columns.Get(13).DataField = "sid";
this.fpSpread1_Sheet1.Columns.Get(13).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(13).Label = "SID#";
this.fpSpread1_Sheet1.Columns.Get(13).Tag = "sid";
this.fpSpread1_Sheet1.Columns.Get(13).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(13).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(14).CellType = textCellType13;
this.fpSpread1_Sheet1.Columns.Get(14).CellType = textCellType169;
this.fpSpread1_Sheet1.Columns.Get(14).DataField = "pumname";
this.fpSpread1_Sheet1.Columns.Get(14).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(14).Label = "품명";
this.fpSpread1_Sheet1.Columns.Get(14).Tag = "pumname";
this.fpSpread1_Sheet1.Columns.Get(14).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(15).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
numberCellType1.DecimalPlaces = 0;
numberCellType1.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType1.MaximumValue = 2147483647D;
numberCellType1.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(15).CellType = numberCellType1;
numberCellType61.DecimalPlaces = 0;
numberCellType61.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType61.MaximumValue = 2147483647D;
numberCellType61.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(15).CellType = numberCellType61;
this.fpSpread1_Sheet1.Columns.Get(15).DataField = "pumidx";
this.fpSpread1_Sheet1.Columns.Get(15).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(15).Label = "*";
this.fpSpread1_Sheet1.Columns.Get(15).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(16).CellType = textCellType14;
this.fpSpread1_Sheet1.Columns.Get(16).CellType = textCellType170;
this.fpSpread1_Sheet1.Columns.Get(16).DataField = "pumscale";
this.fpSpread1_Sheet1.Columns.Get(16).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(16).Label = "규격";
this.fpSpread1_Sheet1.Columns.Get(16).Tag = "pumscale";
this.fpSpread1_Sheet1.Columns.Get(16).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(17).CellType = textCellType15;
this.fpSpread1_Sheet1.Columns.Get(17).CellType = textCellType171;
this.fpSpread1_Sheet1.Columns.Get(17).DataField = "dept";
this.fpSpread1_Sheet1.Columns.Get(17).Label = "장비\r\n제조사";
this.fpSpread1_Sheet1.Columns.Get(17).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(18).CellType = textCellType15;
this.fpSpread1_Sheet1.Columns.Get(18).CellType = textCellType171;
this.fpSpread1_Sheet1.Columns.Get(18).DataField = "manuproc";
this.fpSpread1_Sheet1.Columns.Get(18).Label = "제조\r\n공정";
this.fpSpread1_Sheet1.Columns.Get(18).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(19).CellType = textCellType15;
this.fpSpread1_Sheet1.Columns.Get(19).CellType = textCellType171;
this.fpSpread1_Sheet1.Columns.Get(19).DataField = "asset";
this.fpSpread1_Sheet1.Columns.Get(19).Label = "장비\r\n모델";
this.fpSpread1_Sheet1.Columns.Get(19).Width = 51F;
numberCellType2.DecimalPlaces = 0;
numberCellType2.NegativeRed = true;
numberCellType2.NullDisplay = "--";
numberCellType2.Separator = ",";
numberCellType2.ShowSeparator = true;
numberCellType2.ShrinkToFit = true;
this.fpSpread1_Sheet1.Columns.Get(20).CellType = numberCellType2;
numberCellType62.DecimalPlaces = 0;
numberCellType62.NegativeRed = true;
numberCellType62.NullDisplay = "--";
numberCellType62.Separator = ",";
numberCellType62.ShowSeparator = true;
numberCellType62.ShrinkToFit = true;
this.fpSpread1_Sheet1.Columns.Get(20).CellType = numberCellType62;
this.fpSpread1_Sheet1.Columns.Get(20).DataField = "pumqtyReq";
this.fpSpread1_Sheet1.Columns.Get(20).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(20).Label = "수량\r\n(요청)";
this.fpSpread1_Sheet1.Columns.Get(20).Tag = "pumqty";
this.fpSpread1_Sheet1.Columns.Get(20).Width = 51F;
numberCellType3.DecimalPlaces = 0;
this.fpSpread1_Sheet1.Columns.Get(21).CellType = numberCellType3;
numberCellType63.DecimalPlaces = 0;
this.fpSpread1_Sheet1.Columns.Get(21).CellType = numberCellType63;
this.fpSpread1_Sheet1.Columns.Get(21).DataField = "pumqty";
this.fpSpread1_Sheet1.Columns.Get(21).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(21).Label = "수량\r\n(구매)";
this.fpSpread1_Sheet1.Columns.Get(21).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(21).Width = 55F;
this.fpSpread1_Sheet1.Columns.Get(22).CellType = textCellType16;
this.fpSpread1_Sheet1.Columns.Get(22).CellType = textCellType172;
this.fpSpread1_Sheet1.Columns.Get(22).DataField = "pumunit";
this.fpSpread1_Sheet1.Columns.Get(22).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(22).Label = "단위";
this.fpSpread1_Sheet1.Columns.Get(22).Width = 51F;
numberCellType4.DecimalPlaces = 2;
this.fpSpread1_Sheet1.Columns.Get(23).CellType = numberCellType4;
numberCellType64.DecimalPlaces = 2;
this.fpSpread1_Sheet1.Columns.Get(23).CellType = numberCellType64;
this.fpSpread1_Sheet1.Columns.Get(23).DataField = "pumpriceD";
this.fpSpread1_Sheet1.Columns.Get(23).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
this.fpSpread1_Sheet1.Columns.Get(23).Label = "단가\r\n(해외)";
this.fpSpread1_Sheet1.Columns.Get(23).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(24).CellType = textCellType17;
this.fpSpread1_Sheet1.Columns.Get(24).CellType = textCellType173;
this.fpSpread1_Sheet1.Columns.Get(24).DataField = "currency";
this.fpSpread1_Sheet1.Columns.Get(24).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(24).Label = "통화";
this.fpSpread1_Sheet1.Columns.Get(24).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(24).Width = 33F;
numberCellType5.DecimalPlaces = 0;
numberCellType5.MaximumValue = 9999999999999.99D;
numberCellType5.MinimumValue = -9999999999999.99D;
numberCellType5.NegativeRed = true;
numberCellType5.NullDisplay = "--";
numberCellType5.Separator = ",";
numberCellType5.ShowSeparator = true;
numberCellType5.ShrinkToFit = true;
this.fpSpread1_Sheet1.Columns.Get(25).CellType = numberCellType5;
numberCellType65.DecimalPlaces = 0;
numberCellType65.MaximumValue = 9999999999999.99D;
numberCellType65.MinimumValue = -9999999999999.99D;
numberCellType65.NegativeRed = true;
numberCellType65.NullDisplay = "--";
numberCellType65.Separator = ",";
numberCellType65.ShowSeparator = true;
numberCellType65.ShrinkToFit = true;
this.fpSpread1_Sheet1.Columns.Get(25).CellType = numberCellType65;
this.fpSpread1_Sheet1.Columns.Get(25).DataField = "pumprice";
this.fpSpread1_Sheet1.Columns.Get(25).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
this.fpSpread1_Sheet1.Columns.Get(25).Label = "단가";
this.fpSpread1_Sheet1.Columns.Get(25).Tag = "pumprice";
this.fpSpread1_Sheet1.Columns.Get(25).Width = 51F;
numberCellType6.DecimalPlaces = 0;
numberCellType6.MaximumValue = 9999999999999.99D;
numberCellType6.MinimumValue = -9999999999999.99D;
numberCellType6.NegativeRed = true;
numberCellType6.NullDisplay = "--";
numberCellType6.Separator = ",";
numberCellType6.ShowSeparator = true;
numberCellType6.ShrinkToFit = true;
this.fpSpread1_Sheet1.Columns.Get(26).CellType = numberCellType6;
numberCellType66.DecimalPlaces = 0;
numberCellType66.MaximumValue = 9999999999999.99D;
numberCellType66.MinimumValue = -9999999999999.99D;
numberCellType66.NegativeRed = true;
numberCellType66.NullDisplay = "--";
numberCellType66.Separator = ",";
numberCellType66.ShowSeparator = true;
numberCellType66.ShrinkToFit = true;
this.fpSpread1_Sheet1.Columns.Get(26).CellType = numberCellType66;
this.fpSpread1_Sheet1.Columns.Get(26).DataField = "pumamt";
this.fpSpread1_Sheet1.Columns.Get(26).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
this.fpSpread1_Sheet1.Columns.Get(26).Label = "합계금액";
this.fpSpread1_Sheet1.Columns.Get(26).Tag = "pumamt";
this.fpSpread1_Sheet1.Columns.Get(26).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(27).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(27).CellType = textCellType18;
this.fpSpread1_Sheet1.Columns.Get(27).CellType = textCellType174;
this.fpSpread1_Sheet1.Columns.Get(27).DataField = "supply";
this.fpSpread1_Sheet1.Columns.Get(27).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(27).Label = "공급업체";
this.fpSpread1_Sheet1.Columns.Get(27).Tag = "supply";
this.fpSpread1_Sheet1.Columns.Get(27).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(28).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
numberCellType7.DecimalPlaces = 0;
numberCellType7.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType7.MaximumValue = 2147483647D;
numberCellType7.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(28).CellType = numberCellType7;
numberCellType67.DecimalPlaces = 0;
numberCellType67.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType67.MaximumValue = 2147483647D;
numberCellType67.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(28).CellType = numberCellType67;
this.fpSpread1_Sheet1.Columns.Get(28).DataField = "supplyidx";
this.fpSpread1_Sheet1.Columns.Get(28).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(28).Label = "*";
this.fpSpread1_Sheet1.Columns.Get(28).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(29).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(29).CellType = textCellType19;
this.fpSpread1_Sheet1.Columns.Get(29).CellType = textCellType175;
this.fpSpread1_Sheet1.Columns.Get(29).DataField = "project";
this.fpSpread1_Sheet1.Columns.Get(29).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(29).Label = "프로젝트";
this.fpSpread1_Sheet1.Columns.Get(29).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(30).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
numberCellType8.DecimalPlaces = 0;
numberCellType8.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType8.MaximumValue = 2147483647D;
numberCellType8.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(30).CellType = numberCellType8;
numberCellType68.DecimalPlaces = 0;
numberCellType68.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType68.MaximumValue = 2147483647D;
numberCellType68.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(30).CellType = numberCellType68;
this.fpSpread1_Sheet1.Columns.Get(30).DataField = "projectidx";
this.fpSpread1_Sheet1.Columns.Get(30).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(30).Label = "*";
this.fpSpread1_Sheet1.Columns.Get(30).Tag = "projectidx";
this.fpSpread1_Sheet1.Columns.Get(30).Width = 51F;
textCellType20.WordWrap = true;
this.fpSpread1_Sheet1.Columns.Get(31).CellType = textCellType20;
textCellType176.WordWrap = true;
this.fpSpread1_Sheet1.Columns.Get(31).CellType = textCellType176;
this.fpSpread1_Sheet1.Columns.Get(31).DataField = "bigo";
this.fpSpread1_Sheet1.Columns.Get(31).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(31).Label = "비고(구매사유)\r\n(요청자)";
this.fpSpread1_Sheet1.Columns.Get(31).Tag = "bigo";
this.fpSpread1_Sheet1.Columns.Get(31).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(31).Width = 96F;
this.fpSpread1_Sheet1.Columns.Get(32).CellType = textCellType21;
this.fpSpread1_Sheet1.Columns.Get(32).CellType = textCellType177;
this.fpSpread1_Sheet1.Columns.Get(32).DataField = "edate";
this.fpSpread1_Sheet1.Columns.Get(32).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(32).Label = "입고예정";
this.fpSpread1_Sheet1.Columns.Get(32).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(33).CellType = textCellType22;
this.fpSpread1_Sheet1.Columns.Get(33).CellType = textCellType178;
this.fpSpread1_Sheet1.Columns.Get(33).DataField = "indate";
this.fpSpread1_Sheet1.Columns.Get(33).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(33).Label = "입고일";
this.fpSpread1_Sheet1.Columns.Get(33).Tag = "indate";
this.fpSpread1_Sheet1.Columns.Get(33).Width = 51F;
numberCellType9.DecimalPlaces = 0;
numberCellType9.NegativeRed = true;
numberCellType9.ShowSeparator = true;
this.fpSpread1_Sheet1.Columns.Get(34).CellType = numberCellType9;
numberCellType69.DecimalPlaces = 0;
numberCellType69.NegativeRed = true;
numberCellType69.ShowSeparator = true;
this.fpSpread1_Sheet1.Columns.Get(34).CellType = numberCellType69;
this.fpSpread1_Sheet1.Columns.Get(34).DataField = "inqty";
this.fpSpread1_Sheet1.Columns.Get(34).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(34).Label = "입고수량";
this.fpSpread1_Sheet1.Columns.Get(34).Tag = "inqty";
this.fpSpread1_Sheet1.Columns.Get(34).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(34).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(35).CellType = textCellType23;
this.fpSpread1_Sheet1.Columns.Get(35).CellType = textCellType179;
this.fpSpread1_Sheet1.Columns.Get(35).DataField = "po";
this.fpSpread1_Sheet1.Columns.Get(35).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(35).Label = "PO#";
this.fpSpread1_Sheet1.Columns.Get(35).Tag = "po";
this.fpSpread1_Sheet1.Columns.Get(35).Width = 51F;
textCellType24.WordWrap = true;
this.fpSpread1_Sheet1.Columns.Get(36).CellType = textCellType24;
textCellType180.WordWrap = true;
this.fpSpread1_Sheet1.Columns.Get(36).CellType = textCellType180;
this.fpSpread1_Sheet1.Columns.Get(36).DataField = "chkremark";
this.fpSpread1_Sheet1.Columns.Get(36).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(36).Label = "비고\r\n(담당자)";
this.fpSpread1_Sheet1.Columns.Get(36).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(37).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(37).CellType = textCellType25;
this.fpSpread1_Sheet1.Columns.Get(37).CellType = textCellType181;
this.fpSpread1_Sheet1.Columns.Get(37).DataField = "purchase_manager";
this.fpSpread1_Sheet1.Columns.Get(37).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(37).Label = "구매담당";
this.fpSpread1_Sheet1.Columns.Get(37).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(38).BackColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(38).CellType = numberCellType10;
this.fpSpread1_Sheet1.Columns.Get(38).CellType = numberCellType70;
this.fpSpread1_Sheet1.Columns.Get(38).DataField = "idx";
this.fpSpread1_Sheet1.Columns.Get(38).ForeColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(38).Tag = "idx";
this.fpSpread1_Sheet1.Columns.Get(38).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(39).BackColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(39).CellType = textCellType26;
this.fpSpread1_Sheet1.Columns.Get(39).CellType = textCellType182;
this.fpSpread1_Sheet1.Columns.Get(39).DataField = "conf_status";
this.fpSpread1_Sheet1.Columns.Get(39).ForeColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(39).Tag = "conf_status";
this.fpSpread1_Sheet1.Columns.Get(39).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(40).BackColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(40).CellType = textCellType26;
this.fpSpread1_Sheet1.Columns.Get(40).CellType = textCellType182;
this.fpSpread1_Sheet1.Columns.Get(40).DataField = "conf_request";
this.fpSpread1_Sheet1.Columns.Get(40).ForeColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(40).Tag = "conf_request";
this.fpSpread1_Sheet1.Columns.Get(40).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(41).BackColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(41).CellType = textCellType26;
this.fpSpread1_Sheet1.Columns.Get(41).CellType = textCellType182;
this.fpSpread1_Sheet1.Columns.Get(41).DataField = "conf_reponse";
this.fpSpread1_Sheet1.Columns.Get(41).ForeColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(41).Tag = "conf_reponse";
this.fpSpread1_Sheet1.Columns.Get(41).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(42).CellType = checkBoxCellType3;
this.fpSpread1_Sheet1.Columns.Get(42).CellType = checkBoxCellType21;
this.fpSpread1_Sheet1.Columns.Get(42).DataField = "isdel";
this.fpSpread1_Sheet1.Columns.Get(42).Label = "삭제됨";
this.fpSpread1_Sheet1.Columns.Get(42).Tag = "isdel";
@@ -1265,12 +1260,51 @@
this.label2.Text = "--";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// 현재목록메일전송ToolStripMenuItem
// 메일전송ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "현재목록메일전송ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(190, 30);
this.ToolStripMenuItem.Text = "현재목록 메일 전송";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
this.ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.ToolStripMenuItem,
this.ToolStripMenuItem,
this.toolStripMenuItem2,
this.ToolStripMenuItem,
this.ToolStripMenuItem});
this.ToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("메일전송ToolStripMenuItem.Image")));
this.ToolStripMenuItem.Name = "메일전송ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(188, 30);
this.ToolStripMenuItem.Text = "메일 전송";
//
// 현재목록ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "현재목록ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "현재목록";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// 현재목록입고양식ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "현재목록입고양식ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "현재목록(입고양식)";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// 선택목록ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "선택목록ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "선택목록";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// 선택목록입고양식ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "선택목록입고양식ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "선택목록(입고양식)";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// toolStripMenuItem2
//
this.toolStripMenuItem2.Name = "toolStripMenuItem2";
this.toolStripMenuItem2.Size = new System.Drawing.Size(177, 6);
//
// fPurchaseNR
//
@@ -1373,7 +1407,6 @@
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripButton toolStripButton6;
private System.Windows.Forms.ToolStripDropDownButton toolStripButton7;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripButton toolStripButton3;
@@ -1388,6 +1421,11 @@
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripButton toolStripButton8;
private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem2;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
}
}

View File

@@ -303,6 +303,7 @@ namespace FEQ0000
FormattingData();
}
void FormattingData()
{
//삭제컬럼인덱스
@@ -417,9 +418,8 @@ namespace FEQ0000
{
FCOMMON.Util.MsgE("저장 실패\n" + ex.Message);
}
}
void showSummary()
{
decimal sum = 0;
@@ -451,7 +451,6 @@ namespace FEQ0000
saveData(true);
}
private void lbEnd_Click(object sender, EventArgs e)
{
//end date
@@ -648,10 +647,6 @@ namespace FEQ0000
return retval;
}
private void copyDataToolStripMenuItem_Click(object sender, EventArgs e)
{
}
private void btFind_Click(object sender, EventArgs e)
{
@@ -733,15 +728,6 @@ namespace FEQ0000
}
private void autoToolStripMenuItem_Click(object sender, EventArgs e)
{
FCOMMON.Util.FPColSizeAuto(this.fpSpread1);
//this.fpSpread1.ActiveSheet.DataAutoSizeColumns = true;
//for (int i = 0; i < this.fpSpread1.ActiveSheet.Rows.Count; i++)
// this.fpSpread1.ActiveSheet.SetRowHeight(i, 25);
//dv1.AutoResizeColumns();
}
private void resetToolStripMenuItem_Click(object sender, EventArgs e)
{
@@ -767,56 +753,7 @@ namespace FEQ0000
}
void dv1_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
{
//if (e.ColumnIndex < 0 || e.RowIndex < 0) return;
//var state = this.dv1.Rows[e.RowIndex].Cells["dvc_state"].Value.ToString();
//switch (state)
//{
// case "00": //입력대기(미확인)
// this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.ForeColor = Color.Black;
// this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = Color.LightGray;
// break;
// case "01": //파트장 승인 기다림
// this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.ForeColor = Color.DarkBlue;
// this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = Color.White;
// break;
// case "03": //PO (협력업체 전달)
// this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.ForeColor = Color.DarkMagenta;
// this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = Color.White;
// break;
// case "04": //자재 수령
// this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = Color.White;
// this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.ForeColor = Color.Green;
// break;
// case "05": //canceld (취소)
// this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = Color.LightGray;
// this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.ForeColor = Color.Red;
// break;
// case "06": //cancel (취소됨)
// this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = Color.HotPink;
// this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.ForeColor = Color.Black;
// break;
// case "08": //문의
// this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = Color.Green;
// this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.ForeColor = Color.White;
// break;
// default:
// this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.BackColor = Color.White;
// this.dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Style.ForeColor = Color.Black;
// break;
//}
}
private void updateSCToolStripMenuItem_Click(object sender, EventArgs e)
{
var dlg = FCOMMON.Util.MsgQ("#SC가 없는 자료에 한하여 일괄 기록을 실행 합니다.");
if (dlg == System.Windows.Forms.DialogResult.Yes)
{
}
}
private void exportDataToolStripMenuItem_Click(object sender, EventArgs e)
{
SaveFileDialog sd = new SaveFileDialog();
@@ -871,11 +808,6 @@ namespace FEQ0000
}
private void copyToolStripMenuItem_Click(object sender, EventArgs e)
{
}
void func_copy()
{
var drv = this.bs.Current as DataRowView;
@@ -1027,11 +959,6 @@ namespace FEQ0000
}
private void toolStripButton3_Click(object sender, EventArgs e)
{
}
private void bs_CurrentChanged(object sender, EventArgs e)
{
var drv = this.bs.Current as DataRowView;
@@ -1054,16 +981,6 @@ namespace FEQ0000
else this.label2.Visible = false;
}
private void toolStripButton4_Click(object sender, EventArgs e)
{
}
string getmaxstr(string src, int len = 30)
{
if (src.Length > len) return src.Substring(0, len) + "...";
else return src;
}
List<string> ChangeMailAddress(List<string> userid)
{
@@ -1092,11 +1009,7 @@ namespace FEQ0000
return retval;
}
private void toolStripButton5_Click(object sender, EventArgs e)
{
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
@@ -1155,189 +1068,6 @@ namespace FEQ0000
f.Show();
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
var db = new DataClasses1DataContext();
var dr = db.MailForm.Where(t => t.cate == "PC").FirstOrDefault();
//현재표시데이터중에 수신자목록을 가져온다
var drows = (dsPurchase.PurchaseRow[])(this.dsPurchase.Purchase.Select(this.bs.Filter, this.bs.Sort));
var grp_req = drows.Where(t => t.request.isEmpty() == false).GroupBy(t => t.request).Select(t => t.FirstOrDefault().request).ToList();
var grp_rec = drows.Where(t => t.receive.isEmpty() == false).GroupBy(t => t.receive).Select(t => t.FirstOrDefault().receive).ToList();
var f = new Purchase.fMailForm("PC");
if (f.ShowDialog() != DialogResult.OK) return;
var form_subject = f.tbSubject.Text.Trim();
var form_body = f.htmlEditor1.Html;
var form_to = f.tbTo.Text.Trim();
var form_cc = f.tbCC.Text.Trim();
var form_bcc = f.tbBcc.Text.Trim();
List<string> tolist = new List<string>(); //최종받는사람
List<string> cclist = new List<string>();
List<string> bcclist = new List<string>();
//받는사람
if (form_to.Contains("{요청}") == true) tolist.AddRange(grp_req);
if (form_to.Contains("{수령}") == true) tolist.AddRange(grp_rec);
form_to = form_to.Replace("{요청}", "");
form_to = form_to.Replace("{수령}", "");
tolist.AddRange(form_to.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries));
tolist = ChangeMailAddress(tolist);
//참조
if (form_cc.Contains("{요청}") == true) cclist.AddRange(grp_req);
if (form_cc.Contains("{수령}") == true) cclist.AddRange(grp_rec);
form_cc = form_cc.Replace("{요청}", "");
form_cc = form_cc.Replace("{수령}", "");
cclist.AddRange(form_cc.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries));
cclist = ChangeMailAddress(cclist);
//숨은참조
if (form_bcc.Contains("{요청}") == true) bcclist.AddRange(grp_req);
if (form_bcc.Contains("{수령}") == true) bcclist.AddRange(grp_rec);
form_bcc = form_bcc.Replace("{요청}", "");
form_bcc = form_bcc.Replace("{수령}", "");
bcclist.AddRange(form_bcc.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries));
bcclist = ChangeMailAddress(bcclist);
var datestr = DateTime.Now.ToShortDateString();
if (dtSD.Text == dtED.Text) datestr = dtSD.Text;
else datestr = dtSD.Text + "~" + dtED.Text;
form_subject = form_subject.Replace("{DATE}", datestr);
try
{
Outlook.Application outlookApplication = new Outlook.Application();
var newMail = outlookApplication.CreateItem(OlItemType.olMailItem) as Outlook.MailItem;
newMail.Display();
newMail.Subject = form_subject; // this.tbSubject.Text.Trim(); // dr.title;
newMail.To = string.Join(";", tolist.ToArray());
newMail.CC = string.Join(";", cclist.ToArray());
newMail.BCC = string.Join(";", bcclist.ToArray());
if (f.chkAttach.Checked)
{
var fi = new System.IO.FileInfo(FCOMMON.Util.CurrentPath + "\\Export\\Purchase_" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".xls");
if (fi.Directory.Exists == false) fi.Directory.Create();
///save file
fpSpread1.SaveExcel(fi.FullName,
FarPoint.Excel.ExcelSaveFlags.SaveAsViewed
| FarPoint.Excel.ExcelSaveFlags.SaveAsFiltered
| FarPoint.Excel.ExcelSaveFlags.NoFormulas
| FarPoint.Excel.ExcelSaveFlags.SaveCustomColumnHeaders);
newMail.Attachments.Add(fi.FullName);
}
if (f.chkList.Checked)
{
//목록을 본문에 추가한다
System.Text.StringBuilder sb = new StringBuilder();
sb.AppendLine("<table border='1' cellspacing='0' cellpadding='1'>");
sb.AppendLine("<thead>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>신청</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>요청</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>CR/CF</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>수령</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>SID</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>품명</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>규격</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>수량</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>단가</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>금액</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>공급</td>");
sb.AppendLine("</thead>");
sb.AppendLine("<tbody>");
var col_신청 = fpSpread1_Sheet1.Columns["pdate"].Index;
var col_요청 = fpSpread1_Sheet1.Columns["requestName"].Index;
var col_CRLF = fpSpread1_Sheet1.Columns["crcf"].Index;
var col_수령 = fpSpread1_Sheet1.Columns["receiveName"].Index;
var col_SID = fpSpread1_Sheet1.Columns["sid"].Index;
var col_품명 = fpSpread1_Sheet1.Columns["pumname"].Index;
var col_규격 = fpSpread1_Sheet1.Columns["pumscale"].Index;
var col_수량 = fpSpread1_Sheet1.Columns["pumqty"].Index;
var col_단가 = fpSpread1_Sheet1.Columns["pumprice"].Index;
var col_금액 = fpSpread1_Sheet1.Columns["pumamt"].Index;
var col_공급 = fpSpread1_Sheet1.Columns["supply"].Index;
var col_비고 = fpSpread1_Sheet1.Columns["bigo"].Index;
for (int i = 0; i < this.fpSpread1_Sheet1.RowCount; i++)
{
var v신청 = fpSpread1_Sheet1.Cells[i, col_신청].Value;
var v요청 = fpSpread1_Sheet1.Cells[i, col_요청].Value;
var vCRCF = fpSpread1_Sheet1.Cells[i, col_CRLF].Value;
var v수령 = fpSpread1_Sheet1.Cells[i, col_수령].Value;
var vSID = fpSpread1_Sheet1.Cells[i, col_SID].Value;
var v품명 = fpSpread1_Sheet1.Cells[i, col_품명].Value;
var v규격 = fpSpread1_Sheet1.Cells[i, col_규격].Value;
var v수량 = fpSpread1_Sheet1.Cells[i, col_수량].Value;
var v단가 = fpSpread1_Sheet1.Cells[i, col_단가].Value;
var v금액 = fpSpread1_Sheet1.Cells[i, col_금액].Value;
var v공급 = fpSpread1_Sheet1.Cells[i, col_공급].Value;
var v비고 = fpSpread1_Sheet1.Cells[i, col_비고].Value;
var s신청 = String.Empty;
var s요청 = String.Empty;
var sCRCF = String.Empty;
var s수령 = String.Empty;
var sSID = String.Empty;
var s품명 = String.Empty;
var s규격 = String.Empty;
var s수량 = "0";
var s단가 = "0";
var s금액 = "0";
var s입고 = String.Empty;
var s공급 = String.Empty;
var s비고 = String.Empty;
if (v신청 != null) s신청 = v신청.ToString();
if (v요청 != null) s요청 = v요청.ToString();
if (vCRCF != null) sCRCF = vCRCF.ToString();
if (v수령 != null) s수령 = v수령.ToString();
if (vSID != null) sSID = vSID.ToString();
if (v품명 != null) s품명 = v품명.ToString();
if (v규격 != null) s규격 = v규격.ToString();
if (v수량 != null) s수량 = v수량.ToString();
if (v단가 != null) s단가 = v단가.ToString();
if (v금액 != null) s금액 = v금액.ToString();
if (v공급 != null) s공급 = v공급.ToString();
sb.AppendLine("<tr>");
sb.AppendLine("<td>" + getmaxstr(s신청) + "</td>");
sb.AppendLine("<td>" + getmaxstr(s요청) + "</td>");
sb.AppendLine("<td>" + getmaxstr(sCRCF) + "</td>");
sb.AppendLine("<td>" + getmaxstr(s수령) + "</td>");
sb.AppendLine("<td>" + getmaxstr(sSID) + "</td>");
sb.AppendLine("<td>" + getmaxstr(s품명) + "</td>");
sb.AppendLine("<td>" + getmaxstr(s규격) + "</td>");
sb.AppendLine("<td style='text-align:center'>" + int.Parse(s수량).ToString("N0") + "</td>");
sb.AppendLine("<td style='text-align:right'>" + int.Parse(s단가).ToString("N0") + "</td>");
sb.AppendLine("<td style='text-align:right'>" + int.Parse(s금액).ToString("N0") + "</td>");
sb.AppendLine("<td>" + getmaxstr(s공급) + "</td>");
sb.AppendLine("</tr>");
}
sb.AppendLine("</tbody>");
sb.AppendLine("</table>");
form_body += sb.ToString();
}
//newMail.BodyFormat = OlBodyFormat.olFormatHTML;
form_body = form_body.Replace("{DATE}", datestr);
newMail.HTMLBody = form_body + newMail.HTMLBody; //
}
catch (Exception ex)
{
util.MsgE("전송실패\n\n" + ex.Message + "\n\n" +
"아웃룩의 설정이 정상인지 확인하세요");
}
}
private void toolStripButton3_Click_1(object sender, EventArgs e)
{
@@ -1349,6 +1079,71 @@ namespace FEQ0000
else FCOMMON.Util.MsgE("설명서 파일(manual.pdf)이 없습니다. 개발자 문의 해주세요(chikyun.kim@amkor.co.kr)");
}
List<dsPurchase.PurchaseRow> GetDatarows(bool all = false)
{
List<dsPurchase.PurchaseRow> rows = new List<dsPurchase.PurchaseRow>();
if (all)
{
var drows = (dsPurchase.PurchaseRow[])(this.dsPurchase.Purchase.Select(this.bs.Filter, this.bs.Sort)); ;
foreach (var dr in drows)
rows.Add(dr);
}
else
{
//선택된 자료의 데이터를 추출한다.
var selected = this.fpSpread1_Sheet1.GetSelections(); //선택된 개체확인
List<int> rowidxs = new List<int>();
var idxcol = this.fpSpread1_Sheet1.Columns["idx"];
var idxconf = this.fpSpread1_Sheet1.Columns["conf_status"];
var idxstatus = this.fpSpread1_Sheet1.Columns["state"];
foreach (var item in selected)
{
for (int i = item.Row; i < item.Row + item.RowCount; i++)
{
if (rowidxs.Contains(i) == false)
{
if (fpSpread1_Sheet1.IsRowBound(i))
{
var confsta = fpSpread1.ActiveSheet.GetValue(i, idxconf.Index);
var state = fpSpread1.ActiveSheet.GetValue(i, idxstatus.Index);
//if (state != null && state.ToString() != "---")
//{
// FCOMMON.Util.MsgE($"{i}번 줄의 데이터는 신규 요청데이터가 아닙니다");
//}
//else if (confsta != null && confsta.ToString() != "0")
//{
// FCOMMON.Util.MsgE($"{i}번 줄의 데이터는 신청이 완료된 자료 입니다");
//}
// else
rowidxs.Add(i);
}
}
}
}
//수집된데이터를 보내야한다.
var idx = 0;
foreach (var i in rowidxs)
{
var rowidx = (int)fpSpread1.ActiveSheet.GetValue(i, idxcol.Index);
var row = this.dsPurchase.Purchase.Where(t => t.idx == rowidx).First();
rows.Add(row);
}
if (rows.Any() == false)
{
if (this.bs.Count > 0)
{
var drv = this.bs.Current as DataRowView;
rows.Add(drv.Row as dsPurchase.PurchaseRow);
}
}
}
return rows;
}
private void fpSpread1_EditModeOff(object sender, EventArgs e)
{
if (fpSpread1_Sheet1.Columns["pumqty"].Index == fpSpread1_Sheet1.ActiveColumnIndex)
@@ -1512,51 +1307,11 @@ namespace FEQ0000
private void toolStripButton8_Click(object sender, EventArgs e)
{
//승인요청
//선택된 자료의 데이터를 추출한다.
var selected = this.fpSpread1_Sheet1.GetSelections(); //선택된 개체확인
List<int> rowidxs = new List<int>();
var idxcol = this.fpSpread1_Sheet1.Columns["idx"];
var idxconf = this.fpSpread1_Sheet1.Columns["conf_status"];
var idxstatus = this.fpSpread1_Sheet1.Columns["state"];
foreach (var item in selected)
{
for (int i = item.Row; i < item.Row + item.RowCount; i++)
{
if (rowidxs.Contains(i) == false)
{
if (fpSpread1_Sheet1.IsRowBound(i))
{
var confsta = fpSpread1.ActiveSheet.GetValue(i, idxconf.Index);
var state = fpSpread1.ActiveSheet.GetValue(i, idxstatus.Index);
if (state != null && state.ToString() != "---")
{
FCOMMON.Util.MsgE($"{i}번 줄의 데이터는 신규 요청데이터가 아닙니다");
}
//else if (confsta != null && confsta.ToString() != "0")
//{
// FCOMMON.Util.MsgE($"{i}번 줄의 데이터는 신청이 완료된 자료 입니다");
//}
else rowidxs.Add(i);
}
}
}
}
//수집된데이터를 보내야한다.
List<dsPurchase.PurchaseRow> rows = new List<dsPurchase.PurchaseRow>();
var idx = 0;
foreach (var i in rowidxs)
{
var rowidx = (int)fpSpread1.ActiveSheet.GetValue(i, idxcol.Index);
var row = this.dsPurchase.Purchase.Where(t => t.idx == rowidx).First();
rows.Add(row);
}
var rows = GetDatarows();
//이자료를 승인요청창에 보낸다.
if(rows.Any()==false)
if (rows.Any() == false)
{
FCOMMON.Util.MsgE("대상 데이터가 없습니다.");
return;
@@ -1567,26 +1322,46 @@ namespace FEQ0000
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
var cate = "PO";
MailSendNoForm(true);
}
var db = new DataClasses1DataContext();
var dr = db.MailForm.Where(t => t.cate == cate).FirstOrDefault();
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
MailSendNoForm(true, "PC");
}
void MailSendNoForm(bool alldata, string cate = "")
{
var form_subject = "";
var form_body = "";
var form_to = "";
var form_cc = "{요청}";
var form_bcc = "";//f.tbBcc.Text.Trim();
bool attachfile = true;
bool attachlist = true;
if (cate.isEmpty() == false)
{
var db = new DataClasses1DataContext();
var dr = db.MailForm.Where(t => t.cate == cate).FirstOrDefault();
var f = new Purchase.fMailForm(cate);
if (f.ShowDialog() != DialogResult.OK) return;
form_subject = f.tbSubject.Text.Trim();
form_body = f.htmlEditor1.Html;
form_to = f.tbTo.Text.Trim();
form_cc = f.tbCC.Text.Trim();
form_bcc = f.tbBcc.Text.Trim();
attachfile = f.chkAttach.Checked;
attachlist = f.chkList.Checked;
}
//현재표시데이터중에 수신자목록을 가져온다
var drows = (dsPurchase.EETGW_PurchaseEBRow[])(this.dsPurchase.EETGW_PurchaseEB.Select(this.bs.Filter, this.bs.Sort));
var drows = this.GetDatarows(alldata);
var grp_req = drows.Where(t => t.request.isEmpty() == false).GroupBy(t => t.request).Select(t => t.FirstOrDefault().request).ToList();
var grp_rec = drows.Where(t => t.receive.isEmpty() == false).GroupBy(t => t.receive).Select(t => t.FirstOrDefault().receive).ToList();
var f = new Purchase.fMailForm(cate);
if (f.ShowDialog() != DialogResult.OK) return;
var form_subject = f.tbSubject.Text.Trim();
var form_body = f.htmlEditor1.Html;
var form_to = f.tbTo.Text.Trim();
var form_cc = f.tbCC.Text.Trim();
var form_bcc = f.tbBcc.Text.Trim();
List<string> tolist = new List<string>(); //최종받는사람
List<string> cclist = new List<string>();
@@ -1630,117 +1405,23 @@ namespace FEQ0000
newMail.To = string.Join(";", tolist.ToArray());
newMail.CC = string.Join(";", cclist.ToArray());
newMail.BCC = string.Join(";", bcclist.ToArray());
if (f.chkAttach.Checked)
string fn = "";
if (attachfile)
{
var fi = new System.IO.FileInfo(FCOMMON.Util.CurrentPath + "\\Export\\PurchaseListEB_" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".xls");
var fi = new System.IO.FileInfo(FCOMMON.Util.CurrentPath + "\\Export\\PurchaseNRI_" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".xls");
if (fi.Directory.Exists == false) fi.Directory.Create();
///save file
fpSpread1.SaveExcel(fi.FullName,
FarPoint.Excel.ExcelSaveFlags.SaveAsViewed
| FarPoint.Excel.ExcelSaveFlags.SaveAsFiltered
| FarPoint.Excel.ExcelSaveFlags.NoFormulas
| FarPoint.Excel.ExcelSaveFlags.SaveCustomColumnHeaders);
newMail.Attachments.Add(fi.FullName);
fn = fi.FullName;
}
if (f.chkList.Checked)
var tabledata = UTIL_EQ0000.MakeDataTableToHTML(drows, fn);
if (attachlist)
{
//목록을 본문에 추가한다
System.Text.StringBuilder sb = new StringBuilder();
sb.AppendLine("<table border='1' cellspacing='0' cellpadding='1'>");
sb.AppendLine("<thead>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>신청</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>요청</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>CR/CF</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>수령</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>SID</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>품명</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>규격</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>수량</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>단가</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>금액</td>");
sb.AppendLine("<td style='text-align:center;background-color: aqua;'>공급</td>");
sb.AppendLine("</thead>");
sb.AppendLine("<tbody>");
var col_신청 = fpSpread1_Sheet1.Columns["pdate"].Index;
var col_요청 = fpSpread1_Sheet1.Columns["requestName"].Index;
var col_CRLF = fpSpread1_Sheet1.Columns["crcf"].Index;
var col_수령 = fpSpread1_Sheet1.Columns["receiveName"].Index;
var col_SID = fpSpread1_Sheet1.Columns["sid"].Index;
var col_품명 = fpSpread1_Sheet1.Columns["pumname"].Index;
var col_규격 = fpSpread1_Sheet1.Columns["pumscale"].Index;
var col_수량 = fpSpread1_Sheet1.Columns["pumqty"].Index;
var col_단가 = fpSpread1_Sheet1.Columns["pumprice"].Index;
var col_금액 = fpSpread1_Sheet1.Columns["pumamt"].Index;
var col_공급 = fpSpread1_Sheet1.Columns["supply"].Index;
var col_비고 = fpSpread1_Sheet1.Columns["bigo"].Index;
for (int i = 0; i < this.fpSpread1_Sheet1.RowCount; i++)
{
var v신청 = fpSpread1_Sheet1.Cells[i, col_신청].Value;
var v요청 = fpSpread1_Sheet1.Cells[i, col_요청].Value;
var vCRCF = fpSpread1_Sheet1.Cells[i, col_CRLF].Value;
var v수령 = fpSpread1_Sheet1.Cells[i, col_수령].Value;
var vSID = fpSpread1_Sheet1.Cells[i, col_SID].Value;
var v품명 = fpSpread1_Sheet1.Cells[i, col_품명].Value;
var v규격 = fpSpread1_Sheet1.Cells[i, col_규격].Value;
var v수량 = fpSpread1_Sheet1.Cells[i, col_수량].Value;
var v단가 = fpSpread1_Sheet1.Cells[i, col_단가].Value;
var v금액 = fpSpread1_Sheet1.Cells[i, col_금액].Value;
var v공급 = fpSpread1_Sheet1.Cells[i, col_공급].Value;
var v비고 = fpSpread1_Sheet1.Cells[i, col_비고].Value;
var s신청 = String.Empty;
var s요청 = String.Empty;
var sCRCF = String.Empty;
var s수령 = String.Empty;
var sSID = String.Empty;
var s품명 = String.Empty;
var s규격 = String.Empty;
var s수량 = "0";
var s단가 = "0";
var s금액 = "0";
var s입고 = String.Empty;
var s공급 = String.Empty;
var s비고 = String.Empty;
if (v신청 != null) s신청 = v신청.ToString();
if (v요청 != null) s요청 = v요청.ToString();
if (vCRCF != null) sCRCF = vCRCF.ToString();
if (v수령 != null) s수령 = v수령.ToString();
if (vSID != null) sSID = vSID.ToString();
if (v품명 != null) s품명 = v품명.ToString();
if (v규격 != null) s규격 = v규격.ToString();
if (v수량 != null) s수량 = v수량.ToString();
if (v단가 != null) s단가 = v단가.ToString();
if (v금액 != null) s금액 = v금액.ToString();
if (v공급 != null) s공급 = v공급.ToString();
sb.AppendLine("<tr>");
sb.AppendLine("<td>" + getmaxstr(s신청) + "</td>");
sb.AppendLine("<td>" + getmaxstr(s요청) + "</td>");
sb.AppendLine("<td>" + getmaxstr(sCRCF) + "</td>");
sb.AppendLine("<td>" + getmaxstr(s수령) + "</td>");
sb.AppendLine("<td>" + getmaxstr(sSID) + "</td>");
sb.AppendLine("<td>" + getmaxstr(s품명) + "</td>");
sb.AppendLine("<td>" + getmaxstr(s규격) + "</td>");
sb.AppendLine("<td style='text-align:center'>" + int.Parse(s수량).ToString("N0") + "</td>");
sb.AppendLine("<td style='text-align:right'>" + int.Parse(s단가).ToString("N0") + "</td>");
sb.AppendLine("<td style='text-align:right'>" + int.Parse(s금액).ToString("N0") + "</td>");
sb.AppendLine("<td>" + getmaxstr(s공급) + "</td>");
sb.AppendLine("</tr>");
}
sb.AppendLine("</tbody>");
sb.AppendLine("</table>");
form_body += sb.ToString();
form_body += "<br />" + tabledata;
}
if (fn.isEmpty() == false)
newMail.Attachments.Add(fn);
//newMail.BodyFormat = OlBodyFormat.olFormatHTML;
form_body = form_body.Replace("{DATE}", datestr);
newMail.HTMLBody = form_body + newMail.HTMLBody; //
@@ -1751,5 +1432,15 @@ namespace FEQ0000
"아웃룩의 설정이 정상인지 확인하세요");
}
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
MailSendNoForm(false);
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
MailSendNoForm(false, "PC");
}
}
}

View File

@@ -296,7 +296,7 @@
brxxceG+j2Kl3h27zR5GDDxbI4jQ6H0RFvYPxczhJbhCpsgAAAAASUVORK5CYII=
</value>
</data>
<data name="입고품목메일전송ToolStripMenuItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<data name="메일전송ToolStripMenuItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
R0lGODlhEAAQAIQfAPr8/VVritvj7IqsyElVa+Ps9MvT2rvc/aPQ/KrU/Or0/nmYspzN/LbZ/FJgeXiQ
q0NLXHWPrJnA1sDf/CkxQ9RSXD5FVa/X/H2fudPn8HyjwMPg/WV/nG+Or////////yH/C05FVFNDQVBF

View File

@@ -40,6 +40,7 @@ namespace FEQ0000
this.bs.DataSource = rows;
this.dataGridView1.DataError += (s1, e1) => { };
this.dataGridView1.EditMode = DataGridViewEditMode.EditOnKeystroke;
}
private void FPurchase_FormClosing(object sender, FormClosingEventArgs e)
@@ -312,11 +313,6 @@ namespace FEQ0000
}
private void toolStripButton3_Click(object sender, EventArgs e)
{
}
private void bs_CurrentChanged(object sender, EventArgs e)
{
var dr = bs.Current as dsPurchase.PurchaseRow;
@@ -326,10 +322,6 @@ namespace FEQ0000
//else richTextBox2.Text = dr.bigo;
}
private void toolStripButton4_Click(object sender, EventArgs e)
{
}
string getmaxstr(string src, int len = 30)
{
@@ -441,77 +433,25 @@ namespace FEQ0000
newMail.To = string.Join(";", tolist.ToArray());
newMail.CC = string.Join(";", cclist.ToArray());
newMail.BCC = string.Join(";", bcclist.ToArray());
string fn = "";
if (f.chkAttach.Checked)
{
var fi = new System.IO.FileInfo(FCOMMON.Util.CurrentPath + "\\Export\\Purchase_confirm_" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".xls");
var fi = new System.IO.FileInfo(FCOMMON.Util.CurrentPath + "\\Export\\PurchaseNR_confirmeb_" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".xls");
if (fi.Directory.Exists == false) fi.Directory.Create();
fn = fi.FullName;
//FCOMMON.Util.savetoexcel(this.dataGridView1, fi.FullName);
FCOMMON.Util.savetoexcel(this.dataGridView1, fi.FullName);
newMail.Attachments.Add(fi.FullName);
//newMail.Attachments.Add(fi.FullName);
}
if (f.chkList.Checked)
{
var rows = this.rows;
var tabledata = UTIL_EQ0000.MakeDataTableToHTML(rows, fn);
//목록을 본문에 추가한다
System.Text.StringBuilder sb = new StringBuilder();
sb.AppendLine("<table border='1' cellspacing='0' cellpadding='1'>");
sb.AppendLine("<thead>");
foreach (DataGridViewColumn col in this.dataGridView1.Columns)
{
if (col.DataPropertyName.ToLower() == "pumqty") continue;
sb.AppendLine($"<td style='text-align:center;background-color: aqua;'>{col.HeaderText}</td>");
}
sb.AppendLine("</thead>");
sb.AppendLine("<tbody>");
for (int i = 0; i < this.dataGridView1.RowCount; i++)
{
sb.AppendLine("<tr>");
foreach (DataGridViewColumn col in this.dataGridView1.Columns)
{
if (col.DataPropertyName.ToLower() == "pumqty") continue;
var v = dataGridView1.Rows[i].Cells[col.Index].Value;
string value = "";
if (v != null) value = v.ToString();
if (col.ValueType == typeof(int))
{
var ivalue = (int)v;
sb.AppendLine($"<td style='text-align:center'>{ivalue:N0}</td>");
}
else if (col.ValueType == typeof(decimal))
{
var ivalue = (decimal)v;
sb.AppendLine($"<td style='text-align:center'>{ivalue:N0}</td>");
}
else if (col.ValueType == typeof(float))
{
var ivalue = (float)v;
sb.AppendLine($"<td style='text-align:center'>{ivalue:N1}</td>");
}
else if (col.ValueType == typeof(double))
{
var ivalue = (double)v;
sb.AppendLine($"<td style='text-align:center'>{ivalue:N1}</td>");
}
else sb.AppendLine($"<td>{getmaxstr(value)}</td>");
}
sb.AppendLine("</tr>");
}
sb.AppendLine("</tbody>");
sb.AppendLine("</table>");
sb.AppendLine($"항목:{this.bs.Count}건,합계금액:{lbSum.Text}");
form_body = form_body.Replace("{body}", sb.ToString());
}
//newMail.BodyFormat = OlBodyFormat.olFormatHTML;
if (fn.isEmpty() == false)
newMail.Attachments.Add(fn);
form_body = form_body.Replace("{body}", tabledata);
newMail.HTMLBody = form_body + newMail.HTMLBody; //
}
catch (Exception ex)

View File

@@ -63,6 +63,9 @@ namespace FEQ0000.Purchase
this.tbPrjName = new System.Windows.Forms.TextBox();
this.tbIdx = new System.Windows.Forms.TextBox();
this.panel2 = new System.Windows.Forms.Panel();
this.tbSCRCF = new System.Windows.Forms.TextBox();
this.tbSC = new System.Windows.Forms.TextBox();
this.tbSID = new System.Windows.Forms.TextBox();
this.tbRemarkO = new System.Windows.Forms.TextBox();
this.tbAmt = new System.Windows.Forms.TextBox();
this.tbPriceO = new System.Windows.Forms.TextBox();
@@ -82,9 +85,6 @@ namespace FEQ0000.Purchase
this.dtInDate = new System.Windows.Forms.DateTimePicker();
this.btOK = new System.Windows.Forms.Button();
this.arLabel3 = new System.Windows.Forms.Label();
this.tbSID = new System.Windows.Forms.TextBox();
this.tbSCRCF = new System.Windows.Forms.TextBox();
this.tbSC = new System.Windows.Forms.TextBox();
label17 = new System.Windows.Forms.Label();
label12 = new System.Windows.Forms.Label();
label11 = new System.Windows.Forms.Label();
@@ -276,6 +276,45 @@ namespace FEQ0000.Purchase
label1.TabIndex = 98;
label1.Text = "수량/단가/금액";
//
// label10
//
label10.AutoSize = true;
label10.Location = new System.Drawing.Point(40, 171);
label10.Name = "label10";
label10.Size = new System.Drawing.Size(58, 12);
label10.TabIndex = 109;
label10.Text = "SCR/CF#";
//
// label15
//
label15.AutoSize = true;
label15.Location = new System.Drawing.Point(76, 152);
label15.Name = "label15";
label15.Size = new System.Drawing.Size(22, 12);
label15.TabIndex = 110;
label15.Text = "SC";
//
// label14
//
label14.AutoSize = true;
label14.Font = new System.Drawing.Font("맑은 고딕", 15F);
label14.Location = new System.Drawing.Point(67, 303);
label14.Name = "label14";
label14.Size = new System.Drawing.Size(38, 28);
label14.TabIndex = 115;
label14.Text = "PO";
//
// label7
//
label7.AutoSize = true;
label7.Font = new System.Drawing.Font("맑은 고딕", 15F);
label7.Location = new System.Drawing.Point(53, 221);
label7.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label7.Name = "label7";
label7.Size = new System.Drawing.Size(52, 28);
label7.TabIndex = 116;
label7.Text = "비고";
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.Gainsboro;
@@ -303,7 +342,7 @@ namespace FEQ0000.Purchase
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(582, 171);
this.panel1.Size = new System.Drawing.Size(985, 171);
this.panel1.TabIndex = 87;
//
// tbPrjStatus
@@ -388,7 +427,7 @@ namespace FEQ0000.Purchase
this.arLabel2.ForeColor = System.Drawing.Color.Black;
this.arLabel2.Location = new System.Drawing.Point(0, 0);
this.arLabel2.Name = "arLabel2";
this.arLabel2.Size = new System.Drawing.Size(582, 23);
this.arLabel2.Size = new System.Drawing.Size(985, 23);
this.arLabel2.TabIndex = 86;
this.arLabel2.Text = "프로젝트";
this.arLabel2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -435,9 +474,40 @@ namespace FEQ0000.Purchase
this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
this.panel2.Location = new System.Drawing.Point(0, 171);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(582, 192);
this.panel2.Size = new System.Drawing.Size(985, 192);
this.panel2.TabIndex = 88;
//
// tbSCRCF
//
this.tbSCRCF.Font = new System.Drawing.Font("굴림", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.tbSCRCF.ImeMode = System.Windows.Forms.ImeMode.Hangul;
this.tbSCRCF.Location = new System.Drawing.Point(338, 147);
this.tbSCRCF.Name = "tbSCRCF";
this.tbSCRCF.ReadOnly = true;
this.tbSCRCF.Size = new System.Drawing.Size(232, 38);
this.tbSCRCF.TabIndex = 112;
//
// tbSC
//
this.tbSC.Font = new System.Drawing.Font("굴림", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.tbSC.ImeMode = System.Windows.Forms.ImeMode.Hangul;
this.tbSC.Location = new System.Drawing.Point(104, 147);
this.tbSC.Name = "tbSC";
this.tbSC.ReadOnly = true;
this.tbSC.Size = new System.Drawing.Size(232, 38);
this.tbSC.TabIndex = 111;
//
// tbSID
//
this.tbSID.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.tbSID.Location = new System.Drawing.Point(433, 53);
this.tbSID.Name = "tbSID";
this.tbSID.ReadOnly = true;
this.tbSID.Size = new System.Drawing.Size(137, 30);
this.tbSID.TabIndex = 108;
this.tbSID.Text = "000000000";
this.tbSID.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// tbRemarkO
//
this.tbRemarkO.ImeMode = System.Windows.Forms.ImeMode.Hangul;
@@ -507,7 +577,7 @@ namespace FEQ0000.Purchase
this.arLabel1.ForeColor = System.Drawing.Color.Black;
this.arLabel1.Location = new System.Drawing.Point(0, 0);
this.arLabel1.Name = "arLabel1";
this.arLabel1.Size = new System.Drawing.Size(582, 23);
this.arLabel1.Size = new System.Drawing.Size(985, 23);
this.arLabel1.TabIndex = 86;
this.arLabel1.Text = "품목정보";
this.arLabel1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -560,7 +630,7 @@ namespace FEQ0000.Purchase
this.panel3.Location = new System.Drawing.Point(0, 363);
this.panel3.Name = "panel3";
this.panel3.Padding = new System.Windows.Forms.Padding(0, 0, 10, 10);
this.panel3.Size = new System.Drawing.Size(582, 351);
this.panel3.Size = new System.Drawing.Size(985, 351);
this.panel3.TabIndex = 89;
//
// tbInPrice
@@ -637,7 +707,7 @@ namespace FEQ0000.Purchase
//
this.btOK.Dock = System.Windows.Forms.DockStyle.Right;
this.btOK.Font = new System.Drawing.Font("맑은 고딕", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.btOK.Location = new System.Drawing.Point(433, 23);
this.btOK.Location = new System.Drawing.Point(836, 23);
this.btOK.Name = "btOK";
this.btOK.Size = new System.Drawing.Size(139, 318);
this.btOK.TabIndex = 102;
@@ -654,81 +724,11 @@ namespace FEQ0000.Purchase
this.arLabel3.ForeColor = System.Drawing.Color.Black;
this.arLabel3.Location = new System.Drawing.Point(0, 0);
this.arLabel3.Name = "arLabel3";
this.arLabel3.Size = new System.Drawing.Size(572, 23);
this.arLabel3.Size = new System.Drawing.Size(975, 23);
this.arLabel3.TabIndex = 86;
this.arLabel3.Text = "입고정보";
this.arLabel3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// tbSID
//
this.tbSID.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.tbSID.Location = new System.Drawing.Point(433, 53);
this.tbSID.Name = "tbSID";
this.tbSID.ReadOnly = true;
this.tbSID.Size = new System.Drawing.Size(137, 30);
this.tbSID.TabIndex = 108;
this.tbSID.Text = "000000000";
this.tbSID.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// tbSCRCF
//
this.tbSCRCF.Font = new System.Drawing.Font("굴림", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.tbSCRCF.ImeMode = System.Windows.Forms.ImeMode.Hangul;
this.tbSCRCF.Location = new System.Drawing.Point(338, 147);
this.tbSCRCF.Name = "tbSCRCF";
this.tbSCRCF.ReadOnly = true;
this.tbSCRCF.Size = new System.Drawing.Size(232, 38);
this.tbSCRCF.TabIndex = 112;
//
// tbSC
//
this.tbSC.Font = new System.Drawing.Font("굴림", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.tbSC.ImeMode = System.Windows.Forms.ImeMode.Hangul;
this.tbSC.Location = new System.Drawing.Point(104, 147);
this.tbSC.Name = "tbSC";
this.tbSC.ReadOnly = true;
this.tbSC.Size = new System.Drawing.Size(232, 38);
this.tbSC.TabIndex = 111;
//
// label10
//
label10.AutoSize = true;
label10.Location = new System.Drawing.Point(40, 171);
label10.Name = "label10";
label10.Size = new System.Drawing.Size(58, 12);
label10.TabIndex = 109;
label10.Text = "SCR/CF#";
//
// label15
//
label15.AutoSize = true;
label15.Location = new System.Drawing.Point(76, 152);
label15.Name = "label15";
label15.Size = new System.Drawing.Size(22, 12);
label15.TabIndex = 110;
label15.Text = "SC";
//
// label14
//
label14.AutoSize = true;
label14.Font = new System.Drawing.Font("맑은 고딕", 15F);
label14.Location = new System.Drawing.Point(67, 303);
label14.Name = "label14";
label14.Size = new System.Drawing.Size(38, 28);
label14.TabIndex = 115;
label14.Text = "PO";
//
// label7
//
label7.AutoSize = true;
label7.Font = new System.Drawing.Font("맑은 고딕", 15F);
label7.Location = new System.Drawing.Point(53, 221);
label7.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label7.Name = "label7";
label7.Size = new System.Drawing.Size(52, 28);
label7.TabIndex = 116;
label7.Text = "비고";
//
// fPurchaseNR_Ipgo
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);

View File

@@ -14,13 +14,14 @@ namespace FEQ0000.Purchase
{
int idx = -1;
string po = string.Empty;
public fPurchaseNR_Ipgo(int purchaseIdx,string po_)
public fPurchaseNR_Ipgo(int purchaseIdx, string po_)
{
InitializeComponent();
this.po = po_;
this.idx = purchaseIdx;
this.KeyPreview = true;
this.KeyDown += (s1, e1) => {
this.KeyDown += (s1, e1) =>
{
if (e1.KeyCode == Keys.Escape) this.Close();
};
}
@@ -122,16 +123,24 @@ namespace FEQ0000.Purchase
cmbReceive.Focus();
return;
}
var ta = new dsPurchaseTableAdapters.PurchaseTableAdapter ();
var ta = new dsPurchaseTableAdapters.PurchaseTableAdapter();
var dr = ta.GetByIdx(this.idx).First();
if (chkInDate.Checked == false)
{
if (dr.IsindateNull() == false)
{
if (dr.indate.isEmpty() == false)
{
if (FCOMMON.Util.MsgQ("입고정보를 삭제할까요? 상태는 [PR]로 전환됩니다.") != DialogResult.Yes) return;
}
}
dr.indate = string.Empty;
dr.receive = string.Empty;
// dr.receiveName = string.Empty;
dr.inqty = 0;
dr.inremark = string.Empty;
if (prestatus == "Received") dr.state = "---";
if (prestatus == "Received") dr.state = "PO";
else dr.state = prestatus;
}
else

View File

@@ -180,16 +180,4 @@
<metadata name="label7.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label10.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label15.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label14.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label7.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
</root>

View File

@@ -77,7 +77,6 @@
this.cmbState = new System.Windows.Forms.ComboBox();
this.cmbRequest = new System.Windows.Forms.ComboBox();
this.cmbReceive = new System.Windows.Forms.ComboBox();
this.tbPumIDX = new System.Windows.Forms.TextBox();
this.dtInDate = new System.Windows.Forms.DateTimePicker();
this.chkInDate = new System.Windows.Forms.CheckBox();
this.dtExpDate = new System.Windows.Forms.DateTimePicker();
@@ -118,6 +117,7 @@
this.dsPurchase = new FEQ0000.dsPurchase();
this.bs = new System.Windows.Forms.BindingSource(this.components);
this.ta = new FEQ0000.dsPurchaseTableAdapters.PurchaseTableAdapter();
this.tbPumIDX = new System.Windows.Forms.Button();
processLabel = new System.Windows.Forms.Label();
receiveLabel = new System.Windows.Forms.Label();
scLabel = new System.Windows.Forms.Label();
@@ -216,7 +216,7 @@
// pumpriceLabel
//
pumpriceLabel.AutoSize = true;
pumpriceLabel.Location = new System.Drawing.Point(7, 176);
pumpriceLabel.Location = new System.Drawing.Point(7, 175);
pumpriceLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
pumpriceLabel.Name = "pumpriceLabel";
pumpriceLabel.Size = new System.Drawing.Size(79, 20);
@@ -330,7 +330,7 @@
//
label7.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
label7.Font = new System.Drawing.Font("맑은 고딕", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
label7.Location = new System.Drawing.Point(11, 661);
label7.Location = new System.Drawing.Point(11, 640);
label7.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label7.Name = "label7";
label7.Padding = new System.Windows.Forms.Padding(5);
@@ -434,7 +434,7 @@
//
// label18
//
this.label18.Location = new System.Drawing.Point(277, 177);
this.label18.Location = new System.Drawing.Point(277, 175);
this.label18.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label18.Name = "label18";
this.label18.Size = new System.Drawing.Size(198, 20);
@@ -602,7 +602,7 @@
//
// btSave
//
this.btSave.Location = new System.Drawing.Point(11, 770);
this.btSave.Location = new System.Drawing.Point(11, 749);
this.btSave.Margin = new System.Windows.Forms.Padding(4);
this.btSave.Name = "btSave";
this.btSave.Size = new System.Drawing.Size(490, 43);
@@ -650,18 +650,6 @@
this.cmbReceive.Size = new System.Drawing.Size(286, 28);
this.cmbReceive.TabIndex = 5;
//
// tbPumIDX
//
this.tbPumIDX.Location = new System.Drawing.Point(410, 79);
this.tbPumIDX.Margin = new System.Windows.Forms.Padding(4);
this.tbPumIDX.Name = "tbPumIDX";
this.tbPumIDX.ReadOnly = true;
this.tbPumIDX.Size = new System.Drawing.Size(64, 27);
this.tbPumIDX.TabIndex = 8;
this.tbPumIDX.TabStop = false;
this.tbPumIDX.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.toolTip1.SetToolTip(this.tbPumIDX, "Database ID");
//
// dtInDate
//
this.dtInDate.Location = new System.Drawing.Point(112, 297);
@@ -708,7 +696,7 @@
//
// btSaveAdd
//
this.btSaveAdd.Location = new System.Drawing.Point(511, 770);
this.btSaveAdd.Location = new System.Drawing.Point(511, 749);
this.btSaveAdd.Margin = new System.Windows.Forms.Padding(4);
this.btSaveAdd.Name = "btSaveAdd";
this.btSaveAdd.Size = new System.Drawing.Size(410, 43);
@@ -719,6 +707,7 @@
//
// groupBox1
//
this.groupBox1.Controls.Add(this.tbPumIDX);
this.groupBox1.Controls.Add(this.tbStorage);
this.groupBox1.Controls.Add(this.label18);
this.groupBox1.Controls.Add(this.cmbRemark);
@@ -745,7 +734,6 @@
this.groupBox1.Controls.Add(deptLabel);
this.groupBox1.Controls.Add(this.tbSupplyIndex);
this.groupBox1.Controls.Add(pumamtLabel);
this.groupBox1.Controls.Add(this.tbPumIDX);
this.groupBox1.Controls.Add(this.cmbState);
this.groupBox1.Controls.Add(this.tbSID);
this.groupBox1.Controls.Add(this.tbQtyReq);
@@ -766,7 +754,7 @@
this.groupBox1.Margin = new System.Windows.Forms.Padding(4);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Padding = new System.Windows.Forms.Padding(4);
this.groupBox1.Size = new System.Drawing.Size(490, 651);
this.groupBox1.Size = new System.Drawing.Size(490, 628);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "필수입력";
@@ -859,9 +847,9 @@
// btSIDChk
//
this.btSIDChk.BackColor = System.Drawing.Color.Gray;
this.btSIDChk.Location = new System.Drawing.Point(279, 264);
this.btSIDChk.Location = new System.Drawing.Point(274, 264);
this.btSIDChk.Name = "btSIDChk";
this.btSIDChk.Size = new System.Drawing.Size(196, 34);
this.btSIDChk.Size = new System.Drawing.Size(201, 34);
this.btSIDChk.TabIndex = 27;
this.btSIDChk.Text = "SID 검사(SPR/NR)";
this.btSIDChk.UseVisualStyleBackColor = false;
@@ -951,7 +939,7 @@
this.groupBox2.Margin = new System.Windows.Forms.Padding(4);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Padding = new System.Windows.Forms.Padding(4);
this.groupBox2.Size = new System.Drawing.Size(409, 650);
this.groupBox2.Size = new System.Drawing.Size(409, 627);
this.groupBox2.TabIndex = 0;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "추가정보";
@@ -1064,7 +1052,7 @@
//
// button7
//
this.button7.Location = new System.Drawing.Point(4, 615);
this.button7.Location = new System.Drawing.Point(14, 590);
this.button7.Name = "button7";
this.button7.Size = new System.Drawing.Size(93, 27);
this.button7.TabIndex = 29;
@@ -1083,7 +1071,7 @@
//
// button6
//
this.button6.Location = new System.Drawing.Point(4, 583);
this.button6.Location = new System.Drawing.Point(14, 558);
this.button6.Name = "button6";
this.button6.Size = new System.Drawing.Size(93, 27);
this.button6.TabIndex = 28;
@@ -1093,7 +1081,7 @@
//
// button5
//
this.button5.Location = new System.Drawing.Point(4, 551);
this.button5.Location = new System.Drawing.Point(14, 526);
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(93, 27);
this.button5.TabIndex = 27;
@@ -1103,7 +1091,7 @@
//
// button4
//
this.button4.Location = new System.Drawing.Point(4, 519);
this.button4.Location = new System.Drawing.Point(14, 494);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(93, 27);
this.button4.TabIndex = 26;
@@ -1125,7 +1113,7 @@
// pictureBox1
//
this.pictureBox1.BackColor = System.Drawing.Color.Gray;
this.pictureBox1.Location = new System.Drawing.Point(104, 519);
this.pictureBox1.Location = new System.Drawing.Point(114, 494);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(286, 123);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
@@ -1152,11 +1140,20 @@
//
this.ta.ClearBeforeFill = true;
//
// tbPumIDX
//
this.tbPumIDX.Location = new System.Drawing.Point(410, 79);
this.tbPumIDX.Name = "tbPumIDX";
this.tbPumIDX.Size = new System.Drawing.Size(65, 27);
this.tbPumIDX.TabIndex = 53;
this.tbPumIDX.UseVisualStyleBackColor = true;
this.tbPumIDX.Click += new System.EventHandler(this.tbPumIDX_Click);
//
// fPurchase_Add
//
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(929, 821);
this.ClientSize = new System.Drawing.Size(929, 796);
this.Controls.Add(this.groupBox2);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.btSaveAdd);
@@ -1203,7 +1200,6 @@
private System.Windows.Forms.ComboBox cmbState;
private System.Windows.Forms.ComboBox cmbRequest;
private System.Windows.Forms.ComboBox cmbReceive;
private System.Windows.Forms.TextBox tbPumIDX;
private System.Windows.Forms.DateTimePicker dtInDate;
private System.Windows.Forms.CheckBox chkInDate;
private System.Windows.Forms.DateTimePicker dtExpDate;
@@ -1245,5 +1241,6 @@
private System.Windows.Forms.Label label18;
private System.Windows.Forms.DateTimePicker dtPrdate;
private System.Windows.Forms.CheckBox chkprdate;
private System.Windows.Forms.Button tbPumIDX;
}
}

View File

@@ -1380,5 +1380,29 @@ namespace FEQ0000
btEQModel.BackColor = bgcolor;
btManuProc.BackColor = bgcolor;
}
private void tbPumIDX_Click(object sender, EventArgs e)
{
if (int.TryParse(tbPumIDX.Text, out int pumidx) == false)
{
FCOMMON.Util.MsgE("품번호가 정확하지 않습니다\n품목을 다시 선택하세요");
return;
}
if(pumidx < 0)
{
FCOMMON.Util.MsgE("품번호가 정확하지 않습니다\n품목을 다시 선택하세요");
return;
}
var f = new FCM0000.Item.fItemEdit(pumidx);
if (f.ShowDialog() != DialogResult.OK) return;
tbPumName.Text = f.tbName.Text;
tbPumModel.Text = f.tbModel.Text;
tbPumPrice.Text = f.tbPrice.Text;
tbPumPriceD.Text = f.tbPriceD.Text;
tbSupply.Text = f.tbSupply.Text;
tbSupplyIndex.Text = f.tbSupplyIdx.Text;
tbSID.Text = f.tbSid.Text;
}
}
}

View File

@@ -17387,18 +17387,33 @@ ORDER BY pdate DESC, idx DESC";
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = @"SELECT 'NR' AS source, idx, pdate, state, sid, pumname, pumscale, pumqty, pumprice, pumamt, supply, project, bigo, wdate, dbo.getUserName(request) AS request, indate, inqty,
dbo.getUserName(receive) AS receive, sc, po, orderno, (CASE [state] WHEN 'PO' THEN 1 WHEN 'PR' THEN 2 ELSE 3 END) AS sortkey, purchase_manager, purchase_admin, place
FROM Purchase
WHERE (state IN ('PO', 'PR', 'Approving')) AND (pdate >= @pdate) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (ISNULL(purchase_manager, '') LIKE @search_manager) AND
(ISNULL(purchase_admin, '') LIKE @search_admin)
UNION
SELECT 'CR' AS Expr1, idx, pdate, state, sid, pumname, pumscale, pumqty, pumprice, pumamt, supply, project, bigo, wdate, dbo.getUserName(request) AS request, indate, inqty,
dbo.getUserName(receive) AS receive, sc, po, orderno, (CASE [state] WHEN 'PO' THEN 1 WHEN 'PR' THEN 2 ELSE 3 END) AS sortkey, purchase_manager, purchase_admin, place
FROM EETGW_PurchaseCR
WHERE (state IN ('PO', 'PR', 'Approving')) AND (pdate >= @pdate) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (ISNULL(purchase_manager, '') LIKE @search_manager) AND
(ISNULL(purchase_admin, '') LIKE @search_admin)
ORDER BY sortkey, wdate DESC";
this._commandCollection[0].CommandText = "SELECT \'NR\' AS source, idx, pdate, state, sid, pumname, pumscale, pumqty" +
", pumprice, pumamt, supply, project, bigo, wdate, dbo.getUserName(request) AS re" +
"quest, indate, inqty, \r\n dbo.getUserName(receive) AS receiv" +
"e, sc, po, orderno, (CASE [state] WHEN \'PO\' THEN 1 WHEN \'PR\' THEN 2 ELSE 3 END) " +
"AS sortkey, purchase_manager, purchase_admin, \r\n place\r\nFRO" +
"M Purchase\r\nWHERE (state IN (\'PO\', \'PR\', \'Approving\')) AND " +
"(pdate >= @pdate) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (ISNULL(pu" +
"rchase_manager, \'\') \r\n LIKE @search_manager) AND (ISNULL(pu" +
"rchase_admin, \'\') LIKE @search_admin)\r\nUNION\r\nSELECT \'CR\' AS Expr1, idx" +
", pdate, state, sid, pumname, pumscale, pumqty, pumprice, pumamt, supply, projec" +
"t, bigo, wdate, dbo.getUserName(request) AS request, indate, inqty, \r\n " +
" dbo.getUserName(receive) AS receive, sc, po, orderno, (CASE [state] " +
"WHEN \'PO\' THEN 1 WHEN \'PR\' THEN 2 ELSE 3 END) AS sortkey, purchase_manager, purc" +
"hase_admin, \r\n place\r\nFROM EETGW_PurchaseCR\r\nWHE" +
"RE (state IN (\'PO\', \'PR\', \'Approving\')) AND (pdate >= @pdate) AND (ISN" +
"ULL(isdel, 0) = 0) AND (gcode = @gcode) AND (ISNULL(purchase_manager, \'\') \r\n " +
" LIKE @search_manager) AND (ISNULL(purchase_admin, \'\') LIKE @se" +
"arch_admin)\r\nUNION\r\nSELECT \'EB\' AS Expr1, idx, pdate, state, sid, pumna" +
"me, pumscale, pumqty, pumprice, pumamt, supply, project, bigo, wdate, dbo.getUse" +
"rName(request) AS request, indate, inqty, \r\n dbo.getUserNam" +
"e(receive) AS receive, sc, po, orderno, (CASE [state] WHEN \'PO\' THEN 1 WHEN \'PR\'" +
" THEN 2 ELSE 3 END) AS sortkey, purchase_manager, purchase_admin, \r\n " +
" place\r\nFROM EETGW_PurchaseEB\r\nWHERE (state IN (\'P" +
"O\', \'PR\', \'Approving\')) AND (pdate >= @pdate) AND (ISNULL(isdel, 0) = 0) AND (gc" +
"ode = @gcode) AND (ISNULL(purchase_manager, \'\') \r\n LIKE @se" +
"arch_manager) AND (ISNULL(purchase_admin, \'\') LIKE @search_admin)\r\nORDER BY " +
"sortkey, wdate DESC";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -17406,18 +17421,32 @@ ORDER BY sortkey, wdate DESC";
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@search_admin", global::System.Data.SqlDbType.VarChar, 1024, global::System.Data.ParameterDirection.Input, 0, 0, "", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[1].Connection = this.Connection;
this._commandCollection[1].CommandText = @"SELECT 'NR' AS source, idx, pdate, state, sid, pumname, pumscale, pumqty, pumprice, pumamt, supply, project, bigo, wdate, dbo.getUserName(request) AS request, indate, inqty,
dbo.getUserName(receive) AS receive, sc, po, orderno, (CASE [state] WHEN 'PO' THEN 1 WHEN 'PR' THEN 2 ELSE 3 END) AS sortkey, purchase_manager, purchase_admin, place
FROM Purchase
WHERE (state = 'Received') AND (indate = @pdate) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (ISNULL(purchase_manager, '') LIKE @search_manager) AND (ISNULL(purchase_admin, '')
LIKE @search_admin)
UNION
SELECT 'CR' AS Expr1, idx, pdate, state, sid, pumname, pumscale, pumqty, pumprice, pumamt, supply, project, bigo, wdate, dbo.getUserName(request) AS request, indate, inqty,
dbo.getUserName(receive) AS receive, sc, po, orderno, (CASE [state] WHEN 'PO' THEN 1 WHEN 'PR' THEN 2 ELSE 3 END) AS sortkey, purchase_manager, purchase_admin, place
FROM EETGW_PurchaseCR
WHERE (state = 'Received') AND (indate = @pdate) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (ISNULL(purchase_manager, '') LIKE @search_manager) AND (ISNULL(purchase_admin, '')
LIKE @search_admin)
ORDER BY source DESC, request, wdate DESC";
this._commandCollection[1].CommandText = "SELECT \'NR\' AS source, idx, pdate, state, sid, pumname, pumscale, pumqty" +
", pumprice, pumamt, supply, project, bigo, wdate, dbo.getUserName(request) AS re" +
"quest, indate, inqty, \r\n dbo.getUserName(receive) AS receiv" +
"e, sc, po, orderno, (CASE [state] WHEN \'PO\' THEN 1 WHEN \'PR\' THEN 2 ELSE 3 END) " +
"AS sortkey, purchase_manager, purchase_admin, \r\n place\r\nFRO" +
"M Purchase\r\nWHERE (state = \'Received\') AND (indate = @pdate" +
") AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (ISNULL(purchase_manager, " +
"\'\') LIKE @search_manager) AND \r\n (ISNULL(purchase_admin, \'\'" +
") LIKE @search_admin)\r\nUNION\r\nSELECT \'CR\' AS Expr1, idx, pdate, state, " +
"sid, pumname, pumscale, pumqty, pumprice, pumamt, supply, project, bigo, wdate, " +
"dbo.getUserName(request) AS request, indate, inqty, \r\n dbo." +
"getUserName(receive) AS receive, sc, po, orderno, (CASE [state] WHEN \'PO\' THEN 1" +
" WHEN \'PR\' THEN 2 ELSE 3 END) AS sortkey, purchase_manager, purchase_admin, \r\n " +
" place\r\nFROM EETGW_PurchaseCR\r\nWHERE (st" +
"ate = \'Received\') AND (indate = @pdate) AND (ISNULL(isdel, 0) = 0) AND (gcode = " +
"@gcode) AND (ISNULL(purchase_manager, \'\') LIKE @search_manager) AND \r\n " +
" (ISNULL(purchase_admin, \'\') LIKE @search_admin)\r\nUNION\r\nSELECT " +
" \'CR\' AS Expr1, idx, pdate, state, sid, pumname, pumscale, pumqty, pumprice, " +
"pumamt, supply, project, bigo, wdate, dbo.getUserName(request) AS request, indat" +
"e, inqty, \r\n dbo.getUserName(receive) AS receive, sc, po, o" +
"rderno, (CASE [state] WHEN \'PO\' THEN 1 WHEN \'PR\' THEN 2 ELSE 3 END) AS sortkey, " +
"purchase_manager, purchase_admin, \r\n place\r\nFROM " +
" EETGW_PurchaseEB\r\nWHERE (state = \'Received\') AND (indate = @pdate) AN" +
"D (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (ISNULL(purchase_manager, \'\') " +
"LIKE @search_manager) AND \r\n (ISNULL(purchase_admin, \'\') LI" +
"KE @search_admin)\r\nORDER BY source DESC, request, wdate DESC";
this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "indate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));

View File

@@ -983,18 +983,27 @@ ORDER BY pdate DESC, idx DESC</CommandText>
<DbSource ConnectionRef="gwcs (Settings)" DbObjectName="EE.dbo.Purchase" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT 'NR' AS source, idx, pdate, state, sid, pumname, pumscale, pumqty, pumprice, pumamt, supply, project, bigo, wdate, dbo.getUserName(request) AS request, indate, inqty,
dbo.getUserName(receive) AS receive, sc, po, orderno, (CASE [state] WHEN 'PO' THEN 1 WHEN 'PR' THEN 2 ELSE 3 END) AS sortkey, purchase_manager, purchase_admin, place
FROM Purchase
WHERE (state IN ('PO', 'PR', 'Approving')) AND (pdate &gt;= @pdate) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (ISNULL(purchase_manager, '') LIKE @search_manager) AND
(ISNULL(purchase_admin, '') LIKE @search_admin)
<CommandText>SELECT 'NR' AS source, idx, pdate, state, sid, pumname, pumscale, pumqty, pumprice, pumamt, supply, project, bigo, wdate, dbo.getUserName(request) AS request, indate, inqty,
dbo.getUserName(receive) AS receive, sc, po, orderno, (CASE [state] WHEN 'PO' THEN 1 WHEN 'PR' THEN 2 ELSE 3 END) AS sortkey, purchase_manager, purchase_admin,
place
FROM Purchase
WHERE (state IN ('PO', 'PR', 'Approving')) AND (pdate &gt;= @pdate) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (ISNULL(purchase_manager, '')
LIKE @search_manager) AND (ISNULL(purchase_admin, '') LIKE @search_admin)
UNION
SELECT 'CR' AS Expr1, idx, pdate, state, sid, pumname, pumscale, pumqty, pumprice, pumamt, supply, project, bigo, wdate, dbo.getUserName(request) AS request, indate, inqty,
dbo.getUserName(receive) AS receive, sc, po, orderno, (CASE [state] WHEN 'PO' THEN 1 WHEN 'PR' THEN 2 ELSE 3 END) AS sortkey, purchase_manager, purchase_admin, place
FROM EETGW_PurchaseCR
WHERE (state IN ('PO', 'PR', 'Approving')) AND (pdate &gt;= @pdate) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (ISNULL(purchase_manager, '') LIKE @search_manager) AND
(ISNULL(purchase_admin, '') LIKE @search_admin)
ORDER BY sortkey, wdate DESC</CommandText>
SELECT 'CR' AS Expr1, idx, pdate, state, sid, pumname, pumscale, pumqty, pumprice, pumamt, supply, project, bigo, wdate, dbo.getUserName(request) AS request, indate, inqty,
dbo.getUserName(receive) AS receive, sc, po, orderno, (CASE [state] WHEN 'PO' THEN 1 WHEN 'PR' THEN 2 ELSE 3 END) AS sortkey, purchase_manager, purchase_admin,
place
FROM EETGW_PurchaseCR
WHERE (state IN ('PO', 'PR', 'Approving')) AND (pdate &gt;= @pdate) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (ISNULL(purchase_manager, '')
LIKE @search_manager) AND (ISNULL(purchase_admin, '') LIKE @search_admin)
UNION
SELECT 'EB' AS Expr1, idx, pdate, state, sid, pumname, pumscale, pumqty, pumprice, pumamt, supply, project, bigo, wdate, dbo.getUserName(request) AS request, indate, inqty,
dbo.getUserName(receive) AS receive, sc, po, orderno, (CASE [state] WHEN 'PO' THEN 1 WHEN 'PR' THEN 2 ELSE 3 END) AS sortkey, purchase_manager, purchase_admin,
place
FROM EETGW_PurchaseEB
WHERE (state IN ('PO', 'PR', 'Approving')) AND (pdate &gt;= @pdate) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (ISNULL(purchase_manager, '')
LIKE @search_manager) AND (ISNULL(purchase_admin, '') LIKE @search_admin)
ORDER BY sortkey, wdate DESC</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="pdate" ColumnName="pdate" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@pdate" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="pdate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="gcode" ColumnName="" DataSourceName="" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" Scale="0" Size="10" SourceColumn="" SourceColumnNullMapping="false" SourceVersion="Current" />
@@ -1036,18 +1045,27 @@ ORDER BY sortkey, wdate DESC</CommandText>
<DbSource ConnectionRef="gwcs (Settings)" DbObjectName="EE.dbo.Purchase" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByTodayIn" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetByTodayIn" GeneratorSourceName="FillByTodayIn" GetMethodModifier="Public" GetMethodName="GetByTodayIn" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetByTodayIn" UserSourceName="FillByTodayIn">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT 'NR' AS source, idx, pdate, state, sid, pumname, pumscale, pumqty, pumprice, pumamt, supply, project, bigo, wdate, dbo.getUserName(request) AS request, indate, inqty,
dbo.getUserName(receive) AS receive, sc, po, orderno, (CASE [state] WHEN 'PO' THEN 1 WHEN 'PR' THEN 2 ELSE 3 END) AS sortkey, purchase_manager, purchase_admin, place
FROM Purchase
WHERE (state = 'Received') AND (indate = @pdate) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (ISNULL(purchase_manager, '') LIKE @search_manager) AND (ISNULL(purchase_admin, '')
LIKE @search_admin)
<CommandText>SELECT 'NR' AS source, idx, pdate, state, sid, pumname, pumscale, pumqty, pumprice, pumamt, supply, project, bigo, wdate, dbo.getUserName(request) AS request, indate, inqty,
dbo.getUserName(receive) AS receive, sc, po, orderno, (CASE [state] WHEN 'PO' THEN 1 WHEN 'PR' THEN 2 ELSE 3 END) AS sortkey, purchase_manager, purchase_admin,
place
FROM Purchase
WHERE (state = 'Received') AND (indate = @pdate) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (ISNULL(purchase_manager, '') LIKE @search_manager) AND
(ISNULL(purchase_admin, '') LIKE @search_admin)
UNION
SELECT 'CR' AS Expr1, idx, pdate, state, sid, pumname, pumscale, pumqty, pumprice, pumamt, supply, project, bigo, wdate, dbo.getUserName(request) AS request, indate, inqty,
dbo.getUserName(receive) AS receive, sc, po, orderno, (CASE [state] WHEN 'PO' THEN 1 WHEN 'PR' THEN 2 ELSE 3 END) AS sortkey, purchase_manager, purchase_admin, place
FROM EETGW_PurchaseCR
WHERE (state = 'Received') AND (indate = @pdate) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (ISNULL(purchase_manager, '') LIKE @search_manager) AND (ISNULL(purchase_admin, '')
LIKE @search_admin)
ORDER BY source DESC, request, wdate DESC</CommandText>
SELECT 'CR' AS Expr1, idx, pdate, state, sid, pumname, pumscale, pumqty, pumprice, pumamt, supply, project, bigo, wdate, dbo.getUserName(request) AS request, indate, inqty,
dbo.getUserName(receive) AS receive, sc, po, orderno, (CASE [state] WHEN 'PO' THEN 1 WHEN 'PR' THEN 2 ELSE 3 END) AS sortkey, purchase_manager, purchase_admin,
place
FROM EETGW_PurchaseCR
WHERE (state = 'Received') AND (indate = @pdate) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (ISNULL(purchase_manager, '') LIKE @search_manager) AND
(ISNULL(purchase_admin, '') LIKE @search_admin)
UNION
SELECT 'CR' AS Expr1, idx, pdate, state, sid, pumname, pumscale, pumqty, pumprice, pumamt, supply, project, bigo, wdate, dbo.getUserName(request) AS request, indate, inqty,
dbo.getUserName(receive) AS receive, sc, po, orderno, (CASE [state] WHEN 'PO' THEN 1 WHEN 'PR' THEN 2 ELSE 3 END) AS sortkey, purchase_manager, purchase_admin,
place
FROM EETGW_PurchaseEB
WHERE (state = 'Received') AND (indate = @pdate) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (ISNULL(purchase_manager, '') LIKE @search_manager) AND
(ISNULL(purchase_admin, '') LIKE @search_admin)
ORDER BY source DESC, request, wdate DESC</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="pdate" ColumnName="indate" DataSourceName="EE.dbo.Purchase" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@pdate" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="indate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="gcode" ColumnName="" DataSourceName="" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" Scale="0" Size="10" SourceColumn="" SourceColumnNullMapping="false" SourceVersion="Current" />
@@ -2185,14 +2203,14 @@ ORDER BY pdate DESC, idx DESC</CommandText>
<xs:element name="Ipkolist" msprop:Generator_RowEvHandlerName="IpkolistRowChangeEventHandler" msprop:Generator_RowDeletedName="IpkolistRowDeleted" msprop:Generator_RowDeletingName="IpkolistRowDeleting" msprop:Generator_RowEvArgName="IpkolistRowChangeEvent" msprop:Generator_TablePropName="Ipkolist" msprop:Generator_RowChangedName="IpkolistRowChanged" msprop:Generator_UserTableName="Ipkolist" msprop:Generator_RowChangingName="IpkolistRowChanging" msprop:Generator_RowClassName="IpkolistRow" msprop:Generator_TableClassName="IpkolistDataTable" msprop:Generator_TableVarName="tableIpkolist">
<xs:complexType>
<xs:sequence>
<xs:element name="source" msdata:ReadOnly="true" msprop:Generator_ColumnPropNameInTable="sourceColumn" msprop:Generator_ColumnPropNameInRow="source" msprop:Generator_UserColumnName="source" msprop:Generator_ColumnVarNameInTable="columnsource">
<xs:element name="source" msdata:ReadOnly="true" msprop:Generator_ColumnPropNameInTable="sourceColumn" msprop:Generator_ColumnPropNameInRow="source" msprop:Generator_UserColumnName="source" msprop:Generator_ColumnVarNameInTable="columnsource" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="idx" msdata:ReadOnly="true" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_UserColumnName="idx" msprop:Generator_ColumnVarNameInTable="columnidx" type="xs:int" />
<xs:element name="idx" msdata:ReadOnly="true" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_UserColumnName="idx" msprop:Generator_ColumnVarNameInTable="columnidx" type="xs:int" minOccurs="0" />
<xs:element name="pdate" msdata:ReadOnly="true" msprop:Generator_ColumnPropNameInTable="pdateColumn" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="pdate" msprop:Generator_UserColumnName="pdate" msprop:Generator_ColumnVarNameInTable="columnpdate" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
@@ -2692,7 +2710,7 @@ ORDER BY pdate DESC, idx DESC</CommandText>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="site" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInTable="siteColumn" msprop:Generator_ColumnVarNameInTable="columnsite" msprop:Generator_UserColumnName="site" msprop:Generator_ColumnPropNameInRow="site" minOccurs="0">
<xs:element name="site" msprop:Generator_ColumnPropNameInTable="siteColumn" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="site" msprop:Generator_UserColumnName="site" msprop:Generator_ColumnVarNameInTable="columnsite" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="10" />

View File

@@ -293,6 +293,16 @@ namespace FEQ0000
tbSearch.SelectAll();
}
}
else if (dr.source == "EB")
{
var f = new FEQ0000.Purchase.fPurchaseEB_Ipgo(dr.idx, po);
if (f.ShowDialog() == DialogResult.OK)
{
refreshData();
tbSearch.Focus();
tbSearch.SelectAll();
}
}
else
{
var f = new FEQ0000.Purchase.fPurchaseCR_Ipgo(dr.idx, po);