This commit is contained in:
chi
2024-01-02 23:08:00 +09:00
parent 7a7b667b3d
commit e26efda0fc
33 changed files with 10068 additions and 1357 deletions

View File

@@ -51,6 +51,9 @@
<Reference Include="GrapeCity.Spreadsheet, Version=11.40.20177.0, Culture=neutral, PublicKeyToken=327c3516b1b18457" />
<Reference Include="GrapeCity.Spreadsheet.Win, Version=11.40.20177.0, Culture=neutral, PublicKeyToken=327c3516b1b18457" />
<Reference Include="GrapeCity.Win.PluginInputMan, Version=11.40.20177.0, Culture=neutral, PublicKeyToken=327c3516b1b18457, processorArchitecture=MSIL" />
<Reference Include="libxl.net">
<HintPath>..\..\DLL\libxl.net.dll</HintPath>
</Reference>
<Reference Include="Microsoft.ReportViewer.Common, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
<HintPath>..\..\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.150.1586.0\lib\net40\Microsoft.ReportViewer.Common.dll</HintPath>
</Reference>

View File

@@ -14,6 +14,7 @@ using System.Linq;
using System.Net;
using System.Text;
using System.Windows.Forms;
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
namespace FCOMMON
{
@@ -61,6 +62,62 @@ namespace FCOMMON
#endregion
public static bool savetoexcel(DataGridView dataGridView1,string fn)
{
libxl.Book book;// = new libxl.BinBook();
book = new libxl.XmlBook();
book.setKey(FCOMMON.info.libxlCompany, FCOMMON.info.libxlKey);
var sheet = book.addSheet("Data");
var row = 0;
var col = 0;
foreach (DataGridViewColumn column in dataGridView1.Columns)
{
sheet.writeStr(row, col++, column.HeaderText);
}
for (int i = 0; i < dataGridView1.RowCount; i++)
{
row += 1;
col = 0;
foreach (DataGridViewColumn column in dataGridView1.Columns)
{
var v = dataGridView1.Rows[i].Cells[column.Index].Value;
string value = "";
if (v != null) value = v.ToString();
if (column.ValueType == typeof(int))
{
var ivalue = (int)v;
sheet.writeNum(row, col++, ivalue);
}
else if (column.ValueType == typeof(decimal))
{
var ivalue = (decimal)v;
sheet.writeNum(row, col++, (double)ivalue);
}
else if (column.ValueType == typeof(float))
{
var ivalue = (float)v;
sheet.writeNum(row, col++, ivalue);
}
else if (column.ValueType == typeof(double))
{
var ivalue = (double)v;
sheet.writeNum(row, col++, ivalue);
}
else sheet.writeStr(row, col++, value);
}
}
book.save(fn);
return true;
}
public static string Number2Hangle(long lngNumber)
{

View File

@@ -199,6 +199,12 @@
<Compile Include="PurchaseCR\fPurchaseCR.Designer.cs">
<DependentUpon>fPurchaseCR.cs</DependentUpon>
</Compile>
<Compile Include="PurchaseCR\fPurchaseCR_ConfRequest.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="PurchaseCR\fPurchaseCR_ConfRequest.Designer.cs">
<DependentUpon>fPurchaseCR_ConfRequest.cs</DependentUpon>
</Compile>
<Compile Include="PurchaseEB\fPurchaseEB.cs">
<SubType>Form</SubType>
</Compile>
@@ -223,12 +229,30 @@
<Compile Include="PurchaseEB\fPurchaseEB_Ipgo.Designer.cs">
<DependentUpon>fPurchaseEB_Ipgo.cs</DependentUpon>
</Compile>
<Compile Include="PurchaseEB\fPurchaseEB_ConfRequest.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="PurchaseEB\fPurchaseEB_ConfRequest.Designer.cs">
<DependentUpon>fPurchaseEB_ConfRequest.cs</DependentUpon>
</Compile>
<Compile Include="PurchaseEB\rPurchaseEB.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="PurchaseEB\rPurchaseEB.Designer.cs">
<DependentUpon>rPurchaseEB.cs</DependentUpon>
</Compile>
<Compile Include="fPurchaseConfirm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="fPurchaseConfirm.Designer.cs">
<DependentUpon>fPurchaseConfirm.cs</DependentUpon>
</Compile>
<Compile Include="PurchaseNR\fPurchaseNR_ConfRequest.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="PurchaseNR\fPurchaseNR_ConfRequest.Designer.cs">
<DependentUpon>fPurchaseNR_ConfRequest.cs</DependentUpon>
</Compile>
<Compile Include="PurchaseNR\fPurchaseNR_Ipgo.cs">
<SubType>Form</SubType>
</Compile>
@@ -374,6 +398,9 @@
<DesignTime>True</DesignTime>
</Compile>
<EmbeddedResource Include="Equipment\ReportB.rdlc" />
<EmbeddedResource Include="PurchaseCR\fPurchaseCR_ConfRequest.resx">
<DependentUpon>fPurchaseCR_ConfRequest.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="PurchaseEB\fPurchaseEB.resx">
<DependentUpon>fPurchaseEB.cs</DependentUpon>
</EmbeddedResource>
@@ -392,11 +419,20 @@
<EmbeddedResource Include="PurchaseEB\fPurchaseEB_Ipgo.resx">
<DependentUpon>fPurchaseEB_Ipgo.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="PurchaseEB\fPurchaseEB_ConfRequest.resx">
<DependentUpon>fPurchaseEB_ConfRequest.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="PurchaseEB\Rpt_Purchase.rdlc" />
<EmbeddedResource Include="PurchaseEB\Rpt_PurchasePrc.rdlc" />
<EmbeddedResource Include="PurchaseEB\rPurchaseEB.resx">
<DependentUpon>rPurchaseEB.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="fPurchaseConfirm.resx">
<DependentUpon>fPurchaseConfirm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="PurchaseNR\fPurchaseNR_ConfRequest.resx">
<DependentUpon>fPurchaseNR_ConfRequest.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="PurchaseNR\fPurchaseNR_Ipgo.resx">
<DependentUpon>fPurchaseNR_Ipgo.cs</DependentUpon>
</EmbeddedResource>

View File

@@ -65,6 +65,9 @@
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();
this.dsPurchase = new FEQ0000.dsPurchase();
this.bs = new System.Windows.Forms.BindingSource(this.components);
this.ta = new FEQ0000.dsPurchaseTableAdapters.EETGW_PurchaseCRTableAdapter();
@@ -85,6 +88,7 @@
this.btDel = new System.Windows.Forms.ToolStripButton();
this.toolStripButton4 = new System.Windows.Forms.ToolStripButton();
this.btSave = new System.Windows.Forms.ToolStripButton();
this.toolStripButton8 = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.lbSum = new System.Windows.Forms.ToolStripLabel();
this.toolStripLabel5 = new System.Windows.Forms.ToolStripLabel();
@@ -152,6 +156,7 @@
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();
((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
@@ -208,6 +213,7 @@
this.btDel,
this.toolStripButton4,
this.btSave,
this.toolStripButton8,
this.toolStripSeparator1,
this.lbSum,
this.toolStripLabel5,
@@ -352,6 +358,15 @@
this.btSave.Text = "저장(&S)";
this.btSave.Click += new System.EventHandler(this.btSave_Click);
//
// toolStripButton8
//
this.toolStripButton8.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton8.Image")));
this.toolStripButton8.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton8.Name = "toolStripButton8";
this.toolStripButton8.Size = new System.Drawing.Size(75, 23);
this.toolStripButton8.Text = "승인요청";
this.toolStripButton8.Click += new System.EventHandler(this.toolStripButton8_Click);
//
// toolStripSeparator1
//
this.toolStripSeparator1.Name = "toolStripSeparator1";
@@ -424,7 +439,8 @@
this.toolStripButton7.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.ToolStripMenuItem,
this.ToolStripMenuItem,
this.sAP구매신청엑셀작성ToolStripMenuItem});
this.sAP구매신청엑셀작성ToolStripMenuItem,
this.ToolStripMenuItem});
this.toolStripButton7.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton7.Image")));
this.toolStripButton7.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton7.Name = "toolStripButton7";
@@ -897,6 +913,7 @@
this.fpSpread1.Size = new System.Drawing.Size(1226, 569);
this.fpSpread1.StatusBarVisible = true;
this.fpSpread1.TabIndex = 7;
this.fpSpread1.SetViewportLeftColumn(0, 0, 8);
//
// fpSpread1_Sheet1
//
@@ -904,7 +921,7 @@
this.fpSpread1_Sheet1.SheetName = "Sheet1";
// Formulas and custom names must be loaded with R1C1 reference style
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.R1C1;
this.fpSpread1_Sheet1.ColumnCount = 36;
this.fpSpread1_Sheet1.ColumnCount = 39;
this.fpSpread1_Sheet1.ColumnHeader.RowCount = 2;
this.fpSpread1_Sheet1.ActiveColumnIndex = -1;
this.fpSpread1_Sheet1.ActiveRowIndex = -1;
@@ -1213,13 +1230,35 @@
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).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).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).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).DataField = "conf_request";
this.fpSpread1_Sheet1.Columns.Get(38).ForeColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(38).Tag = "conf_request";
this.fpSpread1_Sheet1.Columns.Get(38).Visible = false;
this.fpSpread1_Sheet1.DataAutoCellTypes = false;
this.fpSpread1_Sheet1.DataAutoSizeColumns = false;
this.fpSpread1_Sheet1.DataSource = this.bs;
this.fpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false;
this.fpSpread1_Sheet1.SelectionPolicy = FarPoint.Win.Spread.Model.SelectionPolicy.MultiRange;
this.fpSpread1_Sheet1.ShowRowSelector = true;
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1;
//
@@ -1235,6 +1274,13 @@
this.label2.Text = "--";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// 현재목록메일전송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);
//
// fPurchaseCR
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -1352,6 +1398,8 @@
private System.Windows.Forms.ToolStripTextBox tbManager;
private System.Windows.Forms.ToolStripLabel toolStripLabel7;
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;
}
}

View File

@@ -287,7 +287,7 @@ namespace FEQ0000
var statindex = this.fpSpread1.ActiveSheet.Columns["state"].Index;
var crcfindex = this.fpSpread1.ActiveSheet.Columns["crcf"].Index;
var prjindex = this.fpSpread1.ActiveSheet.Columns["projectidx"].Index;
var cstsindex = this.fpSpread1.ActiveSheet.Columns["conf_status"].Index;
for (int i = 0; i < this.fpSpread1.ActiveSheet.Rows.Count; i++)
{
@@ -297,9 +297,12 @@ namespace FEQ0000
var value = this.fpSpread1.ActiveSheet.GetValue(i, delindex);
var crcf = this.fpSpread1.ActiveSheet.GetValue(i, crcfindex);
var v_confstats = this.fpSpread1.ActiveSheet.GetValue(i, cstsindex);
var str_crcf = string.Empty;
var str_confstats = string.Empty;
if (crcf != null) str_crcf = crcf.ToString();
if (v_confstats != null) str_confstats = v_confstats.ToString();
if (value != null && (Boolean)value)
@@ -337,6 +340,14 @@ namespace FEQ0000
case "hold":
this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.HotPink;
break;
case "approving":
this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.DarkGoldenrod;
if (str_confstats == "2") //ok
this.fpSpread1.ActiveSheet.Rows[i].BackColor = Color.Lime;
else if (str_confstats == "3") //reject
this.fpSpread1.ActiveSheet.Rows[i].BackColor = Color.HotPink;
break;
default:
this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Black;
break;
@@ -1369,5 +1380,246 @@ 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.EETGW_PurchaseCRRow> rows = new List<dsPurchase.EETGW_PurchaseCRRow>();
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)
{
FCOMMON.Util.MsgE("대상 데이터가 없습니다.");
return;
}
var f = new fPurchaseCR_ConfRequest(rows);
f.ShowDialog();
FormattingData();
}
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();
//현재표시데이터중에 수신자목록을 가져온다
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());
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" +
"아웃룩의 설정이 정상인지 확인하세요");
}
}
}
}

View File

@@ -233,6 +233,21 @@
mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+
kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D
TgDQASA1MVpwzwAAAABJRU5ErkJggg==
</value>
</data>
<data name="toolStripButton8.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG
YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9
0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw
bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc
VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9
c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32
Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo
mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+
kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D
TgDQASA1MVpwzwAAAABJRU5ErkJggg==
</value>
</data>
<data name="btFind.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">

View File

@@ -0,0 +1,566 @@
namespace FEQ0000
{
partial class fPurchaseCR_ConfRequest
{
/// <summary>
/// 필수 디자이너 변수입니다.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 사용 중인 모든 리소스를 정리합니다.
/// </summary>
/// <param name="disposing">관리되는 리소스를 삭제해야 하면 true이고, 그렇지 않으면 false입니다.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region
/// <summary>
/// 디자이너 지원에 필요한 메서드입니다.
/// 이 메서드의 내용을 코드 편집기로 수정하지 마십시오.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fPurchaseCR_ConfRequest));
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
this.dsPurchase = new FEQ0000.dsPurchase();
this.bs = new System.Windows.Forms.BindingSource(this.components);
this.tam = new FEQ0000.dsPurchaseTableAdapters.TableAdapterManager();
this.bn = new System.Windows.Forms.BindingNavigator(this.components);
this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel();
this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMovePreviousItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorSeparator = new System.Windows.Forms.ToolStripSeparator();
this.bindingNavigatorPositionItem = new System.Windows.Forms.ToolStripTextBox();
this.bindingNavigatorSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.bindingNavigatorMoveNextItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
this.btEdit = new System.Windows.Forms.ToolStripButton();
this.btSave = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.lbSum = new System.Windows.Forms.ToolStripLabel();
this.toolStripLabel5 = new System.Windows.Forms.ToolStripLabel();
this.toolStripLabel2 = new System.Windows.Forms.ToolStripLabel();
this.tbFind = new System.Windows.Forms.ToolStripTextBox();
this.btFind = new System.Windows.Forms.ToolStripButton();
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.pdateDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.requestNameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.sidDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pumnameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pumscaleDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pumunitDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pumqtyDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pumqtyReqDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pumpriceDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pumamtDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.supplyDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.bigo2DataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.bigoDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.richTextBox2 = new System.Windows.Forms.RichTextBox();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.ta = new FEQ0000.dsPurchaseTableAdapters.EETGW_PurchaseCRTableAdapter();
((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
this.bn.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.tableLayoutPanel1.SuspendLayout();
this.SuspendLayout();
//
// dsPurchase
//
this.dsPurchase.DataSetName = "dsPurchase";
this.dsPurchase.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
//
// bs
//
this.bs.DataMember = "EETGW_PurchaseCR";
this.bs.DataSource = this.dsPurchase;
this.bs.CurrentChanged += new System.EventHandler(this.bs_CurrentChanged);
//
// tam
//
this.tam.BackupDataSetBeforeUpdate = true;
this.tam.EETGW_PurchaseCRTableAdapter = null;
this.tam.EETGW_PurchaseEBTableAdapter = null;
this.tam.UpdateOrder = FEQ0000.dsPurchaseTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
//
// bn
//
this.bn.AddNewItem = null;
this.bn.BindingSource = this.bs;
this.bn.CountItem = this.bindingNavigatorCountItem;
this.bn.DeleteItem = null;
this.bn.Dock = System.Windows.Forms.DockStyle.Bottom;
this.bn.ImageScalingSize = new System.Drawing.Size(24, 24);
this.bn.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.bindingNavigatorMoveFirstItem,
this.bindingNavigatorMovePreviousItem,
this.bindingNavigatorSeparator,
this.bindingNavigatorPositionItem,
this.bindingNavigatorCountItem,
this.bindingNavigatorSeparator1,
this.bindingNavigatorMoveNextItem,
this.bindingNavigatorMoveLastItem,
this.bindingNavigatorSeparator2,
this.toolStripButton1,
this.btEdit,
this.btSave,
this.toolStripSeparator1,
this.lbSum,
this.toolStripLabel5,
this.toolStripLabel2,
this.tbFind,
this.btFind});
this.bn.Location = new System.Drawing.Point(0, 589);
this.bn.MoveFirstItem = this.bindingNavigatorMoveFirstItem;
this.bn.MoveLastItem = this.bindingNavigatorMoveLastItem;
this.bn.MoveNextItem = this.bindingNavigatorMoveNextItem;
this.bn.MovePreviousItem = this.bindingNavigatorMovePreviousItem;
this.bn.Name = "bn";
this.bn.PositionItem = this.bindingNavigatorPositionItem;
this.bn.Size = new System.Drawing.Size(1219, 31);
this.bn.TabIndex = 0;
this.bn.Text = "bindingNavigator1";
//
// bindingNavigatorCountItem
//
this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem";
this.bindingNavigatorCountItem.Size = new System.Drawing.Size(27, 28);
this.bindingNavigatorCountItem.Text = "/{0}";
this.bindingNavigatorCountItem.ToolTipText = "전체 항목 수";
//
// bindingNavigatorMoveFirstItem
//
this.bindingNavigatorMoveFirstItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveFirstItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveFirstItem.Image")));
this.bindingNavigatorMoveFirstItem.Name = "bindingNavigatorMoveFirstItem";
this.bindingNavigatorMoveFirstItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveFirstItem.Size = new System.Drawing.Size(28, 28);
this.bindingNavigatorMoveFirstItem.Text = "처음으로 이동";
//
// bindingNavigatorMovePreviousItem
//
this.bindingNavigatorMovePreviousItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMovePreviousItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMovePreviousItem.Image")));
this.bindingNavigatorMovePreviousItem.Name = "bindingNavigatorMovePreviousItem";
this.bindingNavigatorMovePreviousItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMovePreviousItem.Size = new System.Drawing.Size(28, 28);
this.bindingNavigatorMovePreviousItem.Text = "이전으로 이동";
//
// bindingNavigatorSeparator
//
this.bindingNavigatorSeparator.Name = "bindingNavigatorSeparator";
this.bindingNavigatorSeparator.Size = new System.Drawing.Size(6, 31);
//
// bindingNavigatorPositionItem
//
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";
this.bindingNavigatorPositionItem.ToolTipText = "현재 위치";
//
// bindingNavigatorSeparator1
//
this.bindingNavigatorSeparator1.Name = "bindingNavigatorSeparator1";
this.bindingNavigatorSeparator1.Size = new System.Drawing.Size(6, 31);
//
// bindingNavigatorMoveNextItem
//
this.bindingNavigatorMoveNextItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveNextItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveNextItem.Image")));
this.bindingNavigatorMoveNextItem.Name = "bindingNavigatorMoveNextItem";
this.bindingNavigatorMoveNextItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveNextItem.Size = new System.Drawing.Size(28, 28);
this.bindingNavigatorMoveNextItem.Text = "다음으로 이동";
//
// bindingNavigatorMoveLastItem
//
this.bindingNavigatorMoveLastItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveLastItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveLastItem.Image")));
this.bindingNavigatorMoveLastItem.Name = "bindingNavigatorMoveLastItem";
this.bindingNavigatorMoveLastItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveLastItem.Size = new System.Drawing.Size(28, 28);
this.bindingNavigatorMoveLastItem.Text = "마지막으로 이동";
//
// bindingNavigatorSeparator2
//
this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator2";
this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 31);
//
// toolStripButton1
//
this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image")));
this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton1.Name = "toolStripButton1";
this.toolStripButton1.Size = new System.Drawing.Size(100, 28);
this.toolStripButton1.Text = "목록제거(&D)";
this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click);
//
// btEdit
//
this.btEdit.Image = ((System.Drawing.Image)(resources.GetObject("btEdit.Image")));
this.btEdit.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btEdit.Name = "btEdit";
this.btEdit.Size = new System.Drawing.Size(73, 28);
this.btEdit.Text = "편집(&E)";
this.btEdit.Click += new System.EventHandler(this.toolStripButton2_Click);
//
// btSave
//
this.btSave.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.btSave.Image = ((System.Drawing.Image)(resources.GetObject("btSave.Image")));
this.btSave.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btSave.Name = "btSave";
this.btSave.Size = new System.Drawing.Size(83, 28);
this.btSave.Text = "승인요청";
this.btSave.Click += new System.EventHandler(this.toolStripButton8_Click);
//
// toolStripSeparator1
//
this.toolStripSeparator1.Name = "toolStripSeparator1";
this.toolStripSeparator1.Size = new System.Drawing.Size(6, 31);
//
// lbSum
//
this.lbSum.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.lbSum.Font = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lbSum.Name = "lbSum";
this.lbSum.Size = new System.Drawing.Size(22, 28);
this.lbSum.Text = "0";
//
// toolStripLabel5
//
this.toolStripLabel5.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.toolStripLabel5.Name = "toolStripLabel5";
this.toolStripLabel5.Size = new System.Drawing.Size(31, 28);
this.toolStripLabel5.Text = "합계";
//
// toolStripLabel2
//
this.toolStripLabel2.Name = "toolStripLabel2";
this.toolStripLabel2.Size = new System.Drawing.Size(31, 28);
this.toolStripLabel2.Text = "검색";
this.toolStripLabel2.Click += new System.EventHandler(this.toolStripLabel2_Click);
//
// 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, 31);
this.tbFind.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tbFind_KeyDown);
//
// btFind
//
this.btFind.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.btFind.Image = ((System.Drawing.Image)(resources.GetObject("btFind.Image")));
this.btFind.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btFind.Name = "btFind";
this.btFind.Size = new System.Drawing.Size(28, 28);
this.btFind.Text = "toolStripButton2";
this.btFind.Click += new System.EventHandler(this.btFind_Click);
//
// toolStrip1
//
this.toolStrip1.ImageScalingSize = new System.Drawing.Size(30, 30);
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(1219, 25);
this.toolStrip1.TabIndex = 3;
this.toolStrip1.Text = "toolStrip1";
//
// dataGridView1
//
this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.AllowUserToDeleteRows = false;
this.dataGridView1.AutoGenerateColumns = false;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.pdateDataGridViewTextBoxColumn,
this.requestNameDataGridViewTextBoxColumn,
this.sidDataGridViewTextBoxColumn,
this.pumnameDataGridViewTextBoxColumn,
this.pumscaleDataGridViewTextBoxColumn,
this.pumunitDataGridViewTextBoxColumn,
this.pumqtyDataGridViewTextBoxColumn,
this.pumqtyReqDataGridViewTextBoxColumn,
this.pumpriceDataGridViewTextBoxColumn,
this.pumamtDataGridViewTextBoxColumn,
this.supplyDataGridViewTextBoxColumn,
this.bigo2DataGridViewTextBoxColumn,
this.bigoDataGridViewTextBoxColumn});
this.dataGridView1.DataSource = this.bs;
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle5.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle5;
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView1.Location = new System.Drawing.Point(0, 25);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.ReadOnly = true;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(1219, 426);
this.dataGridView1.TabIndex = 8;
//
// pdateDataGridViewTextBoxColumn
//
this.pdateDataGridViewTextBoxColumn.DataPropertyName = "pdate";
this.pdateDataGridViewTextBoxColumn.HeaderText = "요청일";
this.pdateDataGridViewTextBoxColumn.Name = "pdateDataGridViewTextBoxColumn";
this.pdateDataGridViewTextBoxColumn.ReadOnly = true;
//
// requestNameDataGridViewTextBoxColumn
//
this.requestNameDataGridViewTextBoxColumn.DataPropertyName = "requestName";
this.requestNameDataGridViewTextBoxColumn.HeaderText = "구매신청";
this.requestNameDataGridViewTextBoxColumn.Name = "requestNameDataGridViewTextBoxColumn";
this.requestNameDataGridViewTextBoxColumn.ReadOnly = true;
//
// sidDataGridViewTextBoxColumn
//
this.sidDataGridViewTextBoxColumn.DataPropertyName = "sid";
this.sidDataGridViewTextBoxColumn.HeaderText = "SID";
this.sidDataGridViewTextBoxColumn.Name = "sidDataGridViewTextBoxColumn";
this.sidDataGridViewTextBoxColumn.ReadOnly = true;
//
// pumnameDataGridViewTextBoxColumn
//
this.pumnameDataGridViewTextBoxColumn.DataPropertyName = "pumname";
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
this.pumnameDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle1;
this.pumnameDataGridViewTextBoxColumn.HeaderText = "품명";
this.pumnameDataGridViewTextBoxColumn.Name = "pumnameDataGridViewTextBoxColumn";
this.pumnameDataGridViewTextBoxColumn.ReadOnly = true;
//
// pumscaleDataGridViewTextBoxColumn
//
this.pumscaleDataGridViewTextBoxColumn.DataPropertyName = "pumscale";
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
this.pumscaleDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle2;
this.pumscaleDataGridViewTextBoxColumn.HeaderText = "모델/규격";
this.pumscaleDataGridViewTextBoxColumn.Name = "pumscaleDataGridViewTextBoxColumn";
this.pumscaleDataGridViewTextBoxColumn.ReadOnly = true;
//
// pumunitDataGridViewTextBoxColumn
//
this.pumunitDataGridViewTextBoxColumn.DataPropertyName = "pumunit";
this.pumunitDataGridViewTextBoxColumn.HeaderText = "단위";
this.pumunitDataGridViewTextBoxColumn.Name = "pumunitDataGridViewTextBoxColumn";
this.pumunitDataGridViewTextBoxColumn.ReadOnly = true;
//
// pumqtyDataGridViewTextBoxColumn
//
this.pumqtyDataGridViewTextBoxColumn.DataPropertyName = "pumqty";
this.pumqtyDataGridViewTextBoxColumn.HeaderText = "신청수량";
this.pumqtyDataGridViewTextBoxColumn.Name = "pumqtyDataGridViewTextBoxColumn";
this.pumqtyDataGridViewTextBoxColumn.ReadOnly = true;
//
// pumqtyReqDataGridViewTextBoxColumn
//
this.pumqtyReqDataGridViewTextBoxColumn.DataPropertyName = "pumqtyReq";
this.pumqtyReqDataGridViewTextBoxColumn.HeaderText = "구매수량";
this.pumqtyReqDataGridViewTextBoxColumn.Name = "pumqtyReqDataGridViewTextBoxColumn";
this.pumqtyReqDataGridViewTextBoxColumn.ReadOnly = true;
//
// pumpriceDataGridViewTextBoxColumn
//
this.pumpriceDataGridViewTextBoxColumn.DataPropertyName = "pumprice";
this.pumpriceDataGridViewTextBoxColumn.HeaderText = "단가";
this.pumpriceDataGridViewTextBoxColumn.Name = "pumpriceDataGridViewTextBoxColumn";
this.pumpriceDataGridViewTextBoxColumn.ReadOnly = true;
//
// pumamtDataGridViewTextBoxColumn
//
this.pumamtDataGridViewTextBoxColumn.DataPropertyName = "pumamt";
this.pumamtDataGridViewTextBoxColumn.HeaderText = "금액";
this.pumamtDataGridViewTextBoxColumn.Name = "pumamtDataGridViewTextBoxColumn";
this.pumamtDataGridViewTextBoxColumn.ReadOnly = true;
//
// supplyDataGridViewTextBoxColumn
//
this.supplyDataGridViewTextBoxColumn.DataPropertyName = "supply";
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
this.supplyDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle3;
this.supplyDataGridViewTextBoxColumn.HeaderText = "공급";
this.supplyDataGridViewTextBoxColumn.Name = "supplyDataGridViewTextBoxColumn";
this.supplyDataGridViewTextBoxColumn.ReadOnly = true;
//
// bigo2DataGridViewTextBoxColumn
//
this.bigo2DataGridViewTextBoxColumn.DataPropertyName = "chkremark";
this.bigo2DataGridViewTextBoxColumn.HeaderText = "비고(구매담당)";
this.bigo2DataGridViewTextBoxColumn.Name = "bigo2DataGridViewTextBoxColumn";
this.bigo2DataGridViewTextBoxColumn.ReadOnly = true;
//
// bigoDataGridViewTextBoxColumn
//
this.bigoDataGridViewTextBoxColumn.DataPropertyName = "bigo";
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
this.bigoDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle4;
this.bigoDataGridViewTextBoxColumn.HeaderText = "비고(구매요청)";
this.bigoDataGridViewTextBoxColumn.Name = "bigoDataGridViewTextBoxColumn";
this.bigoDataGridViewTextBoxColumn.ReadOnly = true;
//
// tableLayoutPanel1
//
this.tableLayoutPanel1.ColumnCount = 2;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel1.Controls.Add(this.richTextBox1, 0, 1);
this.tableLayoutPanel1.Controls.Add(this.richTextBox2, 1, 1);
this.tableLayoutPanel1.Controls.Add(this.label1, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.label2, 1, 0);
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 451);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 2;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(1219, 138);
this.tableLayoutPanel1.TabIndex = 9;
//
// richTextBox1
//
this.richTextBox1.BackColor = System.Drawing.Color.Gold;
this.richTextBox1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "chkremark", true));
this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.richTextBox1.Location = new System.Drawing.Point(3, 28);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(603, 107);
this.richTextBox1.TabIndex = 0;
this.richTextBox1.Text = "";
//
// richTextBox2
//
this.richTextBox2.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "bigo", true));
this.richTextBox2.Dock = System.Windows.Forms.DockStyle.Fill;
this.richTextBox2.Location = new System.Drawing.Point(612, 28);
this.richTextBox2.Name = "richTextBox2";
this.richTextBox2.ReadOnly = true;
this.richTextBox2.Size = new System.Drawing.Size(604, 107);
this.richTextBox2.TabIndex = 0;
this.richTextBox2.Text = "";
//
// label1
//
this.label1.Dock = System.Windows.Forms.DockStyle.Fill;
this.label1.Location = new System.Drawing.Point(3, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(603, 25);
this.label1.TabIndex = 1;
this.label1.Text = "구매 담당자 비고";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label2
//
this.label2.Dock = System.Windows.Forms.DockStyle.Fill;
this.label2.Location = new System.Drawing.Point(612, 0);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(604, 25);
this.label2.TabIndex = 2;
this.label2.Text = "구매신청자 비고(구매사유)";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// ta
//
this.ta.ClearBeforeFill = true;
//
// fPurchaseCR_ConfRequest
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1219, 620);
this.Controls.Add(this.dataGridView1);
this.Controls.Add(this.tableLayoutPanel1);
this.Controls.Add(this.toolStrip1);
this.Controls.Add(this.bn);
this.DoubleBuffered = true;
this.Name = "fPurchaseCR_ConfRequest";
this.Text = "구매신청건 승인요청";
this.Load += new System.EventHandler(this.@__Load);
((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.bn)).EndInit();
this.bn.ResumeLayout(false);
this.bn.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.tableLayoutPanel1.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private dsPurchase dsPurchase;
private System.Windows.Forms.BindingSource bs;
private dsPurchaseTableAdapters.TableAdapterManager tam;
private System.Windows.Forms.BindingNavigator bn;
private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveFirstItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMovePreviousItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator;
private System.Windows.Forms.ToolStripTextBox bindingNavigatorPositionItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator1;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveNextItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2;
private System.Windows.Forms.ToolStrip toolStrip1;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
private System.Windows.Forms.ToolStripLabel toolStripLabel5;
private System.Windows.Forms.ToolStripLabel lbSum;
private System.Windows.Forms.ToolStripLabel toolStripLabel2;
private System.Windows.Forms.ToolStripTextBox tbFind;
private System.Windows.Forms.ToolStripButton btFind;
private System.Windows.Forms.ToolStripButton btEdit;
private System.Windows.Forms.ToolStripButton btSave;
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.DataGridViewTextBoxColumn pdateDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn requestNameDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn sidDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn pumnameDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn pumscaleDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn pumunitDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn pumqtyDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn pumqtyReqDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn pumpriceDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn pumamtDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn supplyDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn bigo2DataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn bigoDataGridViewTextBoxColumn;
private System.Windows.Forms.ToolStripButton toolStripButton1;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private System.Windows.Forms.RichTextBox richTextBox1;
private System.Windows.Forms.RichTextBox richTextBox2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private dsPurchaseTableAdapters.EETGW_PurchaseCRTableAdapter ta;
}
}

