站内搜索:     
站点首页破釜学院编程开发.NETASP.NET → 让ASP.NET简便使用SCRIPT
正在加载相关信息.....
Web 站内搜索
让ASP.NET简便使用SCRIPT
】【打印】【加入收藏】【关闭收藏到新浪ViVi】【收藏到365KEY】 浏览字号:
日期:2006-07-17 人气: 出处:天极网

00259 }

00260 }

00261 private ElementType mElement = ElementType . None ;

00262 ///



00263 /// 获取或设置参数值是否参数名称

00264 ///


00265 public ElementType Element

00266 {

00267 get

00268 {

00269 return mElement ;

00270 }

00271 set

00272 {

00273 mElement = value ;

00274 }

00275 }

00276 }

00277 public class ParameterCollection : System . Collections . CollectionBase

00278 {

00279 public Parameter this [ int index ]

00280 {

00281 get

00282 {

00283 return ( ( Parameter ) List [ index ] );

00284 }

00285 set

00286 {

00287 List [ index ] = value ;

00288 }

00289 }

00290

00291 public int Add ( Parameter value )

00292 {

00293 return ( List . Add ( value ) );

00294 }

00295

00296 public int IndexOf ( Parameter value )

00297 {

00298 return ( List . IndexOf ( value ) );

00299 }

00300

00301 public void Insert ( int index , Parameter value )

00302 {

00303 List . Insert ( index , value );

00304 }

00305

00306 public void Remove ( Parameter value )

00307 {

00308

00309 List . Remove ( value );

00310 }

00311

00312 public bool Contains ( Parameter value )

00313 {

00314 // If value is not of type Int16, this will return false.

00315 return ( List . Contains ( value ) );

00316 }

00317

00318 }

00319 ///


--------------------------------------------------




00320 /// 返回值接收元素描述类

00321 ///


00322 public class ReturnElement

00323 {

00324 ///

00325 /// 构造对象

00326 ///


00327 /// 接收值的元素ID

00328 /// 对应值的键值

00329 public ReturnElement ( string id , string key )

00330 {

00331 ID = id ;

00332 Key = key ;

00333 }

00334 private string mID ;

00335 ///

00336 /// 获取或设置元素ID

00337 ///


00338 public string ID

00339 {

00340 get

00341 {

00342 return mID ;

00343 }

00344 set

00345 {

00346 mID = value ;

00347 }

00348 }

00349 private string mKey ;

00350 ///

00351 /// 获取或设置对应值的键值

00352 ///


00353 public string Key

00354 {

00355 get

00356 {

00357 return mKey ;

00358 }

00359 set

00360 {

00361 mKey = value ;

00362 }

00363 }

00364 ///

00365 /// 获取操作脚本

00366 ///


00367 /// string

00368 public string GetScript ( string parent )

00369 {

00370 return parent +"document.all(' "+ID +" ').value=" + parent +"__AnalyseString(' "+Key +"

',getvalue);" ;

00371 }

00372 }

00373 public class ReturnElementCollections : System . Collections . CollectionBase

00374 {

00375 public ReturnElement this [ int index ]

00376 {

00377 get

00378 {

00379 return ( ( ReturnElement ) List [ index ] );

00380 }



--------------------------------------------------


00381 set

00382 {

00383 List [ index ] = value ;

00384 }

00385 }

00386

00387 public int Add ( ReturnElement value )

00388 {

00389 return ( List . Add ( value ) );

00390 }

00391

00392 public int IndexOf ( ReturnElement value )

00393 {

00394 return ( List . IndexOf ( value ) );

00395 }

00396

00397 public void Insert ( int index , ReturnElement value )

00398 {

00399 List . Insert ( index , value );

00400 }

00401

00402 public void Remove ( ReturnElement value )

00403 {

00404

00405 List . Remove ( value );

00406 }

00407

00408 public bool Contains ( ReturnElement value )

00409 {

00410 // If value is not of type Int16, this will return false.

00411 return ( List . Contains ( value ) );

00412 }

00413 }

00414 #endregion

00415 }

>>>> 进入论坛交流 <<<<

相关文章:
暂时没有相关文章