예제 #1
0
        public static List <HouseTypeGroupStandardItem> Get(string constructionCode, string planNo)
        {
            var detail = HouseTypeGroupDetail.Get(constructionCode, planNo);
            var items  = HouseTypeGroupStandardItem.Get(constructionCode, detail.HouseTypeGroupId, planNo);

            return(items);
        }
        public static HouseTypeGroupDetail Get(string constructionCode, string planNo)
        {
            var houseTypeCode = string.Empty;

            if (ConstructionSchedule.IsBeforeProcessRequest(constructionCode))
            {
                var kanri = tbl_siyo_kanri.Get(constructionCode, planNo);
                if (kanri == null || kanri.typeCd == null)
                {
                    throw new ApplicationException(HOSUE_TYPE_ERROR);
                }
                houseTypeCode = kanri.typeCd;
            }
            else
            {
                var house = House.Get(constructionCode);
                if (house == null || house.ConstructionTypeCode == null)
                {
                    throw new ApplicationException(HOSUE_TYPE_ERROR);
                }
                houseTypeCode = house.ConstructionTypeCode;
            }

            var detail = HouseTypeGroupDetail.Get(houseTypeCode);

            if (detail == null)
            {
                throw new ApplicationException(SIYO_CODE_GROUP_ERROR);
            }

            return(detail);
        }
예제 #3
0
        public static HouseTypeGroup Get(string constructionCode, string planNo)
        {
            var detail = HouseTypeGroupDetail.Get(constructionCode, planNo);
            var group  = HouseTypeGroup.Get(detail.HouseTypeGroupId);

            return(group);
        }