View File

@@ -0,0 +1,543 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using util = FCOMMON.Util;
using NetOffice;
using Outlook = NetOffice.OutlookApi;
using NetOffice.OutlookApi.Enums;
using FEQ0000.Purchase;
using FCOMMON;
using NetOffice.OfficeApi;
using System.Web.Services.Protocols;
using System.Diagnostics;
using FarPoint.Win.Spread.CellType;
using FCM0000;
using FarPoint.Win.Spread;
using System.Resources;
namespace FEQ0000
{
public partial class fPurchaseCR_ConfRequest : FCOMMON.fBase
{
string fn_fpcolsize = "";
List<dsPurchase.EETGW_PurchaseCRRow> rows;
public fPurchaseCR_ConfRequest(List<dsPurchase.EETGW_PurchaseCRRow> rows_)
{
InitializeComponent();
this.rows = rows_;
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
Properties.Settings.Default["EEEntities"] = FCOMMON.info.CS;
fn_fpcolsize = util.MakeFilePath(util.CurrentPath, "formSetting", "fp_" + this.Name + ".ini");
this.FormClosing += FPurchase_FormClosing;
this.FormClosed += __Closed;
this.bs.DataSource = rows;
this.dataGridView1.DataError += (s1, e1) => { };
this.dataGridView1.EditMode = DataGridViewEditMode.EditOnKeystroke;
}
private void FPurchase_FormClosing(object sender, FormClosingEventArgs e)
{
if (dsPurchase.HasChanges())
{
var dlg = FCOMMON.Util.MsgQ("변경된 자료가 있습니다. 화면을 닫을까요? 닫으면 변경된 자료는 손실 됩니다");
if (dlg != DialogResult.Yes)
{
e.Cancel = true;
return;
}
}
}
void dtSD_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode != Keys.Enter) return;
var tb = sender as ToolStripTextBox;
var input = tb.Text.Trim();
if (input == "") tb.Text = DateTime.Now.ToShortDateString();
else
{
string dt = string.Empty;
if (!util.MakeDateString(input, out dt))
{
FCOMMON.Util.MsgE("입력값이 올바르지 않습니다.");
tb.SelectAll();
tb.Focus();
return;
}
else
{
tb.Text = dt;
}
}
}
void __Closed(object sender, FormClosedEventArgs e)
{
}
private void __Load(object sender, EventArgs e)
{
//일반사용자의경우에는 상태를 변경하지 못한다.
int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.purchaseEB));
IsAdmin = curLevel >= 5;
if (curLevel >= 5)
{
btSave.Visible = true;
}
else
{
btSave.Visible = false;
}
btSave.Visible = true;
refreshData();
}
bool IsAdmin = false;
private void refreshData()
{
try
{
showSummary();
}
catch (System.Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message);
}
FormattingData();
}
void FormattingData()
{
dataGridView1.AutoResizeColumns();
}
void showSummary()
{
decimal sum = 0;
sum = rows.Sum(t => t.pumamt);
//foreach (dsPurchase.PurchaseRow dr in this.dsPurchase.Purchase.Rows)
//if (!dr.IspumamtNull()) sum += dr.pumamt;
lbSum.Text = sum.ToString("N0");
}
private bool getAdminInput
{
get
{
return FCOMMON.Util.getBit(
FCOMMON.info.Login.gpermission,
(int)FCOMMON.eGroupPermission.purchase_adv);
}
}
private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e)
{
//func_delete();
}
private int AddItemInfoGetIndex(dsPurchase.EETGW_PurchaseCRRow newdr)
{
//이 시드가 아이템목록에 없다면 추가 하고 idx를 조회한 후 설정해준다.
if (newdr.sid == "신규") return -1;
int retval = -1;
var sid = newdr.sid;
var iteminfo = FCOMMON.DBM.getItemInfo(sid);
if (iteminfo.idx < 0)
{
FCOMMON.DBM.sItemInfo newitem = new FCOMMON.DBM.sItemInfo();
newitem.sid = newdr.sid;
newitem.name = newdr.pumname;
newitem.price = newdr.pumprice.ToString();
newitem.model = newdr.pumscale;
newitem.unit = newdr.pumunit;
newitem.scale = 1f;
newitem.supply = newdr.supply;
newitem.supplyidx = newdr.supplyidx;
retval = FCOMMON.DBM.addItemInfo(newitem);
}
return retval;
}
private void btFind_Click(object sender, EventArgs e)
{
var search = tbFind.Text.Trim();
search = search.Replace("*", "x");
if (tbFind.Text != search) tbFind.Text = search;
try
{
if (search.isEmpty())
{
this.bs.Filter = "";
tbFind.BackColor = Color.White;
}
else
{
search = search.Replace("'", "''");
string filter = "supply like ? or sid like ? or process like ? or orderno like ? or sc like ? or pumname like ? or pumscale like ? or project like ?";
filter = filter.Replace("?", "'%" + search + "%'");
this.bs.Filter = filter;
tbFind.BackColor = Color.Lime;
}
tbFind.SelectAll();
tbFind.Focus();
showSummary();
}
catch (Exception ex)
{
this.tbFind.BackColor = Color.Tomato;
FCOMMON.Util.MsgE(ex.Message);
}
}
private void tbFind_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter) btFind.PerformClick();
}
void Func_Edit()
{
var drv = this.bs.Current as DataRowView;
if (drv == null) return;
var newdr = drv.Row as dsPurchase.EETGW_PurchaseCRRow;
bool repeat = false;
DialogResult dlg;
if (getAdminInput == false)
{
repeat = false;
var f = new fPurchaseCR_Add(newdr);
dlg = f.ShowDialog();
}
else
{
var f = new fPurchaseCR_Add(newdr);
dlg = f.ShowDialog();
repeat = f.repeatAdd;
}
if (dlg == System.Windows.Forms.DialogResult.OK)
{
//존재하지 않는 sid 는 추가를 해준다.
var newidx = AddItemInfoGetIndex(newdr);
if (newidx != -1)
{
newdr.pumidx = newidx;
newdr.EndEdit();
}
if (newdr.RowState != DataRowState.Unchanged)
{
this.ta.Update(newdr);
newdr.AcceptChanges();
}
}
else newdr.RejectChanges();
}
private void toolStripButton2_Click(object sender, EventArgs e)
{
Func_Edit();
}
private void sC검색ToolStripMenuItem_Click(object sender, EventArgs e)
{
//sc
var drv = this.bs.Current as DataRowView;
if (drv == null) return;
var newdr = drv.Row as dsPurchase.EETGW_PurchaseCRRow;
if (newdr.sc.Trim() == "")
{
FCOMMON.Util.MsgE("SC값이 없습니다");
return;
}
tbFind.Text = newdr.sc;
btFind.PerformClick();
}
private void cRCF검색ToolStripMenuItem_Click(object sender, EventArgs e)
{
//crcf
var drv = this.bs.Current as DataRowView;
if (drv == null) return;
var newdr = drv.Row as dsPurchase.EETGW_PurchaseCRRow;
if (newdr.orderno.Trim() == "")
{
FCOMMON.Util.MsgE("CR/CF값이 없습니다");
return;
}
tbFind.Text = newdr.orderno;
btFind.PerformClick();
}
private void toolStripLabel2_Click(object sender, EventArgs e)
{
if (tbFind.Text != "")
{
tbFind.Text = "";
btFind.PerformClick();
}
}
private void toolStripButton3_Click(object sender, EventArgs e)
{
}
private void bs_CurrentChanged(object sender, EventArgs e)
{
var dr = bs.Current as dsPurchase.EETGW_PurchaseCRRow;
if (dr.IschkremarkNull()) richTextBox1.Text = "";
//else richTextBox1.Text = dr.chkremark;
//if (dr.IsbigoNull()) richTextBox2.Text = "";
//else richTextBox2.Text = dr.bigo;
}
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)
{
var db = new DataClasses1DataContext();
List<string> retval = new List<string>();
foreach (var id in userid)
{
UInt32 userno;
if (UInt32.TryParse(id, out userno) == true)
{
var user = db.Users.Where(t => t.id == id).FirstOrDefault();
if (user != null)
{
var data = string.Format("{0}<{1}>", user.name, user.email);
if (retval.Contains(data) == false)
retval.Add(data);
}
}
else
{
if (retval.Contains(id) == false)
retval.Add(id);
}
}
return retval;
}
private void toolStripButton8_Click(object sender, EventArgs e)
{
//승인요청
var dlg = FCOMMON.Util.MsgQ("현재 자료를 승인 요청 할까요?");
if (dlg != DialogResult.Yes) return;
//모든자료의 승인상태를 업데이트한다.
foreach (DataGridViewRow row in this.dataGridView1.Rows)
{
var dr = row.DataBoundItem as dsPurchase.EETGW_PurchaseCRRow;
dr.conf_status = "1";
if (dr.state == "---") dr.state = "Approving";
dr.EndEdit();
ta.Update(dr);
dr.AcceptChanges();
}
dlg = util.MsgQ("메일 전송을 할까요?");
if (dlg != DialogResult.Yes) return;
//수신자목록수집
//var drows = (List<dsPurchase.EETGW_PurchaseEBRow>)(this.bs.DataSource);
var grp_req = rows.Where(t => t.request.isEmpty() == false).GroupBy(t => t.request).Select(t => t.FirstOrDefault().request).ToList();
var grp_rec = rows.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>();
var f = new Purchase.fMailForm("PI");
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();
//받는사람
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);
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_confirmcr_" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".xls");
if (fi.Directory.Exists == false) fi.Directory.Create();
FCOMMON.Util.savetoexcel(this.dataGridView1, fi.FullName);
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>");
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;
newMail.HTMLBody = form_body + newMail.HTMLBody; //
}
catch (Exception ex)
{
util.MsgE("전송실패\n\n" + ex.Message + "\n\n" +
"아웃룩의 설정이 정상인지 확인하세요");
}
}
private void toolStripButton1_Click(object sender, EventArgs e)
{
var drv = this.bs.Current as dsPurchase.EETGW_PurchaseCRRow;
if (drv == null) return;
var dlg = util.MsgQ("선택된 줄을 제거 할까요?");
if (dlg != DialogResult.Yes) return;
this.rows.Remove(drv);
if (rows.Any())
{
this.bs.DataSource = rows;
refreshData();
}
else
{
this.bs.DataSource = null;
lbSum.Text = "";
}
this.dataGridView1.Refresh();
}
}
}

View File

@@ -0,0 +1,234 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="dsPurchase.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="bs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>131, 17</value>
</metadata>
<metadata name="tam.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>257, 17</value>
</metadata>
<metadata name="bn.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>330, 17</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="bindingNavigatorMoveFirstItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vAAADrwBlbxySQAAASpJREFUOE9jGDygcNbz/00Lnv/PnPj4P1QIA4S3P8Apx5A789n/VUfe/8elKL77
wf/ghmu4DciY8vT/wn0fsCqK73n4f+n+///9qy/gNiCh58n/aVveYyiKaL8P1pw56/9/r9ITuA2I7Hr0
v3f1BxRFoa33wJpb1wFt7/z73yX/AG4DApsf/q+b/w6uKLjl7v9Fe///7wBqzpjz879d3c//9hnbcRvg
UXX/f/60NyiK7Ipv/0+f8/u/f9e3/zqF7/5bJKzHbYB96d3/2ZNfYyjSTzn/36ToxX+VrE//jSOX4TbA
Iu/O/9T+11gVGSSd+C+b9vW/bvA83AYYZt3+H9byEqci/dTL/zV8p+E2QCftxn+/6od4Fal4TMBtgFPu
lf8gBXgVDULAwAAA8HbAq6XlmnAAAAAASUVORK5CYII=
</value>
</data>
<data name="bindingNavigatorMovePreviousItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vAAADrwBlbxySQAAALZJREFUOE9jGDogvP3BfyiTdBDf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w
5sxZ//97lZ4gzYDQ1ntgza3rgLZ3/v3vkn+AeAOCW+7+X7T3//8OoOaMOT//29X9/G+fsZ00F9gV3/6f
Puf3f/+ub/91Ct/9t0hYT3oY6Kec/29S9OK/Stan/8aRy0g3AAQMkk78l037+l83eB55BoCAfurl/xq+
08g3AARUPCZQZsBgBQwMANAUYJgEulBVAAAAAElFTkSuQmCC
</value>
</data>
<data name="bindingNavigatorMoveNextItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vAAADrwBlbxySQAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78
n73v1//OrX//u5VeJt2QyK5H/6ds+/W/ZOnf/wnT//63yT1LmiGBzQ//t659D9ZsXPLlv3T0tf/GkcuI
N8Sj6v7/krnv4JoVXXpIc4F96d3/gS3PyNMMAhZ5d/7bFFwhTzMIGGbdJl8zCOik3SBf81AEDAwAoH5f
oAc0QjgAAAAASUVORK5CYII=
</value>
</data>
<data name="bindingNavigatorMoveLastItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vAAADrwBlbxySQAAASxJREFUOE9jGFygcNbz/1AmBgDJNS14/j9z4mOcahhyZz77n9B9D6sCkNyqI+//
h7c/wG1AxpSn/+ft//0/oesOhiKQ3MJ9H/4HN1zDbUBCz5P/s/f9+t+59e9/t9LLKApBctO2vP/vX30B
twGRXY/+T9n263/J0r//E6b//W+TexauGCTXu/rDf6/SE7gNCGx++L917XuwZuOSL/+lo6/9N45cBtYA
kqub/+6/S/4B3AZ4VN3/XzL3HVyzoksPXDFILn/am//2GdtxG2Bfevd/YMszDM0gAJLLnvz6v0XCetwG
WOTd+W9TcAVDMwiA5FL7X8O9hBUYZt3GqhkEQHJhLS//6wbPw22ATtoNnJIgOb/qh/81fKfhNgAfcMq9
8l/FYwIYQ4UGBWBgAAC+0b+zuQxOnAAAAABJRU5ErkJggg==
</value>
</data>
<data name="toolStripButton1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG
YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9
0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw
bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc
VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9
c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32
Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo
mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+
kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D
TgDQASA1MVpwzwAAAABJRU5ErkJggg==
</value>
</data>
<data name="btEdit.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEvSURBVDhPpZI/S0JRGIed+i6Nbk0t0iCuSkuDi1MfIKfm
+gAOQktTQkMggYtRkwgidKmgyQwMCgqz0CivvvK8cK7neG4KdeHhHs45v+c9/xLyz08Ft713OQ+6SqXV
kfLlnXJw1lSK5VrERqGkMB4JCCLpvQ7lZfDlQJ+B4EnwI9nTkbYdAZMbjxOPq4eJPH1MvXC2sD8XsOzP
0bcX/C3MXEfAfmzBsnCnP10uWBWu3IS+gJOm0w5fHCZiw0aQzu3GC0xYgm2R+poTRnh8HeqNOALu920w
9MK0F8NGkMrs+ALewqrwUXss3ed+vKB6H+rh2OT3SjpO0IBgcyvnCjgDBGCq8mcMiQ3FHAGdLB/J4vMF
KhoI83LXk6m5gCpmufbyOWlgv0BVIMx4JPj7JzIDGHRUPz2nxiQAAAAASUVORK5CYII=
</value>
</data>
<data name="btSave.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG
YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9
0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw
bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc
VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9
c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32
Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo
mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+
kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D
TgDQASA1MVpwzwAAAABJRU5ErkJggg==
</value>
</data>
<data name="btFind.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAE3SURBVDhPnZIxS8NQFEb7W/wLjh0Fl9a1SxBHBekkWFd1
qYg4Ci5dndSCg2AHl4LQSaRSKDqoFUE7VAjUmvTKueWmL2mw2gunL7zmO+/mJhmZoTJusdF868vpXUfO
b5/lpPEox9f3SvnsRtk8uojxHQ7HEgSEkXS6vrz3xqtdu+xdfUiheEBsJOGCk/mz/hROUHsIIrp+qIKY
hB/a9r+CVAG4Auj5g7iA5/1NACaptgIVLHkb0wWVw13ZL60p2+uerqkCJs1mMgwUU6d1k/xJwI10RZj1
9TPUN7Wam9dgTMC75QR7TjCBkRQs5Jd1jQS8c1ewtZLTPcQW/peADpC44cudgnjZOQ1OCGjTwkwaGBon
GoSrpcVIQqmAj6LZftFBup9vWiUlUQdIDCbsQrsGZRJKBbOXyA++SlEsu6QjvQAAAABJRU5ErkJggg==
</value>
</data>
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>396, 17</value>
</metadata>
<metadata name="ta.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>502, 17</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>65</value>
</metadata>
</root>

View File

@@ -58,6 +58,8 @@
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.CheckBoxCellType checkBoxCellType1 = new FarPoint.Win.Spread.CellType.CheckBoxCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType10 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType19 = 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();
@@ -78,6 +80,7 @@
this.btDel = new System.Windows.Forms.ToolStripButton();
this.toolStripButton4 = new System.Windows.Forms.ToolStripButton();
this.btSave = new System.Windows.Forms.ToolStripButton();
this.toolStripButton8 = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.lbSum = new System.Windows.Forms.ToolStripLabel();
this.toolStripLabel5 = new System.Windows.Forms.ToolStripLabel();
@@ -136,6 +139,8 @@
this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator();
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();
@@ -192,6 +197,7 @@
this.btDel,
this.toolStripButton4,
this.btSave,
this.toolStripButton8,
this.toolStripSeparator1,
this.lbSum,
this.toolStripLabel5,
@@ -335,6 +341,15 @@
this.btSave.Text = "저장(&S)";
this.btSave.Click += new System.EventHandler(this.btSave_Click);
//
// toolStripButton8
//
this.toolStripButton8.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton8.Image")));
this.toolStripButton8.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton8.Name = "toolStripButton8";
this.toolStripButton8.Size = new System.Drawing.Size(75, 23);
this.toolStripButton8.Text = "승인요청";
this.toolStripButton8.Click += new System.EventHandler(this.toolStripButton8_Click);
//
// toolStripSeparator1
//
this.toolStripSeparator1.Name = "toolStripSeparator1";
@@ -410,14 +425,14 @@
// 집계표ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "집계표ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Size = new System.Drawing.Size(150, 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.Size = new System.Drawing.Size(150, 22);
this.ToolStripMenuItem.Text = "구매승인 양식";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
@@ -426,7 +441,9 @@
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;
this.toolStripButton7.Name = "toolStripButton7";
@@ -800,6 +817,7 @@
this.fpSpread1.TabIndex = 4;
this.fpSpread1.EditModeOff += new System.EventHandler(this.fpSpread1_EditModeOff);
this.fpSpread1.CellClick += new FarPoint.Win.Spread.CellClickEventHandler(this.fpSpread1_CellClick);
this.fpSpread1.SetViewportLeftColumn(0, 0, 1);
//
// fpSpread1_Sheet1
//
@@ -807,7 +825,7 @@
this.fpSpread1_Sheet1.SheetName = "Sheet1";
// Formulas and custom names must be loaded with R1C1 reference style
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.R1C1;
this.fpSpread1_Sheet1.ColumnCount = 28;
this.fpSpread1_Sheet1.ColumnCount = 32;
this.fpSpread1_Sheet1.ActiveColumnIndex = -1;
this.fpSpread1_Sheet1.ActiveRowIndex = -1;
this.fpSpread1_Sheet1.AutoGenerateColumns = false;
@@ -1064,10 +1082,35 @@
this.fpSpread1_Sheet1.Columns.Get(27).Label = "삭제됨";
this.fpSpread1_Sheet1.Columns.Get(27).Tag = "isdel";
this.fpSpread1_Sheet1.Columns.Get(27).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(28).BackColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(28).CellType = numberCellType10;
this.fpSpread1_Sheet1.Columns.Get(28).DataField = "idx";
this.fpSpread1_Sheet1.Columns.Get(28).ForeColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(28).Tag = "idx";
this.fpSpread1_Sheet1.Columns.Get(28).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(29).BackColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(29).CellType = textCellType19;
this.fpSpread1_Sheet1.Columns.Get(29).DataField = "conf_status";
this.fpSpread1_Sheet1.Columns.Get(29).ForeColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(29).Tag = "conf_status";
this.fpSpread1_Sheet1.Columns.Get(29).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(30).BackColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(30).CellType = textCellType19;
this.fpSpread1_Sheet1.Columns.Get(30).DataField = "conf_request";
this.fpSpread1_Sheet1.Columns.Get(30).ForeColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(30).Tag = "conf_request";
this.fpSpread1_Sheet1.Columns.Get(30).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(31).BackColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(31).CellType = textCellType19;
this.fpSpread1_Sheet1.Columns.Get(31).DataField = "conf_reponse";
this.fpSpread1_Sheet1.Columns.Get(31).ForeColor = System.Drawing.Color.Red;
this.fpSpread1_Sheet1.Columns.Get(31).Tag = "conf_reponse";
this.fpSpread1_Sheet1.Columns.Get(31).Visible = false;
this.fpSpread1_Sheet1.DataAutoCellTypes = false;
this.fpSpread1_Sheet1.DataAutoSizeColumns = false;
this.fpSpread1_Sheet1.DataSource = this.bs;
this.fpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false;
this.fpSpread1_Sheet1.SelectionPolicy = FarPoint.Win.Spread.Model.SelectionPolicy.MultiRange;
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1;
//
// label1
@@ -1094,6 +1137,18 @@
this.label2.Text = "--";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// toolStripMenuItem2
//
this.toolStripMenuItem2.Name = "toolStripMenuItem2";
this.toolStripMenuItem2.Size = new System.Drawing.Size(179, 6);
//
// 현재목록메일전송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);
//
// fPurchaseEB
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -1202,6 +1257,9 @@
private System.Windows.Forms.Label label2;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private dsPurchaseTableAdapters.EETGW_PurchaseEBTableAdapter ta;
private System.Windows.Forms.ToolStripButton toolStripButton8;
private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem2;
}
}

