| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- using System.Data;
- namespace Core.StlMes.Client.Sale.SaleFundMgt.Model
- {
- public class SEL_FUND_BUSINESSINFO
- {
- private string _BUSISEQ;
- private string _BUSITYPE;
- private string _BALANCESUBJECT;
- private string _BUYERCODE;
- private string _SECONDACCOUNT;
- private string _PACTNO;
- private double _MONEY;
- private string _IMPORTOR;
- private string _IMPORTTIME;
- private string _REMARK;
- public string BUSISEQ { get { return this._BUSISEQ; } set { this._BUSISEQ = value; } }
- public string BUSITYPE { get { return this._BUSITYPE; } set { this._BUSITYPE = value; } }
- public string BALANCESUBJECT { get { return this._BALANCESUBJECT; } set { this._BALANCESUBJECT = value; } }
- public string BUYERCODE { get { return this._BUYERCODE; } set { this._BUYERCODE = value; } }
- public string SECONDACCOUNT { get { return this._SECONDACCOUNT; } set { this._SECONDACCOUNT = value; } }
- public string PACTNO { get { return this._PACTNO; } set { this._PACTNO = value; } }
- public double MONEY { get { return this._MONEY; } set { this._MONEY = value; } }
- public string IMPORTOR { get { return this._IMPORTOR; } set { this._IMPORTOR = value; } }
- public string IMPORTTIME { get { return this._IMPORTTIME; } set { this._IMPORTTIME = value; } }
- public string REMARK { get { return this._REMARK; } set { this._REMARK = value; } }
- public SEL_FUND_BUSINESSINFO()
- {
- }
- public SEL_FUND_BUSINESSINFO(string busiseq,string busitype,string balancesubject,string buyercode,string secondacct,string pactno,
- double money,string importor,string importtime,string remark)
- {
- this.BUSISEQ = busiseq;
- this.BUSITYPE = busitype;
- this.BALANCESUBJECT = balancesubject;
- this.BUYERCODE = buyercode;
- this.SECONDACCOUNT = secondacct;
- this.PACTNO = pactno;
- this.MONEY = money;
- this.IMPORTOR = importor;
- this.IMPORTTIME = importtime;
- this.REMARK = remark;
- }
- public SEL_FUND_BUSINESSINFO(string busiseq, string busitype,string importor, string importtime, string remark)
- {
- this.BUSISEQ = busiseq;
- this.BUSITYPE = busitype;
- this.BALANCESUBJECT = "";
- this.BUYERCODE = "";
- this.SECONDACCOUNT = "";
- this.PACTNO = "";
- this.MONEY = 0;
- this.IMPORTOR = importor;
- this.IMPORTTIME = importtime;
- this.REMARK = remark;
- }
- public static SEL_FUND_BUSINESSINFO GetSelFundBusinessInfo(DataRow dr)
- {
- if (dr == null)
- return null;
- SEL_FUND_BUSINESSINFO fund = new SEL_FUND_BUSINESSINFO();
- try { fund.BUSISEQ = Convert.ToString(dr["BUSISEQ"]); }
- catch { }
- try { fund.BUSITYPE = Convert.ToString(dr["BUSITYPE"]); }
- catch { }
- try { fund.BALANCESUBJECT = Convert.ToString(dr["BALANCESUBJECT"]); }
- catch { }
- try { fund.BUYERCODE = Convert.ToString(dr["BUYERCODE"]); }
- catch { }
- try { fund.SECONDACCOUNT = Convert.ToString(dr["SECONDACCOUNT"]); }
- catch { }
- try { fund.PACTNO = Convert.ToString(dr["PACTNO"]); }
- catch { }
- try { fund.MONEY = Convert.ToDouble(dr["MONEY"]); }
- catch { }
- try { fund.IMPORTOR = Convert.ToString(dr["IMPORTOR"]); }
- catch { }
- try { fund.IMPORTTIME = Convert.ToString(dr["IMPORTTIME"]); }
- catch { }
- try { fund.REMARK = Convert.ToString(dr["REMARK"]); }
- catch { }
- return fund;
- }
- public static List<SEL_FUND_BUSINESSINFO> GetSelFundBusinessInfoList(DataSet ds)
- {
- if (Util.DataSetUtil.Count(ds) == 0)
- return null;
- List<SEL_FUND_BUSINESSINFO> list = new List<SEL_FUND_BUSINESSINFO>();
- foreach (DataRow dr in ds.Tables[0].Rows)
- {
- list.Add(GetSelFundBusinessInfo(dr));
- }
- return list;
- }
- }
- }
|