|
|
@@ -25,8 +25,6 @@ namespace UAS_LabelMachine
|
|
|
Dictionary<string, string> NotPass = new Dictionary<string, string>();
|
|
|
//前缀条件
|
|
|
string Prefix = "";
|
|
|
-
|
|
|
- string Condition = "";
|
|
|
//生成条码的流水号
|
|
|
int serialnum = 0;
|
|
|
//客户的流水号
|
|
|
@@ -51,8 +49,7 @@ namespace UAS_LabelMachine
|
|
|
//如果传进了出入库单号则默认执行一次取数据
|
|
|
if (pi_inoutno.Text != "")
|
|
|
{
|
|
|
- KeyEventArgs e2 = new KeyEventArgs(Keys.Enter);
|
|
|
- bi_inoutno_KeyDown(sender, e2);
|
|
|
+ bi_inoutno_KeyDown(sender, new KeyEventArgs(Keys.Enter));
|
|
|
}
|
|
|
pr_kind.Text = "全部";
|
|
|
asc.controllInitializeSize(this);
|
|
|
@@ -79,22 +76,7 @@ namespace UAS_LabelMachine
|
|
|
/// <param name="e"></param>
|
|
|
private void Screen_Click(object sender, EventArgs e)
|
|
|
{
|
|
|
- switch (pr_kind.Text)
|
|
|
- {
|
|
|
- case "全部":
|
|
|
- Condition = "";
|
|
|
- break;
|
|
|
- case "单件管控":
|
|
|
- Condition = " and pr_tracekind=1";
|
|
|
- break;
|
|
|
- case "批管控":
|
|
|
- Condition = " and pr_tracekind=2";
|
|
|
- break;
|
|
|
- default:
|
|
|
- break;
|
|
|
- }
|
|
|
- KeyEventArgs e2 = new KeyEventArgs(Keys.Enter);
|
|
|
- bi_inoutno_KeyDown(sender, e2);
|
|
|
+ bi_inoutno_KeyDown(sender, new KeyEventArgs(Keys.Enter));
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
@@ -334,8 +316,6 @@ namespace UAS_LabelMachine
|
|
|
return str;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
private static string lpad(int length, string number)
|
|
|
{
|
|
|
while (number.Length < length)
|
|
|
@@ -536,19 +516,6 @@ namespace UAS_LabelMachine
|
|
|
BaseUtil.SetFormValue(this.Controls, dt);
|
|
|
//查询出入库的类型
|
|
|
dt = (DataTable)dh.ExecuteSql("select ds_inorout from documentsetup where ds_name='" + pi_class.Text + "'", "select");
|
|
|
- string pd_inoroutqty = "";
|
|
|
- string pd_barcodeioqty = "";
|
|
|
- //判断出入库类型,查询的时候设置不同的字段
|
|
|
- if (dt.Rows[0]["ds_inorout"].ToString().ToUpper() == "IN")
|
|
|
- {
|
|
|
- pd_inoroutqty = "pd_inqty";
|
|
|
- pd_barcodeioqty = "pd_barcodeinqty";
|
|
|
- }
|
|
|
- else if (dt.Rows[0]["ds_inorout"].ToString().ToUpper() == "OUT")
|
|
|
- {
|
|
|
- pd_inoroutqty = "pd_outqty";
|
|
|
- pd_barcodeioqty = "pd_barcodeoutqty";
|
|
|
- }
|
|
|
sql.Clear();
|
|
|
sql.Append("select * from prodiobarcode_view where pd_piid='" + pi_id + "'");
|
|
|
dt = (DataTable)dh.ExecuteSql(sql.ToString(), "select");
|