📄 ithransprotocol.cs
字号:
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Data;
using System.Windows.Forms;
namespace LC_XMLControl
{
//实现这个接口的实现类的类名必须为Converter
public interface IThransProtocol
{
#region 属性
Object sourceconnection //储存源数据集的连接对象
{
get;
set;
}
Object desconnection //储存目的数据集的连接对象
{
get;
set;
}
ArrayList msg
{
get;
set;
}
string info
{
get;
set;
}
int stype //是数据来源类型是来自odbc还是file 1,0
{
get;
set;
}
int dtype //是数据来源类型是来自odbc还是file
{
get;
set;
}
string spliter//如果是文本文件的话有分隔符,
{
get;
set;
}
int cursum
{
get;
set;
}
ArrayList allres//所有执行结果
{
get;
set;
}
ArrayList errorres//所有失败执行结果
{
get;
set;
}
#endregion
#region 方法
void createSourceContenction(string constr);//如果是odbc sql oracel 通过#分隔符,得到odbc的相关信息//格式为 数据库IP#数据库名字#数据库的用户#数据库的密码
void createDesContentction(string constr);
ArrayList getAllSourceTable();
ArrayList getAllDesTable();
ArrayList getAllSourceField(string table);
ArrayList getAllDesField(string table);
DataTable sourceToXml(string source, ArrayList allfield);
void xmlToDes(string des,ArrayList rows,ArrayList field);
void closeSourceConnection();
void closeDesConnection();
#endregion
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -