47 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| using FCOMMON;
 | |
| using System;
 | |
| using System.Collections.Generic;
 | |
| using System.ComponentModel;
 | |
| using System.Data;
 | |
| using System.Drawing;
 | |
| using System.Linq;
 | |
| using System.Text;
 | |
| using System.Threading.Tasks;
 | |
| using System.Windows.Forms;
 | |
| 
 | |
| namespace FEQ0000.Purchase
 | |
| {
 | |
|     public partial class fSIDListSelect : Form
 | |
|     {
 | |
|         public fSIDListSelect(string sid,DataTable dt)
 | |
|         {
 | |
|             InitializeComponent();
 | |
|             this.bs.DataSource = dt;
 | |
|             this.dv1.DataSource = this.bs;
 | |
|             this.bs.Sort = "quantity desc";
 | |
|             this.Text = $"SPM/NR 검색 결과 SID:{sid}";
 | |
|             this.KeyPreview = true;
 | |
|             this.KeyDown += (s1, e1) => {
 | |
|                 if (e1.KeyCode == Keys.Escape) this.Close();
 | |
|             };
 | |
|             this.Width += 150;
 | |
|         }
 | |
| 
 | |
|         private void toolStripButton1_Click(object sender, EventArgs e)
 | |
|         {
 | |
|             DBM.InsertLog("SIDCHK", this.Text);
 | |
|             DialogResult = DialogResult.OK;
 | |
|         }
 | |
| 
 | |
|         private void dataGridView1_DoubleClick(object sender, EventArgs e)
 | |
|         {
 | |
| 
 | |
|         }
 | |
| 
 | |
|         private void fSIDListSelect_Load(object sender, EventArgs e)
 | |
|         {
 | |
|             this.dv1.AutoResizeColumns();
 | |
|         }
 | |
|     }
 | |
| }
 | 
