public ActionResult InspectionWorkplace()
        {
            var workplace = _workplaceService.GetAll().Data.ToList();
            int count     = workplace.Count();

            InspectionCountMethod(count);
            return(View(workplace));
        }
        public ActionResult IdentityUpdateLaterDesignation(IdentityInfoDto d)
        {
            var result       = _ıdentityService.GetById(d.PersonelKimlikId).Data;
            var workPlaceGrp = _workplaceService.GetAll().Data.ToList();

            ViewBag.WorkPlaceGrpList = new SelectList(workPlaceGrp, "IsYeriId", "IsYeriAdi");
            return(View("IdentityUpdateLaterDesignation", result));
        }
Exemple #3
0
        private void DropBoxItem()
        {
            var workPlaceGrp            = _workplaceService.GetAll().Data.ToList();
            var designationStatusGrp    = _designationStatusService.GetAll().Data.ToList();
            var reasonForDesignationGrp = _reasonForDesignationService.GetAll().Data.ToList();
            var designationApprovalGrp  = _designationApprovalService.GetAll().Data.ToList();
            var tisJobCodeGrp           = _tisJobCodeService.GetAll().Data.ToList();

            ViewBag.DesignationApprovalGrpList  = new SelectList(designationApprovalGrp, "OnayId", "OnayDurumValue");
            ViewBag.WorkPlaceGrpList            = new SelectList(workPlaceGrp, "IsYeriId", "IsYeriAdi");
            ViewBag.DesignationStatusGrpList    = new SelectList(designationStatusGrp, "NakilDurumId", "NakilDurumu");
            ViewBag.ReasonForDesignationGrpList = new SelectList(reasonForDesignationGrp, "AtamaIstegiNedenId", "AtamaIstegiNedeni");
            ViewBag.TisJobCodeGrpList           = new SelectList(tisJobCodeGrp, "TisMeslekKodId", "TisMeslekAdi");
        }
Exemple #4
0
            public UserPermission(IStoreService storeService, IWorkplaceService workplaceService)
            {
                string department = UserModel.GetUserData().DepartmentID;
                string store      = UserModel.GetUserData().PosStore;

                List <Store>     storeList     = storeService.GetAll().ToList();
                List <Workplace> workplaceList = workplaceService.GetAll().ToList();

                int flag = GetDepartmentFlag(department);

                if (department != GlobalSettings.IT)
                {
                    storeList     = storeList.Where(x => x.CX_StoreNo == store).ToList();
                    workplaceList = workplaceList.Where(x => x.FG_Department == flag).ToList();
                }

                this.AllowStore     = storeList;
                this.AllowWorkplace = workplaceList;
                this.AllowStatus    = Status.GetProcessStatus();
            }
Exemple #5
0
        public ActionResult WorkplaceGetAll()
        {
            var result = _workplaceService.GetAll().Data.ToList();

            return(View(result));
        }