// GET
        public ActionResult MaintenancePolicy(int? MaintenancePolicyID)
        {
            BLCustomer MaintenanceBL = new BLCustomer();
            tblMaintenancePolicy tblmaintenance = new tblMaintenancePolicy();
            tblmaintenance = MaintenanceBL.GetMaintenance(MaintenancePolicyID.Value);
            if (MaintenancePolicyID.Value == 0)
                tblmaintenance.ScheduledStartDate = DateTime.Now;
            ViewBag.WeekOfMonths = LookUpData.GetWeekOfMonth();
            ViewBag.WeekOfDay = LookUpData.GetWeekOfDay();
            ViewBag.time = LookUpData.GetFXTime();
            ViewBag.MonthOfDay = LookUpData.GetMonthOfDay();
            ViewBag.TimeZones = LookUpData.GetTimeZone();
            ViewBag.ScheduleTypeM = LookUpData.GetScheduleType();

            if (Request.IsAjaxRequest())
                return PartialView("MaintenancePolicy", tblmaintenance);
            else
                return View("MaintenancePolicy", tblmaintenance);
        }
        // GET
        public ActionResult MaintenancePolicy(int? MaintenancePolicyID)
        {
            BLCustomer MaintenanceBL = new BLCustomer();
            tblMaintenancePolicy tblmaintenance = new tblMaintenancePolicy();
            tblmaintenance = MaintenanceBL.GetMaintenance(MaintenancePolicyID.Value);

            if (MaintenancePolicyID.Value == 0)
                tblmaintenance.ScheduledStartDate = DateTime.Now;

            List<KeyValue> lstKeyVal = new List<KeyValue>();
            lstKeyVal.Add(new KeyValue() { Key = "Activity Name", Value = tblmaintenance.ActivityName });
            lstKeyVal.Add(new KeyValue() { Key = "Define Regular Schedule", Value = tblmaintenance.ScheduleType.Name});
            lstKeyVal.Add(new KeyValue() { Key = "Define Week Day (for weekly schedule)", Value = tblmaintenance.WeekOfDays.Name });
            //  lstKeyVal.Add(new KeyValue() { Key = "Define Month of Day (for Monthly Schedule)", Value = tblmaintenance.MonthOfDays.Name });
            lstKeyVal.Add(new KeyValue()
            {
                Key = "Scheduled Time",
                Value = tblmaintenance.ScheduledStartTime + " - " +
                        tblmaintenance.ScheduledEndTime + " " +
                        tblmaintenance.TimeZone.Name
            });
            lstKeyVal.Add(new KeyValue() { Key = "Start Date", Value = tblmaintenance.ScheduledStartDate.ToString("MM/dd/yyyy") });

            if (Request.IsAjaxRequest())
                return PartialView("Detail", lstKeyVal);
            else
                return View("Detail", lstKeyVal);
        }