当前位置: 首页>>代码示例>>C#>>正文


C# Hre_ProfileServices.GetProfileInfo方法代码示例

本文整理汇总了C#中HRM.Business.Hr.Domain.Hre_ProfileServices.GetProfileInfo方法的典型用法代码示例。如果您正苦于以下问题:C# Hre_ProfileServices.GetProfileInfo方法的具体用法?C# Hre_ProfileServices.GetProfileInfo怎么用?C# Hre_ProfileServices.GetProfileInfo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在HRM.Business.Hr.Domain.Hre_ProfileServices的用法示例。


在下文中一共展示了Hre_ProfileServices.GetProfileInfo方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GetProfileInfo

 public JsonResult GetProfileInfo(Guid profileId)
 {
     var service = new Hre_ProfileServices();
     string status = string.Empty;
     var profileInfo = service.GetProfileInfo(profileId, UserLogin);
     return Json(profileInfo, JsonRequestBehavior.AllowGet);
 }
开发者ID:dtafe,项目名称:vnr,代码行数:7,代码来源:Hre_GetDataController.cs

示例2: ReportJoinInsuranceMonthly

        /// <summary> BC Đủ Điều Kiện Tham Gia Bảo Hiểm Theo Tháng </summary>
        /// <param name="request"></param>
        /// <param name="model"></param>
        /// <returns></returns>
        public ActionResult ReportJoinInsuranceMonthly([DataSourceRequest] DataSourceRequest request, Ins_ReportJoinInsuranceMonthlyModel model)
        {
            var services = new Ins_InsuranceReportServices();
            List<HeaderInfo> listHeaderInfo = null;
            var result = services.ReportJoinInsuranceMonthly(model.OrgStructureID, model.MonthYear.Value, model.CodeEmp, model.SocialInsPlaceIDs,UserLogin);
            var lstModel = new List<Ins_ReportJoinInsuranceMonthlyModel>();
            if (result != null)
            {
                lstModel = result.Translate<Ins_ReportJoinInsuranceMonthlyModel>();
                lstModel = lstModel.OrderBy(p => p.STT).ToList();
            }
            var isDataTable = false;
            object obj = new Ins_ReportJoinInsuranceMonthlyModel();

            #region Header Info
            var codeEmp = string.Empty;
            if (model != null && model.UserID != Guid.Empty)
            {
                Hre_ProfileServices profileService = new Hre_ProfileServices();
                var profile = profileService.GetProfileInfo(model.UserID,UserLogin);
                if (profile != null && !string.IsNullOrEmpty(profile.CodeEmp))
                {
                    codeEmp = profile.CodeEmp;
                }
            }
            HeaderInfo headerInfoMonthYear = new HeaderInfo() { Name = "MonthYear", Value = model.MonthYear };
            HeaderInfo headerInfoCurrentDate = new HeaderInfo() { Name = "CurrentDate", Value = DateTime.Now };
            HeaderInfo headerInfoCodeEmp = new HeaderInfo() { Name = "CodeEmp", Value = codeEmp };
            listHeaderInfo = new List<HeaderInfo>() { headerInfoMonthYear, headerInfoCurrentDate, headerInfoCodeEmp };
            #endregion

            if (model.IsCreateTemplateForDynamicGrid)
            {
                obj = result;
                isDataTable = true;
            }
            if (model != null && model.IsCreateTemplate)
            {
                var path = Common.GetPath("Templates");
                ExportService exportService = new ExportService();
                ConfigExport cfgExport = new ConfigExport()
                {
                    Object = obj,
                    FileName = "Ins_ReportJoinInsuranceMonthlySearchModel",
                    OutPutPath = path,
                    HeaderInfo = listHeaderInfo,
                    DownloadPath = "Templates",
                    IsDataTable = isDataTable

                };
                var str = exportService.CreateTemplate(cfgExport);
                return Json(str);
            }
            if (model.ExportId != Guid.Empty)
            {
                var fullPath = ExportService.Export(model.ExportId, lstModel, listHeaderInfo, model.ExportType);
                return Json(fullPath.ToString().Replace("Success,", "").ToString());
            }
            return Json(lstModel.ToDataSourceResult(request));
        }
开发者ID:dtafe,项目名称:vnr,代码行数:64,代码来源:Ins_GetDataController.cs


注:本文中的HRM.Business.Hr.Domain.Hre_ProfileServices.GetProfileInfo方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。