public static void LoadFeeRender() { try { #region Fee lock (c_hs_Fee_Render_byContract.SyncRoot) { Fees_Revenue_Controller _Fees_Revenue_Controller = new Fees_Revenue_Controller(); c_hs_Fee_Render_byContract.Clear(); List <Fees_Revenue_Info> _lst_al = _Fees_Revenue_Controller.Fees_Revenue_GetByObjectType((decimal)Enum_Contract_Type.Renter); if (_lst_al.Count > 0) { foreach (Fees_Revenue_Info item in _lst_al) { if (c_hs_Fee_Render_byContract.ContainsKey(item.Contract_Id) == false) { List <Fees_Revenue_Info> _lst = new List <Fees_Revenue_Info>(); _lst.Add(item); c_hs_Fee_Render_byContract[item.Contract_Id] = _lst; } else { List <Fees_Revenue_Info> _lst = (List <Fees_Revenue_Info>)c_hs_Fee_Render_byContract[item.Contract_Id]; _lst.Add(item); } } } } #endregion #region Hợp đồng Contract_Controller c_Contract_Controller = new Contract_Controller(); c_lst_contract_renter = c_Contract_Controller.Contract_GetBy_Type((decimal)Enum_Contract_Type.Renter); #endregion } catch (Exception ex) { ErrorLog.log.Error(ex.ToString()); } }