파트리스트 가져오기 기능

파트리스트 구매등록 기능
This commit is contained in:
chikyun.kim
2019-05-17 17:30:51 +09:00
parent 736aaeb6d2
commit 3336898dc0
39 changed files with 10917 additions and 6033 deletions

View File

@@ -109,11 +109,11 @@
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.btViewDel = new System.Windows.Forms.ToolStripButton();
this.toolStripButton3 = new System.Windows.Forms.ToolStripDropDownButton();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
this.fpSpread1 = new FarPoint.Win.Spread.FpSpread();
this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator();
this.toolStripButton1 = new System.Windows.Forms.ToolStripDropDownButton();
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();
@@ -171,7 +171,9 @@
this.toolStripLabel5,
this.toolStripLabel2,
this.tbFind,
this.btFind});
this.btFind,
this.toolStripSeparator6,
this.toolStripButton1});
this.bn.Location = new System.Drawing.Point(0, 639);
this.bn.MoveFirstItem = this.bindingNavigatorMoveFirstItem;
this.bn.MoveLastItem = this.bindingNavigatorMoveLastItem;
@@ -348,7 +350,7 @@
this.CustomDataCopyToolStripMenuItem,
this.toolStripMenuItem4});
this.cm1.Name = "contextMenuStrip1";
this.cm1.Size = new System.Drawing.Size(317, 164);
this.cm1.Size = new System.Drawing.Size(317, 142);
//
// columnSizeToolStripMenuItem
//
@@ -358,7 +360,7 @@
this.saveToolStripMenuItem,
this.loadToolStripMenuItem});
this.columnSizeToolStripMenuItem.Name = "columnSizeToolStripMenuItem";
this.columnSizeToolStripMenuItem.Size = new System.Drawing.Size(336, 42);
this.columnSizeToolStripMenuItem.Size = new System.Drawing.Size(316, 42);
this.columnSizeToolStripMenuItem.Text = "Column Size";
//
// autoToolStripMenuItem
@@ -396,21 +398,21 @@
// exportDataToolStripMenuItem
//
this.exportDataToolStripMenuItem.Name = "exportDataToolStripMenuItem";
this.exportDataToolStripMenuItem.Size = new System.Drawing.Size(336, 42);
this.exportDataToolStripMenuItem.Size = new System.Drawing.Size(316, 42);
this.exportDataToolStripMenuItem.Text = "Export List";
this.exportDataToolStripMenuItem.Click += new System.EventHandler(this.exportDataToolStripMenuItem_Click);
//
// toolStripMenuItem3
//
this.toolStripMenuItem3.Name = "toolStripMenuItem3";
this.toolStripMenuItem3.Size = new System.Drawing.Size(333, 6);
this.toolStripMenuItem3.Size = new System.Drawing.Size(313, 6);
//
// ㅕCustomDataCopyToolStripMenuItem
//
this.CustomDataCopyToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.copyToolStripMenuItem});
this.CustomDataCopyToolStripMenuItem.Name = "ㅕCustomDataCopyToolStripMenuItem";
this.CustomDataCopyToolStripMenuItem.Size = new System.Drawing.Size(336, 42);
this.CustomDataCopyToolStripMenuItem.Size = new System.Drawing.Size(316, 42);
this.CustomDataCopyToolStripMenuItem.Text = "Custom ClipBoard";
//
// copyToolStripMenuItem
@@ -423,7 +425,7 @@
// toolStripMenuItem4
//
this.toolStripMenuItem4.Name = "toolStripMenuItem4";
this.toolStripMenuItem4.Size = new System.Drawing.Size(333, 6);
this.toolStripMenuItem4.Size = new System.Drawing.Size(313, 6);
//
// toolStrip1
//
@@ -443,9 +445,7 @@
this.btSearch,
this.toolStripSeparator5,
this.toolStripDropDownButton1,
this.btViewDel,
this.toolStripButton3,
this.toolStripButton2});
this.btViewDel});
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(1074, 31);
@@ -585,32 +585,6 @@
this.btViewDel.Text = "삭제자료표시";
this.btViewDel.Click += new System.EventHandler(this.btViewDel_Click);
//
// toolStripButton3
//
this.toolStripButton3.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.ToolStripMenuItem});
this.toolStripButton3.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton3.Image")));
this.toolStripButton3.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton3.Name = "toolStripButton3";
this.toolStripButton3.Size = new System.Drawing.Size(68, 28);
this.toolStripButton3.Text = "출력";
//
// 집계ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "집계ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(98, 22);
this.ToolStripMenuItem.Text = "집계";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// toolStripButton2
//
this.toolStripButton2.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton2.Image")));
this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton2.Name = "toolStripButton2";
this.toolStripButton2.Size = new System.Drawing.Size(56, 28);
this.toolStripButton2.Text = "Test";
this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click_1);
//
// fpSpread1
//
this.fpSpread1.AccessibleDescription = "";
@@ -840,6 +814,28 @@
this.fpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false;
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1;
//
// toolStripSeparator6
//
this.toolStripSeparator6.Name = "toolStripSeparator6";
this.toolStripSeparator6.Size = new System.Drawing.Size(6, 26);
//
// toolStripButton1
//
this.toolStripButton1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.ToolStripMenuItem});
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(72, 23);
this.toolStripButton1.Text = "보고서";
//
// 집계표ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "집계표ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
this.ToolStripMenuItem.Text = "집계표";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// fPurchase
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -919,9 +915,6 @@
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripButton btViewDel;
private System.Windows.Forms.ToolStripButton toolStripButton2;
private System.Windows.Forms.ToolStripDropDownButton toolStripButton3;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator4;
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem3;
private System.Windows.Forms.ToolStripMenuItem CustomDataCopyToolStripMenuItem;
@@ -929,5 +922,8 @@
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem4;
private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1;
private System.Windows.Forms.ToolStripButton btCopy;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator6;
private System.Windows.Forms.ToolStripDropDownButton toolStripButton1;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
}
}

