예제 #1
0
        public IActionResult VulnDetail(long?id)
        {
            if (id == null || 1 > id)
            {
                return(NotFound());
            }

            var param = new DynamicParameters();

            param.Add("@vuln_seq", id);
            param.Add("@comp_seq", 0);
            param.Add("@diag_kind", "");
            param.Add("@group_seq", 0);

            // 테이블 한개 리스트
            T_VULN t_VULN = _dapperHelper.Top1 <T_VULN>("SP_VULN_INFO_VIW", param);

            //string m_UseYn = "Y";
            //string[] arrSearchCommonCodes = { "RATE", "SCORE", "EXCEPT_CD", "USE_YN", "DIAG_TYPE" };
            //List<TcommonCode> _ddlCommonCodes = systemCodeRepository.GetCommonCodeByArray(arrSearchCommonCodes, m_UseYn);

            //var vulnEditModel = new VulnEditModel
            //{
            //    tCommonCodes = _ddlCommonCodes,
            //    tCompInfos = vulnDbContext.TcompInfo.ToList(),
            //    tVulnGroup_kind = vulnDbContext.TvulnGroup.Where(x => x.CompSeq == vulnEditInfo.CompSeq && x.GroupType == "K").Distinct().ToList(),
            //    tVulnGroup_group = vulnDbContext.TvulnGroup.Where(x => x.DiagKind == vulnEditInfo.DiagKind && x.GroupType == "G").ToList(),
            //    tVulnEditInfo = vulnEditInfo
            //};

            return(View(t_VULN));
        }
예제 #2
0
 public static void NullBasket(this IGuardClause guardClause, int vulnSeq, T_VULN vuln)
 {
     //if (vuln == null)
     //    throw new BasketNotFoundException(vulnSeq);
 }