123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- using System.Data;
- using SysBaseLibs;
- using System.Web.Script.Serialization;
- namespace SysDataLibs.TableClass
- {
- #region ReserveCompensateLog
- /// <summary>
- /// 先行赔偿
- /// </summary>
- public class ReserveCompensateLog_info : ITableInfo
- {
- #region ReserveCompensateLog表 字段信息
- /// <summary>
- /// 为关键字段: N ;
- /// 自动增长: N;
- /// 数据类型: varchar;
- /// 数据长度: 100;
- /// 是否允许为空: Y;
- /// 默认值: ;
- /// 描述: 消费者;
- /// </summary>
- public const string cConsumer = "Consumer";
- /// <summary>
- /// 为关键字段: N ;
- /// 自动增长: N;
- /// 数据类型: varchar;
- /// 数据长度: 100;
- /// 是否允许为空: Y;
- /// 默认值: ;
- /// 描述: 执行人;
- /// </summary>
- public const string cExecutor = "Executor";
- /// <summary>
- /// 为关键字段: Y --- PrimaryKey;
- /// 自动增长: Y;
- /// 数据类型: int;
- /// 数据长度: 4;
- /// 是否允许为空: N;
- /// 默认值: ;
- /// 描述: 编号;
- /// </summary>
- public const string cID = "ID";
- /// <summary>
- /// 为关键字段: N ;
- /// 自动增长: N;
- /// 数据类型: smalldatetime;
- /// 数据长度: 4;
- /// 是否允许为空: Y;
- /// 默认值: ;
- /// 描述: 记录日期;
- /// </summary>
- public const string cLogDate = "LogDate";
- /// <summary>
- /// 为关键字段: N ;
- /// 自动增长: N;
- /// 数据类型: char;
- /// 数据长度: 10;
- /// 是否允许为空: N;
- /// 默认值: ;
- /// 描述: 市场编号;
- /// </summary>
- public const string cMarketID = "MarketID";
- /// <summary>
- /// 为关键字段: N ;
- /// 自动增长: N;
- /// 数据类型: money;
- /// 数据长度: 8;
- /// 是否允许为空: N;
- /// 默认值: ;
- /// 描述: 发生金额;
- /// </summary>
- public const string cOccurValue = "OccurValue";
- /// <summary>
- /// 为关键字段: N ;
- /// 自动增长: N;
- /// 数据类型: money;
- /// 数据长度: 8;
- /// 是否允许为空: N;
- /// 默认值: ;
- /// 描述: 发生后金额;
- /// </summary>
- public const string cPostBalance = "PostBalance";
- /// <summary>
- /// 为关键字段: N ;
- /// 自动增长: N;
- /// 数据类型: money;
- /// 数据长度: 8;
- /// 是否允许为空: N;
- /// 默认值: ;
- /// 描述: 发生前金额;
- /// </summary>
- public const string cPreBalance = "PreBalance";
- /// <summary>
- /// 为关键字段: N ;
- /// 自动增长: N;
- /// 数据类型: varchar;
- /// 数据长度: 200;
- /// 是否允许为空: Y;
- /// 默认值: ;
- /// 描述: 赔偿理由;
- /// </summary>
- public const string cReason = "Reason";
- /// <summary>
- /// 为关键字段: N ;
- /// 自动增长: N;
- /// 数据类型: nvarchar;
- /// 数据长度: 2000;
- /// 是否允许为空: Y;
- /// 默认值: ;
- /// 描述: 备注;
- /// </summary>
- public const string cRemark = "Remark";
- /// <summary>
- /// 为关键字段: N ;
- /// 自动增长: N;
- /// 数据类型: int;
- /// 数据长度: 4;
- /// 是否允许为空: N;
- /// 默认值: ;
- /// 描述: 先行赔偿类型;
- /// </summary>
- public const string cReserveChangeTypeID = "ReserveChangeTypeID";
- /// <summary>
- /// 为关键字段: N ;
- /// 自动增长: N;
- /// 数据类型: int;
- /// 数据长度: 4;
- /// 是否允许为空: N;
- /// 默认值: ;
- /// 描述: 经营户编号;
- /// </summary>
- public const string cSellerID = "SellerID";
- /// <summary>
- /// 为关键字段: N ;
- /// 自动增长: N;
- /// 数据类型: datetime;
- /// 数据长度: 8;
- /// 是否允许为空: Y;
- /// 默认值: ;
- /// 描述: 更新时间;
- /// </summary>
- public const string cUpdateTime = "UpdateTime";
- /// <summary>
- /// 为关键字段: N ;
- /// 自动增长: N;
- /// 数据类型: varchar;
- /// 数据长度: 30;
- /// 是否允许为空: N;
- /// 默认值: ;
- /// 描述: 用户编号;
- /// </summary>
- public const string cUserID = "UserID";
- #endregion
- public ReserveCompensateLog_info(){}
-
- public ReserveCompensateLog_info(DataRow poRow)
- {
- CreateTableInfo(poRow);
- }
-
- public void CreateTableInfo(DataRow poRow)
- {
- _Consumer=UtilStr.StrFromObj(poRow[cConsumer]);
- _Executor=UtilStr.StrFromObj(poRow[cExecutor]);
- _ID=UtilStr.StrFromObj(poRow[cID]);
- _LogDate=UtilStr.StrFromObj(poRow[cLogDate]);
- _MarketID=UtilStr.StrFromObj(poRow[cMarketID]);
- _OccurValue=UtilStr.StrFromObj(poRow[cOccurValue]);
- _PostBalance=UtilStr.StrFromObj(poRow[cPostBalance]);
- _PreBalance=UtilStr.StrFromObj(poRow[cPreBalance]);
- _Reason=UtilStr.StrFromObj(poRow[cReason]);
- _Remark=UtilStr.StrFromObj(poRow[cRemark]);
- _ReserveChangeTypeID=UtilStr.StrFromObj(poRow[cReserveChangeTypeID]);
- _SellerID=UtilStr.StrFromObj(poRow[cSellerID]);
- _UpdateTime=UtilStr.StrFromObj(poRow[cUpdateTime]);
- _UserID=UtilStr.StrFromObj(poRow[cUserID]);
- }
-
- public ReserveCompensateLog_info( string pcID, DBConnSql poDBConn)
- {
- if ( pcID.Trim().Length > 0 && poDBConn != null)
- {
- string lcSql = "select * from " + Tn.ReserveCompensateLog + " where ID='"+pcID+"'";
- rsQuery loQuery = poDBConn.OpenQuery(lcSql);
- if (loQuery != null && loQuery.IsOpened && loQuery.RecCount == 1)
- {
- loQuery.MoveFirst();
- CreateTableInfo(loQuery.CurrentRow);
- }
- }
- }
- private string _Consumer="";
- public string Consumer
- {
- get { return _Consumer; }
- set { _Consumer = value; }
- }
-
- private string _Executor="";
- public string Executor
- {
- get { return _Executor; }
- set { _Executor = value; }
- }
-
- private string _ID="";
- public string ID
- {
- get { return _ID; }
- set { _ID = value; }
- }
-
- private string _LogDate="";
- public string LogDate
- {
- get { return _LogDate; }
- set { _LogDate = value; }
- }
-
- private string _MarketID="";
- public string MarketID
- {
- get { return _MarketID; }
- set { _MarketID = value; }
- }
-
- private string _OccurValue="";
- public string OccurValue
- {
- get { return _OccurValue; }
- set { _OccurValue = value; }
- }
-
- private string _PostBalance="";
- public string PostBalance
- {
- get { return _PostBalance; }
- set { _PostBalance = value; }
- }
-
- private string _PreBalance="";
- public string PreBalance
- {
- get { return _PreBalance; }
- set { _PreBalance = value; }
- }
-
- private string _Reason="";
- public string Reason
- {
- get { return _Reason; }
- set { _Reason = value; }
- }
-
- private string _Remark="";
- public string Remark
- {
- get { return _Remark; }
- set { _Remark = value; }
- }
-
- private string _ReserveChangeTypeID="";
- public string ReserveChangeTypeID
- {
- get { return _ReserveChangeTypeID; }
- set { _ReserveChangeTypeID = value; }
- }
-
- private string _SellerID="";
- public string SellerID
- {
- get { return _SellerID; }
- set { _SellerID = value; }
- }
-
- private string _UpdateTime="";
- public string UpdateTime
- {
- get { return _UpdateTime; }
- set { _UpdateTime = value; }
- }
-
- private string _UserID="";
- public string UserID
- {
- get { return _UserID; }
- set { _UserID = value; }
- }
-
- [ScriptIgnore]
- public rsXmlNode DataXMLNode
- {
- get
- {
- rsXmlNode loMainNode = new rsXmlNode("ReserveCompensateLogRecord", "");
- rsXmlNode loNode =null;
- loNode = new rsXmlNode(cConsumer, Consumer);
- loMainNode.AddChild(loNode);
- loNode = new rsXmlNode(cExecutor, Executor);
- loMainNode.AddChild(loNode);
- loNode = new rsXmlNode(cID, ID);
- loMainNode.AddChild(loNode);
- loNode = new rsXmlNode(cLogDate, LogDate);
- loMainNode.AddChild(loNode);
- loNode = new rsXmlNode(cMarketID, MarketID);
- loMainNode.AddChild(loNode);
- loNode = new rsXmlNode(cOccurValue, OccurValue);
- loMainNode.AddChild(loNode);
- loNode = new rsXmlNode(cPostBalance, PostBalance);
- loMainNode.AddChild(loNode);
- loNode = new rsXmlNode(cPreBalance, PreBalance);
- loMainNode.AddChild(loNode);
- loNode = new rsXmlNode(cReason, Reason);
- loMainNode.AddChild(loNode);
- loNode = new rsXmlNode(cRemark, Remark);
- loMainNode.AddChild(loNode);
- loNode = new rsXmlNode(cReserveChangeTypeID, ReserveChangeTypeID);
- loMainNode.AddChild(loNode);
- loNode = new rsXmlNode(cSellerID, SellerID);
- loMainNode.AddChild(loNode);
- loNode = new rsXmlNode(cUpdateTime, UpdateTime);
- loMainNode.AddChild(loNode);
- loNode = new rsXmlNode(cUserID, UserID);
- loMainNode.AddChild(loNode);
- return loMainNode ;
- }
- }
- public string InsertSql()
- {
- return " insert into "+Tn.ReserveCompensateLog+" "+
- " ("+cConsumer+","+cExecutor+","+cLogDate+","+cMarketID+","+cOccurValue+","+cPostBalance+","+cPreBalance+","+cReason+","+cRemark+","+cReserveChangeTypeID+","+cSellerID+","+cUpdateTime+","+cUserID+") "+
- " values ('"+_Consumer+"','"+_Executor+"','"+_LogDate+"','"+_MarketID+"',"+_OccurValue+","+_PostBalance+","+_PreBalance+",'"+_Reason+"','"+_Remark+"',"+_ReserveChangeTypeID+","+_SellerID+",'"+_UpdateTime+"','"+_UserID+"') " ;
- }
-
- public string UpdateSql()
- {
- return " update "+Tn.ReserveCompensateLog+" "+
- " set "+cConsumer+"='"+_Consumer+"',"+cExecutor+"='"+_Executor+"',"+cLogDate+"='"+_LogDate+"',"+cMarketID+"='"+_MarketID+"',"+cOccurValue+"="+_OccurValue+","+cPostBalance+"="+_PostBalance+","+cPreBalance+"="+_PreBalance+","+cReason+"='"+_Reason+"',"+cRemark+"='"+_Remark+"',"+cReserveChangeTypeID+"="+_ReserveChangeTypeID+","+cSellerID+"="+_SellerID+","+cUpdateTime+"='"+_UpdateTime+"',"+cUserID+"='"+_UserID+"' "+
- " where "+cID+"="+_ID+"" ;
- }
-
- public string DeleteSql()
- {
- return "Delete "+Tn.ReserveCompensateLog+" where "+cID+"="+_ID+"" ;
- }
- }
- #endregion
- #region
- public class ReserveCompensateLog_Qry : rsQuery
- {
- public String Consumer
- {
- get { return GetString(ReserveCompensateLog_info.cConsumer); }
- // set { SetField(ReserveCompensateLog_info.cConsumer, value); }
- }
-
- public String Executor
- {
- get { return GetString(ReserveCompensateLog_info.cExecutor); }
- // set { SetField(ReserveCompensateLog_info.cExecutor, value); }
- }
-
- public Int64 ID
- {
- get { return GetInt(ReserveCompensateLog_info.cID); }
- // set { SetField(ReserveCompensateLog_info.cID, value); }
- }
-
- public DateTime LogDate
- {
- get { return GetDateTime(ReserveCompensateLog_info.cLogDate); }
- // set { SetField(ReserveCompensateLog_info.cLogDate, value); }
- }
-
- public String MarketID
- {
- get { return GetString(ReserveCompensateLog_info.cMarketID); }
- // set { SetField(ReserveCompensateLog_info.cMarketID, value); }
- }
-
- public Decimal OccurValue
- {
- get { return GetDecimal(ReserveCompensateLog_info.cOccurValue); }
- // set { SetField(ReserveCompensateLog_info.cOccurValue, value); }
- }
-
- public Decimal PostBalance
- {
- get { return GetDecimal(ReserveCompensateLog_info.cPostBalance); }
- // set { SetField(ReserveCompensateLog_info.cPostBalance, value); }
- }
-
- public Decimal PreBalance
- {
- get { return GetDecimal(ReserveCompensateLog_info.cPreBalance); }
- // set { SetField(ReserveCompensateLog_info.cPreBalance, value); }
- }
-
- public String Reason
- {
- get { return GetString(ReserveCompensateLog_info.cReason); }
- // set { SetField(ReserveCompensateLog_info.cReason, value); }
- }
-
- public String Remark
- {
- get { return GetString(ReserveCompensateLog_info.cRemark); }
- // set { SetField(ReserveCompensateLog_info.cRemark, value); }
- }
-
- public Int64 ReserveChangeTypeID
- {
- get { return GetInt(ReserveCompensateLog_info.cReserveChangeTypeID); }
- // set { SetField(ReserveCompensateLog_info.cReserveChangeTypeID, value); }
- }
-
- public Int64 SellerID
- {
- get { return GetInt(ReserveCompensateLog_info.cSellerID); }
- // set { SetField(ReserveCompensateLog_info.cSellerID, value); }
- }
-
- public DateTime UpdateTime
- {
- get { return GetDateTime(ReserveCompensateLog_info.cUpdateTime); }
- // set { SetField(ReserveCompensateLog_info.cUpdateTime, value); }
- }
-
- public String UserID
- {
- get { return GetString(ReserveCompensateLog_info.cUserID); }
- // set { SetField(ReserveCompensateLog_info.cUserID, value); }
- }
-
- }
- #endregion
- }
|