예제 #1
0
        // GET: PayrollOvertimes/Create
        public ActionResult Create()
        {
            int EmpCode             = Convert.ToInt32(Session["Empcode"]);
            PayrollOvertimeDTO data = new PayrollOvertimeDTO();

            // data.EmployeeList = _payrollOvertimeService.GetEmployeeList();
            ViewBag.ddlEmployeeList = _dynamicSelectList.GetEmployeeByEmpCode(EmpCode).ToList();
            //data.ApproverList = _dynamicSelectList.GetLeaveApproverSelectList(EmpCode, "Overtime");
            return(View(data));
        }
 public ActionResult Index()
 {
     try
     {
         int EmpCode = Convert.ToInt32(Session["Empcode"]);
         ViewBag.ddlEmployeeList = _dynamicSelectList.GetEmployeeByEmpCode(EmpCode).ToList();
         return(View());
     }
     catch (Exception Ex)
     {
         ViewBag.Error = Ex.Message;
         return(View());
     }
 }
예제 #3
0
        public ActionResult Create()
        {
            //ViewBag.SideBar = _moduleService.AdminEmployeeDetailsMenu();
            int EmpCode = Convert.ToInt32(Session["Empcode"]);

            ViewBag.EmpCode = "";
            PayrollInsurancePremiumDTO Record = new PayrollInsurancePremiumDTO();

            Record.InsuranceCompanySelectlist = _PayrollInsurancePremiumService.GetInsuranceCompanySelectList();
            ViewBag.ddlEmployeeList           = _dynamicSelectList.GetEmployeeByEmpCode(EmpCode).ToList();
            Record.AmountTypeSelectList       = StaticSelectList.AmountTypeSelectList();
            //Record.EmpCode = Id;
            return(View("../PayrollInsurancePremium/Create", Record));
        }
        public LeaveApplicationDTOs LeaveApplicationSearch()
        {
            int EmpCode = Convert.ToInt32(HttpContext.Current.Session["EmpCode"]);
            LeaveApplicationDTOs Result = new LeaveApplicationDTOs();

            Result.EmpList         = _DynamicSelectList.GetEmployeeByEmpCode(EmpCode).ToList();
            Result.LeaveYearList   = _DynamicSelectList.LeaveYearList().ToList();
            Result.LeaveStatusList = StaticSelectList.GetLeaveLeaveApprovestatusList().ToList();
            return(Result);
        }