public static void ClearAllDic() { try { DicArea.Clear(); DicConnection.Clear(); DicConnectionStatus.Clear(); DicConnectionType.Clear(); DicContract.Clear(); DicContractStatus.Clear(); DicCustomer.Clear(); DicCustomerFeedback.Clear(); DicDetailImportReceipt.Clear(); DicDevice.Clear(); DicDeviceType.Clear(); DicEmployee.Clear(); DicFee.Clear(); DicImage.Clear(); DicImportReceipt.Clear(); DicManufacturer.Clear(); DicPayment.Clear(); DicPaymentFee.Clear(); DicProvider.Clear(); DicServiceForm.Clear(); DicServiceFormStatus.Clear(); DicServicePack.Clear(); DicServicePackFee.Clear(); DicStore.Clear(); } catch (Exception ex) { LogTo.Error(ex.ToString()); } }
public static bool IsExistServicePackFee(ServicePackFeeKeys servicePackFeeKeys) { if (DicServicePackFee.ContainsKey(servicePackFeeKeys)) { return(true); } return(false); }
public static ServicePackFee GetServicePackFee(ServicePackFeeKeys servicePackFeeKeys) { if (DicServicePackFee.ContainsKey(servicePackFeeKeys)) { return(DicServicePackFee[servicePackFeeKeys].Clone() as ServicePackFee); } LogTo.Error("Not get ServicePackFee by servicePackFeeKeys = " + servicePackFeeKeys); return(null); }
internal static void RemoveMemory(ServicePackFee objectValue) { var key = new ServicePackFeeKeys { IdFee = objectValue.IdFee, IdServicePack = objectValue.IdServicePack }; if (DicServicePackFee.ContainsKey(key)) { DicServicePackFee.Remove(key); } }
public static List <ServicePackFee> GetAllServicePackFee() { return(DicServicePackFee.Select(obj => obj.Value.Clone() as ServicePackFee).ToList()); }