Example #1
0
        public ActionResult Create()
        {
            int Empid = Convert.ToInt32(Url.RequestContext.RouteData.Values["id"].ToString());

            objQualService = new EmpQualificationService();
            List <EmpQualificationItem> listQual = new List <EmpQualificationItem>();

            listQual      = objQualService.ExperienceListData(Empid);
            ViewBag.Empid = Empid;
            EmpQualificationItem objQualitem = new EmpQualificationItem();

            objQualitem.ListQualification = new List <EmpQualificationItem>();
            objQualitem.ListQualification.AddRange(listQual);

            List <clsMasterData> lstMaster = new List <clsMasterData>();

            lstMaster = objQualService.GetALLIComp();
            objQualitem.ListMasterDetails = new List <clsMasterData>();
            objQualitem.ListMasterDetails.AddRange(lstMaster);

            listQual = objQualService.GetQualificationDoc(Empid);
            objQualitem.ListQualificationDoc = new List <EmpQualificationItem>();
            objQualitem.ListQualificationDoc.AddRange(listQual);
            ViewBag.Menuid = Request.QueryString["menuId"];
            return(View(objQualitem));
        }
Example #2
0
        public ActionResult View(int id, int VQid)
        {
            objQualService = new EmpQualificationService();
            EmpQualificationItem objQualItem = new EmpQualificationItem();

            objQualItem = objQualService.GetById(VQid);
            //Session["Empid"] = objExpItem.EmpId;
            List <EmpQualificationItem> lstDl = new List <EmpQualificationItem>();

            objQualItem.ListQualification = new List <EmpQualificationItem>();
            objQualItem.ListQualification.AddRange(lstDl);

            List <clsMasterData> lstMaster = new List <clsMasterData>();

            lstMaster = objQualService.GetALLIComp();
            objQualItem.ListMasterDetails = new List <clsMasterData>();
            objQualItem.ListMasterDetails.AddRange(lstMaster);
            ViewBag.Menuid = Request.QueryString["menuId"];
            ViewBag.VQid   = VQid;
            return(View(objQualItem));
        }