Esempio n. 1
0
        public List <Model.engage_major_releaseModel> Select()
        {
            List <engage_major_release>      list  = SelectAll();
            List <engage_major_releaseModel> list2 = new List <engage_major_releaseModel>();

            foreach (engage_major_release item in list)
            {
                engage_major_releaseModel sm = new engage_major_releaseModel()
                {
                    Id               = item.Id,
                    first_kind_id    = item.first_kind_id,
                    first_kind_name  = item.first_kind_name,
                    second_kind_id   = item.second_kind_id,
                    second_kind_name = item.second_kind_name,
                    third_kind_id    = item.third_kind_id,
                    third_kind_name  = item.third_kind_name,
                    major_kind_id    = item.major_kind_id,
                    major_kind_name  = item.major_kind_name,
                    major_id         = item.major_id,
                    major_name       = item.major_name,
                    human_amount     = item.human_amount,
                    engage_type      = item.engage_type,
                    deadline         = item.deadline,
                    register         = item.register,
                    changer          = item.changer,
                    regist_time      = item.regist_time,
                    change_time      = item.change_time,
                    major_describe   = item.major_describe,
                    engage_required  = item.engage_required,
                };
                list2.Add(sm);
            }
            return(list2);
        }
Esempio n. 2
0
        public List <engage_major_releaseModel> selectupdate(int id)
        {
            List <engage_major_release> list = SeleteBy(e => e.id == id);


            List <engage_major_releaseModel> li = new List <engage_major_releaseModel>();

            foreach (engage_major_release item in list)
            {
                engage_major_releaseModel ko = new engage_major_releaseModel();
                ko.id               = item.id;
                ko.first_kind_id    = item.first_kind_id;
                ko.first_kind_name  = item.first_kind_name;
                ko.second_kind_id   = item.second_kind_id;
                ko.second_kind_name = item.second_kind_name;
                ko.third_kind_id    = item.third_kind_id;
                ko.third_kind_name  = item.third_kind_name;
                ko.major_kind_id    = item.major_kind_id;
                ko.major_kind_name  = item.major_kind_name;
                ko.major_id         = item.major_id;
                ko.major_name       = item.major_name;
                ko.human_amount     = item.human_amount;
                ko.engage_type      = item.engage_type;
                ko.deadline         = item.deadline;
                ko.register         = item.register;
                ko.changer          = item.changer;
                ko.regist_time      = item.regist_time;
                ko.change_time      = item.change_time;
                ko.major_describe   = item.major_describe;
                ko.engage_required  = item.engage_required;   li.Add(ko);
            }
            return(li);
        }
Esempio n. 3
0
        public ActionResult Add(engage_resumeModel s)
        {
            engage_major_releaseModel csm = new engage_major_releaseModel
            {
                major_kind_id = s.human_major_kind_id
            };
            engage_major_releaseModel cfm = new engage_major_releaseModel
            {
                major_id = s.human_major_id
            };
            List <engage_major_releaseModel> lists = sb.SelectByName(csm);
            List <engage_major_releaseModel> listf = sb.SelectByNamee(cfm);

            s.human_major_kind_name = lists[0].major_kind_name;
            s.human_major_name      = listf[0].major_name;
            s.check_time            = DateTime.Now;
            s.test_check_time       = DateTime.Now;
            s.pass_regist_time      = DateTime.Now;
            s.pass_check_time       = DateTime.Now;
            if (ss.Add(s) > 0)
            {
                return(Content("<script>alert('新增成功');window.location='/engage_resume/Add2'</script>"));
            }
            else
            {
                return(Content("<script>alert('新增成功');window.location='Add2'</script>"));
            }
        }
