..
This commit is contained in:
		
							
								
								
									
										397
									
								
								SubProject/FCM0000/Item/fItemEdit.Designer.cs
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										397
									
								
								SubProject/FCM0000/Item/fItemEdit.Designer.cs
									
									
									
										generated
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,397 @@ | ||||
| namespace FCM0000.Item | ||||
| { | ||||
|     partial class fItemEdit | ||||
|     { | ||||
|         /// <summary> | ||||
|         /// Required designer variable. | ||||
|         /// </summary> | ||||
|         private System.ComponentModel.IContainer components = null; | ||||
|  | ||||
|         /// <summary> | ||||
|         /// Clean up any resources being used. | ||||
|         /// </summary> | ||||
|         /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> | ||||
|         protected override void Dispose(bool disposing) | ||||
|         { | ||||
|             if (disposing && (components != null)) | ||||
|             { | ||||
|                 components.Dispose(); | ||||
|             } | ||||
|             base.Dispose(disposing); | ||||
|         } | ||||
|  | ||||
|         #region Windows Form Designer generated code | ||||
|  | ||||
|         /// <summary> | ||||
|         /// Required method for Designer support - do not modify | ||||
|         /// the contents of this method with the code editor. | ||||
|         /// </summary> | ||||
|         private void InitializeComponent() | ||||
|         { | ||||
|             System.Windows.Forms.Label nameLabel; | ||||
|             System.Windows.Forms.Label sidLabel; | ||||
|             System.Windows.Forms.Label modelLabel; | ||||
|             System.Windows.Forms.Label manuLabel; | ||||
|             System.Windows.Forms.Label supplyLabel; | ||||
|             System.Windows.Forms.Label memoLabel; | ||||
|             System.Windows.Forms.Label priceLabel; | ||||
|             System.Windows.Forms.Label label1; | ||||
|             System.Windows.Forms.Label label2; | ||||
|             System.Windows.Forms.Label label3; | ||||
|             System.Windows.Forms.Label label4; | ||||
|             System.Windows.Forms.Label label5; | ||||
|             this.ta = new FCM0000.dsMSSQLTableAdapters.ItemsTableAdapter(); | ||||
|             this.tbName = new System.Windows.Forms.TextBox(); | ||||
|             this.tbSid = new System.Windows.Forms.TextBox(); | ||||
|             this.tbModel = new System.Windows.Forms.TextBox(); | ||||
|             this.tbManu = new System.Windows.Forms.TextBox(); | ||||
|             this.tbSupply = new System.Windows.Forms.TextBox(); | ||||
|             this.tbMemo = new System.Windows.Forms.TextBox(); | ||||
|             this.tbPrice = new System.Windows.Forms.TextBox(); | ||||
|             this.tbSupplyIdx = new System.Windows.Forms.TextBox(); | ||||
|             this.tbUnit = new System.Windows.Forms.TextBox(); | ||||
|             this.btOK = new System.Windows.Forms.Button(); | ||||
|             this.dsMSSQL = new FCM0000.dsMSSQL(); | ||||
|             this.tbPriceD = new System.Windows.Forms.TextBox(); | ||||
|             this.tbStorage = new System.Windows.Forms.TextBox(); | ||||
|             this.tbCate = new System.Windows.Forms.TextBox(); | ||||
|             this.tbBarcode = new System.Windows.Forms.TextBox(); | ||||
|             nameLabel = new System.Windows.Forms.Label(); | ||||
|             sidLabel = new System.Windows.Forms.Label(); | ||||
|             modelLabel = new System.Windows.Forms.Label(); | ||||
|             manuLabel = new System.Windows.Forms.Label(); | ||||
|             supplyLabel = new System.Windows.Forms.Label(); | ||||
|             memoLabel = new System.Windows.Forms.Label(); | ||||
|             priceLabel = new System.Windows.Forms.Label(); | ||||
|             label1 = new System.Windows.Forms.Label(); | ||||
|             label2 = new System.Windows.Forms.Label(); | ||||
|             label3 = new System.Windows.Forms.Label(); | ||||
|             label4 = new System.Windows.Forms.Label(); | ||||
|             label5 = new System.Windows.Forms.Label(); | ||||
|             ((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit(); | ||||
|             this.SuspendLayout(); | ||||
|             //  | ||||
|             // nameLabel | ||||
|             //  | ||||
|             nameLabel.AutoSize = true; | ||||
|             nameLabel.Location = new System.Drawing.Point(52, 53); | ||||
|             nameLabel.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); | ||||
|             nameLabel.Name = "nameLabel"; | ||||
|             nameLabel.Size = new System.Drawing.Size(55, 30); | ||||
|             nameLabel.TabIndex = 3; | ||||
|             nameLabel.Text = "품명"; | ||||
|             //  | ||||
|             // sidLabel | ||||
|             //  | ||||
|             sidLabel.AutoSize = true; | ||||
|             sidLabel.Location = new System.Drawing.Point(62, 14); | ||||
|             sidLabel.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); | ||||
|             sidLabel.Name = "sidLabel"; | ||||
|             sidLabel.Size = new System.Drawing.Size(45, 30); | ||||
|             sidLabel.TabIndex = 0; | ||||
|             sidLabel.Text = "SID"; | ||||
|             //  | ||||
|             // modelLabel | ||||
|             //  | ||||
|             modelLabel.AutoSize = true; | ||||
|             modelLabel.Location = new System.Drawing.Point(31, 99); | ||||
|             modelLabel.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); | ||||
|             modelLabel.Name = "modelLabel"; | ||||
|             modelLabel.Size = new System.Drawing.Size(76, 30); | ||||
|             modelLabel.TabIndex = 5; | ||||
|             modelLabel.Text = "모델명"; | ||||
|             //  | ||||
|             // manuLabel | ||||
|             //  | ||||
|             manuLabel.AutoSize = true; | ||||
|             manuLabel.Location = new System.Drawing.Point(31, 183); | ||||
|             manuLabel.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); | ||||
|             manuLabel.Name = "manuLabel"; | ||||
|             manuLabel.Size = new System.Drawing.Size(76, 30); | ||||
|             manuLabel.TabIndex = 9; | ||||
|             manuLabel.Text = "제조사"; | ||||
|             //  | ||||
|             // supplyLabel | ||||
|             //  | ||||
|             supplyLabel.AutoSize = true; | ||||
|             supplyLabel.Location = new System.Drawing.Point(31, 315); | ||||
|             supplyLabel.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); | ||||
|             supplyLabel.Name = "supplyLabel"; | ||||
|             supplyLabel.Size = new System.Drawing.Size(76, 30); | ||||
|             supplyLabel.TabIndex = 17; | ||||
|             supplyLabel.Text = "공급처"; | ||||
|             //  | ||||
|             // memoLabel | ||||
|             //  | ||||
|             memoLabel.AutoSize = true; | ||||
|             memoLabel.Location = new System.Drawing.Point(52, 403); | ||||
|             memoLabel.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); | ||||
|             memoLabel.Name = "memoLabel"; | ||||
|             memoLabel.Size = new System.Drawing.Size(55, 30); | ||||
|             memoLabel.TabIndex = 20; | ||||
|             memoLabel.Text = "비고"; | ||||
|             //  | ||||
|             // priceLabel | ||||
|             //  | ||||
|             priceLabel.AutoSize = true; | ||||
|             priceLabel.Location = new System.Drawing.Point(52, 225); | ||||
|             priceLabel.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); | ||||
|             priceLabel.Name = "priceLabel"; | ||||
|             priceLabel.Size = new System.Drawing.Size(55, 30); | ||||
|             priceLabel.TabIndex = 11; | ||||
|             priceLabel.Text = "단가"; | ||||
|             //  | ||||
|             // label1 | ||||
|             //  | ||||
|             label1.AutoSize = true; | ||||
|             label1.Location = new System.Drawing.Point(52, 137); | ||||
|             label1.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); | ||||
|             label1.Name = "label1"; | ||||
|             label1.Size = new System.Drawing.Size(55, 30); | ||||
|             label1.TabIndex = 7; | ||||
|             label1.Text = "단위"; | ||||
|             //  | ||||
|             // label2 | ||||
|             //  | ||||
|             label2.AutoSize = true; | ||||
|             label2.ForeColor = System.Drawing.Color.Blue; | ||||
|             label2.Location = new System.Drawing.Point(387, 225); | ||||
|             label2.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); | ||||
|             label2.Name = "label2"; | ||||
|             label2.Size = new System.Drawing.Size(25, 30); | ||||
|             label2.TabIndex = 13; | ||||
|             label2.Text = "$"; | ||||
|             //  | ||||
|             // label3 | ||||
|             //  | ||||
|             label3.AutoSize = true; | ||||
|             label3.Location = new System.Drawing.Point(31, 269); | ||||
|             label3.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); | ||||
|             label3.Name = "label3"; | ||||
|             label3.Size = new System.Drawing.Size(76, 30); | ||||
|             label3.TabIndex = 15; | ||||
|             label3.Text = "보관소"; | ||||
|             //  | ||||
|             // label4 | ||||
|             //  | ||||
|             label4.AutoSize = true; | ||||
|             label4.Location = new System.Drawing.Point(357, 268); | ||||
|             label4.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); | ||||
|             label4.Name = "label4"; | ||||
|             label4.Size = new System.Drawing.Size(55, 30); | ||||
|             label4.TabIndex = 23; | ||||
|             label4.Text = "분류"; | ||||
|             //  | ||||
|             // label5 | ||||
|             //  | ||||
|             label5.AutoSize = true; | ||||
|             label5.Location = new System.Drawing.Point(31, 358); | ||||
|             label5.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); | ||||
|             label5.Name = "label5"; | ||||
|             label5.Size = new System.Drawing.Size(76, 30); | ||||
|             label5.TabIndex = 25; | ||||
|             label5.Text = "바코드"; | ||||
|             //  | ||||
|             // ta | ||||
|             //  | ||||
|             this.ta.ClearBeforeFill = true; | ||||
|             //  | ||||
|             // tbName | ||||
|             //  | ||||
|             this.tbName.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); | ||||
|             this.tbName.Location = new System.Drawing.Point(111, 53); | ||||
|             this.tbName.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8); | ||||
|             this.tbName.Name = "tbName"; | ||||
|             this.tbName.Size = new System.Drawing.Size(546, 35); | ||||
|             this.tbName.TabIndex = 4; | ||||
|             //  | ||||
|             // tbSid | ||||
|             //  | ||||
|             this.tbSid.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); | ||||
|             this.tbSid.Enabled = false; | ||||
|             this.tbSid.Location = new System.Drawing.Point(111, 12); | ||||
|             this.tbSid.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8); | ||||
|             this.tbSid.Name = "tbSid"; | ||||
|             this.tbSid.Size = new System.Drawing.Size(546, 35); | ||||
|             this.tbSid.TabIndex = 2; | ||||
|             this.tbSid.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; | ||||
|             //  | ||||
|             // tbModel | ||||
|             //  | ||||
|             this.tbModel.Location = new System.Drawing.Point(111, 94); | ||||
|             this.tbModel.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8); | ||||
|             this.tbModel.Name = "tbModel"; | ||||
|             this.tbModel.Size = new System.Drawing.Size(546, 35); | ||||
|             this.tbModel.TabIndex = 6; | ||||
|             //  | ||||
|             // tbManu | ||||
|             //  | ||||
|             this.tbManu.Location = new System.Drawing.Point(111, 180); | ||||
|             this.tbManu.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8); | ||||
|             this.tbManu.Name = "tbManu"; | ||||
|             this.tbManu.Size = new System.Drawing.Size(546, 35); | ||||
|             this.tbManu.TabIndex = 10; | ||||
|             //  | ||||
|             // tbSupply | ||||
|             //  | ||||
|             this.tbSupply.Location = new System.Drawing.Point(111, 312); | ||||
|             this.tbSupply.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8); | ||||
|             this.tbSupply.Name = "tbSupply"; | ||||
|             this.tbSupply.Size = new System.Drawing.Size(449, 35); | ||||
|             this.tbSupply.TabIndex = 18; | ||||
|             //  | ||||
|             // tbMemo | ||||
|             //  | ||||
|             this.tbMemo.Location = new System.Drawing.Point(111, 396); | ||||
|             this.tbMemo.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8); | ||||
|             this.tbMemo.Name = "tbMemo"; | ||||
|             this.tbMemo.Size = new System.Drawing.Size(546, 35); | ||||
|             this.tbMemo.TabIndex = 21; | ||||
|             this.tbMemo.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; | ||||
|             //  | ||||
|             // tbPrice | ||||
|             //  | ||||
|             this.tbPrice.Location = new System.Drawing.Point(111, 223); | ||||
|             this.tbPrice.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8); | ||||
|             this.tbPrice.Name = "tbPrice"; | ||||
|             this.tbPrice.Size = new System.Drawing.Size(241, 35); | ||||
|             this.tbPrice.TabIndex = 12; | ||||
|             this.tbPrice.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; | ||||
|             //  | ||||
|             // tbSupplyIdx | ||||
|             //  | ||||
|             this.tbSupplyIdx.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); | ||||
|             this.tbSupplyIdx.Enabled = false; | ||||
|             this.tbSupplyIdx.Location = new System.Drawing.Point(555, 312); | ||||
|             this.tbSupplyIdx.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8); | ||||
|             this.tbSupplyIdx.Name = "tbSupplyIdx"; | ||||
|             this.tbSupplyIdx.Size = new System.Drawing.Size(102, 35); | ||||
|             this.tbSupplyIdx.TabIndex = 19; | ||||
|             this.tbSupplyIdx.Text = "-1"; | ||||
|             this.tbSupplyIdx.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; | ||||
|             //  | ||||
|             // tbUnit | ||||
|             //  | ||||
|             this.tbUnit.Location = new System.Drawing.Point(111, 136); | ||||
|             this.tbUnit.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8); | ||||
|             this.tbUnit.Name = "tbUnit"; | ||||
|             this.tbUnit.Size = new System.Drawing.Size(546, 35); | ||||
|             this.tbUnit.TabIndex = 8; | ||||
|             this.tbUnit.Text = "EA"; | ||||
|             this.tbUnit.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; | ||||
|             //  | ||||
|             // btOK | ||||
|             //  | ||||
|             this.btOK.Location = new System.Drawing.Point(111, 440); | ||||
|             this.btOK.Name = "btOK"; | ||||
|             this.btOK.Size = new System.Drawing.Size(546, 66); | ||||
|             this.btOK.TabIndex = 22; | ||||
|             this.btOK.Text = "확인"; | ||||
|             this.btOK.UseVisualStyleBackColor = true; | ||||
|             this.btOK.Click += new System.EventHandler(this.btOK_Click); | ||||
|             //  | ||||
|             // dsMSSQL | ||||
|             //  | ||||
|             this.dsMSSQL.DataSetName = "dsMSSQL"; | ||||
|             this.dsMSSQL.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; | ||||
|             //  | ||||
|             // tbPriceD | ||||
|             //  | ||||
|             this.tbPriceD.ForeColor = System.Drawing.Color.Blue; | ||||
|             this.tbPriceD.Location = new System.Drawing.Point(416, 223); | ||||
|             this.tbPriceD.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8); | ||||
|             this.tbPriceD.Name = "tbPriceD"; | ||||
|             this.tbPriceD.Size = new System.Drawing.Size(241, 35); | ||||
|             this.tbPriceD.TabIndex = 14; | ||||
|             this.tbPriceD.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; | ||||
|             //  | ||||
|             // tbStorage | ||||
|             //  | ||||
|             this.tbStorage.Location = new System.Drawing.Point(111, 267); | ||||
|             this.tbStorage.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8); | ||||
|             this.tbStorage.Name = "tbStorage"; | ||||
|             this.tbStorage.Size = new System.Drawing.Size(241, 35); | ||||
|             this.tbStorage.TabIndex = 16; | ||||
|             this.tbStorage.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; | ||||
|             //  | ||||
|             // tbCate | ||||
|             //  | ||||
|             this.tbCate.Location = new System.Drawing.Point(416, 266); | ||||
|             this.tbCate.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8); | ||||
|             this.tbCate.Name = "tbCate"; | ||||
|             this.tbCate.Size = new System.Drawing.Size(241, 35); | ||||
|             this.tbCate.TabIndex = 24; | ||||
|             this.tbCate.Text = "--"; | ||||
|             this.tbCate.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; | ||||
|             //  | ||||
|             // tbBarcode | ||||
|             //  | ||||
|             this.tbBarcode.Location = new System.Drawing.Point(111, 355); | ||||
|             this.tbBarcode.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8); | ||||
|             this.tbBarcode.Name = "tbBarcode"; | ||||
|             this.tbBarcode.Size = new System.Drawing.Size(546, 35); | ||||
|             this.tbBarcode.TabIndex = 26; | ||||
|             //  | ||||
|             // fItemEdit | ||||
|             //  | ||||
|             this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 30F); | ||||
|             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | ||||
|             this.ClientSize = new System.Drawing.Size(669, 518); | ||||
|             this.Controls.Add(label5); | ||||
|             this.Controls.Add(this.tbBarcode); | ||||
|             this.Controls.Add(label4); | ||||
|             this.Controls.Add(this.tbCate); | ||||
|             this.Controls.Add(label3); | ||||
|             this.Controls.Add(this.tbStorage); | ||||
|             this.Controls.Add(label2); | ||||
|             this.Controls.Add(this.tbPriceD); | ||||
|             this.Controls.Add(this.btOK); | ||||
|             this.Controls.Add(nameLabel); | ||||
|             this.Controls.Add(this.tbName); | ||||
|             this.Controls.Add(sidLabel); | ||||
|             this.Controls.Add(this.tbSid); | ||||
|             this.Controls.Add(label1); | ||||
|             this.Controls.Add(modelLabel); | ||||
|             this.Controls.Add(this.tbModel); | ||||
|             this.Controls.Add(manuLabel); | ||||
|             this.Controls.Add(this.tbManu); | ||||
|             this.Controls.Add(supplyLabel); | ||||
|             this.Controls.Add(this.tbSupply); | ||||
|             this.Controls.Add(memoLabel); | ||||
|             this.Controls.Add(this.tbMemo); | ||||
|             this.Controls.Add(priceLabel); | ||||
|             this.Controls.Add(this.tbPrice); | ||||
|             this.Controls.Add(this.tbSupplyIdx); | ||||
|             this.Controls.Add(this.tbUnit); | ||||
|             this.Font = new System.Drawing.Font("맑은 고딕", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); | ||||
|             this.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8); | ||||
|             this.MinimumSize = new System.Drawing.Size(685, 448); | ||||
|             this.Name = "fItemEdit"; | ||||
|             this.Text = "품목 정보 변경"; | ||||
|             this.Load += new System.EventHandler(this.fItemAdd_Load); | ||||
|             ((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).EndInit(); | ||||
|             this.ResumeLayout(false); | ||||
|             this.PerformLayout(); | ||||
|  | ||||
|         } | ||||
|  | ||||
|         #endregion | ||||
|  | ||||
|         private dsMSSQLTableAdapters.ItemsTableAdapter ta; | ||||
|         private System.Windows.Forms.Button btOK; | ||||
|         private dsMSSQL dsMSSQL; | ||||
|         public System.Windows.Forms.TextBox tbName; | ||||
|         public System.Windows.Forms.TextBox tbSid; | ||||
|         public System.Windows.Forms.TextBox tbModel; | ||||
|         public System.Windows.Forms.TextBox tbManu; | ||||
|         public System.Windows.Forms.TextBox tbSupply; | ||||
|         public System.Windows.Forms.TextBox tbMemo; | ||||
|         public System.Windows.Forms.TextBox tbPrice; | ||||
|         public System.Windows.Forms.TextBox tbSupplyIdx; | ||||
|         public System.Windows.Forms.TextBox tbUnit; | ||||
|         public System.Windows.Forms.TextBox tbPriceD; | ||||
| 		public System.Windows.Forms.TextBox tbStorage; | ||||
|         public System.Windows.Forms.TextBox tbCate; | ||||
|         public System.Windows.Forms.TextBox tbBarcode; | ||||
|     } | ||||
| } | ||||
							
								
								
									
										189
									
								
								SubProject/FCM0000/Item/fItemEdit.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										189
									
								
								SubProject/FCM0000/Item/fItemEdit.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,189 @@ | ||||
