viewGoodsRecallLog_info.cs 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522
  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 viewGoodsRecallLog
  10. public class viewGoodsRecallLog_info : ITableInfo
  11. {
  12. #region viewGoodsRecallLog表 字段信息
  13. /// <summary>
  14. /// 为关键字段: N ;
  15. /// 自动增长: N;
  16. /// 数据类型: varchar;
  17. /// 数据长度: 100;
  18. /// 是否允许为空: Y;
  19. /// 默认值: ;
  20. /// 描述: Executor;
  21. /// </summary>
  22. public const string cExecutor = "Executor";
  23. /// <summary>
  24. /// 为关键字段: N ;
  25. /// 自动增长: N;
  26. /// 数据类型: varchar;
  27. /// 数据长度: 100;
  28. /// 是否允许为空: N;
  29. /// 默认值: ;
  30. /// 描述: GoodsName;
  31. /// </summary>
  32. public const string cGoodsName = "GoodsName";
  33. /// <summary>
  34. /// 为关键字段: N ;
  35. /// 自动增长: N;
  36. /// 数据类型: int;
  37. /// 数据长度: 4;
  38. /// 是否允许为空: N;
  39. /// 默认值: ;
  40. /// 描述: ID;
  41. /// </summary>
  42. public const string cID = "ID";
  43. /// <summary>
  44. /// 为关键字段: N ;
  45. /// 自动增长: N;
  46. /// 数据类型: char;
  47. /// 数据长度: 10;
  48. /// 是否允许为空: N;
  49. /// 默认值: ;
  50. /// 描述: MarketID;
  51. /// </summary>
  52. public const string cMarketID = "MarketID";
  53. /// <summary>
  54. /// 为关键字段: N ;
  55. /// 自动增长: N;
  56. /// 数据类型: varchar;
  57. /// 数据长度: 100;
  58. /// 是否允许为空: Y;
  59. /// 默认值: ;
  60. /// 描述: ModelType;
  61. /// </summary>
  62. public const string cModelType = "ModelType";
  63. /// <summary>
  64. /// 为关键字段: N ;
  65. /// 自动增长: N;
  66. /// 数据类型: varchar;
  67. /// 数据长度: 100;
  68. /// 是否允许为空: Y;
  69. /// 默认值: ;
  70. /// 描述: ProduceBatch;
  71. /// </summary>
  72. public const string cProduceBatch = "ProduceBatch";
  73. /// <summary>
  74. /// 为关键字段: N ;
  75. /// 自动增长: N;
  76. /// 数据类型: varchar;
  77. /// 数据长度: 200;
  78. /// 是否允许为空: N;
  79. /// 默认值: ;
  80. /// 描述: RecallReason;
  81. /// </summary>
  82. public const string cRecallReason = "RecallReason";
  83. /// <summary>
  84. /// 为关键字段: N ;
  85. /// 自动增长: N;
  86. /// 数据类型: varchar;
  87. /// 数据长度: 200;
  88. /// 是否允许为空: Y;
  89. /// 默认值: ;
  90. /// 描述: Result;
  91. /// </summary>
  92. public const string cResult = "Result";
  93. /// <summary>
  94. /// 为关键字段: N ;
  95. /// 自动增长: N;
  96. /// 数据类型: int;
  97. /// 数据长度: 4;
  98. /// 是否允许为空: Y;
  99. /// 默认值: ;
  100. /// 描述: SaleCount;
  101. /// </summary>
  102. public const string cSaleCount = "SaleCount";
  103. /// <summary>
  104. /// 为关键字段: N ;
  105. /// 自动增长: N;
  106. /// 数据类型: datetime;
  107. /// 数据长度: 8;
  108. /// 是否允许为空: Y;
  109. /// 默认值: ;
  110. /// 描述: SaleTime;
  111. /// </summary>
  112. public const string cSaleTime = "SaleTime";
  113. /// <summary>
  114. /// 为关键字段: N ;
  115. /// 自动增长: N;
  116. /// 数据类型: int;
  117. /// 数据长度: 4;
  118. /// 是否允许为空: N;
  119. /// 默认值: ;
  120. /// 描述: SellerID;
  121. /// </summary>
  122. public const string cSellerID = "SellerID";
  123. /// <summary>
  124. /// 为关键字段: N ;
  125. /// 自动增长: N;
  126. /// 数据类型: varchar;
  127. /// 数据长度: 50;
  128. /// 是否允许为空: Y;
  129. /// 默认值: ;
  130. /// 描述: StallName;
  131. /// </summary>
  132. public const string cStallName = "StallName";
  133. /// <summary>
  134. /// 为关键字段: N ;
  135. /// 自动增长: N;
  136. /// 数据类型: nvarchar;
  137. /// 数据长度: 400;
  138. /// 是否允许为空: Y;
  139. /// 默认值: ;
  140. /// 描述: Supplier;
  141. /// </summary>
  142. public const string cSupplier = "Supplier";
  143. /// <summary>
  144. /// 为关键字段: N ;
  145. /// 自动增长: N;
  146. /// 数据类型: varchar;
  147. /// 数据长度: 100;
  148. /// 是否允许为空: Y;
  149. /// 默认值: ;
  150. /// 描述: TradeMark;
  151. /// </summary>
  152. public const string cTradeMark = "TradeMark";
  153. /// <summary>
  154. /// 为关键字段: N ;
  155. /// 自动增长: N;
  156. /// 数据类型: nvarchar;
  157. /// 数据长度: 10;
  158. /// 是否允许为空: Y;
  159. /// 默认值: ;
  160. /// 描述: UnitID;
  161. /// </summary>
  162. public const string cUnitID = "UnitID";
  163. /// <summary>
  164. /// 为关键字段: N ;
  165. /// 自动增长: N;
  166. /// 数据类型: datetime;
  167. /// 数据长度: 8;
  168. /// 是否允许为空: Y;
  169. /// 默认值: ;
  170. /// 描述: UpdateTime;
  171. /// </summary>
  172. public const string cUpdateTime = "UpdateTime";
  173. /// <summary>
  174. /// 为关键字段: N ;
  175. /// 自动增长: N;
  176. /// 数据类型: varchar;
  177. /// 数据长度: 20;
  178. /// 是否允许为空: N;
  179. /// 默认值: ;
  180. /// 描述: UserID;
  181. /// </summary>
  182. public const string cUserID = "UserID";
  183. #endregion
  184. public viewGoodsRecallLog_info(){}
  185. public viewGoodsRecallLog_info(DataRow poRow)
  186. {
  187. CreateTableInfo(poRow);
  188. }
  189. public void CreateTableInfo(DataRow poRow)
  190. {
  191. _Executor=UtilStr.StrFromObj(poRow[cExecutor]);
  192. _GoodsName=UtilStr.StrFromObj(poRow[cGoodsName]);
  193. _ID=UtilStr.StrFromObj(poRow[cID]);
  194. _MarketID=UtilStr.StrFromObj(poRow[cMarketID]);
  195. _ModelType=UtilStr.StrFromObj(poRow[cModelType]);
  196. _ProduceBatch=UtilStr.StrFromObj(poRow[cProduceBatch]);
  197. _RecallReason=UtilStr.StrFromObj(poRow[cRecallReason]);
  198. _Result=UtilStr.StrFromObj(poRow[cResult]);
  199. _SaleCount=UtilStr.StrFromObj(poRow[cSaleCount]);
  200. _SaleTime=UtilStr.StrFromObj(poRow[cSaleTime]);
  201. _SellerID=UtilStr.StrFromObj(poRow[cSellerID]);
  202. _StallName=UtilStr.StrFromObj(poRow[cStallName]);
  203. _Supplier=UtilStr.StrFromObj(poRow[cSupplier]);
  204. _TradeMark=UtilStr.StrFromObj(poRow[cTradeMark]);
  205. _UnitID=UtilStr.StrFromObj(poRow[cUnitID]);
  206. _UpdateTime=UtilStr.StrFromObj(poRow[cUpdateTime]);
  207. _UserID=UtilStr.StrFromObj(poRow[cUserID]);
  208. }
  209. private string _Executor="";
  210. public string Executor
  211. {
  212. get { return _Executor; }
  213. set { _Executor = value; }
  214. }
  215. private string _GoodsName="";
  216. public string GoodsName
  217. {
  218. get { return _GoodsName; }
  219. set { _GoodsName = value; }
  220. }
  221. private string _ID="";
  222. public string ID
  223. {
  224. get { return _ID; }
  225. set { _ID = value; }
  226. }
  227. private string _MarketID="";
  228. public string MarketID
  229. {
  230. get { return _MarketID; }
  231. set { _MarketID = value; }
  232. }
  233. private string _ModelType="";
  234. public string ModelType
  235. {
  236. get { return _ModelType; }
  237. set { _ModelType = value; }
  238. }
  239. private string _ProduceBatch="";
  240. public string ProduceBatch
  241. {
  242. get { return _ProduceBatch; }
  243. set { _ProduceBatch = value; }
  244. }
  245. private string _RecallReason="";
  246. public string RecallReason
  247. {
  248. get { return _RecallReason; }
  249. set { _RecallReason = value; }
  250. }
  251. private string _Result="";
  252. public string Result
  253. {
  254. get { return _Result; }
  255. set { _Result = value; }
  256. }
  257. private string _SaleCount="";
  258. public string SaleCount
  259. {
  260. get { return _SaleCount; }
  261. set { _SaleCount = value; }
  262. }
  263. private string _SaleTime="";
  264. public string SaleTime
  265. {
  266. get { return _SaleTime; }
  267. set { _SaleTime = value; }
  268. }
  269. private string _SellerID="";
  270. public string SellerID
  271. {
  272. get { return _SellerID; }
  273. set { _SellerID = value; }
  274. }
  275. private string _StallName="";
  276. public string StallName
  277. {
  278. get { return _StallName; }
  279. set { _StallName = value; }
  280. }
  281. private string _Supplier="";
  282. public string Supplier
  283. {
  284. get { return _Supplier; }
  285. set { _Supplier = value; }
  286. }
  287. private string _TradeMark="";
  288. public string TradeMark
  289. {
  290. get { return _TradeMark; }
  291. set { _TradeMark = value; }
  292. }
  293. private string _UnitID="";
  294. public string UnitID
  295. {
  296. get { return _UnitID; }
  297. set { _UnitID = value; }
  298. }
  299. private string _UpdateTime="";
  300. public string UpdateTime
  301. {
  302. get { return _UpdateTime; }
  303. set { _UpdateTime = value; }
  304. }
  305. private string _UserID="";
  306. public string UserID
  307. {
  308. get { return _UserID; }
  309. set { _UserID = value; }
  310. }
  311. [ScriptIgnore]
  312. public rsXmlNode DataXMLNode
  313. {
  314. get
  315. {
  316. rsXmlNode loMainNode = new rsXmlNode("viewGoodsRecallLogRecord", "");
  317. rsXmlNode loNode =null;
  318. loNode = new rsXmlNode(cExecutor, Executor);
  319. loMainNode.AddChild(loNode);
  320. loNode = new rsXmlNode(cGoodsName, GoodsName);
  321. loMainNode.AddChild(loNode);
  322. loNode = new rsXmlNode(cID, ID);
  323. loMainNode.AddChild(loNode);
  324. loNode = new rsXmlNode(cMarketID, MarketID);
  325. loMainNode.AddChild(loNode);
  326. loNode = new rsXmlNode(cModelType, ModelType);
  327. loMainNode.AddChild(loNode);
  328. loNode = new rsXmlNode(cProduceBatch, ProduceBatch);
  329. loMainNode.AddChild(loNode);
  330. loNode = new rsXmlNode(cRecallReason, RecallReason);
  331. loMainNode.AddChild(loNode);
  332. loNode = new rsXmlNode(cResult, Result);
  333. loMainNode.AddChild(loNode);
  334. loNode = new rsXmlNode(cSaleCount, SaleCount);
  335. loMainNode.AddChild(loNode);
  336. loNode = new rsXmlNode(cSaleTime, SaleTime);
  337. loMainNode.AddChild(loNode);
  338. loNode = new rsXmlNode(cSellerID, SellerID);
  339. loMainNode.AddChild(loNode);
  340. loNode = new rsXmlNode(cStallName, StallName);
  341. loMainNode.AddChild(loNode);
  342. loNode = new rsXmlNode(cSupplier, Supplier);
  343. loMainNode.AddChild(loNode);
  344. loNode = new rsXmlNode(cTradeMark, TradeMark);
  345. loMainNode.AddChild(loNode);
  346. loNode = new rsXmlNode(cUnitID, UnitID);
  347. loMainNode.AddChild(loNode);
  348. loNode = new rsXmlNode(cUpdateTime, UpdateTime);
  349. loMainNode.AddChild(loNode);
  350. loNode = new rsXmlNode(cUserID, UserID);
  351. loMainNode.AddChild(loNode);
  352. return loMainNode ;
  353. }
  354. }
  355. public string InsertSql()
  356. {
  357. return " insert into "+Tn.viewGoodsRecallLog+" "+
  358. " ("+cExecutor+","+cGoodsName+","+cID+","+cMarketID+","+cModelType+","+cProduceBatch+","+cRecallReason+","+cResult+","+cSaleCount+","+cSaleTime+","+cSellerID+","+cStallName+","+cSupplier+","+cTradeMark+","+cUnitID+","+cUpdateTime+","+cUserID+") "+
  359. " values ('"+_Executor+"','"+_GoodsName+"',"+_ID+",'"+_MarketID+"','"+_ModelType+"','"+_ProduceBatch+"','"+_RecallReason+"','"+_Result+"',"+_SaleCount+",'"+_SaleTime+"',"+_SellerID+",'"+_StallName+"','"+_Supplier+"','"+_TradeMark+"','"+_UnitID+"','"+_UpdateTime+"','"+_UserID+"') " ;
  360. }
  361. public string UpdateSql()
  362. {
  363. return " update "+Tn.viewGoodsRecallLog+" "+
  364. " set "+cExecutor+"='"+_Executor+"',"+cGoodsName+"='"+_GoodsName+"',"+cID+"="+_ID+","+cMarketID+"='"+_MarketID+"',"+cModelType+"='"+_ModelType+"',"+cProduceBatch+"='"+_ProduceBatch+"',"+cRecallReason+"='"+_RecallReason+"',"+cResult+"='"+_Result+"',"+cSaleCount+"="+_SaleCount+","+cSaleTime+"='"+_SaleTime+"',"+cSellerID+"="+_SellerID+","+cStallName+"='"+_StallName+"',"+cSupplier+"='"+_Supplier+"',"+cTradeMark+"='"+_TradeMark+"',"+cUnitID+"='"+_UnitID+"',"+cUpdateTime+"='"+_UpdateTime+"',"+cUserID+"='"+_UserID+"' "+
  365. " where " ;
  366. }
  367. public string DeleteSql()
  368. {
  369. return "Delete "+Tn.viewGoodsRecallLog+" where " ;
  370. }
  371. }
  372. #endregion
  373. #region
  374. public class viewGoodsRecallLog_Qry : rsQuery
  375. {
  376. public String Executor
  377. {
  378. get { return GetString(viewGoodsRecallLog_info.cExecutor); }
  379. // set { SetField(viewGoodsRecallLog_info.cExecutor, value); }
  380. }
  381. public String GoodsName
  382. {
  383. get { return GetString(viewGoodsRecallLog_info.cGoodsName); }
  384. // set { SetField(viewGoodsRecallLog_info.cGoodsName, value); }
  385. }
  386. public Int64 ID
  387. {
  388. get { return GetInt(viewGoodsRecallLog_info.cID); }
  389. // set { SetField(viewGoodsRecallLog_info.cID, value); }
  390. }
  391. public String MarketID
  392. {
  393. get { return GetString(viewGoodsRecallLog_info.cMarketID); }
  394. // set { SetField(viewGoodsRecallLog_info.cMarketID, value); }
  395. }
  396. public String ModelType
  397. {
  398. get { return GetString(viewGoodsRecallLog_info.cModelType); }
  399. // set { SetField(viewGoodsRecallLog_info.cModelType, value); }
  400. }
  401. public String ProduceBatch
  402. {
  403. get { return GetString(viewGoodsRecallLog_info.cProduceBatch); }
  404. // set { SetField(viewGoodsRecallLog_info.cProduceBatch, value); }
  405. }
  406. public String RecallReason
  407. {
  408. get { return GetString(viewGoodsRecallLog_info.cRecallReason); }
  409. // set { SetField(viewGoodsRecallLog_info.cRecallReason, value); }
  410. }
  411. public String Result
  412. {
  413. get { return GetString(viewGoodsRecallLog_info.cResult); }
  414. // set { SetField(viewGoodsRecallLog_info.cResult, value); }
  415. }
  416. public Int64 SaleCount
  417. {
  418. get { return GetInt(viewGoodsRecallLog_info.cSaleCount); }
  419. // set { SetField(viewGoodsRecallLog_info.cSaleCount, value); }
  420. }
  421. public DateTime SaleTime
  422. {
  423. get { return GetDateTime(viewGoodsRecallLog_info.cSaleTime); }
  424. // set { SetField(viewGoodsRecallLog_info.cSaleTime, value); }
  425. }
  426. public Int64 SellerID
  427. {
  428. get { return GetInt(viewGoodsRecallLog_info.cSellerID); }
  429. // set { SetField(viewGoodsRecallLog_info.cSellerID, value); }
  430. }
  431. public String StallName
  432. {
  433. get { return GetString(viewGoodsRecallLog_info.cStallName); }
  434. // set { SetField(viewGoodsRecallLog_info.cStallName, value); }
  435. }
  436. public String Supplier
  437. {
  438. get { return GetString(viewGoodsRecallLog_info.cSupplier); }
  439. // set { SetField(viewGoodsRecallLog_info.cSupplier, value); }
  440. }
  441. public String TradeMark
  442. {
  443. get { return GetString(viewGoodsRecallLog_info.cTradeMark); }
  444. // set { SetField(viewGoodsRecallLog_info.cTradeMark, value); }
  445. }
  446. public String UnitID
  447. {
  448. get { return GetString(viewGoodsRecallLog_info.cUnitID); }
  449. // set { SetField(viewGoodsRecallLog_info.cUnitID, value); }
  450. }
  451. public DateTime UpdateTime
  452. {
  453. get { return GetDateTime(viewGoodsRecallLog_info.cUpdateTime); }
  454. // set { SetField(viewGoodsRecallLog_info.cUpdateTime, value); }
  455. }
  456. public String UserID
  457. {
  458. get { return GetString(viewGoodsRecallLog_info.cUserID); }
  459. // set { SetField(viewGoodsRecallLog_info.cUserID, value); }
  460. }
  461. }
  462. #endregion
  463. }