public Page<MemberFeeManage> GetMemberFeeList(MemberSeachCondition searchCondition)
 {
     Session["MemberFeeSearch"] = searchCondition;
     MemberFeeBLL memberFeeBLL = new MemberFeeBLL();
     Page<MemberFeeManage> memberPageInfo = new Page<MemberFeeManage>();
     memberPageInfo = memberFeeBLL.GetMemberFeeList(searchCondition,false);
     return memberPageInfo;
 }
    public List<MemberFeeManage> GetMemberFeeList()
    {
        MemberSeachCondition searchCondition = (Session["MemberFeeSearch"] as MemberSeachCondition);
        MemberFeeBLL memberFeeBLL = new MemberFeeBLL();
        Page<MemberFeeManage> memberPageInfo = new Page<MemberFeeManage>();
        memberPageInfo = memberFeeBLL.GetMemberFeeList(searchCondition, true);
        List<MemberFeeManage> list = new List<MemberFeeManage>();
        if (memberPageInfo != null && memberPageInfo.Data != null)
        {
            list = memberPageInfo.Data.ToList<MemberFeeManage>();
        }

        return list;
    }
 protected void ExcelBt_Click(object sender, EventArgs e)
 {
     MemberSeachCondition searchCondition = (Session["MemberFeeSearch"] as MemberSeachCondition);
     MemberFeeBLL memberFeeBLL = new MemberFeeBLL();
     Page<MemberFeeManage> memberPageInfo = new Page<MemberFeeManage>();
     memberPageInfo = memberFeeBLL.GetMemberFeeList(searchCondition, true);
     List<MemberFeeManage> list = new List<MemberFeeManage>();
     if (memberPageInfo != null && memberPageInfo.Data != null)
     {
         list = memberPageInfo.Data.ToList<MemberFeeManage>();
     }
     if (list != null && list.Count > 0)
     {
         ExcelEdit edit = new ExcelEdit();
         edit.CreateExcel();
         edit.WriteFeeList(list, 0, list.Count - 1);
         Random rand = new Random();
         string fileName = Server.MapPath(".") + "/MemberFeeList_" + rand.Next(1000).ToString() + ".xls";
         edit.ExplortExcel(fileName);
         ImportExcel(fileName, edit);
     }
 }