You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.3 KiB
41 lines
1.3 KiB
using MESClassLibrary.BLL.BasicInfo;
|
|
using MESClassLibrary.BLL.Inspection;
|
|
using Stone.Common;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
|
|
namespace InjectionPC
|
|
{
|
|
public partial class FrmPackageDetail : Form
|
|
{
|
|
private BarCodeBLL _barCodeBLL = new BarCodeBLL();
|
|
private InjectionBoxBLL _injectionBoxBLL = new InjectionBoxBLL();
|
|
private string _packageCode = string.Empty;
|
|
|
|
public FrmPackageDetail(string pPackageCode)
|
|
{
|
|
InitializeComponent();
|
|
this.StartPosition = FormStartPosition.CenterParent;
|
|
this._packageCode = pPackageCode;
|
|
txtPackageCode.Text = pPackageCode;
|
|
dataGridView1.AutoGenerateColumns = false;
|
|
MyGridViewStyle.SetDataGridRowNumber(dataGridView1);
|
|
btnSearch_Click(null, null);
|
|
this.Size = new Size(1024, 810);
|
|
}
|
|
|
|
private void btnSearch_Click(object sender, EventArgs e)
|
|
{
|
|
string boxCode = txtPackageCode.Text?.Trim();
|
|
DataTable dt = _barCodeBLL.SearchBarCode(boxCode, Program.tableName, "200");
|
|
|
|
dataGridView1.DataSource = dt;
|
|
}
|
|
}
|
|
}
|
|
|