View File

@@ -254,7 +254,7 @@ namespace FEQ0000
var statindex = this.fpSpread1.ActiveSheet.Columns["state"].Index;
var crcfindex = this.fpSpread1.ActiveSheet.Columns["crcf"].Index;
var prjindex = this.fpSpread1.ActiveSheet.Columns["projectidx"].Index;
var cstsindex = this.fpSpread1.ActiveSheet.Columns["conf_status"].Index;
for (int i = 0; i < this.fpSpread1.ActiveSheet.Rows.Count; i++)
{
@@ -264,10 +264,12 @@ namespace FEQ0000
var value = this.fpSpread1.ActiveSheet.GetValue(i, delindex);
var crcf = this.fpSpread1.ActiveSheet.GetValue(i, crcfindex);
var v_confstats = this.fpSpread1.ActiveSheet.GetValue(i, cstsindex);
var str_crcf = string.Empty;
var str_confstats = string.Empty;
if (crcf != null) str_crcf = crcf.ToString();
if (v_confstats != null) str_confstats = v_confstats.ToString();
if (value != null && (Boolean)value)
{
@@ -304,6 +306,14 @@ namespace FEQ0000
case "hold":
this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.HotPink;
break;
case "approving":
this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.DarkGoldenrod;
if (str_confstats == "2") //ok
this.fpSpread1.ActiveSheet.Rows[i].BackColor = Color.Lime;
else if (str_confstats == "3") //reject
this.fpSpread1.ActiveSheet.Rows[i].BackColor = Color.HotPink;
break;
default:
this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Black;
break;
@@ -1280,5 +1290,246 @@ 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.EETGW_PurchaseEBRow> rows = new List<dsPurchase.EETGW_PurchaseEBRow>();
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)
{
FCOMMON.Util.MsgE("대상 데이터가 없습니다.");
return;
}
var f = new fPurchaseEB_ConfRequest(rows);
f.ShowDialog();
FormattingData();
}
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();
//현재표시데이터중에 수신자목록을 가져온다
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());
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" +
"아웃룩의 설정이 정상인지 확인하세요");
}
}
}
}

View File

@@ -233,6 +233,21 @@
mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+
kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D
TgDQASA1MVpwzwAAAABJRU5ErkJggg==
</value>
</data>
<data name="toolStripButton8.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG
YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9
0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw
bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc
VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9
c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32
Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo
mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+
kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D
TgDQASA1MVpwzwAAAABJRU5ErkJggg==
</value>
</data>
<data name="btFind.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">

View File

@@ -0,0 +1,553 @@
namespace FEQ0000
{
partial class fPurchaseEB_ConfRequest
{
/// <summary>
/// 필수 디자이너 변수입니다.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 사용 중인 모든 리소스를 정리합니다.
/// </summary>
/// <param name="disposing">관리되는 리소스를 삭제해야 하면 true이고, 그렇지 않으면 false입니다.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region
/// <summary>
/// 디자이너 지원에 필요한 메서드입니다.
/// 이 메서드의 내용을 코드 편집기로 수정하지 마십시오.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fPurchaseEB_ConfRequest));
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
this.dsPurchase = new FEQ0000.dsPurchase();
this.bs = new System.Windows.Forms.BindingSource(this.components);
this.tam = new FEQ0000.dsPurchaseTableAdapters.TableAdapterManager();
this.bn = new System.Windows.Forms.BindingNavigator(this.components);
this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel();
this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMovePreviousItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorSeparator = new System.Windows.Forms.ToolStripSeparator();
this.bindingNavigatorPositionItem = new System.Windows.Forms.ToolStripTextBox();
this.bindingNavigatorSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.bindingNavigatorMoveNextItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
this.btEdit = new System.Windows.Forms.ToolStripButton();
this.btSave = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.lbSum = new System.Windows.Forms.ToolStripLabel();
this.toolStripLabel5 = new System.Windows.Forms.ToolStripLabel();
this.toolStripLabel2 = new System.Windows.Forms.ToolStripLabel();
this.tbFind = new System.Windows.Forms.ToolStripTextBox();
this.btFind = new System.Windows.Forms.ToolStripButton();
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.pdateDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.requestNameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.sidDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pumnameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pumscaleDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pumunitDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pumqtyDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pumqtyReqDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pumpriceDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pumamtDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.supplyDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.bigo2DataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.bigoDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.richTextBox2 = new System.Windows.Forms.RichTextBox();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.ta = new FEQ0000.dsPurchaseTableAdapters.EETGW_PurchaseEBTableAdapter();
((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
this.bn.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.tableLayoutPanel1.SuspendLayout();
this.SuspendLayout();
//
// dsPurchase
//
this.dsPurchase.DataSetName = "dsPurchase";
this.dsPurchase.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
//
// bs
//
this.bs.DataMember = "EETGW_PurchaseEB";
this.bs.DataSource = this.dsPurchase;
this.bs.CurrentChanged += new System.EventHandler(this.bs_CurrentChanged);
//
// tam
//
this.tam.BackupDataSetBeforeUpdate = true;
this.tam.EETGW_PurchaseCRTableAdapter = null;
this.tam.EETGW_PurchaseEBTableAdapter = null;
this.tam.UpdateOrder = FEQ0000.dsPurchaseTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
//
// bn
//
this.bn.AddNewItem = null;
this.bn.BindingSource = this.bs;
this.bn.CountItem = this.bindingNavigatorCountItem;
this.bn.DeleteItem = null;
this.bn.Dock = System.Windows.Forms.DockStyle.Bottom;
this.bn.ImageScalingSize = new System.Drawing.Size(24, 24);
this.bn.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.bindingNavigatorMoveFirstItem,
this.bindingNavigatorMovePreviousItem,
this.bindingNavigatorSeparator,
this.bindingNavigatorPositionItem,
this.bindingNavigatorCountItem,
this.bindingNavigatorSeparator1,
this.bindingNavigatorMoveNextItem,
this.bindingNavigatorMoveLastItem,
this.bindingNavigatorSeparator2,
this.toolStripButton1,
this.btEdit,
this.btSave,
this.toolStripSeparator1,
this.lbSum,
this.toolStripLabel5,
this.toolStripLabel2,
this.tbFind,
this.btFind});
this.bn.Location = new System.Drawing.Point(0, 589);
this.bn.MoveFirstItem = this.bindingNavigatorMoveFirstItem;
this.bn.MoveLastItem = this.bindingNavigatorMoveLastItem;
this.bn.MoveNextItem = this.bindingNavigatorMoveNextItem;
this.bn.MovePreviousItem = this.bindingNavigatorMovePreviousItem;
this.bn.Name = "bn";
this.bn.PositionItem = this.bindingNavigatorPositionItem;
this.bn.Size = new System.Drawing.Size(1219, 31);
this.bn.TabIndex = 0;
this.bn.Text = "bindingNavigator1";
//
// bindingNavigatorCountItem
//
this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem";
this.bindingNavigatorCountItem.Size = new System.Drawing.Size(27, 28);
this.bindingNavigatorCountItem.Text = "/{0}";
this.bindingNavigatorCountItem.ToolTipText = "전체 항목 수";
//
// bindingNavigatorMoveFirstItem
//
this.bindingNavigatorMoveFirstItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveFirstItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveFirstItem.Image")));
this.bindingNavigatorMoveFirstItem.Name = "bindingNavigatorMoveFirstItem";
this.bindingNavigatorMoveFirstItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveFirstItem.Size = new System.Drawing.Size(28, 28);
this.bindingNavigatorMoveFirstItem.Text = "처음으로 이동";
//
// bindingNavigatorMovePreviousItem
//
this.bindingNavigatorMovePreviousItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMovePreviousItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMovePreviousItem.Image")));
this.bindingNavigatorMovePreviousItem.Name = "bindingNavigatorMovePreviousItem";
this.bindingNavigatorMovePreviousItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMovePreviousItem.Size = new System.Drawing.Size(28, 28);
this.bindingNavigatorMovePreviousItem.Text = "이전으로 이동";
//
// bindingNavigatorSeparator
//
this.bindingNavigatorSeparator.Name = "bindingNavigatorSeparator";
this.bindingNavigatorSeparator.Size = new System.Drawing.Size(6, 31);
//
// bindingNavigatorPositionItem
//
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";
this.bindingNavigatorPositionItem.ToolTipText = "현재 위치";
//
// bindingNavigatorSeparator1
//
this.bindingNavigatorSeparator1.Name = "bindingNavigatorSeparator1";
this.bindingNavigatorSeparator1.Size = new System.Drawing.Size(6, 31);
//
// bindingNavigatorMoveNextItem
//
this.bindingNavigatorMoveNextItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveNextItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveNextItem.Image")));
this.bindingNavigatorMoveNextItem.Name = "bindingNavigatorMoveNextItem";
this.bindingNavigatorMoveNextItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveNextItem.Size = new System.Drawing.Size(28, 28);
this.bindingNavigatorMoveNextItem.Text = "다음으로 이동";
//
// bindingNavigatorMoveLastItem
//
this.bindingNavigatorMoveLastItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveLastItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveLastItem.Image")));
this.bindingNavigatorMoveLastItem.Name = "bindingNavigatorMoveLastItem";
this.bindingNavigatorMoveLastItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveLastItem.Size = new System.Drawing.Size(28, 28);
this.bindingNavigatorMoveLastItem.Text = "마지막으로 이동";
//
// bindingNavigatorSeparator2
//
this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator2";
this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 31);
//
// toolStripButton1
//
this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image")));
this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton1.Name = "toolStripButton1";
this.toolStripButton1.Size = new System.Drawing.Size(100, 28);
this.toolStripButton1.Text = "목록제거(&D)";
this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click);
//
// btEdit
//
this.btEdit.Image = ((System.Drawing.Image)(resources.GetObject("btEdit.Image")));
this.btEdit.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btEdit.Name = "btEdit";
this.btEdit.Size = new System.Drawing.Size(73, 28);
this.btEdit.Text = "편집(&E)";
this.btEdit.Click += new System.EventHandler(this.toolStripButton2_Click);
//
// btSave
//
this.btSave.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.btSave.Image = ((System.Drawing.Image)(resources.GetObject("btSave.Image")));
this.btSave.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btSave.Name = "btSave";
this.btSave.Size = new System.Drawing.Size(83, 28);
this.btSave.Text = "승인요청";
this.btSave.Click += new System.EventHandler(this.toolStripButton8_Click);
//
// toolStripSeparator1
//
this.toolStripSeparator1.Name = "toolStripSeparator1";
this.toolStripSeparator1.Size = new System.Drawing.Size(6, 31);
//
// lbSum
//
this.lbSum.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.lbSum.Font = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lbSum.Name = "lbSum";
this.lbSum.Size = new System.Drawing.Size(22, 28);
this.lbSum.Text = "0";
//
// toolStripLabel5
//
this.toolStripLabel5.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.toolStripLabel5.Name = "toolStripLabel5";
this.toolStripLabel5.Size = new System.Drawing.Size(31, 28);
this.toolStripLabel5.Text = "합계";
//
// toolStripLabel2
//
this.toolStripLabel2.Name = "toolStripLabel2";
this.toolStripLabel2.Size = new System.Drawing.Size(31, 28);
this.toolStripLabel2.Text = "검색";
this.toolStripLabel2.Click += new System.EventHandler(this.toolStripLabel2_Click);
//
// 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, 31);
this.tbFind.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tbFind_KeyDown);
//
// btFind
//
this.btFind.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.btFind.Image = ((System.Drawing.Image)(resources.GetObject("btFind.Image")));
this.btFind.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btFind.Name = "btFind";
this.btFind.Size = new System.Drawing.Size(28, 28);
this.btFind.Text = "toolStripButton2";
this.btFind.Click += new System.EventHandler(this.btFind_Click);
//
// toolStrip1
//
this.toolStrip1.ImageScalingSize = new System.Drawing.Size(30, 30);
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(1219, 25);
this.toolStrip1.TabIndex = 3;
this.toolStrip1.Text = "toolStrip1";
//
// dataGridView1
//
this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.AllowUserToDeleteRows = false;
this.dataGridView1.AutoGenerateColumns = false;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.pdateDataGridViewTextBoxColumn,
this.requestNameDataGridViewTextBoxColumn,
this.sidDataGridViewTextBoxColumn,
this.pumnameDataGridViewTextBoxColumn,
this.pumscaleDataGridViewTextBoxColumn,
this.pumunitDataGridViewTextBoxColumn,
this.pumqtyDataGridViewTextBoxColumn,
this.pumqtyReqDataGridViewTextBoxColumn,
this.pumpriceDataGridViewTextBoxColumn,
this.pumamtDataGridViewTextBoxColumn,
this.supplyDataGridViewTextBoxColumn,
this.bigo2DataGridViewTextBoxColumn,
this.bigoDataGridViewTextBoxColumn});
this.dataGridView1.DataSource = this.bs;
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle5.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle5;
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView1.Location = new System.Drawing.Point(0, 25);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(1219, 426);
this.dataGridView1.TabIndex = 8;
//
// pdateDataGridViewTextBoxColumn
//
this.pdateDataGridViewTextBoxColumn.DataPropertyName = "pdate";
this.pdateDataGridViewTextBoxColumn.HeaderText = "요청일";
this.pdateDataGridViewTextBoxColumn.Name = "pdateDataGridViewTextBoxColumn";
//
// requestNameDataGridViewTextBoxColumn
//
this.requestNameDataGridViewTextBoxColumn.DataPropertyName = "requestName";
this.requestNameDataGridViewTextBoxColumn.HeaderText = "구매신청";
this.requestNameDataGridViewTextBoxColumn.Name = "requestNameDataGridViewTextBoxColumn";
this.requestNameDataGridViewTextBoxColumn.ReadOnly = true;
//
// sidDataGridViewTextBoxColumn
//
this.sidDataGridViewTextBoxColumn.DataPropertyName = "sid";
this.sidDataGridViewTextBoxColumn.HeaderText = "SID";
this.sidDataGridViewTextBoxColumn.Name = "sidDataGridViewTextBoxColumn";
//
// pumnameDataGridViewTextBoxColumn
//
this.pumnameDataGridViewTextBoxColumn.DataPropertyName = "pumname";
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
this.pumnameDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle1;
this.pumnameDataGridViewTextBoxColumn.HeaderText = "품명";
this.pumnameDataGridViewTextBoxColumn.Name = "pumnameDataGridViewTextBoxColumn";
//
// pumscaleDataGridViewTextBoxColumn
//
this.pumscaleDataGridViewTextBoxColumn.DataPropertyName = "pumscale";
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
this.pumscaleDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle2;
this.pumscaleDataGridViewTextBoxColumn.HeaderText = "모델/규격";
this.pumscaleDataGridViewTextBoxColumn.Name = "pumscaleDataGridViewTextBoxColumn";
//
// pumunitDataGridViewTextBoxColumn
//
this.pumunitDataGridViewTextBoxColumn.DataPropertyName = "pumunit";
this.pumunitDataGridViewTextBoxColumn.HeaderText = "단위";
this.pumunitDataGridViewTextBoxColumn.Name = "pumunitDataGridViewTextBoxColumn";
//
// pumqtyDataGridViewTextBoxColumn
//
this.pumqtyDataGridViewTextBoxColumn.DataPropertyName = "pumqty";
this.pumqtyDataGridViewTextBoxColumn.HeaderText = "신청수량";
this.pumqtyDataGridViewTextBoxColumn.Name = "pumqtyDataGridViewTextBoxColumn";
//
// pumqtyReqDataGridViewTextBoxColumn
//
this.pumqtyReqDataGridViewTextBoxColumn.DataPropertyName = "pumqtyReq";
this.pumqtyReqDataGridViewTextBoxColumn.HeaderText = "구매수량";
this.pumqtyReqDataGridViewTextBoxColumn.Name = "pumqtyReqDataGridViewTextBoxColumn";
//
// pumpriceDataGridViewTextBoxColumn
//
this.pumpriceDataGridViewTextBoxColumn.DataPropertyName = "pumprice";
this.pumpriceDataGridViewTextBoxColumn.HeaderText = "단가";
this.pumpriceDataGridViewTextBoxColumn.Name = "pumpriceDataGridViewTextBoxColumn";
//
// pumamtDataGridViewTextBoxColumn
//
this.pumamtDataGridViewTextBoxColumn.DataPropertyName = "pumamt";
this.pumamtDataGridViewTextBoxColumn.HeaderText = "금액";
this.pumamtDataGridViewTextBoxColumn.Name = "pumamtDataGridViewTextBoxColumn";
//
// supplyDataGridViewTextBoxColumn
//
this.supplyDataGridViewTextBoxColumn.DataPropertyName = "supply";
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
this.supplyDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle3;
this.supplyDataGridViewTextBoxColumn.HeaderText = "공급";
this.supplyDataGridViewTextBoxColumn.Name = "supplyDataGridViewTextBoxColumn";
//
// bigo2DataGridViewTextBoxColumn
//
this.bigo2DataGridViewTextBoxColumn.DataPropertyName = "chkremark";
this.bigo2DataGridViewTextBoxColumn.HeaderText = "비고(구매담당)";
this.bigo2DataGridViewTextBoxColumn.Name = "bigo2DataGridViewTextBoxColumn";
//
// bigoDataGridViewTextBoxColumn
//
this.bigoDataGridViewTextBoxColumn.DataPropertyName = "bigo";
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
this.bigoDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle4;
this.bigoDataGridViewTextBoxColumn.HeaderText = "비고(구매요청)";
this.bigoDataGridViewTextBoxColumn.Name = "bigoDataGridViewTextBoxColumn";
//
// tableLayoutPanel1
//
this.tableLayoutPanel1.ColumnCount = 2;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel1.Controls.Add(this.richTextBox1, 0, 1);
this.tableLayoutPanel1.Controls.Add(this.richTextBox2, 1, 1);
this.tableLayoutPanel1.Controls.Add(this.label1, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.label2, 1, 0);
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 451);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 2;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(1219, 138);
this.tableLayoutPanel1.TabIndex = 9;
//
// richTextBox1
//
this.richTextBox1.BackColor = System.Drawing.Color.Gold;
this.richTextBox1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "chkremark", true));
this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.richTextBox1.Location = new System.Drawing.Point(3, 28);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(603, 107);
this.richTextBox1.TabIndex = 0;
this.richTextBox1.Text = "";
//
// richTextBox2
//
this.richTextBox2.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "bigo", true));
this.richTextBox2.Dock = System.Windows.Forms.DockStyle.Fill;
this.richTextBox2.Location = new System.Drawing.Point(612, 28);
this.richTextBox2.Name = "richTextBox2";
this.richTextBox2.ReadOnly = true;
this.richTextBox2.Size = new System.Drawing.Size(604, 107);
this.richTextBox2.TabIndex = 0;
this.richTextBox2.Text = "";
//
// label1
//
this.label1.Dock = System.Windows.Forms.DockStyle.Fill;
this.label1.Location = new System.Drawing.Point(3, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(603, 25);
this.label1.TabIndex = 1;
this.label1.Text = "구매 담당자 비고";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label2
//
this.label2.Dock = System.Windows.Forms.DockStyle.Fill;
this.label2.Location = new System.Drawing.Point(612, 0);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(604, 25);
this.label2.TabIndex = 2;
this.label2.Text = "구매신청자 비고(구매사유)";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// ta
//
this.ta.ClearBeforeFill = true;
//
// fPurchaseEB_ConfRequest
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1219, 620);
this.Controls.Add(this.dataGridView1);
this.Controls.Add(this.tableLayoutPanel1);
this.Controls.Add(this.toolStrip1);
this.Controls.Add(this.bn);
this.DoubleBuffered = true;
this.Name = "fPurchaseEB_ConfRequest";
this.Text = "구매신청건 승인요청";
this.Load += new System.EventHandler(this.@__Load);
((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.bn)).EndInit();
this.bn.ResumeLayout(false);
this.bn.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.tableLayoutPanel1.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private dsPurchase dsPurchase;
private System.Windows.Forms.BindingSource bs;
private dsPurchaseTableAdapters.TableAdapterManager tam;
private System.Windows.Forms.BindingNavigator bn;
private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveFirstItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMovePreviousItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator;
private System.Windows.Forms.ToolStripTextBox bindingNavigatorPositionItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator1;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveNextItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2;
private System.Windows.Forms.ToolStrip toolStrip1;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
private System.Windows.Forms.ToolStripLabel toolStripLabel5;
private System.Windows.Forms.ToolStripLabel lbSum;
private System.Windows.Forms.ToolStripLabel toolStripLabel2;
private System.Windows.Forms.ToolStripTextBox tbFind;
private System.Windows.Forms.ToolStripButton btFind;
private System.Windows.Forms.ToolStripButton btEdit;
private System.Windows.Forms.ToolStripButton btSave;
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.DataGridViewTextBoxColumn pdateDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn requestNameDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn sidDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn pumnameDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn pumscaleDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn pumunitDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn pumqtyDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn pumqtyReqDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn pumpriceDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn pumamtDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn supplyDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn bigo2DataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn bigoDataGridViewTextBoxColumn;
private System.Windows.Forms.ToolStripButton toolStripButton1;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private System.Windows.Forms.RichTextBox richTextBox1;
private System.Windows.Forms.RichTextBox richTextBox2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private dsPurchaseTableAdapters.EETGW_PurchaseEBTableAdapter ta;
}
}

View File

