private void CreditDeal() { DataBase db = new DataBase(MyFunc.GetConnStr(2)); switch (this.reportType.ToLower()) { case "ledger": this.ShowCreditContent(db); this.tableMiddle.Rows[1].Cells[0].InnerHtml = MyFunc.GuodanContent("股东", this.startTime, this.endTime, this.pathStr, db); this.tableBottom.Visible = false; break; case "breakdown": this.ShowCreditPartContent(db); this.tableMiddle.Visible = false; this.tableBottom.Visible = false; break; } db.CloseConnect(); db.Dispose(); }