您好,欢迎访问三七文档
当前位置:首页 > 金融/证券 > 股票报告 > 基于_NET的股票信息实时查询平台的设计与实现
2009.21DATABASE1,http/javascriptWeb-Service,WindowsForms,System.NetWebClient,sinajs,。2.NET2.0,System.NetSystem.Net.Sockets,1。WebClient,System.Net.Sockets。WebClientWeb。WebClient,WebRequestWebResponseWebFTP,。,WebRequest,Web,GetResponse(),Web,WebResponseWeb。,,WebClientWebRequestWebResponse,System.Net.SocketsTcpListener。TcpListenerTCP,TcpClietn。,HTTPTCP,TCP。UDP,TCPTcpListenerTcpClient,UdpListenerUdpClientUDP。,TCPUDP,System.Net.Sockets。3(:sh601398),,:=sh601398,URL,:Varhq_str_sh601398=“,3.82,3.90,3.80,3.88,3.79,3.80,3.81,296488558,1135178089,1460601,3.80,1786371,3.79,3930400,3.78,2211800,3.77,2713000,3.76,835121,3.81,1237814,3.82,2595756,3.83,1318700,3.84,2231500,3.85,2009-03-06,15:03:31”;,,,0。0:,;1:3.82,;2:3.90,;3:3.80,;4:3.88″,;5:3.79″,;6:3.80″,,;7:3.81″,,;8:296488558″,,,,;.NET:C#.NETWebclient,SQLServer2005,ADO.NET,RDLC。:;RDLC;WebClient;ADO.NET1472009.219:1135178089″,,,,,;10:1460601″,1460601,47;11:3.80″,;12:1786371″,13:3.79″,14:3930400″,15:3.78″,16:2211800″,17:3.77″,18:2713000″,19:3.76″,20:835121″,3100,31;21:3.81″,22:1237814,23:3.82,24:2595756,25:3.83,26:131870027:3.8428:223150029:3.85,30:2009-03-06″,;31:15:03:31″,;,URL,;(601006)(601001),URL:=sh601003,sh601001:varhq_str_sh601003=,4.70,4.80,4.67,4.75,4.60,4.67,4.68,8770786,40954638,1500,4.67,143108,4.66,191000,、4.65,104200,4.64,68200,4.63,27099,4.68,22695,4.69,72722,4.70,39080,4.71,40120,4.72,2009-03-06,15:03:31;varhq_str_sh601001=,14.68,15.00,14.94,15.29,14.46,14.92,14.93,13306776,199227970,3600,14.92,15720,14.91,25909,14.90,2000,14.89,22500,14.88,300,14.93,15971,14.94,110600,14.95,44298,14.96,17600,14.97,2009-03-06,15:03:31;,,(000001),URL:=s_sh000001:varhq_str_s_sh000001=,2193.007,-28.069,-1.26,1238632,10545600;:、、、、()、();URL:=s_sz399001:varhq_str_s_sz399001=,8249.885,7.604,0.09,12432203,1518959;。4RDLC.NETCrystalReport,CrystalReport.NET,,,,CrystalReport。VisualStudio.NET2005CrystalReport,,Microsoft----ReportViewerControl。RDLC,RDLC,RDL(ReportDefinitionLanguage),CClient-sideprocessing,。SQLServer2005(ReportingService),ReportDefinitionLanguage,,rdlc。rdl,rdlc。rdlrdlc,ReportViewer,ReportView.ServerReportrdl,ReportViewer.LocalReportrdlc。VS2005rdlc、、3。(1)。(.rdlc)VisualStudio,DataTable。DataSet,DataTable。IEnumerable,VS2005public。(2)。,,、、、、、、、,、。,,,,,。rdlc,rdlcXML,,rdlc,482009.21DATABASE。rdlcExcel,,Excel,。(3)。ReportViewer,。ReportViewer,、PDFExcel。,CrystalReport,rdlc。5ADO.NETADO.NET.NET,、XML、Excel,,、、Internet。ADO.NETSQLServerXMLOLEDBODBC。ADO.NET,、。(1).NETFramework。System.Data.SqlClient:MicrosoftSQLServer7.0。System.Data.OleDb:OLEDB。System.Data.Odbc:ODBC。System.Data.OracleClient:Oracle.NETFrameworkOracle8.1.7。System.Data.EntityClient:(EDM)。(2).NETFramework4。Connection:。Command:。DataReader:。DataAdapter:DataSet。(3)DataSet,,,XML,。DataSetDataTable、DataTable。2DataSet。System.Data.SqlClientSQLServer2005,,3,:usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.Data.SqlClient;usingSystem.Data;namespacegetStockInfo.sql_code{classsqlDBObject{publicsqlDBObject(){//}//protectedstaticstringmyconstr=DataSource=.;InitialCatalog=stockInfo;PersistSecurityInfo=True;uid=sa;pwd=123456;//sqlCommandExecuteNonQuery//publicstaticintExecuteNonQuery(stringstrSQL){//SQLServerSqlConnectionconn=newSqlConnection(myconstr);//SqlCommandcmd=newSqlCommand(strSQL,conn);try{//conn.Open();//cmdcmd.ExecuteNonQuery();2492009.21return0;}catch(SqlExceptionex){thrownewException(ex.Message);}finally{//cmdcmd.Dispose();//conn.Close();//conn.Dispose();}}//SqlDataReader,//publicstaticSqlDataReaderExecuteReader(stringstrSQL){SqlConnectionconn=newSqlConnection(myconstr);SqlCommandcmd=newSqlCommand(strSQL,conn);try{conn.Open();//SqlDataReader,SqlDataReadermyReader=cmd.ExecuteReader(CommandBehavior.CloseConnection);returnmyReader;}catch(SqlExceptionex){conn.Dispose();thrownewException(ex.Message);}}//DataSetpublicstaticDataSetExecuteDataSet(stringstrSQL){SqlConnectionconn=newSqlConnection(myconstr);try{conn.Open();//SqlDataAdapterSqlDataAdaptersda=newSqlDataAdapter(strSQL,conn);DataSetds=newDataSet();//SqlDataAdapterDataSetsda.Fill(ds);returnds;}catch(SqlExceptionex){thrownewException(ex.Message);}finally{conn.Close();conn.Dispose();}}}}6,,,,,,。,。,,,。,。,,。,。AB,,。:(1)AB。(2)。(3),(、、、、、、、、、、、、、、、、、、、、、、、、、、、),,。77.11。1502009.21DATABASE47.22。7.37.3.13:stockInformation7.3.24:showStock7.4(1)stockInfomationDDLCREATETABLEstockInformation(StockNumvarchar(20)PRIMARYKEYNOTNULL,datedatetimeNOTNULL,stockNamevarchar(20)NOTNULL,todayBeginPricemoney,yesterdayEndPricemoney,nowPricemoney,todayHighestPricemoney,todayLowestPricemoney,exchangeQuantityint,excAmountMoneymoney,buyOnePricemoney,buyOneQuantityint,buyTwoPricemoney,buyTwoQuantityint,buyThreePricemoney,buyThreeQuantityint,buyFourPricemoney,buyFourQuantityint,buyFivePricemoney,buyFiveQuantityint,sellOnePricemoney,sellOneQuantityint,sellTwoPricemoney,sellTwoQuantityint,sellThreePricemoney,sellThreeQuantityint,sellFourPricemoney,sellFourQuantityint,sellFivePricemoney,sellFiveQ
本文标题:基于_NET的股票信息实时查询平台的设计与实现
链接地址:https://www.777doc.com/doc-1140347 .html