public static AppendNotificationMsg ( string notificationMsg, |
||
notificationMsg | string | |
notificationMsgList | ||
리턴 | void |
public static bool ProcessStartRepairDate(string startRepairDateTxt, BulletedList notificationMsgList, out DateTime?startRepairDate) { startRepairDate = null; bool validStartRepairDate = string.IsNullOrEmpty(startRepairDateTxt) == false; if (validStartRepairDate == false) { CarServicePresentationUtility.AppendNotificationMsg("Start repair date is required", notificationMsgList); } else { DateTime startRepairDateValue = DateTime.Now; validStartRepairDate = CarServiceUtility.IsValidDate(startRepairDateTxt, out startRepairDateValue); if (validStartRepairDate == true) { startRepairDate = startRepairDateValue; } else { CarServicePresentationUtility.AppendNotificationMsg("Start repair date is not in valid format", notificationMsgList); } } return(validStartRepairDate); }
public static bool IsSparePartItemsValid(ListItemCollection selectedSparePartItems, BulletedList notificationMsgList) { bool validSpareParts = (selectedSparePartItems.Count > 0); if (validSpareParts == false) { CarServicePresentationUtility.AppendNotificationMsg("Spare parts are not selected", notificationMsgList); } return(validSpareParts); }
public static bool ProcessRepairPrices(string sparePartsPriceTxt, string repairPriceTxt, BulletedList notificationMsgList, out decimal sparePartsPrice, out decimal repairPrice) { sparePartsPrice = 0M; repairPrice = 0M; bool validPrices = ValidatePrices(sparePartsPriceTxt, repairPriceTxt, out sparePartsPrice, out repairPrice); if (validPrices == false) { CarServicePresentationUtility.AppendNotificationMsg("Repair price should be larger than or equal to spare parts price", notificationMsgList); } return(validPrices); }