| | |
| | | mes.code = "200"; |
| | | try |
| | | { |
| | | |
| | | //0.判断条码是否为当前功能扫描条码 |
| | | sql = @"select rightcode,hbilltype from T_BarCodeBill where hbarcode=@hbarcode"; |
| | | dynamicParams.Add("@hbarcode", hbarcode); |
| | | dt = DapperHelper.selectdata(sql, dynamicParams); |
| | | if (dt.Rows.Count>0) |
| | | { |
| | | if (dt.Rows[0]["rightcode"].ToString() != rightcode && dt.Rows[0]["hbilltype"].ToString() != hbilltype) |
| | | { |
| | | mes.code = "300"; |
| | | mes.count = 0; |
| | | mes.Message = "当前条码状态不满足此功能!"; |
| | | mes.data = null; |
| | | return mes; |
| | | } |
| | | } |
| | | //1.判断当前功能条码是否为系统生成有效条码 |
| | | sql = @"select * from T_BarCodeBill where hbarcode=@hbarcode"; |
| | | dynamicParams.Add("@hbarcode", hbarcode); |