40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BMA.EHR.Application.Responses.Organizations
|
|
{
|
|
public class t1
|
|
{
|
|
public Guid? personID { get; set; }
|
|
public string? name { get; set; }
|
|
public string? positionName { get; set; }
|
|
public string? positionNum { get; set; }
|
|
public string? departmentName { get; set; }
|
|
public string? avatar { get; set; }
|
|
public string? nodeType { get; set; }
|
|
public Guid? parentId { get; set; }
|
|
public Guid? organizationId { get; set; }
|
|
public Guid? id { get; set; }
|
|
|
|
public int? positionNumInt
|
|
{
|
|
get
|
|
{
|
|
try
|
|
{
|
|
if (positionNum.Contains("."))
|
|
{
|
|
var i = positionNum.Split(".")[1];
|
|
return Convert.ToInt16(i);
|
|
}
|
|
}
|
|
catch (Exception ex) { }
|
|
|
|
return null;
|
|
}
|
|
}
|
|
}
|
|
}
|