public ActionResult HBLDetail(ParameterModel param) { var model = new HBLModel(); if (param.hidx != 0) { Mapper.CreateMap <HBL, HBLModel>(); var mblDto = blService.getHBL(param); model = Mapper.Map <HBL, HBLModel>(mblDto); model.itemList = mblDto.PRODUCTITEM.ToList(); } else { model.itemList = new List <PRODUCTITEM>(); } model.customerList = customerService.getCustomerList(new ParameterModel()).ToList(); model.statusList = commonService.getCodeList(new ParameterModel { GROUPCD = 1005 }).ToList(); model.clearanceList = commonService.getCodeList(new ParameterModel { GROUPCD = 1000 }).ToList(); model.transportList = commonService.getCodeList(new ParameterModel { GROUPCD = 1002 }).ToList(); model.weightTypeList = commonService.getCodeList(new ParameterModel { GROUPCD = 1001 }).ToList(); model.consigneeTypeList = commonService.getCodeList(new ParameterModel { GROUPCD = 1004 }).ToList(); return(View(model)); }