diff --git a/SubProject/FEQ0000/FEQ0000.csproj b/SubProject/FEQ0000/FEQ0000.csproj index f680480..597ae69 100644 --- a/SubProject/FEQ0000/FEQ0000.csproj +++ b/SubProject/FEQ0000/FEQ0000.csproj @@ -109,6 +109,7 @@ fImpEquipment.cs + diff --git a/SubProject/FEQ0000/Purchase/fPurchase.Designer.cs b/SubProject/FEQ0000/Purchase/fPurchase.Designer.cs index 0b72474..0db53d2 100644 --- a/SubProject/FEQ0000/Purchase/fPurchase.Designer.cs +++ b/SubProject/FEQ0000/Purchase/fPurchase.Designer.cs @@ -79,7 +79,11 @@ this.tbFind = new System.Windows.Forms.ToolStripTextBox(); this.btFind = new System.Windows.Forms.ToolStripButton(); this.cm1 = new System.Windows.Forms.ContextMenuStrip(this.components); - this.autoResizeColumnsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.columnSizeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.autoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.resetToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.loadToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator(); this.copyDataToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.editDataToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); @@ -99,6 +103,7 @@ this.btSearch = new System.Windows.Forms.ToolStripButton(); this.FpSpread1 = new FarPoint.Win.Spread.FpSpread(); this.FpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView(); + this.btEdit = new System.Windows.Forms.ToolStripButton(); ((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit(); @@ -149,6 +154,7 @@ this.bindingNavigatorAddNewItem, this.bindingNavigatorDeleteItem, this.toolStripButton1, + this.btEdit, this.btSave, this.toolStripSeparator1, this.toolStripSeparator4, @@ -324,50 +330,86 @@ // cm1 // this.cm1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.autoResizeColumnsToolStripMenuItem, + this.columnSizeToolStripMenuItem, this.toolStripMenuItem1, this.copyDataToolStripMenuItem, this.editDataToolStripMenuItem, this.toolStripMenuItem2, this.viewThisUserDataToolStripMenuItem}); this.cm1.Name = "contextMenuStrip1"; - this.cm1.Size = new System.Drawing.Size(186, 104); + this.cm1.Size = new System.Drawing.Size(180, 104); // - // autoResizeColumnsToolStripMenuItem + // columnSizeToolStripMenuItem // - this.autoResizeColumnsToolStripMenuItem.Name = "autoResizeColumnsToolStripMenuItem"; - this.autoResizeColumnsToolStripMenuItem.Size = new System.Drawing.Size(185, 22); - this.autoResizeColumnsToolStripMenuItem.Text = "AutoResize Columns"; - this.autoResizeColumnsToolStripMenuItem.Click += new System.EventHandler(this.autoResizeColumnsToolStripMenuItem_Click); + this.columnSizeToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.autoToolStripMenuItem, + this.resetToolStripMenuItem, + this.saveToolStripMenuItem, + this.loadToolStripMenuItem}); + this.columnSizeToolStripMenuItem.Name = "columnSizeToolStripMenuItem"; + this.columnSizeToolStripMenuItem.Size = new System.Drawing.Size(179, 22); + this.columnSizeToolStripMenuItem.Text = "Column Size"; + // + // autoToolStripMenuItem + // + this.autoToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("autoToolStripMenuItem.Image"))); + this.autoToolStripMenuItem.Name = "autoToolStripMenuItem"; + this.autoToolStripMenuItem.Size = new System.Drawing.Size(102, 22); + this.autoToolStripMenuItem.Text = "Auto"; + this.autoToolStripMenuItem.Click += new System.EventHandler(this.autoToolStripMenuItem_Click); + // + // resetToolStripMenuItem + // + this.resetToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("resetToolStripMenuItem.Image"))); + this.resetToolStripMenuItem.Name = "resetToolStripMenuItem"; + this.resetToolStripMenuItem.Size = new System.Drawing.Size(102, 22); + this.resetToolStripMenuItem.Text = "Reset"; + this.resetToolStripMenuItem.Click += new System.EventHandler(this.resetToolStripMenuItem_Click); + // + // saveToolStripMenuItem + // + this.saveToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("saveToolStripMenuItem.Image"))); + this.saveToolStripMenuItem.Name = "saveToolStripMenuItem"; + this.saveToolStripMenuItem.Size = new System.Drawing.Size(102, 22); + this.saveToolStripMenuItem.Text = "Save"; + this.saveToolStripMenuItem.Click += new System.EventHandler(this.saveToolStripMenuItem_Click); + // + // loadToolStripMenuItem + // + this.loadToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("loadToolStripMenuItem.Image"))); + this.loadToolStripMenuItem.Name = "loadToolStripMenuItem"; + this.loadToolStripMenuItem.Size = new System.Drawing.Size(102, 22); + this.loadToolStripMenuItem.Text = "Load"; + this.loadToolStripMenuItem.Click += new System.EventHandler(this.loadToolStripMenuItem_Click); // // toolStripMenuItem1 // this.toolStripMenuItem1.Name = "toolStripMenuItem1"; - this.toolStripMenuItem1.Size = new System.Drawing.Size(182, 6); + this.toolStripMenuItem1.Size = new System.Drawing.Size(176, 6); // // copyDataToolStripMenuItem // this.copyDataToolStripMenuItem.Name = "copyDataToolStripMenuItem"; - this.copyDataToolStripMenuItem.Size = new System.Drawing.Size(185, 22); + this.copyDataToolStripMenuItem.Size = new System.Drawing.Size(179, 22); this.copyDataToolStripMenuItem.Text = "Copy Data"; this.copyDataToolStripMenuItem.Click += new System.EventHandler(this.copyDataToolStripMenuItem_Click); // // editDataToolStripMenuItem // this.editDataToolStripMenuItem.Name = "editDataToolStripMenuItem"; - this.editDataToolStripMenuItem.Size = new System.Drawing.Size(185, 22); + this.editDataToolStripMenuItem.Size = new System.Drawing.Size(179, 22); this.editDataToolStripMenuItem.Text = "Edit Data"; this.editDataToolStripMenuItem.Click += new System.EventHandler(this.editDataToolStripMenuItem_Click); // // toolStripMenuItem2 // this.toolStripMenuItem2.Name = "toolStripMenuItem2"; - this.toolStripMenuItem2.Size = new System.Drawing.Size(182, 6); + this.toolStripMenuItem2.Size = new System.Drawing.Size(176, 6); // // viewThisUserDataToolStripMenuItem // this.viewThisUserDataToolStripMenuItem.Name = "viewThisUserDataToolStripMenuItem"; - this.viewThisUserDataToolStripMenuItem.Size = new System.Drawing.Size(185, 22); + this.viewThisUserDataToolStripMenuItem.Size = new System.Drawing.Size(179, 22); this.viewThisUserDataToolStripMenuItem.Text = "View This User data"; this.viewThisUserDataToolStripMenuItem.Click += new System.EventHandler(this.viewThisUserDataToolStripMenuItem_Click); // @@ -548,6 +590,7 @@ this.FpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; this.FpSpread1_Sheet1.Columns.Get(7).Label = "Item"; this.FpSpread1_Sheet1.Columns.Get(7).Width = 33F; + this.FpSpread1_Sheet1.Columns.Get(8).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); numberCellType1.DecimalPlaces = 0; numberCellType1.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; numberCellType1.MaximumValue = 2147483647D; @@ -580,14 +623,14 @@ numberCellType3.MinimumValue = -999999999999999D; this.FpSpread1_Sheet1.Columns.Get(12).CellType = numberCellType3; this.FpSpread1_Sheet1.Columns.Get(12).DataField = "pumprice"; - this.FpSpread1_Sheet1.Columns.Get(12).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.FpSpread1_Sheet1.Columns.Get(12).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right; this.FpSpread1_Sheet1.Columns.Get(12).Label = "Price"; this.FpSpread1_Sheet1.Columns.Get(12).Width = 35F; numberCellType4.MaximumValue = 999999999999999D; numberCellType4.MinimumValue = -999999999999999D; this.FpSpread1_Sheet1.Columns.Get(13).CellType = numberCellType4; this.FpSpread1_Sheet1.Columns.Get(13).DataField = "pumamt"; - this.FpSpread1_Sheet1.Columns.Get(13).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.FpSpread1_Sheet1.Columns.Get(13).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right; this.FpSpread1_Sheet1.Columns.Get(13).Label = "Amt"; this.FpSpread1_Sheet1.Columns.Get(13).Width = 32F; this.FpSpread1_Sheet1.Columns.Get(14).CellType = textCellType11; @@ -595,6 +638,7 @@ this.FpSpread1_Sheet1.Columns.Get(14).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; this.FpSpread1_Sheet1.Columns.Get(14).Label = "Supply"; this.FpSpread1_Sheet1.Columns.Get(14).Width = 46F; + this.FpSpread1_Sheet1.Columns.Get(15).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); numberCellType5.DecimalPlaces = 0; numberCellType5.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; numberCellType5.MaximumValue = 2147483647D; @@ -608,6 +652,7 @@ this.FpSpread1_Sheet1.Columns.Get(16).DataField = "project"; this.FpSpread1_Sheet1.Columns.Get(16).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; this.FpSpread1_Sheet1.Columns.Get(16).Width = 46F; + this.FpSpread1_Sheet1.Columns.Get(17).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); numberCellType6.DecimalPlaces = 0; numberCellType6.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; numberCellType6.MaximumValue = 2147483647D; @@ -642,6 +687,15 @@ this.FpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false; this.FpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1; // + // 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(61, 23); + this.btEdit.Text = "Edit(&E)"; + this.btEdit.Click += new System.EventHandler(this.toolStripButton2_Click); + // // fPurchase // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); @@ -694,7 +748,6 @@ private System.Windows.Forms.ToolStripTextBox dtED; private System.Windows.Forms.ToolStripButton btSearch; private System.Windows.Forms.ContextMenuStrip cm1; - private System.Windows.Forms.ToolStripMenuItem autoResizeColumnsToolStripMenuItem; private System.Windows.Forms.ToolStripLabel toolStripLabel3; private System.Windows.Forms.ToolStripTextBox tbRequest; private System.Windows.Forms.ToolStripButton toolStripButton1; @@ -716,6 +769,12 @@ private FarPoint.Win.Spread.FpSpread FpSpread1; private System.Windows.Forms.ToolStripMenuItem editDataToolStripMenuItem; private System.Windows.Forms.ToolStripSeparator toolStripMenuItem2; + private System.Windows.Forms.ToolStripMenuItem columnSizeToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem autoToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem resetToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem saveToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem loadToolStripMenuItem; private FarPoint.Win.Spread.SheetView FpSpread1_Sheet1; + private System.Windows.Forms.ToolStripButton btEdit; } } diff --git a/SubProject/FEQ0000/Purchase/fPurchase.cs b/SubProject/FEQ0000/Purchase/fPurchase.cs index 493b71a..6aa0afd 100644 --- a/SubProject/FEQ0000/Purchase/fPurchase.cs +++ b/SubProject/FEQ0000/Purchase/fPurchase.cs @@ -6,14 +6,18 @@ using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; +using util = FCOMMON.Util; namespace FEQ0000 { public partial class fPurchase : FCOMMON.fBase { + string fn_fpcolsize = ""; + public fPurchase() { InitializeComponent(); + fn_fpcolsize = util.MakeFilePath(util.CurrentPath, "formSetting", "fp_" + this.Name + ".ini"); this.dsPurchase.Purchase.TableNewRow += Purchase_TableNewRow; //this.dv1.CellFormatting += dv1_CellFormatting; @@ -101,7 +105,7 @@ namespace FEQ0000 FpSpread1.EditModeReplace = false; btSave.Visible = false; } - + FPUtil.ColSizeLoad(ref this.FpSpread1, fn_fpcolsize); refreshData(); } @@ -166,10 +170,7 @@ namespace FEQ0000 private void autoResizeColumnsToolStripMenuItem_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 toolStripButton1_Click(object sender, EventArgs e) @@ -396,6 +397,10 @@ namespace FEQ0000 } private void editDataToolStripMenuItem_Click(object sender, EventArgs e) + { + Func_Edit(); + } + void Func_Edit() { var drv = this.bs.Current as DataRowView; if (drv == null) return; @@ -417,5 +422,52 @@ namespace FEQ0000 } else dr.RejectChanges(); } + + private void clearColumnsSizeToolStripMenuItem_Click(object sender, EventArgs e) + { + + } + + private void saveColumnSizeToolStripMenuItem_Click(object sender, EventArgs e) + { + + } + + private void loadColumnSizeToolStripMenuItem_Click(object sender, EventArgs e) + { + + } + + 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 toolStripButton2_Click(object sender, EventArgs e) + { + Func_Edit(); + } } } diff --git a/SubProject/FEQ0000/Purchase/fPurchase.resx b/SubProject/FEQ0000/Purchase/fPurchase.resx index 0346b34..00f7e21 100644 --- a/SubProject/FEQ0000/Purchase/fPurchase.resx +++ b/SubProject/FEQ0000/Purchase/fPurchase.resx @@ -210,6 +210,17 @@ mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+ kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D TgDQASA1MVpwzwAAAABJRU5ErkJggg== + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEvSURBVDhPpZI/S0JRGIed+i6Nbk0t0iCuSkuDi1MfIKfm + +gAOQktTQkMggYtRkwgidKmgyQwMCgqz0CivvvK8cK7neG4KdeHhHs45v+c9/xLyz08Ft713OQ+6SqXV + kfLlnXJw1lSK5VrERqGkMB4JCCLpvQ7lZfDlQJ+B4EnwI9nTkbYdAZMbjxOPq4eJPH1MvXC2sD8XsOzP + 0bcX/C3MXEfAfmzBsnCnP10uWBWu3IS+gJOm0w5fHCZiw0aQzu3GC0xYgm2R+poTRnh8HeqNOALu920w + 9MK0F8NGkMrs+ALewqrwUXss3ed+vKB6H+rh2OT3SjpO0IBgcyvnCjgDBGCq8mcMiQ3FHAGdLB/J4vMF + KhoI83LXk6m5gCpmufbyOWlgv0BVIMx4JPj7JzIDGHRUPz2nxiQAAAAASUVORK5CYII= @@ -226,6 +237,45 @@ 502, 17 + + + R0lGODlhEAAQAIQfAJXG2JXa+ZLO5ChrlkCy4TZ1kiVvpCN0trvo9SN5xTd4lrfh7iR9zo3S+EGz7JDJ + 4TaCromrvC9ymyV+0Dd3mTl1koe72YvN7LTj+9ne6N3g6v7+/0Cw2Stoh////////yH/C05FVFNDQVBF + Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAInwA/CBzooaAHgQUHKvRQoUABCgUlHFT4IYMCBAsQIIBg + wcBEgh0WCBDAgcAFDAc+fvDQIUKHDgMeEHDQIIFKlgoMGgjQoAGDmwUOehhg4EACBhM+GlzKVOkEBgkO + GBggNOhCBhgCBPBYUEGHmwkCOCDwYMCAll8XHghwgQCHkQDSLjRgAcKDBwAAKNCwgaIHiR4oOKygkuDE + pRQTK6YYEAA7 + + + + + R0lGODlhEAAQAIQfALnik2aXQv7+/dPut73llbfala3LmW6gSWqdQ2eYRGqaSLfck568iYrUQN7yzF6R + PLTXlYjUP8XwmYfQQLbYl4jRQGiaQsPumNbyu7nglNPzsLXYlf7+/lCHK////////yH/C05FVFNDQVBF + Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAIlgA/CBzooaAHgQUHEvSgIEAABQUfHFTIwQECDAMwYDhg + oENCgRw8dBgAAECFBgsweJxYsAODDjApTIhAwCMHkCItGOxwgUCGlQQTeAgJsyhQg0iTGvzQ0qhND0IX + dtBwQcJKDxZsIhQpIcIECkVffmwpYUGDCiUheBQg1cCBAgU2QFDg4KZCDxIZOoQ48S7LpQoDCx4cEAA7 + + + + + R0lGODlhEAAQAIQAAJXD9Iasxm6MqnSn2lZtjVaRyEpXbYu767TX/2KZztvr/4Gy5KrT/3ut32+gzlFh + e+r0/0RNX9/u/9Ln+8Xg//n8/4e36CkxQz9GVkSCvKjL35/N/Je91K7T5bDS4////yH/C05FVFNDQVBF + Mi4wAwEBAAAh+QQAAAAAACwAAAAAEAAQAAAIuQA/CBxIsKDACRwScggQwIGAhwIICBDYQcEEgwg+bNjw + QKCHCQgkQBgpQcKBCg0AEBCoAaRIkhIsVBigUiAHCgwkKNjJU8GAAx0/3NwIAMABCwsaDHCwIGgAChuK + HjiQdMDSAQYEPpWKtKqDBA6yfgiAwGhXpUsTJIgg0AGCo0nRfi1QgO0HAQyQNpCrtkAGDAIFbKi69GsC + un8FEohqdEFavxkyXAhMoPKDBwYMRIiAAcOFoAZDCwwIADs= + + + + + R0lGODlhEAAQAIQfAJfL/OTs9HWVsW6aUqnT+6bnZldwkYiux7TZ/O3z+UlVa/P2+ZfTW36wWJDLV4m7 + 69nn78bi/qjL3qDP+VJhe4rAVa7S40NLXJ3bYJrA1ikxQz5FVdDU22OPRf///////yH/C05FVFNDQVBF + Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAIwQA9CBxIcOCHgx4gWLAgIUOGAwcESBTgAaEFCAEGaBwQ + IGOABwYqerCQsYBJBho7JHgAUqCEDjAxYGBQgYHKBAsoCMzQIUIEmA6CdkCAIOfOBT5/MnBQYSgBozCj + SoVJ4KkCDx1MFhhKFEFVAhMCXM1aAANMoh2qTgh7AWvZmQ6igp0AIEDbDg0aLA06YC4AABA2eBjgYcHG + vmv/Akgg2IMBDgsSdJwcAEICDhoECjDAmQIFBQouXNiwQYPOgqgLBgQAOw== + + 396, 17 diff --git a/SubProject/FEQ0000/dsPurchase.Designer.cs b/SubProject/FEQ0000/dsPurchase.Designer.cs index 3bb249f..4dc1188 100644 --- a/SubProject/FEQ0000/dsPurchase.Designer.cs +++ b/SubProject/FEQ0000/dsPurchase.Designer.cs @@ -1150,11 +1150,11 @@ namespace FEQ0000 { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int pumqty { get { - try { - return ((int)(this[this.tablePurchase.pumqtyColumn])); + if (this.IspumqtyNull()) { + return 0; } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'Purchase\' 테이블의 \'pumqty\' 열의 값이 DBNull입니다.", e); + else { + return ((int)(this[this.tablePurchase.pumqtyColumn])); } } set { @@ -1166,11 +1166,11 @@ namespace FEQ0000 { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public decimal pumprice { get { - try { - return ((decimal)(this[this.tablePurchase.pumpriceColumn])); + if (this.IspumpriceNull()) { + return 0m; } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'Purchase\' 테이블의 \'pumprice\' 열의 값이 DBNull입니다.", e); + else { + return ((decimal)(this[this.tablePurchase.pumpriceColumn])); } } set { @@ -1182,11 +1182,11 @@ namespace FEQ0000 { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public decimal pumamt { get { - try { - return ((decimal)(this[this.tablePurchase.pumamtColumn])); + if (this.IspumamtNull()) { + return 0m; } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'Purchase\' 테이블의 \'pumamt\' 열의 값이 DBNull입니다.", e); + else { + return ((decimal)(this[this.tablePurchase.pumamtColumn])); } } set { @@ -1214,11 +1214,11 @@ namespace FEQ0000 { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int supplyidx { get { - try { - return ((int)(this[this.tablePurchase.supplyidxColumn])); + if (this.IssupplyidxNull()) { + return -1; } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'Purchase\' 테이블의 \'supplyidx\' 열의 값이 DBNull입니다.", e); + else { + return ((int)(this[this.tablePurchase.supplyidxColumn])); } } set { @@ -1246,11 +1246,11 @@ namespace FEQ0000 { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int projectidx { get { - try { - return ((int)(this[this.tablePurchase.projectidxColumn])); + if (this.IsprojectidxNull()) { + return -1; } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'Purchase\' 테이블의 \'projectidx\' 열의 값이 DBNull입니다.", e); + else { + return ((int)(this[this.tablePurchase.projectidxColumn])); } } set { @@ -1380,11 +1380,11 @@ namespace FEQ0000 { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int pumidx { get { - try { - return ((int)(this[this.tablePurchase.pumidxColumn])); + if (this.IspumidxNull()) { + return -1; } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'Purchase\' 테이블의 \'pumidx\' 열의 값이 DBNull입니다.", e); + else { + return ((int)(this[this.tablePurchase.pumidxColumn])); } } set { diff --git a/SubProject/FEQ0000/dsPurchase.xsd b/SubProject/FEQ0000/dsPurchase.xsd index 2d61396..60d271b 100644 --- a/SubProject/FEQ0000/dsPurchase.xsd +++ b/SubProject/FEQ0000/dsPurchase.xsd @@ -255,7 +255,7 @@ ORDER BY pdate DESC, idx DESC - + @@ -329,9 +329,9 @@ ORDER BY pdate DESC, idx DESC - - - + + + @@ -339,7 +339,7 @@ ORDER BY pdate DESC, idx DESC - + @@ -347,7 +347,7 @@ ORDER BY pdate DESC, idx DESC - + @@ -392,7 +392,7 @@ ORDER BY pdate DESC, idx DESC - +