(各位大哥帮帮忙)发生异常页:

来源:百度知道 编辑:UC知道 时间:2024/06/21 18:49:51
发生异常页: http://localhost:15588/NewWeb/BiaoDan/Material/查询统计/lenddetail.aspx
异常信息: d:\WWW_New_Web\NewWeb\BiaoDan\Material\查询统计\lendDetail.aspx.cs(219): error CS0117: “Material.Components.BLL.lendCollection.lendFields”并不包含“wreturn”的定义

218 case "wreturn":
219 sortCol = Components.BLL.lendCollection.lendFields.wreturn;
210 break;

using System;
using System.Collections;

namespace Material.Components.BLL
{
/// <summary>
/// lendCollection 的摘要说明。
/// </summary>
public class lendCollection:ArrayList
{
public enum lendFields
{
InitValue,
ProductName,
amount,
debit,
userName,
debitUnit,
borrowDate,
wreturn,
type
}
public void Sort(lendFiel

单纯从提供的代码上看,好像没有什么错误。
你再重新编译一下试试。

public enum lendFields
{
InitValue,
ProductName,
amount,
debit,
userName,
debitUnit,
borrowDate,
wreturn="wreturn",
type
}
你都没赋值啊 要初始化啊