销售出库、直接调拨扫描条码时增加空调组织条码获取判断方法
| | |
| | | //销售出库h和退库、领料出库时,如果条码档案找不到就从 旧条码从获取并同步至本地 |
| | | if (HBillType == "1205" || HBillType == "1205" || HBillType == "1204") |
| | | { |
| | | DataSet dstt = oCn.RunProcReturn("exec h_p_WMS_GetOldBarCode " + HBillID.ToString() + ",'" + sBarCode + "' ", "h_p_WMS_GetOldBarCode"); |
| | | DataSet dstt = oCn.RunProcReturn("exec h_p_WMS_GetOldBarCode_Insert " + HBillID.ToString() + ",'" + HBillType + "','" + sBarCode + "'," + HOWNERID, "h_p_WMS_GetOldBarCode_Insert"); |
| | | //DataSet dstt = oCn.RunProcReturn("exec h_p_WMS_GetOldBarCode " + HBillID.ToString() + ",'" + sBarCode + "' ", "h_p_WMS_GetOldBarCode"); |
| | | if (dstt == null || dstt.Tables[0].Rows.Count == 0) |
| | | { |
| | | sErrMsg = "同步条码失败!"; |
| | |
| | | |
| | | #endregion |
| | | |
| | | #region 调拨单扫描物料条码 空调组织时,判断条码,并写入条码档案 |
| | | |
| | | //扫描物料条码 保存到出入库条码临时表(物料) |
| | | [WebMethod] |
| | | public bool Get_InsertOldBarCode_MoveStock(string sBarCode, Int64 HBillID, string HBillType, Int64 HOWNERID, ref string sErrMsg) |
| | | { |
| | | SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); |
| | | DataSet dstt = oCn.RunProcReturn("exec h_p_WMS_GetOldBarCodeInsert_MoveStock " + HBillID.ToString() + ",'" + HBillType + "','" + sBarCode + "'," + HOWNERID, "h_p_WMS_GetOldBarCodeInsert_MoveStock"); |
| | | return true; |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | #endregion |
| | | |