| using FarPoint.Excel.EntityClassLibrary.DrawingEx; | ||||
| using FCOMMON; | ||||
| using NetOffice.OutlookApi; | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.ComponentModel; | ||||
| using System.Data; | ||||
| using System.Drawing; | ||||
| using System.Linq; | ||||
| using System.Security.AccessControl; | ||||
| using System.Text; | ||||
| using System.Windows.Forms; | ||||
|  | ||||
| namespace FCM0000.Item | ||||
| { | ||||
|     public partial class fItemEdit : FCOMMON.fBase | ||||
|     { | ||||
|         public int newIDX = -1; | ||||
|         public string newSID = string.Empty; | ||||
|         FCM0000.dsMSSQL.ItemsRow dr; | ||||
|  | ||||
|         public fItemEdit(int pumidx) | ||||
|         { | ||||
|             InitializeComponent(); | ||||
|             Properties.Settings.Default["gwcs"] = FCOMMON.info.CS; | ||||
|             this.ControlBox = true; | ||||
|             this.MaximizeBox = true; | ||||
|             this.MinimizeBox = false; | ||||
|             //   tbSid.Text = sidname; | ||||
|             foreach (Control ctl in this.Controls) | ||||
|             { | ||||
|                 if (ctl.GetType() == typeof(TextBox) || ctl.GetType() == typeof(ComboBox)) | ||||
|                 { | ||||
|                     ctl.KeyDown += ctl_KeyDown; | ||||
|                 } | ||||
|             } | ||||
|             dr = ta.GetbyIDX(pumidx).FirstOrDefault(); | ||||
|         } | ||||
|  | ||||
|         void ctl_KeyDown(object sender, KeyEventArgs e) | ||||
|         { | ||||
|             if (e.KeyCode == Keys.Enter) | ||||
|             { | ||||
|                 Control ctl = sender as Control; | ||||
|                 string nm = ctl.Name.ToLower(); | ||||
|                 string search = ctl.Text.Trim(); | ||||
|                 SendKeys.Send("{TAB}"); | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         private void fItemAdd_Load(object sender, EventArgs e) | ||||
|         { | ||||
|             if (this.WindowState == FormWindowState.Minimized) this.WindowState = FormWindowState.Normal; | ||||
|             if (this.RestoreBounds.X + this.RestoreBounds.Width < 300 && this.RestoreBounds.X < 0) | ||||
|             { | ||||
|                 this.Location = new Point(0, 0); | ||||
|             } | ||||
|  | ||||
|             tbSid.Text = dr.IssidNull() == false ? dr.sid : string.Empty; | ||||
|             tbName.Text = dr.IsnameNull() == false ? dr.name : string.Empty; | ||||
|             tbModel.Text = dr.IsmodelNull() == false ? dr.model : string.Empty; | ||||
|             tbUnit.Text = dr.IsunitNull() == false ? dr.unit : string.Empty; | ||||
|             tbManu.Text = dr.IsmanuNull() == false ? dr.manu : string.Empty; | ||||
|             tbPrice.Text = dr.IspriceNull() == false ? dr.price.ToString() : string.Empty; | ||||
|             tbPriceD.Text = dr.IspriceDNull() == false ? dr.priceD.ToString() : string.Empty; | ||||
|             tbStorage.Text = dr.IsStorageNull() == false ? dr.Storage : string.Empty; | ||||
|             tbCate.Text = dr.IscateNull() == false ? dr.cate : string.Empty; | ||||
|             tbSupply.Text = dr.IssupplyNull() == false ? dr.supply : string.Empty; | ||||
|             tbSupplyIdx.Text = dr.IssupplyidxNull() == false ? dr.supplyidx.ToString() : string.Empty; | ||||
|             tbBarcode.Text = dr.IsbarcodeNull() == false ? dr.barcode : string.Empty; | ||||
|             tbMemo.Text = dr.IsmemoNull() == false ? dr.memo : string.Empty; | ||||
|             this.Show(); | ||||
|             //Application.DoEvents(); | ||||
|  | ||||
|         } | ||||
|  | ||||
|         private void btOK_Click(object sender, EventArgs e) | ||||
|         { | ||||
|             if (tbName.Text.Trim() == "") | ||||
|             { | ||||
|                 FCOMMON.Util.MsgE("품명은 필수 입니다"); | ||||
|                 tbName.Focus(); | ||||
|                 return; | ||||
|             } | ||||
|  | ||||
|             //if (tbModel.Text.Trim() == "") | ||||
|             //{ | ||||
|             //    FCOMMON.Util.MsgE("모델은 필수 입니다"); | ||||
|             //    tbModel.Focus(); | ||||
|             //    return; | ||||
|             //} | ||||
|  | ||||
|             //if (tbSid.Text.StartsWith("신규")) tbSid.Text = "신규"; | ||||
|             //else | ||||
|             //{ | ||||
|             //    //이떄는 sid가 정상이어야 한다. | ||||
|             //    if (tbSid.Text.StartsWith("10") == false || tbSid.TextLength != 9) | ||||
|             //    { | ||||
|             //        Util.MsgE("SID는 9자리 숫자이며 10으로 시작 합니다\n입력값을 확인 하세요"); | ||||
|             //        tbSid.Focus(); | ||||
|             //        tbSid.SelectAll(); | ||||
|             //        return; | ||||
|             //    } | ||||
|  | ||||
|             //    if (ta.ExistSID(FCOMMON.info.Login.gcode, tbSid.Text) > 0) | ||||
|             //    { | ||||
|             //        Util.MsgE("동일한 SID정보가 있습니다\n화면을 닫은 후 SID로 검색하세요"); | ||||
|             //        this.Close(); | ||||
|             //        return; | ||||
|             //    } | ||||
|             //} | ||||
|  | ||||
|             var pumName = tbName.Text.Trim(); | ||||
|             var pumModel = tbModel.Text.Trim(); | ||||
|             var searchKey = pumName + pumModel; | ||||
|             //var cnt = (int)(ta.ExistCheck(FCOMMON.info.Login.gcode, searchKey)); | ||||
|             //if (cnt > 0) | ||||
|             //{ | ||||
|             //    FCOMMON.Util.MsgE("동일 품명 모델의 정보가 존재 합니다"); | ||||
|             //    return; | ||||
|             //} | ||||
|  | ||||
|             if (int.TryParse(tbSupplyIdx.Text, out int supidx) == false) | ||||
|             { | ||||
|                 dr.SetsupplyidxNull(); | ||||
|             } | ||||
|              | ||||
|             dr.wdate = DateTime.Now; | ||||
|             dr.wuid = FCOMMON.info.Login.no; | ||||
|             dr.name = tbName.Text.Trim(); | ||||
|             dr.sid = tbSid.Text.Trim(); | ||||
|             dr.model = tbModel.Text.Trim(); | ||||
|             dr.manu = tbManu.Text.Trim(); | ||||
|             dr.supply = tbSupply.Text.Trim(); | ||||
|             dr.memo = tbMemo.Text.Trim(); | ||||
|             dr.cate = tbCate.Text.Trim(); | ||||
|             dr.Storage = tbStorage.Text.Trim(); | ||||
|             dr.barcode = tbBarcode.Text.Trim(); | ||||
|  | ||||
|             //21711 | ||||
|             if (tbPriceD.Text.isEmpty() == false) | ||||
|             { | ||||
|                 if (decimal.TryParse(tbPriceD.Text, out decimal priced)) | ||||
|                 { | ||||
|                     dr.priceD = priced; | ||||
|                     if (decimal.TryParse(tbPrice.Text, out decimal priceWon) == false) | ||||
|                     { | ||||
|                         var ConvertedPrice = (decimal)((double)priced * FCOMMON.info.dollertowon); | ||||
|                         tbPrice.Text = ConvertedPrice.ToString(); | ||||
|                     } | ||||
|                 } | ||||
|                 else | ||||
|                 { | ||||
|                     FCOMMON.Util.MsgE("입력값이 숫자가 아닙니다. 단가($)를 사용할 수 없습니다"); | ||||
|                 } | ||||
|             } | ||||
|  | ||||
|  | ||||
|             int price; | ||||
|             int.TryParse(tbPrice.Text, out price); | ||||
|             dr.price = price; | ||||
|  | ||||
|             if(dr.IscateNull() || dr.scale == 0) dr.scale = 1; | ||||
|             dr.unit = tbUnit.Text.Trim(); | ||||
|             if ( dr.IsunitNull() || dr.unit == "") dr.unit = "EA"; | ||||
|             dr.EndEdit(); | ||||
|  | ||||
|             try | ||||
|             { | ||||
|                 var cnt2 = ta.Update(dr); | ||||
|                 if (cnt2 == 0) | ||||
|                 { | ||||
|                     FCOMMON.Util.MsgE("변경 실패"); | ||||
|                 } | ||||
|                 else | ||||
|                 { | ||||
|                     this.newIDX = dr.idx; | ||||
|                     DialogResult = System.Windows.Forms.DialogResult.OK; | ||||
|                 } | ||||
|             } | ||||
|             catch (System.Exception eX) | ||||
|             { | ||||
|                 FCOMMON.Util.MsgE(eX.Message); | ||||
|                 newIDX = -1; | ||||
|             } | ||||
|         } | ||||
|  | ||||
|     } | ||||
| } | ||||
							
								
								
									
										162
									
								
								SubProject/FCM0000/Item/fItemEdit.resx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										162
									
								
								SubProject/FCM0000/Item/fItemEdit.resx
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,162 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <root> | ||||
|   <!--  | ||||
|     Microsoft ResX Schema  | ||||
|      | ||||
|     Version 2.0 | ||||
|      | ||||
|     The primary goals of this format is to allow a simple XML format  | ||||
|     that is mostly human readable. The generation and parsing of the  | ||||
|     various data types are done through the TypeConverter classes  | ||||
|     associated with the data types. | ||||
|      | ||||
|     Example: | ||||
|      | ||||
|     ... ado.net/XML headers & schema ... | ||||
|     <resheader name="resmimetype">text/microsoft-resx</resheader> | ||||
|     <resheader name="version">2.0</resheader> | ||||
|     <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | ||||
|     <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | ||||
|     <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | ||||
|     <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | ||||
|     <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | ||||
|         <value>[base64 mime encoded serialized .NET Framework object]</value> | ||||
|     </data> | ||||
|     <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | ||||
|         <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | ||||
|         <comment>This is a comment</comment> | ||||
|     </data> | ||||
|                  | ||||
|     There are any number of "resheader" rows that contain simple  | ||||
|     name/value pairs. | ||||
|      | ||||
|     Each data row contains a name, and value. The row also contains a  | ||||
|     type or mimetype. Type corresponds to a .NET class that support  | ||||
|     text/value conversion through the TypeConverter architecture.  | ||||
|     Classes that don't support this are serialized and stored with the  | ||||
|     mimetype set. | ||||
|      | ||||
|     The mimetype is used for serialized objects, and tells the  | ||||
|     ResXResourceReader how to depersist the object. This is currently not  | ||||
|     extensible. For a given mimetype the value must be set accordingly: | ||||
|      | ||||
|     Note - application/x-microsoft.net.object.binary.base64 is the format  | ||||
|     that the ResXResourceWriter will generate, however the reader can  | ||||
|     read any of the formats listed below. | ||||
|      | ||||
|     mimetype: application/x-microsoft.net.object.binary.base64 | ||||
|     value   : The object must be serialized with  | ||||
|             : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | ||||
|             : and then encoded with base64 encoding. | ||||
|      | ||||
|     mimetype: application/x-microsoft.net.object.soap.base64 | ||||
|     value   : The object must be serialized with  | ||||
|             : System.Runtime.Serialization.Formatters.Soap.SoapFormatter | ||||
|             : and then encoded with base64 encoding. | ||||
|  | ||||
|     mimetype: application/x-microsoft.net.object.bytearray.base64 | ||||
|     value   : The object must be serialized into a byte array  | ||||
|             : using a System.ComponentModel.TypeConverter | ||||
|             : and then encoded with base64 encoding. | ||||
|     --> | ||||
|   <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | ||||
|     <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | ||||
|     <xsd:element name="root" msdata:IsDataSet="true"> | ||||
|       <xsd:complexType> | ||||
|         <xsd:choice maxOccurs="unbounded"> | ||||
|           <xsd:element name="metadata"> | ||||
|             <xsd:complexType> | ||||
|               <xsd:sequence> | ||||
|                 <xsd:element name="value" type="xsd:string" minOccurs="0" /> | ||||
|               </xsd:sequence> | ||||
|               <xsd:attribute name="name" use="required" type="xsd:string" /> | ||||
|               <xsd:attribute name="type" type="xsd:string" /> | ||||
|               <xsd:attribute name="mimetype" type="xsd:string" /> | ||||
|               <xsd:attribute ref="xml:space" /> | ||||
|             </xsd:complexType> | ||||
|           </xsd:element> | ||||
|           <xsd:element name="assembly"> | ||||
|             <xsd:complexType> | ||||
|               <xsd:attribute name="alias" type="xsd:string" /> | ||||
|               <xsd:attribute name="name" type="xsd:string" /> | ||||
|             </xsd:complexType> | ||||
|           </xsd:element> | ||||
|           <xsd:element name="data"> | ||||
|             <xsd:complexType> | ||||
|               <xsd:sequence> | ||||
|                 <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | ||||
|                 <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | ||||
|               </xsd:sequence> | ||||
|               <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | ||||
|               <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | ||||
|               <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | ||||
|               <xsd:attribute ref="xml:space" /> | ||||
|             </xsd:complexType> | ||||
|           </xsd:element> | ||||
|           <xsd:element name="resheader"> | ||||
|             <xsd:complexType> | ||||
|               <xsd:sequence> | ||||
|                 <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | ||||
|               </xsd:sequence> | ||||
|               <xsd:attribute name="name" type="xsd:string" use="required" /> | ||||
|             </xsd:complexType> | ||||
|           </xsd:element> | ||||
|         </xsd:choice> | ||||
|       </xsd:complexType> | ||||
|     </xsd:element> | ||||
|   </xsd:schema> | ||||
|   <resheader name="resmimetype"> | ||||
|     <value>text/microsoft-resx</value> | ||||
|   </resheader> | ||||
|   <resheader name="version"> | ||||
|     <value>2.0</value> | ||||
|   </resheader> | ||||
|   <resheader name="reader"> | ||||
|     <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | ||||
|   </resheader> | ||||
|   <resheader name="writer"> | ||||
|     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | ||||
|   </resheader> | ||||
|   <metadata name="nameLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||
|     <value>False</value> | ||||
|   </metadata> | ||||
|   <metadata name="sidLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||
|     <value>False</value> | ||||
|   </metadata> | ||||
|   <metadata name="modelLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||
|     <value>False</value> | ||||
|   </metadata> | ||||
|   <metadata name="manuLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||
|     <value>False</value> | ||||
|   </metadata> | ||||
|   <metadata name="supplyLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||
|     <value>False</value> | ||||
|   </metadata> | ||||
|   <metadata name="memoLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||
|     <value>False</value> | ||||
|   </metadata> | ||||
|   <metadata name="priceLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||
|     <value>False</value> | ||||
|   </metadata> | ||||
|   <metadata name="label1.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||
|     <value>False</value> | ||||
|   </metadata> | ||||
|   <metadata name="label2.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||
|     <value>False</value> | ||||
|   </metadata> | ||||
|   <metadata name="label3.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||
|     <value>False</value> | ||||
|   </metadata> | ||||
|   <metadata name="label4.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||
|     <value>False</value> | ||||
|   </metadata> | ||||
|   <metadata name="label5.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||
|     <value>False</value> | ||||
|   </metadata> | ||||
|   <metadata name="ta.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||||
|     <value>122, 17</value> | ||||
|   </metadata> | ||||
|   <metadata name="dsMSSQL.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||||
|     <value>17, 17</value> | ||||
|   </metadata> | ||||
| </root> | ||||
		Reference in New Issue
	
	Block a user
	 chi
					chi