| | |
| | | return itemInfo; |
| | | } |
| | | |
| | | public string BarCF(WarehouseQuery unity) |
| | | public ProductionPickDto BarCF(WarehouseQuery unity) |
| | | { |
| | | var _strMsg = ""; |
| | | var _intSum = ""; |
| | | var _cfBar = "";//拆分后条码 |
| | | using (var conn = new SqlConnection(DbHelperSQL.strConn)) |
| | | { |
| | | if (unity.userName.IsNullOrEmpty()) throw new Exception("用户名不允许为空"); |
| | |
| | | cmd.ExecuteNonQuery(); |
| | | _strMsg = parameters[0].Value.ToString(); |
| | | _intSum = parameters[1].Value.ToString(); |
| | | _cfBar = parameters[2].Value.ToString(); |
| | | |
| | | |
| | | var result = Convert.ToInt32(_intSum); |
| | | if (result <= 0) throw new Exception(_strMsg); |
| | | |
| | | return _strMsg; |
| | | var dto = new ProductionPickDto |
| | | { |
| | | barcode = unity.barcode,//原条码 |
| | | cfBarcode = _cfBar//拆分后条码 |
| | | }; |
| | | return dto; |
| | | |
| | | //var result = Convert.ToInt32(_intSum); |
| | | //if (result <= 0) throw new Exception(_strMsg); |
| | | |
| | | //return _strMsg; |
| | | |
| | | //return 0; |
| | | |