Ejemplo n.º 1
0
        /// <summary>
        /// 恢复详细
        /// </summary>
        /// <returns></returns>
        public ActionResult HufuShow(string id)
        {
            human_file_dig dig = new human_file_dig()
            {
                hfd_id = Convert.ToInt16(id)
            };

            dig = dig_bll.digClass(e => e.hfd_id == dig.hfd_id);
            return(View(dig));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 删除数据
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public ActionResult EndDeleteGo(string id)
        {
            human_file_dig dig = new human_file_dig()
            {
                hfd_id = Convert.ToInt16(id)
            };
            int ok = dig_bll.Delete(dig);

            return(RedirectToAction("EndDelete", "DeletHuman"));
        }
Ejemplo n.º 3
0
 public int Del(human_file_dig t)
 {
     return(dao.Del(t));
 }
Ejemplo n.º 4
0
 public int Change(human_file_dig t)
 {
     return(dao.Change(t));
 }
Ejemplo n.º 5
0
 public int Add(human_file_dig t)
 {
     return(dao.Add(t));
 }
Ejemplo n.º 6
0
        public ActionResult GoHuifu(string id)
        {
            human_file_dig fileDelete = new human_file_dig()
            {
                hfd_id = Convert.ToInt16(id)
            };

            fileDelete = dig_bll.digClass(e => e.hfd_id == fileDelete.hfd_id);
            human_file dig = new human_file
            {
                human_id                  = fileDelete.human_id,
                first_kind_id             = fileDelete.first_kind_id,
                first_kind_name           = fileDelete.first_kind_name,
                second_kind_name          = fileDelete.second_kind_name,
                second_kind_id            = fileDelete.second_kind_id,
                third_kind_id             = fileDelete.third_kind_id,
                third_kind_name           = fileDelete.third_kind_name,
                human_name                = fileDelete.human_name,
                human_address             = fileDelete.human_address,
                human_postcode            = fileDelete.human_postcode,
                human_pro_designation     = fileDelete.human_pro_designation,
                human_major_kind_id       = fileDelete.human_major_kind_id,
                human_major_kind_name     = fileDelete.human_major_kind_name,
                human_major_id            = fileDelete.human_major_id,
                hunma_major_name          = fileDelete.hunma_major_name,
                human_telephone           = fileDelete.human_telephone,
                human_mobilephone         = fileDelete.human_mobilephone,
                human_bank                = fileDelete.human_bank,
                human_account             = fileDelete.human_account,
                human_qq                  = fileDelete.human_qq,
                human_email               = fileDelete.human_email,
                human_hobby               = fileDelete.human_hobby,
                human_speciality          = fileDelete.human_speciality,
                human_sex                 = fileDelete.human_sex,
                human_religion            = fileDelete.human_religion,
                human_party               = fileDelete.human_party,
                human_nationality         = fileDelete.human_nationality,
                human_race                = fileDelete.human_race,
                human_birthday            = fileDelete.human_birthday,
                human_birthplace          = fileDelete.human_birthplace,
                human_age                 = fileDelete.human_age,
                human_educated_degree     = fileDelete.human_educated_degree,
                human_educated_years      = fileDelete.human_educated_years,
                human_educated_major      = fileDelete.human_educated_major,
                human_society_security_id = fileDelete.human_society_security_id,
                human_id_card             = fileDelete.human_id_card,
                remark                  = fileDelete.remark,
                salary_standard_id      = fileDelete.salary_standard_id,
                salary_standard_name    = fileDelete.salary_standard_name,
                salary_sum              = fileDelete.salary_sum,
                demand_salaray_sum      = fileDelete.demand_salaray_sum,
                paid_salary_sum         = fileDelete.paid_salary_sum,
                major_change_amount     = fileDelete.major_change_amount,
                bonus_amount            = fileDelete.bonus_amount,
                training_amount         = fileDelete.training_amount,
                file_chang_amount       = fileDelete.file_chang_amount,
                human_histroy_records   = fileDelete.human_histroy_records,
                human_family_membership = fileDelete.human_family_membership,
                human_picture           = fileDelete.human_picture,
                attachment_name         = fileDelete.attachment_name,
                check_status            = fileDelete.check_status,
                register                = fileDelete.register,
                checker                 = fileDelete.checker,
                changer                 = fileDelete.changer,
                regist_time             = fileDelete.regist_time,
                check_time              = fileDelete.check_time,
                change_time             = fileDelete.change_time,
                lastly_change_time      = fileDelete.lastly_change_time,
                recovery_time           = fileDelete.recovery_time,
                human_file_status       = fileDelete.human_file_status,
                delete_time             = fileDelete.delete_time
            };
            int ok = 0;

            using (TransactionScope ts = new TransactionScope())
            {
                ok += file_bll.InsertFile(dig);
                ok += dig_bll.Delete(fileDelete);
                if (ok == 2)
                {
                    ts.Complete();//提交事务
                    return(RedirectToAction("HuiFu", "DeletHuman"));
                }
                else
                {
                    return(RedirectToAction("HufuShow", "DeletHuman", fileDelete.hfd_id));
                }
            }
        }
Ejemplo n.º 7
0
 public human_file_dig SelectOne(human_file_dig us)
 {
     return(ist.SelectBy(e => e.hfd_id == us.hfd_id)[0]);
 }
Ejemplo n.º 8
0
 public bool Upd(human_file_dig us)
 {
     return(ist.Upd(us));
 }
Ejemplo n.º 9
0
 public bool Add(human_file_dig us)
 {
     return(ist.Add(us));
 }
Ejemplo n.º 10
0
 public bool Del(human_file_dig us)
 {
     return(ist.Del(us));
 }
Ejemplo n.º 11
0
 /// <summary>
 /// 删除
 /// </summary>
 /// <param name="dig"></param>
 /// <returns></returns>
 public int Delete(human_file_dig dig)
 {
     return(dao.Delete(dig));
 }
Ejemplo n.º 12
0
 /// <summary>
 /// 添加
 /// </summary>
 /// <param name="dig"></param>
 /// <returns></returns>
 public int InsertClass(human_file_dig dig)
 {
     return(dao.InsertClass(dig));
 }