기술레벨 => 기술단가 로 변경(이종명s)
This commit is contained in:
		| @@ -1108,10 +1108,11 @@ namespace FCOMMON | |||||||
|             retval.Columns.Add("Code"); |             retval.Columns.Add("Code"); | ||||||
|             retval.Columns.Add("Value"); |             retval.Columns.Add("Value"); | ||||||
|             retval.Columns.Add("SValue"); |             retval.Columns.Add("SValue"); | ||||||
|  |             retval.Columns.Add("FValue"); | ||||||
|  |  | ||||||
|             var cn = getCn(); |             var cn = getCn(); | ||||||
|             cn.Open(); |             cn.Open(); | ||||||
|             var sql = "select isnull(code,''),isnull(memo ,''),isnull(svalue,'')" + |             var sql = "select isnull(code,''),isnull(memo ,''),isnull(svalue,''),isnull(fvalue,'')" + | ||||||
|                 " from common" + |                 " from common" + | ||||||
|                 " where gcode='" + FCOMMON.info.Login.gcode + "' and grp = '" + GroupCode + "'" + |                 " where gcode='" + FCOMMON.info.Login.gcode + "' and grp = '" + GroupCode + "'" + | ||||||
|                 " and isnull(code,'') <> ''" + |                 " and isnull(code,'') <> ''" + | ||||||
| @@ -1131,7 +1132,7 @@ namespace FCOMMON | |||||||
|             var rdr = cmd.ExecuteReader(); |             var rdr = cmd.ExecuteReader(); | ||||||
|             while (rdr.Read()) |             while (rdr.Read()) | ||||||
|             { |             { | ||||||
|                 retval.Rows.Add(new string[] { rdr[0].ToString(), rdr[1].ToString(), rdr[2].ToString() }); |                 retval.Rows.Add(new string[] { rdr[0].ToString(), rdr[1].ToString(), rdr[2].ToString(), rdr[3].ToString() }); | ||||||
|             } |             } | ||||||
|             rdr.Close(); |             rdr.Close(); | ||||||
|             cmd.Dispose(); |             cmd.Dispose(); | ||||||
|   | |||||||
| @@ -44,6 +44,7 @@ | |||||||
|             System.Windows.Forms.Label label9; |             System.Windows.Forms.Label label9; | ||||||
|             System.Windows.Forms.Label label10; |             System.Windows.Forms.Label label10; | ||||||
|             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fJobReport_Add)); |             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fJobReport_Add)); | ||||||
|  |             System.Windows.Forms.Label label11; | ||||||
|             this.lbSummary = new System.Windows.Forms.Label(); |             this.lbSummary = new System.Windows.Forms.Label(); | ||||||
|             this.tbHrs = new System.Windows.Forms.TextBox(); |             this.tbHrs = new System.Windows.Forms.TextBox(); | ||||||
|             this.bs = new System.Windows.Forms.BindingSource(this.components); |             this.bs = new System.Windows.Forms.BindingSource(this.components); | ||||||
| @@ -95,6 +96,7 @@ | |||||||
|             label8 = new System.Windows.Forms.Label(); |             label8 = new System.Windows.Forms.Label(); | ||||||
|             label9 = new System.Windows.Forms.Label(); |             label9 = new System.Windows.Forms.Label(); | ||||||
|             label10 = new System.Windows.Forms.Label(); |             label10 = new System.Windows.Forms.Label(); | ||||||
|  |             label11 = new System.Windows.Forms.Label(); | ||||||
|             ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); |             ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); | ||||||
|             ((System.ComponentModel.ISupportInitialize)(this.dsPRJ)).BeginInit(); |             ((System.ComponentModel.ISupportInitialize)(this.dsPRJ)).BeginInit(); | ||||||
|             this.statusStrip1.SuspendLayout(); |             this.statusStrip1.SuspendLayout(); | ||||||
| @@ -213,7 +215,7 @@ | |||||||
|             label8.Name = "label8"; |             label8.Name = "label8"; | ||||||
|             label8.Size = new System.Drawing.Size(53, 12); |             label8.Size = new System.Drawing.Size(53, 12); | ||||||
|             label8.TabIndex = 9; |             label8.TabIndex = 9; | ||||||
|             label8.Text = "기술레벨"; |             label8.Text = "기술단가"; | ||||||
|             //  |             //  | ||||||
|             // label9 |             // label9 | ||||||
|             //  |             //  | ||||||
| @@ -450,6 +452,7 @@ | |||||||
|             this.richTextBoxEx1.Dock = System.Windows.Forms.DockStyle.Fill; |             this.richTextBoxEx1.Dock = System.Windows.Forms.DockStyle.Fill; | ||||||
|             this.richTextBoxEx1.FilePath = ""; |             this.richTextBoxEx1.FilePath = ""; | ||||||
|             this.richTextBoxEx1.Location = new System.Drawing.Point(0, 205); |             this.richTextBoxEx1.Location = new System.Drawing.Point(0, 205); | ||||||
|  |             this.richTextBoxEx1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); | ||||||
|             this.richTextBoxEx1.Name = "richTextBoxEx1"; |             this.richTextBoxEx1.Name = "richTextBoxEx1"; | ||||||
|             this.richTextBoxEx1.Rtf = resources.GetString("richTextBoxEx1.Rtf"); |             this.richTextBoxEx1.Rtf = resources.GetString("richTextBoxEx1.Rtf"); | ||||||
|             this.richTextBoxEx1.SetColorWithFont = true; |             this.richTextBoxEx1.SetColorWithFont = true; | ||||||
| @@ -520,6 +523,7 @@ | |||||||
|             //  |             //  | ||||||
|             // grpkisul |             // grpkisul | ||||||
|             //  |             //  | ||||||
|  |             this.grpkisul.Controls.Add(label11); | ||||||
|             this.grpkisul.Controls.Add(label10); |             this.grpkisul.Controls.Add(label10); | ||||||
|             this.grpkisul.Controls.Add(this.cmb_kisuldiv); |             this.grpkisul.Controls.Add(this.cmb_kisuldiv); | ||||||
|             this.grpkisul.Controls.Add(this.textBox1); |             this.grpkisul.Controls.Add(this.textBox1); | ||||||
| @@ -528,7 +532,7 @@ | |||||||
|             this.grpkisul.Controls.Add(label8); |             this.grpkisul.Controls.Add(label8); | ||||||
|             this.grpkisul.Location = new System.Drawing.Point(615, 87); |             this.grpkisul.Location = new System.Drawing.Point(615, 87); | ||||||
|             this.grpkisul.Name = "grpkisul"; |             this.grpkisul.Name = "grpkisul"; | ||||||
|             this.grpkisul.Size = new System.Drawing.Size(207, 82); |             this.grpkisul.Size = new System.Drawing.Size(207, 110); | ||||||
|             this.grpkisul.TabIndex = 29; |             this.grpkisul.TabIndex = 29; | ||||||
|             this.grpkisul.TabStop = false; |             this.grpkisul.TabStop = false; | ||||||
|             this.grpkisul.Text = "기술료"; |             this.grpkisul.Text = "기술료"; | ||||||
| @@ -544,6 +548,7 @@ | |||||||
|             //  |             //  | ||||||
|             // textBox1 |             // textBox1 | ||||||
|             //  |             //  | ||||||
|  |             this.textBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); | ||||||
|             this.textBox1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "kisulamt", true, System.Windows.Forms.DataSourceUpdateMode.OnValidation, null, "N3")); |             this.textBox1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "kisulamt", true, System.Windows.Forms.DataSourceUpdateMode.OnValidation, null, "N3")); | ||||||
|             this.textBox1.Font = new System.Drawing.Font("굴림", 9F); |             this.textBox1.Font = new System.Drawing.Font("굴림", 9F); | ||||||
|             this.textBox1.Location = new System.Drawing.Point(77, 55); |             this.textBox1.Location = new System.Drawing.Point(77, 55); | ||||||
| @@ -628,6 +633,16 @@ | |||||||
|             this.tam.SPMasterTableAdapter = null; |             this.tam.SPMasterTableAdapter = null; | ||||||
|             this.tam.UpdateOrder = FPJ0000.dsPRJTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete; |             this.tam.UpdateOrder = FPJ0000.dsPRJTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete; | ||||||
|             //  |             //  | ||||||
|  |             // label11 | ||||||
|  |             //  | ||||||
|  |             label11.AutoSize = true; | ||||||
|  |             label11.ForeColor = System.Drawing.Color.DimGray; | ||||||
|  |             label11.Location = new System.Drawing.Point(19, 82); | ||||||
|  |             label11.Name = "label11"; | ||||||
|  |             label11.Size = new System.Drawing.Size(147, 12); | ||||||
|  |             label11.TabIndex = 25; | ||||||
|  |             label11.Text = "* 비용은 자동 계산 됩니다"; | ||||||
|  |             //  | ||||||
|             // fJobReport_Add |             // fJobReport_Add | ||||||
|             //  |             //  | ||||||
|             this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); |             this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); | ||||||
|   | |||||||
| @@ -1,6 +1,7 @@ | |||||||
| using System; | using System; | ||||||
| using System.Collections.Generic; | using System.Collections.Generic; | ||||||
| using System.ComponentModel; | using System.ComponentModel; | ||||||
|  | using System.ComponentModel.DataAnnotations; | ||||||
| using System.Data; | using System.Data; | ||||||
| using System.Drawing; | using System.Drawing; | ||||||
| using System.Linq; | using System.Linq; | ||||||
| @@ -124,9 +125,18 @@ namespace FPJ0000.JobReport_ | |||||||
|  |  | ||||||
|                 //기술레벨 |                 //기술레벨 | ||||||
|                 var dt_kisullv = FCOMMON.DBM.getCodeTable("51"); |                 var dt_kisullv = FCOMMON.DBM.getCodeTable("51"); | ||||||
|                 this.cmb_kisullv.DisplayMember = "Value"; |                 this.cmb_kisullv.Items.Clear(); | ||||||
|                 this.cmb_kisullv.ValueMember = "Value"; |                 this.cmb_kisullv.Items.Add("0"); | ||||||
|                 this.cmb_kisullv.DataSource = dt_kisullv; |                 foreach (DataRow dr in dt_kisullv.Rows) | ||||||
|  |                 { | ||||||
|  |                     var v = dr["fvalue"]; | ||||||
|  |                     if (v == null || string.IsNullOrWhiteSpace(v.ToString())) continue; | ||||||
|  |                     if (this.cmb_kisullv.Items.Contains(v.ToString()) == false) | ||||||
|  |                         this.cmb_kisullv.Items.Add(v.ToString()); | ||||||
|  |                 } | ||||||
|  |                 //this.cmb_kisullv.DisplayMember = "Value"; | ||||||
|  |                 //this.cmb_kisullv.ValueMember = "Value"; | ||||||
|  |                 //this.cmb_kisullv.DataSource = dt_kisullv; | ||||||
|             } |             } | ||||||
|  |  | ||||||
|             //담당자목록 |             //담당자목록 | ||||||
| @@ -609,12 +619,19 @@ namespace FPJ0000.JobReport_ | |||||||
|             if (getKisulInput) |             if (getKisulInput) | ||||||
|             { |             { | ||||||
|                 //기술금액을 계산해야함 |                 //기술금액을 계산해야함 | ||||||
|                 var price = FCOMMON.DBM.getCodeFvalue("51", cmb_kisullv.Text); |                 double amt = 0; | ||||||
|                 var amt = (dr.hrs + dr.ot) * price; |                 if (float.TryParse(cmb_kisullv.Text, out float price)) | ||||||
|  |                 { | ||||||
|  |                     //var price = FCOMMON.DBM.getCodeFvalue("51", cmb_kisullv.Text); | ||||||
|  |                     amt = (dr.hrs + dr.ot) * price; | ||||||
|                     this.dr.kisuldiv = cmb_kisuldiv.Text; |                     this.dr.kisuldiv = cmb_kisuldiv.Text; | ||||||
|                     this.dr.kisullv = cmb_kisullv.Text; |                     this.dr.kisullv = cmb_kisullv.Text; | ||||||
|                 this.dr.kisulamt =(Decimal)amt; // Decimal.Parse(textBox1.Text); |                     this.dr.kisulamt = (Decimal)amt; // Decimal.Parse(textBox1.Text); | ||||||
|  |                 } | ||||||
|  |                 else | ||||||
|  |                 { | ||||||
|  |                     dr.kisulamt = 0; | ||||||
|  |                 } | ||||||
|                 textBox1.Text = amt.ToString(); |                 textBox1.Text = amt.ToString(); | ||||||
|             } |             } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -162,6 +162,12 @@ | |||||||
|   <metadata name="bs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |   <metadata name="bs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||||||
|     <value>100, 17</value> |     <value>100, 17</value> | ||||||
|   </metadata> |   </metadata> | ||||||
|  |   <metadata name="bs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||||||
|  |     <value>100, 17</value> | ||||||
|  |   </metadata> | ||||||
|  |   <metadata name="dsPRJ.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||||||
|  |     <value>17, 17</value> | ||||||
|  |   </metadata> | ||||||
|   <metadata name="dsPRJ.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |   <metadata name="dsPRJ.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||||||
|     <value>17, 17</value> |     <value>17, 17</value> | ||||||
|   </metadata> |   </metadata> | ||||||
| @@ -178,10 +184,16 @@ | |||||||
|   <metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |   <metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||||||
|     <value>416, 17</value> |     <value>416, 17</value> | ||||||
|   </metadata> |   </metadata> | ||||||
|  |   <metadata name="label11.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"> |   <metadata name="ta.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||||||
|     <value>164, 17</value> |     <value>164, 17</value> | ||||||
|   </metadata> |   </metadata> | ||||||
|   <metadata name="tam.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |   <metadata name="tam.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||||||
|     <value>226, 17</value> |     <value>226, 17</value> | ||||||
|   </metadata> |   </metadata> | ||||||
|  |   <metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||||||
|  |     <value>416, 17</value> | ||||||
|  |   </metadata> | ||||||
| </root> | </root> | ||||||
		Reference in New Issue
	
	Block a user
	 chi
					chi