Esempio n. 4
0
        public int Add(engage_major_releaseModel item)
        {
            engage_major_release ko = new engage_major_release();

            ko.id               = item.id;
            ko.first_kind_id    = item.first_kind_id;
            ko.first_kind_name  = item.first_kind_name;
            ko.second_kind_id   = item.second_kind_id;
            ko.second_kind_name = item.second_kind_name;
            ko.third_kind_id    = item.third_kind_id;
            ko.third_kind_name  = item.third_kind_name;
            ko.major_kind_id    = item.major_kind_id;
            ko.major_kind_name  = item.major_kind_name;
            ko.major_id         = item.major_id;
            ko.major_name       = item.major_name;
            ko.human_amount     = item.human_amount;
            ko.engage_type      = item.engage_type;
            ko.deadline         = item.deadline;
            ko.register         = item.register;
            ko.changer          = item.changer;
            ko.regist_time      = item.regist_time;
            ko.change_time      = item.change_time;
            ko.major_describe   = item.major_describe;
            ko.engage_required  = item.engage_required; return(Add(ko));
        }
Esempio n. 5
0
        public engage_major_releaseModel SelectBy(engage_major_releaseModel st)
        {
            List <engage_major_release> list = SelectBy(e => e.Id.Equals(st.Id));
            engage_major_releaseModel   sd   = new engage_major_releaseModel()
            {
                Id               = list[0].Id,
                first_kind_id    = list[0].first_kind_id,
                first_kind_name  = list[0].first_kind_name,
                second_kind_id   = list[0].second_kind_id,
                second_kind_name = list[0].second_kind_name,
                third_kind_id    = list[0].third_kind_id,
                third_kind_name  = list[0].third_kind_name,
                major_id         = list[0].major_id,
                major_describe   = list[0].major_describe,
                major_kind_id    = list[0].major_kind_id,
                major_kind_name  = list[0].major_kind_name,
                major_name       = list[0].major_name,
                engage_type      = list[0].engage_type,
                engage_required  = list[0].engage_required,
                regist_time      = list[0].regist_time,
                register         = list[0].register,
                human_amount     = list[0].human_amount,
                changer          = list[0].changer,
                change_time      = list[0].change_time,
                deadline         = list[0].deadline
            };

            return(sd);
        }
Esempio n. 6
0
        public List <engage_major_releaseModel> Fenye(int dqy)
        {
            int rows = 0;
            List <engage_major_release>      list  = FenYe <int>(e => e.Id, e => e.Id > 0, ref rows, dqy, 3);
            List <engage_major_releaseModel> list2 = new List <engage_major_releaseModel>();

            foreach (engage_major_release item in list)
            {
                engage_major_releaseModel um = new engage_major_releaseModel()
                {
                    Id               = item.Id,
                    first_kind_id    = item.first_kind_id,
                    first_kind_name  = item.first_kind_name,
                    second_kind_id   = item.second_kind_id,
                    second_kind_name = item.second_kind_name,
                    third_kind_id    = item.third_kind_id,
                    third_kind_name  = item.third_kind_name,
                    major_kind_id    = item.major_kind_id,
                    major_kind_name  = item.major_kind_name,
                    major_id         = item.major_id,
                    major_name       = item.major_name,
                    human_amount     = item.human_amount,
                    engage_type      = item.engage_type,
                    deadline         = item.deadline,
                    register         = item.register,
                    changer          = item.changer,
                    regist_time      = item.regist_time,
                    change_time      = item.change_time,
                    major_describe   = item.major_describe,
                    engage_required  = item.engage_required,
                };
                list2.Add(um);
            }
            return(list2);
        }
Esempio n. 7
0
        public ActionResult position_release_change(int id)
        {
            ViewBag.dl  = xlkdl();
            ViewBag.dt2 = xlk3();
            string us123 = HttpContext.Session["us"].ToString();
            List <engage_major_releaseModel> list = eng.selectupdate(id);
            engage_major_releaseModel        emm  = new engage_major_releaseModel()
            {
                id               = list[0].id,
                first_kind_id    = list[0].first_kind_id,
                first_kind_name  = list[0].first_kind_name,
                second_kind_id   = list[0].second_kind_id,
                second_kind_name = list[0].second_kind_name,
                third_kind_id    = list[0].third_kind_id,
                third_kind_name  = list[0].third_kind_name,
                major_kind_id    = list[0].major_kind_id,
                major_kind_name  = list[0].major_kind_name,
                major_id         = list[0].major_id,
                major_name       = list[0].major_name,
                human_amount     = list[0].human_amount,
                engage_type      = list[0].engage_type,
                deadline         = list[0].deadline,
                register         = list[0].register,
                changer          = us123,
                regist_time      = list[0].regist_time,
                change_time      = list[0].change_time,
                major_describe   = list[0].major_describe,
                engage_required  = list[0].engage_required,
            };

            ViewData.Model = emm;
            return(View());
        }
