123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- using System.Data;
- using SysBaseLibs;
- using System.Web.Script.Serialization;
- namespace SysDataLibs.TableClass
- {
- #region vwMarketWrntDueExpireCalc
- public class vwMarketWrntDueExpireCalc_info : ITableInfo
- {
- #region vwMarketWrntDueExpireCalc表 字段信息
- /// <summary>
- /// 为关键字段: N ;
- /// 自动增长: N;
- /// 数据类型: varchar;
- /// 数据长度: 15;
- /// 是否允许为空: N;
- /// 默认值: ;
- /// 描述: MarketId;
- /// </summary>
- public const string cMarketId = "MarketId";
- /// <summary>
- /// 为关键字段: N ;
- /// 自动增长: N;
- /// 数据类型: nvarchar;
- /// 数据长度: 400;
- /// 是否允许为空: N;
- /// 默认值: ;
- /// 描述: MarketName;
- /// </summary>
- public const string cMarketName = "MarketName";
- /// <summary>
- /// 为关键字段: N ;
- /// 自动增长: N;
- /// 数据类型: int;
- /// 数据长度: 4;
- /// 是否允许为空: N;
- /// 默认值: ;
- /// 描述: MDueCnt;
- /// </summary>
- public const string cMDueCnt = "MDueCnt";
- /// <summary>
- /// 为关键字段: N ;
- /// 自动增长: N;
- /// 数据类型: int;
- /// 数据长度: 4;
- /// 是否允许为空: N;
- /// 默认值: ;
- /// 描述: MExpireCnt;
- /// </summary>
- public const string cMExpireCnt = "MExpireCnt";
- /// <summary>
- /// 为关键字段: N ;
- /// 自动增长: N;
- /// 数据类型: varchar;
- /// 数据长度: 50;
- /// 是否允许为空: N;
- /// 默认值: ;
- /// 描述: WarrantName;
- /// </summary>
- public const string cWarrantName = "WarrantName";
- /// <summary>
- /// 为关键字段: N ;
- /// 自动增长: N;
- /// 数据类型: int;
- /// 数据长度: 4;
- /// 是否允许为空: N;
- /// 默认值: ;
- /// 描述: WarrantTypeId;
- /// </summary>
- public const string cWarrantTypeId = "WarrantTypeId";
- #endregion
- public vwMarketWrntDueExpireCalc_info(){}
-
- public vwMarketWrntDueExpireCalc_info(DataRow poRow)
- {
- CreateTableInfo(poRow);
- }
-
- public void CreateTableInfo(DataRow poRow)
- {
- _MarketId=UtilStr.StrFromObj(poRow[cMarketId]);
- _MarketName=UtilStr.StrFromObj(poRow[cMarketName]);
- _MDueCnt=UtilStr.StrFromObj(poRow[cMDueCnt]);
- _MExpireCnt=UtilStr.StrFromObj(poRow[cMExpireCnt]);
- _WarrantName=UtilStr.StrFromObj(poRow[cWarrantName]);
- _WarrantTypeId=UtilStr.StrFromObj(poRow[cWarrantTypeId]);
- }
-
- private string _MarketId="";
- public string MarketId
- {
- get { return _MarketId; }
- set { _MarketId = value; }
- }
-
- private string _MarketName="";
- public string MarketName
- {
- get { return _MarketName; }
- set { _MarketName = value; }
- }
-
- private string _MDueCnt="";
- public string MDueCnt
- {
- get { return _MDueCnt; }
- set { _MDueCnt = value; }
- }
-
- private string _MExpireCnt="";
- public string MExpireCnt
- {
- get { return _MExpireCnt; }
- set { _MExpireCnt = value; }
- }
-
- private string _WarrantName="";
- public string WarrantName
- {
- get { return _WarrantName; }
- set { _WarrantName = value; }
- }
-
- private string _WarrantTypeId="";
- public string WarrantTypeId
- {
- get { return _WarrantTypeId; }
- set { _WarrantTypeId = value; }
- }
-
- [ScriptIgnore]
- public rsXmlNode DataXMLNode
- {
- get
- {
- rsXmlNode loMainNode = new rsXmlNode("vwMarketWrntDueExpireCalcRecord", "");
- rsXmlNode loNode =null;
- loNode = new rsXmlNode(cMarketId, MarketId);
- loMainNode.AddChild(loNode);
- loNode = new rsXmlNode(cMarketName, MarketName);
- loMainNode.AddChild(loNode);
- loNode = new rsXmlNode(cMDueCnt, MDueCnt);
- loMainNode.AddChild(loNode);
- loNode = new rsXmlNode(cMExpireCnt, MExpireCnt);
- loMainNode.AddChild(loNode);
- loNode = new rsXmlNode(cWarrantName, WarrantName);
- loMainNode.AddChild(loNode);
- loNode = new rsXmlNode(cWarrantTypeId, WarrantTypeId);
- loMainNode.AddChild(loNode);
- return loMainNode ;
- }
- }
- public string InsertSql()
- {
- return " insert into "+Tn.vwMarketWrntDueExpireCalc+" "+
- " ("+cMarketId+","+cMarketName+","+cMDueCnt+","+cMExpireCnt+","+cWarrantName+","+cWarrantTypeId+") "+
- " values ('"+_MarketId+"','"+_MarketName+"',"+_MDueCnt+","+_MExpireCnt+",'"+_WarrantName+"',"+_WarrantTypeId+") " ;
- }
-
- public string UpdateSql()
- {
- return " update "+Tn.vwMarketWrntDueExpireCalc+" "+
- " set "+cMarketId+"='"+_MarketId+"',"+cMarketName+"='"+_MarketName+"',"+cMDueCnt+"="+_MDueCnt+","+cMExpireCnt+"="+_MExpireCnt+","+cWarrantName+"='"+_WarrantName+"',"+cWarrantTypeId+"="+_WarrantTypeId+" "+
- " where " ;
- }
-
- public string DeleteSql()
- {
- return "Delete "+Tn.vwMarketWrntDueExpireCalc+" where " ;
- }
- }
- #endregion
- #region
- public class vwMarketWrntDueExpireCalc_Qry : rsQuery
- {
- public String MarketId
- {
- get { return GetString(vwMarketWrntDueExpireCalc_info.cMarketId); }
- // set { SetField(vwMarketWrntDueExpireCalc_info.cMarketId, value); }
- }
-
- public String MarketName
- {
- get { return GetString(vwMarketWrntDueExpireCalc_info.cMarketName); }
- // set { SetField(vwMarketWrntDueExpireCalc_info.cMarketName, value); }
- }
-
- public Int64 MDueCnt
- {
- get { return GetInt(vwMarketWrntDueExpireCalc_info.cMDueCnt); }
- // set { SetField(vwMarketWrntDueExpireCalc_info.cMDueCnt, value); }
- }
-
- public Int64 MExpireCnt
- {
- get { return GetInt(vwMarketWrntDueExpireCalc_info.cMExpireCnt); }
- // set { SetField(vwMarketWrntDueExpireCalc_info.cMExpireCnt, value); }
- }
-
- public String WarrantName
- {
- get { return GetString(vwMarketWrntDueExpireCalc_info.cWarrantName); }
- // set { SetField(vwMarketWrntDueExpireCalc_info.cWarrantName, value); }
- }
-
- public Int64 WarrantTypeId
- {
- get { return GetInt(vwMarketWrntDueExpireCalc_info.cWarrantTypeId); }
- // set { SetField(vwMarketWrntDueExpireCalc_info.cWarrantTypeId, value); }
- }
-
- }
- #endregion
- }
|