コード例 #1
0
        internal static void New_TicketInsert(long customerid, string pnr, string carrierAirline, string sector, DateTime travellingDate, string issuedFrom, decimal faceValue, decimal payable, decimal profit, bool okToBoard, string type, DateTime departuredate, string ReturnDateLongstring, string visaType, string PaymentType, string Travellingfrom, string destination)
        {
            if (string.IsNullOrWhiteSpace(ReturnDateLongstring) == true)
            {
                Table_Adapter_Ticket.Insert(customerid, pnr, carrierAirline, sector, travellingDate, issuedFrom, faceValue, payable, profit, okToBoard, type, departuredate, null, visaType, PaymentType, true, Travellingfrom, destination);
            }


            if (string.IsNullOrWhiteSpace(ReturnDateLongstring) == false)
            {
                Table_Adapter_Ticket.Insert(customerid, pnr, carrierAirline, sector, travellingDate, issuedFrom, faceValue, payable, profit, okToBoard, type, departuredate, DateTime.Parse(ReturnDateLongstring), visaType, PaymentType, true, Travellingfrom, destination);
            }

            //Table_Adapter_Ticket.Insert( customerid,  pnr,  carrierAirline,  sector,  travellingDate,  issuedFrom,  faceValue,  payable, profit,  okToBoard,  type,  departuredate,  ReturnDateLongstring,  visaType,   PaymentType, true,  Travellingfrom,  destination);
        }