示例#1
0
        public DataSet GetHedgeFunds()
        {
            List <ProcedureParameter> paraList = new List <ProcedureParameter>();

            paraList.Add(new ProcedureParameter("o_cursor", ProcedureParameter.DBType.Cursor, ParameterDirection.Output));
            return(DBInstanceFactory.GetDBInstance().ExecuteStoredProcedure("db1_proc_selecthedgefund", paraList));
        }
示例#2
0
        public DataSet GetPortfolioBenchmarks(string portfolioCode)
        {
            List <ProcedureParameter> paraList = new List <ProcedureParameter>();

            paraList.Add(new ProcedureParameter("i_fundcode", ProcedureParameter.DBType.NVarChar, ParameterDirection.Input, portfolioCode));
            paraList.Add(new ProcedureParameter("o_cursor", ProcedureParameter.DBType.Cursor, ParameterDirection.Output));
            return(DBInstanceFactory.GetDBInstance().ExecuteStoredProcedure("db5_proc_selectbenchmarklist", paraList));
        }
示例#3
0
        public DataSet GetWebConfigsByProject(string project)
        {
            List <ProcedureParameter> paraList = new List <ProcedureParameter>();

            paraList.Add(new ProcedureParameter("i_project", project));
            paraList.Add(new ProcedureParameter("o_cursor", ProcedureParameter.DBType.Cursor, ParameterDirection.Output));

            return(DBInstanceFactory.GetDBInstance().ExecuteStoredProcedure("db0_proc_selectwebconfig", paraList));
        }
