/// <summary> /// سر ستون رزورو فیلدها را در گزارش کارکرد ماهانه برمیگرداند /// </summary> /// <param name="field">فیلد رزرو شده</param> /// <returns>سرستون</returns> public string GetReservedFieldsName(ConceptReservedFields field) { try { string keyColumn = ""; switch (field) { case ConceptReservedFields.ReserveField1: keyColumn = "gridFields_ReserveField1"; break; case ConceptReservedFields.ReserveField2: keyColumn = "gridFields_ReserveField2"; break; case ConceptReservedFields.ReserveField3: keyColumn = "gridFields_ReserveField3"; break; case ConceptReservedFields.ReserveField4: keyColumn = "gridFields_ReserveField4"; break; case ConceptReservedFields.ReserveField5: keyColumn = "gridFields_ReserveField5"; break; case ConceptReservedFields.ReserveField6: keyColumn = "gridFields_ReserveField6"; break; case ConceptReservedFields.ReserveField7: keyColumn = "gridFields_ReserveField7"; break; case ConceptReservedFields.ReserveField8: keyColumn = "gridFields_ReserveField8"; break; case ConceptReservedFields.ReserveField9: keyColumn = "gridFields_ReserveField9"; break; case ConceptReservedFields.ReserveField10: keyColumn = "gridFields_ReserveField10"; break; } SecondaryConceptRepository rep = new SecondaryConceptRepository(false); IList <SecondaryConcept> list = rep.Find(). Where(x => x.KeyColumnName != null && x.KeyColumnName != "" && x.KeyColumnName == keyColumn).ToList <SecondaryConcept>(); SecondaryConcept concept = list.FirstOrDefault(); if (concept != null) { if (BLanguage.CurrentLocalLanguage == LanguagesName.Parsi) { return(concept.FnName); } else { return(concept.EnName); } } return(String.Empty); } catch (Exception ex) { BaseBusiness <Entity> .LogException(ex, this.GetType().Name, "GetReservedFieldsName"); throw ex; } }