개인/월별 작업 시간 합계, 그래프에서 폼즈로 변경
This commit is contained in:
		| @@ -22,6 +22,8 @@ namespace FCM0000 | ||||
|         public string itemSupply { get; set; } | ||||
|         public int itemSupplyidx { get; set; } | ||||
|  | ||||
|         public string itemManu { get; set; } | ||||
|  | ||||
|         public fLovItem(string search_) | ||||
|         { | ||||
|             InitializeComponent(); | ||||
| @@ -37,6 +39,7 @@ namespace FCM0000 | ||||
|             itemUnit = "EA"; | ||||
|             itemSupply = string.Empty; | ||||
|             itemSupplyidx = -1; | ||||
|             itemManu = string.Empty; | ||||
|  | ||||
|             this.KeyPreview = true; | ||||
|             this.KeyDown += (s1, e1) => | ||||
| @@ -61,6 +64,8 @@ namespace FCM0000 | ||||
|                 tbFind.SelectAll(); | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         Boolean searchOk = false; | ||||
|         void refreshData(string search) | ||||
|         { | ||||
|             if(search == "") | ||||
| @@ -77,6 +82,7 @@ namespace FCM0000 | ||||
|                 //검색을 수행 | ||||
|                 this.taPMP.Fill(this.dSPMP.SPMaster, "%" + search + "%"); | ||||
|                 this.arDatagridView1.AutoResizeColumns(); | ||||
|                 searchOk = true; | ||||
|             } | ||||
|              | ||||
|              | ||||
| @@ -93,6 +99,7 @@ namespace FCM0000 | ||||
|                 itemprice = 0; | ||||
|                 itemSupply = string.Empty; | ||||
|                 itemSupplyidx = -1; | ||||
|                 itemManu = string.Empty; | ||||
|                 itemUnit = "EA"; | ||||
|                 SID = string.Empty; | ||||
|                 return; | ||||
| @@ -105,6 +112,8 @@ namespace FCM0000 | ||||
|                 else itemName = dr.name; | ||||
|                 if (dr.IsmodelNull()) itemmodel = string.Empty; | ||||
|                 else itemmodel = dr.model; | ||||
|                 if (dr.IsmanuNull()) itemManu = string.Empty; | ||||
|                 else itemManu = dr.manu; | ||||
|                 if (dr.IspriceNull()) itemprice = 0; | ||||
|                 else itemprice = dr.price; | ||||
|                 if (dr.IssupplyNull()) itemSupply = string.Empty; | ||||
| @@ -217,12 +226,20 @@ namespace FCM0000 | ||||
|  | ||||
|         private void btAdd_Click(object sender, EventArgs e) | ||||
|         { | ||||
|             if(searchOk==false) | ||||
|             { | ||||
|                 FCOMMON.Util.MsgE("먼저 검색을 통해서 아이템을 찾은 후 없다면 신규추가를 눌러 주세요"); | ||||
|                 tbFind.Focus(); | ||||
|                 tbFind.SelectAll(); | ||||
|                 return; | ||||
|             } | ||||
|             var f = new Item.fItemAdd(); | ||||
|             if(f.ShowDialog() == System.Windows.Forms.DialogResult.OK) | ||||
|             { | ||||
|                 itemName = f.tbName.Text.Trim(); | ||||
|                 item = f.newIDX; | ||||
|                 itemmodel = f.tbModel.Text.Trim(); | ||||
|                 itemManu = f.tbManu.Text.Trim(); | ||||
|                 decimal price; | ||||
|                 decimal.TryParse(f.tbPrice.Text.Replace(",",""),out price); | ||||
|                 itemprice =price;// decimal.Parse(f.tbPrice.Text.Trim().Replace(",","")); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 chi
					chi