/// <summary>
/// 获得显示的容器的值(ToolTip和表单显示需要使用)
/// </summary>
/// <param name="emSDIT">显示要求</param>
/// <param name="model">表实体记录</param>
/// <param name="SMC">数据容器</param>
/// <param name="xdbHelper">数据库链接串</param>
/// <returns></returns>
public ShowDataContainer HrUserItemGetShowDataContainer
(
Enums.ShowDataInfoType.EmShowDataInfoType emSDIT,
eKing.SzdfLib.Model.HR.UTB_SZDF_HR_USER_ITEM model,
ShowModelContainer SMC,
DBHelper xdbHelper
)
{
// 返回结果集合 //
ShowDataContainer theResult
=
new ShowDataContainer();
bool cacheFirst = true;
eKing.SzdfLib.TableAttribute.HR.UTB_SZDF_HR_USER_ITEM
TA
=
eKing.SzdfLib.TableAttribute.HR.UTB_SZDF_HR_USER_ITEM.instance;
DataColumnAttributeInfo dai = null;
string strTmp = null;
#region TheName ~ 姓名
dai = TA._TheName;
strTmp = model.TheName;
theResult.AddNoEmptyItem(dai, null, strTmp);
#endregion TheName ~ 姓名
#region UserName ~ 编号
dai = TA._UserName;
strTmp = model.UserName;
theResult.AddNoEmptyItem(dai, null, strTmp);
#endregion UserName ~ 编号
#region PingYin ~ 姓名拼音
dai = TA._PingYin;
strTmp = model.PingYin;
theResult.AddNoEmptyItem(dai, null, strTmp);
#endregion PingYin ~ 姓名拼音
#region CallName ~ 称呼
dai = TA._CallName;
strTmp = model.CallName;
theResult.AddNoEmptyItem(dai, null, strTmp);
#endregion CallName ~ 称呼
#region EmUserTypeV ~ 用户类型
dai = TA._EmUserTypeV;
strTmp = model.EmUserTypeV__Get().ToString();
theResult.AddNoEmptyItem(dai, null, strTmp);
#endregion EmUserTypeV ~ 用户类型
#region EmGenderV ~ 性别
dai = TA._EmGenderV;
strTmp = model.EmGenderV__Get().ToString();
theResult.AddNoEmptyItem(dai, null, strTmp);
#endregion EmGenderV ~ 性别
#region Dep_Id ~ 科室
dai = TA._Dep_Id;
// 先从SMC中取 //
// 取不到通过cacheFirst判断是否从缓存中取 //
strTmp = model.Dep_Id__GetText(SMC, cacheFirst, "", xdbHelper);
theResult.AddNoEmptyItem(dai, null, strTmp);
#endregion Dep_Id ~ 科室
#region Position_Id ~ 岗位
dai = TA._Position_Id;
strTmp = model.Position_Id__GetText(SMC, cacheFirst, "", xdbHelper);
theResult.AddNoEmptyItem(dai, null, strTmp);
#endregion Position_Id ~ 岗位
#region Category_Id ~ 类别
dai = TA._Category_Id;
strTmp = model.Category_Id__GetText(SMC, cacheFirst, "", xdbHelper);
theResult.AddNoEmptyItem(dai, null, strTmp);
#endregion Category_Id ~ 类别
#region Rank_Id ~ 职级
dai = TA._Rank_Id;
strTmp = model.Rank_Id__GetText(SMC, cacheFirst, "", xdbHelper);
theResult.AddNoEmptyItem(dai, null, strTmp);
#endregion Rank_Id ~ 职级
#region Birthday ~ 出生日期
dai = TA._Birthday;
strTmp = DateTimeNullToFormatString(model.Birthday, "yyyy-MM");
theResult.AddNoEmptyItem(dai, null, strTmp);
#endregion Birthday ~ 出生日期
#region Education_Id ~ 学历
dai = TA._Education_Id;
strTmp = model.Education_Id__GetText(SMC, cacheFirst, "", xdbHelper);
theResult.AddNoEmptyItem(dai, null, strTmp);
#endregion Education_Id ~ 学历
#region SchoolName ~ 毕业院校
dai = TA._SchoolName;
strTmp = model.SchoolName;
theResult.AddNoEmptyItem(dai, null, strTmp);
#endregion SchoolName ~ 毕业院校
#region MajorName ~ 专业
dai = TA._MajorName;
strTmp = model.MajorName;
theResult.AddNoEmptyItem(dai, null, strTmp);
#endregion MajorName ~ 专业
#region StartTime ~ 入职时间
dai = TA._StartTime;
strTmp = DateTimeNullToFormatString(model.StartTime, "yyyy-MM-dd");
theResult.AddNoEmptyItem(dai, null, strTmp);
#endregion StartTime ~ 入职时间
#region Email ~ 电子邮件地址
dai = TA._Email;
strTmp = model.Email;
theResult.AddNoEmptyItem(dai, null, strTmp);
#endregion Email ~ 电子邮件地址
#region TheTel ~ 手机号
dai = TA._TheTel;
strTmp = model.TheTel;
theResult.AddNoEmptyItem(dai, null, strTmp);
#endregion TheTel ~ 手机号
return theResult;
}