Exemple #1
0
 /// </summary>
 ///Query 方法 dt查询结果
 /// </summary>
 public System.Collections.IList Query(System.Data.DataTable dt)
 {
     System.Collections.IList result = new System.Collections.ArrayList();
     foreach (System.Data.DataRow dr in dt.Rows)
     {
         project.Entity.Base.EntityServiceProvider entity = new project.Entity.Base.EntityServiceProvider();
         entity.SPNo            = dr["SPNo"].ToString();
         entity.SPName          = dr["SPName"].ToString();
         entity.SPShortName     = dr["SPShortName"].ToString();
         entity.MService        = dr["MService"].ToString();
         entity.MServiceName    = dr["SRVTypeName"].ToString();
         entity.SPLicenseNo     = dr["SPLicenseNo"].ToString();
         entity.SPContact       = dr["SPContact"].ToString();
         entity.SPContactMobile = dr["SPContactMobile"].ToString();
         entity.SPTel           = dr["SPTel"].ToString();
         entity.SPEMail         = dr["SPEMail"].ToString();
         entity.SPAddr          = dr["SPAddr"].ToString();
         entity.SPBank          = dr["SPBank"].ToString();
         entity.SPBankAccount   = dr["SPBankAccount"].ToString();
         entity.SPBankTitle     = dr["SPBankTitle"].ToString();
         entity.SPStatus        = bool.Parse(dr["SPStatus"].ToString());
         entity.U8Account       = dr["U8Account"].ToString();
         entity.BankAccount     = dr["BankAccount"].ToString();
         entity.CashAccount     = dr["CashAccount"].ToString();
         entity.TaxAccount      = dr["TaxAccount"].ToString();
         result.Add(entity);
     }
     return(result);
 }
Exemple #2
0
 /// <summary>
 /// 带参数的构函数
 /// </summary>
 /// <param name="entity">实体类</param>
 public BusinessServiceProvider(project.Entity.Base.EntityServiceProvider entity)
 {
     this._entity = entity;
 }