示例#4
0
        public DataSet GetCategoryList()
        {
            try
            {
                List <ProcedureParameter> paraList = new List <ProcedureParameter>();
                paraList.Add(new ProcedureParameter("o_cursor", ProcedureParameter.DBType.Cursor, ParameterDirection.Output));

                return(DBInstanceFactory.GetDBInstance().ExecuteStoredProcedure("db3_proc_selectcategory", paraList));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
示例#5
0
        public DataSet GetReportByDate(DateTime reportDate)
        {
            try
            {
                List <ProcedureParameter> paraList = new List <ProcedureParameter>();
                paraList.Add(new ProcedureParameter("i_reportdate", reportDate.ToString("yyyyMMdd")));
                paraList.Add(new ProcedureParameter("o_cursor", ProcedureParameter.DBType.Cursor, ParameterDirection.Output));

                return(DBInstanceFactory.GetDBInstance().ExecuteStoredProcedure("db3_proc_selectmeetingreport", paraList));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
示例#6
0
        public DataSet GetHS300Weight(DateTime endDate)
        {
            try
            {
                List <ProcedureParameter> paraList = new List <ProcedureParameter>();
                paraList.Add(new ProcedureParameter("i_date", endDate.ToString("yyyyMMdd")));
                paraList.Add(new ProcedureParameter("o_cursor", ProcedureParameter.DBType.Cursor, ParameterDirection.Output));

                return(DBInstanceFactory.GetDBInstance().ExecuteStoredProcedure("mkt_proc_selecths300weight", paraList));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
示例#7
0
 public DataSet GetTradingDays(DateTime startDate, DateTime endDate)
 {
     try
     {
         List <ProcedureParameter> paraList = new List <ProcedureParameter>();
         paraList.Add(new ProcedureParameter("o_cursor", ProcedureParameter.DBType.Cursor, ParameterDirection.Output));
         paraList.Add(new ProcedureParameter("i_startdate", ProcedureParameter.DBType.NVarChar, ParameterDirection.Input, startDate.ToString("yyyyMMdd")));
         paraList.Add(new ProcedureParameter("i_enddate", ProcedureParameter.DBType.NVarChar, ParameterDirection.Input, endDate.ToString("yyyyMMdd")));
         return(DBInstanceFactory.GetDBInstance().ExecuteStoredProcedure("mkt_proc_selecttradedays", paraList));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
示例#8
0
        public DataSet GetFreeFloatCapital(DateTime endDate, string code)
        {
            try
            {
                List <ProcedureParameter> paraList = new List <ProcedureParameter>();
                paraList.Add(new ProcedureParameter("i_date", endDate.ToString("yyyyMMdd")));
                paraList.Add(new ProcedureParameter("i_code", code));
                paraList.Add(new ProcedureParameter("o_cursor", ProcedureParameter.DBType.Cursor, ParameterDirection.Output));

                return(DBInstanceFactory.GetDBInstance().ExecuteStoredProcedure("mkt_proc_selectfreecapital", paraList));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
示例#9
0
        public DataSet GetChinaBondList(string code, string exchange)
        {
            try
            {
                List <ProcedureParameter> paraList = new List <ProcedureParameter>();
                paraList.Add(new ProcedureParameter("i_exchange", exchange));
                paraList.Add(new ProcedureParameter("i_code", code));
                paraList.Add(new ProcedureParameter("o_cursor", ProcedureParameter.DBType.Cursor, ParameterDirection.Output));

                return(DBInstanceFactory.GetDBInstance().ExecuteStoredProcedure("mkt_proc_selectchinabondlist", paraList));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
示例#10
0
        public DataSet GetSearchResult(DateTime startDate, DateTime endDate, string keyword)
        {
            try
            {
                List <ProcedureParameter> paraList = new List <ProcedureParameter>();
                paraList.Add(new ProcedureParameter("i_startdate", startDate.ToString("yyyyMMdd")));
                paraList.Add(new ProcedureParameter("i_enddate", endDate.ToString("yyyyMMdd")));
                paraList.Add(new ProcedureParameter("i_keyword", keyword));
                paraList.Add(new ProcedureParameter("o_cursor", ProcedureParameter.DBType.Cursor, ParameterDirection.Output));

                return(DBInstanceFactory.GetDBInstance().ExecuteStoredProcedure("db3_proc_selectreportbykey", paraList));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
示例#11
0
        public DataSet GetStockPrices(DateTime startDate, DateTime endDate, string code)
        {
            try
            {
                List <ProcedureParameter> paraList = new List <ProcedureParameter>();
                paraList.Add(new ProcedureParameter("i_startdate", startDate.ToString("yyyyMMdd")));
                paraList.Add(new ProcedureParameter("i_enddate", endDate.ToString("yyyyMMdd")));
                paraList.Add(new ProcedureParameter("i_code", code));
                paraList.Add(new ProcedureParameter("o_cursor", ProcedureParameter.DBType.Cursor, ParameterDirection.Output));

                return(DBInstanceFactory.GetDBInstance().ExecuteStoredProcedure("mkt_proc_selectequityprices", paraList));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
示例#12
0
        public long SubmitReport(DateTime submitDate, int categoryId, string keywords, string content)
        {
            try
            {
                Int64 newId = 0;

                List <ProcedureParameter> paraList = new List <ProcedureParameter>();
                paraList.Add(new ProcedureParameter("i_reportdate", submitDate.ToString("yyyyMMdd")));
                paraList.Add(new ProcedureParameter("i_categoryid", categoryId));
                paraList.Add(new ProcedureParameter("i_keywords", keywords));
                paraList.Add(new ProcedureParameter("i_content", ProcedureParameter.DBType.NClob, ParameterDirection.Input, content));
                paraList.Add(new ProcedureParameter("o_insertid", ProcedureParameter.DBType.BigInt, ParameterDirection.Output));

                newId = Convert.ToInt64(DBInstanceFactory.GetDBInstance().ExecuteNonQuery("db3_proc_updatemeetingreport", paraList, "o_insertid"));

                return(newId);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
示例#13
0
        public string GetReportTitle()
        {
            try
            {
                string title = "";

                List <ProcedureParameter> paraList = new List <ProcedureParameter>();
                ProcedureParameter        para     = new ProcedureParameter();
                para.Name      = "o_title";
                para.Size      = 100;
                para.Type      = ProcedureParameter.DBType.NVarChar;
                para.Direction = ParameterDirection.Output;
                paraList.Add(para);

                title = DBInstanceFactory.GetDBInstance().ExecuteNonQuery("db3_proc_selecttitle", paraList, "o_title").ToString();

                return(title);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
示例#14
0
 DataSet IDBService.ExecuteStoredProcedure(string procedureName, List <ProcedureParameter> procedureParameter)
 {
     return(DBInstanceFactory.GetDBInstance().ExecuteStoredProcedure(procedureName, procedureParameter));
 }
示例#15
0
 public DataSet ExecuteSQL(string sql)
 {
     return(DBInstanceFactory.GetDBInstance().ExecuteSQL(sql));
 }
示例#16
0
 public object ExecuteNonQuery(string procedureName, List <ProcedureParameter> procedureParameter, string outputParameterName)
 {
     return(DBInstanceFactory.GetDBInstance().ExecuteNonQuery(procedureName, procedureParameter, outputParameterName));
 }