コード例 #1
0
ファイル: Writer.cs プロジェクト: AlexStopher/SSD-Project
        public static string AddBooking(BookingData data)
        {
            string phpLocation = @"/AddUser.php?";
            string nameURL     = @"name=" + data.Name;
            string atendeesURL = @"atendees=" + data.Attenders;
            string hardwareURL = @"hardware=" + data.Hardware;
            string softwareURL = @"software=" + data.Software;
            string timeURL     = @"time=" + data.DateBooked;
            string durationURL = @"duration=" + data.HoursBooked;
            string FullURL     = URL + phpLocation + nameURL + "&" + atendeesURL + "&" + hardwareURL + "&" + softwareURL + "&" + timeURL + "&" + durationURL;

            return(AddData(FullURL));
        }
コード例 #2
0
ファイル: Writer.cs プロジェクト: AlexStopher/SSD-Project
        public static string AddBooking(BookingData data)
        {
            string phpLocation = @"/AddBooking.php?";
            string idURL       = @"id=" + data.ID;
            string nameURL     = @"name=" + Reader.GetIDByUserName(data.Name);
            string atendeesURL = @"atendees=" + data.Attenders;
            string hardwareURL = @"hardware=" + data.Hardware;
            string softwareURL = @"software=" + data.Software;
            string timeURL     = @"time=" + FormatDate(data.DateBooked);
            string durationURL = @"duration=" + data.HoursBooked;
            string FullURL     = URL + phpLocation + idURL + "&" + nameURL + "&" + atendeesURL + "&" + hardwareURL + "&" + softwareURL + "&" + timeURL + "&" + durationURL;

            return(AddData(FullURL));
        }