This commit is contained in:
chi
2020-10-12 13:28:18 +09:00
parent 9fd97e8877
commit 60cc309353
39 changed files with 21926 additions and 14776 deletions

View File

@@ -9,7 +9,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>FPJ0000</RootNamespace>
<AssemblyName>FPJ0000</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>

View File

@@ -118,7 +118,7 @@ namespace FPJ0000.JobReport
cmbType.SelectedValue = dr.type;
cmbProcess.SelectedValue = dr.process;
if (cmbRequest.Text == "") cmbRequest.Text = "EE1";
//if (cmbRequest.Text == "") cmbRequest.Text = "EE1";
if (cmbPackage.Text == "") cmbPackage.Text = "Common";
//프로젝트 번호 확인(프로젝트번호가 바뀌면 데이터를 업데이트 해준다)

View File

@@ -38,7 +38,6 @@
System.Windows.Forms.Label statusLabel;
System.Windows.Forms.Label label1;
System.Windows.Forms.Label label2;
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fPartList));
FarPoint.Win.Spread.FlatFocusIndicatorRenderer flatFocusIndicatorRenderer1 = new FarPoint.Win.Spread.FlatFocusIndicatorRenderer();
FarPoint.Win.Spread.FlatScrollBarRenderer flatScrollBarRenderer1 = new FarPoint.Win.Spread.FlatScrollBarRenderer();
FarPoint.Win.Spread.FlatScrollBarRenderer flatScrollBarRenderer2 = new FarPoint.Win.Spread.FlatScrollBarRenderer();
@@ -64,6 +63,7 @@
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.NoPrinterPrintInfo noPrinterPrintInfo1 = new FarPoint.Win.Spread.NoPrinterPrintInfo();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fPartList));
this.panel1 = new System.Windows.Forms.Panel();
this.button3 = new System.Windows.Forms.Button();
this.panel6 = new System.Windows.Forms.Panel();
@@ -86,7 +86,7 @@
this.sdateTextBox = new System.Windows.Forms.TextBox();
this.textBox1 = new System.Windows.Forms.TextBox();
this.reqstaffTextBox = new System.Windows.Forms.TextBox();
this.idxTextBox = new System.Windows.Forms.TextBox();
this.tbIdx = new System.Windows.Forms.TextBox();
this.nameTextBox = new System.Windows.Forms.TextBox();
this.pdateTextBox = new System.Windows.Forms.TextBox();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
@@ -137,6 +137,8 @@
this.fpSpread1 = new FarPoint.Win.Spread.FpSpread();
this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
this.panel7 = new System.Windows.Forms.Panel();
this.button4 = new System.Windows.Forms.Button();
pdateLabel = new System.Windows.Forms.Label();
requestLabel = new System.Windows.Forms.Label();
reqstaffLabel = new System.Windows.Forms.Label();
@@ -243,6 +245,8 @@
//
// panel1
//
this.panel1.Controls.Add(this.button4);
this.panel1.Controls.Add(this.panel7);
this.panel1.Controls.Add(this.button3);
this.panel1.Controls.Add(this.panel6);
this.panel1.Controls.Add(this.button2);
@@ -368,7 +372,7 @@
this.panel2.Controls.Add(sdateLabel);
this.panel2.Controls.Add(this.textBox1);
this.panel2.Controls.Add(this.reqstaffTextBox);
this.panel2.Controls.Add(this.idxTextBox);
this.panel2.Controls.Add(this.tbIdx);
this.panel2.Controls.Add(reqstaffLabel);
this.panel2.Controls.Add(this.nameTextBox);
this.panel2.Controls.Add(requestLabel);
@@ -490,14 +494,14 @@
this.reqstaffTextBox.Size = new System.Drawing.Size(186, 21);
this.reqstaffTextBox.TabIndex = 9;
//
// idxTextBox
// tbIdx
//
this.idxTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "idx", true));
this.idxTextBox.Location = new System.Drawing.Point(11, 9);
this.idxTextBox.Name = "idxTextBox";
this.idxTextBox.ReadOnly = true;
this.idxTextBox.Size = new System.Drawing.Size(40, 21);
this.idxTextBox.TabIndex = 1;
this.tbIdx.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "idx", true));
this.tbIdx.Location = new System.Drawing.Point(11, 9);
this.tbIdx.Name = "tbIdx";
this.tbIdx.ReadOnly = true;
this.tbIdx.Size = new System.Drawing.Size(40, 21);
this.tbIdx.TabIndex = 1;
//
// nameTextBox
//
@@ -1374,6 +1378,29 @@
this.fpSpread1_Sheet1.TitleInfo.Value = "Partlist";
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1;
//
// panel7
//
this.panel7.Dock = System.Windows.Forms.DockStyle.Left;
this.panel7.Location = new System.Drawing.Point(955, 0);
this.panel7.Name = "panel7";
this.panel7.Size = new System.Drawing.Size(7, 119);
this.panel7.TabIndex = 41;
//
// button4
//
this.button4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
this.button4.Dock = System.Windows.Forms.DockStyle.Left;
this.button4.Image = ((System.Drawing.Image)(resources.GetObject("button4.Image")));
this.button4.Location = new System.Drawing.Point(962, 0);
this.button4.Name = "button4";
this.button4.Padding = new System.Windows.Forms.Padding(0, 0, 0, 10);
this.button4.Size = new System.Drawing.Size(87, 119);
this.button4.TabIndex = 42;
this.button4.Text = "공용폴더";
this.button4.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
this.button4.UseVisualStyleBackColor = true;
this.button4.Click += new System.EventHandler(this.button4_Click);
//
// fPartList
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -1410,7 +1437,7 @@
private System.Windows.Forms.BindingSource bs;
private dsPRJTableAdapters.ProjectsTableAdapter ta;
private dsPRJTableAdapters.TableAdapterManager tam;
private System.Windows.Forms.TextBox idxTextBox;
private System.Windows.Forms.TextBox tbIdx;
private System.Windows.Forms.TextBox nameTextBox;
private System.Windows.Forms.TextBox pdateTextBox;
private System.Windows.Forms.TextBox requestTextBox;
@@ -1478,5 +1505,7 @@
private System.Windows.Forms.Panel panel6;
private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1;
private System.Windows.Forms.RadioButton radSortIpNum;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.Panel panel7;
}
}

View File

@@ -38,10 +38,25 @@ namespace FPJ0000
this.ProjectIndex = idx_;
this.FormClosed += fPartList_FormClosed;
this.FormClosing += FPartList_FormClosing;
this.KeyDown += fPartList_KeyDown;
this.dsPRJ.ProjectsPart.TableNewRow += ProjectsPart_TableNewRow;
}
private void FPartList_FormClosing(object sender, FormClosingEventArgs e)
{
var dt = this.dsPRJ.ProjectsPart.GetChanges();
if (dt != null && dt.Rows.Count > 0)
{
var dlg = FCOMMON.Util.MsgQ("변경된 자료가 있습니다.\n화면을 닫으면 손실됩니다.\n화면을 닫을까요?");
if (dlg != DialogResult.Yes)
{
e.Cancel = true;
return;
}
}
}
void ProjectsPart_TableNewRow(object sender, DataTableNewRowEventArgs e)
{
e.Row["wuid"] = FCOMMON.info.Login.no;
@@ -202,7 +217,7 @@ namespace FPJ0000
// if (value_bconf != null) bconf = (Boolean)value_bconf;
if (bbuy) PO발행전체 += 1;
// if (bbuy && string.IsNullOrEmpty(value_supply))
// if (bbuy && string.IsNullOrEmpty(value_supply))
+= 1;
@@ -325,11 +340,11 @@ namespace FPJ0000
this.bsPart.EndEdit();
//모든데이터의 공백을 제거(sid)
foreach(var item in this.dsPRJ.ProjectsPart)
foreach (var item in this.dsPRJ.ProjectsPart)
{
//sid에 공백제거
if (item.RowState == DataRowState.Deleted || item.RowState == DataRowState.Detached) continue;
if(item.ItemSid != item.ItemSid.Replace(" ","").Trim())
if (item.ItemSid != item.ItemSid.Replace(" ", "").Trim())
{
item.ItemSid = item.ItemSid.Replace(" ", "").Trim();
item.EndEdit();
@@ -462,7 +477,7 @@ namespace FPJ0000
fpSpread1.ActiveSheet.Cells[Rowidx, colidx_item].Value = f.item;
fpSpread1.ActiveSheet.Cells[Rowidx, colidx_itemname].Value = f.itemName;
fpSpread1.ActiveSheet.Cells[Rowidx, colidx_sid].Value = f.SID.Replace(" ","").Trim();
fpSpread1.ActiveSheet.Cells[Rowidx, colidx_sid].Value = f.SID.Replace(" ", "").Trim();
//공급사는 기록하지 않는다 200623
//fpSpread1.ActiveSheet.Cells[Rowidx, colidx_supplyidx].Value = f.itemSupplyidx;
@@ -569,7 +584,7 @@ namespace FPJ0000
FormattingData();
this.tbFind.SelectAll();
this.tbFind.Focus();
}
}
@@ -773,5 +788,37 @@ namespace FPJ0000
var f = new rPartList(this.ProjectIndex);
f.Show();
}
private void button4_Click(object sender, EventArgs e)
{
var drv = this.bs.Current as DataRowView;
if (drv == null) return;
var dr = drv.Row as dsPRJ.ProjectsRow;
var tbPath = dr.path;
if (tbPath == "") tbPath = "/" + tbIdx.Text;
if (tbPath.StartsWith("\\") == false)
{
if (tbPath.StartsWith("/")) tbPath = tbPath.Replace("/", "\\");
else tbPath = "\\" + tbPath;
}
var serverpath = @"\\10.131.32.29\Data\Project";
if (System.IO.Directory.Exists(serverpath) == false)
{
FCOMMON.Util.MsgE("프로젝트 기본경로가 존재하지 않아 진행할 수 없습니다\n\n" +
serverpath);
return;
}
var path = serverpath + tbPath;
if (System.IO.Directory.Exists(path) == false)
{
FCOMMON.Util.MsgE("프로젝트 저장소 없음");
}
FCOMMON.Util.RunExplorer(path);
}
}
}