Esempio n. 8
0
        public ActionResult position_release_change(int id, FormCollection collection)
        {
            engage_major_releaseModel emrm = new engage_major_releaseModel();

            emrm.id = id;
            emrm.first_kind_name  = Request["first_kind_name"];
            emrm.second_kind_name = Request["second_kind_name"];
            emrm.third_kind_name  = Request["third_kind_name"];
            emrm.engage_type      = Request["engage_type"];
            emrm.major_kind_name  = Request["major_kind_name"];
            emrm.major_name       = Request["major_name"];
            emrm.human_amount     = int.Parse(Request["human_amount"]);
            emrm.deadline         = DateTime.Parse(Request["deadline"]);
            emrm.changer          = Request["changer"];
            emrm.change_time      = DateTime.Parse(Request["change_time"]);
            emrm.major_describe   = Request["major_describe"];
            emrm.engage_required  = Request["engage_required"];
            int i1 = eng.update1(emrm);

            if (i1 > 0)
            {
                return(JavaScript("window.location='/engage_major_release/position_release_search'"));
            }
            else
            {
                return(View());
            }
        }
Esempio n. 9
0
        public int Update(engage_major_releaseModel st)
        {
            engage_major_release est = new engage_major_release()
            {
                Id               = st.Id,
                first_kind_id    = st.first_kind_id,
                first_kind_name  = st.first_kind_name,
                second_kind_id   = st.second_kind_id,
                second_kind_name = st.second_kind_name,
                third_kind_id    = st.third_kind_id,
                third_kind_name  = st.third_kind_name,
                major_id         = st.major_id,
                major_describe   = st.major_describe,
                major_kind_id    = st.major_kind_id,
                major_kind_name  = st.major_kind_name,
                major_name       = st.major_name,
                engage_type      = st.engage_type,
                engage_required  = st.engage_required,
                regist_time      = st.regist_time,
                register         = st.register,
                human_amount     = st.human_amount,
                changer          = st.changer,
                change_time      = st.change_time,
                deadline         = st.deadline
            };

            return(Update(est));
        }
        // GET: engage_major_release/Create
        public ActionResult Create()
        {
            List <config_file_first_kindModel> list = ib.Select();
            List <SelectListItem> listyj            = new List <SelectListItem>();

            for (int i = 0; i < list.Count; i++)
            {
                SelectListItem sl = new SelectListItem()
                {
                    Text  = list[i].first_kind_name.ToString(),
                    Value = list[i].first_kind_id.ToString()
                };
                listyj.Add(sl);
            }
            List <config_major_kindModel> lll  = ia.majorKindSelect();
            List <SelectListItem>         liss = new List <SelectListItem>();

            for (int i = 0; i < lll.Count; i++)
            {
                SelectListItem sl = new SelectListItem()
                {
                    Text  = lll[i].major_kind_name.ToString(),
                    Value = lll[i].major_kind_id.ToString()
                };
                liss.Add(sl);
            }
            engage_major_releaseModel ctm = new engage_major_releaseModel();

            ViewData["yj"] = listyj;
            ViewData["jj"] = liss;
            ctm.register   = Session["us"].ToString();
            return(View(ctm));
        }
Esempio n. 11
0
        public int engage_major_releaseDel(engage_major_releaseModel emm)
        {
            engage_major_release emr = new engage_major_release()
            {
                Id = emm.Id
            };

            return(Delete(emr));
        }
Esempio n. 12
0
 //职位修改
 public ActionResult engage_major_releaseUpdate(engage_major_releaseModel emm)
 {
     if (iemb.engage_major_releaseUpdate(emm) > 0)
     {
         return(Content("<script>alert('职位发布变更成功!');location.href='/engage_major_release/Change';</script>"));
     }
     else
     {
         return(Content("<script>alert('职位发布变更失败!');location.href='/engage_major_release/Update/'+emm.Id;</script>"));
     }
 }
