@using System.Reflection @using System.ComponentModel.DataAnnotations @using Shared.DTOs @using Shared.DTOs.Warehouse @typeparam T
@item.CustomAttributes.Where(w => w.AttributeType.Name == "DisplayAttribute").Select(s => s.NamedArguments.Where(w => w.MemberName == "Name").Select(ss => ss.TypedValue.Value).First()).First().ToString() | } }عملیات | }|||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@decimal.Parse(property.GetValue(item, null).ToString()).ToString("N0") ريال | } else if (property.PropertyType == typeof(Nullable... | } else { if (res.ToString().ToLower()=="true") {دارد | } else {ندارد | } } } else if (property.Name.ToLower() == "msgtype" && item.ToString() == "Shared.DTOs.Warehouse.CirculationDto") { var convertmodel = (CirculationDto)Convert.ChangeType(item, typeof(CirculationDto)); switch (convertmodel.Type) { case TypeCirculation.Receipt:@property.GetValue(item, null) | break; case TypeCirculation.Remittance:@property.GetValue(item, null) | break; default:@property.GetValue(item, null) | break; } } else if (property.Name.ToLower() == "id" && item.ToString() != "Shared.DTOs.SentTaxDto") { if (id > 0) { if (OnMultipleOfThree.HasValue) {} else if (OnMultipleOfThreeGeneric.HasValue) { | } } else { | } } else if (property.Name.ToLower() == "msgsentstatus" && item.ToString() == "Shared.DTOs.SentTaxDto") { var convertmodel = (SentTaxDto)Convert.ChangeType(item, typeof(SentTaxDto)); switch (convertmodel.SentStatus) { case SentStatus.Send: | @property.GetValue(item, null) | break; case SentStatus.Successful:@property.GetValue(item, null) | break; case SentStatus.Unsuccessful:@property.GetValue(item, null) | break; case SentStatus.pending:@property.GetValue(item, null) | break; case SentStatus.IN_PROGRESS:@property.GetValue(item, null) | break; case SentStatus.NOT_FOUND:@property.GetValue(item, null) | break; case SentStatus.Unknown:@property.GetValue(item, null) | break; default:@property.GetValue(item, null) | break; } } else {@property.GetValue(item, null) | } } } if (item.ToString() == "Shared.DTOs.SentTaxDto") { var convertmodel = (SentTaxDto)Convert.ChangeType(item, typeof(SentTaxDto)); if (convertmodel.SentStatus == SentStatus.Send || convertmodel.SentStatus == SentStatus.pending || convertmodel.SentStatus == SentStatus.IN_PROGRESS) { if (OnMultipleOfThree.HasValue) {} else if (OnMultipleOfThreeGeneric.HasValue) { | } } else if (convertmodel.SentStatus == SentStatus.Unsuccessful) { if (OnMultipleOfThree.HasValue) { | } else if (OnMultipleOfThreeGeneric.HasValue) { | } } else { | } } else { string Title = "ویرایش"; if (id > 0 || item.ToString() == "Shared.DTOs.Warehouse.CirculationDto" ) { if (item.ToString() == "Shared.DTOs.Warehouse.CirculationDto") { Title = "انتخاب"; } if (OnMultipleOfThree.HasValue) { | } else if (OnMultipleOfThreeGeneric.HasValue) { | } } else { | } } } |