..
This commit is contained in:
		| @@ -272,7 +272,7 @@ namespace FEQ0000 | ||||
|  | ||||
|  | ||||
|  | ||||
|          | ||||
|  | ||||
|         private void sC검색ToolStripMenuItem_Click(object sender, EventArgs e) | ||||
|         { | ||||
|             //sc | ||||
| @@ -361,6 +361,26 @@ namespace FEQ0000 | ||||
|             this.Validate(); | ||||
|             this.bs.EndEdit(); | ||||
|  | ||||
|             //데이터를 검색한다. | ||||
|             foreach (DataGridViewRow row in this.dataGridView1.Rows) | ||||
|             { | ||||
|                 var dr = row.DataBoundItem as dsPurchase.PurchaseRow; | ||||
|                 var qtyreq = 0; | ||||
|                 var qty = 0; | ||||
|                 if (dr.IspumqtyReqNull() == false) qtyreq = dr.pumqtyReq; | ||||
|                 if (dr.IspumqtyNull() == false) qty = dr.pumqty; | ||||
|                 if (qty < 1) | ||||
|                 { | ||||
|                     Util.MsgE($"[{dr.sid}] {dr.pumname}의 구매 수량이 없습니다"); | ||||
|                     break; | ||||
|                 } | ||||
|                 //if(qty > qtyreq) | ||||
|                 //{ | ||||
|                 //    Util.MsgE($"[{dr.sid}] {dr.pumname}의 구매 수량이 요청 수량보다 많습니다"); | ||||
|                 //    break; | ||||
|                 //} | ||||
|             } | ||||
|  | ||||
|             //승인요청 | ||||
|             var dlg = FCOMMON.Util.MsgQ("현재 자료를 승인 요청 할까요?"); | ||||
|             if (dlg != DialogResult.Yes) return; | ||||
| @@ -480,5 +500,24 @@ namespace FEQ0000 | ||||
|             } | ||||
|             this.dataGridView1.Refresh(); | ||||
|         } | ||||
|  | ||||
|         private void toolStripButton2_Click_1(object sender, EventArgs e) | ||||
|         { | ||||
|             this.Validate(); | ||||
|             this.bs.EndEdit(); | ||||
|             foreach (DataGridViewRow row in this.dataGridView1.Rows) | ||||
|             { | ||||
|                 var dr = row.DataBoundItem as dsPurchase.EETGW_PurchaseEBRow; | ||||
|                 if (dr.IspumqtyNull() == false && dr.pumqty > 0) | ||||
|                 { | ||||
|  | ||||
|                 } | ||||
|                 else | ||||
|                 { | ||||
|                     dr.pumqty = dr.pumqtyReq; | ||||
|                     dr.EndEdit(); | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 chi
					chi