예제 #1
0
 public void AddContact(string email)
 {
     DAL.Job_DAL job = new DAL.Job_DAL();
     if (job.CheckEmailExist(email) >= 1)
     {
         if (job.EmailExistWithJobId(email, job_id) <= 0)
         {
             job.AddContact(email, job_id);
         }
     }
 }
예제 #2
0
 public bool AddContact(string email)
 {
     DAL.Job_DAL job = new DAL.Job_DAL();
     if (job.CheckEmailExist(email) >= 1)
     {
         if (job.EmailExistWithJobId(email, job_id) <= 0)
         {
             job.AddContact(email, job_id);
             return(true);
         }
     }
     return(false);
 }
예제 #3
0
        public DataTable GetJobsPulic()
        {
            DAL.Job_DAL job = new DAL.Job_DAL();
            DataTable   t   = job.GetJobsPulbicToday();

            for (int i = 0; i < t.Rows.Count; i++)
            {
                DateTime tam = Convert.ToDateTime(t.Rows[i][2]);
                if (!tam.DayOfWeek.Equals(DateTime.Today.DayOfWeek))
                {
                    t.Rows[i].Delete();
                }
            }
            return(t);
        }
예제 #4
0
        public DataTable GetJobsPulic()
        {
            DAL.Job_DAL job = new DAL.Job_DAL();
            DataTable   t   = job.GetJobsPulbicToday();

            for (int i = 0; i < t.Rows.Count; i++)
            {
                DateTime tam = Convert.ToDateTime(t.Rows[i][2]);
                if (tam < DateTime.Now)
                {
                    t.Rows[i].Delete();
                }
            }
            t.AcceptChanges();
            return(t);
        }
예제 #5
0
 public DataTable GetJobByID(string d)
 {
     DAL.Job_DAL jobs = new DAL.Job_DAL();
     return(jobs.GetJobById(id, d));
 }
예제 #6
0
 public int CreateIdJobNext()
 {
     DAL.Job_DAL job = new DAL.Job_DAL();
     return(job.CreateIDJob());
 }
예제 #7
0
 public void DeleteOneContact(int idnv)
 {
     DAL.Job_DAL job = new DAL.Job_DAL();
     job.DeleteContact(idnv, job_id);
 }
예제 #8
0
 public void Update()
 {
     DAL.Job_DAL job = new DAL.Job_DAL();
     job.Update(job_title, job_id);
 }
예제 #9
0
 public void Delete()
 {
     DAL.Job_DAL job = new DAL.Job_DAL();
     job.Delete(job_id.ToString());
 }
예제 #10
0
 public void Insert(int id)
 {
     DAL.Job_DAL job = new DAL.Job_DAL();
     job.Insert(job_id, job_title, job_date);
     job.AddContactById(id, job_id);
 }
예제 #11
0
 public DataTable GetContact(string idnv)
 {
     DAL.Job_DAL job = new DAL.Job_DAL();
     return(job.GetContacts(job_id.ToString(), idnv));
 }
예제 #12
0
 public DataTable GetAllJobs(string id, string d)
 {
     DAL.Job_DAL job = new DAL.Job_DAL();
     return(job.GetJobById(id, d));
 }
예제 #13
0
 public DataTable Comments()
 {
     DAL.Job_DAL job = new DAL.Job_DAL();
     return(job.GetComments(job_id.ToString()));
 }
예제 #14
0
 public DataTable GetAllContactsJobsPublic()
 {
     DAL.Job_DAL job = new DAL.Job_DAL();
     return(job.GetContactsJobPublic(job_id));
 }