View File

@@ -145,6 +145,19 @@
<value>False</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="button4.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAAIpoAACKaAb7d+yoAAAAZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb7jwa
AAABh0lEQVRYR+2VMUoDYRSE92i2igewslcsBCu7eAErIY0gNtY2FjZiYSt4BG+grdXqZ97wfsIgwYWX
XdiBaSYz//sKTbpZQ3V7vLcYswHsx+zpAL4tz/r+5XoUhmUGHOIZcKgt4Fg9CcDVt/bR7rPCx8XhVqz7
wbL6JZEi+C24v4sK6z4sgZUiVMGNK6z7sARWilAFN66w7sMSWClCFdy4wroPS2ClCFVw43W/3130r1en
G5mue2Pdug9LYKUIVXDj1h8Pl+1jG/nzZ+Peat30hwF+PS37+/OD9sE/TZeNe6t1s5n/Sf5l3YclsFKE
KrhxhXUflsBKEargxhXWfVgCK0WoghtXWPdhCawUoQpuXGHdhyWwUoQquHGFdR+WwEoRquDGFdZ9WAIr
RaiCG1dY92EJrBShCm5cYd2HJbBShCq4cYV1H5bAShGq4MYV1n1YAitFqIIbV1j3YQmsFKEKblxh3Ycl
sFKEKrhxhXUflsBKETaFbXuCgDcn+zt8MAbDElizBqrrvgEhPDwfDcBtdQAAAABJRU5ErkJggg==
</value>
</data>
<data name="button3.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
@@ -229,7 +242,7 @@
<value>17, 17</value>
</metadata>
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>766, 18</value>
<value>614, 18</value>
</metadata>
<metadata name="cm1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>539, 18</value>
@@ -383,20 +396,20 @@
<data name="toolStripButton3.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAALxSURBVDhPhZJZTxNRGIZ7JT/BoBdekhiFKEaNXigIWMAE
NwSCyFYKAQEJ1GAi1hSMyGJAAiRqCETjhRpwgbKUrS2lbSjKUlbZt4SlAl1moDPl9cy0AiYkfsmTc3Hm
fTLfOyPgxv+xMuZaoU4RUqT7HSDVUeSkeYq5U0+HFGrpoBca40WJuvR46MdDfGj/BD7rUq+Y6TWj0cia
rFswWfZYM3PQGFkyI+fbHCKKRm3CVLmbK+qc4HzNitE4xGpn7NDPMtDPMdDNMNBMb0P5awtNw1ZsMUD9
KIWcL7OIf2Wk/pEESJuoTds2eudZ/JhnyMmgh5dsQzWxhZZhGxE40LvEQr9oR558Dr6P2j/w4fBin6k7
0tAdccUtxJffRnlzDXJri+Er9YQPQZh3Af6ysyipL+FXsdAMltdt8I9WMbwgrND3c/tgAxrG36Jcl8VL
osuCkPU+Cmk1ERBVXkdcZRzq+5fRYLTg+8AmNkhPAbIumhcIS4VuntJ0VjfWiXeDMhQoU3lJTEUwCd9A
0utEqCes/Cpt4xQUpId1qx0Bud1OATeB+So6oyoWhgkNKvUP8bw1E+HFVxBTFgrDjA0GUixXsHrS2YmJ
CPxl+wSXnkjt57KPIapUiN5JLfI6kyGTZyDipR9qlF/Rt8DAQIrVTtvRTVgx2+H71CU4LXEXe0uOIq06
EncrAhFZcpWXZMijIKlNJG/iB+6+d45FD/eJCWZSpFe6xinwlhxe8JYcIQ+5wzvLHTcL/JDyJhbqYQXy
FNlI/hQLUUUYDESgJ/+Gjghou4MIlHsrXE7vopc2aPQvsDyqsUU8qEpCAgmKKyOQWX1/947Dts0SQd2e
gLPNm/YE/8PKrZC4T3A+o8PW0t23c9DDBzE4POo4GV1vccVJkUmtU7ObNnOHdsAxtUphaoXChItVi52H
a95Cs/g5OOKgKGrD417jkCsuEJxJak7xEjW1nhIrTF7iOnqXBCeefxHV0R6ixvUTcY1tnrHyeIFAIPgD
q6OfJyXVylwAAAAASUVORK5CYII=
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAALuSURBVDhPhZLrS1NhHMf3Kv+EsF70UghTyqioF6WpTQ3s
Zipm3uYUTW3owiBbzEXmJTRRoUKUohcV2kWnNm9zzm24ieY0Ne838LLUXc7Rnc1vzzlbzkDoBx+eF8/5
fji/7zk8dkIeKROvlmgVkaXa36ESLUVOmqOMPXV0ZImGDn+uNl4QqyqOR304xIX2T9jTXtWqmV43Go0O
k3UbJouHdTMLjZ/LZhR8nUds6ZiNnyX3ckddE1GkXmXDmlk7dHMMdPMMtLMM1DM7UP7aRuuoFdsM0DRG
oeDzHFJeGql/JKGSVmrLtgPDggMDCww5GfRzkh30TG7j+6iNCJwwLDugW7JDJp9H0MPO91w4pixw+rYk
aldYfRMpVbdQ1VaPwoYyBEn8EEjgy84jRHoG5U3l3CoWmsHKhg0hCT0MJ4guCfrUOdyM5ok3qNLmcZKE
ynDkvYtHdn0sBDXXkFyTjKahFTQbLfj2YwubpKdQaS/NCfgVfC9fSY5DO96Nt8NSFCuzOElidQQJX0f6
qzSoJq3cKh0TFBSkhw2rHaGFfS4BO2FFPbSoNgn6STVqdA/wrD0XMWWXkVgZBf2sDXpSLFuwasrViYkI
QqT7BBcfS+xn848hvoIPw5QGsu4MSOUixL4IRr3yCwYXGehJsZoZO/oIq2Y7gp64BafE3sIA8VFk18Xh
TnUY4sqvcBKRPB7ihjTyJsFg7w3zDvSzn5hgJkX656hdggDx4cUA8RHykDcC8rxxozgYma+ToBpVQKbI
R8bHJAiqo6EnAh35N7REQNudRKD0rHApp5de3qQxtOjg6Blfwv3adKSSoLAmFrl19/buWGw7DiJo9AhY
24LJI/gfVnaFtH2Cc6IuW2vvwO5BDx+IcdR5IqHJ4o6TItPbp+e2bOYu9aBzeo3C9CqFSTdrFjsH27yF
dsAwNOKkKGrT527LiDvO451Ob8v0F7S2nxQqTP7CRnqPVBd+fxE00j6Clg3f5JYOvyR5Co/H4/0Bl8Sf
DuVD3wEAAAAASUVORK5CYII=
</value>
</data>
<data name="toolStripButton4.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
@@ -442,6 +455,6 @@
<value>385, 17</value>
</metadata>
<metadata name="fpSpread1_Sheet1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>863, 18</value>
<value>711, 18</value>
</metadata>
</root>

View File

@@ -6,4 +6,4 @@
<add name="FEQ0000.Properties.Settings.gwcs" connectionString="Data Source=10.131.32.29;Initial Catalog=GroupWare;Persist Security Info=True;User ID=gw;Password=Amkor123!" providerName="System.Data.SqlClient"/>
<add name="FPJ0000.Properties.Settings.gwcs" connectionString="Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=Amkor123!" providerName="System.Data.SqlClient"/>
</connectionStrings>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/></startup></configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>

View File

