DAL/CreateDAL.cs

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Entitry;
using Common;
using System.Data.SqlClient;
namespace DAL
{
    public class CreateDAL
    {
        public List<Recuit> GetSelectIndex()
        {
            string sql = "select * from recuit, company  where Recuit.companyID=company.companyID";
            SqlDataReader sqlReader = DBHelp.SelectData(sql);
            List<Recuit> fs = new List<Recuit>();
            while (sqlReader.Read())
            {
                Recuit f = new Recuit();
                f.Rid = (int)sqlReader["Rid"];
                f.PositionType = (string)sqlReader["PositionType"];
                f.PositionName = (string)sqlReader["PositionName"];
                f.Department = (string)sqlReader["Department"];
                f.WorkType = (string)sqlReader["WorkType"];
                f.MinPrice = (int)sqlReader["MinPrice"];
                f.MaxPrice = (int)sqlReader["MaxPrice"];
                f.WorkCity = (string)sqlReader["WorkCity"];
                f.Experience = (string)sqlReader["Experience"];
                f.Educational = (string)sqlReader["Educational"];
                f.tempt = (string)sqlReader["tempt"];
                f.WorkTxt = (string)sqlReader["WorkTxt"];
                f.Start = (int)sqlReader["Start"];
                f.companyID = (int)sqlReader["companyID"];
                fs.Add(f);
            }
            sqlReader.Close();
            return fs;
        }
        public List<company> GetSelectcompany(int id)
        {
            string sql = "select * from company  where companyID='"+id+"'";
            SqlDataReader sqlReader = DBHelp.SelectData(sql);
            List<company> fs = new List<company>();
            while (sqlReader.Read())
            {
                company f = new company();
                f.companyID = (int)sqlReader["companyID"];
                f.CText = (string)sqlReader["CText"];
                f.CName = (string)sqlReader["CName"];
                f.Lable = (string)sqlReader["Lable"];
                f.ProductPic = (string)sqlReader["ProductPic"];
                f.ProductName = (string)sqlReader["ProductName"];
                f.ProductUrl = (string)sqlReader["ProductUrl"];
                f.ProductTxt = (string)sqlReader["ProductTxt"];
                f.Address = (string)sqlReader["Address"];
                f.Count = (string)sqlReader["Count"];
                f.IndexUrl = (string)sqlReader["IndexUrl"];
                f.ThisFinacncing = (string)sqlReader["ThisFinacncing"];
                f.Finacning = (string)sqlReader["Finacning"];
后面还有 15 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。