Esempio n. 13
0
 public ActionResult Update(engage_major_releaseModel u)
 {
     // TODO: Add update logic here
     if (re.Update(u) > 0)
     {
         return(JavaScript("alert('修改成功');window.location.href='/engage_major_release/Index'"));
     }
     else
     {
         ViewBag.dt = u;
     }
     return(View());
 }
 public ActionResult Create(engage_major_releaseModel em)
 {
     try
     {
         config_file_second_kindModel csm = new config_file_second_kindModel
         {
             second_kind_id = em.second_kind_id
         };
         config_file_first_kindModel cfm = new config_file_first_kindModel
         {
             first_kind_id = em.first_kind_id
         };
         config_file_third_kindModel css = new config_file_third_kindModel
         {
             third_kind_id = em.third_kind_id
         };
         config_major_kindModel cff = new config_major_kindModel
         {
             major_kind_id = em.major_kind_id
         };
         config_majorModel cmm = new config_majorModel
         {
             major_id      = em.major_id,
             major_kind_id = em.major_kind_id
         };
         List <config_file_second_kindModel> lists = sb.SelectByName(csm);
         List <config_file_first_kindModel>  listf = ib.SelectByName(cfm);
         List <config_file_third_kindModel>  lis   = isb.SelectByName(css);
         List <config_major_kindModel>       liss  = ia.SelectByName(cff);
         List <config_majorModel>            litt  = iii.SelectByName(cmm);
         em.second_kind_name = lists[0].second_kind_name;
         em.first_kind_name  = listf[0].first_kind_name;
         em.third_kind_name  = lis[0].third_kind_name;
         em.major_kind_name  = liss[0].major_kind_name;
         em.major_name       = litt[0].major_name;
         em.change_time      = DateTime.Now;
         if (re.Add(em) > 0)
         {
             return(Content("<script>alert('新增成功');window.location='Create'</script>"));
         }
         else
         {
             return(View(em));
         }
     }
     catch
     {
         return(View());
     }
 }
Esempio n. 15
0
        public ActionResult position_register()
        {
            ViewBag.dl = xlkdl();
            string us = HttpContext.Session["us"].ToString();
            engage_major_releaseModel emr = new engage_major_releaseModel()
            {
                register = us
            };

            ViewBag.dt     = xlk();
            ViewBag.dt1    = xlk2();
            ViewBag.dt2    = xlk3();
            ViewData.Model = emr;
            return(View());
        }
        // GET: engage_major_release/Delete/5
        public ActionResult Delete(int id)
        {
            engage_major_releaseModel emrm = new engage_major_releaseModel()
            {
                Id = id
            };

            if (re.Del(emrm) > 0)
            {
                return(Content("<script>alert('删除成功!'),window.location.href='/engage_major_release/Index'</script>"));
            }
            else
            {
                return(Content("<script>alert('删除失败!'),window.location.href='/engage_major_release/Index'</script>"));
            }
        }
Esempio n. 17
0
        //职位删除
        public ActionResult Delete(int id)
        {
            engage_major_releaseModel emm = new engage_major_releaseModel()
            {
                Id = Convert.ToInt16(id)
            };

            if (iemb.engage_major_releaseDel(emm) > 0)
            {
                return(Content("<script>alert('职位发布删除成功!');location.href='/engage_major_release/Change';</script>"));
            }
            else
            {
                return(Content("<script>alert('职位发布删除失败!');location.href='/engage_major_release/Change';</script>"));
            }
        }
Esempio n. 18
0
        public ActionResult Delete(int id)
        {
            engage_major_releaseModel st = new engage_major_releaseModel()
            {
                Id = short.Parse(id.ToString())
            };

            if (re.Del(st) > 0)
            {
                return(RedirectToAction("Index"));
            }
            else
            {
                return(RedirectToAction("Index"));
            }
        }
