コード例 #1
0
 public List<SaveJobs> GetSaveJob2(String candidate)
 {
     List<SaveJobs> sjList = new List<SaveJobs>();
     DataTable tbl = facade.GetSaveJob2(candidate);
     foreach (DataRow r in tbl.Rows)
     {
         SaveJobs sj = new SaveJobs(r[0].ToString(), r[1].ToString(), r[2].ToString(), r[3].ToString(), r[4].ToString(), r[5].ToString());
         sjList.Add(sj);
     }
     return sjList;
 }
コード例 #2
0
 public List<SaveJobs> GetSaveJobs(string employer)
 {
     List<SaveJobs> sjList = new List<SaveJobs>();
     DataTable tbl = facade.GetSaveJobs(employer);
     foreach (DataRow r in tbl.Rows)
     {
         SaveJobs sj = new SaveJobs(Convert.ToInt16(r[0].ToString()), r[1].ToString(), Convert.ToInt16(r[2].ToString()), Convert.ToDateTime(r[3].ToString()), r[4].ToString(), r[5].ToString(), r[6].ToString(), Convert.ToDateTime(r[7].ToString()));
         sjList.Add(sj);
     }
     return sjList;
 }
コード例 #3
0
 public List<SaveJobs> GetApplicants(int jid)
 {
     List<SaveJobs> sjList = new List<SaveJobs>();
     DataTable tbl = facade.GetApplicants(jid);
     foreach (DataRow r in tbl.Rows)
     {
         if (r[9] == null || r[9].ToString() == "")
         {
             r[9] = false;
         }
         SaveJobs sj = new SaveJobs(Convert.ToInt32(r[0].ToString()), r[1].ToString(), Convert.ToInt32(r[2].ToString()), Convert.ToDateTime(r[3].ToString()), r[4].ToString(), r[5].ToString(), Convert.ToDateTime(r[6].ToString()), r[7].ToString(), r[8].ToString(), Convert.ToBoolean(r[9].ToString()), Convert.ToBoolean(r[10].ToString()));
         sjList.Add(sj);
     }
     return sjList;
 }