Ejemplo n.º 1
0
 private void MsgDataBind()
 {
     try
     {
         dt = SellersBLL.GetSellerMsgAccount(txtTitle.Text.Trim(), txt_StartTime.Value, txt_EndTime.Value);
         grdCus.DataSource = dt;
         grdCus.DataBind();
         DataTable tb = SellersBLL.GetUnUsedMsgAccount();
         if (tb != null && tb.Rows.Count == 1)
         {
             lbMsgCount.Text = "剩余短信: " + tb.Rows[0]["totalCount"].ToString() + " 条";;
             lbSpendFee.Text = "未消费成本:" + tb.Rows[0]["spendMoney"].ToString() + " 元";
             DateTime dd = Convert.ToDateTime(dt.Rows[0]["unUseDate"]);
         }
         else
         {
             lbMsgCount.Text = "剩余短信: 0 条";
             lbSpendFee.Text = "未消费成本: 0 元";
         }
     }
     catch (Exception ex)
     {
         ExceptionReporter.WriteLog(ex, ExceptionPostion.TBApply_Web_UI);
     }
 }