@@ -0,0 +1,546 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using util = FCOMMON.Util;
using NetOffice;
using Outlook = NetOffice.OutlookApi;
using NetOffice.OutlookApi.Enums;
using FEQ0000.Purchase;
using FCOMMON;
using NetOffice.OfficeApi;
using System.Web.Services.Protocols;
using System.Diagnostics;
using FarPoint.Win.Spread.CellType;
using FCM0000;
using FarPoint.Win.Spread;
using System.Resources;
namespace FEQ0000
{
public partial class fPurchaseEB_ConfRequest : FCOMMON.fBase
{
string fn_fpcolsize = "";
List<dsPurchase.EETGW_PurchaseEBRow> rows;
public fPurchaseEB_ConfRequest(List<dsPurchase.EETGW_PurchaseEBRow> rows_)
{
InitializeComponent();
this.rows = rows_;
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
Properties.Settings.Default["EEEntities"] = FCOMMON.info.CS;
fn_fpcolsize = util.MakeFilePath(util.CurrentPath, "formSetting", "fp_" + this.Name + ".ini");
this.FormClosing += FPurchase_FormClosing;
this.FormClosed += __Closed;
this.bs.DataSource = rows;
this.dataGridView1.DataError += (s1, e1) => { };
this.dataGridView1.EditMode = DataGridViewEditMode.EditOnKeystroke;
}
private void FPurchase_FormClosing(object sender, FormClosingEventArgs e)
{
if (dsPurchase.HasChanges())
{
var dlg = FCOMMON.Util.MsgQ("변경된 자료가 있습니다. 화면을 닫을까요? 닫으면 변경된 자료는 손실 됩니다");
if (dlg != DialogResult.Yes)
{
e.Cancel = true;
return;
}
}
}
void dtSD_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode != Keys.Enter) return;
var tb = sender as ToolStripTextBox;
var input = tb.Text.Trim();
if (input == "") tb.Text = DateTime.Now.ToShortDateString();
else
{
string dt = string.Empty;
if (!util.MakeDateString(input, out dt))
{
FCOMMON.Util.MsgE("입력값이 올바르지 않습니다.");
tb.SelectAll();
tb.Focus();
return;
}
else
{
tb.Text = dt;
}
}
}
void __Closed(object sender, FormClosedEventArgs e)
{
}
private void __Load(object sender, EventArgs e)
{
//일반사용자의경우에는 상태를 변경하지 못한다.
int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.purchaseEB));
IsAdmin = curLevel >= 5;
if (curLevel >= 5)
{
btSave.Visible = true;
}
else
{
btSave.Visible = false;
}
btSave.Visible = true;
refreshData();
}
bool IsAdmin = false;
private void refreshData()
{
try
{
showSummary();
}
catch (System.Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message);
}
FormattingData();
}
void FormattingData()
{
dataGridView1.AutoResizeColumns();
}
void showSummary()
{
decimal sum = 0;
sum = rows.Sum(t => t.pumamt);
//foreach (dsPurchase.PurchaseRow dr in this.dsPurchase.Purchase.Rows)
//if (!dr.IspumamtNull()) sum += dr.pumamt;
lbSum.Text = sum.ToString("N0");
}
private bool getAdminInput
{
get
{
return FCOMMON.Util.getBit(
FCOMMON.info.Login.gpermission,
(int)FCOMMON.eGroupPermission.purchase_adv);
}
}
private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e)
{
//func_delete();
}
private int AddItemInfoGetIndex(dsPurchase.EETGW_PurchaseEBRow newdr)
{
//이 시드가 아이템목록에 없다면 추가 하고 idx를 조회한 후 설정해준다.
if (newdr.sid == "신규") return -1;
int retval = -1;
var sid = newdr.sid;
var iteminfo = FCOMMON.DBM.getItemInfo(sid);
if (iteminfo.idx < 0)
{
FCOMMON.DBM.sItemInfo newitem = new FCOMMON.DBM.sItemInfo();
newitem.sid = newdr.sid;
newitem.name = newdr.pumname;
newitem.price = newdr.pumprice.ToString();
newitem.model = newdr.pumscale;
newitem.unit = newdr.pumunit;
newitem.scale = 1f;
newitem.supply = newdr.supply;
newitem.supplyidx = newdr.supplyidx;
retval = FCOMMON.DBM.addItemInfo(newitem);
}
return retval;
}
private void btFind_Click(object sender, EventArgs e)
{
var search = tbFind.Text.Trim();
search = search.Replace("*", "x");
if (tbFind.Text != search) tbFind.Text = search;
try
{
if (search.isEmpty())
{
this.bs.Filter = "";
tbFind.BackColor = Color.White;
}
else
{
search = search.Replace("'", "''");
string filter = "supply like ? or sid like ? or process like ? or orderno like ? or sc like ? or pumname like ? or pumscale like ? or project like ?";
filter = filter.Replace("?", "'%" + search + "%'");
this.bs.Filter = filter;
tbFind.BackColor = Color.Lime;
}
tbFind.SelectAll();
tbFind.Focus();
showSummary();
}
catch (Exception ex)
{
this.tbFind.BackColor = Color.Tomato;
FCOMMON.Util.MsgE(ex.Message);
}
}
private void tbFind_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter) btFind.PerformClick();
}
void Func_Edit()
{
var drv = this.bs.Current as DataRowView;
if (drv == null) return;
var newdr = drv.Row as dsPurchase.EETGW_PurchaseEBRow;
bool repeat = false;
DialogResult dlg;
if (getAdminInput == false)
{
repeat = false;
var f = new fPurchaseEB_Add(newdr);
dlg = f.ShowDialog();
}
else
{
var f = new fPurchaseEB_Add(newdr);
dlg = f.ShowDialog();
repeat = f.repeatAdd;
}
if (dlg == System.Windows.Forms.DialogResult.OK)
{
//존재하지 않는 sid 는 추가를 해준다.
var newidx = AddItemInfoGetIndex(newdr);
if (newidx != -1)
{
newdr.pumidx = newidx;
newdr.EndEdit();
}
if (newdr.RowState != DataRowState.Unchanged)
{
this.ta.Update(newdr);
newdr.AcceptChanges();
}
}
else newdr.RejectChanges();
}
private void toolStripButton2_Click(object sender, EventArgs e)
{
Func_Edit();
}
private void sC검색ToolStripMenuItem_Click(object sender, EventArgs e)
{
//sc
var drv = this.bs.Current as DataRowView;
if (drv == null) return;
var newdr = drv.Row as dsPurchase.EETGW_PurchaseEBRow;
if (newdr.sc.Trim() == "")
{
FCOMMON.Util.MsgE("SC값이 없습니다");
return;
}
tbFind.Text = newdr.sc;
btFind.PerformClick();
}
private void cRCF검색ToolStripMenuItem_Click(object sender, EventArgs e)
{
//crcf
var drv = this.bs.Current as DataRowView;
if (drv == null) return;
var newdr = drv.Row as dsPurchase.EETGW_PurchaseEBRow;
if (newdr.orderno.Trim() == "")
{
FCOMMON.Util.MsgE("CR/CF값이 없습니다");
return;
}
tbFind.Text = newdr.orderno;
btFind.PerformClick();
}
private void toolStripLabel2_Click(object sender, EventArgs e)
{
if (tbFind.Text != "")
{
tbFind.Text = "";
btFind.PerformClick();
}
}
private void toolStripButton3_Click(object sender, EventArgs e)
{
}
private void bs_CurrentChanged(object sender, EventArgs e)
{
var dr = bs.Current as dsPurchase.EETGW_PurchaseEBRow;
//if (dr.IschkremarkNull()) richTextBox1.Text = "";
//else richTextBox1.Text = dr.chkremark;
//if (dr.IsbigoNull()) richTextBox2.Text = "";
//else richTextBox2.Text = dr.bigo;
}
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)
{
var db = new DataClasses1DataContext();
List<string> retval = new List<string>();
foreach (var id in userid)
{
UInt32 userno;
if (UInt32.TryParse(id, out userno) == true)
{
var user = db.Users.Where(t => t.id == id).FirstOrDefault();
if (user != null)
{
var data = string.Format("{0}<{1}>", user.name, user.email);
if (retval.Contains(data) == false)
retval.Add(data);
}
}
else
{
if (retval.Contains(id) == false)
retval.Add(id);
}
}
return retval;
}
private void toolStripButton8_Click(object sender, EventArgs e)
{
this.Validate();
this.bs.EndEdit();
//승인요청
var dlg = FCOMMON.Util.MsgQ("현재 자료를 승인 요청 할까요?");
if (dlg != DialogResult.Yes) return;
//모든자료의 승인상태를 업데이트한다.
foreach (DataGridViewRow row in this.dataGridView1.Rows)
{
var dr = row.DataBoundItem as dsPurchase.EETGW_PurchaseEBRow;
dr.conf_status = "1";
if (dr.state == "---") dr.state = "Approving";
dr.EndEdit();
ta.Update(dr);
dr.AcceptChanges();
}
dlg = util.MsgQ("메일 전송을 할까요?");
if (dlg != DialogResult.Yes) return;
//수신자목록수집
//var drows = (List<dsPurchase.EETGW_PurchaseEBRow>)(this.bs.DataSource);
var grp_req = rows.Where(t => t.request.isEmpty() == false).GroupBy(t => t.request).Select(t => t.FirstOrDefault().request).ToList();
var grp_rec = rows.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>();
var f = new Purchase.fMailForm("PJ");
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();
//받는사람
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);
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_confirmeb_" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".xls");
if (fi.Directory.Exists == false) fi.Directory.Create();
FCOMMON.Util.savetoexcel(this.dataGridView1, fi.FullName);
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>");
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;
newMail.HTMLBody = form_body + newMail.HTMLBody; //
}
catch (Exception ex)
{
util.MsgE("전송실패\n\n" + ex.Message + "\n\n" +
"아웃룩의 설정이 정상인지 확인하세요");
}
}
private void toolStripButton1_Click(object sender, EventArgs e)
{
var drv = this.bs.Current as dsPurchase.EETGW_PurchaseEBRow;
if (drv == null) return;
var dlg = util.MsgQ("선택된 줄을 제거 할까요?");
if (dlg != DialogResult.Yes) return;
this.rows.Remove(drv);
if (rows.Any())
{
this.bs.DataSource = rows;
refreshData();
}
else
{
this.bs.DataSource = null;
lbSum.Text = "";
}
this.dataGridView1.Refresh();
}
}
}

View File

@@ -0,0 +1,234 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="dsPurchase.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="bs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>131, 17</value>
</metadata>
<metadata name="tam.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>195, 17</value>
</metadata>
<metadata name="bn.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>268, 17</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="bindingNavigatorMoveFirstItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vAAADrwBlbxySQAAASpJREFUOE9jGDygcNbz/00Lnv/PnPj4P1QIA4S3P8Apx5A789n/VUfe/8elKL77
wf/ghmu4DciY8vT/wn0fsCqK73n4f+n+///9qy/gNiCh58n/aVveYyiKaL8P1pw56/9/r9ITuA2I7Hr0
v3f1BxRFoa33wJpb1wFt7/z73yX/AG4DApsf/q+b/w6uKLjl7v9Fe///7wBqzpjz879d3c//9hnbcRvg
UXX/f/60NyiK7Ipv/0+f8/u/f9e3/zqF7/5bJKzHbYB96d3/2ZNfYyjSTzn/36ToxX+VrE//jSOX4TbA
Iu/O/9T+11gVGSSd+C+b9vW/bvA83AYYZt3+H9byEqci/dTL/zV8p+E2QCftxn+/6od4Fal4TMBtgFPu
lf8gBXgVDULAwAAA8HbAq6XlmnAAAAAASUVORK5CYII=
</value>
</data>
<data name="bindingNavigatorMovePreviousItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vAAADrwBlbxySQAAALZJREFUOE9jGDogvP3BfyiTdBDf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w
5sxZ//97lZ4gzYDQ1ntgza3rgLZ3/v3vkn+AeAOCW+7+X7T3//8OoOaMOT//29X9/G+fsZ00F9gV3/6f
Puf3f/+ub/91Ct/9t0hYT3oY6Kec/29S9OK/Stan/8aRy0g3AAQMkk78l037+l83eB55BoCAfurl/xq+
08g3AARUPCZQZsBgBQwMANAUYJgEulBVAAAAAElFTkSuQmCC
</value>
</data>
<data name="bindingNavigatorMoveNextItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vAAADrwBlbxySQAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78
n73v1//OrX//u5VeJt2QyK5H/6ds+/W/ZOnf/wnT//63yT1LmiGBzQ//t659D9ZsXPLlv3T0tf/GkcuI
N8Sj6v7/krnv4JoVXXpIc4F96d3/gS3PyNMMAhZ5d/7bFFwhTzMIGGbdJl8zCOik3SBf81AEDAwAoH5f
oAc0QjgAAAAASUVORK5CYII=
</value>
</data>
<data name="bindingNavigatorMoveLastItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vAAADrwBlbxySQAAASxJREFUOE9jGFygcNbz/1AmBgDJNS14/j9z4mOcahhyZz77n9B9D6sCkNyqI+//
h7c/wG1AxpSn/+ft//0/oesOhiKQ3MJ9H/4HN1zDbUBCz5P/s/f9+t+59e9/t9LLKApBctO2vP/vX30B
twGRXY/+T9n263/J0r//E6b//W+TexauGCTXu/rDf6/SE7gNCGx++L917XuwZuOSL/+lo6/9N45cBtYA
kqub/+6/S/4B3AZ4VN3/XzL3HVyzoksPXDFILn/am//2GdtxG2Bfevd/YMszDM0gAJLLnvz6v0XCetwG
WOTd+W9TcAVDMwiA5FL7X8O9hBUYZt3GqhkEQHJhLS//6wbPw22ATtoNnJIgOb/qh/81fKfhNgAfcMq9
8l/FYwIYQ4UGBWBgAAC+0b+zuQxOnAAAAABJRU5ErkJggg==
</value>
</data>
<data name="toolStripButton1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG
YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9
0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw
bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc
VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9
c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32
Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo
mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+
kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D
TgDQASA1MVpwzwAAAABJRU5ErkJggg==
</value>
</data>
<data name="btEdit.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEvSURBVDhPpZI/S0JRGIed+i6Nbk0t0iCuSkuDi1MfIKfm
+gAOQktTQkMggYtRkwgidKmgyQwMCgqz0CivvvK8cK7neG4KdeHhHs45v+c9/xLyz08Ft713OQ+6SqXV
kfLlnXJw1lSK5VrERqGkMB4JCCLpvQ7lZfDlQJ+B4EnwI9nTkbYdAZMbjxOPq4eJPH1MvXC2sD8XsOzP
0bcX/C3MXEfAfmzBsnCnP10uWBWu3IS+gJOm0w5fHCZiw0aQzu3GC0xYgm2R+poTRnh8HeqNOALu920w
9MK0F8NGkMrs+ALewqrwUXss3ed+vKB6H+rh2OT3SjpO0IBgcyvnCjgDBGCq8mcMiQ3FHAGdLB/J4vMF
KhoI83LXk6m5gCpmufbyOWlgv0BVIMx4JPj7JzIDGHRUPz2nxiQAAAAASUVORK5CYII=
</value>
</data>
<data name="btSave.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG
YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9
0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw
bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc
VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9
c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32
Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo
mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+
kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D
TgDQASA1MVpwzwAAAABJRU5ErkJggg==
</value>
</data>
<data name="btFind.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAE3SURBVDhPnZIxS8NQFEb7W/wLjh0Fl9a1SxBHBekkWFd1
qYg4Ci5dndSCg2AHl4LQSaRSKDqoFUE7VAjUmvTKueWmL2mw2gunL7zmO+/mJhmZoTJusdF868vpXUfO
b5/lpPEox9f3SvnsRtk8uojxHQ7HEgSEkXS6vrz3xqtdu+xdfUiheEBsJOGCk/mz/hROUHsIIrp+qIKY
hB/a9r+CVAG4Auj5g7iA5/1NACaptgIVLHkb0wWVw13ZL60p2+uerqkCJs1mMgwUU6d1k/xJwI10RZj1
9TPUN7Wam9dgTMC75QR7TjCBkRQs5Jd1jQS8c1ewtZLTPcQW/peADpC44cudgnjZOQ1OCGjTwkwaGBon
GoSrpcVIQqmAj6LZftFBup9vWiUlUQdIDCbsQrsGZRJKBbOXyA++SlEsu6QjvQAAAABJRU5ErkJggg==
</value>
</data>
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>334, 17</value>
</metadata>
<metadata name="ta.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>440, 17</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>65</value>
</metadata>
</root>

View File

@@ -66,6 +66,8 @@
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();
this.dsPurchase = new FEQ0000.dsPurchase();
this.bs = new System.Windows.Forms.BindingSource(this.components);
@@ -87,6 +89,7 @@
this.btDel = new System.Windows.Forms.ToolStripButton();
this.toolStripButton4 = new System.Windows.Forms.ToolStripButton();
this.btSave = new System.Windows.Forms.ToolStripButton();
this.toolStripButton8 = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.lbSum = new System.Windows.Forms.ToolStripLabel();
this.toolStripLabel5 = new System.Windows.Forms.ToolStripLabel();
@@ -110,6 +113,7 @@
this.loadToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripSeparator();
this.exportDataToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem4 = new System.Windows.Forms.ToolStripSeparator();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@@ -150,7 +154,7 @@
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();
((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
@@ -208,6 +212,7 @@
this.btDel,
this.toolStripButton4,
this.btSave,
this.toolStripButton8,
this.toolStripSeparator1,
this.lbSum,
this.toolStripLabel5,
@@ -352,6 +357,15 @@
this.btSave.Text = "저장(&S)";
this.btSave.Click += new System.EventHandler(this.btSave_Click);
//
// toolStripButton8
//
this.toolStripButton8.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton8.Image")));
this.toolStripButton8.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton8.Name = "toolStripButton8";
this.toolStripButton8.Size = new System.Drawing.Size(83, 28);
this.toolStripButton8.Text = "승인요청";
this.toolStripButton8.Click += new System.EventHandler(this.toolStripButton8_Click);
//
// toolStripSeparator1
//
this.toolStripSeparator1.Name = "toolStripSeparator1";
@@ -441,7 +455,8 @@
this.toolStripButton7.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
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";
@@ -452,7 +467,7 @@
//
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.Size = new System.Drawing.Size(190, 30);
this.ToolStripMenuItem.Text = "입고 품목 메일 전송";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
@@ -460,7 +475,7 @@
//
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.Size = new System.Drawing.Size(190, 30);
this.ToolStripMenuItem.Text = "엑셀에서 가져오기";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
@@ -468,7 +483,7 @@
//
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.Size = new System.Drawing.Size(190, 30);
this.ToolStripMenuItem.Text = "견적서 폴더 열기";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
@@ -500,7 +515,7 @@
this.sC검색ToolStripMenuItem,
this.cRCF검색ToolStripMenuItem});
this.cm1.Name = "contextMenuStrip1";
this.cm1.Size = new System.Drawing.Size(314, 506);
this.cm1.Size = new System.Drawing.Size(314, 484);
this.cm1.Opening += new System.ComponentModel.CancelEventHandler(this.cm1_Opening);
//
// columnSizeToolStripMenuItem
@@ -549,6 +564,13 @@
this.exportDataToolStripMenuItem.Text = "목록 내보내기(xls)";
this.exportDataToolStripMenuItem.Click += new System.EventHandler(this.exportDataToolStripMenuItem_Click);
//
// 사용자내보내기ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "사용자내보내기ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(313, 42);
this.ToolStripMenuItem.Text = "사용자 내보내기";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// toolStripMenuItem4
//
this.toolStripMenuItem4.Name = "toolStripMenuItem4";
@@ -862,7 +884,7 @@
this.fpSpread1_Sheet1.SheetName = "Sheet1";
// Formulas and custom names must be loaded with R1C1 reference style
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.R1C1;
this.fpSpread1_Sheet1.ColumnCount = 39;
this.fpSpread1_Sheet1.ColumnCount = 43;
this.fpSpread1_Sheet1.ActiveColumnIndex = -1;
this.fpSpread1_Sheet1.ActiveRowIndex = -1;
this.fpSpread1_Sheet1.AutoGenerateColumns = false;
@@ -904,12 +926,12 @@
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 35).Value = "PO#";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 36).Value = "비고\r\n(담당자)";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 37).Value = "구매담당";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 38).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).DataField = "chk1";
this.fpSpread1_Sheet1.Columns.Get(0).Label = "요청\r\n검사";
this.fpSpread1_Sheet1.Columns.Get(0).Width = 31F;
this.fpSpread1_Sheet1.Columns.Get(0).Width = 37F;
this.fpSpread1_Sheet1.Columns.Get(1).CellType = checkBoxCellType2;
this.fpSpread1_Sheet1.Columns.Get(1).DataField = "chk2";
this.fpSpread1_Sheet1.Columns.Get(1).Label = "구매\r\n검사";
@@ -987,7 +1009,6 @@
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).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(11).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(12).CellType = textCellType11;
this.fpSpread1_Sheet1.Columns.Get(12).DataField = "receiveName";
@@ -1117,7 +1138,6 @@
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).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(28).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(29).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(29).CellType = textCellType19;
@@ -1135,7 +1155,6 @@
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).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(30).Width = 51F;
textCellType20.WordWrap = true;
this.fpSpread1_Sheet1.Columns.Get(31).CellType = textCellType20;
@@ -1184,11 +1203,35 @@
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).CellType = checkBoxCellType3;
this.fpSpread1_Sheet1.Columns.Get(38).DataField = "isdel";
this.fpSpread1_Sheet1.Columns.Get(38).Label = "삭제됨";
this.fpSpread1_Sheet1.Columns.Get(38).Tag = "isdel";
this.fpSpread1_Sheet1.Columns.Get(38).Width = 51F;
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).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).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).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).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).DataField = "isdel";
this.fpSpread1_Sheet1.Columns.Get(42).Label = "삭제됨";
this.fpSpread1_Sheet1.Columns.Get(42).Tag = "isdel";
this.fpSpread1_Sheet1.Columns.Get(42).Width = 51F;
this.fpSpread1_Sheet1.DataAutoCellTypes = false;
this.fpSpread1_Sheet1.DataAutoSizeColumns = false;
this.fpSpread1_Sheet1.DataSource = this.bs;
@@ -1222,12 +1265,12 @@
this.label2.Text = "--";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// 사용자내보내기ToolStripMenuItem
// 현재목록메일전송ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "사용자내보내기ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(313, 42);
this.ToolStripMenuItem.Text = "사용자 내보내기";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
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);
//
// fPurchaseNR
//
@@ -1342,7 +1385,9 @@
private System.Windows.Forms.ToolStripComboBox cmbManager;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1;
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;
}
}

View File

@@ -17,6 +17,8 @@ using NetOffice.OfficeApi;
using System.Web.Services.Protocols;
using System.Diagnostics;
using FarPoint.Win.Spread.CellType;
using FCM0000;
using GrapeCity.Win.Spread.InputMan.CellType;
namespace FEQ0000
{
@@ -146,7 +148,7 @@ namespace FEQ0000
//}
}
this.cmbManager.SelectedIndex = 0;
if(FCOMMON.info.Login.gcode.EndsWith("PM"))
if (FCOMMON.info.Login.gcode.EndsWith("PM"))
{
var manidx = cmbManager.Items.IndexOf(FCOMMON.info.Login.nameK);
if (manidx >= 0)
@@ -309,7 +311,7 @@ namespace FEQ0000
var statindex = this.fpSpread1.ActiveSheet.Columns["state"].Index;
var crcfindex = this.fpSpread1.ActiveSheet.Columns["crcf"].Index;
var prjindex = this.fpSpread1.ActiveSheet.Columns["projectidx"].Index;
var cstsindex = this.fpSpread1.ActiveSheet.Columns["conf_status"].Index;
for (int i = 0; i < this.fpSpread1.ActiveSheet.Rows.Count; i++)
{
@@ -319,9 +321,13 @@ namespace FEQ0000
var value = this.fpSpread1.ActiveSheet.GetValue(i, delindex);
var crcf = this.fpSpread1.ActiveSheet.GetValue(i, crcfindex);
var v_confstats = this.fpSpread1.ActiveSheet.GetValue(i, cstsindex);
var str_crcf = string.Empty;
var str_confstats = string.Empty;
if (crcf != null) str_crcf = crcf.ToString();
if (v_confstats != null) str_confstats = v_confstats.ToString();
if (value != null && (Boolean)value)
@@ -359,6 +365,14 @@ namespace FEQ0000
case "hold":
this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.HotPink;
break;
case "approving":
this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.DarkGoldenrod;
if (str_confstats == "2") //ok
this.fpSpread1.ActiveSheet.Rows[i].BackColor = Color.Lime;
else if (str_confstats == "3") //reject
this.fpSpread1.ActiveSheet.Rows[i].BackColor = Color.HotPink;
break;
default:
this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Black;
break;
@@ -1436,22 +1450,22 @@ namespace FEQ0000
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++)
for (int i = item.Row; i < item.Row + item.RowCount; i++)
{
if(rows.Contains(i)==false)
if (rows.Contains(i) == false)
{
if(fpSpread1_Sheet1.IsRowBound(i))
if (fpSpread1_Sheet1.IsRowBound(i))
{
rows.Add(i);
}
}
}
}
@@ -1464,7 +1478,7 @@ namespace FEQ0000
var colstat = fpSpread1_Sheet1.Columns["state"];
var value = f.cmbState.Text;
foreach(var rowindex in rows)
foreach (var rowindex in rows)
{
fpSpread1_Sheet1.SetValue(rowindex, colstat.Index, value);
}
@@ -1482,7 +1496,7 @@ namespace FEQ0000
{
var cnt = this.fpSpread1_Sheet1.Columns.Count;
Dictionary<string, string> cols = new Dictionary<string, string>();
foreach(FarPoint.Win.Spread.Column col in fpSpread1_Sheet1.Columns)
foreach (FarPoint.Win.Spread.Column col in fpSpread1_Sheet1.Columns)
{
if (col.Visible == false || col.Width < 10) continue;
if (col.CellType is CheckBoxCellType) continue;
@@ -1492,8 +1506,250 @@ namespace FEQ0000
}
var f = new fUserExportColumn(this.Name, cols,this.dsPurchase.Purchase,this.bs.Filter);
var f = new fUserExportColumn(this.Name, cols, this.dsPurchase.Purchase, this.bs.Filter);
f.ShowDialog();
}
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);
}
//이자료를 승인요청창에 보낸다.
if(rows.Any()==false)
{
FCOMMON.Util.MsgE("대상 데이터가 없습니다.");
return;
}
var f = new fPurchaseNR_ConfRequest(rows);
f.ShowDialog();
FormattingData();
}
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();
//현재표시데이터중에 수신자목록을 가져온다
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());
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" +
"아웃룩의 설정이 정상인지 확인하세요");
}
}
}
}

View File

@@ -233,6 +233,21 @@
mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+
kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D
TgDQASA1MVpwzwAAAABJRU5ErkJggg==
</value>
</data>
<data name="toolStripButton8.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG
YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9
0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw
bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc
VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9
c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32
Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo
mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+
kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D
TgDQASA1MVpwzwAAAABJRU5ErkJggg==
</value>
</data>
<data name="btFind.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">

View File

