Esempio n. 1
0
        /// <summary>
        /// 语言保存
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btn_language_Save_Click(object sender, EventArgs e)
        {
            long              id  = lb_cer_id.Text.ToInt64();
            DataEntities      ent = new DataEntities();
            JobResumeLanguage ex  = new JobResumeLanguage();

            if (id > 0)
            {
                ex = (from l in ent.JobResumeLanguage where l.ID == id select l).FirstOrDefault();
            }
            ex.ResumeID        = WS.RequestLong("id");
            ex.LanguageType    = ddl_language_type.SelectedValue.ToInt32();
            ex.SpeakingAbility = ddl_language_SpeakingAbility.SelectedValue.ToInt32();
            ex.WritingAbility  = ddl_language_WritingAbility.SelectedValue.ToInt32();


            if (id < 0)
            {
                ent.AddToJobResumeLanguage(ex);
            }
            ent.SaveChanges();

            ent.Dispose();
            LoadLanguages();
        }
Esempio n. 2
0
 public void AddToJobResumeLanguage(JobResumeLanguage jobResumeLanguage)
 {
     base.AddObject("JobResumeLanguage", jobResumeLanguage);
 }
Esempio n. 3
0
 public static JobResumeLanguage CreateJobResumeLanguage(long id)
 {
     JobResumeLanguage jobResumeLanguage = new JobResumeLanguage();
     jobResumeLanguage.ID = id;
     return jobResumeLanguage;
 }