//public bool NoticeBlockVhPassByEntrySecID(string entry_sec_id) //{ // bool isSuccess = true; // ABLOCKZONEMASTER blockMaster = scApp.MapBLL.getBlockZoneMasterByEntrySecID(entry_sec_id); // if (!SCUtility.isEmpty(blockMaster.LEAVE_ADR_ID_1)) // { // isSuccess &= scApp.MapBLL.CheckAndNoticeBlockVhPassByAdrID(blockMaster.LEAVE_ADR_ID_1); // if (isSuccess) return isSuccess; // } // if (!SCUtility.isEmpty(blockMaster.LEAVE_ADR_ID_2)) // { // isSuccess &= scApp.MapBLL.CheckAndNoticeBlockVhPassByAdrID(blockMaster.LEAVE_ADR_ID_2); // } // return isSuccess; //} public bool IsVHInBlockZoneByEntrySectionID(string vh_id, string entry_sec_id) { bool isInBlockZone = false; //DBConnection_EF con = DBConnection_EF.GetContext(); //using (DBConnection_EF con = new DBConnection_EF()) using (DBConnection_EF con = DBConnection_EF.GetUContext()) { isInBlockZone = blockZoneDetaiDao.IsVHInBlockZoneByEntrySectionID(con, vh_id, entry_sec_id); } return(isInBlockZone); }