Пример #1
0
        public List <CashListEntity> GetCashViewList(Pagination page, int state)
        {
            var expression = ExtLinq.True <ScoreCashEntity>();

            if (state != -1)
            {
                expression = expression.And(t => t.c_cash_state == state);
            }
            var list = service.FindList(expression, page);
            List <CashListEntity> viewList = new List <CashListEntity>();
            AgentApp app = new AgentApp();

            foreach (var item in list)
            {
                CashListEntity entity = new CashListEntity();
                var            agent  = app.GetForm(item.c_user_id);
                if (agent != null)
                {
                    entity.c_agent_name   = agent.c_name;
                    entity.c_agent_mobile = agent.c_mobile;
                }
                entity.F_Id           = item.F_Id;
                entity.c_user_id      = item.c_user_id;
                entity.c_amount       = item.c_amount;
                entity.c_cash_state   = item.c_cash_state;
                entity.c_bank_person  = item.c_bank_person;
                entity.c_bank_name    = item.c_bank_name;
                entity.c_bank_account = item.c_bank_account;
                entity.F_CreatorTime  = item.F_CreatorTime;
                viewList.Add(entity);
            }
            return(viewList);
        }
Пример #2
0
        public List <ScoreDetaiListEntity> GetCashViewList(Pagination page)
        {
            page.sidx = "c_create_date desc";
            var list = service.FindList(page);
            List <ScoreDetaiListEntity> viewList = new List <ScoreDetaiListEntity>();
            AgentApp app = new AgentApp();

            foreach (var item in list)
            {
                ScoreDetaiListEntity entity = new ScoreDetaiListEntity();
                var agent = app.GetForm(item.c_user_id);
                if (agent != null)
                {
                    entity.c_agent_name   = agent.c_name;
                    entity.c_agent_mobile = agent.c_mobile;
                }
                entity.F_Id          = item.F_Id;
                entity.c_user_id     = item.c_user_id;
                entity.c_amount      = item.c_amount;
                entity.c_reason      = item.c_reason;
                entity.c_create_date = item.c_create_date;
                viewList.Add(entity);
            }
            return(viewList);
        }
Пример #3
0
        public void SetViewEntity(OrderViewEntity entity, OrderEntity item, bool IsGetDetailList = false)
        {
            AgentApp app   = new AgentApp();
            var      agent = app.GetForm(item.c_agent_id);

            if (agent != null)
            {
                entity.c_agent_name   = agent.c_name;
                entity.c_agent_mobile = agent.c_mobile;
            }
            if (IsGetDetailList)
            {
                entity.detailList = GetDetailList(item.F_Id);
            }
            entity.F_Id           = item.F_Id;
            entity.c_agent_id     = item.c_agent_id;
            entity.c_order_num    = item.c_order_num;
            entity.c_total        = item.c_total;
            entity.c_state        = item.c_state;
            entity.c_express_num  = item.c_express_num;
            entity.c_express_name = item.c_express_name;
            entity.c_rec_person   = item.c_rec_person;
            entity.c_mobile       = item.c_mobile;
            entity.c_address      = item.c_address;
            entity.c_order_type   = item.c_order_type;
            entity.c_remark       = item.c_remark;
            entity.F_CreatorTime  = item.F_CreatorTime;
        }
Пример #4
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;
            }
        }
Пример #5
0
        public int  GetTotalAgentScore()
        {
            AgentApp agentLogic = new AgentApp();

            return(agentLogic.GetTotalScore());
        }