예제 #1
0
        /// <summary>
        /// 通过ID删除库存组织
        /// </summary>
        /// <param name="orgId"></param>
        public bool RemoveOrganization(int orgId)
        {
            SOrganization org = oRepository.SingleOrDefault(orgId);

            if (org == null)
            {
                return(false);
            }
            uRepository.RemoveOrg(orgId);
            return(oRepository.Delete(org));
        }
예제 #2
0
 /// <summary>
 /// 删除组织机构
 /// </summary>
 /// <param name="orgId"></param>
 /// <returns></returns>
 public int RemoveOrg(int orgId)
 {
     return(uRepository.RemoveOrg(orgId));
 }