|
|
@@ -110,6 +110,8 @@ namespace UAS_MES_NEW.Query
|
|
|
MessageBox.Show("生成明细成功");
|
|
|
}
|
|
|
|
|
|
+ string new_barcode = "";
|
|
|
+
|
|
|
private void pi_inoutno_UserControlTextChanged(object sender, EventArgs e)
|
|
|
{
|
|
|
LoadGridData();
|
|
|
@@ -138,24 +140,34 @@ namespace UAS_MES_NEW.Query
|
|
|
MessageBox.Show("条码" + barcode.Text + "不存在");
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
- BarCodePrint bar=new BarCodePrint(barcode.Text);
|
|
|
- bar.StartPosition= FormStartPosition.CenterScreen;
|
|
|
- bar.Controls["PrintBarCode"].Click += Print_Click_1;
|
|
|
+ BarCodePrint bar = new BarCodePrint(barcode.Text);
|
|
|
+ bar.StartPosition = FormStartPosition.CenterScreen;
|
|
|
bar.ShowDialog();
|
|
|
+ string newbarcode = bar.Controls["newbarcode"].Text;
|
|
|
+ string bar_remain = bar.Controls["bar_remain"].Text;
|
|
|
+ bar.Controls["PrintBarCode"].Click += Query_BarcodeIn_Click;
|
|
|
|
|
|
string pi_id = dh.getFieldDataByCondition("prodinout", "pi_id", "pi_inoutno='" + pi_inoutno.Text + "'").ToString();
|
|
|
- string bar_remain = dt.Rows[0]["bar_remain"].ToString();
|
|
|
string bar_code = dt.Rows[0]["bar_code"].ToString();
|
|
|
string bar_prodcode = dt.Rows[0]["bar_prodcode"].ToString();
|
|
|
string bar_madedate = dt.Rows[0]["bar_madedate"].ToString();
|
|
|
string bar_vendbarcode = dt.Rows[0]["bar_vendbarcode"].ToString();
|
|
|
dh.ExecuteSql("insert into barcodeio(bi_id,bi_piid,bi_barcode,bi_inoutno,bi_prodcode,bi_indate,bi_inqty,bi_vendbarcode,bi_madedate,bi_sourcecode)" +
|
|
|
- "values(barcodeio_seq.nextval,'" + pi_id + "','" + bar_code + "','" + pi_inoutno.Text + "','" + bar_prodcode + "',sysdate,'" + bar_remain + "','" + bar_vendbarcode + "',to_date('" + bar_madedate + "','yyyy-mm-dd'),'"+ bar_code + "')", "insert");
|
|
|
+ "values(barcodeio_seq.nextval,'" + pi_id + "','" + newbarcode + "','" + pi_inoutno.Text + "','" + bar_prodcode + "',sysdate,'" + bar_remain + "','" + bar_vendbarcode + "',to_date('" + bar_madedate + "','yyyy-mm-dd'),'" + bar_code + "')", "insert");
|
|
|
LoadGridData();
|
|
|
+ string ErrorMessage = "";
|
|
|
+ if (Print.BarTender(Tag.ToString(), ref engine, PrintLabel.Text, PrintLabel.SelectedValue.ToString(), PrinterList.Text, new_barcode, int.Parse("1"), pi_inoutno.Text, bar_prodcode, "自定义", "0", out ErrorMessage))
|
|
|
+ {
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ private void Query_BarcodeIn_Click(object sender, EventArgs e)
|
|
|
+ {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
private void DeleteBarcode_Click(object sender, EventArgs e)
|
|
|
{
|
|
|
if (!ifcheckrow())
|