vwSellerWrntDueExpireCalc_info.cs 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  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 vwSellerWrntDueExpireCalc
  10. public class vwSellerWrntDueExpireCalc_info : ITableInfo
  11. {
  12. #region vwSellerWrntDueExpireCalc表 字段信息
  13. /// <summary>
  14. /// 为关键字段: N ;
  15. /// 自动增长: N;
  16. /// 数据类型: varchar;
  17. /// 数据长度: 15;
  18. /// 是否允许为空: N;
  19. /// 默认值: ;
  20. /// 描述: MarketId;
  21. /// </summary>
  22. public const string cMarketId = "MarketId";
  23. /// <summary>
  24. /// 为关键字段: N ;
  25. /// 自动增长: N;
  26. /// 数据类型: nvarchar;
  27. /// 数据长度: 400;
  28. /// 是否允许为空: N;
  29. /// 默认值: ;
  30. /// 描述: MarketName;
  31. /// </summary>
  32. public const string cMarketName = "MarketName";
  33. /// <summary>
  34. /// 为关键字段: N ;
  35. /// 自动增长: N;
  36. /// 数据类型: int;
  37. /// 数据长度: 4;
  38. /// 是否允许为空: N;
  39. /// 默认值: ;
  40. /// 描述: SDueCnt;
  41. /// </summary>
  42. public const string cSDueCnt = "SDueCnt";
  43. /// <summary>
  44. /// 为关键字段: N ;
  45. /// 自动增长: N;
  46. /// 数据类型: int;
  47. /// 数据长度: 4;
  48. /// 是否允许为空: N;
  49. /// 默认值: ;
  50. /// 描述: SExpireCnt;
  51. /// </summary>
  52. public const string cSExpireCnt = "SExpireCnt";
  53. /// <summary>
  54. /// 为关键字段: N ;
  55. /// 自动增长: N;
  56. /// 数据类型: varchar;
  57. /// 数据长度: 50;
  58. /// 是否允许为空: N;
  59. /// 默认值: ;
  60. /// 描述: WarrantName;
  61. /// </summary>
  62. public const string cWarrantName = "WarrantName";
  63. /// <summary>
  64. /// 为关键字段: N ;
  65. /// 自动增长: N;
  66. /// 数据类型: int;
  67. /// 数据长度: 4;
  68. /// 是否允许为空: N;
  69. /// 默认值: ;
  70. /// 描述: WarrantTypeId;
  71. /// </summary>
  72. public const string cWarrantTypeId = "WarrantTypeId";
  73. #endregion
  74. public vwSellerWrntDueExpireCalc_info(){}
  75. public vwSellerWrntDueExpireCalc_info(DataRow poRow)
  76. {
  77. CreateTableInfo(poRow);
  78. }
  79. public void CreateTableInfo(DataRow poRow)
  80. {
  81. _MarketId=UtilStr.StrFromObj(poRow[cMarketId]);
  82. _MarketName=UtilStr.StrFromObj(poRow[cMarketName]);
  83. _SDueCnt=UtilStr.StrFromObj(poRow[cSDueCnt]);
  84. _SExpireCnt=UtilStr.StrFromObj(poRow[cSExpireCnt]);
  85. _WarrantName=UtilStr.StrFromObj(poRow[cWarrantName]);
  86. _WarrantTypeId=UtilStr.StrFromObj(poRow[cWarrantTypeId]);
  87. }
  88. private string _MarketId="";
  89. public string MarketId
  90. {
  91. get { return _MarketId; }
  92. set { _MarketId = value; }
  93. }
  94. private string _MarketName="";
  95. public string MarketName
  96. {
  97. get { return _MarketName; }
  98. set { _MarketName = value; }
  99. }
  100. private string _SDueCnt="";
  101. public string SDueCnt
  102. {
  103. get { return _SDueCnt; }
  104. set { _SDueCnt = value; }
  105. }
  106. private string _SExpireCnt="";
  107. public string SExpireCnt
  108. {
  109. get { return _SExpireCnt; }
  110. set { _SExpireCnt = value; }
  111. }
  112. private string _WarrantName="";
  113. public string WarrantName
  114. {
  115. get { return _WarrantName; }
  116. set { _WarrantName = value; }
  117. }
  118. private string _WarrantTypeId="";
  119. public string WarrantTypeId
  120. {
  121. get { return _WarrantTypeId; }
  122. set { _WarrantTypeId = value; }
  123. }
  124. [ScriptIgnore]
  125. public rsXmlNode DataXMLNode
  126. {
  127. get
  128. {
  129. rsXmlNode loMainNode = new rsXmlNode("vwSellerWrntDueExpireCalcRecord", "");
  130. rsXmlNode loNode =null;
  131. loNode = new rsXmlNode(cMarketId, MarketId);
  132. loMainNode.AddChild(loNode);
  133. loNode = new rsXmlNode(cMarketName, MarketName);
  134. loMainNode.AddChild(loNode);
  135. loNode = new rsXmlNode(cSDueCnt, SDueCnt);
  136. loMainNode.AddChild(loNode);
  137. loNode = new rsXmlNode(cSExpireCnt, SExpireCnt);
  138. loMainNode.AddChild(loNode);
  139. loNode = new rsXmlNode(cWarrantName, WarrantName);
  140. loMainNode.AddChild(loNode);
  141. loNode = new rsXmlNode(cWarrantTypeId, WarrantTypeId);
  142. loMainNode.AddChild(loNode);
  143. return loMainNode ;
  144. }
  145. }
  146. public string InsertSql()
  147. {
  148. return " insert into "+Tn.vwSellerWrntDueExpireCalc+" "+
  149. " ("+cMarketId+","+cMarketName+","+cSDueCnt+","+cSExpireCnt+","+cWarrantName+","+cWarrantTypeId+") "+
  150. " values ('"+_MarketId+"','"+_MarketName+"',"+_SDueCnt+","+_SExpireCnt+",'"+_WarrantName+"',"+_WarrantTypeId+") " ;
  151. }
  152. public string UpdateSql()
  153. {
  154. return " update "+Tn.vwSellerWrntDueExpireCalc+" "+
  155. " set "+cMarketId+"='"+_MarketId+"',"+cMarketName+"='"+_MarketName+"',"+cSDueCnt+"="+_SDueCnt+","+cSExpireCnt+"="+_SExpireCnt+","+cWarrantName+"='"+_WarrantName+"',"+cWarrantTypeId+"="+_WarrantTypeId+" "+
  156. " where " ;
  157. }
  158. public string DeleteSql()
  159. {
  160. return "Delete "+Tn.vwSellerWrntDueExpireCalc+" where " ;
  161. }
  162. }
  163. #endregion
  164. #region
  165. public class vwSellerWrntDueExpireCalc_Qry : rsQuery
  166. {
  167. public String MarketId
  168. {
  169. get { return GetString(vwSellerWrntDueExpireCalc_info.cMarketId); }
  170. // set { SetField(vwSellerWrntDueExpireCalc_info.cMarketId, value); }
  171. }
  172. public String MarketName
  173. {
  174. get { return GetString(vwSellerWrntDueExpireCalc_info.cMarketName); }
  175. // set { SetField(vwSellerWrntDueExpireCalc_info.cMarketName, value); }
  176. }
  177. public Int64 SDueCnt
  178. {
  179. get { return GetInt(vwSellerWrntDueExpireCalc_info.cSDueCnt); }
  180. // set { SetField(vwSellerWrntDueExpireCalc_info.cSDueCnt, value); }
  181. }
  182. public Int64 SExpireCnt
  183. {
  184. get { return GetInt(vwSellerWrntDueExpireCalc_info.cSExpireCnt); }
  185. // set { SetField(vwSellerWrntDueExpireCalc_info.cSExpireCnt, value); }
  186. }
  187. public String WarrantName
  188. {
  189. get { return GetString(vwSellerWrntDueExpireCalc_info.cWarrantName); }
  190. // set { SetField(vwSellerWrntDueExpireCalc_info.cWarrantName, value); }
  191. }
  192. public Int64 WarrantTypeId
  193. {
  194. get { return GetInt(vwSellerWrntDueExpireCalc_info.cWarrantTypeId); }
  195. // set { SetField(vwSellerWrntDueExpireCalc_info.cWarrantTypeId, value); }
  196. }
  197. }
  198. #endregion
  199. }