Example #1
0
 public static Boolean UpdatePropertyBandInTariff(PropertyBandInTariffClass map)
 {
     Boolean flag = false;
     try
     {
         IMapping objtext = new BALTariff();
         flag = objtext.UpdateMapping(map);
     }
     catch (Exception ex)
     {
         throw;
     }
     return flag;
 }
Example #2
0
        public String UpdateMapping(String MappID, String ReleaseDate)
        {
            if (Session["Login"] != null)
            {
                PropertyBandInTariffClass mapping = new PropertyBandInTariffClass();
                LoginSession loginsession = (LoginSession)Session["Login"];
                mapping.modifyBy = Convert.ToInt64(loginsession.UserID);
                if (MappID!= null)
                {
                    mapping.MapID = MappID;

                    if (ReleaseDate != null)
                    {
                        mapping.ReleaseDate = ReleaseDate;
                    }
                    if (BAL.TariffModel.UpdatePropertyBandInTariff(mapping))
                    {
                        return "true";
                    }
                    else
                    {
                        return "false";
                    }
                }
                else
                { return "false"; }
            }
            else
            {
                RedirectToAction("Index", "Home");
                return "false";
            }
        }
Example #3
0
 Object IMapping.EditMapping(Int64 mapinID)
 {
     PropertyBandInTariffClass mapping = new PropertyBandInTariffClass();
     return mapping;
 }
Example #4
0
 public String SaveMapping(String TariffID, String BandID, String AssignDate)
 {
     if (Session["Login"] != null)
     {
         PropertyBandInTariffClass mapping = new PropertyBandInTariffClass();
         LoginSession loginsession = (LoginSession)Session["Login"];
         mapping.modifyBy = Convert.ToInt64(loginsession.UserID);
         if ((TariffID != null) && (BandID != null))
         {
             mapping.BandID = BandID;
             mapping.TariffID = TariffID;
             if (AssignDate != null)
             {
                 mapping.AssignDate = AssignDate;
             }
             if (BAL.TariffModel.CreatePropertyBandInTariff(mapping))
             {
                 return "true";
             }
             else
             {
                 return "false";
             }
         }
         else
         { return "false"; }
     }
     else
     {
         RedirectToAction("Index", "Home");
         return "false";
     }
 }