@@ -0,0 +1,566 @@
namespace FEQ0000
{
partial class fPurchaseNR_ConfRequest
{
/// <summary>
/// 필수 디자이너 변수입니다.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 사용 중인 모든 리소스를 정리합니다.
/// </summary>
/// <param name="disposing">관리되는 리소스를 삭제해야 하면 true이고, 그렇지 않으면 false입니다.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region
/// <summary>
/// 디자이너 지원에 필요한 메서드입니다.
/// 이 메서드의 내용을 코드 편집기로 수정하지 마십시오.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fPurchaseNR_ConfRequest));
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = new System.Windows.Forms.DataGridViewCellStyle();
this.bn = new System.Windows.Forms.BindingNavigator(this.components);
this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel();
this.bindingNavigatorSeparator = new System.Windows.Forms.ToolStripSeparator();
this.bindingNavigatorPositionItem = new System.Windows.Forms.ToolStripTextBox();
this.bindingNavigatorSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.lbSum = new System.Windows.Forms.ToolStripLabel();
this.toolStripLabel5 = new System.Windows.Forms.ToolStripLabel();
this.toolStripLabel2 = new System.Windows.Forms.ToolStripLabel();
this.tbFind = new System.Windows.Forms.ToolStripTextBox();
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.richTextBox2 = new System.Windows.Forms.RichTextBox();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMovePreviousItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMoveNextItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton();
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
this.btEdit = new System.Windows.Forms.ToolStripButton();
this.btSave = new System.Windows.Forms.ToolStripButton();
this.btFind = new System.Windows.Forms.ToolStripButton();
this.pdateDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.requestNameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.sidDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pumnameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pumscaleDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pumunitDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pumqtyDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pumqtyReqDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pumpriceDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pumamtDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.supplyDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.bigo2DataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.bigoDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.bs = new System.Windows.Forms.BindingSource(this.components);
this.dsPurchase = new FEQ0000.dsPurchase();
this.ta = new FEQ0000.dsPurchaseTableAdapters.PurchaseTableAdapter();
this.tam = new FEQ0000.dsPurchaseTableAdapters.TableAdapterManager();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
this.bn.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.tableLayoutPanel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit();
this.SuspendLayout();
//
// bn
//
this.bn.AddNewItem = null;
this.bn.BindingSource = this.bs;
this.bn.CountItem = this.bindingNavigatorCountItem;
this.bn.DeleteItem = null;
this.bn.Dock = System.Windows.Forms.DockStyle.Bottom;
this.bn.ImageScalingSize = new System.Drawing.Size(24, 24);
this.bn.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.bindingNavigatorMoveFirstItem,
this.bindingNavigatorMovePreviousItem,
this.bindingNavigatorSeparator,
this.bindingNavigatorPositionItem,
this.bindingNavigatorCountItem,
this.bindingNavigatorSeparator1,
this.bindingNavigatorMoveNextItem,
this.bindingNavigatorMoveLastItem,
this.bindingNavigatorSeparator2,
this.toolStripButton1,
this.btEdit,
this.btSave,
this.toolStripSeparator1,
this.lbSum,
this.toolStripLabel5,
this.toolStripLabel2,
this.tbFind,
this.btFind});
this.bn.Location = new System.Drawing.Point(0, 589);
this.bn.MoveFirstItem = this.bindingNavigatorMoveFirstItem;
this.bn.MoveLastItem = this.bindingNavigatorMoveLastItem;
this.bn.MoveNextItem = this.bindingNavigatorMoveNextItem;
this.bn.MovePreviousItem = this.bindingNavigatorMovePreviousItem;
this.bn.Name = "bn";
this.bn.PositionItem = this.bindingNavigatorPositionItem;
this.bn.Size = new System.Drawing.Size(1219, 31);
this.bn.TabIndex = 0;
this.bn.Text = "bindingNavigator1";
//
// bindingNavigatorCountItem
//
this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem";
this.bindingNavigatorCountItem.Size = new System.Drawing.Size(27, 28);
this.bindingNavigatorCountItem.Text = "/{0}";
this.bindingNavigatorCountItem.ToolTipText = "전체 항목 수";
//
// bindingNavigatorSeparator
//
this.bindingNavigatorSeparator.Name = "bindingNavigatorSeparator";
this.bindingNavigatorSeparator.Size = new System.Drawing.Size(6, 31);
//
// bindingNavigatorPositionItem
//
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";
this.bindingNavigatorPositionItem.ToolTipText = "현재 위치";
//
// bindingNavigatorSeparator1
//
this.bindingNavigatorSeparator1.Name = "bindingNavigatorSeparator1";
this.bindingNavigatorSeparator1.Size = new System.Drawing.Size(6, 31);
//
// bindingNavigatorSeparator2
//
this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator2";
this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 31);
//
// toolStripSeparator1
//
this.toolStripSeparator1.Name = "toolStripSeparator1";
this.toolStripSeparator1.Size = new System.Drawing.Size(6, 31);
//
// lbSum
//
this.lbSum.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.lbSum.Font = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lbSum.Name = "lbSum";
this.lbSum.Size = new System.Drawing.Size(22, 28);
this.lbSum.Text = "0";
//
// toolStripLabel5
//
this.toolStripLabel5.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.toolStripLabel5.Name = "toolStripLabel5";
this.toolStripLabel5.Size = new System.Drawing.Size(31, 28);
this.toolStripLabel5.Text = "합계";
//
// toolStripLabel2
//
this.toolStripLabel2.Name = "toolStripLabel2";
this.toolStripLabel2.Size = new System.Drawing.Size(31, 28);
this.toolStripLabel2.Text = "검색";
this.toolStripLabel2.Click += new System.EventHandler(this.toolStripLabel2_Click);
//
// 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, 31);
this.tbFind.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tbFind_KeyDown);
//
// toolStrip1
//
this.toolStrip1.ImageScalingSize = new System.Drawing.Size(30, 30);
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(1219, 25);
this.toolStrip1.TabIndex = 3;
this.toolStrip1.Text = "toolStrip1";
//
// dataGridView1
//
this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.AllowUserToDeleteRows = false;
this.dataGridView1.AutoGenerateColumns = false;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.pdateDataGridViewTextBoxColumn,
this.requestNameDataGridViewTextBoxColumn,
this.sidDataGridViewTextBoxColumn,
this.pumnameDataGridViewTextBoxColumn,
this.pumscaleDataGridViewTextBoxColumn,
this.pumunitDataGridViewTextBoxColumn,
this.pumqtyDataGridViewTextBoxColumn,
this.pumqtyReqDataGridViewTextBoxColumn,
this.pumpriceDataGridViewTextBoxColumn,
this.pumamtDataGridViewTextBoxColumn,
this.supplyDataGridViewTextBoxColumn,
this.bigo2DataGridViewTextBoxColumn,
this.bigoDataGridViewTextBoxColumn});
this.dataGridView1.DataSource = this.bs;
dataGridViewCellStyle20.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle20.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle20.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle20.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle20.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle20.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle20.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle20;
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView1.Location = new System.Drawing.Point(0, 25);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(1219, 426);
this.dataGridView1.TabIndex = 8;
//
// tableLayoutPanel1
//
this.tableLayoutPanel1.ColumnCount = 2;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel1.Controls.Add(this.richTextBox1, 0, 1);
this.tableLayoutPanel1.Controls.Add(this.richTextBox2, 1, 1);
this.tableLayoutPanel1.Controls.Add(this.label1, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.label2, 1, 0);
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 451);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 2;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(1219, 138);
this.tableLayoutPanel1.TabIndex = 9;
//
// richTextBox1
//
this.richTextBox1.BackColor = System.Drawing.Color.Gold;
this.richTextBox1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "chkremark", true));
this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.richTextBox1.Location = new System.Drawing.Point(3, 28);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(603, 107);
this.richTextBox1.TabIndex = 0;
this.richTextBox1.Text = "";
//
// richTextBox2
//
this.richTextBox2.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "bigo", true));
this.richTextBox2.Dock = System.Windows.Forms.DockStyle.Fill;
this.richTextBox2.Location = new System.Drawing.Point(612, 28);
this.richTextBox2.Name = "richTextBox2";
this.richTextBox2.ReadOnly = true;
this.richTextBox2.Size = new System.Drawing.Size(604, 107);
this.richTextBox2.TabIndex = 0;
this.richTextBox2.Text = "";
//
// label1
//
this.label1.Dock = System.Windows.Forms.DockStyle.Fill;
this.label1.Location = new System.Drawing.Point(3, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(603, 25);
this.label1.TabIndex = 1;
this.label1.Text = "구매 담당자 비고";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label2
//
this.label2.Dock = System.Windows.Forms.DockStyle.Fill;
this.label2.Location = new System.Drawing.Point(612, 0);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(604, 25);
this.label2.TabIndex = 2;
this.label2.Text = "구매신청자 비고(구매사유)";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// bindingNavigatorMoveFirstItem
//
this.bindingNavigatorMoveFirstItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveFirstItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveFirstItem.Image")));
this.bindingNavigatorMoveFirstItem.Name = "bindingNavigatorMoveFirstItem";
this.bindingNavigatorMoveFirstItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveFirstItem.Size = new System.Drawing.Size(28, 28);
this.bindingNavigatorMoveFirstItem.Text = "처음으로 이동";
//
// bindingNavigatorMovePreviousItem
//
this.bindingNavigatorMovePreviousItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMovePreviousItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMovePreviousItem.Image")));
this.bindingNavigatorMovePreviousItem.Name = "bindingNavigatorMovePreviousItem";
this.bindingNavigatorMovePreviousItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMovePreviousItem.Size = new System.Drawing.Size(28, 28);
this.bindingNavigatorMovePreviousItem.Text = "이전으로 이동";
//
// bindingNavigatorMoveNextItem
//
this.bindingNavigatorMoveNextItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveNextItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveNextItem.Image")));
this.bindingNavigatorMoveNextItem.Name = "bindingNavigatorMoveNextItem";
this.bindingNavigatorMoveNextItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveNextItem.Size = new System.Drawing.Size(28, 28);
this.bindingNavigatorMoveNextItem.Text = "다음으로 이동";
//
// bindingNavigatorMoveLastItem
//
this.bindingNavigatorMoveLastItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveLastItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveLastItem.Image")));
this.bindingNavigatorMoveLastItem.Name = "bindingNavigatorMoveLastItem";
this.bindingNavigatorMoveLastItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveLastItem.Size = new System.Drawing.Size(28, 28);
this.bindingNavigatorMoveLastItem.Text = "마지막으로 이동";
//
// toolStripButton1
//
this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image")));
this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton1.Name = "toolStripButton1";
this.toolStripButton1.Size = new System.Drawing.Size(100, 28);
this.toolStripButton1.Text = "목록제거(&D)";
this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click);
//
// btEdit
//
this.btEdit.Image = ((System.Drawing.Image)(resources.GetObject("btEdit.Image")));
this.btEdit.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btEdit.Name = "btEdit";
this.btEdit.Size = new System.Drawing.Size(73, 28);
this.btEdit.Text = "편집(&E)";
this.btEdit.Click += new System.EventHandler(this.toolStripButton2_Click);
//
// btSave
//
this.btSave.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.btSave.Image = ((System.Drawing.Image)(resources.GetObject("btSave.Image")));
this.btSave.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btSave.Name = "btSave";
this.btSave.Size = new System.Drawing.Size(83, 28);
this.btSave.Text = "승인요청";
this.btSave.Click += new System.EventHandler(this.toolStripButton8_Click);
//
// btFind
//
this.btFind.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.btFind.Image = ((System.Drawing.Image)(resources.GetObject("btFind.Image")));
this.btFind.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btFind.Name = "btFind";
this.btFind.Size = new System.Drawing.Size(28, 28);
this.btFind.Text = "toolStripButton2";
this.btFind.Click += new System.EventHandler(this.btFind_Click);
//
// pdateDataGridViewTextBoxColumn
//
this.pdateDataGridViewTextBoxColumn.DataPropertyName = "pdate";
this.pdateDataGridViewTextBoxColumn.HeaderText = "요청일";
this.pdateDataGridViewTextBoxColumn.Name = "pdateDataGridViewTextBoxColumn";
this.pdateDataGridViewTextBoxColumn.ReadOnly = true;
//
// requestNameDataGridViewTextBoxColumn
//
this.requestNameDataGridViewTextBoxColumn.DataPropertyName = "requestName";
this.requestNameDataGridViewTextBoxColumn.HeaderText = "구매신청";
this.requestNameDataGridViewTextBoxColumn.Name = "requestNameDataGridViewTextBoxColumn";
this.requestNameDataGridViewTextBoxColumn.ReadOnly = true;
//
// sidDataGridViewTextBoxColumn
//
this.sidDataGridViewTextBoxColumn.DataPropertyName = "sid";
this.sidDataGridViewTextBoxColumn.HeaderText = "SID";
this.sidDataGridViewTextBoxColumn.Name = "sidDataGridViewTextBoxColumn";
this.sidDataGridViewTextBoxColumn.ReadOnly = true;
//
// pumnameDataGridViewTextBoxColumn
//
this.pumnameDataGridViewTextBoxColumn.DataPropertyName = "pumname";
dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
this.pumnameDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle16;
this.pumnameDataGridViewTextBoxColumn.HeaderText = "품명";
this.pumnameDataGridViewTextBoxColumn.Name = "pumnameDataGridViewTextBoxColumn";
this.pumnameDataGridViewTextBoxColumn.ReadOnly = true;
//
// pumscaleDataGridViewTextBoxColumn
//
this.pumscaleDataGridViewTextBoxColumn.DataPropertyName = "pumscale";
dataGridViewCellStyle17.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
this.pumscaleDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle17;
this.pumscaleDataGridViewTextBoxColumn.HeaderText = "모델/규격";
this.pumscaleDataGridViewTextBoxColumn.Name = "pumscaleDataGridViewTextBoxColumn";
this.pumscaleDataGridViewTextBoxColumn.ReadOnly = true;
//
// pumunitDataGridViewTextBoxColumn
//
this.pumunitDataGridViewTextBoxColumn.DataPropertyName = "pumunit";
this.pumunitDataGridViewTextBoxColumn.HeaderText = "단위";
this.pumunitDataGridViewTextBoxColumn.Name = "pumunitDataGridViewTextBoxColumn";
this.pumunitDataGridViewTextBoxColumn.ReadOnly = true;
//
// pumqtyDataGridViewTextBoxColumn
//
this.pumqtyDataGridViewTextBoxColumn.DataPropertyName = "pumqty";
this.pumqtyDataGridViewTextBoxColumn.HeaderText = "신청수량";
this.pumqtyDataGridViewTextBoxColumn.Name = "pumqtyDataGridViewTextBoxColumn";
this.pumqtyDataGridViewTextBoxColumn.ReadOnly = true;
//
// pumqtyReqDataGridViewTextBoxColumn
//
this.pumqtyReqDataGridViewTextBoxColumn.DataPropertyName = "pumqtyReq";
this.pumqtyReqDataGridViewTextBoxColumn.HeaderText = "구매수량";
this.pumqtyReqDataGridViewTextBoxColumn.Name = "pumqtyReqDataGridViewTextBoxColumn";
this.pumqtyReqDataGridViewTextBoxColumn.ReadOnly = true;
//
// pumpriceDataGridViewTextBoxColumn
//
this.pumpriceDataGridViewTextBoxColumn.DataPropertyName = "pumprice";
this.pumpriceDataGridViewTextBoxColumn.HeaderText = "단가";
this.pumpriceDataGridViewTextBoxColumn.Name = "pumpriceDataGridViewTextBoxColumn";
this.pumpriceDataGridViewTextBoxColumn.ReadOnly = true;
//
// pumamtDataGridViewTextBoxColumn
//
this.pumamtDataGridViewTextBoxColumn.DataPropertyName = "pumamt";
this.pumamtDataGridViewTextBoxColumn.HeaderText = "금액";
this.pumamtDataGridViewTextBoxColumn.Name = "pumamtDataGridViewTextBoxColumn";
this.pumamtDataGridViewTextBoxColumn.ReadOnly = true;
//
// supplyDataGridViewTextBoxColumn
//
this.supplyDataGridViewTextBoxColumn.DataPropertyName = "supply";
dataGridViewCellStyle18.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
this.supplyDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle18;
this.supplyDataGridViewTextBoxColumn.HeaderText = "공급";
this.supplyDataGridViewTextBoxColumn.Name = "supplyDataGridViewTextBoxColumn";
this.supplyDataGridViewTextBoxColumn.ReadOnly = true;
//
// bigo2DataGridViewTextBoxColumn
//
this.bigo2DataGridViewTextBoxColumn.DataPropertyName = "chkremark";
this.bigo2DataGridViewTextBoxColumn.HeaderText = "비고(구매담당)";
this.bigo2DataGridViewTextBoxColumn.Name = "bigo2DataGridViewTextBoxColumn";
this.bigo2DataGridViewTextBoxColumn.ReadOnly = true;
//
// bigoDataGridViewTextBoxColumn
//
this.bigoDataGridViewTextBoxColumn.DataPropertyName = "bigo";
dataGridViewCellStyle19.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
this.bigoDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle19;
this.bigoDataGridViewTextBoxColumn.HeaderText = "비고(구매요청)";
this.bigoDataGridViewTextBoxColumn.Name = "bigoDataGridViewTextBoxColumn";
this.bigoDataGridViewTextBoxColumn.ReadOnly = true;
//
// bs
//
this.bs.DataMember = "Purchase";
this.bs.DataSource = this.dsPurchase;
this.bs.CurrentChanged += new System.EventHandler(this.bs_CurrentChanged);
//
// dsPurchase
//
this.dsPurchase.DataSetName = "dsPurchase";
this.dsPurchase.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
//
// ta
//
this.ta.ClearBeforeFill = true;
//
// tam
//
this.tam.BackupDataSetBeforeUpdate = true;
this.tam.EETGW_PurchaseCRTableAdapter = null;
this.tam.EETGW_PurchaseEBTableAdapter = null;
this.tam.PurchaseTableAdapter = this.ta;
this.tam.UpdateOrder = FEQ0000.dsPurchaseTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
//
// fPurchaseNR_ConfRequest
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1219, 620);
this.Controls.Add(this.dataGridView1);
this.Controls.Add(this.tableLayoutPanel1);
this.Controls.Add(this.toolStrip1);
this.Controls.Add(this.bn);
this.DoubleBuffered = true;
this.Name = "fPurchaseNR_ConfRequest";
this.Text = "구매신청건 승인요청";
this.Load += new System.EventHandler(this.@__Load);
((System.ComponentModel.ISupportInitialize)(this.bn)).EndInit();
this.bn.ResumeLayout(false);
this.bn.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.tableLayoutPanel1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private dsPurchase dsPurchase;
private System.Windows.Forms.BindingSource bs;
private dsPurchaseTableAdapters.PurchaseTableAdapter ta;
private dsPurchaseTableAdapters.TableAdapterManager tam;
private System.Windows.Forms.BindingNavigator bn;
private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveFirstItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMovePreviousItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator;
private System.Windows.Forms.ToolStripTextBox bindingNavigatorPositionItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator1;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveNextItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2;
private System.Windows.Forms.ToolStrip toolStrip1;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
private System.Windows.Forms.ToolStripLabel toolStripLabel5;
private System.Windows.Forms.ToolStripLabel lbSum;
private System.Windows.Forms.ToolStripLabel toolStripLabel2;
private System.Windows.Forms.ToolStripTextBox tbFind;
private System.Windows.Forms.ToolStripButton btFind;
private System.Windows.Forms.ToolStripButton btEdit;
private System.Windows.Forms.ToolStripButton btSave;
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.DataGridViewTextBoxColumn pdateDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn requestNameDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn sidDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn pumnameDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn pumscaleDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn pumunitDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn pumqtyDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn pumqtyReqDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn pumpriceDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn pumamtDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn supplyDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn bigo2DataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn bigoDataGridViewTextBoxColumn;
private System.Windows.Forms.ToolStripButton toolStripButton1;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private System.Windows.Forms.RichTextBox richTextBox1;
private System.Windows.Forms.RichTextBox richTextBox2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
}
}

View File

@@ -0,0 +1,544 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using util = FCOMMON.Util;
using NetOffice;
using Outlook = NetOffice.OutlookApi;
using NetOffice.OutlookApi.Enums;
using FEQ0000.Purchase;
using FCOMMON;
using NetOffice.OfficeApi;
using System.Web.Services.Protocols;
using System.Diagnostics;
using FarPoint.Win.Spread.CellType;
using FCM0000;
using FarPoint.Win.Spread;
using System.Resources;
namespace FEQ0000
{
public partial class fPurchaseNR_ConfRequest : FCOMMON.fBase
{
string fn_fpcolsize = "";
List<dsPurchase.PurchaseRow> rows;
public fPurchaseNR_ConfRequest(List<dsPurchase.PurchaseRow> rows_)
{
InitializeComponent();
this.rows = rows_;
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
Properties.Settings.Default["EEEntities"] = FCOMMON.info.CS;
fn_fpcolsize = util.MakeFilePath(util.CurrentPath, "formSetting", "fp_" + this.Name + ".ini");
this.FormClosing += FPurchase_FormClosing;
this.FormClosed += __Closed;
this.bs.DataSource = rows;
this.dataGridView1.DataError += (s1, e1) => { };
}
private void FPurchase_FormClosing(object sender, FormClosingEventArgs e)
{
if (dsPurchase.HasChanges())
{
var dlg = FCOMMON.Util.MsgQ("변경된 자료가 있습니다. 화면을 닫을까요? 닫으면 변경된 자료는 손실 됩니다");
if (dlg != DialogResult.Yes)
{
e.Cancel = true;
return;
}
}
}
void dtSD_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode != Keys.Enter) return;
var tb = sender as ToolStripTextBox;
var input = tb.Text.Trim();
if (input == "") tb.Text = DateTime.Now.ToShortDateString();
else
{
string dt = string.Empty;
if (!util.MakeDateString(input, out dt))
{
FCOMMON.Util.MsgE("입력값이 올바르지 않습니다.");
tb.SelectAll();
tb.Focus();
return;
}
else
{
tb.Text = dt;
}
}
}
void __Closed(object sender, FormClosedEventArgs e)
{
}
private void __Load(object sender, EventArgs e)
{
//일반사용자의경우에는 상태를 변경하지 못한다.
int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.purchase));
IsAdmin = curLevel >= 5;
if (curLevel >= 5)
{
btSave.Visible = true;
}
else
{
btSave.Visible = false;
}
btSave.Visible = true;
refreshData();
}
bool IsAdmin = false;
private void refreshData()
{
try
{
showSummary();
}
catch (System.Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message);
}
FormattingData();
}
void FormattingData()
{
dataGridView1.AutoResizeColumns();
}
void showSummary()
{
decimal sum = 0;
//var list = this.bs.DataSource as List<dsPurchase.PurchaseRow>;
sum = rows.Sum(t => t.pumamt);
//foreach (dsPurchase.PurchaseRow dr in this.dsPurchase.Purchase.Rows)
//if (!dr.IspumamtNull()) sum += dr.pumamt;
lbSum.Text = sum.ToString("N0");
}
private bool getAdminInput
{
get
{
return FCOMMON.Util.getBit(
FCOMMON.info.Login.gpermission,
(int)FCOMMON.eGroupPermission.purchase_adv);
}
}
private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e)
{
//func_delete();
}
private int AddItemInfoGetIndex(dsPurchase.PurchaseRow newdr)
{
//이 시드가 아이템목록에 없다면 추가 하고 idx를 조회한 후 설정해준다.
if (newdr.sid == "신규") return -1;
int retval = -1;
var sid = newdr.sid;
var iteminfo = FCOMMON.DBM.getItemInfo(sid);
if (iteminfo.idx < 0)
{
FCOMMON.DBM.sItemInfo newitem = new FCOMMON.DBM.sItemInfo();
newitem.sid = newdr.sid;
newitem.name = newdr.pumname;
newitem.price = newdr.pumprice.ToString();
newitem.model = newdr.pumscale;
newitem.unit = newdr.pumunit;
newitem.scale = 1f;
newitem.supply = newdr.supply;
newitem.supplyidx = newdr.supplyidx;
retval = FCOMMON.DBM.addItemInfo(newitem);
}
return retval;
}
private void btFind_Click(object sender, EventArgs e)
{
var search = tbFind.Text.Trim();
search = search.Replace("*", "x");
if (tbFind.Text != search) tbFind.Text = search;
try
{
if (search.isEmpty())
{
this.bs.Filter = "";
tbFind.BackColor = Color.White;
}
else
{
search = search.Replace("'", "''");
string filter = "supply like ? or sid like ? or process like ? or orderno like ? or sc like ? or pumname like ? or pumscale like ? or project like ?";
filter = filter.Replace("?", "'%" + search + "%'");
this.bs.Filter = filter;
tbFind.BackColor = Color.Lime;
}
tbFind.SelectAll();
tbFind.Focus();
showSummary();
}
catch (Exception ex)
{
this.tbFind.BackColor = Color.Tomato;
FCOMMON.Util.MsgE(ex.Message);
}
}
private void tbFind_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter) btFind.PerformClick();
}
void Func_Edit()
{
var drv = this.bs.Current as DataRowView;
if (drv == null) return;
var newdr = drv.Row as dsPurchase.PurchaseRow;
bool repeat = false;
DialogResult dlg;
if (getAdminInput == false)
{
repeat = false;
var f = new fPurchase_AddS(newdr);
dlg = f.ShowDialog();
}
else
{
var f = new fPurchase_Add(newdr);
dlg = f.ShowDialog();
repeat = f.repeatAdd;
}
if (dlg == System.Windows.Forms.DialogResult.OK)
{
//존재하지 않는 sid 는 추가를 해준다.
var newidx = AddItemInfoGetIndex(newdr);
if (newidx != -1)
{
newdr.pumidx = newidx;
newdr.EndEdit();
}
if (newdr.RowState != DataRowState.Unchanged)
{
this.ta.Update(newdr);
newdr.AcceptChanges();
}
}
else newdr.RejectChanges();
}
private void toolStripButton2_Click(object sender, EventArgs e)
{
Func_Edit();
}
private void sC검색ToolStripMenuItem_Click(object sender, EventArgs e)
{
//sc
var drv = this.bs.Current as DataRowView;
if (drv == null) return;
var newdr = drv.Row as dsPurchase.PurchaseRow;
if (newdr.sc.Trim() == "")
{
FCOMMON.Util.MsgE("SC값이 없습니다");
return;
}
tbFind.Text = newdr.sc;
btFind.PerformClick();
}
private void cRCF검색ToolStripMenuItem_Click(object sender, EventArgs e)
{
//crcf
var drv = this.bs.Current as DataRowView;
if (drv == null) return;
var newdr = drv.Row as dsPurchase.PurchaseRow;
if (newdr.orderno.Trim() == "")
{
FCOMMON.Util.MsgE("CR/CF값이 없습니다");
return;
}
tbFind.Text = newdr.orderno;
btFind.PerformClick();
}
private void toolStripLabel2_Click(object sender, EventArgs e)
{
if (tbFind.Text != "")
{
tbFind.Text = "";
btFind.PerformClick();
}
}
private void toolStripButton3_Click(object sender, EventArgs e)
{
}
private void bs_CurrentChanged(object sender, EventArgs e)
{
var dr = bs.Current as dsPurchase.PurchaseRow;
if (dr.IschkremarkNull()) richTextBox1.Text = "";
//else richTextBox1.Text = dr.chkremark;
//if (dr.IsbigoNull()) richTextBox2.Text = "";
//else richTextBox2.Text = dr.bigo;
}
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)
{
var db = new DataClasses1DataContext();
List<string> retval = new List<string>();
foreach (var id in userid)
{
UInt32 userno;
if (UInt32.TryParse(id, out userno) == true)
{
var user = db.Users.Where(t => t.id == id).FirstOrDefault();
if (user != null)
{
var data = string.Format("{0}<{1}>", user.name, user.email);
if (retval.Contains(data) == false)
retval.Add(data);
}
}
else
{
if (retval.Contains(id) == false)
retval.Add(id);
}
}
return retval;
}
private void toolStripButton8_Click(object sender, EventArgs e)
{
this.Validate();
this.bs.EndEdit();
//승인요청
var dlg = FCOMMON.Util.MsgQ("현재 자료를 승인 요청 할까요?");
if (dlg != DialogResult.Yes) return;
//모든자료의 승인상태를 업데이트한다.
foreach (DataGridViewRow row in this.dataGridView1.Rows)
{
var dr = row.DataBoundItem as dsPurchase.PurchaseRow;
dr.conf_status = "1";
if (dr.state == "---") dr.state = "Approving";
dr.EndEdit();
ta.Update(dr);
dr.AcceptChanges();
}
dlg = util.MsgQ("메일 전송을 할까요?");
if (dlg != DialogResult.Yes) return;
//수신자목록수집
//var drows = (List<dsPurchase.PurchaseRow>)(this.bs.DataSource);
var grp_req = rows.Where(t => t.request.isEmpty() == false).GroupBy(t => t.request).Select(t => t.FirstOrDefault().request).ToList();
var grp_rec = rows.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>();
var f = new Purchase.fMailForm("PH");
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();
//받는사람
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);
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_confirm_" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".xls");
if (fi.Directory.Exists == false) fi.Directory.Create();
FCOMMON.Util.savetoexcel(this.dataGridView1, fi.FullName);
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>");
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;
newMail.HTMLBody = form_body + newMail.HTMLBody; //
}
catch (Exception ex)
{
util.MsgE("전송실패\n\n" + ex.Message + "\n\n" +
"아웃룩의 설정이 정상인지 확인하세요");
}
}
private void toolStripButton1_Click(object sender, EventArgs e)
{
var drv = this.bs.Current as dsPurchase.PurchaseRow;
if (drv == null) return;
var dlg = util.MsgQ("선택된 줄을 제거 할까요?");
if (dlg != DialogResult.Yes) return;
this.rows.Remove(drv);
if (rows.Any())
{
this.bs.DataSource = rows;
refreshData();
}
else
{
this.bs.DataSource = null;
lbSum.Text = "";
}
this.dataGridView1.Refresh();
}
}
}

