Esempio n. 1
0
 public IActionResult Get([FromBody] CustomDataSourceRequest request)
 {
     try
     {
         var superior          = _browseProvider.GetList();
         DataSourceRequest req = GridUtilities.ConvertToKendoFromCustomRequest(request);
         var filter            = superior.ToDataSourceResult(req);
         return(Ok(filter));
     }
     catch (Exception ex)
     {
         throw;
     }
 }
 public IActionResult Get([FromBody] CustomDataSourceRequest request)
 {
     try
     {
         var employeeFilter    = _employeeFilterProvider.List();
         DataSourceRequest req = GridUtilities.ConvertToKendoFromCustomRequest(request);
         var filter            = employeeFilter.ToDataSourceResult(req);
         return(Ok(filter));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Esempio n. 3
0
 public IActionResult GetSpesificationList([FromBody] CustomDataSourceRequest request, int id)
 {
     try
     {
         var jobTitle          = _jobTitleProvider.GetSpesificationList(id);
         DataSourceRequest req = GridUtilities.ConvertToKendoFromCustomRequest(request);
         var filter            = jobTitle.ToDataSourceResult(req);
         return(Ok(filter));
     }
     catch (Exception ex)
     {
         throw;
     }
 }
Esempio n. 4
0
 public IActionResult GetListProvince([FromBody] CustomDataSourceRequest request, int countryID)
 {
     try
     {
         var province          = _provinceProvider.GetListByCountryID(countryID);
         DataSourceRequest req = GridUtilities.ConvertToKendoFromCustomRequest(request);
         var filter            = province.ToDataSourceResult(req);
         return(Ok(filter));
     }
     catch (Exception ex)
     {
         throw;
     }
 }
Esempio n. 5
0
 public IActionResult GetListCity([FromBody] CustomDataSourceRequest request, int provinceID)
 {
     try
     {
         var city = _cityProvider.GetList(provinceID);
         DataSourceRequest req = GridUtilities.ConvertToKendoFromCustomRequest(request);
         var filter            = city.ToDataSourceResult(req);
         return(Ok(filter));
     }
     catch (Exception ex)
     {
         throw;
     }
 }
Esempio n. 6
0
 public IActionResult GetListEmployee([FromBody] CustomDataSourceRequest request)
 {
     try
     {
         var Employee          = _UserProvider.GetListEmployee();
         DataSourceRequest req = GridUtilities.ConvertToKendoFromCustomRequest(request);
         var filter            = Employee.ToDataSourceResult(req);
         return(Ok(filter));
     }
     catch (Exception ex)
     {
         throw;
     }
 }
Esempio n. 7
0
 public IActionResult GetDescriptionList([FromBody] CustomDataSourceRequest request, string id)
 {
     try
     {
         var ID                = EncryptionHelper.DecryptUrlParam(id);
         var jobTitle          = _JobFamilyProvider.GetMajorList(Convert.ToInt32(ID));
         DataSourceRequest req = GridUtilities.ConvertToKendoFromCustomRequest(request);
         var filter            = jobTitle.ToDataSourceResult(req);
         return(Ok(filter));
     }
     catch (Exception ex)
     {
         throw;
     }
 }
Esempio n. 8
0
        public IActionResult GetListLocation([FromBody] CustomDataSourceRequest request, int organizationID)
        {
            try
            {
                var location          = _organizationUnitProvider.ListLocation(organizationID);
                DataSourceRequest req = GridUtilities.ConvertToKendoFromCustomRequest(request);
                var filter            = location.ToDataSourceResult(req);

                return(Ok(filter));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Esempio n. 9
0
 public ActionResult ListMajorSelected([FromBody] CustomDataSourceRequest request, int JobTitleID, string unselectedID)
 {
     try
     {
         int[]             selectedIDDes = JsonConvert.DeserializeObject <int[]>(unselectedID);
         var               result        = _jobTitleProvider.ListMajorSelected(JobTitleID, selectedIDDes);
         DataSourceRequest req           = GridUtilities.ConvertToKendoFromCustomRequest(request);
         var               filter        = result.ToDataSourceResult(req);
         return(Ok(filter));
     }
     catch (Exception)
     {
         throw;
     }
 }
Esempio n. 10
0
        public IActionResult GetListGradeDetail([FromBody] CustomDataSourceRequest request, int headerID)
        {
            try
            {
                var grades            = _groupGradeProvider.ListGradeDetail(headerID);
                DataSourceRequest req = GridUtilities.ConvertToKendoFromCustomRequest(request);
                var filter            = grades.ToDataSourceResult(req);

                return(Ok(filter));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Esempio n. 11
0
        public IActionResult Get([FromBody] CustomDataSourceRequest request)
        {
            try
            {
                //DataClaim.GetClaim(Request);
                var orgUnitChange     = _orgUnitChangeProvider.List();
                DataSourceRequest req = GridUtilities.ConvertToKendoFromCustomRequest(request);
                var filter            = orgUnitChange.ToDataSourceResult(req);

                return(Ok(filter));
            }
            catch (Exception ex)
            {
                throw;
            }
        }
 public ActionResult ListEmployeeStatusUnselected([FromBody] CustomDataSourceRequest request, int ID)
 {
     try
     {
         int[] selectedIDDes = request.SelectedID.Select(int.Parse).ToArray();
         //int[] selectedIDDes = JsonConvert.DeserializeObject<int[]>(selectedID);
         var result            = _employeeFilterProvider.ListStatusUnselected(ID, selectedIDDes);
         DataSourceRequest req = GridUtilities.ConvertToKendoFromCustomRequest(request);
         var filter            = result.ToDataSourceResult(req);
         return(Ok(filter));
     }
     catch (Exception)
     {
         throw;
     }
 }
Esempio n. 13
0
 public ActionResult ListSelected([FromBody] CustomDataSourceRequest request, int menuID)
 {
     try
     {
         //convert ke array
         int[] unselectedIDDes = request.UnselectedID.Select(int.Parse).ToArray();
         //int[] selectedIDDes = JsonConvert.DeserializeObject<int[]>(request);
         var result            = _menuProvider.ListSelected(menuID, unselectedIDDes);
         DataSourceRequest req = GridUtilities.ConvertToKendoFromCustomRequest(request);
         var filter            = result.ToDataSourceResult(req);
         return(Ok(filter));
     }
     catch (Exception)
     {
         throw;
     }
 }
Esempio n. 14
0
        public IActionResult Get([FromBody] CustomDataSourceRequest request)
        {
            try
            {
                DataClaim.GetClaim(Request);
                var groupGrades       = _groupGradeProvider.GetList();
                DataSourceRequest req = GridUtilities.ConvertToKendoFromCustomRequest(request);
                var filter            = groupGrades.ToDataSourceResult(req);

                return(Ok(filter));
            }

            catch (Exception ex)
            {
                throw ex;
            }
        }
Esempio n. 15
0
        public IActionResult Get([FromBody] CustomDataSourceRequest request)
        {
            try
            {
                DataClaim.GetClaim(Request);
                var CostCenter        = _SIUPClassProvider.GetList();
                DataSourceRequest req = GridUtilities.ConvertToKendoFromCustomRequest(request);
                var filter            = CostCenter.ToDataSourceResult(req);

                return(Ok(filter));
            }

            catch (Exception ex)
            {
                throw;
            }
        }
Esempio n. 16
0
        public IActionResult Get([FromBody] CustomDataSourceRequest request)
        {
            try
            {
                var levels = _LineOfBusinessProvider.GetList();

                DataSourceRequest req = GridUtilities.ConvertToKendoFromCustomRequest(request);

                var filter = levels.ToDataSourceResult(req);

                return(Ok(filter));
            }
            catch (Exception ex)
            {
                throw;
            }
        }
Esempio n. 17
0
        public IActionResult GetListFunction([FromBody] CustomDataSourceRequest request, int menuID)
        {
            try
            {
                var menus = _menuProvider.GetListMenuFunction(menuID);

                DataSourceRequest req = GridUtilities.ConvertToKendoFromCustomRequest(request);

                var filter = menus.ToDataSourceResult(req);

                return(Ok(filter));
            }

            catch (Exception ex)
            {
                throw;
            }
        }
Esempio n. 18
0
        public IActionResult Get([FromBody] CustomDataSourceRequest request)
        {
            try
            {
                var jobMasters = _responibilityGroupProvider.GetList();

                DataSourceRequest req = GridUtilities.ConvertToKendoFromCustomRequest(request);

                var filter = jobMasters.ToDataSourceResult(req);

                return(Ok(filter));
            }

            catch (Exception ex)
            {
                throw;
            }
        }
Esempio n. 19
0
        public IActionResult GetClassification([FromBody] CustomDataSourceRequest request, string BusinessFieldCategoryID)
        {
            try
            {
                var lists = _BussinessFieldProvider.GetListClassification(Convert.ToInt32(BusinessFieldCategoryID));

                DataSourceRequest req = GridUtilities.ConvertToKendoFromCustomRequest(request);

                var filter = lists.ToDataSourceResult(req);

                return(Ok(filter));
            }

            catch (Exception ex)
            {
                throw;
            }
        }
Esempio n. 20
0
        public IActionResult Get([FromBody] CustomDataSourceRequest request)
        {
            try
            {
                var orgUnits = _organizationUnitProvider.GetListOrganizationUnit();

                DataSourceRequest req = GridUtilities.ConvertToKendoFromCustomRequest(request);

                var filter = orgUnits.ToDataSourceResult(req);

                return(Ok(filter));
            }

            catch (Exception ex)
            {
                throw;
            }
        }
Esempio n. 21
0
        public IActionResult Get([FromBody] CustomDataSourceRequest request, string startDate, string endDate)
        {
            try
            {
                DateTime StartDate = DateTime.ParseExact(startDate, "yyyyMMddHHmmss", CultureInfo.InvariantCulture);
                DateTime EndDate   = DateTime.ParseExact(endDate, "yyyyMMddHHmmss", CultureInfo.InvariantCulture);

                var OrgLogChange      = _organizationReportProvider.GetList(StartDate, EndDate);
                DataSourceRequest req = GridUtilities.ConvertToKendoFromCustomRequest(request);
                var filter            = OrgLogChange.ToDataSourceResult(req);

                return(Ok(filter));
            }

            catch (Exception ex)
            {
                throw ex;
            }
        }