예제 #1
0
        static void Main(string[] args)
        {
            if (args.Length > 0)
            {
                var cmd = args[0];

                Console.WriteLine(cmd);
                switch (cmd)
                {
                    case "DogGradeChange":
                        Console.WriteLine("1");
                        break;

                    case "EndShow":
                        {
                            Console.WriteLine("2");
                            var showMgr = new ShowManager();
                            showMgr.EndShow(23);
                        }
                        break;

                    case "PaidNotEntered3After":
                        Console.WriteLine("3");
                        break;

                    case "PaidNotEnter7After":
                        Console.WriteLine("4");
                        break;

                    case "ReminderToPay":
                        {
                            Console.WriteLine("5");
                            var showMgr = new ShowManager();
                            Console.WriteLine(showMgr.EndShow(23));

                        }
                        break;

                }
            }
        }
        public JsonResult CreateShow(int OrgId, string ShowName, string ShowDate, int SrcId, string ClosingDate)
        {
            var ShowManager = new ShowManager();

            return Json(new
            {
                Status = 0,
                Show = ShowManager.CreateShow(OrgId, ShowName, ShowDate, SrcId, ClosingDate)
            });
        }
 public JsonResult UpdateShowDetails(ShowSummaryDetailsModel showSummaryDetails)
 {
     var showManager = new ShowManager();
     showManager.UpdateShowDetails(new ShowSummaryDetailsDto
     {
         ShowId = showSummaryDetails.ShowId,
         ShowName = showSummaryDetails.ShowName,
         ShowDate = showSummaryDetails.ShowDate,
         ClosingDate = showSummaryDetails.ClosingDate,
         Venue = showSummaryDetails.Venue,
         Venuepostcode = showSummaryDetails.Venuepostcode
     });
     return Json(new
     {
         Status = 0
     });
 }
 public JsonResult UpdateScheduleMessage(ShowSummaryDetailsModel showSummaryDetails)
 {
     var showManager = new ShowManager();
     showManager.UpdateScheduleMessage(new ShowSummaryDetailsDto
     {
         ShowId = showSummaryDetails.ShowId,
         ScheduleMessage = showSummaryDetails.ScheduleMessage
     });
     return Json(new
     {
         Status = 0
     });
 }
 public JsonResult UpdateRPMessage(ShowSummaryDetailsModel showSummaryDetails)
 {
     var showManager = new ShowManager();
     showManager.UpdateRunningPlanMessage(new ShowSummaryDetailsDto
     {
         ShowId = showSummaryDetails.ShowId,
         RunningPlanMessage = showSummaryDetails.RunningPlanMessage
     });
     return Json(new
     {
         Status = 0
     });
 }
 public JsonResult UpdateMemberMessage(ShowSummaryDetailsModel showSummaryDetails)
 {
     var showManager = new ShowManager();
     showManager.UpdateShowMessage(showSummaryDetails.ShowId, showSummaryDetails.MemberMessage);
     return Json(new
     {
         Status = 0
     });
 }