资源简介
Wind量化接口培训C#(PPT和例子代码)
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WAPIWrapperCSharp;
namespace WindCommon
{
class WindDataMethod
{
public static string WindDataToString(WindData wd string strFuncName)
{
if (null == wd)
return string.Empty;
string s = string.Empty;
string str = string.Empty;
//请求出错,获取错误信息
if (wd.errorCode != 0)
{
s += wd.GetErrorMsg() + Environment.NewLine;
return s;
}
if (null != wd.codeList)
{
s += “Windcode = “ + Environment.NewLine;
foreach (String code in wd.codeList)
s += “ “ + code + “\t“;
s += Environment.NewLine;
}
if (null != wd.fieldList)
{
s += “Indicators = “ + Environment.NewLine;
foreach (String field in wd.fieldList)
s += “ “ + field + “\t“;
s += Environment.NewLine;
}
if (null != wd.timeList)
{
s += “Times = “ + Environment.NewLine;
foreach (DateTime time in wd.timeList)
s += “ “ + time.ToString() + “\t“;
s += Environment.NewLine;
}
s += “Data = “ + Environment.NewLine;
object getData = wd.getDataByFunc(strFuncName false);
if (getData is object[])//转化为2维数组
{
object[] odata = (object[])getData;
switch (strFuncName)
{
case “wsd“:
{
string strColHead = string.Empty;
strColHead += “Time“ + “\t\t“;
foreach (String field in wd.fieldList)
strColHead += field + “\t“;
strColHead += Environment.NewLine;
s = strColHead;
int nTimeLength = wd.timeList.Length;
int nCodeLength = wd.codeList.Length;
int nFieldLength = wd.fieldList.Length;
for (int i = 0; i < nTimeLength; i++)
{
s += wd.timeList[i].ToString(“yyyy-MM-dd“) + “\t“;
for (int j = 0; j < nCodeLength * nFieldLength; j++)
{
str = odata[i j].ToString();
s += str + “\t“;
}
s += Environment.NewLine;
}
}
break;
case “wsi“:
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 23552 2014-12-15 20:10 Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WAPIWrapperCSharp\WAPIWrapperCSharp.dll
文件 58140 2014-12-18 10:37 Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WAPIWrapperCSharp\WindNavigator.rar
目录 0 2016-11-11 13:19 Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WAPIWrapperCSharp
文件 23552 2014-12-15 20:10 Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\bin\Debug\WAPIWrapperCSharp.dll
文件 11264 2014-12-16 17:36 Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\bin\Debug\WindConsoleAppSample.exe
文件 34304 2014-12-16 17:36 Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\bin\Debug\WindConsoleAppSample.pdb
文件 11592 2014-12-15 19:51 Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\bin\Debug\WindConsoleAppSample.vshost.exe
目录 0 2014-12-15 20:01 Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\bin\Debug
目录 0 2014-11-04 17:33 Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\bin\Release
文件 10240 2014-11-17 10:11 Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\bin\x64\Debug\WindConsoleAppSample.exe
文件 26112 2014-11-17 10:11 Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\bin\x64\Debug\WindConsoleAppSample.pdb
文件 11592 2014-11-17 10:20 Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\bin\x64\Debug\WindConsoleAppSample.vshost.exe
文件 490 2013-03-18 17:00 Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\bin\x64\Debug\WindConsoleAppSample.vshost.exe.manifest
文件 21504 2014-10-16 18:00 Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\bin\x64\Debug\WindCSharp.dll
目录 0 2014-11-17 10:11 Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\bin\x64\Debug
目录 0 2014-11-07 13:32 Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\bin\x64\Release
目录 0 2014-11-07 13:32 Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\bin\x64
目录 0 2014-11-04 17:33 Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\bin
文件 6017 2014-12-15 19:50 Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
目录 0 2014-12-15 19:36 Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\obj\Debug\TempPE
文件 720 2014-12-15 19:51 Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\obj\Debug\WindConsoleAppSample.csproj.FileListAbsolute.txt
文件 10126 2014-12-15 19:36 Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\obj\Debug\WindConsoleAppSample.csprojResolveAssemblyReference.cache
文件 11264 2014-12-15 19:50 Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\obj\Debug\WindConsoleAppSample.exe
文件 30208 2014-12-15 19:50 Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\obj\Debug\WindConsoleAppSample.pdb
目录 0 2014-12-15 19:50 Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\obj\Debug
文件 6000 2014-11-17 10:11 Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\obj\x64\Debug\DesignTimeResolveAssemblyReferencesInput.cache
文件 18432 2014-11-17 10:07 Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\obj\x64\Debug\Interop.WindDataCOMLib.dll
目录 0 2014-11-04 17:33 Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\obj\x64\Debug\TempPE
文件 585 2014-11-17 10:20 Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\obj\x64\Debug\WindConsoleAppSample.csproj.FileListAbsolute.txt
文件 713 2014-11-17 10:07 Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\obj\x64\Debug\WindConsoleAppSample.csproj.ResolveComReference.cache
............此处省略195个文件信息
相关资源
- BLE_TI_demo_keyfob_sensortag蓝牙芯片9(Wi
- 股票数据接口库NTuShare
- C#实现Windows版扫雷
- 《C#语言Windows程序设计》源码
- 简单实用的学生信息管理系统C#、SQ
- C# Windows服务,实现代码,含详细注释
- C#接科大讯飞在线语音合成Windows
- 环境检测系统——上位机软件
- Halcon的HWindowControl控件在WinForm程序中
- C# windows 服务学习
- C#仿Windows记事本附带设计说明书
- Windows应用高级编程——C#编程篇
- C# Windows Forms程序设计pdf中文+源码
- libemgucv-windesktop-3.3.0.2824.exe
- wpf 适用windows系统触屏的手写识别
- 深入浅出WPF(中文版)
- C#,.NET, SQL数据库,前台及后台,
- 《C# Windows Forms程序设计》电子书
- c#书店管理系统(winform+linq to entity+
- Winform开发全套31个UI组件开源共享](
- C#写的Windows文件资源管理器
- halcon 与C#之HWindow鼠标控制图片缩放,
- Programming C# 5.0-Building Windows 8 无水印
- 精通Windows 3D图形编程
- C#WinForm人事管理系统开发实录
- B20_08_NNCase编译MobileNet_v1_1.0即tflite量化
- C#联合halcon利用halcon控件实现鼠标拖拽
- Visual Studio 2015(C#) Windows数据库项目
- C# 先检测出指定磁盘的容量,然后根
- C#结合Halcon,对图像也可以拍照进行轮
评论
共有 条评论