예제 #1
0
 public void save()
 {
     DBConnect proc = new DBConnect();
     if (this.id < 0)
     {
         proc.addPoste(nom, description);
         id = Convert.ToInt32(proc.getLastStuff("Poste").Rows[0]["last_insert_rowid()"].ToString());
     }
     else
     {
         proc.modifyPoste(id, nom, description);
     }
 }
예제 #2
0
 public void save()
 {
     DBConnect proc = new DBConnect();
     int id = -1;
     if (id < 0)
     {
         proc.addPoste(pname, pdesc);
         //id = Convert.ToInt32(proc.getLastStuff("Poste").Rows[0]["last_insert_rowid()"].ToString());
     }
     else
     {
         proc.modifyPoste(id, pname, pdesc);
     }
 }