Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 
 

251 wiersze
7.3 KiB

  1. using Learun.Util;
  2. using System;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. namespace Learun.Application.Organization
  5. {
  6. /// <summary>
  7. /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
  8. /// Copyright (c) 2013-2018 北京泉江科技有限公司
  9. /// 创建人:陈彬彬
  10. /// 日 期:2017.03.04
  11. /// 描 述:公司管理
  12. /// </summary>
  13. public class CompanyEntity
  14. {
  15. #region 实体成员
  16. /// <summary>
  17. /// 公司主键
  18. /// </summary>
  19. /// <returns></returns>
  20. [Column("F_COMPANYID")]
  21. public string F_CompanyId { get; set; }
  22. /// <summary>
  23. /// 公司分类
  24. /// </summary>
  25. /// <returns></returns>
  26. [Column("F_CATEGORY")]
  27. public int? F_Category { get; set; }
  28. /// <summary>
  29. /// 父级主键
  30. /// </summary>
  31. /// <returns></returns>
  32. [Column("F_PARENTID")]
  33. public string F_ParentId { get; set; }
  34. /// <summary>
  35. /// 公司代码
  36. /// </summary>
  37. /// <returns></returns>
  38. [Column("F_ENCODE")]
  39. public string F_EnCode { get; set; }
  40. /// <summary>
  41. /// 公司简称
  42. /// </summary>
  43. /// <returns></returns>
  44. [Column("F_SHORTNAME")]
  45. public string F_ShortName { get; set; }
  46. /// <summary>
  47. /// 公司名称
  48. /// </summary>
  49. /// <returns></returns>
  50. [Column("F_FULLNAME")]
  51. public string F_FullName { get; set; }
  52. /// <summary>
  53. /// 公司性质
  54. /// </summary>
  55. /// <returns></returns>
  56. [Column("F_NATURE")]
  57. public string F_Nature { get; set; }
  58. /// <summary>
  59. /// 外线电话
  60. /// </summary>
  61. /// <returns></returns>
  62. [Column("F_OUTERPHONE")]
  63. public string F_OuterPhone { get; set; }
  64. /// <summary>
  65. /// 内线电话
  66. /// </summary>
  67. /// <returns></returns>
  68. [Column("F_INNERPHONE")]
  69. public string F_InnerPhone { get; set; }
  70. /// <summary>
  71. /// 传真
  72. /// </summary>
  73. /// <returns></returns>
  74. [Column("F_FAX")]
  75. public string F_Fax { get; set; }
  76. /// <summary>
  77. /// 邮编
  78. /// </summary>
  79. /// <returns></returns>
  80. [Column("F_POSTALCODE")]
  81. public string F_Postalcode { get; set; }
  82. /// <summary>
  83. /// 电子邮箱
  84. /// </summary>
  85. /// <returns></returns>
  86. [Column("F_EMAIL")]
  87. public string F_Email { get; set; }
  88. /// <summary>
  89. /// 负责人
  90. /// </summary>
  91. /// <returns></returns>
  92. [Column("F_MANAGER")]
  93. public string F_Manager { get; set; }
  94. /// <summary>
  95. /// 省主键
  96. /// </summary>
  97. /// <returns></returns>
  98. [Column("F_PROVINCEID")]
  99. public string F_ProvinceId { get; set; }
  100. /// <summary>
  101. /// 市主键
  102. /// </summary>
  103. /// <returns></returns>
  104. [Column("F_CITYID")]
  105. public string F_CityId { get; set; }
  106. /// <summary>
  107. /// 县/区主键
  108. /// </summary>
  109. /// <returns></returns>
  110. [Column("F_COUNTYID")]
  111. public string F_CountyId { get; set; }
  112. /// <summary>
  113. /// 详细地址
  114. /// </summary>
  115. /// <returns></returns>
  116. [Column("F_ADDRESS")]
  117. public string F_Address { get; set; }
  118. /// <summary>
  119. /// 公司主页
  120. /// </summary>
  121. /// <returns></returns>
  122. [Column("F_WEBADDRESS")]
  123. public string F_WebAddress { get; set; }
  124. /// <summary>
  125. /// 成立时间
  126. /// </summary>
  127. /// <returns></returns>
  128. [Column("F_FOUNDEDTIME")]
  129. public DateTime? F_FoundedTime { get; set; }
  130. /// <summary>
  131. /// 经营范围
  132. /// </summary>
  133. /// <returns></returns>
  134. [Column("F_BUSINESSSCOPE")]
  135. public string F_BusinessScope { get; set; }
  136. /// <summary>
  137. /// 排序码
  138. /// </summary>
  139. /// <returns></returns>
  140. [Column("F_SORTCODE")]
  141. public int? F_SortCode { get; set; }
  142. /// <summary>
  143. /// 删除标记
  144. /// </summary>
  145. /// <returns></returns>
  146. [Column("F_DELETEMARK")]
  147. public int? F_DeleteMark { get; set; }
  148. /// <summary>
  149. /// 有效标志
  150. /// </summary>
  151. /// <returns></returns>
  152. [Column("F_ENABLEDMARK")]
  153. public int? F_EnabledMark { get; set; }
  154. /// <summary>
  155. /// 备注
  156. /// </summary>
  157. /// <returns></returns>
  158. [Column("F_DESCRIPTION")]
  159. public string F_Description { get; set; }
  160. /// <summary>
  161. /// 创建日期
  162. /// </summary>
  163. /// <returns></returns>
  164. [Column("F_CREATEDATE")]
  165. public DateTime? F_CreateDate { get; set; }
  166. /// <summary>
  167. /// 创建用户主键
  168. /// </summary>
  169. /// <returns></returns>
  170. [Column("F_CREATEUSERID")]
  171. public string F_CreateUserId { get; set; }
  172. /// <summary>
  173. /// 创建用户
  174. /// </summary>
  175. /// <returns></returns>
  176. [Column("F_CREATEUSERNAME")]
  177. public string F_CreateUserName { get; set; }
  178. /// <summary>
  179. /// 修改日期
  180. /// </summary>
  181. /// <returns></returns>
  182. [Column("F_MODIFYDATE")]
  183. public DateTime? F_ModifyDate { get; set; }
  184. /// <summary>
  185. /// 修改用户主键
  186. /// </summary>
  187. /// <returns></returns>
  188. [Column("F_MODIFYUSERID")]
  189. public string F_ModifyUserId { get; set; }
  190. /// <summary>
  191. /// 修改用户
  192. /// </summary>
  193. /// <returns></returns>
  194. [Column("F_MODIFYUSERNAME")]
  195. public string F_ModifyUserName { get; set; }
  196. /// <summary>
  197. /// SyncFlag
  198. /// </summary>
  199. [Column("SYNCFLAG")]
  200. public bool? SyncFlag { get; set; }
  201. /// <summary>
  202. /// 照片
  203. /// </summary>
  204. [Column("F_PHOTO")]
  205. public string F_Photo { get; set; }
  206. /// <summary>
  207. /// 校区信息
  208. /// </summary>
  209. [Column("F_BRIEFINTRODUCTION")]
  210. public string F_BriefIntroduction { get; set; }
  211. /// <summary>
  212. /// 招生信息
  213. /// </summary>
  214. [Column("F_EnrollmentInformation")]
  215. public string F_EnrollmentInformation { get; set; }
  216. #endregion
  217. #region 扩展操作
  218. /// <summary>
  219. /// 新增调用
  220. /// </summary>
  221. public void Create()
  222. {
  223. this.F_CompanyId = Guid.NewGuid().ToString();
  224. this.F_CreateDate = DateTime.Now;
  225. UserInfo userInfo = LoginUserInfo.Get();
  226. this.F_CreateUserId = userInfo.userId;
  227. this.F_CreateUserName = userInfo.realName;
  228. this.F_DeleteMark = 0;
  229. this.F_EnabledMark = 1;
  230. }
  231. /// <summary>
  232. /// 编辑调用
  233. /// </summary>
  234. /// <param name="keyValue">主键</param>
  235. public void Modify(string keyValue)
  236. {
  237. UserInfo userInfo = LoginUserInfo.Get();
  238. this.F_ModifyUserId = userInfo.userId;
  239. this.F_ModifyUserName = userInfo.realName;
  240. this.F_CompanyId = keyValue;
  241. this.F_ModifyDate = DateTime.Now;
  242. }
  243. #endregion
  244. }
  245. }