|
|
@@ -148,7 +148,7 @@ namespace UAS_LabelMachine
|
|
|
//流水需要通过MaxNumber去取
|
|
|
case "流水":
|
|
|
NrData[m] = dh.getFieldDataByCondition("RuleMaxNum", "rmn_maxnumber", "rmn_nrcode='" + CustCode + "'").ToString();
|
|
|
- Suffix ="";
|
|
|
+ Suffix = "";
|
|
|
PrefixFixed = Prefix;
|
|
|
//设置当前流水
|
|
|
custserialnum = int.Parse(NrData[m] == "" ? "0" : NrData[m]);
|
|
|
@@ -189,6 +189,7 @@ namespace UAS_LabelMachine
|
|
|
string pd_ordercode = ProdIoInfDGV.Rows[i].Cells["pd_ordercode"].FormattedValue.ToString();
|
|
|
string pd_pdno = ProdIoInfDGV.Rows[i].Cells["pd_pdno"].FormattedValue.ToString();
|
|
|
string pd_orderdetno = ProdIoInfDGV.Rows[i].Cells["pd_orderdetno"].FormattedValue.ToString();
|
|
|
+ string pr_brand = ProdIoInfDGV.Rows[i].Cells["pr_brand"].FormattedValue.ToString();
|
|
|
//总数
|
|
|
int pd_totalqty = int.Parse(ProdIoInfDGV.Rows[i].Cells["pd_totalqty"].FormattedValue.ToString());
|
|
|
//本次数量
|
|
|
@@ -248,9 +249,9 @@ namespace UAS_LabelMachine
|
|
|
{
|
|
|
//插入条码
|
|
|
sql.Clear();
|
|
|
- sql.Append("insert into prodiobarcode (PIB_ID,PIB_PRODCODE,PIB_INDATE,PIB_INOUTNO,PIB_PIID,PIB_BARCODE,PIB_CUSTBARCODE,PIB_PDNO,");
|
|
|
+ sql.Append("insert into prodiobarcode (PIB_ID,PIB_PRODCODE,PIB_INDATE,PIB_INOUTNO,PIB_PIID,pib_brand,PIB_BARCODE,PIB_CUSTBARCODE,PIB_PDNO,");
|
|
|
sql.Append("PIB_PDID,PIB_PICLASS,PIB_QTY,PIB_PRODID,PIB_OUTBOXCODE1,PIB_IFPRINT,PIB_IFPICK,PIB_ORDERCODE,PIB_CUSTPO,pib_orderdetno)");
|
|
|
- sql.Append(" values (prodiobarcode_seq.nextval,'" + pd_prodcode + "',sysdate,'" + pi_inoutno.Text + "'," + pi_id + ",:barcode,:custbarcode,'" + pd_pdno + "','" + pd_id + "',");
|
|
|
+ sql.Append(" values (prodiobarcode_seq.nextval,'" + pd_prodcode + "',sysdate,'" + pi_inoutno.Text + "'," + pi_id + ",'" + pr_brand + "',:barcode,:custbarcode,'" + pd_pdno + "','" + pd_id + "',");
|
|
|
sql.Append("'" + pi_class.Text + "',:pib_inqty,'" + pr_id + "',:midcode,0,0,'" + pd_ordercode + "','','" + pd_orderdetno + "')");
|
|
|
dh.BatchInsert(sql.ToString(), new string[] { "barcode", "custbarcode", "pib_inqty", "midcode" }, barcode.ToArray(), custbarcode.ToArray(), pib_inqty.ToArray(), midcode.ToArray());
|
|
|
//更新最大流水号
|
|
|
@@ -315,7 +316,7 @@ namespace UAS_LabelMachine
|
|
|
}
|
|
|
|
|
|
//生成客户条码
|
|
|
- public string BarcodeMethod1(string Prefix,string Suffix,int Index, int Length, int radix)
|
|
|
+ public string BarcodeMethod1(string Prefix, string Suffix, int Index, int Length, int radix)
|
|
|
{
|
|
|
string str = Prefix;
|
|
|
//如果是流水则需要在前面加0
|