Esempio n. 19
0
        public List <engage_major_releaseModel> SelectByNamee(engage_major_releaseModel st)
        {
            List <engage_major_release>      list  = SelectBy(e => e.major_id.Equals(st.major_id));
            List <engage_major_releaseModel> list2 = new List <engage_major_releaseModel>();

            foreach (var item in list)
            {
                engage_major_releaseModel sd = new engage_major_releaseModel()
                {
                    Id         = item.Id,
                    major_id   = item.major_id,
                    major_name = item.major_name,
                };
                list2.Add(sd);
            }
            return(list2);
        }
Esempio n. 20
0
        public ActionResult Update(int id)
        {
            engage_major_releaseModel sd = new engage_major_releaseModel()
            {
                Id = short.Parse(id.ToString())
            };
            List <engage_major_releaseModel> list = re.SelectBy(sd);
            engage_major_releaseModel        st   = new engage_major_releaseModel()
            {
                Id               = list[0].Id,
                first_kind_id    = list[0].first_kind_id,
                first_kind_name  = list[0].first_kind_name,
                second_kind_id   = list[0].second_kind_id,
                second_kind_name = list[0].second_kind_name,
                third_kind_id    = list[0].third_kind_id,
                third_kind_name  = list[0].third_kind_name,
                major_kind_id    = list[0].major_kind_id,
                major_kind_name  = list[0].major_kind_name,
                major_id         = list[0].major_id,
                major_name       = list[0].major_name,
                human_amount     = list[0].human_amount,
                engage_type      = list[0].engage_type,
                deadline         = list[0].deadline,
                changer          = list[0].changer,
                change_time      = list[0].change_time,
                major_describe   = list[0].major_describe,
                engage_required  = list[0].engage_required,
                register         = list[0].register,
                regist_time      = list[0].regist_time,
            };

            List <usersModel>     list2  = us.Select();
            List <SelectListItem> listyj = new List <SelectListItem>();

            for (int i = 0; i < list2.Count; i++)
            {
                SelectListItem sl = new SelectListItem()
                {
                    Text  = list2[i].u_name.ToString(),
                    Value = list2[i].u_name.ToString()
                };
                listyj.Add(sl);
            }
            ViewData["lj"] = listyj;
            return(View(st));
        }
Esempio n. 21
0
 public ActionResult Add(engage_major_releaseModel emm)
 {
     emm.first_kind_name  = icfb.config_file_first_kindSelectByName(emm.first_kind_id);
     emm.second_kind_name = icsb.config_file_second_kindSelectByName(emm.second_kind_id);
     emm.third_kind_name  = ictb.SelectByName(emm.third_kind_id);
     emm.major_kind_name  = icmb.Selmajor_kind_name(emm.major_kind_id);
     emm.major_name       = icb.SelectByName(emm.major_kind_id, emm.major_id);
     emm.change_time      = DateTime.Now;
     if (iemb.engage_major_releaseAdd(emm) > 0)
     {
         return(Content("<script>alert('职位发布登记成功!');location.href='/engage_major_release/engage_major_releaseShow';</script>"));
     }
     else
     {
         return(Content("<script>alert('职位发布登记失败!');location.href='/engage_major_release/engage_major_releaseShow';</script>"));
     }
 }
Esempio n. 22
0
        // GET: engage_resume
        public ActionResult Create(engage_major_releaseModel emrm)
        {
            //职位分类
            List <config_major_kindModel> cmm = icmb.config_major_kindSelect();
            //国籍
            List <config_public_charModel> gj = icpb.config_public_charSeleBYKind("国籍");

            if (emrm != null)
            {
                //从职位申请跳转
                return(View());
            }
            else
            {
                //直接点击简历登记
                return(View());
            }
        }
Esempio n. 23
0
        //职位修改回显
        public ActionResult Update(int id)
        {
            engage_major_releaseModel emm  = iemb.engage_major_releaseSelectById(id);
            List <SelectListItem>     list = new List <SelectListItem>();

            list.Add(new SelectListItem()
            {
                Text = "社会招聘", Value = "社会招聘"
            });
            list.Add(new SelectListItem()
            {
                Text = "校园招聘", Value = "校园招聘"
            });
            SelectList sl = new SelectList(list, "Text", "Value", emm.engage_type);

            ViewBag.zplx = sl;
            return(View(emm));
        }
