示例#1
0
 public bool UpdateAirport(string Code3, string Code4, int CiryID, string Pers_Name, string Eng_Name, short TypeID, string Original_Code3, string usr, string pass)
 {
     if (authenticate(usr, pass, 36) == false)
     {
         return(false);
     }
     try
     {
         AirportTableAdapter u = new AirportTableAdapter();
         u.UpdateQuery(Code3, Code4, CiryID, Pers_Name, Eng_Name, TypeID, Original_Code3);
     }
     catch (Exception e) { return(false); }
     return(true);
 }
示例#2
0
 public bool InsertAirport(string Code3, string Code4, int CiryID, string Pers_Name, string Eng_Name, short TypeID, string usr, string pass)
 {
     if (authenticate(usr, pass, 35) == false)
     {
         return(false);
     }
     try
     {
         AirportTableAdapter u = new AirportTableAdapter();
         u.Insert(Code3, Code4, CiryID, Pers_Name, Eng_Name, TypeID);
     }
     catch (Exception e) { return(false); }
     return(true);
 }
示例#3
0
 public bool DeleteAirport(string Original_Code3, string usr, string pass)
 {
     if (authenticate(usr, pass, 34) == false)
     {
         return(false);
     }
     try
     {
         AirportTableAdapter u = new AirportTableAdapter();
         u.DeleteQuery(Original_Code3);
     }
     catch (Exception e) { return(false); }
     return(true);
 }