public ActionResult AssignEmployees(int Id)
        {
            int officeId = Convert.ToInt32(Request["officeId"]);

            if (officeId == 0)
            {
                officeId = Convert.ToInt32(Session["OfficeId"]);
            }
            ViewBag.officeId   = officeId;
            ViewBag.OfficeList = _officeService.GetOfficeData();

            PayrollAllowanceMasterDTO Record = _PayrollAllowanceMasterService.GetPayrollDetailByMasterId(Id, officeId);

            return(View(Record));
        }
示例#2
0
        private DropDownListViewmodelcs DropDownlist()
        {
            IEnumerable <OfficeDTOs> office     = _officeTypeServices.GetOfficeData();
            List <SelectListItem>    officeList = new List <SelectListItem>();


            officeList.Add(new SelectListItem
            {
                Text  = "Select Office ",
                Value = ""
            });
            foreach (OfficeDTOs str in office)
            {
                officeList.Add(new SelectListItem
                {
                    Text  = str.OfficeName,
                    Value = str.OfficeId.ToString()
                });
            }


            DropDownListViewmodelcs ddlvm = new DropDownListViewmodelcs();

            ddlvm.OfficeList = officeList;
            return(ddlvm);
        }
        public ActionResult Index()
        {
            try
            {
                ViewBag.ddlOfficeTypeList    = _officeServices.GetOfficeData().ToList();
                ViewBag.ddlDesignationList   = _designationServices.GetDesignationList().ToList();
                ViewBag.ddlBusinessGroupList = _groupServices.GetGroupList().ToList();
                ViewBag.ddlDepartmentList    = _departmentServices.GetDepartmentlist().ToList();

                return(View());
            }
            catch (Exception Ex)
            {
                ViewBag.Error = Ex.Message;
                return(View());
            }
        }
示例#4
0
        public ActionResult Index()
        {
            ViewBag.ddlDesignationList = _designationServices.GetDesignationList();
            ViewBag.ddlOfficeTypeList  = _officeServices.GetOfficeData();
            DateTime date1 = DateTime.Now;


            int AdminEmpCode = ViewBag.EmpCode;

            IEnumerable <DailyAttendanceFilterViewModel> list = _attendanceDailyServices.GetAttendanceDailyStatus(AdminEmpCode, date1, null, null, null);

            return(View(list));
        }
示例#5
0
        public ActionResult index()

        {
            if (!ViewBag.AllowView)
            {
                ViewBag.Error = "You are not Authorize to use this Page";
                return(PartialView("_partialviewNotFound"));
            }


            IEnumerable <OfficeDTOs> officeList  = _officeService.GetOfficeData();
            List <OfficeDTOs>        officeLists = new List <OfficeDTOs>();

            foreach (var item in officeList)
            {
                item.parentOfficeName = _officeService.GetOfficeName(Convert.ToInt32(item.OfficeParentId));

                officeLists.Add(item);
            }

            return(View(officeLists));
        }
 public ActionResult DarbandiCreate()
 {
     try
     {
         if (ViewBag.AllowCreate)
         {
             ViewBag.officeList = _officeService.GetOfficeData();
             ViewBag.desgList   = _designationServices.GetDesignationList();
             return(View());
         }
         else
         {
             ViewBag.Error = "You are not Authorize to use this Page";
             return(PartialView("_partialviewNotFound"));
         }
     }
     catch (Exception ex)
     {
         ViewBag.error = ex.Message;
         throw ex;
     }
 }