예제 #1
0
        public ActionResult ExportData(long id)
        {
            DanhGiaCongViecModel model = new DanhGiaCongViecModel();

            HSCV_CONGVIECBusiness = Get <HSCV_CONGVIECBusiness>();
            CongViecBO CongViec = HSCV_CONGVIECBusiness.FindById(id);

            if (CongViec != null)
            {
                model.CongViec = CongViec;
                PHIEUDANHGIACONGVIECBusiness = Get <PHIEUDANHGIACONGVIECBusiness>();
                model.PhieuDanhGia           = PHIEUDANHGIACONGVIECBusiness.GetData(id);
            }
            else
            {
                model.CongViec     = new CongViecBO();
                model.PhieuDanhGia = new PHIEUDANHGIACONGVIEC();
            }
            return(View("Export", model));
        }
예제 #2
0
        public PartialViewResult DetailDanhGia(long id)
        {
            DanhGiaCongViecModel model = new DanhGiaCongViecModel();

            HSCV_CONGVIECBusiness = Get <HSCV_CONGVIECBusiness>();
            CongViecBO CongViec = HSCV_CONGVIECBusiness.FindById(id);

            if (CongViec != null)
            {
                model.CongViec = CongViec;
                PHIEUDANHGIACONGVIECBusiness = Get <PHIEUDANHGIACONGVIECBusiness>();
                model.PhieuDanhGia           = PHIEUDANHGIACONGVIECBusiness.GetData(id);
            }
            else
            {
                model.CongViec     = new CongViecBO();
                model.PhieuDanhGia = new PHIEUDANHGIACONGVIEC();
            }
            return(PartialView("_Detail", model));
        }