/// <summary> /// 构造函数 /// </summary> /// <param name="connection">数据连接</param> public BSendNotesListBC(SqlConnection connection) { this.connection = connection; this.sendNotesListBB = new BSendNotesListBB(this.connection); this.errorDiaryBB = new SErrorDiaryBB(this.connection); this.operatDiaryBB = new SOperatDiaryBB(this.connection); this.commBB = new SCommBB(this.connection); }
/// <summary> /// 构造函数 /// </summary> public BSendNotesListBC() { this.selfConn = true; this.connection = new SqlConnection(HS.Config.SqlDataObject.GetSqlConnectionString); this.connection.Open(); this.sendNotesListBB = new BSendNotesListBB(this.connection); this.errorDiaryBB = new SErrorDiaryBB(this.connection); this.operatDiaryBB = new SOperatDiaryBB(this.connection); this.commBB = new SCommBB(this.connection); }