Example #1
0
        public IActionResult SS()
        {
            List <salary_standardModel> list = ss.Select().Where(e => e.check_status == 0).ToList();
            string a = JsonConvert.SerializeObject(list);

            return(Json(a));
        }
Example #2
0
        //薪酬标准
        public ActionResult Index6()
        {
            List <salary_standardModel> list = ss.Select().ToList();
            string a = JsonConvert.SerializeObject(list);

            return(Json(a));
        }
Example #3
0
        public ActionResult Index(int id)
        {
            ViewBag.guoji    = ipcb.SelectWhere(e => e.attribute_kind == "国籍");
            ViewBag.minzu    = ipcb.SelectWhere(e => e.attribute_kind == "民族");
            ViewBag.xinyan   = ipcb.SelectWhere(e => e.attribute_kind == "宗教信仰");
            ViewBag.mianmao  = ipcb.SelectWhere(e => e.attribute_kind == "政治面貌");
            ViewBag.xueli    = ipcb.SelectWhere(e => e.attribute_kind == "学历");
            ViewBag.nianxian = ipcb.SelectWhere(e => e.attribute_kind == "教育年限");
            ViewBag.zhuanye  = ipcb.SelectWhere(e => e.attribute_kind == "专业");
            ViewBag.techang  = ipcb.SelectWhere(e => e.attribute_kind == "特长");
            ViewBag.aihao    = ipcb.SelectWhere(e => e.attribute_kind == "爱好");
            ViewBag.chenzhi  = ipcb.SelectWhere(e => e.attribute_kind == "职称");
            ViewBag.xinchou  = issdb.Select();
            ViewBag.yiji     = ifkb.SelectAll();
            ViewBag.fl       = imkb.Select();
            ViewBag.user     = "******";
            human_file h = ihdb.SelectWhere(e => e.huf_id == id).FirstOrDefault();

            return(View(h));
        }
Example #4
0
        public async Task <IActionResult> check(int id, major_changeModel mcm)
        {
            string firstname  = HttpContext.Request.Form["configThird.firstKindId"];
            string senconname = HttpContext.Request.Form["name2"];
            string thirdname  = HttpContext.Request.Form["name3"];
            string majorkname = HttpContext.Request.Form["sss"];
            string majj       = HttpContext.Request.Form["sss2"];
            string saj        = HttpContext.Request.Form["sss3"];
            string je         = HttpContext.Request.Form["newsum"];
            string zt         = Request.Form["check_status"];

            if (zt == "true")
            {
                List <config_file_first_kindModel1> list = icf.Selects().Where(e => e.first_kind_id == firstname).ToList();
                mcm.new_first_kind_id   = list[0].first_kind_id;
                mcm.new_first_kind_name = list[0].first_kind_name;
                List <config_file_second_kindModel1> list1 = ics.Loads().Where(e => e.second_kind_id == senconname).ToList();
                mcm.new_second_kind_id   = list1[0].second_kind_id;
                mcm.new_second_kind_name = list1[0].second_kind_name;
                List <config_file_third_kindModel1> list2 = ict.Selectt().Where(e => e.third_kind_id == thirdname).ToList();
                mcm.new_third_kind_id   = list2[0].third_kind_id;
                mcm.new_third_kind_name = list2[0].third_kind_name;
                List <config_majorModel1> list3 = cm.Select().Where(e => e.major_kind_id == majorkname).ToList();
                mcm.new_major_kind_id   = list3[0].major_kind_id;
                mcm.new_major_kind_name = list3[0].major_kind_name;
                List <config_majorModel1> list4 = cm.Select().Where(e => e.major_id == majj).ToList();
                mcm.new_major_id   = list4[0].major_id;
                mcm.new_major_name = list4[0].major_name;
                List <salary_standardModel> list5 = ss.Select().Where(e => e.standard_name == saj).ToList();
                mcm.new_salary_standard_id   = list5[0].standard_id;
                mcm.new_salary_standard_name = list5[0].standard_name;
                mcm.new_salary_sum           = Convert.ToDouble(je);
                List <major_changeModel> list6 = mc.Sel();
                mcm.check_status = 1;
                mcm.mch_id       = id;
                mcm.register     = ViewBag.User_name;
                mcm.regist_time  = DateTime.Now;

                if (await mc.Up(id, mcm) > 0)
                {
                    return(RedirectToAction("check_success"));
                    //return RedirectToAction("Index");
                }
                else
                {
                    //ViewData.Model = mcm;
                    //return RedirectToAction("register");
                    return(Content("<script>alert('失败')</script>"));
                }
            }
            else
            {
                List <config_file_first_kindModel1> list = icf.Selects().Where(e => e.first_kind_id == firstname).ToList();
                mcm.new_first_kind_id   = list[0].first_kind_id;
                mcm.new_first_kind_name = list[0].first_kind_name;
                List <config_file_second_kindModel1> list1 = ics.Loads().Where(e => e.second_kind_id == senconname).ToList();
                mcm.new_second_kind_id   = list1[0].second_kind_id;
                mcm.new_second_kind_name = list1[0].second_kind_name;
                List <config_file_third_kindModel1> list2 = ict.Selectt().Where(e => e.third_kind_id == thirdname).ToList();
                mcm.new_third_kind_id   = list2[0].third_kind_id;
                mcm.new_third_kind_name = list2[0].third_kind_name;
                List <config_majorModel1> list3 = cm.Select().Where(e => e.major_kind_id == majorkname).ToList();
                mcm.new_major_kind_id   = list3[0].major_kind_id;
                mcm.new_major_kind_name = list3[0].major_kind_name;
                List <config_majorModel1> list4 = cm.Select().Where(e => e.major_id == majj).ToList();
                mcm.new_major_id   = list4[0].major_id;
                mcm.new_major_name = list4[0].major_name;
                List <salary_standardModel> list5 = ss.Select().Where(e => e.standard_name == saj).ToList();
                mcm.new_salary_standard_id   = list5[0].standard_id;
                mcm.new_salary_standard_name = list5[0].standard_name;
                mcm.new_salary_sum           = Convert.ToDouble(je);
                List <major_changeModel> list6 = mc.Sel();
                mcm.mch_id       = id;
                mcm.check_status = 2;

                mcm.register    = ViewBag.User_name;
                mcm.regist_time = DateTime.Now;

                if (await mc.Up(id, mcm) > 0)
                {
                    return(RedirectToAction("check_list"));
                }
                else
                {
                    return(Content("<script>alert('失败')</script>"));
                }
            }
        }