FSOnlineComplaintsDelay_info.cs 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Data;
  5. using SysBaseLibs;
  6. using System.Web.Script.Serialization;
  7. namespace SysDataLibs.TableClass
  8. {
  9. #region FSOnlineComplaintsDelay
  10. public class FSOnlineComplaintsDelay_info : ITableInfo
  11. {
  12. #region FSOnlineComplaintsDelay表 字段信息
  13. /// <summary>
  14. /// 为关键字段: N ;
  15. /// 自动增长: N;
  16. /// 数据类型: nvarchar;
  17. /// 数据长度: 100;
  18. /// 是否允许为空: Y;
  19. /// 默认值: ;
  20. /// 描述: 申请人;
  21. /// </summary>
  22. public const string cApplyPeople = "ApplyPeople";
  23. /// <summary>
  24. /// 为关键字段: N ;
  25. /// 自动增长: N;
  26. /// 数据类型: text;
  27. /// 数据长度: 16;
  28. /// 是否允许为空: N;
  29. /// 默认值: ;
  30. /// 描述: 申请理由;
  31. /// </summary>
  32. public const string cApplyReason = "ApplyReason";
  33. /// <summary>
  34. /// 为关键字段: N ;
  35. /// 自动增长: N;
  36. /// 数据类型: text;
  37. /// 数据长度: 16;
  38. /// 是否允许为空: Y;
  39. /// 默认值: ;
  40. /// 描述: 回复内容;
  41. /// </summary>
  42. public const string cBackContent = "BackContent";
  43. /// <summary>
  44. /// 为关键字段: N ;
  45. /// 自动增长: N;
  46. /// 数据类型: nvarchar;
  47. /// 数据长度: 100;
  48. /// 是否允许为空: Y;
  49. /// 默认值: ;
  50. /// 描述: 回复人;
  51. /// </summary>
  52. public const string cBackPeople = "BackPeople";
  53. /// <summary>
  54. /// 为关键字段: N ;
  55. /// 自动增长: N;
  56. /// 数据类型: int;
  57. /// 数据长度: 4;
  58. /// 是否允许为空: Y;
  59. /// 默认值: ;
  60. /// 描述: 需要延期天数;
  61. /// </summary>
  62. public const string cDelayCount = "DelayCount";
  63. /// <summary>
  64. /// 为关键字段: N ;
  65. /// 自动增长: N;
  66. /// 数据类型: datetime;
  67. /// 数据长度: 8;
  68. /// 是否允许为空: Y;
  69. /// 默认值: ;
  70. /// 描述: 需要延期时间;
  71. /// </summary>
  72. public const string cDelayDate = "DelayDate";
  73. /// <summary>
  74. /// 为关键字段: Y --- PrimaryKey;
  75. /// 自动增长: N;
  76. /// 数据类型: varchar;
  77. /// 数据长度: 50;
  78. /// 是否允许为空: N;
  79. /// 默认值: ;
  80. /// 描述: 编号;
  81. /// </summary>
  82. public const string cDelayID = "DelayID";
  83. /// <summary>
  84. /// 为关键字段: N ;
  85. /// 自动增长: N;
  86. /// 数据类型: int;
  87. /// 数据长度: 4;
  88. /// 是否允许为空: Y;
  89. /// 默认值: ;
  90. /// 描述: 是否同意;
  91. /// </summary>
  92. public const string cIsAgree = "IsAgree";
  93. /// <summary>
  94. /// 为关键字段: N ;
  95. /// 自动增长: N;
  96. /// 数据类型: varchar;
  97. /// 数据长度: 50;
  98. /// 是否允许为空: N;
  99. /// 默认值: ;
  100. /// 描述: 主投诉编号;
  101. /// </summary>
  102. public const string cOnlineComplaintsID = "OnlineComplaintsID";
  103. /// <summary>
  104. /// 为关键字段: N ;
  105. /// 自动增长: N;
  106. /// 数据类型: datetime;
  107. /// 数据长度: 8;
  108. /// 是否允许为空: Y;
  109. /// 默认值: ;
  110. /// 描述: 更新时间;
  111. /// </summary>
  112. public const string cUpdateTime = "UpdateTime";
  113. #endregion
  114. public FSOnlineComplaintsDelay_info() { }
  115. public FSOnlineComplaintsDelay_info(DataRow poRow)
  116. {
  117. CreateTableInfo(poRow);
  118. }
  119. public void CreateTableInfo(DataRow poRow)
  120. {
  121. _ApplyPeople = UtilStr.StrFromObj(poRow[cApplyPeople]);
  122. _ApplyReason = UtilStr.StrFromObj(poRow[cApplyReason]);
  123. _BackContent = UtilStr.StrFromObj(poRow[cBackContent]);
  124. _BackPeople = UtilStr.StrFromObj(poRow[cBackPeople]);
  125. _DelayCount = UtilStr.StrFromObj(poRow[cDelayCount]);
  126. _DelayDate = UtilStr.StrFromObj(poRow[cDelayDate]);
  127. _DelayID = UtilStr.StrFromObj(poRow[cDelayID]);
  128. _IsAgree = UtilStr.StrFromObj(poRow[cIsAgree]);
  129. _OnlineComplaintsID = UtilStr.StrFromObj(poRow[cOnlineComplaintsID]);
  130. _UpdateTime = UtilStr.StrFromObj(poRow[cUpdateTime]);
  131. }
  132. public FSOnlineComplaintsDelay_info(string pcDelayID, DBConnSql poDBConn)
  133. {
  134. if (pcDelayID.Trim().Length > 0 && poDBConn != null)
  135. {
  136. string lcSql = "select * from " + Tn.FSOnlineComplaintsDelay + " where DelayID='" + pcDelayID + "'";
  137. rsQuery loQuery = poDBConn.OpenQuery(lcSql);
  138. if (loQuery != null && loQuery.IsOpened && loQuery.RecCount == 1)
  139. {
  140. loQuery.MoveFirst();
  141. CreateTableInfo(loQuery.CurrentRow);
  142. }
  143. }
  144. }
  145. private string _ApplyPeople = "";
  146. public string ApplyPeople
  147. {
  148. get { return _ApplyPeople; }
  149. set { _ApplyPeople = value; }
  150. }
  151. private string _ApplyReason = "";
  152. public string ApplyReason
  153. {
  154. get { return _ApplyReason; }
  155. set { _ApplyReason = value; }
  156. }
  157. private string _BackContent = "";
  158. public string BackContent
  159. {
  160. get { return _BackContent; }
  161. set { _BackContent = value; }
  162. }
  163. private string _BackPeople = "";
  164. public string BackPeople
  165. {
  166. get { return _BackPeople; }
  167. set { _BackPeople = value; }
  168. }
  169. private string _DelayCount = "";
  170. public string DelayCount
  171. {
  172. get { return _DelayCount; }
  173. set { _DelayCount = value; }
  174. }
  175. private string _DelayDate = "";
  176. public string DelayDate
  177. {
  178. get { return _DelayDate; }
  179. set { _DelayDate = value; }
  180. }
  181. private string _DelayID = "";
  182. public string DelayID
  183. {
  184. get { return _DelayID; }
  185. set { _DelayID = value; }
  186. }
  187. private string _IsAgree = "";
  188. public string IsAgree
  189. {
  190. get { return _IsAgree; }
  191. set { _IsAgree = value; }
  192. }
  193. private string _OnlineComplaintsID = "";
  194. public string OnlineComplaintsID
  195. {
  196. get { return _OnlineComplaintsID; }
  197. set { _OnlineComplaintsID = value; }
  198. }
  199. private string _UpdateTime = "";
  200. public string UpdateTime
  201. {
  202. get { return _UpdateTime; }
  203. set { _UpdateTime = value; }
  204. }
  205. [ScriptIgnore]
  206. public rsXmlNode DataXMLNode
  207. {
  208. get
  209. {
  210. rsXmlNode loMainNode = new rsXmlNode("FSOnlineComplaintsDelayRecord", "");
  211. rsXmlNode loNode = null;
  212. loNode = new rsXmlNode(cApplyPeople, ApplyPeople);
  213. loMainNode.AddChild(loNode);
  214. loNode = new rsXmlNode(cApplyReason, ApplyReason);
  215. loMainNode.AddChild(loNode);
  216. loNode = new rsXmlNode(cBackContent, BackContent);
  217. loMainNode.AddChild(loNode);
  218. loNode = new rsXmlNode(cBackPeople, BackPeople);
  219. loMainNode.AddChild(loNode);
  220. loNode = new rsXmlNode(cDelayCount, DelayCount);
  221. loMainNode.AddChild(loNode);
  222. loNode = new rsXmlNode(cDelayDate, DelayDate);
  223. loMainNode.AddChild(loNode);
  224. loNode = new rsXmlNode(cDelayID, DelayID);
  225. loMainNode.AddChild(loNode);
  226. loNode = new rsXmlNode(cIsAgree, IsAgree);
  227. loMainNode.AddChild(loNode);
  228. loNode = new rsXmlNode(cOnlineComplaintsID, OnlineComplaintsID);
  229. loMainNode.AddChild(loNode);
  230. loNode = new rsXmlNode(cUpdateTime, UpdateTime);
  231. loMainNode.AddChild(loNode);
  232. return loMainNode;
  233. }
  234. }
  235. public string InsertSql()
  236. {
  237. return " insert into " + Tn.FSOnlineComplaintsDelay + " " +
  238. " (" + cDelayID + "," + cOnlineComplaintsID + "," + cApplyPeople + "," + cApplyReason +
  239. "," + cDelayCount + "," + cDelayDate + "," + cBackContent + "," + cBackPeople + "," + cIsAgree + "," + cUpdateTime + ") " +
  240. " values ('" + _DelayID + "','" + _OnlineComplaintsID + "','" + _ApplyPeople + "','" + _ApplyReason + "'," + _DelayCount +
  241. ",'" + _DelayDate + "','" + _BackContent + "','" + _BackPeople + "'," + _IsAgree + ",'" + _UpdateTime + "') ";
  242. }
  243. public string UpdateSql()
  244. {
  245. return " update " + Tn.FSOnlineComplaintsDelay + " " +
  246. " set " + cIsAgree + "=" + _IsAgree + "," + cBackPeople + "='" + _BackPeople +
  247. "', " + cBackContent + "='" + _BackContent + "', " + cUpdateTime + "='" + _UpdateTime + "' " +
  248. " where " + cDelayID + "='" + _DelayID + "'";
  249. }
  250. public string DeleteSql()
  251. {
  252. return "Delete " + Tn.FSOnlineComplaintsDelay + " where " + cDelayID + "='" + _DelayID + "'";
  253. }
  254. }
  255. #endregion
  256. #region
  257. public class FSOnlineComplaintsDelay_Qry : rsQuery
  258. {
  259. public String ApplyPeople
  260. {
  261. get { return GetString(FSOnlineComplaintsDelay_info.cApplyPeople); }
  262. // set { SetField(FSOnlineComplaintsDelay_info.cApplyPeople, value); }
  263. }
  264. public String ApplyReason
  265. {
  266. get { return GetString(FSOnlineComplaintsDelay_info.cApplyReason); }
  267. // set { SetField(FSOnlineComplaintsDelay_info.cApplyReason, value); }
  268. }
  269. public String BackContent
  270. {
  271. get { return GetString(FSOnlineComplaintsDelay_info.cBackContent); }
  272. // set { SetField(FSOnlineComplaintsDelay_info.cBackContent, value); }
  273. }
  274. public String BackPeople
  275. {
  276. get { return GetString(FSOnlineComplaintsDelay_info.cBackPeople); }
  277. // set { SetField(FSOnlineComplaintsDelay_info.cBackPeople, value); }
  278. }
  279. public Int64 DelayCount
  280. {
  281. get { return GetInt(FSOnlineComplaintsDelay_info.cDelayCount); }
  282. // set { SetField(FSOnlineComplaintsDelay_info.cDelayCount, value); }
  283. }
  284. public DateTime DelayDate
  285. {
  286. get { return GetDateTime(FSOnlineComplaintsDelay_info.cDelayDate); }
  287. // set { SetField(FSOnlineComplaintsDelay_info.cDelayDate, value); }
  288. }
  289. public String DelayID
  290. {
  291. get { return GetString(FSOnlineComplaintsDelay_info.cDelayID); }
  292. // set { SetField(FSOnlineComplaintsDelay_info.cDelayID, value); }
  293. }
  294. public Int64 IsAgree
  295. {
  296. get { return GetInt(FSOnlineComplaintsDelay_info.cIsAgree); }
  297. // set { SetField(FSOnlineComplaintsDelay_info.cIsAgree, value); }
  298. }
  299. public String OnlineComplaintsID
  300. {
  301. get { return GetString(FSOnlineComplaintsDelay_info.cOnlineComplaintsID); }
  302. // set { SetField(FSOnlineComplaintsDelay_info.cOnlineComplaintsID, value); }
  303. }
  304. public DateTime UpdateTime
  305. {
  306. get { return GetDateTime(FSOnlineComplaintsDelay_info.cUpdateTime); }
  307. // set { SetField(FSOnlineComplaintsDelay_info.cUpdateTime, value); }
  308. }
  309. }
  310. #endregion
  311. }