Beispiel #1
0
 public int addNewVoterToKalpi(string id, string kalpiCode, string firstName, string lastName, string userName, string password, string permission, DateTime dob, string address, string area, string city, string tell, string accomid)
 {
     con.sqlCommand("AddNewVoterToKalpi");
     con.InsertValstring("@ID", Id);                     //ID for query check.
     con.InsertValstring("@kalpiCode", KalpiCode);       //Change kalpiCode to kalpi manager code.
     con.InsertValstring("@firstName", FName);           //first name
     con.InsertValstring("@lastName", LName);            //last name
     con.InsertValstring("@userName", username);         //user name
     con.InsertValstring("@pass", Passowrd);             //password
     con.InsertValstring("@Permission", Permission);     //permission
     con.InsertValDOB("@dob", DOB);                      //date of birth
     con.InsertValstring("@Address", Address);           //address
     con.InsertValstring("@Area", Area);                 //area
     con.InsertValstring("@City", City);                 //city
     con.InsertValstring("@Tell", Tell);                 //tellephone
     con.InsertValstring("@Accomid", AccomId);           //accomulate id
     return(int.Parse(con.getVal("Result").ToString())); //result
 }