123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- using System.Data;
- using SysBaseLibs;
- using System.Web.Script.Serialization;
- namespace SysDataLibs.TableClass
- {
- #region vwSpecialsGoods
- public class vwSpecialsGoods_info : ITableInfo
- {
- #region vwSpecialsGoods表 字段信息
- /// <summary>
- /// 为关键字段: N ;
- /// 自动增长: N;
- /// 数据类型: varchar;
- /// 数据长度: 20;
- /// 是否允许为空: Y;
- /// 默认值: ;
- /// 描述: GreatKindID;
- /// </summary>
- public const string cGreatKindID = "GreatKindID";
- /// <summary>
- /// 为关键字段: N ;
- /// 自动增长: N;
- /// 数据类型: varchar;
- /// 数据长度: 20;
- /// 是否允许为空: Y;
- /// 默认值: ;
- /// 描述: GreatKindName;
- /// </summary>
- public const string cGreatKindName = "GreatKindName";
- /// <summary>
- /// 为关键字段: N ;
- /// 自动增长: N;
- /// 数据类型: int;
- /// 数据长度: 4;
- /// 是否允许为空: Y;
- /// 默认值: ;
- /// 描述: IsVeg;
- /// </summary>
- public const string cIsVeg = "IsVeg";
- /// <summary>
- /// 为关键字段: N ;
- /// 自动增长: N;
- /// 数据类型: varchar;
- /// 数据长度: 20;
- /// 是否允许为空: Y;
- /// 默认值: ;
- /// 描述: LittleKindID;
- /// </summary>
- public const string cLittleKindID = "LittleKindID";
- /// <summary>
- /// 为关键字段: N ;
- /// 自动增长: N;
- /// 数据类型: varchar;
- /// 数据长度: 20;
- /// 是否允许为空: Y;
- /// 默认值: ;
- /// 描述: LittleKindName;
- /// </summary>
- public const string cLittleKindName = "LittleKindName";
- /// <summary>
- /// 为关键字段: N ;
- /// 自动增长: N;
- /// 数据类型: int;
- /// 数据长度: 4;
- /// 是否允许为空: N;
- /// 默认值: ;
- /// 描述: SortNumber;
- /// </summary>
- public const string cSortNumber = "SortNumber";
- /// <summary>
- /// 为关键字段: N ;
- /// 自动增长: N;
- /// 数据类型: varchar;
- /// 数据长度: 20;
- /// 是否允许为空: N;
- /// 默认值: ;
- /// 描述: SpecialsID;
- /// </summary>
- public const string cSpecialsID = "SpecialsID";
- /// <summary>
- /// 为关键字段: N ;
- /// 自动增长: N;
- /// 数据类型: varchar;
- /// 数据长度: 20;
- /// 是否允许为空: N;
- /// 默认值: ;
- /// 描述: SpecialsName;
- /// </summary>
- public const string cSpecialsName = "SpecialsName";
- #endregion
- public vwSpecialsGoods_info(){}
-
- public vwSpecialsGoods_info(DataRow poRow)
- {
- CreateTableInfo(poRow);
- }
-
- public void CreateTableInfo(DataRow poRow)
- {
- _GreatKindID=UtilStr.StrFromObj(poRow[cGreatKindID]);
- _GreatKindName=UtilStr.StrFromObj(poRow[cGreatKindName]);
- _IsVeg=UtilStr.StrFromObj(poRow[cIsVeg]);
- _LittleKindID=UtilStr.StrFromObj(poRow[cLittleKindID]);
- _LittleKindName=UtilStr.StrFromObj(poRow[cLittleKindName]);
- _SortNumber=UtilStr.StrFromObj(poRow[cSortNumber]);
- _SpecialsID=UtilStr.StrFromObj(poRow[cSpecialsID]);
- _SpecialsName=UtilStr.StrFromObj(poRow[cSpecialsName]);
- }
-
- private string _GreatKindID="";
- public string GreatKindID
- {
- get { return _GreatKindID; }
- set { _GreatKindID = value; }
- }
-
- private string _GreatKindName="";
- public string GreatKindName
- {
- get { return _GreatKindName; }
- set { _GreatKindName = value; }
- }
-
- private string _IsVeg="";
- public string IsVeg
- {
- get { return _IsVeg; }
- set { _IsVeg = value; }
- }
-
- private string _LittleKindID="";
- public string LittleKindID
- {
- get { return _LittleKindID; }
- set { _LittleKindID = value; }
- }
-
- private string _LittleKindName="";
- public string LittleKindName
- {
- get { return _LittleKindName; }
- set { _LittleKindName = value; }
- }
-
- private string _SortNumber="";
- public string SortNumber
- {
- get { return _SortNumber; }
- set { _SortNumber = value; }
- }
-
- private string _SpecialsID="";
- public string SpecialsID
- {
- get { return _SpecialsID; }
- set { _SpecialsID = value; }
- }
-
- private string _SpecialsName="";
- public string SpecialsName
- {
- get { return _SpecialsName; }
- set { _SpecialsName = value; }
- }
-
- [ScriptIgnore]
- public rsXmlNode DataXMLNode
- {
- get
- {
- rsXmlNode loMainNode = new rsXmlNode("vwSpecialsGoodsRecord", "");
- rsXmlNode loNode =null;
- loNode = new rsXmlNode(cGreatKindID, GreatKindID);
- loMainNode.AddChild(loNode);
- loNode = new rsXmlNode(cGreatKindName, GreatKindName);
- loMainNode.AddChild(loNode);
- loNode = new rsXmlNode(cIsVeg, IsVeg);
- loMainNode.AddChild(loNode);
- loNode = new rsXmlNode(cLittleKindID, LittleKindID);
- loMainNode.AddChild(loNode);
- loNode = new rsXmlNode(cLittleKindName, LittleKindName);
- loMainNode.AddChild(loNode);
- loNode = new rsXmlNode(cSortNumber, SortNumber);
- loMainNode.AddChild(loNode);
- loNode = new rsXmlNode(cSpecialsID, SpecialsID);
- loMainNode.AddChild(loNode);
- loNode = new rsXmlNode(cSpecialsName, SpecialsName);
- loMainNode.AddChild(loNode);
- return loMainNode ;
- }
- }
- public string InsertSql()
- {
- return " insert into "+Tn.vwSpecialsGoods+" "+
- " ("+cGreatKindID+","+cGreatKindName+","+cIsVeg+","+cLittleKindID+","+cLittleKindName+","+cSortNumber+","+cSpecialsID+","+cSpecialsName+") "+
- " values ('"+_GreatKindID+"','"+_GreatKindName+"',"+_IsVeg+",'"+_LittleKindID+"','"+_LittleKindName+"',"+_SortNumber+",'"+_SpecialsID+"','"+_SpecialsName+"') " ;
- }
-
- public string UpdateSql()
- {
- return " update "+Tn.vwSpecialsGoods+" "+
- " set "+cGreatKindID+"='"+_GreatKindID+"',"+cGreatKindName+"='"+_GreatKindName+"',"+cIsVeg+"="+_IsVeg+","+cLittleKindID+"='"+_LittleKindID+"',"+cLittleKindName+"='"+_LittleKindName+"',"+cSortNumber+"="+_SortNumber+","+cSpecialsID+"='"+_SpecialsID+"',"+cSpecialsName+"='"+_SpecialsName+"' "+
- " where " ;
- }
-
- public string DeleteSql()
- {
- return "Delete "+Tn.vwSpecialsGoods+" where " ;
- }
- }
- #endregion
- #region
- public class vwSpecialsGoods_Qry : rsQuery
- {
- public String GreatKindID
- {
- get { return GetString(vwSpecialsGoods_info.cGreatKindID); }
- // set { SetField(vwSpecialsGoods_info.cGreatKindID, value); }
- }
-
- public String GreatKindName
- {
- get { return GetString(vwSpecialsGoods_info.cGreatKindName); }
- // set { SetField(vwSpecialsGoods_info.cGreatKindName, value); }
- }
-
- public Int64 IsVeg
- {
- get { return GetInt(vwSpecialsGoods_info.cIsVeg); }
- // set { SetField(vwSpecialsGoods_info.cIsVeg, value); }
- }
-
- public String LittleKindID
- {
- get { return GetString(vwSpecialsGoods_info.cLittleKindID); }
- // set { SetField(vwSpecialsGoods_info.cLittleKindID, value); }
- }
-
- public String LittleKindName
- {
- get { return GetString(vwSpecialsGoods_info.cLittleKindName); }
- // set { SetField(vwSpecialsGoods_info.cLittleKindName, value); }
- }
-
- public Int64 SortNumber
- {
- get { return GetInt(vwSpecialsGoods_info.cSortNumber); }
- // set { SetField(vwSpecialsGoods_info.cSortNumber, value); }
- }
-
- public String SpecialsID
- {
- get { return GetString(vwSpecialsGoods_info.cSpecialsID); }
- // set { SetField(vwSpecialsGoods_info.cSpecialsID, value); }
- }
-
- public String SpecialsName
- {
- get { return GetString(vwSpecialsGoods_info.cSpecialsName); }
- // set { SetField(vwSpecialsGoods_info.cSpecialsName, value); }
- }
-
- }
- #endregion
- }
|