public ActionResult Select()
        {
            string   standardId = Request["standardId"];
            string   primarKey  = Request["primarKey"];
            DateTime startDate;
            DateTime endDate;

            if (Request["startDate"] == "" && Request["endDate"] == "")
            {
                startDate = DateTime.Parse("1940-01-01");
                endDate   = DateTime.Now;
            }
            else
            {
                startDate = DateTime.Parse(Request["startDate"]);
                endDate   = DateTime.Parse(Request["endDate"]);
            }
            if (standardId == null)
            {
                standardId = "";
            }
            LikeFenYe fy = new LikeFenYe();

            fy.Dq            = int.Parse(Request["Dq"]);
            fy.endDate       = endDate;
            fy.startDate     = startDate;
            fy.PageSize      = 1;
            fy.primarKey     = primarKey;
            fy.major_kind_id = standardId;
            ArrayList list = il.LikeSelect0(fy);

            list.Add(fy);
            ViewBag.ls = list;
            return(View());
        }
Beispiel #2
0
        public ArrayList LikeSelect0(LikeFenYe l)
        {
            ArrayList list2 = new ArrayList();
            int       rows  = 0;
            List <salary_standard>      list  = null;
            List <salary_standardModel> list1 = new List <salary_standardModel>();

            list = FenYe <int>(e => e.ssd_id, e => (e.standard_id.Contains(l.major_kind_id) && (e.register.Contains(l.primarKey) || e.designer.Contains(l.primarKey) || e.checker.Contains(l.primarKey)) && e.regist_time > l.startDate && e.regist_time < l.endDate && e.check_status == 1 && e.change_status == 0), ref rows, l.Dq, l.PageSize);
            foreach (var s in list)
            {
                salary_standardModel ss = new salary_standardModel()
                {
                    ssd_id        = s.ssd_id,
                    standard_id   = s.standard_id,
                    standard_name = s.standard_name,
                    designer      = s.designer,
                    register      = s.register,
                    regist_time   = s.regist_time,
                    check_time    = s.check_time,
                    change_time   = s.change_time,
                    salary_sum    = s.salary_sum,
                    remark        = s.remark,
                    check_status  = s.check_status,
                };
                list1.Add(ss);
            }
            list2.Add(list1);
            list2.Add(rows);
            list2.Add(l.Dq);
            list2.Add(l.PageSize);
            list2.Add((rows - 1) / l.PageSize + 1);
            return(list2);
        }
Beispiel #3
0
        public ArrayList engage_resumeYouXianFenYe6(LikeFenYe l)
        {
            ArrayList                  list2 = new ArrayList();
            int                        rows  = 0;
            List <engage_resume>       list  = null;
            List <engage_resume_Model> list1 = new List <engage_resume_Model>();

            list = FenYe <int>(e => e.res_id, e => (e.interview_status == 6), ref rows, l.Dq, l.PageSize);
            foreach (var item in list)
            {
                engage_resume_Model erm = new engage_resume_Model()
                {
                    human_name            = item.human_name,
                    res_id                = item.res_id,
                    human_sex             = item.human_sex,
                    human_major_kind_name = item.human_major_kind_name,
                    human_major_name      = item.human_major_name,
                    human_educated_major  = item.human_educated_major,
                    human_telephone       = item.human_telephone,
                    human_age             = item.human_age,
                    human_college         = item.human_college
                };
                list1.Add(erm);
            }
            list2.Add(list1);
            list2.Add(rows);
            list2.Add(l.Dq);
            list2.Add(l.PageSize);
            list2.Add((rows - 1) / l.PageSize + 1);
            return(list2);
        }
Beispiel #4
0
        public ArrayList Listsalary_standard(LikeFenYe l)
        {
            int row = 0;
            List <salary_standardModel> list1 = new List <salary_standardModel>();
            List <salary_standard>      list  = new List <salary_standard>();

            list = FenYe <int>(e => e.ssd_id, e => e.check_status == 2, ref row, l.Dq, l.PageSize);
            foreach (var item in list)
            {
                salary_standardModel e1 = new salary_standardModel()
                {
                    standard_id   = item.standard_id,
                    standard_name = item.standard_name,
                    designer      = item.designer,
                    register      = item.register,
                    regist_time   = item.regist_time,
                    check_time    = item.check_time,
                    change_time   = item.change_time,
                    salary_sum    = item.salary_sum,
                    remark        = item.remark,
                    check_status  = item.check_status,
                };
                list1.Add(e1);
            }
            ArrayList A = new ArrayList();

            A.Add(list1);
            A.Add(row);
            A.Add(l.Dq);
            A.Add(l.PageSize);
            A.Add((row - 1) / l.PageSize + 1);
            return(A);
        }
Beispiel #5
0
        public ArrayList engage_resumeYouXianFenYe7(LikeFenYe l)
        {
            ArrayList list2 = new ArrayList();
            int       rows  = 0;
            List <engage_interview>      list  = null;
            List <engage_interviewModel> list1 = new List <engage_interviewModel>();

            list = FenYe <int>(e => e.ein_id, e => e.interview_status == 7, ref rows, l.Dq, l.PageSize);
            foreach (var item in list)
            {
                engage_interviewModel erm = new engage_interviewModel()
                {
                    ein_id                = item.ein_id,
                    human_name            = item.human_name,
                    registe_time          = item.registe_time,
                    interview_amount      = item.interview_amount,
                    human_major_kind_name = item.human_major_kind_name,
                    human_major_name      = item.human_major_name,
                    multi_quality_degree  = item.multi_quality_degree,
                    check_comment         = item.check_comment,
                    check_status          = item.check_status,
                    interview_status      = item.interview_status,
                };
                list1.Add(erm);
            }
            list2.Add(list1);
            list2.Add(rows);
            list2.Add(l.Dq);
            list2.Add(l.PageSize);
            list2.Add((rows - 1) / l.PageSize + 1);
            return(list2);
        }
