|
|
| 让ASP.NET简便使用SCRIPT(3) |
| 作者:不详 来源:不详 发布时间:2006-8-14 8:27:54 发布人:chinazhan |
减小字体
增大字体
-------------------------------------------------------------------------------- 00259 } 00260 } 00261 private ElementType mElement = ElementType . None ; 00262 /// <summary> 00263 /// 获取或设置参数值是否参数名称 00264 /// </summary> 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 /// <summary> -------------------------------------------------------------------------------- 00320 /// 返回值接收元素描述类 00321 /// </summary> 00322 public class ReturnElement 00323 { 00324 /// <summary> 00325 /// 构造对象 00326 /// </summary> 00327 /// <param name="id">接收值的元素ID</param> 00328 /// <param name="key">对应值的键值</param> 00329 public ReturnElement ( string id , string key ) 00330 { 00331 ID = id ; 00332 Key = key ; 00333 } 00334 private string mID ; 00335 /// <summary> 00336 /// 获取或设置元素ID 00337 /// </summary> 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 /// <summary> 00351 /// 获取或设置对应值的键值 00352 /// </summary> 00353 public string Key 00354 { 00355 get 00356 { 00357 return mKey ; 00358 } 00359 set 00360 { 00361 mKey = value ; 00362 } 00363 } 00364 /// <summary> 00365 /// 获取操作脚本 00366 /// </summary> 00367 /// <returns>string</returns> 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 } 做人要厚道,请注明转自chinazhan中国站长(www.ChinaZhan.com)。
|
| |
|
[]
[返回上一页]
[打 印]
[收 藏] |
|
| ∷相关文章评论∷ (评论内容只代表网友观点,与本站立场无关!) [更多评论...] |
|
|