首页 >> 民生娱乐

通过操作数据的模块物业

民生娱乐  2021-08-24 13:34 字号: 大 中 小

// 保存数据

if( myRows != null unt 0 )

{

LDocument myDoc = nerDocument ;

for( int RowCount = 0 ; RowCount unt ; RowCount ++ )

{

string[] strValue = ( string[] ) myRows[RowCount];

RowElement = eateElement(\"r\");

pendChild( RowElement );

for( int iCount = 0 ; iCount ngth ; iCount ++ )

{

FieldElement = eateElement(\"f\" + String());

pendChild( FieldElement );

if( strValue[iCount] == null )

nerText = c_NullFlag ;

else

nerText = strValue[iCount];

}

}// for

return unt ;

}

return -1 ;

}// ToXML

///

/// 从XML元素加载对象数据

///

/// XML节点

/// 加载的数据的行数

public int FromXML( LElement RootElement )

{

LElement RowElement = null;

strHead = null;

ear();

在这些街区基础上 intRowIndex = -1 ;

if( RootElement == null ) return -1 ;

// 获得列信息

rayList myHeads = new rayList();

for( int iCount = 0 ; iCount 255 ; iCount ++ )

{

if( sAttribute( \"f\" + String()))

{

string strName = tAttribute(\"f\" + String());

d( Lower().Trim());

}

else

break;

}

//strHead = new string[ unt ];

strHead = ( string[]) Array( typeof(string));

// 获得数据

foreach( LNode myNode in ildNodes )

{

if( myNode is LElement )

{

RowElement = ( LElement ) myNode ;

// 获得数据

string[] strValues = new string[ ngth];

d( strValues );

int iFieldCount = 0 ;

foreach(LNode myFieldNode in ildNodes)

{

if( myFieldNode is LElement )

{

strValues[iFieldCount] = ( nerText == c_NullFlag ? null : nerText ) ;

iFieldCount ++ ;

}

}// foreach

}// if

}// foreach

return unt ;

}// FromXML

#region IDataReader 成员

///

/// 未实现

///

public int RecordsAffected

{

get {return 0; }

}

///

/// 已重载:关闭对象

///

public bool IsClosed

{

get{ return bolClosed ; }

}

///

/// 未实现

///

///

查看本文来源

华润江中
治疗骨关节炎的药物
十大阳光房品牌加盟那个好
推荐资讯