public override ServicesTypeModel[] GetModel(string strWhere, DB_OPT dbo)
 {
     StringBuilder builder = new StringBuilder();
     builder.Append("select PK,BH,Name from gov_tc_db_ServicesType ");
     if (strWhere != "")
     {
         builder.Append(" where " + strWhere);
     }
     DataSet set = dbo.BackDataSet(builder.ToString(), null);
     ServicesTypeModel[] modelArray = null;
     if (set.Tables[0].Rows.Count <= 0)
     {
         return null;
     }
     modelArray = new ServicesTypeModel[set.Tables[0].Rows.Count];
     for (int i = 0; i < set.Tables[0].Rows.Count; i++)
     {
         modelArray[i] = new ServicesTypeModel();
         modelArray[i] = this.GetModel(set.Tables[0].Rows[i]);
     }
     return modelArray;
 }
Exemple #2
0
 public bool checkServiceType(string strWhere)
 {
     this.stm = new ServicesTypeDal();
     this.dbo = new DB_OPT();
     return (this.stm.GetList(strWhere, this.dbo).Tables[0].Rows.Count > 0);
 }