| | |
| | | } |
| | | else |
| | | { |
| | | if (HSourceBillNo != "" && SourceFlag == true) |
| | | { |
| | | if (HBillType == "1202") //生产入库时 条码主内码、子内码和源单主内码、子内码必须一致 |
| | | { |
| | | if (dal.omodel_View.HSourceInterID != DBUtility.ClsPub.isLong(ds2.Tables[0].Rows[0]["HSourceInterID"]) |
| | | && dal.omodel_View.HSourceEntryID != DBUtility.ClsPub.isLong(ds2.Tables[0].Rows[0]["HSourceEntryID"]) |
| | | ) |
| | | { |
| | | sErrMsg = "该条码的源单与扫描的源单不一致,请确认无误后重新扫描!"; |
| | | return false; |
| | | } |
| | | } |
| | | } |
| | | dal.omodel_View.HSourceBillNo = DBUtility.ClsPub.isStrNull(ds2.Tables[0].Rows[0]["HSourceBillNo"]); |
| | | dal.omodel_View.HSourceEntryID = DBUtility.ClsPub.isLong(ds2.Tables[0].Rows[0]["HSourceEntryID"]); |
| | | dal.omodel_View.HSourceInterID = DBUtility.ClsPub.isLong(ds2.Tables[0].Rows[0]["HSourceInterID"]); |
| | |
| | | #endregion |
| | | |
| | | |
| | | |
| | | #region 模具条码处理方法 |
| | | |
| | | #region 扫描模具源单条码 |