vwSpecialsGoods_info.cs 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  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 vwSpecialsGoods
  10. public class vwSpecialsGoods_info : ITableInfo
  11. {
  12. #region vwSpecialsGoods表 字段信息
  13. /// <summary>
  14. /// 为关键字段: N ;
  15. /// 自动增长: N;
  16. /// 数据类型: varchar;
  17. /// 数据长度: 20;
  18. /// 是否允许为空: Y;
  19. /// 默认值: ;
  20. /// 描述: GreatKindID;
  21. /// </summary>
  22. public const string cGreatKindID = "GreatKindID";
  23. /// <summary>
  24. /// 为关键字段: N ;
  25. /// 自动增长: N;
  26. /// 数据类型: varchar;
  27. /// 数据长度: 20;
  28. /// 是否允许为空: Y;
  29. /// 默认值: ;
  30. /// 描述: GreatKindName;
  31. /// </summary>
  32. public const string cGreatKindName = "GreatKindName";
  33. /// <summary>
  34. /// 为关键字段: N ;
  35. /// 自动增长: N;
  36. /// 数据类型: int;
  37. /// 数据长度: 4;
  38. /// 是否允许为空: Y;
  39. /// 默认值: ;
  40. /// 描述: IsVeg;
  41. /// </summary>
  42. public const string cIsVeg = "IsVeg";
  43. /// <summary>
  44. /// 为关键字段: N ;
  45. /// 自动增长: N;
  46. /// 数据类型: varchar;
  47. /// 数据长度: 20;
  48. /// 是否允许为空: Y;
  49. /// 默认值: ;
  50. /// 描述: LittleKindID;
  51. /// </summary>
  52. public const string cLittleKindID = "LittleKindID";
  53. /// <summary>
  54. /// 为关键字段: N ;
  55. /// 自动增长: N;
  56. /// 数据类型: varchar;
  57. /// 数据长度: 20;
  58. /// 是否允许为空: Y;
  59. /// 默认值: ;
  60. /// 描述: LittleKindName;
  61. /// </summary>
  62. public const string cLittleKindName = "LittleKindName";
  63. /// <summary>
  64. /// 为关键字段: N ;
  65. /// 自动增长: N;
  66. /// 数据类型: int;
  67. /// 数据长度: 4;
  68. /// 是否允许为空: N;
  69. /// 默认值: ;
  70. /// 描述: SortNumber;
  71. /// </summary>
  72. public const string cSortNumber = "SortNumber";
  73. /// <summary>
  74. /// 为关键字段: N ;
  75. /// 自动增长: N;
  76. /// 数据类型: varchar;
  77. /// 数据长度: 20;
  78. /// 是否允许为空: N;
  79. /// 默认值: ;
  80. /// 描述: SpecialsID;
  81. /// </summary>
  82. public const string cSpecialsID = "SpecialsID";
  83. /// <summary>
  84. /// 为关键字段: N ;
  85. /// 自动增长: N;
  86. /// 数据类型: varchar;
  87. /// 数据长度: 20;
  88. /// 是否允许为空: N;
  89. /// 默认值: ;
  90. /// 描述: SpecialsName;
  91. /// </summary>
  92. public const string cSpecialsName = "SpecialsName";
  93. #endregion
  94. public vwSpecialsGoods_info(){}
  95. public vwSpecialsGoods_info(DataRow poRow)
  96. {
  97. CreateTableInfo(poRow);
  98. }
  99. public void CreateTableInfo(DataRow poRow)
  100. {
  101. _GreatKindID=UtilStr.StrFromObj(poRow[cGreatKindID]);
  102. _GreatKindName=UtilStr.StrFromObj(poRow[cGreatKindName]);
  103. _IsVeg=UtilStr.StrFromObj(poRow[cIsVeg]);
  104. _LittleKindID=UtilStr.StrFromObj(poRow[cLittleKindID]);
  105. _LittleKindName=UtilStr.StrFromObj(poRow[cLittleKindName]);
  106. _SortNumber=UtilStr.StrFromObj(poRow[cSortNumber]);
  107. _SpecialsID=UtilStr.StrFromObj(poRow[cSpecialsID]);
  108. _SpecialsName=UtilStr.StrFromObj(poRow[cSpecialsName]);
  109. }
  110. private string _GreatKindID="";
  111. public string GreatKindID
  112. {
  113. get { return _GreatKindID; }
  114. set { _GreatKindID = value; }
  115. }
  116. private string _GreatKindName="";
  117. public string GreatKindName
  118. {
  119. get { return _GreatKindName; }
  120. set { _GreatKindName = value; }
  121. }
  122. private string _IsVeg="";
  123. public string IsVeg
  124. {
  125. get { return _IsVeg; }
  126. set { _IsVeg = value; }
  127. }
  128. private string _LittleKindID="";
  129. public string LittleKindID
  130. {
  131. get { return _LittleKindID; }
  132. set { _LittleKindID = value; }
  133. }
  134. private string _LittleKindName="";
  135. public string LittleKindName
  136. {
  137. get { return _LittleKindName; }
  138. set { _LittleKindName = value; }
  139. }
  140. private string _SortNumber="";
  141. public string SortNumber
  142. {
  143. get { return _SortNumber; }
  144. set { _SortNumber = value; }
  145. }
  146. private string _SpecialsID="";
  147. public string SpecialsID
  148. {
  149. get { return _SpecialsID; }
  150. set { _SpecialsID = value; }
  151. }
  152. private string _SpecialsName="";
  153. public string SpecialsName
  154. {
  155. get { return _SpecialsName; }
  156. set { _SpecialsName = value; }
  157. }
  158. [ScriptIgnore]
  159. public rsXmlNode DataXMLNode
  160. {
  161. get
  162. {
  163. rsXmlNode loMainNode = new rsXmlNode("vwSpecialsGoodsRecord", "");
  164. rsXmlNode loNode =null;
  165. loNode = new rsXmlNode(cGreatKindID, GreatKindID);
  166. loMainNode.AddChild(loNode);
  167. loNode = new rsXmlNode(cGreatKindName, GreatKindName);
  168. loMainNode.AddChild(loNode);
  169. loNode = new rsXmlNode(cIsVeg, IsVeg);
  170. loMainNode.AddChild(loNode);
  171. loNode = new rsXmlNode(cLittleKindID, LittleKindID);
  172. loMainNode.AddChild(loNode);
  173. loNode = new rsXmlNode(cLittleKindName, LittleKindName);
  174. loMainNode.AddChild(loNode);
  175. loNode = new rsXmlNode(cSortNumber, SortNumber);
  176. loMainNode.AddChild(loNode);
  177. loNode = new rsXmlNode(cSpecialsID, SpecialsID);
  178. loMainNode.AddChild(loNode);
  179. loNode = new rsXmlNode(cSpecialsName, SpecialsName);
  180. loMainNode.AddChild(loNode);
  181. return loMainNode ;
  182. }
  183. }
  184. public string InsertSql()
  185. {
  186. return " insert into "+Tn.vwSpecialsGoods+" "+
  187. " ("+cGreatKindID+","+cGreatKindName+","+cIsVeg+","+cLittleKindID+","+cLittleKindName+","+cSortNumber+","+cSpecialsID+","+cSpecialsName+") "+
  188. " values ('"+_GreatKindID+"','"+_GreatKindName+"',"+_IsVeg+",'"+_LittleKindID+"','"+_LittleKindName+"',"+_SortNumber+",'"+_SpecialsID+"','"+_SpecialsName+"') " ;
  189. }
  190. public string UpdateSql()
  191. {
  192. return " update "+Tn.vwSpecialsGoods+" "+
  193. " set "+cGreatKindID+"='"+_GreatKindID+"',"+cGreatKindName+"='"+_GreatKindName+"',"+cIsVeg+"="+_IsVeg+","+cLittleKindID+"='"+_LittleKindID+"',"+cLittleKindName+"='"+_LittleKindName+"',"+cSortNumber+"="+_SortNumber+","+cSpecialsID+"='"+_SpecialsID+"',"+cSpecialsName+"='"+_SpecialsName+"' "+
  194. " where " ;
  195. }
  196. public string DeleteSql()
  197. {
  198. return "Delete "+Tn.vwSpecialsGoods+" where " ;
  199. }
  200. }
  201. #endregion
  202. #region
  203. public class vwSpecialsGoods_Qry : rsQuery
  204. {
  205. public String GreatKindID
  206. {
  207. get { return GetString(vwSpecialsGoods_info.cGreatKindID); }
  208. // set { SetField(vwSpecialsGoods_info.cGreatKindID, value); }
  209. }
  210. public String GreatKindName
  211. {
  212. get { return GetString(vwSpecialsGoods_info.cGreatKindName); }
  213. // set { SetField(vwSpecialsGoods_info.cGreatKindName, value); }
  214. }
  215. public Int64 IsVeg
  216. {
  217. get { return GetInt(vwSpecialsGoods_info.cIsVeg); }
  218. // set { SetField(vwSpecialsGoods_info.cIsVeg, value); }
  219. }
  220. public String LittleKindID
  221. {
  222. get { return GetString(vwSpecialsGoods_info.cLittleKindID); }
  223. // set { SetField(vwSpecialsGoods_info.cLittleKindID, value); }
  224. }
  225. public String LittleKindName
  226. {
  227. get { return GetString(vwSpecialsGoods_info.cLittleKindName); }
  228. // set { SetField(vwSpecialsGoods_info.cLittleKindName, value); }
  229. }
  230. public Int64 SortNumber
  231. {
  232. get { return GetInt(vwSpecialsGoods_info.cSortNumber); }
  233. // set { SetField(vwSpecialsGoods_info.cSortNumber, value); }
  234. }
  235. public String SpecialsID
  236. {
  237. get { return GetString(vwSpecialsGoods_info.cSpecialsID); }
  238. // set { SetField(vwSpecialsGoods_info.cSpecialsID, value); }
  239. }
  240. public String SpecialsName
  241. {
  242. get { return GetString(vwSpecialsGoods_info.cSpecialsName); }
  243. // set { SetField(vwSpecialsGoods_info.cSpecialsName, value); }
  244. }
  245. }
  246. #endregion
  247. }