private ViewRoomFee[] LoadRoomFeeList(int ContractID)
 {
     ViewRoomFee[] list = new ViewRoomFee[] { };
     try
     {
         DateTime   StartTime                = DateTime.MinValue;
         DateTime   EndTime                  = DateTime.MinValue;
         int        CompanyID                = WebUtil.GetCompanyID(this.Context);
         List <int> RoomIDList               = new List <int>();
         List <int> ProjectIDList            = WebUtil.GetMyProjects(WebUtil.GetUser(this.Context).UserID).Where(p => p.ID != 1).Select(p => p.ID).ToList();
         List <int> FeeTypeList              = new List <int>();
         int[]      ChargeSummaryID          = new int[] { };
         int        IsCharged                = -1;
         List <int> RoomPropertyList         = new List <int>();
         bool       IsContractFee            = true;
         bool       IsRoomFee                = true;
         bool       IsCuiShou                = false;
         bool       IsAutoEndTime            = false;
         string     keywords                 = string.Empty;
         bool       ExcludeHistoryChargeTime = false;
         list = ViewRoomFee.GetViewRoomFeeListByRoomID(RoomIDList, ProjectIDList, StartTime, EndTime, ChargeSummaryID, IsCharged, RoomPropertyList, IsRoomFee, IsContractFee, ContractID, IsAutoEndTime, keywords, ExcludeHistoryChargeTime, UserID: WebUtil.GetUser(this.Context).UserID);
         if (IsCuiShou)
         {
             list = list.Where(p => p.CuiShouTotalCost > 0).ToArray();
             if (EndTime > DateTime.MinValue)
             {
                 list = list.Where(p => p.CalculateCuiShouStartTime <= EndTime).ToArray();
             }
         }
         else
         {
             list = list.Where(p => p.TotalCost > 0).ToArray();
             if (EndTime > DateTime.MinValue)
             {
                 list = list.Where(p => p.CalculateStartTime <= EndTime).ToArray();
             }
         }
     }
     catch (Exception ex)
     {
         LogHelper.WriteError("AddContract.aspx", "visit: LoadRoomFeeList", ex);
     }
     return(list);
 }