예제 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            // 创建挑战工厂
            IChallengeCaseFactory factory = new ChallengeCaseFactory();
            // 获取挑战列表
            List <IChallengeCase> oriList = factory.getChallengeCaseList(ChallengeCaseFactory.ORDER_BY_TIME);

            List <IChallengeCase> list = new List <IChallengeCase>();

            foreach (IChallengeCase item in oriList)
            {
                if (item.enterpriseId == 12)
                {
                    list.Add(item);
                }
            }
            challengecase.DataSource = list;
            challengecase.DataBind();
        }
예제 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            // 创建挑战工厂
            IChallengeCaseFactory factory = new ChallengeCaseFactory();
            // 获取挑战列表
            List <IChallengeCase> oriList = factory.getChallengeCaseList(ChallengeCaseFactory.ORDER_BY_TIME);

            List <IChallengeCase> list = new List <IChallengeCase>();

            foreach (IChallengeCase item in oriList)
            {
                if (item.enterpriseId == 12)
                {
                    list.Add(item);
                }
            }

            lNumber.Text = list.Count.ToString();
        }
예제 #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            // 创建挑战工厂
            IChallengeCaseFactory factory = new ChallengeCaseFactory();
            // 获取挑战列表
            List <IChallengeCase> oriList = factory.getChallengeCaseList(ChallengeCaseFactory.ORDER_BY_TIME);

            List <IChallengeCase> list = new List <IChallengeCase>();

            foreach (IChallengeCase item in oriList)
            {
                if (item.id == Convert.ToInt32(Request["recruitId"]))
                {
                    list.Add(item);
                }
            }

            if (list.Count > 0)
            {
                Label1.Text = list[0].jobTitle;
            }
        }