Esempio n. 1
0
        public List <ExpApplyViewEntity> GetViewList(Pagination pagination)
        {
            var list = GetList(pagination);

            List <ExpApplyViewEntity> viewList = new List <ExpApplyViewEntity>();

            foreach (var item in list)
            {
                ExpApplyViewEntity i = new ExpApplyViewEntity();
                SetViewEneity(i, item);
                viewList.Add(i);
            }
            return(viewList);
        }
Esempio n. 2
0
        public void SetViewEneity(ExpApplyViewEntity viewEntity, ExpApplyEntity eneity)
        {
            AgentApp p = new AgentApp();

            viewEntity.F_Id          = eneity.F_Id;
            viewEntity.c_agent_id    = eneity.c_agent_id;
            viewEntity.c_apply_state = eneity.c_apply_state;
            viewEntity.c_remark      = eneity.c_remark;
            viewEntity.c_image       = eneity.c_image;
            viewEntity.c_agent_id    = eneity.c_agent_id;
            viewEntity.c_agent_id    = eneity.c_agent_id;
            viewEntity.F_CreatorTime = eneity.F_CreatorTime;
            var agent = p.GetForm(eneity.c_agent_id);

            if (agent != null)
            {
                viewEntity.c_agent_name   = agent.c_name;
                viewEntity.c_agent_mobile = agent.c_mobile;
                viewEntity.c_exp_state    = agent.c_exp_state;
                viewEntity.c_score        = agent.c_score;
            }
        }