Esempio n. 24
0
        public int update(engage_major_releaseModel item)
        {
            engage_major_release emr = db.engage_major_release.Where(e => e.id.Equals(item.id)).FirstOrDefault();

            emr.id = item.id;
            emr.first_kind_name  = item.first_kind_name;
            emr.second_kind_name = item.second_kind_name;
            emr.third_kind_name  = item.third_kind_name;
            emr.engage_type      = item.engage_type;
            emr.major_kind_name  = item.major_kind_name;
            emr.major_name       = item.major_name;
            emr.human_amount     = item.human_amount;
            emr.deadline         = item.deadline;
            emr.changer          = item.changer;
            emr.change_time      = item.change_time;
            emr.major_describe   = item.major_describe;
            emr.engage_required  = item.engage_required;
            return(db.SaveChanges());
        }
 public ActionResult Edit(engage_major_releaseModel em)
 {
     try
     {
         if (re.Update(em) > 0)
         {
             return(Content("<script>alert('修改成功!'),window.location.href='/engage_major_release/Index'</script>"));
         }
         else
         {
             ViewData.Model = em;
             return(Content("<script>alert('修改失败!'),window.location.href='/engage_major_release/Edit'</script>"));
         }
     }
     catch
     {
         return(View());
     }
 }
Esempio n. 26
0
        public ActionResult Add(int id)
        {
            engage_major_releaseModel sd = new engage_major_releaseModel()
            {
                Id = short.Parse(id.ToString())
            };
            List <engage_major_releaseModel> list   = sb.SelectBy(sd);
            List <SelectListItem>            listyj = new List <SelectListItem>();
            SelectListItem sl = new SelectListItem()
            {
                Text  = list[0].major_kind_name.ToString(),
                Value = list[0].major_kind_id.ToString()
            };

            listyj.Add(sl);

            List <SelectListItem> listy = new List <SelectListItem>();
            SelectListItem        si    = new SelectListItem()
            {
                Text  = list[0].major_name.ToString(),
                Value = list[0].major_id.ToString()
            };

            listy.Add(si);

            List <SelectListItem> lista = new List <SelectListItem>();
            SelectListItem        sa    = new SelectListItem()
            {
                Text  = list[0].engage_type.ToString(),
                Value = list[0].engage_type.ToString()
            };

            lista.Add(sa);
            engage_resumeModel ctm = new engage_resumeModel();

            ViewData["yj"] = listyj;
            ViewData["jj"] = listy;
            ViewData["ej"] = lista;
            return(View(ctm));
        }
Esempio n. 27
0
        public List <engage_major_releaseModel> FenYe(int currentPage, int pageSize, out int rows)
        {
            var list = CreateContext().engage_major_release.AsNoTracking().OrderBy(e => e.Id);

            rows = list.Count();
            var fy = list
                     .Skip((currentPage - 1) * pageSize)
                     .Take(pageSize)
                     .ToList();
            List <engage_major_releaseModel> elist = new List <engage_major_releaseModel>();

            foreach (engage_major_release emm in fy)
            {
                engage_major_releaseModel emr = new engage_major_releaseModel()
                {
                    Id               = emm.Id,
                    first_kind_id    = emm.first_kind_id,
                    first_kind_name  = emm.first_kind_name,
                    second_kind_id   = emm.second_kind_id,
                    second_kind_name = emm.second_kind_name,
                    third_kind_id    = emm.third_kind_id,
                    third_kind_name  = emm.third_kind_name,
                    major_kind_id    = emm.major_kind_id,
                    major_kind_name  = emm.major_kind_name,
                    major_id         = emm.major_id,
                    major_name       = emm.major_name,
                    human_amount     = emm.human_amount,
                    engage_type      = emm.engage_type,
                    deadline         = emm.deadline,
                    register         = emm.register,
                    changer          = emm.changer,
                    regist_time      = emm.regist_time,
                    major_describe   = emm.major_describe,
                    engage_required  = emm.engage_required,
                    change_time      = emm.change_time
                };
                elist.Add(emr);
            }
            return(elist);
        }
