add table and class for gentree

This commit is contained in:
Suphonchai Phoonsawat 2023-10-11 11:01:49 +07:00
parent ccebc7773f
commit eb960ce533
8 changed files with 16951 additions and 1 deletions

View file

@ -0,0 +1,40 @@
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;
}
}
}
}