本文整理汇总了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);
}
示例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));
}