Esempio n. 1
0
 public DataSet.DsPSMS.ST_SUBJECT_MSTDataTable getAllSubjectName(string subjectId, out string msg)
 {
     DataSet.DsPSMS.ST_SUBJECT_MSTDataTable result = new DataSet.DsPSMS.ST_SUBJECT_MSTDataTable();
     try
     {
         timedb.Open();
         result = timedb.getAllSubjectName(subjectId);
         if (result != null && result.Rows.Count > 0)
         {
             msg = result.Rows.Count + " user found";
         }
         else
         {
             result = null;
             msg    = "user not found";
         }
     }
     catch
     {
         msg = "error has occure when insert data";
         return(null);
     }
     finally
     {
         timedb.Close();
     }
     return(result);
 }