Beispiel #6
0
        // GET api/values
        public string  Getengage_resume(int id)
        {
            LikeFenYe l = new LikeFenYe()
            {
                Dq       = id,
                PageSize = 1
            };

            return(JsonConvert.SerializeObject(er.engage_resumeYouXianFenYe3(l)));
        }
Beispiel #7
0
        public ActionResult Like()
        {
            string   major_kind_id;
            string   humanMajorId;
            DateTime startDate;
            DateTime endDate;
            string   primarKey = null;

            #region 判断空值
            if (Request["startDate"] == "" && Request["endDate"] == "")
            {
                startDate = DateTime.Parse("1940-01-01");
                endDate   = DateTime.Now;
            }
            else
            {
                startDate = DateTime.Parse(Request["startDate"]);
                endDate   = DateTime.Parse(Request["endDate"]);
            }
            if (Request["primarKey"] != null || Request["primarKey"] != "")
            {
                primarKey = Request["primarKey"];
            }
            if (Request["major_kind_id"] == null)
            {
                major_kind_id = "0";
            }
            else
            {
                major_kind_id = Request["major_kind_id"];
            }
            if (Request["humanMajorId"] == null)
            {
                humanMajorId = "0";
            }
            else
            {
                humanMajorId = Request["humanMajorId"];
            }
            #endregion
            LikeFenYe fy = new LikeFenYe()
            {
                Dq            = int.Parse(Request["Dq"]),
                endDate       = endDate,
                startDate     = startDate,
                PageSize      = 1,
                primarKey     = primarKey,
                major_kind_id = major_kind_id,
                humanMajorId  = humanMajorId
            };
            ArrayList list = er.engage_resumeYouXianFenYe(fy);
            list.Add(fy);
            ViewBag.ls = list;
            return(View());
        }
Beispiel #8
0
        public ActionResult Index(int id)
        {
            LikeFenYe l = new LikeFenYe()
            {
                Dq       = id,
                PageSize = 1,
            };
            ArrayList list = er1.engage_resumeYouXianFenYe6(l);

            return(Content(JsonConvert.SerializeObject(list)));
        }
Beispiel #9
0
        public ActionResult Like(FormCollection f)
        {
            LikeFenYe fy = new LikeFenYe()
            {
                Dq            = int.Parse(Request["Dq"]),
                endDate       = DateTime.Now,
                startDate     = DateTime.Parse("1940-01-01"),
                PageSize      = 1,
                primarKey     = "",
                major_kind_id = "0",
                humanMajorId  = "0"
            };
            ArrayList list = er.engage_resumeYouXianFenYe(fy);

            list.Add(fy);
            ViewBag.ls = list;
            return(View());
        }
Beispiel #10
0
        public ArrayList engage_resumeYouXianFenYe(LikeFenYe l)
        {
            ArrayList                  list2 = new ArrayList();
            int                        rows  = 0;
            List <engage_resume>       list  = null;
            List <engage_resume_Model> list1 = new List <engage_resume_Model>();

            list = FenYe <int>(e => e.res_id, e => (e.human_major_kind_id.Contains(l.major_kind_id) && e.human_major_id.Contains(l.humanMajorId) && e.human_name.Contains(l.primarKey) && e.regist_time > l.startDate && e.regist_time < l.endDate && e.interview_status == 1), ref rows, l.Dq, l.PageSize);
            if (list.Count() == 0)
            {
                list = FenYe <int>(e => e.res_id, e => (e.human_major_kind_id.Contains(l.major_kind_id) && e.human_major_id.Contains(l.humanMajorId) && e.human_address.Contains(l.primarKey) && e.regist_time > l.startDate && e.regist_time < l.endDate && e.interview_status == 1), ref rows, l.Dq, l.PageSize);
            }
            foreach (var item in list)
            {
                engage_resume_Model erm = new engage_resume_Model()
                {
                    human_name            = item.human_name,
                    res_id                = item.res_id,
                    human_sex             = item.human_sex,
                    human_major_kind_name = item.human_major_kind_name,
                    human_major_name      = item.human_major_name,
                    human_telephone       = item.human_telephone,
                    check_status          = item.check_status,
                    human_age             = item.human_age,
                    interview_status      = item.interview_status
                };
                if (item.check_status == 2)
                {
                    erm.check_status1 = "通过";
                }
                if (item.interview_status == 1)
                {
                    erm.interview_status1 = "待面试";
                }
                list1.Add(erm);
            }
            list2.Add(list1);
            list2.Add(rows);
            list2.Add(l.Dq);
            list2.Add(l.PageSize);
            list2.Add((rows - 1) / l.PageSize + 1);
            return(list2);
        }
Beispiel #11
0
 public ArrayList Listsalary_standard(LikeFenYe l)
 {
     return(DS.Listsalary_standard(l));
 }
Beispiel #12
0
 public ArrayList LikeSelect0(LikeFenYe l)
 {
     return(DS.LikeSelect0(l));
 }
Beispiel #13
0
 public ArrayList engage_resumeYouXianFenYe6(LikeFenYe l)
 {
     return(s.engage_resumeYouXianFenYe6(l));
 }
Beispiel #14
0
 public ArrayList engage_resumeLikeFenYe(LikeFenYe l)
 {
     return(s.engage_resumeLikeFenYe(l));
 }
Beispiel #15
0
 public ArrayList engage_resumeYouXianFenYe7(LikeFenYe l)
 {
     return(ei.engage_resumeYouXianFenYe7(l));
 }