@@ -2963,8 +2963,8 @@ namespace FPJ0000 {
this.columnItemName.MaxLength = 100;
this.columnItemModel.MaxLength = 100;
this.columnItemGroup.MaxLength = 100;
this.columnItemSupply.MaxLength = 10;
this.columnItemManu.MaxLength = 50;
this.columnItemSupply.MaxLength = 100;
this.columnItemManu.MaxLength = 100;
this.columnoption1.MaxLength = 255;
this.columnoption2.MaxLength = 255;
this.columnoption3.MaxLength = 255;
@@ -12875,8 +12875,8 @@ SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, I
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemModel", global::System.Data.SqlDbType.VarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "ItemModel", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemGroup", global::System.Data.SqlDbType.VarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "ItemGroup", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemSid", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "ItemSid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemSupply", global::System.Data.SqlDbType.NChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "ItemSupply", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemManu", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "ItemManu", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemSupply", global::System.Data.SqlDbType.NChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "ItemSupply", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemManu", global::System.Data.SqlDbType.VarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "ItemManu", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@option1", global::System.Data.SqlDbType.NVarChar, 255, global::System.Data.ParameterDirection.Input, 0, 0, "option1", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@option2", global::System.Data.SqlDbType.NVarChar, 255, global::System.Data.ParameterDirection.Input, 0, 0, "option2", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@option3", global::System.Data.SqlDbType.NVarChar, 255, global::System.Data.ParameterDirection.Input, 0, 0, "option3", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -12914,8 +12914,8 @@ SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, I
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemModel", global::System.Data.SqlDbType.VarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "ItemModel", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemGroup", global::System.Data.SqlDbType.VarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "ItemGroup", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemSid", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "ItemSid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemSupply", global::System.Data.SqlDbType.NChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "ItemSupply", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemManu", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "ItemManu", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemSupply", global::System.Data.SqlDbType.NChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "ItemSupply", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemManu", global::System.Data.SqlDbType.VarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "ItemManu", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@option1", global::System.Data.SqlDbType.NVarChar, 255, global::System.Data.ParameterDirection.Input, 0, 0, "option1", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@option2", global::System.Data.SqlDbType.NVarChar, 255, global::System.Data.ParameterDirection.Input, 0, 0, "option2", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@option3", global::System.Data.SqlDbType.NVarChar, 255, global::System.Data.ParameterDirection.Input, 0, 0, "option3", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));

View File

@@ -519,8 +519,8 @@ SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, I
<Parameter AllowDbNull="true" AutogeneratedName="ItemModel" ColumnName="ItemModel" DataSourceName="EE.dbo.ProjectsPart" DataTypeServer="varchar(100)" DbType="AnsiString" Direction="Input" ParameterName="@ItemModel" Precision="0" ProviderType="VarChar" Scale="0" Size="100" SourceColumn="ItemModel" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="ItemGroup" ColumnName="ItemGroup" DataSourceName="EE.dbo.ProjectsPart" DataTypeServer="varchar(100)" DbType="AnsiString" Direction="Input" ParameterName="@ItemGroup" Precision="0" ProviderType="VarChar" Scale="0" Size="100" SourceColumn="ItemGroup" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="ItemSid" ColumnName="ItemSid" DataSourceName="EE.dbo.ProjectsPart" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@ItemSid" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="ItemSid" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="ItemSupply" ColumnName="ItemSupply" DataSourceName="EE.dbo.ProjectsPart" DataTypeServer="nchar(10)" DbType="String" Direction="Input" ParameterName="@ItemSupply" Precision="0" ProviderType="NChar" Scale="0" Size="10" SourceColumn="ItemSupply" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="ItemManu" ColumnName="ItemManu" DataSourceName="EE.dbo.ProjectsPart" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@ItemManu" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="ItemManu" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="ItemSupply" ColumnName="ItemSupply" DataSourceName="EE.dbo.ProjectsPart" DataTypeServer="nchar(10)" DbType="String" Direction="Input" ParameterName="@ItemSupply" Precision="0" ProviderType="NChar" Scale="0" Size="100" SourceColumn="ItemSupply" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="ItemManu" ColumnName="ItemManu" DataSourceName="EE.dbo.ProjectsPart" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@ItemManu" Precision="0" ProviderType="VarChar" Scale="0" Size="100" SourceColumn="ItemManu" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="option1" ColumnName="option1" DataSourceName="EE.dbo.ProjectsPart" DataTypeServer="nvarchar(255)" DbType="String" Direction="Input" ParameterName="@option1" Precision="0" ProviderType="NVarChar" Scale="0" Size="255" SourceColumn="option1" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="option2" ColumnName="option2" DataSourceName="EE.dbo.ProjectsPart" DataTypeServer="nvarchar(255)" DbType="String" Direction="Input" ParameterName="@option2" Precision="0" ProviderType="NVarChar" Scale="0" Size="255" SourceColumn="option2" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="option3" ColumnName="option3" DataSourceName="EE.dbo.ProjectsPart" DataTypeServer="nvarchar(255)" DbType="String" Direction="Input" ParameterName="@option3" Precision="0" ProviderType="NVarChar" Scale="0" Size="255" SourceColumn="option3" SourceColumnNullMapping="false" SourceVersion="Current" />
@@ -569,8 +569,8 @@ SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, I
<Parameter AllowDbNull="true" AutogeneratedName="ItemModel" ColumnName="ItemModel" DataSourceName="EE.dbo.ProjectsPart" DataTypeServer="varchar(100)" DbType="AnsiString" Direction="Input" ParameterName="@ItemModel" Precision="0" ProviderType="VarChar" Scale="0" Size="100" SourceColumn="ItemModel" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="ItemGroup" ColumnName="ItemGroup" DataSourceName="EE.dbo.ProjectsPart" DataTypeServer="varchar(100)" DbType="AnsiString" Direction="Input" ParameterName="@ItemGroup" Precision="0" ProviderType="VarChar" Scale="0" Size="100" SourceColumn="ItemGroup" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="ItemSid" ColumnName="ItemSid" DataSourceName="EE.dbo.ProjectsPart" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@ItemSid" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="ItemSid" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="ItemSupply" ColumnName="ItemSupply" DataSourceName="EE.dbo.ProjectsPart" DataTypeServer="nchar(10)" DbType="String" Direction="Input" ParameterName="@ItemSupply" Precision="0" ProviderType="NChar" Scale="0" Size="10" SourceColumn="ItemSupply" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="ItemManu" ColumnName="ItemManu" DataSourceName="EE.dbo.ProjectsPart" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@ItemManu" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="ItemManu" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="ItemSupply" ColumnName="ItemSupply" DataSourceName="EE.dbo.ProjectsPart" DataTypeServer="nchar(10)" DbType="String" Direction="Input" ParameterName="@ItemSupply" Precision="0" ProviderType="NChar" Scale="0" Size="100" SourceColumn="ItemSupply" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="ItemManu" ColumnName="ItemManu" DataSourceName="EE.dbo.ProjectsPart" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@ItemManu" Precision="0" ProviderType="VarChar" Scale="0" Size="100" SourceColumn="ItemManu" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="option1" ColumnName="option1" DataSourceName="EE.dbo.ProjectsPart" DataTypeServer="nvarchar(255)" DbType="String" Direction="Input" ParameterName="@option1" Precision="0" ProviderType="NVarChar" Scale="0" Size="255" SourceColumn="option1" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="option2" ColumnName="option2" DataSourceName="EE.dbo.ProjectsPart" DataTypeServer="nvarchar(255)" DbType="String" Direction="Input" ParameterName="@option2" Precision="0" ProviderType="NVarChar" Scale="0" Size="255" SourceColumn="option2" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="option3" ColumnName="option3" DataSourceName="EE.dbo.ProjectsPart" DataTypeServer="nvarchar(255)" DbType="String" Direction="Input" ParameterName="@option3" Precision="0" ProviderType="NVarChar" Scale="0" Size="255" SourceColumn="option3" SourceColumnNullMapping="false" SourceVersion="Current" />
@@ -1369,7 +1369,7 @@ SELECT idx, gcode, pdate, uid, description, description2, share, wuid, wdate FRO
<xs:element name="dsPRJ" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="dsPRJ" msprop:Generator_UserDSName="dsPRJ">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Projects" msprop:Generator_TableClassName="ProjectsDataTable" msprop:Generator_TableVarName="tableProjects" msprop:Generator_TablePropName="Projects" msprop:Generator_RowDeletingName="ProjectsRowDeleting" msprop:Generator_RowChangingName="ProjectsRowChanging" msprop:Generator_RowEvHandlerName="ProjectsRowChangeEventHandler" msprop:Generator_RowDeletedName="ProjectsRowDeleted" msprop:Generator_UserTableName="Projects" msprop:Generator_RowChangedName="ProjectsRowChanged" msprop:Generator_RowEvArgName="ProjectsRowChangeEvent" msprop:Generator_RowClassName="ProjectsRow">
<xs:element name="Projects" msprop:Generator_TableClassName="ProjectsDataTable" msprop:Generator_TableVarName="tableProjects" msprop:Generator_RowChangedName="ProjectsRowChanged" msprop:Generator_TablePropName="Projects" msprop:Generator_RowDeletingName="ProjectsRowDeleting" msprop:Generator_RowChangingName="ProjectsRowChanging" msprop:Generator_RowEvHandlerName="ProjectsRowChangeEventHandler" msprop:Generator_RowDeletedName="ProjectsRowDeleted" msprop:Generator_RowClassName="ProjectsRow" msprop:Generator_UserTableName="Projects" msprop:Generator_RowEvArgName="ProjectsRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" />
@@ -1592,7 +1592,7 @@ SELECT idx, gcode, pdate, uid, description, description2, share, wuid, wdate FRO
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ProjectsIOMap" msprop:Generator_TableClassName="ProjectsIOMapDataTable" msprop:Generator_TableVarName="tableProjectsIOMap" msprop:Generator_TablePropName="ProjectsIOMap" msprop:Generator_RowDeletingName="ProjectsIOMapRowDeleting" msprop:Generator_RowChangingName="ProjectsIOMapRowChanging" msprop:Generator_RowEvHandlerName="ProjectsIOMapRowChangeEventHandler" msprop:Generator_RowDeletedName="ProjectsIOMapRowDeleted" msprop:Generator_UserTableName="ProjectsIOMap" msprop:Generator_RowChangedName="ProjectsIOMapRowChanged" msprop:Generator_RowEvArgName="ProjectsIOMapRowChangeEvent" msprop:Generator_RowClassName="ProjectsIOMapRow">
<xs:element name="ProjectsIOMap" msprop:Generator_TableClassName="ProjectsIOMapDataTable" msprop:Generator_TableVarName="tableProjectsIOMap" msprop:Generator_RowChangedName="ProjectsIOMapRowChanged" msprop:Generator_TablePropName="ProjectsIOMap" msprop:Generator_RowDeletingName="ProjectsIOMapRowDeleting" msprop:Generator_RowChangingName="ProjectsIOMapRowChanging" msprop:Generator_RowEvHandlerName="ProjectsIOMapRowChangeEventHandler" msprop:Generator_RowDeletedName="ProjectsIOMapRowDeleted" msprop:Generator_RowClassName="ProjectsIOMapRow" msprop:Generator_UserTableName="ProjectsIOMap" msprop:Generator_RowEvArgName="ProjectsIOMapRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="idx" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" />
@@ -1636,7 +1636,7 @@ SELECT idx, gcode, pdate, uid, description, description2, share, wuid, wdate FRO
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ProjectsMailList" msprop:Generator_TableClassName="ProjectsMailListDataTable" msprop:Generator_TableVarName="tableProjectsMailList" msprop:Generator_TablePropName="ProjectsMailList" msprop:Generator_RowDeletingName="ProjectsMailListRowDeleting" msprop:Generator_RowChangingName="ProjectsMailListRowChanging" msprop:Generator_RowEvHandlerName="ProjectsMailListRowChangeEventHandler" msprop:Generator_RowDeletedName="ProjectsMailListRowDeleted" msprop:Generator_UserTableName="ProjectsMailList" msprop:Generator_RowChangedName="ProjectsMailListRowChanged" msprop:Generator_RowEvArgName="ProjectsMailListRowChangeEvent" msprop:Generator_RowClassName="ProjectsMailListRow">
<xs:element name="ProjectsMailList" msprop:Generator_TableClassName="ProjectsMailListDataTable" msprop:Generator_TableVarName="tableProjectsMailList" msprop:Generator_RowChangedName="ProjectsMailListRowChanged" msprop:Generator_TablePropName="ProjectsMailList" msprop:Generator_RowDeletingName="ProjectsMailListRowDeleting" msprop:Generator_RowChangingName="ProjectsMailListRowChanging" msprop:Generator_RowEvHandlerName="ProjectsMailListRowChangeEventHandler" msprop:Generator_RowDeletedName="ProjectsMailListRowDeleted" msprop:Generator_RowClassName="ProjectsMailListRow" msprop:Generator_UserTableName="ProjectsMailList" msprop:Generator_RowEvArgName="ProjectsMailListRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" />
@@ -1681,7 +1681,7 @@ SELECT idx, gcode, pdate, uid, description, description2, share, wuid, wdate FRO
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ProjectsPart" msprop:Generator_TableClassName="ProjectsPartDataTable" msprop:Generator_TableVarName="tableProjectsPart" msprop:Generator_TablePropName="ProjectsPart" msprop:Generator_RowDeletingName="ProjectsPartRowDeleting" msprop:Generator_RowChangingName="ProjectsPartRowChanging" msprop:Generator_RowEvHandlerName="ProjectsPartRowChangeEventHandler" msprop:Generator_RowDeletedName="ProjectsPartRowDeleted" msprop:Generator_UserTableName="ProjectsPart" msprop:Generator_RowChangedName="ProjectsPartRowChanged" msprop:Generator_RowEvArgName="ProjectsPartRowChangeEvent" msprop:Generator_RowClassName="ProjectsPartRow">
<xs:element name="ProjectsPart" msprop:Generator_TableClassName="ProjectsPartDataTable" msprop:Generator_TableVarName="tableProjectsPart" msprop:Generator_RowChangedName="ProjectsPartRowChanged" msprop:Generator_TablePropName="ProjectsPart" msprop:Generator_RowDeletingName="ProjectsPartRowDeleting" msprop:Generator_RowChangingName="ProjectsPartRowChanging" msprop:Generator_RowEvHandlerName="ProjectsPartRowChangeEventHandler" msprop:Generator_RowDeletedName="ProjectsPartRowDeleted" msprop:Generator_RowClassName="ProjectsPartRow" msprop:Generator_UserTableName="ProjectsPart" msprop:Generator_RowEvArgName="ProjectsPartRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" />
@@ -1730,14 +1730,14 @@ SELECT idx, gcode, pdate, uid, description, description2, share, wuid, wdate FRO
<xs:element name="ItemSupply" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="ItemSupply" msprop:Generator_ColumnVarNameInTable="columnItemSupply" msprop:Generator_ColumnPropNameInTable="ItemSupplyColumn" msprop:Generator_UserColumnName="ItemSupply" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="10" />
<xs:maxLength value="100" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="ItemManu" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="ItemManu" msprop:Generator_ColumnVarNameInTable="columnItemManu" msprop:Generator_ColumnPropNameInTable="ItemManuColumn" msprop:Generator_UserColumnName="ItemManu" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
<xs:maxLength value="100" />
</xs:restriction>
</xs:simpleType>
</xs:element>
@@ -1795,7 +1795,7 @@ SELECT idx, gcode, pdate, uid, description, description2, share, wuid, wdate FRO
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="JobReport" msprop:Generator_TableClassName="JobReportDataTable" msprop:Generator_TableVarName="tableJobReport" msprop:Generator_TablePropName="JobReport" msprop:Generator_RowDeletingName="JobReportRowDeleting" msprop:Generator_RowChangingName="JobReportRowChanging" msprop:Generator_RowEvHandlerName="JobReportRowChangeEventHandler" msprop:Generator_RowDeletedName="JobReportRowDeleted" msprop:Generator_UserTableName="JobReport" msprop:Generator_RowChangedName="JobReportRowChanged" msprop:Generator_RowEvArgName="JobReportRowChangeEvent" msprop:Generator_RowClassName="JobReportRow">
<xs:element name="JobReport" msprop:Generator_TableClassName="JobReportDataTable" msprop:Generator_TableVarName="tableJobReport" msprop:Generator_RowChangedName="JobReportRowChanged" msprop:Generator_TablePropName="JobReport" msprop:Generator_RowDeletingName="JobReportRowDeleting" msprop:Generator_RowChangingName="JobReportRowChanging" msprop:Generator_RowEvHandlerName="JobReportRowChangeEventHandler" msprop:Generator_RowDeletedName="JobReportRowDeleted" msprop:Generator_RowClassName="JobReportRow" msprop:Generator_UserTableName="JobReport" msprop:Generator_RowEvArgName="JobReportRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" />
@@ -1913,7 +1913,7 @@ SELECT idx, gcode, pdate, uid, description, description2, share, wuid, wdate FRO
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ProjectsSchedule" msprop:Generator_TableClassName="ProjectsScheduleDataTable" msprop:Generator_TableVarName="tableProjectsSchedule" msprop:Generator_TablePropName="ProjectsSchedule" msprop:Generator_RowDeletingName="ProjectsScheduleRowDeleting" msprop:Generator_RowChangingName="ProjectsScheduleRowChanging" msprop:Generator_RowEvHandlerName="ProjectsScheduleRowChangeEventHandler" msprop:Generator_RowDeletedName="ProjectsScheduleRowDeleted" msprop:Generator_UserTableName="ProjectsSchedule" msprop:Generator_RowChangedName="ProjectsScheduleRowChanged" msprop:Generator_RowEvArgName="ProjectsScheduleRowChangeEvent" msprop:Generator_RowClassName="ProjectsScheduleRow">
<xs:element name="ProjectsSchedule" msprop:Generator_TableClassName="ProjectsScheduleDataTable" msprop:Generator_TableVarName="tableProjectsSchedule" msprop:Generator_RowChangedName="ProjectsScheduleRowChanged" msprop:Generator_TablePropName="ProjectsSchedule" msprop:Generator_RowDeletingName="ProjectsScheduleRowDeleting" msprop:Generator_RowChangingName="ProjectsScheduleRowChanging" msprop:Generator_RowEvHandlerName="ProjectsScheduleRowChangeEventHandler" msprop:Generator_RowDeletedName="ProjectsScheduleRowDeleted" msprop:Generator_RowClassName="ProjectsScheduleRow" msprop:Generator_UserTableName="ProjectsSchedule" msprop:Generator_RowEvArgName="ProjectsScheduleRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" />
@@ -1947,7 +1947,7 @@ SELECT idx, gcode, pdate, uid, description, description2, share, wuid, wdate FRO
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ProjectsHistory" msprop:Generator_TableClassName="ProjectsHistoryDataTable" msprop:Generator_TableVarName="tableProjectsHistory" msprop:Generator_TablePropName="ProjectsHistory" msprop:Generator_RowDeletingName="ProjectsHistoryRowDeleting" msprop:Generator_RowChangingName="ProjectsHistoryRowChanging" msprop:Generator_RowEvHandlerName="ProjectsHistoryRowChangeEventHandler" msprop:Generator_RowDeletedName="ProjectsHistoryRowDeleted" msprop:Generator_UserTableName="ProjectsHistory" msprop:Generator_RowChangedName="ProjectsHistoryRowChanged" msprop:Generator_RowEvArgName="ProjectsHistoryRowChangeEvent" msprop:Generator_RowClassName="ProjectsHistoryRow">
<xs:element name="ProjectsHistory" msprop:Generator_TableClassName="ProjectsHistoryDataTable" msprop:Generator_TableVarName="tableProjectsHistory" msprop:Generator_RowChangedName="ProjectsHistoryRowChanged" msprop:Generator_TablePropName="ProjectsHistory" msprop:Generator_RowDeletingName="ProjectsHistoryRowDeleting" msprop:Generator_RowChangingName="ProjectsHistoryRowChanging" msprop:Generator_RowEvHandlerName="ProjectsHistoryRowChangeEventHandler" msprop:Generator_RowDeletedName="ProjectsHistoryRowDeleted" msprop:Generator_RowClassName="ProjectsHistoryRow" msprop:Generator_UserTableName="ProjectsHistory" msprop:Generator_RowEvArgName="ProjectsHistoryRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" />
@@ -1985,7 +1985,7 @@ SELECT idx, gcode, pdate, uid, description, description2, share, wuid, wdate FRO
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="SPMaster" msprop:Generator_TableClassName="SPMasterDataTable" msprop:Generator_TableVarName="tableSPMaster" msprop:Generator_TablePropName="SPMaster" msprop:Generator_RowDeletingName="SPMasterRowDeleting" msprop:Generator_RowChangingName="SPMasterRowChanging" msprop:Generator_RowEvHandlerName="SPMasterRowChangeEventHandler" msprop:Generator_RowDeletedName="SPMasterRowDeleted" msprop:Generator_UserTableName="SPMaster" msprop:Generator_RowChangedName="SPMasterRowChanged" msprop:Generator_RowEvArgName="SPMasterRowChangeEvent" msprop:Generator_RowClassName="SPMasterRow">
<xs:element name="SPMaster" msprop:Generator_TableClassName="SPMasterDataTable" msprop:Generator_TableVarName="tableSPMaster" msprop:Generator_RowChangedName="SPMasterRowChanged" msprop:Generator_TablePropName="SPMaster" msprop:Generator_RowDeletingName="SPMasterRowDeleting" msprop:Generator_RowChangingName="SPMasterRowChanging" msprop:Generator_RowEvHandlerName="SPMasterRowChangeEventHandler" msprop:Generator_RowDeletedName="SPMasterRowDeleted" msprop:Generator_RowClassName="SPMasterRow" msprop:Generator_UserTableName="SPMaster" msprop:Generator_RowEvArgName="SPMasterRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="ID" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
@@ -2101,7 +2101,7 @@ SELECT idx, gcode, pdate, uid, description, description2, share, wuid, wdate FRO
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="EETGW_Note" msprop:Generator_TableClassName="EETGW_NoteDataTable" msprop:Generator_TableVarName="tableEETGW_Note" msprop:Generator_RowChangedName="EETGW_NoteRowChanged" msprop:Generator_TablePropName="EETGW_Note" msprop:Generator_RowDeletingName="EETGW_NoteRowDeleting" msprop:Generator_RowChangingName="EETGW_NoteRowChanging" msprop:Generator_RowEvHandlerName="EETGW_NoteRowChangeEventHandler" msprop:Generator_RowDeletedName="EETGW_NoteRowDeleted" msprop:Generator_RowClassName="EETGW_NoteRow" msprop:Generator_UserTableName="EETGW_Note" msprop:Generator_RowEvArgName="EETGW_NoteRowChangeEvent">
<xs:element name="EETGW_Note" msprop:Generator_TableClassName="EETGW_NoteDataTable" msprop:Generator_TableVarName="tableEETGW_Note" msprop:Generator_TablePropName="EETGW_Note" msprop:Generator_RowDeletingName="EETGW_NoteRowDeleting" msprop:Generator_RowChangingName="EETGW_NoteRowChanging" msprop:Generator_RowEvHandlerName="EETGW_NoteRowChangeEventHandler" msprop:Generator_RowDeletedName="EETGW_NoteRowDeleted" msprop:Generator_UserTableName="EETGW_Note" msprop:Generator_RowChangedName="EETGW_NoteRowChanged" msprop:Generator_RowEvArgName="EETGW_NoteRowChangeEvent" msprop:Generator_RowClassName="EETGW_NoteRow">
<xs:complexType>
<xs:sequence>
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" />
@@ -2152,12 +2152,12 @@ SELECT idx, gcode, pdate, uid, description, description2, share, wuid, wdate FRO
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="SCTable" msprop:Generator_TableClassName="SCTableDataTable" msprop:Generator_TableVarName="tableSCTable" msprop:Generator_TablePropName="SCTable" msprop:Generator_RowDeletingName="SCTableRowDeleting" msprop:Generator_RowChangingName="SCTableRowChanging" msprop:Generator_RowEvHandlerName="SCTableRowChangeEventHandler" msprop:Generator_RowDeletedName="SCTableRowDeleted" msprop:Generator_UserTableName="SCTable" msprop:Generator_RowChangedName="SCTableRowChanged" msprop:Generator_RowEvArgName="SCTableRowChangeEvent" msprop:Generator_RowClassName="SCTableRow">
<xs:element name="SCTable" msprop:Generator_TableClassName="SCTableDataTable" msprop:Generator_TableVarName="tableSCTable" msprop:Generator_RowChangedName="SCTableRowChanged" msprop:Generator_TablePropName="SCTable" msprop:Generator_RowDeletingName="SCTableRowDeleting" msprop:Generator_RowChangingName="SCTableRowChanging" msprop:Generator_RowEvHandlerName="SCTableRowChangeEventHandler" msprop:Generator_RowDeletedName="SCTableRowDeleted" msprop:Generator_RowClassName="SCTableRow" msprop:Generator_UserTableName="SCTable" msprop:Generator_RowEvArgName="SCTableRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="idx" msdata:AutoIncrement="true" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" />
<xs:element name="SID" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="SID" msprop:Generator_ColumnVarNameInTable="columnSID" msprop:Generator_ColumnPropNameInTable="SIDColumn" msprop:Generator_UserColumnName="SID" type="xs:string" minOccurs="0" />
<xs:element name="PName" msprop:Generator_ColumnVarNameInTable="columnPName" msprop:Generator_ColumnPropNameInRow="PName" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInTable="PNameColumn" msprop:Generator_UserColumnName="PName" type="xs:string" minOccurs="0" />
<xs:element name="PName" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="PName" msprop:Generator_ColumnVarNameInTable="columnPName" msprop:Generator_ColumnPropNameInTable="PNameColumn" msprop:Generator_UserColumnName="PName" type="xs:string" minOccurs="0" />
<xs:element name="Qty" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="Qty" msprop:Generator_ColumnVarNameInTable="columnQty" msprop:Generator_ColumnPropNameInTable="QtyColumn" msprop:Generator_UserColumnName="Qty" type="xs:int" minOccurs="0" />
<xs:element name="Price" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="Price" msprop:Generator_ColumnVarNameInTable="columnPrice" msprop:Generator_ColumnPropNameInTable="PriceColumn" msprop:Generator_UserColumnName="Price" type="xs:decimal" minOccurs="0" />
<xs:element name="PO" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="PO" msprop:Generator_ColumnVarNameInTable="columnPO" msprop:Generator_ColumnPropNameInTable="POColumn" msprop:Generator_UserColumnName="PO" type="xs:string" minOccurs="0" />

View File

@@ -4,7 +4,7 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="-10" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="723" ViewPortY="-10" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:Projects" ZOrder="11" X="70" Y="70" Height="514" Width="275" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="389" />
<Shape ID="DesignTable:ProjectsIOMap" ZOrder="10" X="366" Y="70" Height="229" Width="231" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />

View File

@@ -1,443 +1,443 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using util = FCOMMON.Util;
using NetOffice;
using Outlook = NetOffice.OutlookApi;
using NetOffice.OutlookApi.Enums;
namespace FPJ0000
{
public partial class fMailSend : FCOMMON.fBase
{
string fn_fpcolsize = "";
List<int> idxlist = new List<int>();
public fMailSend(List<int> idxlist_)
{
InitializeComponent();
this.idxlist = idxlist_;
//이 목록에 해당하는 프로젝트 정보를 저장한다.
dsPRJTableAdapters.ProjectsTableAdapter taproj = new dsPRJTableAdapters.ProjectsTableAdapter();
dsPRJTableAdapters.ProjectsMailListTableAdapter tamail = new dsPRJTableAdapters.ProjectsMailListTableAdapter();
dsMailTableAdapters.MailFormTableAdapter taform = new dsMailTableAdapters.MailFormTableAdapter();
// dsPRJTableAdapters.ProjectsHistoryTableAdapter taHist = new dsPRJTableAdapters.ProjectsHistoryTableAdapter();
var mailformDt = taform.GetData("PM");
dsMail.MailFormRow drForm = null;
if (mailformDt != null && mailformDt.Rows.Count > 0) drForm = mailformDt.Rows[0] as dsMail.MailFormRow;
foreach (var pidx in idxlist_)
{
if (pidx < 0) continue;
var prjdt = taproj.GetbyIDX(pidx);
string updateHistory = "<ul>";
var dtHIst = taHist.GetbySendMail(pidx);
int histCnt = 0;
if (dtHIst != null)
{
foreach (dsPRJ.ProjectsHistoryRow drhist in dtHIst.Rows)
{
if (drhist.remark.Trim() == "") continue;
histCnt += 1;
updateHistory += "<li>["+drhist.pdate + "] " + drhist.remark + "</li>";
}
}
updateHistory += "</ul>";
if(histCnt < 1)
{
FCOMMON.Util.MsgE("프로젝트:" + pidx.ToString() + "의 변경사항이 존재하지 않습니다.");
continue;
}
var newdr = this.dsMail.MailData.NewMailDataRow();
newdr.project = pidx;
newdr.wuid = FCOMMON.info.Login.no;
newdr.wdate = DateTime.Now;
newdr.cate = "PM";
newdr.pdate = DateTime.Now.ToShortDateString();
dsPRJ.ProjectsRow prjdr = null;
//양식의 제목과 본문을 업데이트
if (drForm != null)
{
newdr.subject = drForm.subject;
newdr.body = drForm.body;
}
if (prjdt != null && prjdt.Rows.Count > 0)
{
prjdr = prjdt.Rows[0] as dsPRJ.ProjectsRow;
newdr.prj_ddate = prjdr.ddate;
newdr.prj_name = prjdr.name;
newdr.prj_status = prjdr.status;
newdr.subject = string.Format(newdr.subject, prjdr.name, prjdr.status, prjdr.ddate, updateHistory);
newdr.body = string.Format(newdr.body, prjdr.name, prjdr.status, prjdr.ddate, updateHistory);
}
//메일전송대상 정보를 불러온다.
var maillist = tamail.GetData(pidx);
if (maillist != null && maillist.Rows.Count > 0)
{
//양식의 tolist/cc/bcc 추가
if (drForm != null)
{
var buffer = drForm.tolist.Split(';');
foreach (var address in buffer)
{
if (address.Trim() == "") continue;
if (newdr.tolist.Contains(address) == false)
{
if (newdr.tolist != "") newdr.tolist += ";";
newdr.tolist += address;
}
}
buffer = drForm.cc.Split(';');
foreach (var address in buffer)
{
if (address.Trim() == "") continue;
if (newdr.cc.Contains(address) == false)
{
if (newdr.cc != "") newdr.cc += ";";
newdr.cc += address;
}
}
buffer = drForm.bcc.Split(';');
foreach (var address in buffer)
{
if (address.Trim() == "") continue;
if (newdr.bcc.Contains(address) == false)
{
if (newdr.bcc != "") newdr.bcc += ";";
newdr.bcc += address;
}
}
}
foreach (dsPRJ.ProjectsMailListRow drmail in maillist.Rows)
{
if (drmail.div == "TO")
{
if (newdr.tolist.Contains(drmail.address) == false)
{
if (newdr.tolist != "") newdr.tolist += ";";
newdr.tolist += drmail.address;
}
}
else if (drmail.div == "CC")
{
if (newdr.cc.Contains(drmail.address) == false)
{
if (newdr.cc != "") newdr.cc += ";";
newdr.cc += drmail.address;
}
}
else if (drmail.div == "BCC")
{
if (newdr.bcc.Contains(drmail.address) == false)
{
if (newdr.bcc != "") newdr.bcc += ";";
newdr.bcc += drmail.address;
}
}
}
}
//메일전송 폼을 불러온다.
this.dsMail.MailData.AddMailDataRow(newdr);
}
}
private void fPartList_Load(object sender, EventArgs e)
{
fn_fpcolsize = util.MakeFilePath(util.CurrentPath, "formSetting", "fp_" + this.Name + ".ini");
this.FormClosed += fPartList_FormClosed;
this.KeyPreview = true;
this.KeyDown += fPartList_KeyDown;
//RefreshData();
FPUtil.ColSizeLoad(ref this.fpSpread1, fn_fpcolsize);
}
void fPartList_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Escape) this.Close();
}
void fPartList_FormClosed(object sender, FormClosedEventArgs e)
{
}
void RefreshData()
{
//if(dsPRJ.HasChanges())
//{
// var dlg = FCOMMON.Util.MsgQ("변경 사항이 있습니다. 갱신하면 변경 내용이 손실 됩니다.\n지금 갱신 하겠습니까?");
// if (dlg != System.Windows.Forms.DialogResult.Yes) return;
//}
try
{
this.ta.Fill(this.dsMail.MailData);
}
catch (Exception ex)
{
FCOMMON.Util.MsgE(ex.Message);
}
}
private void exportListToolStripMenuItem_Click(object sender, EventArgs e)
{
SaveFileDialog sd = new SaveFileDialog();
sd.Filter = "excel|*.xls";
if (sd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
fpSpread1.SaveExcel(sd.FileName,
FarPoint.Excel.ExcelSaveFlags.SaveAsViewed
| FarPoint.Excel.ExcelSaveFlags.SaveAsFiltered
| FarPoint.Excel.ExcelSaveFlags.NoFormulas
| FarPoint.Excel.ExcelSaveFlags.SaveCustomColumnHeaders);
}
//dv1.ExportData("partlist.csv");
}
private void autoToolStripMenuItem_Click(object sender, EventArgs e)
{
this.fpSpread1.ActiveSheet.DataAutoSizeColumns = true;
for (int i = 0; i < this.fpSpread1.ActiveSheet.Rows.Count; i++)
this.fpSpread1.ActiveSheet.SetRowHeight(i, 25);
//dv1.AutoResizeColumns();
}
private void resetToolStripMenuItem_Click(object sender, EventArgs e)
{
foreach (FarPoint.Win.Spread.Column col in this.fpSpread1.ActiveSheet.Columns)
{
col.Width = 100;
}
}
private void saveToolStripMenuItem_Click(object sender, EventArgs e)
{
FPUtil.ColsizeSave(this.fpSpread1, fn_fpcolsize);
}
private void loadToolStripMenuItem_Click(object sender, EventArgs e)
{
FPUtil.ColSizeLoad(ref this.fpSpread1, fn_fpcolsize);
}
private void fpSpread1_EditModeOff(object sender, EventArgs e)
{
int Colidx = this.fpSpread1.ActiveSheet.ActiveColumnIndex;
int Rowidx = this.fpSpread1.ActiveSheet.ActiveRowIndex;
var taItem = new FCM0000.dsMSSQLTableAdapters.ItemsTableAdapter();
}
private void btRefresh_Click(object sender, EventArgs e)
{
RefreshData();
}
private void toolStripButton1_Click(object sender, EventArgs e)
{
this.Validate();
this.bs.EndEdit();
//아웃룩에서 데이터를 표시한다.
var drv = this.bs.Current as DataRowView;
if (drv == null) return;
var dr = drv.Row as dsMail.MailDataRow;
//이 데이터로 발송된 메일이 있는지 체크한다.
dsMailTableAdapters.MailDataTableAdapter taMailData = new dsMailTableAdapters.MailDataTableAdapter();
var dtPreData = taMailData.GetbyProject(dr.project);
if (dtPreData != null && dtPreData.Rows.Count > 0)
{
var predataOne = dtPreData.Rows[0] as dsMail.MailDataRow;
var dlgexist = FCOMMON.Util.MsgQ("해당 프로젝트는 " + predataOne.pdate + "에 메일이 발송된 기록이 있습니다.\n\n" +
"Prject:" + predataOne.subject + "\n\n" +
"To:" + predataOne.tolist + "\n" +
"CC:" + predataOne.cc + "\n\n" +
"그래도 메일을 보내시겠습니까?");
if (dlgexist != System.Windows.Forms.DialogResult.Yes) return;
}
var dlg = FCOMMON.Util.MsgQ("프로젝트의 알림 메일을 전송 하시겠습니까?\n\n" +
dr.subject + "\n\n" +
"To:" + dr.tolist + "\n" +
"CC:" + dr.cc + "\n" +
"BCC:" + dr.bcc);
if (dlg != System.Windows.Forms.DialogResult.Yes) return;
Outlook.Application outlookApplication = new Outlook.Application();
var newMail = outlookApplication.CreateItem(OlItemType.olMailItem) as Outlook.MailItem;
newMail.Display();
newMail.Subject = dr.subject; // this.tbSubject.Text.Trim(); // dr.title;
newMail.To = dr.tolist; // to;
newMail.CC = dr.cc;// tbCC.Text.Trim();
newMail.BCC = dr.bcc; // tbBCC.Text.Trim();
// newMail.BodyFormat = OlBodyFormat.olFormatHTML;
newMail.HTMLBody = dr.body + newMail.HTMLBody; //
newMail.Send();
FCOMMON.Util.MsgI("메일이 전송되었습니다.\n\n전송된 메일은 아웃룩의 보낸편지함 혹은 그룹웨어의 보낸편지함에서 확인할 수 있습니다.");
try
{
this.taHist.UpdateMailSend(dr.project);
}
catch (Exception ex)
{
FCOMMON.Util.MsgE("MailSend Update Error\n\n" + ex.Message);
}
try
{
this.ta.Update(dr);
dr.AcceptChanges();
}
catch (Exception ex)
{
FCOMMON.Util.MsgE("전송 결과 저장 오류\n\n" + ex.Message);
}
}
private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e)
{
}
private void toolStripButton3_Click(object sender, EventArgs e)
{
string msg = bs.Count.ToString() + "건의 메일을 일괄 전송 하시겠습니까?\n\n" +
"전송은 아웃룩을 통해서 진행되므로 아웃룩이 보낼수 있는 상태인지 확인하시기 바랍니다";
var dlg = FCOMMON.Util.MsgQ(msg);
if (dlg != System.Windows.Forms.DialogResult.Yes) return;
//프로그레스바
this.prb1.Maximum = this.bs.Count;
this.prb1.Minimum = 0;
this.prb1.Value = 0;
Outlook.Application outlookApplication = new Outlook.Application();
int cntSend = 0;
foreach (dsMail.MailDataRow dr in this.dsMail.MailData.Rows)
{
if (prb1.Value < prb1.Maximum) prb1.Value += 1;
if (dr.tolist.Trim() == "")
{
FCOMMON.Util.MsgE("받을 주소가 없어서 진행하지 않습니다\n" + dr.subject);
continue;
}
//이 데이터로 발송된 메일이 있는지 체크한다.
dsMailTableAdapters.MailDataTableAdapter taMailData = new dsMailTableAdapters.MailDataTableAdapter();
var dtPreData = taMailData.GetbyProject(dr.project);
if (dtPreData != null && dtPreData.Rows.Count > 0)
{
var predataOne = dtPreData.Rows[0] as dsMail.MailDataRow;
var dlgexist = FCOMMON.Util.MsgQ("해당 프로젝트는 " + predataOne.pdate + "에 메일이 발송된 기록이 있습니다.\n\n" +
"Prject:" + predataOne.subject + "\n\n" +
"To:" + predataOne.tolist + "\n" +
"CC:" + predataOne.cc + "\n\n" +
"그래도 메일을 보내시겠습니까?");
if (dlgexist != System.Windows.Forms.DialogResult.Yes) continue;
}
var newMail = outlookApplication.CreateItem(OlItemType.olMailItem) as Outlook.MailItem;
newMail.Display();
newMail.Subject = dr.subject;
newMail.To = dr.tolist;// to;
newMail.CC = dr.cc;// tbCC.Text.Trim();
newMail.BCC = dr.bcc;// tbBCC.Text.Trim();
// newMail.BodyFormat = OlBodyFormat.olFormatHTML;
newMail.HTMLBody = dr.body + newMail.HTMLBody; //
newMail.Send();
cntSend += 1;
try
{
this.taHist.UpdateMailSend(dr.project);
}
catch (Exception ex)
{
FCOMMON.Util.MsgE("MailSend Update Error\n\n" + ex.Message);
}
try
{
dr.EndEdit();
ta.Update(dr);
dr.AcceptChanges();
}
catch (Exception ex)
{
FCOMMON.Util.MsgE("메일 전송 오류\n\n" + ex.Message);
}
}
FCOMMON.Util.MsgI(cntSend.ToString() + " 건의 메일이 전송되었습니다.\n\n전송된 메일은 아웃룩의 보낸편지함 혹은 그룹웨어의 보낸편지함에서 확인할 수 있습니다.");
}
private void toolStripButton2_Click(object sender, EventArgs e)
{
//아웃룩에서 데이터를 표시한다.
var drv = this.bs.Current as DataRowView;
if (drv == null) return;
var dr = drv.Row as dsMail.MailDataRow;
try
{
Outlook.Application outlookApplication = new Outlook.Application();
var newMail = outlookApplication.CreateItem(OlItemType.olMailItem) as Outlook.MailItem;
newMail.Display();
newMail.Subject = dr.subject; // this.tbSubject.Text.Trim(); // dr.title;
newMail.To = dr.tolist; // to;
newMail.CC = dr.cc;// tbCC.Text.Trim();
newMail.BCC = dr.bcc; // tbBCC.Text.Trim();
// newMail.BodyFormat = OlBodyFormat.olFormatHTML;
newMail.HTMLBody = dr.body + newMail.HTMLBody; //
}
catch (Exception ex)
{
util.MsgE("전송실패\n\n" + ex.Message + "\n\n" +
"아웃룩의 설정이 정상인지 확인하세요");
}
}
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using util = FCOMMON.Util;
using NetOffice;
using Outlook = NetOffice.OutlookApi;
using NetOffice.OutlookApi.Enums;
namespace FPJ0000
{
public partial class fMailSend : FCOMMON.fBase
{
string fn_fpcolsize = "";
List<int> idxlist = new List<int>();
public fMailSend(List<int> idxlist_)
{
InitializeComponent();
this.idxlist = idxlist_;
//이 목록에 해당하는 프로젝트 정보를 저장한다.
dsPRJTableAdapters.ProjectsTableAdapter taproj = new dsPRJTableAdapters.ProjectsTableAdapter();
dsPRJTableAdapters.ProjectsMailListTableAdapter tamail = new dsPRJTableAdapters.ProjectsMailListTableAdapter();
dsMailTableAdapters.MailFormTableAdapter taform = new dsMailTableAdapters.MailFormTableAdapter();
// dsPRJTableAdapters.ProjectsHistoryTableAdapter taHist = new dsPRJTableAdapters.ProjectsHistoryTableAdapter();
var mailformDt = taform.GetData("PM");
dsMail.MailFormRow drForm = null;
if (mailformDt != null && mailformDt.Rows.Count > 0) drForm = mailformDt.Rows[0] as dsMail.MailFormRow;
foreach (var pidx in idxlist_)
{
if (pidx < 0) continue;
var prjdt = taproj.GetbyIDX(pidx);
string updateHistory = "<ul>";
var dtHIst = taHist.GetbySendMail(pidx);
int histCnt = 0;
if (dtHIst != null)
{
foreach (dsPRJ.ProjectsHistoryRow drhist in dtHIst.Rows)
{
if (drhist.remark.Trim() == "") continue;
histCnt += 1;
updateHistory += "<li>["+drhist.pdate + "] " + drhist.remark + "</li>";
}
}
updateHistory += "</ul>";
if(histCnt < 1)
{
FCOMMON.Util.MsgE("프로젝트:" + pidx.ToString() + "의 변경사항이 존재하지 않습니다.");
continue;
}
var newdr = this.dsMail.MailData.NewMailDataRow();
newdr.project = pidx;
newdr.wuid = FCOMMON.info.Login.no;
newdr.wdate = DateTime.Now;
newdr.cate = "PM";
newdr.pdate = DateTime.Now.ToShortDateString();
dsPRJ.ProjectsRow prjdr = null;
//양식의 제목과 본문을 업데이트
if (drForm != null)
{
newdr.subject = drForm.subject;
newdr.body = drForm.body;
}
if (prjdt != null && prjdt.Rows.Count > 0)
{
prjdr = prjdt.Rows[0] as dsPRJ.ProjectsRow;
newdr.prj_ddate = prjdr.ddate;
newdr.prj_name = prjdr.name;
newdr.prj_status = prjdr.status;
newdr.subject = string.Format(newdr.subject, prjdr.name, prjdr.status, prjdr.ddate, updateHistory);
newdr.body = string.Format(newdr.body, prjdr.name, prjdr.status, prjdr.ddate, updateHistory);
}
//메일전송대상 정보를 불러온다.
var maillist = tamail.GetData(pidx);
if (maillist != null && maillist.Rows.Count > 0)
{
//양식의 tolist/cc/bcc 추가
if (drForm != null)
{
var buffer = drForm.tolist.Split(';');
foreach (var address in buffer)
{
if (address.Trim() == "") continue;
if (newdr.tolist.Contains(address) == false)
{
if (newdr.tolist != "") newdr.tolist += ";";
newdr.tolist += address;
}
}
buffer = drForm.cc.Split(';');
foreach (var address in buffer)
{
if (address.Trim() == "") continue;
if (newdr.cc.Contains(address) == false)
{
if (newdr.cc != "") newdr.cc += ";";
newdr.cc += address;
}
}
buffer = drForm.bcc.Split(';');
foreach (var address in buffer)
{
if (address.Trim() == "") continue;
if (newdr.bcc.Contains(address) == false)
{
if (newdr.bcc != "") newdr.bcc += ";";
newdr.bcc += address;
}
}
}
foreach (dsPRJ.ProjectsMailListRow drmail in maillist.Rows)
{
if (drmail.div == "TO")
{
if (newdr.tolist.Contains(drmail.address) == false)
{
if (newdr.tolist != "") newdr.tolist += ";";
newdr.tolist += drmail.address;
}
}
else if (drmail.div == "CC")
{
if (newdr.cc.Contains(drmail.address) == false)
{
if (newdr.cc != "") newdr.cc += ";";
newdr.cc += drmail.address;
}
}
else if (drmail.div == "BCC")
{
if (newdr.bcc.Contains(drmail.address) == false)
{
if (newdr.bcc != "") newdr.bcc += ";";
newdr.bcc += drmail.address;
}
}
}
}
//메일전송 폼을 불러온다.
this.dsMail.MailData.AddMailDataRow(newdr);
}
}
private void fPartList_Load(object sender, EventArgs e)
{
fn_fpcolsize = util.MakeFilePath(util.CurrentPath, "formSetting", "fp_" + this.Name + ".ini");
this.FormClosed += fPartList_FormClosed;
this.KeyPreview = true;
this.KeyDown += fPartList_KeyDown;
//RefreshData();
FPUtil.ColSizeLoad(ref this.fpSpread1, fn_fpcolsize);
}
void fPartList_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Escape) this.Close();
}
void fPartList_FormClosed(object sender, FormClosedEventArgs e)
{
}
void RefreshData()
{
//if(dsPRJ.HasChanges())
//{
// var dlg = FCOMMON.Util.MsgQ("변경 사항이 있습니다. 갱신하면 변경 내용이 손실 됩니다.\n지금 갱신 하겠습니까?");
// if (dlg != System.Windows.Forms.DialogResult.Yes) return;
//}
try
{
this.ta.Fill(this.dsMail.MailData);
}
catch (Exception ex)
{
FCOMMON.Util.MsgE(ex.Message);
}
}
private void exportListToolStripMenuItem_Click(object sender, EventArgs e)
{
SaveFileDialog sd = new SaveFileDialog();
sd.Filter = "excel|*.xls";
if (sd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
fpSpread1.SaveExcel(sd.FileName,
FarPoint.Excel.ExcelSaveFlags.SaveAsViewed
| FarPoint.Excel.ExcelSaveFlags.SaveAsFiltered
| FarPoint.Excel.ExcelSaveFlags.NoFormulas
| FarPoint.Excel.ExcelSaveFlags.SaveCustomColumnHeaders);
}
//dv1.ExportData("partlist.csv");
}
private void autoToolStripMenuItem_Click(object sender, EventArgs e)
{
this.fpSpread1.ActiveSheet.DataAutoSizeColumns = true;
for (int i = 0; i < this.fpSpread1.ActiveSheet.Rows.Count; i++)
this.fpSpread1.ActiveSheet.SetRowHeight(i, 25);
//dv1.AutoResizeColumns();
}
private void resetToolStripMenuItem_Click(object sender, EventArgs e)
{
foreach (FarPoint.Win.Spread.Column col in this.fpSpread1.ActiveSheet.Columns)
{
col.Width = 100;
}
}
private void saveToolStripMenuItem_Click(object sender, EventArgs e)
{
FPUtil.ColsizeSave(this.fpSpread1, fn_fpcolsize);
}
private void loadToolStripMenuItem_Click(object sender, EventArgs e)
{
FPUtil.ColSizeLoad(ref this.fpSpread1, fn_fpcolsize);
}
private void fpSpread1_EditModeOff(object sender, EventArgs e)
{
int Colidx = this.fpSpread1.ActiveSheet.ActiveColumnIndex;
int Rowidx = this.fpSpread1.ActiveSheet.ActiveRowIndex;
var taItem = new FCM0000.dsMSSQLTableAdapters.ItemsTableAdapter();
}
private void btRefresh_Click(object sender, EventArgs e)
{
RefreshData();
}
private void toolStripButton1_Click(object sender, EventArgs e)
{
this.Validate();
this.bs.EndEdit();
//아웃룩에서 데이터를 표시한다.
var drv = this.bs.Current as DataRowView;
if (drv == null) return;
var dr = drv.Row as dsMail.MailDataRow;
//이 데이터로 발송된 메일이 있는지 체크한다.
dsMailTableAdapters.MailDataTableAdapter taMailData = new dsMailTableAdapters.MailDataTableAdapter();
var dtPreData = taMailData.GetbyProject(dr.project);
if (dtPreData != null && dtPreData.Rows.Count > 0)
{
var predataOne = dtPreData.Rows[0] as dsMail.MailDataRow;
var dlgexist = FCOMMON.Util.MsgQ("해당 프로젝트는 " + predataOne.pdate + "에 메일이 발송된 기록이 있습니다.\n\n" +
"Prject:" + predataOne.subject + "\n\n" +
"To:" + predataOne.tolist + "\n" +
"CC:" + predataOne.cc + "\n\n" +
"그래도 메일을 보내시겠습니까?");
if (dlgexist != System.Windows.Forms.DialogResult.Yes) return;
}
var dlg = FCOMMON.Util.MsgQ("프로젝트의 알림 메일을 전송 하시겠습니까?\n\n" +
dr.subject + "\n\n" +
"To:" + dr.tolist + "\n" +
"CC:" + dr.cc + "\n" +
"BCC:" + dr.bcc);
if (dlg != System.Windows.Forms.DialogResult.Yes) return;
Outlook.Application outlookApplication = new Outlook.Application();
var newMail = outlookApplication.CreateItem(OlItemType.olMailItem) as Outlook.MailItem;
newMail.Display();
newMail.Subject = dr.subject; // this.tbSubject.Text.Trim(); // dr.title;
newMail.To = dr.tolist; // to;
newMail.CC = dr.cc;// tbCC.Text.Trim();
newMail.BCC = dr.bcc; // tbBCC.Text.Trim();
// newMail.BodyFormat = OlBodyFormat.olFormatHTML;
newMail.HTMLBody = dr.body + newMail.HTMLBody; //
newMail.Send();
FCOMMON.Util.MsgI("메일이 전송되었습니다.\n\n전송된 메일은 아웃룩의 보낸편지함 혹은 그룹웨어의 보낸편지함에서 확인할 수 있습니다.");
try
{
this.taHist.UpdateMailSend(dr.project);
}
catch (Exception ex)
{
FCOMMON.Util.MsgE("MailSend Update Error\n\n" + ex.Message);
}
try
{
this.ta.Update(dr);
dr.AcceptChanges();
}
catch (Exception ex)
{
FCOMMON.Util.MsgE("전송 결과 저장 오류\n\n" + ex.Message);
}
}
private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e)
{
}
private void toolStripButton3_Click(object sender, EventArgs e)
{
string msg = bs.Count.ToString() + "건의 메일을 일괄 전송 하시겠습니까?\n\n" +
"전송은 아웃룩을 통해서 진행되므로 아웃룩이 보낼수 있는 상태인지 확인하시기 바랍니다";
var dlg = FCOMMON.Util.MsgQ(msg);
if (dlg != System.Windows.Forms.DialogResult.Yes) return;
//프로그레스바
this.prb1.Maximum = this.bs.Count;
this.prb1.Minimum = 0;
this.prb1.Value = 0;
Outlook.Application outlookApplication = new Outlook.Application();
int cntSend = 0;
foreach (dsMail.MailDataRow dr in this.dsMail.MailData.Rows)
{
if (prb1.Value < prb1.Maximum) prb1.Value += 1;
if (dr.tolist.Trim() == "")
{
FCOMMON.Util.MsgE("받을 주소가 없어서 진행하지 않습니다\n" + dr.subject);
continue;
}
//이 데이터로 발송된 메일이 있는지 체크한다.
dsMailTableAdapters.MailDataTableAdapter taMailData = new dsMailTableAdapters.MailDataTableAdapter();
var dtPreData = taMailData.GetbyProject(dr.project);
if (dtPreData != null && dtPreData.Rows.Count > 0)
{
var predataOne = dtPreData.Rows[0] as dsMail.MailDataRow;
var dlgexist = FCOMMON.Util.MsgQ("해당 프로젝트는 " + predataOne.pdate + "에 메일이 발송된 기록이 있습니다.\n\n" +
"Prject:" + predataOne.subject + "\n\n" +
"To:" + predataOne.tolist + "\n" +
"CC:" + predataOne.cc + "\n\n" +
"그래도 메일을 보내시겠습니까?");
if (dlgexist != System.Windows.Forms.DialogResult.Yes) continue;
}
var newMail = outlookApplication.CreateItem(OlItemType.olMailItem) as Outlook.MailItem;
newMail.Display();
newMail.Subject = dr.subject;
newMail.To = dr.tolist;// to;
newMail.CC = dr.cc;// tbCC.Text.Trim();
newMail.BCC = dr.bcc;// tbBCC.Text.Trim();
// newMail.BodyFormat = OlBodyFormat.olFormatHTML;
newMail.HTMLBody = dr.body + newMail.HTMLBody; //
newMail.Send();
cntSend += 1;
try
{
this.taHist.UpdateMailSend(dr.project);
}
catch (Exception ex)
{
FCOMMON.Util.MsgE("MailSend Update Error\n\n" + ex.Message);
}
try
{
dr.EndEdit();
ta.Update(dr);
dr.AcceptChanges();
}
catch (Exception ex)
{
FCOMMON.Util.MsgE("메일 전송 오류\n\n" + ex.Message);
}
}
FCOMMON.Util.MsgI(cntSend.ToString() + " 건의 메일이 전송되었습니다.\n\n전송된 메일은 아웃룩의 보낸편지함 혹은 그룹웨어의 보낸편지함에서 확인할 수 있습니다.");
}
private void toolStripButton2_Click(object sender, EventArgs e)
{
//아웃룩에서 데이터를 표시한다.
var drv = this.bs.Current as DataRowView;
if (drv == null) return;
var dr = drv.Row as dsMail.MailDataRow;
try
{
Outlook.Application outlookApplication = new Outlook.Application();
var newMail = outlookApplication.CreateItem(OlItemType.olMailItem) as Outlook.MailItem;
newMail.Display();
newMail.Subject = dr.subject; // this.tbSubject.Text.Trim(); // dr.title;
newMail.To = dr.tolist; // to;
newMail.CC = dr.cc;// tbCC.Text.Trim();
newMail.BCC = dr.bcc; // tbBCC.Text.Trim();
// newMail.BodyFormat = OlBodyFormat.olFormatHTML;
newMail.HTMLBody = dr.body + newMail.HTMLBody; //
}
catch (Exception ex)
{
util.MsgE("전송실패\n\n" + ex.Message + "\n\n" +
"아웃룩의 설정이 정상인지 확인하세요");
}
}
}
}