View File

@@ -92,7 +92,7 @@ namespace FEQ0000
cmbState.Items.Add(item.Value);
cmbState.Items.Add("<=Received");
this.cmbState.SelectedIndex = 0; //all기본 - 양진원
//this.cmbCr.SelectedIndex = 1;
//일반사용자의경우에는 상태를 변경하지 못한다.
int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAutoType.purchase));
@@ -115,7 +115,7 @@ namespace FEQ0000
if(curLevel < 9)
{
toolStripButton2.Visible = false;
ToolStripMenuItem.Visible = false;
}
refreshData();
@@ -142,6 +142,8 @@ namespace FEQ0000
" from purchase " +
" where isnull(" + dateField + ",'') between @sd and @ed ";
if (btViewDel.Checked == false)
cmd.CommandText += " and isnull(isdel,0) = 0";
@@ -238,8 +240,8 @@ namespace FEQ0000
this.bs.EndEdit();
try
{
this.tam.UpdateAll(this.dsPurchase);
if(prompt) FCOMMON.Util.MsgI("저장 성공");
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);
@@ -250,8 +252,10 @@ namespace FEQ0000
void showSummary()
{
decimal sum = 0;
foreach (dsPurchase.PurchaseRow dr in this.dsPurchase.Purchase.Rows)
if (!dr.IspumamtNull()) sum += dr.pumamt;
var list = this.dsPurchase.Purchase.Select(this.bs.Filter, "") as dsPurchase.PurchaseRow[];
sum = list.Sum(t => t.pumamt);
//foreach (dsPurchase.PurchaseRow dr in this.dsPurchase.Purchase.Rows)
//if (!dr.IspumamtNull()) sum += dr.pumamt;
lbSum.Text = sum.ToString("N0");
}
@@ -390,8 +394,12 @@ namespace FEQ0000
}
}
var dlg = FCOMMON.Util.MsgQ("현재 선택된 자료를 삭제하시겠습니까?");
if (dlg != System.Windows.Forms.DialogResult.Yes) return;
if (curLevel < 5)
{
var dlg = FCOMMON.Util.MsgQ("현재 선택된 자료를 삭제하시겠습니까?");
if (dlg != System.Windows.Forms.DialogResult.Yes) return;
}
bs.RemoveCurrent();
//일반사용자는 데이터를 바로 삭제한다.
@@ -460,6 +468,7 @@ namespace FEQ0000
}
tbFind.SelectAll();
tbFind.Focus();
showSummary();
}
catch (Exception ex)
{
@@ -661,9 +670,7 @@ namespace FEQ0000
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
Purchase.rPurchase f = new Purchase.rPurchase();
f.MdiParent = this.MdiParent;
f.Show();
}
private void copyToolStripMenuItem_Click(object sender, EventArgs e)
@@ -731,5 +738,12 @@ namespace FEQ0000
else newdr.Delete();
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
Purchase.rPurchase f = new Purchase.rPurchase();
f.MdiParent = this.MdiParent;
f.Show();
}
}
}