View File

@@ -0,0 +1,237 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="bn.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>330, 17</value>
</metadata>
<metadata name="bs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>131, 17</value>
</metadata>
<metadata name="dsPurchase.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="bindingNavigatorMoveFirstItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vAAADrwBlbxySQAAASpJREFUOE9jGDygcNbz/00Lnv/PnPj4P1QIA4S3P8Apx5A789n/VUfe/8elKL77
wf/ghmu4DciY8vT/wn0fsCqK73n4f+n+///9qy/gNiCh58n/aVveYyiKaL8P1pw56/9/r9ITuA2I7Hr0
v3f1BxRFoa33wJpb1wFt7/z73yX/AG4DApsf/q+b/w6uKLjl7v9Fe///7wBqzpjz879d3c//9hnbcRvg
UXX/f/60NyiK7Ipv/0+f8/u/f9e3/zqF7/5bJKzHbYB96d3/2ZNfYyjSTzn/36ToxX+VrE//jSOX4TbA
Iu/O/9T+11gVGSSd+C+b9vW/bvA83AYYZt3+H9byEqci/dTL/zV8p+E2QCftxn+/6od4Fal4TMBtgFPu
lf8gBXgVDULAwAAA8HbAq6XlmnAAAAAASUVORK5CYII=
</value>
</data>
<data name="bindingNavigatorMovePreviousItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vAAADrwBlbxySQAAALZJREFUOE9jGDogvP3BfyiTdBDf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w
5sxZ//97lZ4gzYDQ1ntgza3rgLZ3/v3vkn+AeAOCW+7+X7T3//8OoOaMOT//29X9/G+fsZ00F9gV3/6f
Puf3f/+ub/91Ct/9t0hYT3oY6Kec/29S9OK/Stan/8aRy0g3AAQMkk78l037+l83eB55BoCAfurl/xq+
08g3AARUPCZQZsBgBQwMANAUYJgEulBVAAAAAElFTkSuQmCC
</value>
</data>
<data name="bindingNavigatorMoveNextItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vAAADrwBlbxySQAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78
n73v1//OrX//u5VeJt2QyK5H/6ds+/W/ZOnf/wnT//63yT1LmiGBzQ//t659D9ZsXPLlv3T0tf/GkcuI
N8Sj6v7/krnv4JoVXXpIc4F96d3/gS3PyNMMAhZ5d/7bFFwhTzMIGGbdJl8zCOik3SBf81AEDAwAoH5f
oAc0QjgAAAAASUVORK5CYII=
</value>
</data>
<data name="bindingNavigatorMoveLastItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vAAADrwBlbxySQAAASxJREFUOE9jGFygcNbz/1AmBgDJNS14/j9z4mOcahhyZz77n9B9D6sCkNyqI+//
h7c/wG1AxpSn/+ft//0/oesOhiKQ3MJ9H/4HN1zDbUBCz5P/s/f9+t+59e9/t9LLKApBctO2vP/vX30B
twGRXY/+T9n263/J0r//E6b//W+TexauGCTXu/rDf6/SE7gNCGx++L917XuwZuOSL/+lo6/9N45cBtYA
kqub/+6/S/4B3AZ4VN3/XzL3HVyzoksPXDFILn/am//2GdtxG2Bfevd/YMszDM0gAJLLnvz6v0XCetwG
WOTd+W9TcAVDMwiA5FL7X8O9hBUYZt3GqhkEQHJhLS//6wbPw22ATtoNnJIgOb/qh/81fKfhNgAfcMq9
8l/FYwIYQ4UGBWBgAAC+0b+zuQxOnAAAAABJRU5ErkJggg==
</value>
</data>
<data name="toolStripButton1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG
YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9
0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw
bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc
VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9
c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32
Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo
mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+
kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D
TgDQASA1MVpwzwAAAABJRU5ErkJggg==
</value>
</data>
<data name="btEdit.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEvSURBVDhPpZI/S0JRGIed+i6Nbk0t0iCuSkuDi1MfIKfm
+gAOQktTQkMggYtRkwgidKmgyQwMCgqz0CivvvK8cK7neG4KdeHhHs45v+c9/xLyz08Ft713OQ+6SqXV
kfLlnXJw1lSK5VrERqGkMB4JCCLpvQ7lZfDlQJ+B4EnwI9nTkbYdAZMbjxOPq4eJPH1MvXC2sD8XsOzP
0bcX/C3MXEfAfmzBsnCnP10uWBWu3IS+gJOm0w5fHCZiw0aQzu3GC0xYgm2R+poTRnh8HeqNOALu920w
9MK0F8NGkMrs+ALewqrwUXss3ed+vKB6H+rh2OT3SjpO0IBgcyvnCjgDBGCq8mcMiQ3FHAGdLB/J4vMF
KhoI83LXk6m5gCpmufbyOWlgv0BVIMx4JPj7JzIDGHRUPz2nxiQAAAAASUVORK5CYII=
</value>
</data>
<data name="btSave.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG
YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9
0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw
bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc
VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9
c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32
Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo
mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+
kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D
TgDQASA1MVpwzwAAAABJRU5ErkJggg==
</value>
</data>
<data name="btFind.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAE3SURBVDhPnZIxS8NQFEb7W/wLjh0Fl9a1SxBHBekkWFd1
qYg4Ci5dndSCg2AHl4LQSaRSKDqoFUE7VAjUmvTKueWmL2mw2gunL7zmO+/mJhmZoTJusdF868vpXUfO
b5/lpPEox9f3SvnsRtk8uojxHQ7HEgSEkXS6vrz3xqtdu+xdfUiheEBsJOGCk/mz/hROUHsIIrp+qIKY
hB/a9r+CVAG4Auj5g7iA5/1NACaptgIVLHkb0wWVw13ZL60p2+uerqkCJs1mMgwUU6d1k/xJwI10RZj1
9TPUN7Wam9dgTMC75QR7TjCBkRQs5Jd1jQS8c1ewtZLTPcQW/peADpC44cudgnjZOQ1OCGjTwkwaGBon
GoSrpcVIQqmAj6LZftFBup9vWiUlUQdIDCbsQrsGZRJKBbOXyA++SlEsu6QjvQAAAABJRU5ErkJggg==
</value>
</data>
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>396, 17</value>
</metadata>
<metadata name="dsPurchase.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="ta.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>195, 17</value>
</metadata>
<metadata name="tam.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>257, 17</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>65</value>
</metadata>
</root>

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,739 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using util = FCOMMON.Util;
using NetOffice;
using Outlook = NetOffice.OutlookApi;
using NetOffice.OutlookApi.Enums;
using FEQ0000.Purchase;
using FCOMMON;
using NetOffice.OfficeApi;
using System.Web.Services.Protocols;
using System.Diagnostics;
using FarPoint.Win.Spread.CellType;
using FCM0000;
using GrapeCity.Win.Spread.InputMan.CellType;
using FarPoint.Win.Spread;
using System.Globalization;
using static System.Windows.Forms.AxHost;
namespace FEQ0000
{
public partial class fPurchaseConfirm : FCOMMON.fBase
{
string fn_fpcolsize = "";
public fPurchaseConfirm()
{
InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
Properties.Settings.Default["EEEntities"] = FCOMMON.info.CS;
fn_fpcolsize = util.MakeFilePath(util.CurrentPath, "formSetting", "fp_" + this.Name + ".ini");
this.FormClosing += FPurchase_FormClosing;
this.FormClosed += __Closed;
this.KeyPreview = true;
this.KeyDown += FPurchaseConfirm_KeyDown;
}
private void FPurchaseConfirm_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.F5) btReject.PerformClick();
else if (e.KeyCode == Keys.F8) btConfirm.PerformClick();
}
private void FPurchase_FormClosing(object sender, FormClosingEventArgs e)
{
if (dsPurchase.HasChanges())
{
var dlg = FCOMMON.Util.MsgQ("변경된 자료가 있습니다. 화면을 닫을까요? 닫으면 변경된 자료는 손실 됩니다");
if (dlg != DialogResult.Yes)
{
e.Cancel = true;
return;
}
}
}
void dtSD_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode != Keys.Enter) return;
var tb = sender as ToolStripTextBox;
var input = tb.Text.Trim();
if (input == "") tb.Text = DateTime.Now.ToShortDateString();
else
{
string dt = string.Empty;
if (!util.MakeDateString(input, out dt))
{
FCOMMON.Util.MsgE("입력값이 올바르지 않습니다.");
tb.SelectAll();
tb.Focus();
return;
}
else
{
tb.Text = dt;
}
}
}
void __Closed(object sender, FormClosedEventArgs e)
{
}
private void __Load(object sender, EventArgs e)
{
//일반사용자의경우에는 상태를 변경하지 못한다.
int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.purchase));
IsAdmin = curLevel >= 5;
if (curLevel >= 5)
{
btConfirm.Visible = true;
}
else
{
btConfirm.Visible = false;
}
toolStripButton5.Visible = btConfirm.Visible;
//if (curLevel < 5)
//{
// 집계표ToolStripMenuItem.Visible = false;
//}
refreshData();
}
bool IsAdmin = false;
private void refreshData()
{
try
{
taNR.FillByApprov(this.dsPurchase.Purchase, FCOMMON.info.Login.gcode);
taCR.FillByApprov(this.dsPurchase.EETGW_PurchaseCR, FCOMMON.info.Login.gcode);
taEB.FillByApprov(this.dsPurchase.EETGW_PurchaseEB, FCOMMON.info.Login.gcode);
showSummary();
dvCR.AutoResizeColumns();
dvNR.AutoResizeColumns();
dvEB.AutoResizeColumns();
CellFormmatting(dvEB);
CellFormmatting(dvNR);
CellFormmatting(dvCR);
}
catch (System.Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message);
}
FormattingData();
}
void FormattingData()
{
////삭제컬럼인덱스
//this.fpSpread1.SuspendLayout();
//var delindex = this.fpSpread1.ActiveSheet.Columns["isdel"].Index;
//var statindex = this.fpSpread1.ActiveSheet.Columns["state"].Index;
//var crcfindex = this.fpSpread1.ActiveSheet.Columns["crcf"].Index;
//var prjindex = this.fpSpread1.ActiveSheet.Columns["projectidx"].Index;
//for (int i = 0; i < this.fpSpread1.ActiveSheet.Rows.Count; i++)
//{
// var state = this.fpSpread1.ActiveSheet.GetValue(i, statindex);
// string stateStr = string.Empty;
// if (state != null) stateStr = state.ToString();
// var value = this.fpSpread1.ActiveSheet.GetValue(i, delindex);
// var crcf = this.fpSpread1.ActiveSheet.GetValue(i, crcfindex);
// var str_crcf = string.Empty;
// if (crcf != null) str_crcf = crcf.ToString();
// if (value != null && (Boolean)value)
// {
// this.fpSpread1.ActiveSheet.Rows[i].BackColor = Color.Red;
// this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.White;
// }
// else
// {
// //crcf 에 따라서 배경색 변경
// if (str_crcf != "")
// this.fpSpread1.ActiveSheet.Rows[i].BackColor = Color.FromArgb(50, Color.PowderBlue);
// else
// this.fpSpread1.ActiveSheet.Rows[i].BackColor = Color.White;
// switch (stateStr.ToLower())
// {
// case "cancled":
// this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Red;
// break;
// case "rejected":
// this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Tomato;
// break;
// case "spr":
// this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Magenta;
// break;
// case "---":
// case "----":
// this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Blue;
// break;
// case "received":
// this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Gray;
// break;
// case "hold":
// this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.HotPink;
// break;
// default:
// this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Black;
// break;
// }
// }
// //프로젝트가 걸린데이터는 글자를 bold체로 변경한다.
// var prjdata = this.fpSpread1.ActiveSheet.GetValue(i, prjindex);
// if (prjdata != null)
// {
// var pidx = (int)this.fpSpread1.ActiveSheet.GetValue(i, prjindex);
// if (pidx == -1) //프로젝트가 없다
// {
// this.fpSpread1.ActiveSheet.Rows[i].Font = fBase;
// }
// else
// {
// this.fpSpread1.ActiveSheet.Rows[i].Font = fBold;
// }
// }
// else this.fpSpread1.ActiveSheet.Rows[i].Font = fBold;
//}
//this.fpSpread1.ResumeLayout();
}
private void saveData(Boolean prompt)
{
this.Validate();
this.bsNR.EndEdit();
this.bsCR.EndEdit();
this.bsEB.EndEdit();
try
{
var cnt = this.tam.UpdateAll(this.dsPurchase);
if (prompt) FCOMMON.Util.MsgI(string.Format("{0}건의 자료가 저장 되었습니다.", cnt));
}
catch (Exception ex)
{
FCOMMON.Util.MsgE("저장 실패\n" + ex.Message);
}
}
void showSummary()
{
var sumNR = this.dsPurchase.Purchase.Sum(t => t.pumamt);
var sumCR = this.dsPurchase.EETGW_PurchaseCR.Sum(t => t.pumamt);
var sumEB = this.dsPurchase.EETGW_PurchaseEB.Sum(t => t.pumamt);
//foreach (dsPurchase.PurchaseRow dr in this.dsPurchase.Purchase.Rows)
//if (!dr.IspumamtNull()) sum += dr.pumamt;
lbSumNR.Text = sumNR.ToString("N0");
lbSumCR.Text = sumCR.ToString("N0");
lbSumEB.Text = sumEB.ToString("N0");
tabControl1.TabPages[0].Text = $"일반구매({dsPurchase.Purchase.Rows.Count})";
tabControl1.TabPages[1].Text = $"CR구매({dsPurchase.EETGW_PurchaseCR.Rows.Count})";
tabControl1.TabPages[2].Text = $"전자실구매({dsPurchase.EETGW_PurchaseEB.Rows.Count})";
}
private void btSave_Click(object sender, EventArgs e)
{
func_confirm(true);
}
private bool getAdminInput
{
get
{
return FCOMMON.Util.getBit(
FCOMMON.info.Login.gpermission,
(int)FCOMMON.eGroupPermission.purchase_adv);
}
}
void func_confirm(bool value)
{
var state = value ? "2" : "3";
if (tabControl1.SelectedIndex == 0)
{
var dr = this.bsNR.Current as DataRowView;
dr["conf_status"] = state;
dr.EndEdit();
if (bsNR.Position < bsNR.Count) bsNR.Position += 1;
CellFormmatting(dvNR);
}
else if (tabControl1.SelectedIndex == 1)
{
var dr = this.bsCR.Current as DataRowView;
dr["conf_status"] = state;
dr.EndEdit();
if (bsCR.Position < bsCR.Count) bsCR.Position += 1;
CellFormmatting(dvCR);
}
else if (tabControl1.SelectedIndex == 2)
{
var dr = this.bsEB.Current as DataRowView;
dr["conf_status"] = state;
dr.EndEdit();
if (bsEB.Position < bsEB.Count) bsEB.Position += 1;
CellFormmatting(dvEB);
}
}
void CellFormmatting(DataGridView dv)
{
foreach(DataGridViewRow drow in dv.Rows)
{
var dr = drow.DataBoundItem as DataRowView;
var status = dr["conf_status"]?.ToString() ?? "0";
if (status == "1") drow.DefaultCellStyle.BackColor = Color.White; //신청
else if (status == "2") drow.DefaultCellStyle.BackColor = Color.Lime; //ok
else if (status == "3") drow.DefaultCellStyle.BackColor = Color.Tomato; //ng
else drow.DefaultCellStyle.BackColor = Color.DimGray; //etc
}
dv.Invalidate();
}
private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e)
{
func_confirm(false);
}
void func_add()
{
var newdr = this.dsPurchase.Purchase.NewPurchaseRow();
if (FCOMMON.info.Login.no == "dev")
newdr.request = "395552";//string.Format("[{0}] {1}", "395552", "김치균");
else
newdr.request = FCOMMON.info.Login.no;
var t1 = DBM.getCodeList("65");
var t2 = DBM.getCodeList("66");
if (t1.Count == 1)
newdr.purchase_manager = t1.First().Value;
if (t2.Count == 1)
newdr.purchase_admin = t2.First().Value;
repeat:
bool repeat = false;
DialogResult dlg;
if (getAdminInput == false)
{
repeat = false;
var f = new fPurchase_AddS(newdr);
dlg = f.ShowDialog();
}
else
{
var f = new fPurchase_Add(newdr);
dlg = f.ShowDialog();
repeat = f.repeatAdd;
}
if (dlg == System.Windows.Forms.DialogResult.OK)
{
//존재하지 않는 sid 는 추가를 해준다.
var newidx = AddItemInfoGetIndex(newdr);
if (newidx != -1)
{
newdr.pumidx = newidx;
newdr.EndEdit();
}
this.dsPurchase.Purchase.AddPurchaseRow(newdr);
int cnt = this.taNR.Update(newdr);
if (cnt == 1)
{
if (repeat)
{
FCOMMON.Util.MsgI("저장 완료\n\n연속 저장 모드이므로 직전에 입력된 자료가 자동으로 설정 됩니다.");
}
else FCOMMON.Util.MsgI("저장 완료");
}
else
{
FCOMMON.Util.MsgE("저장 실패\n\n다시 시도하시고 증상이 반복되면 chikyun.kim@amkor.co.kr 로 문의 주십시요");
}
newdr.AcceptChanges();
if (repeat)
{
var newdro = this.dsPurchase.Purchase.NewPurchaseRow();
FCOMMON.Util.CopyData(newdr, newdro);
newdro.idx = -1;
newdro.wdate = DateTime.Now;
newdr = newdro; //change
goto repeat;
}
else refreshData(); //181210
}
else newdr.Delete();
}
void func_delete()
{
var drv = bsNR.Current as DataRowView;
if (drv == null) return;
int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.purchase));
var dr = drv.Row as dsPurchase.PurchaseRow;
if (dr.sc != "")
{
if (curLevel < 5)
{
FCOMMON.Util.MsgE("일반 사용자는 SC값이 있는 자료를 삭제할 수 없습니다.");
return;
}
}
if (dr.request != FCOMMON.info.Login.no)
{
if (curLevel < 5)
{
FCOMMON.Util.MsgE("일반 사용자는 타인의 자료를 삭제할 수 없습니다.");
return;
}
}
if (curLevel < 5)
{
var dlg = FCOMMON.Util.MsgQ("현재 선택된 자료를 삭제하시겠습니까?");
if (dlg != System.Windows.Forms.DialogResult.Yes) return;
}
else
{
var dlg = FCOMMON.Util.MsgQ("현재 선택된 자료를 삭제하시겠습니까?\n저장 버튼을 눌러야 최종 삭제 됩니다");
if (dlg != System.Windows.Forms.DialogResult.Yes) return;
}
bsNR.RemoveCurrent();
//일반사용자는 데이터를 바로 삭제한다.
if (curLevel < 5)
{
try
{
int cnt = taNR.Update(this.dsPurchase);
if (cnt != 1)
FCOMMON.Util.MsgE(cnt.ToString() + "건의 자료가 삭제되었습니다.");
}
catch (Exception ex)
{
FCOMMON.Util.MsgE("delete error\n" + ex.Message);
}
}
}
private int AddItemInfoGetIndex(dsPurchase.PurchaseRow newdr)
{
//이 시드가 아이템목록에 없다면 추가 하고 idx를 조회한 후 설정해준다.
if (newdr.sid == "신규") return -1;
int retval = -1;
var sid = newdr.sid;
var iteminfo = FCOMMON.DBM.getItemInfo(sid);
if (iteminfo.idx < 0)
{
FCOMMON.DBM.sItemInfo newitem = new FCOMMON.DBM.sItemInfo();
newitem.sid = newdr.sid;
newitem.name = newdr.pumname;
newitem.price = newdr.pumprice.ToString();
newitem.model = newdr.pumscale;
newitem.unit = newdr.pumunit;
newitem.scale = 1f;
newitem.supply = newdr.supply;
newitem.supplyidx = newdr.supplyidx;
retval = FCOMMON.DBM.addItemInfo(newitem);
}
return retval;
}
private void copyDataToolStripMenuItem_Click(object sender, EventArgs e)
{
}
void Func_Edit()
{
var drv = this.bsNR.Current as DataRowView;
if (drv == null) return;
var newdr = drv.Row as dsPurchase.PurchaseRow;
bool repeat = false;
DialogResult dlg;
if (getAdminInput == false)
{
repeat = false;
var f = new fPurchase_AddS(newdr);
dlg = f.ShowDialog();
}
else
{
var f = new fPurchase_Add(newdr);
dlg = f.ShowDialog();
repeat = f.repeatAdd;
}
if (dlg == System.Windows.Forms.DialogResult.OK)
{
//존재하지 않는 sid 는 추가를 해준다.
var newidx = AddItemInfoGetIndex(newdr);
if (newidx != -1)
{
newdr.pumidx = newidx;
newdr.EndEdit();
}
if (newdr.RowState != DataRowState.Unchanged)
{
this.taNR.Update(newdr);
newdr.AcceptChanges();
}
}
else newdr.RejectChanges();
}
void func_copy()
{
var drv = this.bsNR.Current as DataRowView;
if (drv == null) return;
var dr = drv.Row as dsPurchase.PurchaseRow;
//현재 데이터를 입력하여 신규 추가를 한다.
var newdr = this.dsPurchase.Purchase.NewPurchaseRow();
FCOMMON.Util.CopyData((System.Data.DataRow)dr, (System.Data.DataRow)newdr);
newdr.orderno = string.Empty; //CR값 복사 안하게 210823
newdr.pdate = DateTime.Now.ToShortDateString();
newdr.wdate = DateTime.Now;
newdr.wuid = FCOMMON.info.Login.no;
newdr.state = "---";
if (newdr.sid.Length != 9 && newdr.sid.StartsWith("10") == false)
newdr.sid = string.Empty;
newdr.bigo = string.Empty;
newdr.bigo2 = string.Empty;
newdr.purchase_manager = string.Empty;
newdr.request = FCOMMON.info.Login.no;
newdr.receive = "";// FCOMMON.info.Login.nameK;
newdr.sc = string.Empty;
newdr.po = string.Empty;
newdr.indate = string.Empty;
newdr.edate = string.Empty;
newdr.pumqty = 0; //실구매수량은 제거
newdr.idx = -1;
newdr.EndEdit();
repeat:
bool repeat = false;
DialogResult dlg;
if (getAdminInput == false)
{
var f = new fPurchase_AddS(newdr);
dlg = f.ShowDialog();
}
else
{
var f = new fPurchase_Add(newdr);
dlg = f.ShowDialog();
repeat = f.repeatAdd;
}
if (dlg == System.Windows.Forms.DialogResult.OK)
{
//존재하지 않는 sid 는 추가를 해준다.
var newidx = AddItemInfoGetIndex(newdr);
if (newidx != -1)
{
newdr.pumidx = newidx;
newdr.EndEdit();
}
this.dsPurchase.Purchase.AddPurchaseRow(newdr);
this.taNR.Update(newdr);
newdr.AcceptChanges();
if (repeat)
{
var newdro = this.dsPurchase.Purchase.NewPurchaseRow();
FCOMMON.Util.CopyData(newdr, newdro);
newdro.idx = -1;
newdro.wdate = DateTime.Now;
newdr = newdro; //change
goto repeat;
}
}
else newdr.Delete();
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
Purchase.rPurchaseNR f = new Purchase.rPurchaseNR();
f.MdiParent = this.MdiParent;
f.Show();
}
private void bs_CurrentChanged(object sender, EventArgs e)
{
var drv = this.bsNR.Current as DataRowView;
}
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)
{
var db = new DataClasses1DataContext();
List<string> retval = new List<string>();
foreach (var id in userid)
{
UInt32 userno;
if (UInt32.TryParse(id, out userno) == true)
{
var user = db.Users.Where(t => t.id == id).FirstOrDefault();
if (user != null)
{
var data = string.Format("{0}<{1}>", user.name, user.email);
if (retval.Contains(data) == false)
retval.Add(data);
}
}
else
{
if (retval.Contains(id) == false)
retval.Add(id);
}
}
return retval;
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
//구매승인양식
var f = new fPurchaseNRList(this.dsPurchase.Purchase);
f.Show();
}
void func_ipgo()
{
var drv = this.bsNR.Current as DataRowView;
var dr = drv.Row as dsPurchase.PurchaseRow;
int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.purchase));
if (curLevel < 5) //일반사용자 입고 여부
{
if (dr.state != "PO" && dr.state != "PR")
{
FCOMMON.Util.MsgE("PR/PO 상태의 자료만 입고처리가 가능 합니다");
return;
}
//if (dr.request != FCOMMON.info.Login.no)
//{
// FCOMMON.Util.MsgE("타인의 자료는 입고 처리할 수 없습니다");
// return;
//}
}
var f = new FEQ0000.Purchase.fPurchaseNR_Ipgo(dr.idx, string.Empty);
if (f.ShowDialog() == DialogResult.OK)
{
refreshData();
}
}
private void toolStripButton5_Click_1(object sender, EventArgs e)
{
//state 가 ---인 데이터를 기준으로 함
//chk2 ==false 인 자료를 기준으로 함
var newlist = this.dsPurchase.Purchase.Where(t => (t.Ischk2Null() || t.chk2 == false) && t.state.Equals("---")).ToList();
if (newlist.Any() == false)
{
FCOMMON.Util.MsgE($"신규 신청 데이터가 없습니다");
return;
}
var f = new fSIDCheckNR(newlist);
if (f.ShowDialog() == DialogResult.OK)
{
var cnt = 0;
foreach (var idx in f.chklist)
{
var dr = newlist.Where(t => t.idx == idx).FirstOrDefault();
if (dr != null)
{
cnt += 1;
dr.chk2 = true;
if (dr.IspumqtyNull() || dr.pumqty == 0) dr.pumqty = dr.pumqtyReq;
dr.EndEdit();
}
}
FCOMMON.Util.MsgI($"{cnt}건의 자료가 [구매담당확인] 되었습니다\n저장을 눌러야 최종 적용 됩니다");
}
}
private void toolStripButton2_Click_2(object sender, EventArgs e)
{
//save
saveData(true);
}
private void toolStripButton3_Click(object sender, EventArgs e)
{
this.Close();
}
private void toolStripButton4_Click(object sender, EventArgs e)
{
refreshData();
}
}
}

