コード例 #1
0
 public bool UpdateAirline(string code3, string Code4, string Eng_Name, string Pers_Name, short Type, int Country, string Original_code3, string usr, string pass)
 {
     if (authenticate(usr, pass, 40) == false)
     {
         return(false);
     }
     try
     {
         AirlineTableAdapter u = new AirlineTableAdapter();
         u.UpdateQuery(code3, Code4, Eng_Name, Pers_Name, Type, Country, Original_code3);
     }
     catch (Exception e) { return(false); }
     return(true);
 }
コード例 #2
0
 public bool InsertAirline(string code3, string Code4, string Eng_Name, string Pers_Name, short Type, int Country, string usr, string pass)
 {
     if (authenticate(usr, pass, 39) == false)
     {
         return(false);
     }
     try
     {
         AirlineTableAdapter u = new AirlineTableAdapter();
         u.Insert(code3, Code4, Eng_Name, Pers_Name, Type, Country);
     }
     catch (Exception e) { return(false); }
     return(true);
 }
コード例 #3
0
 public bool DeleteAirline(string Original_code3, string usr, string pass)
 {
     if (authenticate(usr, pass, 38) == false)
     {
         return(false);
     }
     try
     {
         AirlineTableAdapter u = new AirlineTableAdapter();
         u.DeleteQuery(Original_code3);
     }
     catch (Exception e) { return(false); }
     return(true);
 }