Esempio n. 1
0
    public DataTable GetChinaBondList(string code)
    {
        CHServiceClient client = new CHServiceClient();

        if (code.Contains(","))
        {
            return(client.GetChinaBondsList(code).Tables[0]);
        }
        else
        {
            return(client.GetChinaBondList(code, null).Tables[0]);
        }
    }
Esempio n. 2
0
 public DataTable GetActiveBondList()
 {
     try
     {
         DataTable       dtBondList;
         CHServiceClient client = new CHServiceClient();
         dtBondList = client.GetChinaBondList(null, null).Tables[0];
         dtBondList.DefaultView.RowFilter = "b_info_maturitydate >='" + DateTime.Today.ToString("yyyyMMdd") + "'";
         dtBondList = dtBondList.DefaultView.ToTable();
         return(dtBondList);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }