var_count=BasicDataRefDAL.GetExist("OP_SuperVision_Truck",$" headData<>'{headData.GID}' and isnull(MBLNO,'')<>'' and isnull(MBLNO,'')='{headData.MBLNO}' ");
var_count=BasicDataRefDAL.GetExist("OP_SuperVision_Truck",$" GID<>'{headData.GID}' and isnull(MBLNO,'')<>'' and isnull(MBLNO,'')='{headData.MBLNO}' ");
if(_count>0)
{
result.SetErrorInfo("主单号不允许重复");
}
_count=BasicDataRefDAL.GetExist("OP_SuperVision_Truck",$" headData<>'{headData.GID}' and isnull(HBLNO,'')<>'' and isnull(HBLNO,'')='{headData.HBLNO}' ");
_count=BasicDataRefDAL.GetExist("OP_SuperVision_Truck",$" GID<>'{headData.GID}' and isnull(HBLNO,'')<>'' and isnull(HBLNO,'')='{headData.HBLNO}' ");