View File

@@ -229,6 +229,21 @@
hB/a9r+CVAG4Auj5g7iA5/1NACaptgIVLHkb0wWVw13ZL60p2+uerqkCJs1mMgwUU6d1k/xJwI10RZj1
9TPUN7Wam9dgTMC75QR7TjCBkRQs5Jd1jQS8c1ewtZLTPcQW/peADpC44cudgnjZOQ1OCGjTwkwaGBon
GoSrpcVIQqmAj6LZftFBup9vWiUlUQdIDCbsQrsGZRJKBbOXyA++SlEsu6QjvQAAAABJRU5ErkJggg==
</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>
<metadata name="cm1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
@@ -306,37 +321,6 @@
AMhmkGawjbGxEFuhNoOxjw/cgARrGUwDQE4G2YqiOTQUxYDZriZ4DAD69+umTTg1EzYA5HSQX9E1YzEA
axiAnA4KSGwa0Q0IMZbAYgDQVlBAvgZ6BRfu1pfFbcBLU9P/95WV/9+Qlv5/ko8PjnewscExyOk4DSAG
4DSAGEBVAzBigRgAMwCGyTIAHTAwMDAAABYIANCNo26UAAAAAElFTkSuQmCC
</value>
</data>
<data name="toolStripButton3.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAJlSURBVGhD7Za9SlxRFIXnBYKMhWRmxCoPkLyDYOUPo6bI
IwxWQiRdCiFYSBDSWQjCEObnBexNk1TJNJbRImIhxCKiEfRk9mXdcDiz7njvzrkbArPgY37uYe21mH25
U5loopK19+W3K4fbtxhRrvjwf2P/6x3eG5QIh8fg5Oe9XYlweAzOrh/sSoTDYyAFzEqEw2OQFjApEQ6P
gV+g9BLh8BiEBUotEQ6PASsglFIiHB4DFj4leolweAxYcB+/BGLoFQ63BjH0YqaWIIZezNQSxNCLmVqC
GHoxU0sQQy9magli6MVMY9Fqf3eNtV5Cq31KzyCGXsw0FrPrPfdk4TBh9mWfnkEMvZhpLGaa3f+3wPbx
jZt7M3BTSx1XW+u7jY9n9Bxi6MVMs5Cdrq32XH3MTqfMH1y6uZ0fySu7noIYejHTLPydbqzzlRA2j34l
4Z/tnie/BDuTghh6MdMs/J2eXum6d59Gw73/fOuef7hICrzqX41cD0EMvZgpw9/p6nLX1bcG7sUwaFhC
Qkt4KSFl/GsMxNCLmTL8nZbQEl4++yWkpKyNfC9rFHowEEMvZhrCdpqVyHvj+iCGXszUZ9xOpyVqr7+5
6nC1phY7yZo9duP6IIZezNTnsZ2WEtXlzt+be6bZGzkzDsTQi5mm5N3pRo6/DFkghl7MNCXvTstDTUrU
xzxxs0AMvZipPHGfDldBs9NFQQy9mKn/xC2600VBDL2YaZ6/wbFADL2Yqey0lJDwRXe6KIihFzO1BDH0
YqaWIIZezNQSxNCLmVqCGHoxU0sQQy9magli6MVMLUGMiSYqR5XKHzP/iFmrzyd6AAAAAElFTkSuQmCC
</value>
</data>
<data name="toolStripButton2.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="fpSpread1_Sheet1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">