View File

@@ -0,0 +1,286 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="dsPurchase.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="bsNR.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>131, 17</value>
</metadata>
<metadata name="taNR.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>212, 17</value>
</metadata>
<metadata name="tam.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>291, 17</value>
</metadata>
<metadata name="taCR.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>616, 17</value>
</metadata>
<metadata name="taEB.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>772, 17</value>
</metadata>
<metadata name="bn.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>364, 17</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="bindingNavigatorMoveFirstItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vAAADrwBlbxySQAAASpJREFUOE9jGDygcNbz/00Lnv/PnPj4P1QIA4S3P8Apx5A789n/VUfe/8elKL77
wf/ghmu4DciY8vT/wn0fsCqK73n4f+n+///9qy/gNiCh58n/aVveYyiKaL8P1pw56/9/r9ITuA2I7Hr0
v3f1BxRFoa33wJpb1wFt7/z73yX/AG4DApsf/q+b/w6uKLjl7v9Fe///7wBqzpjz879d3c//9hnbcRvg
UXX/f/60NyiK7Ipv/0+f8/u/f9e3/zqF7/5bJKzHbYB96d3/2ZNfYyjSTzn/36ToxX+VrE//jSOX4TbA
Iu/O/9T+11gVGSSd+C+b9vW/bvA83AYYZt3+H9byEqci/dTL/zV8p+E2QCftxn+/6od4Fal4TMBtgFPu
lf8gBXgVDULAwAAA8HbAq6XlmnAAAAAASUVORK5CYII=
</value>
</data>
<data name="bindingNavigatorMovePreviousItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vAAADrwBlbxySQAAALZJREFUOE9jGDogvP3BfyiTdBDf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w
5sxZ//97lZ4gzYDQ1ntgza3rgLZ3/v3vkn+AeAOCW+7+X7T3//8OoOaMOT//29X9/G+fsZ00F9gV3/6f
Puf3f/+ub/91Ct/9t0hYT3oY6Kec/29S9OK/Stan/8aRy0g3AAQMkk78l037+l83eB55BoCAfurl/xq+
08g3AARUPCZQZsBgBQwMANAUYJgEulBVAAAAAElFTkSuQmCC
</value>
</data>
<data name="bindingNavigatorMoveNextItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vAAADrwBlbxySQAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78
n73v1//OrX//u5VeJt2QyK5H/6ds+/W/ZOnf/wnT//63yT1LmiGBzQ//t659D9ZsXPLlv3T0tf/GkcuI
N8Sj6v7/krnv4JoVXXpIc4F96d3/gS3PyNMMAhZ5d/7bFFwhTzMIGGbdJl8zCOik3SBf81AEDAwAoH5f
oAc0QjgAAAAASUVORK5CYII=
</value>
</data>
<data name="bindingNavigatorMoveLastItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vAAADrwBlbxySQAAASxJREFUOE9jGFygcNbz/1AmBgDJNS14/j9z4mOcahhyZz77n9B9D6sCkNyqI+//
h7c/wG1AxpSn/+ft//0/oesOhiKQ3MJ9H/4HN1zDbUBCz5P/s/f9+t+59e9/t9LLKApBctO2vP/vX30B
twGRXY/+T9n263/J0r//E6b//W+TexauGCTXu/rDf6/SE7gNCGx++L917XuwZuOSL/+lo6/9N45cBtYA
kqub/+6/S/4B3AZ4VN3/XzL3HVyzoksPXDFILn/am//2GdtxG2Bfevd/YMszDM0gAJLLnvz6v0XCetwG
WOTd+W9TcAVDMwiA5FL7X8O9hBUYZt3GqhkEQHJhLS//6wbPw22ATtoNnJIgOb/qh/81fKfhNgAfcMq9
8l/FYwIYQ4UGBWBgAAC+0b+zuQxOnAAAAABJRU5ErkJggg==
</value>
</data>
<data name="btReject.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vAAADrwBlbxySQAAAW9JREFUOE+1kE0ow2Ecx3dV3krt4oJaOSCTvIRkMqSxyITIzCQHDouEdnFwIOVC
DrhIDiQl5UTiNG/z2ppafy1S2gX/uDwfY6i1v7Hie3nqeb7fz+/7/FR/Ilwn0G0Exw4fV5GJlXlEZxXC
rIet9bAQvB5Ymgn2sLYAvSZEux7RUQFzE4qQt4bCXAYjPaHvnDoCkLpsRGMB2JqCTGLIijDlwqQ9bEMV
i9OIytR3EMNWcJ/BWH8A6j8/bOGFxwXNxYEvGbMQ9XnQ1/K78KfY3/VXzkMY0qFGG2H4RoLGQshJQNbG
86CNhdrsX9a/uQZTPhQl4rMY4OLofbl3aX7I8uwPC7y/g1YdjyVJuEvT8e1tfwUYteHUxCCfHChDeHmG
QQvokjlOU+PbWA0x3pZnILVVI3uvQyHsbiLnqnGmRCF1NYD8pDhpRxOH7HQoAKZGkFKjceszQbpSrumX
bO+G80MFwKUTxgfgcO/b8D9IpXoFiiMDHIQm0skAAAAASUVORK5CYII=
</value>
</data>
<data name="btConfirm.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAFNSURBVDhPhZKvSwRRFIXnn7BYLBsE2aZB2GAQDcqCBkVw
MYhJLK7BokWTLJiMFi3aBIuIGPwRloXVRVE2rKhBEEQE/4Cr3+Xdx5sZxzlwYOfO/c68d9goS5KQG+fL
7cv4QdF7eKfXTXOCWDDo6fvRu/11qyEW5NbjMtigs7dD2X6uyFZnRo5eduXusy7Nj0spbRTSISHMEqDB
eLM9Jautshy/7sn1+4n0V3viIWGAwRaAgPFSYzQdwA9g7smx7av2ZdNifURdu6/qXt9ct841gHIIAAih
pOavhqRyUfo7gJLWHybVWQKePh/ULmIBNEt5+52aLN+MeXNnk8ErjVkNKJS7dO57IISCgOy+HBkZPHE6
kIYRDzRLAKewuxpoMAXyn0gFIAuhILzWXFAIc2zATNjEC8rBHBWH4L+wSTd+ZUAIIreWL7fv5cYJRdEP
Fas4M5JsXd4AAAAASUVORK5CYII=
</value>
</data>
<data name="toolStripButton1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAANISURBVDhPtZBdTFN3GIdJvFu4ULMSFIiZW0JCci5EF4hU
OsZHZoEYslIgFMs6LUioQIsBZHCoKwo1ZVBqaR1DsFIrjiBoZwWDURNGsWvnGSNQoSsg/bBWqodtkhB/
I7XLZvTW5/Z9n+ef/xv2f1TTZPgZa10j+bN4ouZe2UbF7a83SoyFE0WDuQ25AwNbhCMrH4RW30ZBNbCa
LTWOm/M3MOq8DePiLTx4YoXeeglf6tjqiv7FY6U9846vtHZWSPkPue1kjuH3Xow5R9Frv4xKawMkv5AY
nLuG7D62P69X83FpzyN/zz0fJBcXwJHbckLq5svT5PZT5mp6fHEcrdMqCKaOo9h8HF0zPVDf7USGOuXY
kW6Huu2GG8bfaGjGvGA3memMqontwQA5KZEZ7ddxfvYi+FMi5E8IccLSBJ1VhwzlAVuxZib+MDm9MfLw
BRS3fBgwB1DZPYsD5WOyYODE3RKb6Y9RiCwnUbApCyfF0NkNEBlKkdSSwCxUztxvM7rwoyWAKv0KZMNe
tAwtI14wbAsGykzF68POn1BhqUcrpcSVuUGcNbVi/7ef/lDYMcvNIB/+dWVyFRK9CyXfL0GoWcJ3192I
410NBANFQ9zApGcKV+eGoLqjBOv0fn+idF/jiJj8UFV9ITKTNFOdN92o0btR1O4Er82BlkEXdrEv0MEA
tz/b1nmnHZ93sp4kyxPEJnFezEs+v/7vbK6fPniISKm+T5299hii7mVwmhdQol6CqMuO3Vldr7+QqUmT
pHYwhbaqw1HrR48q1ng8mm78Bmv5BaCTU4mkchMlNSziiNKJrLo5yAxusCvHEZXe/vqIqK3d9rK8TOsV
CNbXmmVYNejg7+/F86xDoOMTiX2CEaquz4HCVgfIzTvwzvyK6HQ5HclsZgQDr0QixhqfT7/QnsOzgX64
pPXwne/C6mdp8McSRFzeZapS+wjkJRfymh5gT64ekcwWTlD+lz9zOBxaIMAzsgE+rQreDgWeJiTBEx1L
fJLTRwnaZpAqNGFnisLBYJ7+IqS9SSApOf15fKLDx82HW1QOL7EXnohoYlemmopJazfvSJFLGSwyPLT+
brxxceG+j2Kl3h27zR5GDDxbI4jQ6H0RFvYPxczhJbhCpsgAAAAASUVORK5CYII=
</value>
</data>
<data name="toolStripButton5.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG
YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9
0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw
bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc
VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9
c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32
Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo
mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+
kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D
TgDQASA1MVpwzwAAAABJRU5ErkJggg==
</value>
</data>
<data name="toolStripButton2.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAE1SURBVDhPY/hPIQAbcOn57//T915BwW1rjoFx/oJz//N6
VqHgsNxeMA03YN3lp/9vv4YYhAtsuQ6h55/9A8aBidVgPtiADZcegzWDFN1/9///qy8IDOKDcPfu1/9/
/vn/v3rt/f9TD38BuwJuwIrT9wka0L79BdiAkuW3MA0A+fnog///V12GKAZ5BxcGGQByDYoXYAbA/Aey
AYRBCkE2N256AnY6SDMoUEF8FANAoQ0zAFkzCCNrhhkAor3CczENwGYzuu1JM8+BaQwDQAGITzOyASDs
4huPMAAkATIA3c/YNIdNPAHGKAaAUhUoBghphhng0rTnv71bGKoBoADE5mR0zVgNACUK9BgAGYbudJBG
GNY0dEYYAMsgMAyKYxAGhTQIg/wLwiBbQRikGSUdkA/+/wcAgXJEf04PwQkAAAAASUVORK5CYII=
</value>
</data>
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>430, 17</value>
</metadata>
<data name="toolStripButton3.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEPSURBVDhPrZI9CsJAFIRzDi9gaStYCCm8gCgIYgoRISA2
gj+9lXYieAJP4CXSC6YSbEQQCxsrk6fzcGI02dg4MMVu3vdlw8b6jmTkNWIOhiaViqzm86iLXk+L/UwJ
Hs6aTQl9X8TztOF6LfflMuq0UEiXxOHLcKg9DwbaU7+vPbquyGiUlGDRte2fMHpot1XSyOXeEgpum00E
IoT9UknXgClwi0XdSwgIoQhhQBSEz5MYBTwqmgbvWy0VGD+B3xmHEYBspoBv0jxhQshPAe55V6sZ69fr
sq1WkwIEC6dc1ivkYFoBj/P5T5iJS4JOR66O81HsEQ6CIClA8BBXhL8NwyzWPLYRZnTKkNfIP2NZD+oj
J+O97B4lAAAAAElFTkSuQmCC
</value>
</data>
<data name="toolStripButton4.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAE4SURBVDhPtZPPasJAEMbzPn0FwWA92JtP4NGKB1/DP7ei
QSsovkChh7ZBrCfpyR4sikopUgq9StFzM/UbZ5asSS4FfzAkO7vft5udiZMEnSBpk5dhFJmncjdHxXaG
A+9K4SbFT1luEwQBbXavVO5d0nI3ovnW5yeiMriiu+kt5asXbABEdgRigAUQDr+aHLU3lxoLl/yPJhvF
GsiYJ/vPdX5qPK3bVJ25VFukafztGQNsKHJ791I3w+8KcpNth8XDz5YxACI/gsR1J8sTYcO4UIzwv1gG
cTshgJ5IT8hChTMHsHi+v+fvffmxywVwN2FDkdsGEOK2ceu4feQ0tDqKyKMGqDfqjvprLzyswuX7Tf4E
dBo6zn/3OB7XHovRyuhQ6+hhYKA9DpL+A1keRebNAhkaJH0OHOcP031C4EjYr6wAAAAASUVORK5CYII=
</value>
</data>
<metadata name="bsCR.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>536, 17</value>
</metadata>
<metadata name="bsEB.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>694, 17</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>65</value>
</metadata>
</root>

View File

