Beispiel #1
0
        public DealtViewModel(int id)
        {
            var bizProcessesAudit = BizFactory.BizProcessesAudit.ChangeStatusByAuditFlowV1(id, Enumeration.AuditFlowV1Status.InDealt, this.Operater, null, "已取单,正在处理");

            if (bizProcessesAudit != null)
            {
                _bizProcessesAudit = bizProcessesAudit;

                if (_bizProcessesAudit.Auditor.Value != this.Operater)
                {
                    this.IsHasOperater = true;
                    this.OperaterName  = SysFactory.SysUser.GetFullName(_bizProcessesAudit.Auditor.Value);
                }


                var orderToTalentDemand = CurrentDb.OrderToTalentDemand.Where(m => m.Id == bizProcessesAudit.AduitReferenceId).FirstOrDefault();
                if (orderToTalentDemand != null)
                {
                    _orderToTalentDemand = orderToTalentDemand;

                    var merchant = CurrentDb.Merchant.Where(m => m.Id == orderToTalentDemand.MerchantId).FirstOrDefault();
                    if (merchant != null)
                    {
                        _merchant = merchant;
                    }
                }
            }
        }
Beispiel #2
0
        public DetailsViewModel(int id)
        {
            var orderToTalentDemand = CurrentDb.OrderToTalentDemand.Where(m => m.Id == id).FirstOrDefault();

            if (orderToTalentDemand != null)
            {
                _orderToTalentDemand = orderToTalentDemand;

                var merchant = CurrentDb.Merchant.Where(m => m.Id == orderToTalentDemand.MerchantId).FirstOrDefault();
                if (merchant != null)
                {
                    _merchant = merchant;
                }


                _bizProcessesAuditDetails = BizFactory.BizProcessesAudit.GetDetails(Enumeration.BizProcessesAuditType.OrderToTalentDemand, id);
            }
        }