Esempio n. 28
0
        public FenYeModel Fenye(int currentPage, int rl)
        {
            FenYeModel fym = new FenYeModel();
            List <engage_major_releaseModel> list = new List <engage_major_releaseModel>();
            int rows = 0;
            var data = db.Set <engage_major_release>().OrderBy(e => e.id).AsNoTracking();

            rows = data.Count();
            List <engage_major_release> list2 = FenYe <int>(e => e.id, e => e.id > 0, ref rows, currentPage, rl);

            foreach (engage_major_release item in list2)
            {
                engage_major_releaseModel emrm = new engage_major_releaseModel();
                emrm.id               = item.id;
                emrm.first_kind_id    = item.first_kind_id;
                emrm.first_kind_name  = item.first_kind_name;
                emrm.second_kind_id   = item.second_kind_id;
                emrm.second_kind_name = item.second_kind_name;
                emrm.third_kind_id    = item.third_kind_id;
                emrm.third_kind_name  = item.third_kind_name;
                emrm.major_kind_id    = item.major_kind_id;
                emrm.major_kind_name  = item.major_kind_name;
                emrm.major_id         = item.major_id;
                emrm.major_name       = item.major_name;
                emrm.human_amount     = item.human_amount;
                emrm.engage_type      = item.engage_type;
                emrm.deadline         = item.deadline;
                emrm.register         = item.register;
                emrm.changer          = item.changer;
                emrm.regist_time      = item.regist_time;
                emrm.change_time      = item.change_time;
                emrm.major_describe   = item.major_describe;
                emrm.engage_required  = item.engage_required;
                list.Add(emrm);
            }
            fym.rows     = rows;
            fym.list     = list;
            fym.pageSize = (rows % rl == 0 ? rows / rl : rows % rl + 1);
            return(fym);
        }
        // GET: engage_major_release/Edit/5
        public ActionResult Edit(int id)
        {
            engage_major_releaseModel emrm = new engage_major_releaseModel
            {
                Id = id
            };
            engage_major_releaseModel cm   = re.SelectBy(emrm);
            List <usersModel>         list = iub.Select();
            List <SelectListItem>     user = new List <SelectListItem>();

            for (int i = 0; i < list.Count; i++)
            {
                SelectListItem sl = new SelectListItem()
                {
                    Text  = list[i].u_name.ToString(),
                    Value = list[i].u_name.ToString()
                };
                user.Add(sl);
            }
            ViewData["user"] = user;
            return(View(cm));
        }
Esempio n. 30
0
        public ActionResult position_release_details(int id)
        {
            int id1 = id;

            ViewBag.dt  = bdxlk(id1);
            ViewBag.dt1 = bdxlk1(id1);
            ViewBag.dt2 = bdxlk2(id1);
            ViewBag.dt3 = bdxlk3(id1);
            ViewBag.dt4 = bdxlk4(id1);
            ViewBag.dt5 = bdxlk5(id1);
            List <engage_major_releaseModel> list = eng.selectupdate(id);
            engage_major_releaseModel        emrm = new engage_major_releaseModel()
            {
                id               = list[0].id,
                first_kind_id    = list[0].first_kind_id,
                first_kind_name  = list[0].first_kind_name,
                second_kind_id   = list[0].second_kind_id,
                second_kind_name = list[0].second_kind_name,
                third_kind_id    = list[0].third_kind_id,
                third_kind_name  = list[0].third_kind_name,
                major_kind_id    = list[0].major_kind_id,
                major_kind_name  = list[0].major_kind_name,
                major_id         = list[0].major_id,
                major_name       = list[0].major_name,
                human_amount     = list[0].human_amount,
                engage_type      = list[0].engage_type,
                deadline         = list[0].deadline,
                register         = list[0].register,
                changer          = list[0].changer,
                regist_time      = list[0].regist_time,
                change_time      = list[0].change_time,
                major_describe   = list[0].major_describe,
                engage_required  = list[0].engage_required
            };

            return(View(emrm));
        }