viewWeightCheckLog_info.cs 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387
  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 viewWeightCheckLog
  10. public class viewWeightCheckLog_info : ITableInfo
  11. {
  12. #region viewWeightCheckLog表 字段信息
  13. /// <summary>
  14. /// 为关键字段: N ;
  15. /// 自动增长: N;
  16. /// 数据类型: int;
  17. /// 数据长度: 4;
  18. /// 是否允许为空: Y;
  19. /// 默认值: ;
  20. /// 描述: AccurateCount;
  21. /// </summary>
  22. public const string cAccurateCount = "AccurateCount";
  23. /// <summary>
  24. /// 为关键字段: N ;
  25. /// 自动增长: N;
  26. /// 数据类型: varchar;
  27. /// 数据长度: 100;
  28. /// 是否允许为空: Y;
  29. /// 默认值: ;
  30. /// 描述: Executor;
  31. /// </summary>
  32. public const string cExecutor = "Executor";
  33. /// <summary>
  34. /// 为关键字段: N ;
  35. /// 自动增长: N;
  36. /// 数据类型: varchar;
  37. /// 数据长度: 200;
  38. /// 是否允许为空: Y;
  39. /// 默认值: ;
  40. /// 描述: FoodName;
  41. /// </summary>
  42. public const string cFoodName = "FoodName";
  43. /// <summary>
  44. /// 为关键字段: N ;
  45. /// 自动增长: N;
  46. /// 数据类型: int;
  47. /// 数据长度: 4;
  48. /// 是否允许为空: N;
  49. /// 默认值: ;
  50. /// 描述: ID;
  51. /// </summary>
  52. public const string cID = "ID";
  53. /// <summary>
  54. /// 为关键字段: N ;
  55. /// 自动增长: N;
  56. /// 数据类型: smalldatetime;
  57. /// 数据长度: 4;
  58. /// 是否允许为空: Y;
  59. /// 默认值: ;
  60. /// 描述: LogDate;
  61. /// </summary>
  62. public const string cLogDate = "LogDate";
  63. /// <summary>
  64. /// 为关键字段: N ;
  65. /// 自动增长: N;
  66. /// 数据类型: char;
  67. /// 数据长度: 10;
  68. /// 是否允许为空: N;
  69. /// 默认值: ;
  70. /// 描述: MarketID;
  71. /// </summary>
  72. public const string cMarketID = "MarketID";
  73. /// <summary>
  74. /// 为关键字段: N ;
  75. /// 自动增长: N;
  76. /// 数据类型: varchar;
  77. /// 数据长度: 1000;
  78. /// 是否允许为空: Y;
  79. /// 默认值: ;
  80. /// 描述: Result;
  81. /// </summary>
  82. public const string cResult = "Result";
  83. /// <summary>
  84. /// 为关键字段: N ;
  85. /// 自动增长: N;
  86. /// 数据类型: int;
  87. /// 数据长度: 4;
  88. /// 是否允许为空: N;
  89. /// 默认值: ;
  90. /// 描述: SellerID;
  91. /// </summary>
  92. public const string cSellerID = "SellerID";
  93. /// <summary>
  94. /// 为关键字段: N ;
  95. /// 自动增长: N;
  96. /// 数据类型: varchar;
  97. /// 数据长度: 50;
  98. /// 是否允许为空: Y;
  99. /// 默认值: ;
  100. /// 描述: StallName;
  101. /// </summary>
  102. public const string cStallName = "StallName";
  103. /// <summary>
  104. /// 为关键字段: N ;
  105. /// 自动增长: N;
  106. /// 数据类型: int;
  107. /// 数据长度: 4;
  108. /// 是否允许为空: Y;
  109. /// 默认值: ;
  110. /// 描述: TotalCount;
  111. /// </summary>
  112. public const string cTotalCount = "TotalCount";
  113. /// <summary>
  114. /// 为关键字段: N ;
  115. /// 自动增长: N;
  116. /// 数据类型: datetime;
  117. /// 数据长度: 8;
  118. /// 是否允许为空: Y;
  119. /// 默认值: ;
  120. /// 描述: UpdateTime;
  121. /// </summary>
  122. public const string cUpdateTime = "UpdateTime";
  123. /// <summary>
  124. /// 为关键字段: N ;
  125. /// 自动增长: N;
  126. /// 数据类型: varchar;
  127. /// 数据长度: 20;
  128. /// 是否允许为空: N;
  129. /// 默认值: ;
  130. /// 描述: UserID;
  131. /// </summary>
  132. public const string cUserID = "UserID";
  133. #endregion
  134. public viewWeightCheckLog_info(){}
  135. public viewWeightCheckLog_info(DataRow poRow)
  136. {
  137. CreateTableInfo(poRow);
  138. }
  139. public void CreateTableInfo(DataRow poRow)
  140. {
  141. _AccurateCount=UtilStr.StrFromObj(poRow[cAccurateCount]);
  142. _Executor=UtilStr.StrFromObj(poRow[cExecutor]);
  143. _FoodName=UtilStr.StrFromObj(poRow[cFoodName]);
  144. _ID=UtilStr.StrFromObj(poRow[cID]);
  145. _LogDate=UtilStr.StrFromObj(poRow[cLogDate]);
  146. _MarketID=UtilStr.StrFromObj(poRow[cMarketID]);
  147. _Result=UtilStr.StrFromObj(poRow[cResult]);
  148. _SellerID=UtilStr.StrFromObj(poRow[cSellerID]);
  149. _StallName=UtilStr.StrFromObj(poRow[cStallName]);
  150. _TotalCount=UtilStr.StrFromObj(poRow[cTotalCount]);
  151. _UpdateTime=UtilStr.StrFromObj(poRow[cUpdateTime]);
  152. _UserID=UtilStr.StrFromObj(poRow[cUserID]);
  153. }
  154. private string _AccurateCount="";
  155. public string AccurateCount
  156. {
  157. get { return _AccurateCount; }
  158. set { _AccurateCount = value; }
  159. }
  160. private string _Executor="";
  161. public string Executor
  162. {
  163. get { return _Executor; }
  164. set { _Executor = value; }
  165. }
  166. private string _FoodName="";
  167. public string FoodName
  168. {
  169. get { return _FoodName; }
  170. set { _FoodName = value; }
  171. }
  172. private string _ID="";
  173. public string ID
  174. {
  175. get { return _ID; }
  176. set { _ID = value; }
  177. }
  178. private string _LogDate="";
  179. public string LogDate
  180. {
  181. get { return _LogDate; }
  182. set { _LogDate = value; }
  183. }
  184. private string _MarketID="";
  185. public string MarketID
  186. {
  187. get { return _MarketID; }
  188. set { _MarketID = value; }
  189. }
  190. private string _Result="";
  191. public string Result
  192. {
  193. get { return _Result; }
  194. set { _Result = value; }
  195. }
  196. private string _SellerID="";
  197. public string SellerID
  198. {
  199. get { return _SellerID; }
  200. set { _SellerID = value; }
  201. }
  202. private string _StallName="";
  203. public string StallName
  204. {
  205. get { return _StallName; }
  206. set { _StallName = value; }
  207. }
  208. private string _TotalCount="";
  209. public string TotalCount
  210. {
  211. get { return _TotalCount; }
  212. set { _TotalCount = value; }
  213. }
  214. private string _UpdateTime="";
  215. public string UpdateTime
  216. {
  217. get { return _UpdateTime; }
  218. set { _UpdateTime = value; }
  219. }
  220. private string _UserID="";
  221. public string UserID
  222. {
  223. get { return _UserID; }
  224. set { _UserID = value; }
  225. }
  226. [ScriptIgnore]
  227. public rsXmlNode DataXMLNode
  228. {
  229. get
  230. {
  231. rsXmlNode loMainNode = new rsXmlNode("viewWeightCheckLogRecord", "");
  232. rsXmlNode loNode =null;
  233. loNode = new rsXmlNode(cAccurateCount, AccurateCount);
  234. loMainNode.AddChild(loNode);
  235. loNode = new rsXmlNode(cExecutor, Executor);
  236. loMainNode.AddChild(loNode);
  237. loNode = new rsXmlNode(cFoodName, FoodName);
  238. loMainNode.AddChild(loNode);
  239. loNode = new rsXmlNode(cID, ID);
  240. loMainNode.AddChild(loNode);
  241. loNode = new rsXmlNode(cLogDate, LogDate);
  242. loMainNode.AddChild(loNode);
  243. loNode = new rsXmlNode(cMarketID, MarketID);
  244. loMainNode.AddChild(loNode);
  245. loNode = new rsXmlNode(cResult, Result);
  246. loMainNode.AddChild(loNode);
  247. loNode = new rsXmlNode(cSellerID, SellerID);
  248. loMainNode.AddChild(loNode);
  249. loNode = new rsXmlNode(cStallName, StallName);
  250. loMainNode.AddChild(loNode);
  251. loNode = new rsXmlNode(cTotalCount, TotalCount);
  252. loMainNode.AddChild(loNode);
  253. loNode = new rsXmlNode(cUpdateTime, UpdateTime);
  254. loMainNode.AddChild(loNode);
  255. loNode = new rsXmlNode(cUserID, UserID);
  256. loMainNode.AddChild(loNode);
  257. return loMainNode ;
  258. }
  259. }
  260. public string InsertSql()
  261. {
  262. return " insert into "+Tn.viewWeightCheckLog+" "+
  263. " ("+cAccurateCount+","+cExecutor+","+cFoodName+","+cID+","+cLogDate+","+cMarketID+","+cResult+","+cSellerID+","+cStallName+","+cTotalCount+","+cUpdateTime+","+cUserID+") "+
  264. " values ("+_AccurateCount+",'"+_Executor+"','"+_FoodName+"',"+_ID+",'"+_LogDate+"','"+_MarketID+"','"+_Result+"',"+_SellerID+",'"+_StallName+"',"+_TotalCount+",'"+_UpdateTime+"','"+_UserID+"') " ;
  265. }
  266. public string UpdateSql()
  267. {
  268. return " update "+Tn.viewWeightCheckLog+" "+
  269. " set "+cAccurateCount+"="+_AccurateCount+","+cExecutor+"='"+_Executor+"',"+cFoodName+"='"+_FoodName+"',"+cID+"="+_ID+","+cLogDate+"='"+_LogDate+"',"+cMarketID+"='"+_MarketID+"',"+cResult+"='"+_Result+"',"+cSellerID+"="+_SellerID+","+cStallName+"='"+_StallName+"',"+cTotalCount+"="+_TotalCount+","+cUpdateTime+"='"+_UpdateTime+"',"+cUserID+"='"+_UserID+"' "+
  270. " where " ;
  271. }
  272. public string DeleteSql()
  273. {
  274. return "Delete "+Tn.viewWeightCheckLog+" where " ;
  275. }
  276. }
  277. #endregion
  278. #region
  279. public class viewWeightCheckLog_Qry : rsQuery
  280. {
  281. public Int64 AccurateCount
  282. {
  283. get { return GetInt(viewWeightCheckLog_info.cAccurateCount); }
  284. // set { SetField(viewWeightCheckLog_info.cAccurateCount, value); }
  285. }
  286. public String Executor
  287. {
  288. get { return GetString(viewWeightCheckLog_info.cExecutor); }
  289. // set { SetField(viewWeightCheckLog_info.cExecutor, value); }
  290. }
  291. public String FoodName
  292. {
  293. get { return GetString(viewWeightCheckLog_info.cFoodName); }
  294. // set { SetField(viewWeightCheckLog_info.cFoodName, value); }
  295. }
  296. public Int64 ID
  297. {
  298. get { return GetInt(viewWeightCheckLog_info.cID); }
  299. // set { SetField(viewWeightCheckLog_info.cID, value); }
  300. }
  301. public DateTime LogDate
  302. {
  303. get { return GetDateTime(viewWeightCheckLog_info.cLogDate); }
  304. // set { SetField(viewWeightCheckLog_info.cLogDate, value); }
  305. }
  306. public String MarketID
  307. {
  308. get { return GetString(viewWeightCheckLog_info.cMarketID); }
  309. // set { SetField(viewWeightCheckLog_info.cMarketID, value); }
  310. }
  311. public String Result
  312. {
  313. get { return GetString(viewWeightCheckLog_info.cResult); }
  314. // set { SetField(viewWeightCheckLog_info.cResult, value); }
  315. }
  316. public Int64 SellerID
  317. {
  318. get { return GetInt(viewWeightCheckLog_info.cSellerID); }
  319. // set { SetField(viewWeightCheckLog_info.cSellerID, value); }
  320. }
  321. public String StallName
  322. {
  323. get { return GetString(viewWeightCheckLog_info.cStallName); }
  324. // set { SetField(viewWeightCheckLog_info.cStallName, value); }
  325. }
  326. public Int64 TotalCount
  327. {
  328. get { return GetInt(viewWeightCheckLog_info.cTotalCount); }
  329. // set { SetField(viewWeightCheckLog_info.cTotalCount, value); }
  330. }
  331. public DateTime UpdateTime
  332. {
  333. get { return GetDateTime(viewWeightCheckLog_info.cUpdateTime); }
  334. // set { SetField(viewWeightCheckLog_info.cUpdateTime, value); }
  335. }
  336. public String UserID
  337. {
  338. get { return GetString(viewWeightCheckLog_info.cUserID); }
  339. // set { SetField(viewWeightCheckLog_info.cUserID, value); }
  340. }
  341. }
  342. #endregion
  343. }