@@ -30,29 +30,29 @@
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fProjectListUser));
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.NumberCellType numberCellType1 = new FarPoint.Win.Spread.CellType.NumberCellType();
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.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.NumberCellType numberCellType7 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType8 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType9 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType10 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType11 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType12 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType13 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType14 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType15 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType16 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType17 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType18 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType19 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType20 = new FarPoint.Win.Spread.CellType.NumberCellType();
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.NumberCellType numberCellType21 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType22 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType23 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType24 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType25 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType26 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType27 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType28 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType29 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType30 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType31 = new FarPoint.Win.Spread.CellType.NumberCellType();
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.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.NumberCellType numberCellType37 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType38 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType39 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType40 = new FarPoint.Win.Spread.CellType.NumberCellType();
this.bs = new System.Windows.Forms.BindingSource(this.components);
this.dsMSSQL = new FPJ0000.dsPRJ();
this.cm = new System.Windows.Forms.ContextMenuStrip(this.components);
@@ -78,7 +78,6 @@
this.taHistD = new FPJ0000.dsPRJTableAdapters.EETGW_ProjecthistoryDTableAdapter();
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.fpSpread1 = new FarPoint.Win.Spread.FpSpread();
this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
this.bsUser = new System.Windows.Forms.BindingSource(this.components);
this.dSProjectSummary = new FPJ0000.Project.DSProjectSummary();
this.projectsTableAdapter = new FPJ0000.Project.DSProjectSummaryTableAdapters.ProjectsTableAdapter();
@@ -95,6 +94,7 @@
this.bindingNavigatorMoveLastItem1 = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorSeparator5 = new System.Windows.Forms.ToolStripSeparator();
this.panel2 = new System.Windows.Forms.Panel();
this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit();
this.cm.SuspendLayout();
@@ -102,12 +102,12 @@
((System.ComponentModel.ISupportInitialize)(this.bsHistD)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bsHist)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bsUser)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dSProjectSummary)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bindingNavigator1)).BeginInit();
this.bindingNavigator1.SuspendLayout();
this.panel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).BeginInit();
this.SuspendLayout();
//
// bs
@@ -129,7 +129,7 @@
this.toolStripMenuItem2,
this.ToolStripMenuItem});
this.cm.Name = "contextMenuStrip1";
this.cm.Size = new System.Drawing.Size(241, 104);
this.cm.Size = new System.Drawing.Size(241, 82);
//
// columnSizeToolStripMenuItem
//
@@ -260,7 +260,7 @@
// btClose
//
this.btClose.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.btClose.Image = ((System.Drawing.Image)(resources.GetObject("btClose.Image")));
this.btClose.Image = global::FPJ0000.Properties.Resources.action_stop;
this.btClose.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btClose.Name = "btClose";
this.btClose.Size = new System.Drawing.Size(67, 42);
@@ -270,7 +270,7 @@
// btSearch
//
this.btSearch.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.btSearch.Image = ((System.Drawing.Image)(resources.GetObject("btSearch.Image")));
this.btSearch.Image = global::FPJ0000.Properties.Resources.action_refresh;
this.btSearch.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btSearch.Name = "btSearch";
this.btSearch.Size = new System.Drawing.Size(91, 42);
@@ -317,280 +317,6 @@
this.fpSpread1.TabIndex = 36;
this.fpSpread1.CellDoubleClick += new FarPoint.Win.Spread.CellClickEventHandler(this.fpSpread1_CellDoubleClick);
//
// fpSpread1_Sheet1
//
this.fpSpread1_Sheet1.Reset();
this.fpSpread1_Sheet1.SheetName = "Sheet1";
// Formulas and custom names must be loaded with R1C1 reference style
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.R1C1;
this.fpSpread1_Sheet1.ColumnCount = 23;
this.fpSpread1_Sheet1.ColumnHeader.RowCount = 2;
this.fpSpread1_Sheet1.ActiveColumnIndex = -1;
this.fpSpread1_Sheet1.ActiveRowIndex = -1;
this.fpSpread1_Sheet1.AutoGenerateColumns = false;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 0).ColumnSpan = 3;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 0).Value = "사용자";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 3).ColumnSpan = 5;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 3).Value = "프로젝트 수량";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 8).ColumnSpan = 13;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 8).Value = "완료 Plan (Due date)";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 21).RowSpan = 2;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 21).Value = "미등록";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 22).RowSpan = 2;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 22).Value = "기타";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 0).Value = "공정";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 1).Value = "성명";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 2).Value = "사원번호";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 3).Value = "전체";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 4).Value = "완료";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 5).Value = "진행";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 6).Value = "검토";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 7).Value = "보류\r\n대기";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 8).Value = "Jan";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 9).Value = "Feb";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 10).Value = "Mar";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 11).Value = "Apr";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 12).Value = "May";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 13).Value = "Jun";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 14).Value = "July";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 15).Value = "Aug";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 16).Value = "Sep";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 17).Value = "Oct";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 18).Value = "Nov";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 19).Value = "Dec";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 20).Value = "Next";
this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 42F;
this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(1).Height = 48F;
this.fpSpread1_Sheet1.Columns.Get(0).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(0).AllowAutoSort = true;
this.fpSpread1_Sheet1.Columns.Get(0).CellType = textCellType1;
this.fpSpread1_Sheet1.Columns.Get(0).DataField = "Process";
this.fpSpread1_Sheet1.Columns.Get(0).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(0).Label = "공정";
this.fpSpread1_Sheet1.Columns.Get(0).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(0).Width = 151F;
this.fpSpread1_Sheet1.Columns.Get(1).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(1).AllowAutoSort = true;
this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType2;
this.fpSpread1_Sheet1.Columns.Get(1).DataField = "UserName";
this.fpSpread1_Sheet1.Columns.Get(1).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(1).Label = "성명";
this.fpSpread1_Sheet1.Columns.Get(1).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(1).Width = 100F;
this.fpSpread1_Sheet1.Columns.Get(2).AllowAutoSort = true;
this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType3;
this.fpSpread1_Sheet1.Columns.Get(2).DataField = "UserID";
this.fpSpread1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(2).Label = "사원번호";
this.fpSpread1_Sheet1.Columns.Get(2).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(2).Width = 120F;
this.fpSpread1_Sheet1.Columns.Get(3).AllowAutoSort = true;
numberCellType1.DecimalPlaces = 0;
numberCellType1.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType1.MaximumValue = 2147483647D;
numberCellType1.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(3).CellType = numberCellType1;
this.fpSpread1_Sheet1.Columns.Get(3).DataField = "CntTotal";
this.fpSpread1_Sheet1.Columns.Get(3).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(3).Label = "전체";
this.fpSpread1_Sheet1.Columns.Get(3).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(3).Width = 50F;
this.fpSpread1_Sheet1.Columns.Get(4).AllowAutoSort = true;
numberCellType2.DecimalPlaces = 0;
numberCellType2.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType2.MaximumValue = 2147483647D;
numberCellType2.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(4).CellType = numberCellType2;
this.fpSpread1_Sheet1.Columns.Get(4).DataField = "CntComplete";
this.fpSpread1_Sheet1.Columns.Get(4).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(4).Label = "완료";
this.fpSpread1_Sheet1.Columns.Get(4).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(4).Width = 50F;
this.fpSpread1_Sheet1.Columns.Get(5).AllowAutoSort = true;
numberCellType3.DecimalPlaces = 0;
numberCellType3.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType3.MaximumValue = 2147483647D;
numberCellType3.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(5).CellType = numberCellType3;
this.fpSpread1_Sheet1.Columns.Get(5).DataField = "CntProgress";
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 = 50F;
this.fpSpread1_Sheet1.Columns.Get(6).AllowAutoSort = true;
numberCellType4.DecimalPlaces = 0;
numberCellType4.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType4.MaximumValue = 2147483647D;
numberCellType4.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(6).CellType = numberCellType4;
this.fpSpread1_Sheet1.Columns.Get(6).DataField = "CntCheck";
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 = 50F;
numberCellType5.DecimalPlaces = 0;
numberCellType5.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType5.MaximumValue = 2147483647D;
numberCellType5.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(7).CellType = numberCellType5;
this.fpSpread1_Sheet1.Columns.Get(7).DataField = "CntHold";
this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(7).Label = "보류\r\n대기";
this.fpSpread1_Sheet1.Columns.Get(7).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(7).Width = 50F;
numberCellType6.DecimalPlaces = 0;
numberCellType6.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType6.MaximumValue = 2147483647D;
numberCellType6.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(8).CellType = numberCellType6;
this.fpSpread1_Sheet1.Columns.Get(8).DataField = "Plan01";
this.fpSpread1_Sheet1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(8).Label = "Jan";
this.fpSpread1_Sheet1.Columns.Get(8).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(8).Width = 50F;
numberCellType7.DecimalPlaces = 0;
numberCellType7.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType7.MaximumValue = 2147483647D;
numberCellType7.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(9).CellType = numberCellType7;
this.fpSpread1_Sheet1.Columns.Get(9).DataField = "Plan02";
this.fpSpread1_Sheet1.Columns.Get(9).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(9).Label = "Feb";
this.fpSpread1_Sheet1.Columns.Get(9).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(9).Width = 50F;
numberCellType8.DecimalPlaces = 0;
numberCellType8.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType8.MaximumValue = 2147483647D;
numberCellType8.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(10).CellType = numberCellType8;
this.fpSpread1_Sheet1.Columns.Get(10).DataField = "Plan03";
this.fpSpread1_Sheet1.Columns.Get(10).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(10).Label = "Mar";
this.fpSpread1_Sheet1.Columns.Get(10).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(10).Width = 50F;
numberCellType9.DecimalPlaces = 0;
numberCellType9.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType9.MaximumValue = 2147483647D;
numberCellType9.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(11).CellType = numberCellType9;
this.fpSpread1_Sheet1.Columns.Get(11).DataField = "Plan04";
this.fpSpread1_Sheet1.Columns.Get(11).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(11).Label = "Apr";
this.fpSpread1_Sheet1.Columns.Get(11).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(11).Width = 50F;
numberCellType10.DecimalPlaces = 0;
numberCellType10.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType10.MaximumValue = 2147483647D;
numberCellType10.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(12).CellType = numberCellType10;
this.fpSpread1_Sheet1.Columns.Get(12).DataField = "Plan05";
this.fpSpread1_Sheet1.Columns.Get(12).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(12).Label = "May";
this.fpSpread1_Sheet1.Columns.Get(12).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(12).Width = 50F;
numberCellType11.DecimalPlaces = 0;
numberCellType11.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType11.MaximumValue = 2147483647D;
numberCellType11.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(13).CellType = numberCellType11;
this.fpSpread1_Sheet1.Columns.Get(13).DataField = "Plan06";
this.fpSpread1_Sheet1.Columns.Get(13).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(13).Label = "Jun";
this.fpSpread1_Sheet1.Columns.Get(13).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(13).Width = 50F;
numberCellType12.DecimalPlaces = 0;
numberCellType12.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType12.MaximumValue = 2147483647D;
numberCellType12.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(14).CellType = numberCellType12;
this.fpSpread1_Sheet1.Columns.Get(14).DataField = "Plan07";
this.fpSpread1_Sheet1.Columns.Get(14).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(14).Label = "July";
this.fpSpread1_Sheet1.Columns.Get(14).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(14).Width = 50F;
numberCellType13.DecimalPlaces = 0;
numberCellType13.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType13.MaximumValue = 2147483647D;
numberCellType13.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(15).CellType = numberCellType13;
this.fpSpread1_Sheet1.Columns.Get(15).DataField = "Plan08";
this.fpSpread1_Sheet1.Columns.Get(15).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(15).Label = "Aug";
this.fpSpread1_Sheet1.Columns.Get(15).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(15).Width = 50F;
numberCellType14.DecimalPlaces = 0;
numberCellType14.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType14.MaximumValue = 2147483647D;
numberCellType14.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(16).CellType = numberCellType14;
this.fpSpread1_Sheet1.Columns.Get(16).DataField = "Plan09";
this.fpSpread1_Sheet1.Columns.Get(16).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(16).Label = "Sep";
this.fpSpread1_Sheet1.Columns.Get(16).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(16).Width = 50F;
numberCellType15.DecimalPlaces = 0;
numberCellType15.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType15.MaximumValue = 2147483647D;
numberCellType15.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(17).CellType = numberCellType15;
this.fpSpread1_Sheet1.Columns.Get(17).DataField = "Plan10";
this.fpSpread1_Sheet1.Columns.Get(17).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(17).Label = "Oct";
this.fpSpread1_Sheet1.Columns.Get(17).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(17).Width = 50F;
numberCellType16.DecimalPlaces = 0;
numberCellType16.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType16.MaximumValue = 2147483647D;
numberCellType16.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(18).CellType = numberCellType16;
this.fpSpread1_Sheet1.Columns.Get(18).DataField = "Plan11";
this.fpSpread1_Sheet1.Columns.Get(18).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(18).Label = "Nov";
this.fpSpread1_Sheet1.Columns.Get(18).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(18).Width = 50F;
numberCellType17.DecimalPlaces = 0;
numberCellType17.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType17.MaximumValue = 2147483647D;
numberCellType17.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(19).CellType = numberCellType17;
this.fpSpread1_Sheet1.Columns.Get(19).DataField = "Plan12";
this.fpSpread1_Sheet1.Columns.Get(19).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(19).Label = "Dec";
this.fpSpread1_Sheet1.Columns.Get(19).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(19).Width = 50F;
numberCellType18.DecimalPlaces = 0;
numberCellType18.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType18.MaximumValue = 2147483647D;
numberCellType18.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(20).CellType = numberCellType18;
this.fpSpread1_Sheet1.Columns.Get(20).DataField = "PlanNext";
this.fpSpread1_Sheet1.Columns.Get(20).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(20).Label = "Next";
this.fpSpread1_Sheet1.Columns.Get(20).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(20).Width = 50F;
numberCellType19.DecimalPlaces = 0;
numberCellType19.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType19.MaximumValue = 2147483647D;
numberCellType19.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(21).CellType = numberCellType19;
this.fpSpread1_Sheet1.Columns.Get(21).DataField = "CntNone";
this.fpSpread1_Sheet1.Columns.Get(21).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(21).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(21).Width = 50F;
numberCellType20.DecimalPlaces = 0;
numberCellType20.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType20.MaximumValue = 2147483647D;
numberCellType20.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(22).CellType = numberCellType20;
this.fpSpread1_Sheet1.Columns.Get(22).DataField = "CntOther";
this.fpSpread1_Sheet1.Columns.Get(22).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(22).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(22).Width = 50F;
this.fpSpread1_Sheet1.DataAutoSizeColumns = false;
this.fpSpread1_Sheet1.DataSource = this.bsUser;
this.fpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false;
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1;
//
// bsUser
//
this.bsUser.DataMember = "ProjectCountForUser";
@@ -733,6 +459,280 @@
this.panel2.Size = new System.Drawing.Size(1339, 645);
this.panel2.TabIndex = 38;
//
// fpSpread1_Sheet1
//
this.fpSpread1_Sheet1.Reset();
this.fpSpread1_Sheet1.SheetName = "Sheet1";
// Formulas and custom names must be loaded with R1C1 reference style
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.R1C1;
this.fpSpread1_Sheet1.ColumnCount = 23;
this.fpSpread1_Sheet1.ColumnHeader.RowCount = 2;
this.fpSpread1_Sheet1.ActiveColumnIndex = -1;
this.fpSpread1_Sheet1.ActiveRowIndex = -1;
this.fpSpread1_Sheet1.AutoGenerateColumns = false;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 0).ColumnSpan = 3;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 0).Value = "사용자";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 3).ColumnSpan = 5;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 3).Value = "프로젝트 수량";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 8).ColumnSpan = 13;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 8).Value = "완료 Plan (Due date)";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 21).RowSpan = 2;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 21).Value = "미등록";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 22).RowSpan = 2;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 22).Value = "기타";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 0).Value = "공정";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 1).Value = "성명";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 2).Value = "사원번호";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 3).Value = "전체";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 4).Value = "완료";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 5).Value = "진행";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 6).Value = "검토";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 7).Value = "보류\r\n대기";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 8).Value = "Jan";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 9).Value = "Feb";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 10).Value = "Mar";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 11).Value = "Apr";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 12).Value = "May";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 13).Value = "Jun";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 14).Value = "July";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 15).Value = "Aug";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 16).Value = "Sep";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 17).Value = "Oct";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 18).Value = "Nov";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 19).Value = "Dec";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 20).Value = "Next";
this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 42F;
this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(1).Height = 48F;
this.fpSpread1_Sheet1.Columns.Get(0).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(0).CellType = textCellType4;
this.fpSpread1_Sheet1.Columns.Get(0).DataField = "Process";
this.fpSpread1_Sheet1.Columns.Get(0).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(0).Label = "공정";
this.fpSpread1_Sheet1.Columns.Get(0).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(0).Width = 151F;
this.fpSpread1_Sheet1.Columns.Get(1).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(1).AllowAutoSort = true;
this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType5;
this.fpSpread1_Sheet1.Columns.Get(1).DataField = "UserName";
this.fpSpread1_Sheet1.Columns.Get(1).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(1).Label = "성명";
this.fpSpread1_Sheet1.Columns.Get(1).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(1).Width = 100F;
this.fpSpread1_Sheet1.Columns.Get(2).AllowAutoSort = true;
this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType6;
this.fpSpread1_Sheet1.Columns.Get(2).DataField = "UserID";
this.fpSpread1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(2).Label = "사원번호";
this.fpSpread1_Sheet1.Columns.Get(2).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(2).Width = 120F;
this.fpSpread1_Sheet1.Columns.Get(3).AllowAutoSort = true;
numberCellType21.DecimalPlaces = 0;
numberCellType21.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType21.MaximumValue = 2147483647D;
numberCellType21.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(3).CellType = numberCellType21;
this.fpSpread1_Sheet1.Columns.Get(3).DataField = "CntTotal";
this.fpSpread1_Sheet1.Columns.Get(3).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(3).Label = "전체";
this.fpSpread1_Sheet1.Columns.Get(3).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(3).Width = 50F;
this.fpSpread1_Sheet1.Columns.Get(4).AllowAutoSort = true;
numberCellType22.DecimalPlaces = 0;
numberCellType22.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType22.MaximumValue = 2147483647D;
numberCellType22.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(4).CellType = numberCellType22;
this.fpSpread1_Sheet1.Columns.Get(4).DataField = "CntComplete";
this.fpSpread1_Sheet1.Columns.Get(4).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(4).Label = "완료";
this.fpSpread1_Sheet1.Columns.Get(4).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(4).Width = 50F;
this.fpSpread1_Sheet1.Columns.Get(5).AllowAutoSort = true;
numberCellType23.DecimalPlaces = 0;
numberCellType23.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType23.MaximumValue = 2147483647D;
numberCellType23.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(5).CellType = numberCellType23;
this.fpSpread1_Sheet1.Columns.Get(5).DataField = "CntProgress";
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 = 50F;
this.fpSpread1_Sheet1.Columns.Get(6).AllowAutoSort = true;
numberCellType24.DecimalPlaces = 0;
numberCellType24.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType24.MaximumValue = 2147483647D;
numberCellType24.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(6).CellType = numberCellType24;
this.fpSpread1_Sheet1.Columns.Get(6).DataField = "CntCheck";
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 = 50F;
this.fpSpread1_Sheet1.Columns.Get(7).AllowAutoSort = true;
numberCellType25.DecimalPlaces = 0;
numberCellType25.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType25.MaximumValue = 2147483647D;
numberCellType25.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(7).CellType = numberCellType25;
this.fpSpread1_Sheet1.Columns.Get(7).DataField = "CntHold";
this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(7).Label = "보류\r\n대기";
this.fpSpread1_Sheet1.Columns.Get(7).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(7).Width = 50F;
numberCellType26.DecimalPlaces = 0;
numberCellType26.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType26.MaximumValue = 2147483647D;
numberCellType26.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(8).CellType = numberCellType26;
this.fpSpread1_Sheet1.Columns.Get(8).DataField = "Plan01";
this.fpSpread1_Sheet1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(8).Label = "Jan";
this.fpSpread1_Sheet1.Columns.Get(8).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(8).Width = 50F;
numberCellType27.DecimalPlaces = 0;
numberCellType27.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType27.MaximumValue = 2147483647D;
numberCellType27.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(9).CellType = numberCellType27;
this.fpSpread1_Sheet1.Columns.Get(9).DataField = "Plan02";
this.fpSpread1_Sheet1.Columns.Get(9).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(9).Label = "Feb";
this.fpSpread1_Sheet1.Columns.Get(9).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(9).Width = 50F;
numberCellType28.DecimalPlaces = 0;
numberCellType28.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType28.MaximumValue = 2147483647D;
numberCellType28.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(10).CellType = numberCellType28;
this.fpSpread1_Sheet1.Columns.Get(10).DataField = "Plan03";
this.fpSpread1_Sheet1.Columns.Get(10).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(10).Label = "Mar";
this.fpSpread1_Sheet1.Columns.Get(10).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(10).Width = 50F;
numberCellType29.DecimalPlaces = 0;
numberCellType29.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType29.MaximumValue = 2147483647D;
numberCellType29.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(11).CellType = numberCellType29;
this.fpSpread1_Sheet1.Columns.Get(11).DataField = "Plan04";
this.fpSpread1_Sheet1.Columns.Get(11).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(11).Label = "Apr";
this.fpSpread1_Sheet1.Columns.Get(11).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(11).Width = 50F;
numberCellType30.DecimalPlaces = 0;
numberCellType30.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType30.MaximumValue = 2147483647D;
numberCellType30.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(12).CellType = numberCellType30;
this.fpSpread1_Sheet1.Columns.Get(12).DataField = "Plan05";
this.fpSpread1_Sheet1.Columns.Get(12).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(12).Label = "May";
this.fpSpread1_Sheet1.Columns.Get(12).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(12).Width = 50F;
numberCellType31.DecimalPlaces = 0;
numberCellType31.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType31.MaximumValue = 2147483647D;
numberCellType31.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(13).CellType = numberCellType31;
this.fpSpread1_Sheet1.Columns.Get(13).DataField = "Plan06";
this.fpSpread1_Sheet1.Columns.Get(13).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(13).Label = "Jun";
this.fpSpread1_Sheet1.Columns.Get(13).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(13).Width = 50F;
numberCellType32.DecimalPlaces = 0;
numberCellType32.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType32.MaximumValue = 2147483647D;
numberCellType32.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(14).CellType = numberCellType32;
this.fpSpread1_Sheet1.Columns.Get(14).DataField = "Plan07";
this.fpSpread1_Sheet1.Columns.Get(14).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(14).Label = "July";
this.fpSpread1_Sheet1.Columns.Get(14).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(14).Width = 50F;
numberCellType33.DecimalPlaces = 0;
numberCellType33.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType33.MaximumValue = 2147483647D;
numberCellType33.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(15).CellType = numberCellType33;
this.fpSpread1_Sheet1.Columns.Get(15).DataField = "Plan08";
this.fpSpread1_Sheet1.Columns.Get(15).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(15).Label = "Aug";
this.fpSpread1_Sheet1.Columns.Get(15).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(15).Width = 50F;
numberCellType34.DecimalPlaces = 0;
numberCellType34.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType34.MaximumValue = 2147483647D;
numberCellType34.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(16).CellType = numberCellType34;
this.fpSpread1_Sheet1.Columns.Get(16).DataField = "Plan09";
this.fpSpread1_Sheet1.Columns.Get(16).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(16).Label = "Sep";
this.fpSpread1_Sheet1.Columns.Get(16).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(16).Width = 50F;
numberCellType35.DecimalPlaces = 0;
numberCellType35.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType35.MaximumValue = 2147483647D;
numberCellType35.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(17).CellType = numberCellType35;
this.fpSpread1_Sheet1.Columns.Get(17).DataField = "Plan10";
this.fpSpread1_Sheet1.Columns.Get(17).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(17).Label = "Oct";
this.fpSpread1_Sheet1.Columns.Get(17).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(17).Width = 50F;
numberCellType36.DecimalPlaces = 0;
numberCellType36.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType36.MaximumValue = 2147483647D;
numberCellType36.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(18).CellType = numberCellType36;
this.fpSpread1_Sheet1.Columns.Get(18).DataField = "Plan11";
this.fpSpread1_Sheet1.Columns.Get(18).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(18).Label = "Nov";
this.fpSpread1_Sheet1.Columns.Get(18).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(18).Width = 50F;
numberCellType37.DecimalPlaces = 0;
numberCellType37.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType37.MaximumValue = 2147483647D;
numberCellType37.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(19).CellType = numberCellType37;
this.fpSpread1_Sheet1.Columns.Get(19).DataField = "Plan12";
this.fpSpread1_Sheet1.Columns.Get(19).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(19).Label = "Dec";
this.fpSpread1_Sheet1.Columns.Get(19).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(19).Width = 50F;
numberCellType38.DecimalPlaces = 0;
numberCellType38.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType38.MaximumValue = 2147483647D;
numberCellType38.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(20).CellType = numberCellType38;
this.fpSpread1_Sheet1.Columns.Get(20).DataField = "PlanNext";
this.fpSpread1_Sheet1.Columns.Get(20).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(20).Label = "Next";
this.fpSpread1_Sheet1.Columns.Get(20).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(20).Width = 50F;
numberCellType39.DecimalPlaces = 0;
numberCellType39.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType39.MaximumValue = 2147483647D;
numberCellType39.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(21).CellType = numberCellType39;
this.fpSpread1_Sheet1.Columns.Get(21).DataField = "CntNone";
this.fpSpread1_Sheet1.Columns.Get(21).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(21).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(21).Width = 50F;
numberCellType40.DecimalPlaces = 0;
numberCellType40.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType40.MaximumValue = 2147483647D;
numberCellType40.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(22).CellType = numberCellType40;
this.fpSpread1_Sheet1.Columns.Get(22).DataField = "CntOther";
this.fpSpread1_Sheet1.Columns.Get(22).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(22).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(22).Width = 50F;
this.fpSpread1_Sheet1.DataAutoSizeColumns = false;
this.fpSpread1_Sheet1.DataSource = this.bsUser;
this.fpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false;
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1;
//
// fProjectListUser
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
@@ -751,7 +751,6 @@
((System.ComponentModel.ISupportInitialize)(this.bsHistD)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.bsHist)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.bsUser)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dSProjectSummary)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.bindingNavigator1)).EndInit();
@@ -759,6 +758,7 @@
this.bindingNavigator1.PerformLayout();
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();

View File

@@ -123,6 +123,9 @@
<metadata name="dsMSSQL.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="dsMSSQL.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="cm.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>387, 17</value>
</metadata>
@@ -175,36 +178,6 @@
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>455, 17</value>
</metadata>
<data name="btClose.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG
YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9
0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw
bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc
VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9
c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32
Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo
mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+
kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D
TgDQASA1MVpwzwAAAABJRU5ErkJggg==
</value>
</data>
<data name="btSearch.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG
YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9
0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw
bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc
VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9
c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32
Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo
mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+
kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D
TgDQASA1MVpwzwAAAABJRU5ErkJggg==
</value>
</data>
<metadata name="bsHistD.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>934, 17</value>
</metadata>
@@ -224,7 +197,7 @@
<value>1274, 17</value>
</metadata>
<metadata name="fpSpread1_Sheet1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 95</value>
<value>1009, 56</value>
</metadata>
<metadata name="bsUser.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>169, 56</value>
@@ -232,6 +205,9 @@
<metadata name="dSProjectSummary.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>258, 56</value>
</metadata>
<metadata name="dSProjectSummary.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>258, 56</value>
</metadata>
<metadata name="projectsTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>415, 56</value>
</metadata>
@@ -241,7 +217,7 @@
<data name="bindingNavigatorAddNewItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vgAADr4B6kKxwAAAAUpJREFUOE9jGLzg7gL2/7fmcf6/Oofr/8UZvP+hwsSD60CNfx41/v/zsOH/yckC
vQAADr0BR/uQrQAAAUpJREFUOE9jGLzg7gL2/7fmcf6/Oofr/8UZvP+hwsSD60CNfx41/v/zsOH/yckC
pBtwfjov3ICDPSKkG3B8kiBQc93/Pw+q/u9oFydswKWZPP/PTuX7fxKo8Ui/0P993SJAzeX//94r+r++
Qeb/qhq5/0srFf/PL1X+P6tIFdPAU0B//nlYD9RUC8SV///cKwHivP9/72b+/3sn+f/f23H//92MAOKQ
/5NyNDENONQrDHbu3/ulQI0FQI3ZQI2pQI0J///digZqDPv/70bQ/3/X/f53peliGrCzXeL/lmap/+vA
@@ -253,7 +229,7 @@
<data name="bindingNavigatorDeleteItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vgAADr4B6kKxwAAAAW9JREFUOE+1kE0ow2Ecx3dV3krt4oJaOSCTvIRkMqSxyITIzCQHDouEdnFwIOVC
vQAADr0BR/uQrQAAAW9JREFUOE+1kE0ow2Ecx3dV3krt4oJaOSCTvIRkMqSxyITIzCQHDouEdnFwIOVC
DrhIDiQl5UTiNG/z2ppafy1S2gX/uDwfY6i1v7Hie3nqeb7fz+/7/FR/Ilwn0G0Exw4fV5GJlXlEZxXC
rIet9bAQvB5Ymgn2sLYAvSZEux7RUQFzE4qQt4bCXAYjPaHvnDoCkLpsRGMB2JqCTGLIijDlwqQ9bEMV
i9OIytR3EMNWcJ/BWH8A6j8/bOGFxwXNxYEvGbMQ9XnQ1/K78KfY3/VXzkMY0qFGG2H4RoLGQshJQNbG
@@ -265,7 +241,7 @@
<data name="bindingNavigatorMoveFirstItem1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vgAADr4B6kKxwAAAASpJREFUOE9jGDygcNbz/00Lnv/PnPj4P1QIA4S3P8Apx5A789n/VUfe/8elKL77
vQAADr0BR/uQrQAAASpJREFUOE9jGDygcNbz/00Lnv/PnPj4P1QIA4S3P8Apx5A789n/VUfe/8elKL77
wf/ghmu4DciY8vT/wn0fsCqK73n4f+n+///9qy/gNiCh58n/aVveYyiKaL8P1pw56/9/r9ITuA2I7Hr0
v3f1BxRFoa33wJpb1wFt7/z73yX/AG4DApsf/q+b/w6uKLjl7v9Fe///7wBqzpjz879d3c//9hnbcRvg
UXX/f/60NyiK7Ipv/0+f8/u/f9e3/zqF7/5bJKzHbYB96d3/2ZNfYyjSTzn/36ToxX+VrE//jSOX4TbA
@@ -276,7 +252,7 @@
<data name="bindingNavigatorMovePreviousItem1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vgAADr4B6kKxwAAAALZJREFUOE9jGDogvP3BfyiTdBDf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w
vQAADr0BR/uQrQAAALZJREFUOE9jGDogvP3BfyiTdBDf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w
5sxZ//97lZ4gzYDQ1ntgza3rgLZ3/v3vkn+AeAOCW+7+X7T3//8OoOaMOT//29X9/G+fsZ00F9gV3/6f
Puf3f/+ub/91Ct/9t0hYT3oY6Kec/29S9OK/Stan/8aRy0g3AAQMkk78l037+l83eB55BoCAfurl/xq+
08g3AARUPCZQZsBgBQwMANAUYJgEulBVAAAAAElFTkSuQmCC
@@ -285,7 +261,7 @@
<data name="bindingNavigatorMoveNextItem1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vgAADr4B6kKxwAAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78
vQAADr0BR/uQrQAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78
n73v1//OrX//u5VeJt2QyK5H/6ds+/W/ZOnf/wnT//63yT1LmiGBzQ//t659D9ZsXPLlv3T0tf/GkcuI
N8Sj6v7/krnv4JoVXXpIc4F96d3/gS3PyNMMAhZ5d/7bFFwhTzMIGGbdJl8zCOik3SBf81AEDAwAoH5f
oAc0QjgAAAAASUVORK5CYII=
@@ -294,7 +270,7 @@
<data name="bindingNavigatorMoveLastItem1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vgAADr4B6kKxwAAAASxJREFUOE9jGFygcNbz/1AmBgDJNS14/j9z4mOcahhyZz77n9B9D6sCkNyqI+//
vQAADr0BR/uQrQAAASxJREFUOE9jGFygcNbz/1AmBgDJNS14/j9z4mOcahhyZz77n9B9D6sCkNyqI+//
h7c/wG1AxpSn/+ft//0/oesOhiKQ3MJ9H/4HN1zDbUBCz5P/s/f9+t+59e9/t9LLKApBctO2vP/vX30B
twGRXY/+T9n263/J0r//E6b//W+TexauGCTXu/rDf6/SE7gNCGx++L917XuwZuOSL/+lo6/9N45cBtYA
kqub/+6/S/4B3AZ4VN3/XzL3HVyzoksPXDFILn/am//2GdtxG2Bfevd/YMszDM0gAJLLnvz6v0XCetwG

View File

@@ -543,7 +543,7 @@
// btClose
//
this.btClose.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.btClose.Image = ((System.Drawing.Image)(resources.GetObject("btClose.Image")));
this.btClose.Image = global::FPJ0000.Properties.Resources.action_stop;
this.btClose.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btClose.Name = "btClose";
this.btClose.Size = new System.Drawing.Size(67, 36);
@@ -553,7 +553,7 @@
// btSearch
//
this.btSearch.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.btSearch.Image = ((System.Drawing.Image)(resources.GetObject("btSearch.Image")));
this.btSearch.Image = global::FPJ0000.Properties.Resources.action_refresh;
this.btSearch.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btSearch.Name = "btSearch";
this.btSearch.Size = new System.Drawing.Size(91, 36);

View File

@@ -299,36 +299,6 @@
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>455, 17</value>
</metadata>
<data name="btClose.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG
YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9
0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw
bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc
VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9
c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32
Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo
mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+
kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D
TgDQASA1MVpwzwAAAABJRU5ErkJggg==
</value>
</data>
<data name="btSearch.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG
YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9
0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw
bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc
VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9
c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32
Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo
mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+
kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D
TgDQASA1MVpwzwAAAABJRU5ErkJggg==
</value>
</data>
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>561, 17</value>
</metadata>