Beispiel #1
0
        public ActionResult CreateFeedback()
        {
            var userDetails = (CustomerLoginDetail)Session["UserSession"];
            FeedbackAuthorViewModel       objFeedbackAuthor = new FeedbackAuthorViewModel();
            Feedback_PointsAndMessages    PointsAndMessages = new Feedback_PointsAndMessages();
            List <OutletDetailsViewModel> objOutletData     = new List <OutletDetailsViewModel>();

            try
            {
                objFeedbackAuthor.GroupId         = userDetails.GroupId;
                objFeedbackAuthor.lstFeedbackData = FMR.GetFeedback_Contents(userDetails.GroupId);
                objFeedbackAuthor.lstOutletDetail = RR.GetOutletList(userDetails.GroupId, userDetails.connectionString);
                foreach (var item in objFeedbackAuthor.lstOutletDetail)
                {
                    OutletDetailsViewModel objOT = new OutletDetailsViewModel();
                    objOT.mobileNos  = FMR.GetOutletMobileNos(userDetails.GroupId, item.Value);
                    objOT.outletId   = item.Value;
                    objOT.outletName = item.Text;

                    objOutletData.Add(objOT);
                }
                objFeedbackAuthor.lstOutletData = objOutletData;
                PointsAndMessages = FMR.GetPointsAndMessages(userDetails.GroupId);
                objFeedbackAuthor.PointsAndMessages = PointsAndMessages;
                objFeedbackAuthor.lstKnowAboutUs    = FMR.GetHowToKnowAboutList();
                objFeedbackAuthor.LogoUrl           = FMR.GetLogo(userDetails.GroupId);
            }
            catch (Exception ex)
            {
                newexception.AddException(ex, "CreateFeedback");
            }
            return(View(objFeedbackAuthor));
        }
Beispiel #2
0
        public ActionResult OnlyOnce()
        {
            var userDetails = (CustomerLoginDetail)Session["UserSession"];
            var lstOutlet   = RR.GetOutletList(userDetails.GroupId, userDetails.connectionString);

            ViewBag.OutletList = lstOutlet;
            return(View());
        }
Beispiel #3
0
        public ActionResult Index()
        {
            var userDetails   = (CustomerLoginDetail)Session["UserSession"];
            var lstoutletlist = RR.GetOutletList(userDetails.GroupId, userDetails.connectionString);

            ViewBag.lstoutletlist = lstoutletlist;
            var lstlogintype = DR.GetLoginType();

            ViewBag.lstLogintype = lstlogintype;
            List <DashboardCustomerLogin> objdashboard = new List <DashboardCustomerLogin>();

            objdashboard = DR.GetDashboardcustomerlogin(userDetails.GroupId);
            return(View(objdashboard));
        }
Beispiel #4
0
        public ActionResult GetCustomerConfigDetails(string groupId)
        {
            GroupConfigDetailsViewModel objData = new GroupConfigDetailsViewModel();

            objData.objGroupDetails      = CR.GetGroupDetails(Convert.ToInt32(groupId));
            objData.objGroupDetails.Logo = FMR.GetLogo(groupId);

            objData.lstBrandDetails           = CR.GetAllBrandsByGroupId(groupId);
            objData.objGroupConfig            = CR.GetGroupConfig(objData.objGroupDetails);
            objData.objGroupConfig.MemberBase = CR.GetMemberBase(groupId);
            objData.lstOutlets    = CR.GetAllOutletsByGroupId(groupId);
            objData.objEarnConfig = CR.GetPointsEarnConfig(groupId);
            objData.objBurnConfig = CR.GetPointsBurnConfig(groupId);

            var connectionString = CR.GetCustomerConnString(groupId);

            objData.lstOutletList = RR.GetOutletList(groupId, connectionString);
            objData.objSMSDetails = CR.GetAllSMSDetails(groupId);
            if (objData.objSMSDetails != null)
            {
                objData.SMSDetailsCount = 1;
            }
            else
            {
                objData.SMSDetailsCount = 0;
            }
            if (objData.SMSDetailsCount == 1)
            {
                objData.objSMSConfig = CR.GetSMSEmailMasterDetails(groupId);
                objData.objWAConfig  = CR.GetWAEmailMasterDetails(groupId);
            }
            objData.lstMWPDetails      = CR.GetDLCDetails(groupId);
            objData.objMWPSourceMaster = CR.GetMWPSourceMaster(groupId);
            return(PartialView("_GroupConfigDetails", objData));
        }
        public JsonResult GetOutletList(string GroupId)
        {
            string connectionString = CR.GetCustomerConnString(GroupId);
            var    lstOutlet        = RR.GetOutletList(GroupId, connectionString);

            return(new JsonResult()
            {
                Data = lstOutlet, JsonRequestBehavior = JsonRequestBehavior.AllowGet, MaxJsonLength = Int32.MaxValue
            });
        }
 public Object GetOutletList(string GroupId)
 {
     if (User.Identity.IsAuthenticated)
     {
         string connectionString = CR.GetCustomerConnString(GroupId);
         var    lstOutlet        = RR.GetOutletList(GroupId, connectionString);
         return(new { data = lstOutlet, MaxJsonLength = Int32.MaxValue });
     }
     return("Invalid Token or Expired");
 }
        public ActionResult Index()
        {
            ExecutiveSummary dataDashboard = new ExecutiveSummary();

            try
            {
                var userDetails = (CustomerLoginDetail)Session["UserSession"];
                var lstOutlet   = RR.GetOutletList(userDetails.GroupId, userDetails.connectionString);
                dataDashboard       = DR.GetDashboardData(userDetails.GroupId, userDetails.connectionString, userDetails.LoginId);
                ViewBag.OutletList  = lstOutlet;
                ViewBag.OutletCount = lstOutlet.Count;
            }
            catch (Exception ex)
            {
                newexception.AddException(ex, "");
            }
            return(View(dataDashboard));
        }
 // GET: ITOperations
 public ActionResult Index(string groupId)
 {
     try
     {
         CommonFunctions common = new CommonFunctions();
         groupId = common.DecryptString(groupId);
         string connStr      = objCustRepo.GetCustomerConnString(groupId);
         var    lstOutlet    = RR.GetOutletList(groupId, connStr);
         var    lstBrand     = RR.GetBrandList(groupId, connStr);
         var    GroupDetails = objCustRepo.GetGroupDetails(Convert.ToInt32(groupId));
         ViewBag.OutletList = lstOutlet;
         ViewBag.BranchList = lstBrand;
         ViewBag.GroupId    = groupId;
         ViewBag.GroupName  = GroupDetails.RetailName;
     }
     catch (Exception ex)
     {
         newexception.AddException(ex, groupId);
     }
     return(View());
 }