/// <summary> /// 更新标签状态 /// </summary> private void UpdateBarcode2(string strBarcode) { string strSql = "update Mes_Barcode set B_Status = '1' where B_Barcode = '" + strBarcode + "'"; Mes_BarcodeBLL BarcodeBLL = new Mes_BarcodeBLL(); BarcodeBLL.Update(strSql); }
/// <summary> /// 删除原卡信息 /// </summary> /// <param name="strGoodsCode"></param> /// <returns></returns> private void DeleteData(string strBarcode) { Mes_BarcodeBLL BarcodeBLL = new Mes_BarcodeBLL(); //string strSql = "Update Mes_Barcode set B_Remark = '已经分写' where B_Barcode = '"+ strBarcode +"'"; string strSql = "delete from Mes_Barcode where B_Barcode = '" + strBarcode + "'"; BarcodeBLL.Update(strSql); }
/// <summary> /// 删除ESL标签条码 /// </summary> /// <param name="strId"></param> /// <returns></returns> private bool DeleteBarcode(string strBarcode) { try { string strSql = "delete from Mes_Barcode where B_Barcode = '" + strBarcode + "'"; Mes_BarcodeBLL BarcodeBLL = new Mes_BarcodeBLL(); int nRow = BarcodeBLL.Update(strSql); if (nRow > 0) { return(true); } else { return(false); } } catch (Exception ex) { return(false); } }