コード例 #1
0
 public ActionResult NotificationStakeholderList(Search_StakeholderMailSentReceive obj)
 {
     if (Convert.ToString(Session["UserId"]).Trim().Length > 0)
     {
         if (obj.PageIndex == 0)
         {
             obj.PageIndex = 1;
         }
         if (obj.PageSize == 0)
         {
             obj.PageSize = 10;
         }
         if (obj.FromDate == null)
         {
             obj.FromDate = "";
         }
         if (obj.ToDate == null)
         {
             obj.ToDate = "";
         }
         if (obj.Status == null)
         {
             obj.Status = "0";
         }
         ViewBag.FromDate = obj.FromDate;
         ViewBag.ToDate   = obj.ToDate;
         ViewBag.Status   = obj.Status;
         NotificationListBusinessService objNBS = new NotificationListBusinessService();
         return(View(objNBS.GetStakeholderMailSentResponse(obj)));
     }
     else
     {
         return(RedirectToAction("Index", "Login"));
     }
 }
コード例 #2
0
        public ActionResult NotificationExport(string NotificationNumber, int CountryId, DateTime?FinalDateOfComments_From, DateTime?FinalDateOfComments_To, int NotificationType, int StatusId, int ActionId, string ActionStatus, DateTime?MeetingDate, string PendingFrom)
        {
            Search_Notification obj = new Search_Notification();

            obj.NotificationNumber       = NotificationNumber;
            obj.CountryId                = CountryId;
            obj.FinalDateOfComments_From = FinalDateOfComments_From;
            obj.FinalDateOfComments_To   = FinalDateOfComments_To;
            obj.NotificationType         = NotificationType;
            obj.StatusId     = StatusId;
            obj.ActionId     = ActionId;
            obj.ActionStatus = ActionStatus;
            obj.MeetingDate  = MeetingDate;
            obj.PendingFrom  = PendingFrom;
            NotificationListBusinessService objBS = new NotificationListBusinessService();

            using (DataTable dt = objBS.ExportNotificationList(obj))
            {
                try
                {
                    ExportToExcel(dt, "Notification-List", "Notification-List", "Notification-List");
                }
                catch (Exception ex)
                {
                    string str = ex.Message;
                }
            }
            return(View());
        }
コード例 #3
0
 // GET: NotificationList
 public ActionResult Index(Search_Notification obj)
 {
     if (Convert.ToString(Session["UserId"]).Trim().Length > 0)
     {
         NotificationListBusinessService objBS = new NotificationListBusinessService();
         return(View("~/Views/WTO/NotificationList.cshtml", objBS.PageLoad_NotificationsList(obj)));
     }
     else
     {
         return(RedirectToAction("Index", "Login"));
     }
 }
コード例 #4
0
        public IHttpActionResult GetStakeholderMailSentResponse(Search_StakeholderMailSentReceive obj)
        {
            if (obj.PageIndex == 0)
            {
                obj.PageIndex = 1;
            }
            if (obj.PageSize == 0)
            {
                obj.PageSize = 10;
            }
            NotificationListBusinessService objBS = new NotificationListBusinessService();

            return(Ok(objBS.GetStakeholderMailSentResponse(obj)));
        }
コード例 #5
0
        public IHttpActionResult GetNotificationCountryList(Search_NotificationCountries obj)
        {
            if (obj.PageIndex == 0)
            {
                obj.PageIndex = 1;
            }
            if (obj.PageSize == 0)
            {
                obj.PageSize = 10;
            }
            NotificationListBusinessService objBS = new NotificationListBusinessService();

            return(Ok(objBS.GetNotificationCountries(obj)));
        }
コード例 #6
0
 public ActionResult NotifyingMemberList(Search_NotificationCountries obj)
 {
     if (Convert.ToString(Session["UserId"]).Trim().Length > 0)
     {
         if (obj.PageIndex == 0)
         {
             obj.PageIndex = 1;
         }
         if (obj.PageSize == 0)
         {
             obj.PageSize = 10;
         }
         if (obj.FromDate == null)
         {
             obj.FromDate = "";
         }
         if (obj.ToDate == null)
         {
             obj.ToDate = "";
         }
         if (obj.CountryId == null)
         {
             obj.CountryId = "";
         }
         if (obj.Hscode == null)
         {
             obj.Hscode = "";
         }
         ViewBag.FromDate = obj.FromDate;
         ViewBag.ToDate   = obj.ToDate;
         ViewBag.Hscode   = obj.Hscode.ToUpper() == "ALL" ? "" : obj.Hscode;
         NotificationListBusinessService objNBS = new NotificationListBusinessService();
         return(View(objNBS.PageLoad_NotificationCountries(obj)));
     }
     else
     {
         return(RedirectToAction("Index", "Login"));
     }
 }
コード例 #7
0
        public IHttpActionResult SaveMeetingNotification(Int32 Id, string MeetingDate, string CreatedBy)
        {
            NotificationListBusinessService objBS = new NotificationListBusinessService();

            return(Ok(objBS.SaveMeetingNotification(Id, MeetingDate, CreatedBy)));
        }