Beispiel #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="id"></param>
        /// <param name="loginUser"></param>
        /// <returns></returns>
        public bool LogicDeleteInfo(long id, string loginUser)
        {
            ///校验对应是否已经维护了存储区TM_WMM_ZONES,已逻辑删除的存储区不在校验范围内
            int cnt = new ZonesDAL().GetCounts("[WM_NO] in (select [WAREHOUSE] from LES.[TM_BAS_WAREHOUSE] with(nolock) where [ID] = " + id + " and [VALID_FLAG] = 1)");

            if (cnt > 0)
            {
                throw new Exception("MC:0x00000720");///仓库下已有存储区,不允许删除
            }
            return(dal.LogicDelete(id, loginUser) > 0 ? true : false);
        }