public OutBoundNotReturnQueryVM() { this.WebChannelList = CPApplication.Current.CurrentWebChannelList.ToList <UIWebChannel>(); //修改UIWebChannelType.publicChennel 后放开 //this.WebChannelList.Insert(0, new UIWebChannel { ChannelName = ResCommonEnum.Enum_All, ChannelType = UIWebChannelType.publicChennel }); this.RefundStatusList = EnumConverter.GetKeyValuePairs <RMARefundStatus>(EnumConverter.EnumAppendItemType.All); this.RevertStatusList = EnumConverter.GetKeyValuePairs <RMARevertStatus>(EnumConverter.EnumAppendItemType.All); this.YNList = BooleanConverter.GetKeyValuePairs(EnumConverter.EnumAppendItemType.All); }
public AgentInfoVM() { this.AgentTypes = EnumConverter.GetKeyValuePairs <AgentType>(); this.AgentType = BizEntity.Customer.AgentType.Personal; this.YNList = BooleanConverter.GetKeyValuePairs(EnumConverter.EnumAppendItemType.None); this.DMRequest = YNStatus.N; this.PosterRequest = YNStatus.N; this.OpenedToPublic = YNStatus.Y; }
public NewsInfoQueryVM() { this.ShowStatusList = EnumConverter.GetKeyValuePairs <NewsStatus>(EnumConverter.EnumAppendItemType.All); this.SelectRangeList = BooleanConverter.GetKeyValuePairs(EnumConverter.EnumAppendItemType.All); this.WebChannelList = CPApplication.Current.CurrentWebChannelList.ToList <UIWebChannel>(); this.WebChannelList.Insert(0, new UIWebChannel { ChannelName = ResCommonEnum.Enum_All }); this.CompanyCode = CPApplication.Current.CompanyCode; }
public InvoiceInputQueryVM() { this.WebChannelList = new List <UIWebChannel>(CPApplication.Current.CurrentWebChannelList); this.WebChannelList.Insert(0, new UIWebChannel { ChannelName = ResCommonEnum.Enum_All, ChannelType = UIWebChannelType.Publicity }); this.YNList = BooleanConverter.GetKeyValuePairs(EnumConverter.EnumAppendItemType.All); this.InvoiceInputStatusList = EnumConverter.GetKeyValuePairs <APInvoiceMasterStatus>(EnumConverter.EnumAppendItemType.All); }
public RefundQueryReqVM() { this.Stocks = new List <StockInfo>(); this.WebChannelList = CPApplication.Current.CurrentWebChannelList.ToList <UIWebChannel>(); //修改UIWebChannelType.publicChennel 后放开 //this.WebChannelList.Insert(0, new UIWebChannel { ChannelName = ResCommonEnum.Enum_All, ChannelType = UIWebChannelType.publicChennel }); this.YNList = BooleanConverter.GetKeyValuePairs(EnumConverter.EnumAppendItemType.All); this.RefundStatusList = EnumConverter.GetKeyValuePairs <RMARefundStatus>(EnumConverter.EnumAppendItemType.All); this.AuditStatusList = EnumConverter.GetKeyValuePairs <RefundStatus>(EnumConverter.EnumAppendItemType.All); //this.AuditStatusList.RemoveAll(p => p.Key == RefundStatus.WaitingFinAudit || p.Key == RefundStatus.WaitingRefund); }
public RequestQueryReqVM() { this.ReceiveUsers = new List <UserInfo>(); this.WebChannelList = CPApplication.Current.CurrentWebChannelList.ToList <UIWebChannel>(); //修改UIWebChannelType.publicChennel 后放开 //this.WebChannelList.Insert(0, new UIWebChannel { ChannelName = ResCommonEnum.Enum_All, ChannelType = UIWebChannelType.publicChennel }); this.SellerTypeList = EnumConverter.GetKeyValuePairs <SellersType>(EnumConverter.EnumAppendItemType.All); this.YNList = BooleanConverter.GetKeyValuePairs(EnumConverter.EnumAppendItemType.All); this.RequestStatusList = EnumConverter.GetKeyValuePairs <RMARequestStatus>(EnumConverter.EnumAppendItemType.All); this.ConfirmUsers = new List <UserInfo>(); }
private void BindData() { int loadCompletedCount = 0; int wellLoadedCount = 3; this.cmbStatus.ItemsSource = EnumConverter.GetKeyValuePairs <SOComplainStatus>(); this.cmbResponsibleConfirm.ItemsSource = BooleanConverter.GetKeyValuePairs(EnumConverter.EnumAppendItemType.Select); this.cmbApproach.ItemsSource = EnumConverter.GetKeyValuePairs <SOComplainReplyType>(); //获取投诉详细部门集合 CodeNamePairHelper.GetList(ConstValue.DomainName_SO , ConstValue.Key_SOResponsibleDept , CodeNamePairAppendItemType.Select , (o, p) => { m_csDeptList = p.Result; Interlocked.Increment(ref loadCompletedCount); if (loadCompletedCount == wellLoadedCount) { BindPage(); } }); //读取下拉框值 CodeNamePairHelper.GetList(ConstValue.DomainName_SO , new string[] { ConstValue.Key_ComplainType, ConstValue.Key_SOComplainSourceType } , (o, p) => { this.cmbComplainType.ItemsSource = p.Result[ConstValue.Key_ComplainType]; this.cmbComplainSourceType.ItemsSource = p.Result[ConstValue.Key_SOComplainSourceType]; Interlocked.Increment(ref loadCompletedCount); if (loadCompletedCount == wellLoadedCount) { BindPage(); } }); //获取值 m_facade.Get(int.Parse(Request.Param), (o, e) => { if (!e.FaultsHandle()) { m_data = e.Result; Interlocked.Increment(ref loadCompletedCount); if (loadCompletedCount == wellLoadedCount) { BindPage(); } } }); }
public PayableQueryVM() { this.WebChannelList = CPApplication.Current.CurrentWebChannelList.ToList <UIWebChannel>(); this.WebChannelList.Insert(0, new UIWebChannel { ChannelName = ResCommonEnum.Enum_All }); this.OrderTypeList = EnumConverter.GetKeyValuePairs <PayableOrderType>(EnumConverter.EnumAppendItemType.All); this.PayStatusList = EnumConverter.GetKeyValuePairs <PayableStatus>(EnumConverter.EnumAppendItemType.All); this.InvoiceStatusList = EnumConverter.GetKeyValuePairs <InvoiceStatus>(EnumConverter.EnumAppendItemType.All); this.PayItemStyleList = EnumConverter.GetKeyValuePairs <PayItemStyle>(EnumConverter.EnumAppendItemType.All); this.POStatusList = EnumConverter.GetKeyValuePairs <POStatus>(EnumConverter.EnumAppendItemType.All); this.POTypeList = EnumConverter.GetKeyValuePairs <POType>(EnumConverter.EnumAppendItemType.All); this.PayPeriodTypeList = new List <CodeNamePair>(); this.VendorSettleOrderStatusList = EnumConverter.GetKeyValuePairs <VendorSettleOrderStatus>(EnumConverter.EnumAppendItemType.All); this.YNList = BooleanConverter.GetKeyValuePairs(EnumConverter.EnumAppendItemType.All); this.IsOnlyNegativeOrder = this.IsNotInStock = false; }
public CustomerBasicVM() { this.UserStatusList = EnumConverter.GetKeyValuePairs <CustomerStatus>(); this.Status = CustomerStatus.Valid; this.YNList = BooleanConverter.GetKeyValuePairs(EnumConverter.EnumAppendItemType.None); this.IsBadCustomer = false; this.AvtarStatusList = EnumConverter.GetKeyValuePairs <AvtarShowStatus>(); this.AvtarImageStatus = AvtarShowStatus.Show; this.CustomerTypes = EnumConverter.GetKeyValuePairs <CustomerType>(); this.CustomersType = (int)CustomerType.Personal; this.Genders = EnumConverter.GetKeyValuePairs <Gender>(); this.Gender = BizEntity.Customer.Gender.Male; this.CompanyCode = CPApplication.Current.CompanyCode; this.Pwd = "1234"; }
public RegisterQueryVM() { this.WebChannelList = CPApplication.Current.CurrentWebChannelList.ToList <UIWebChannel>(); //修改UIWebChannelType.publicChennel 后放开 //this.WebChannelList.Insert(0, new UIWebChannel { ChannelName = ResCommonEnum.Enum_All, ChannelType = UIWebChannelType.publicChennel }); this.SellerTypeList = EnumConverter.GetKeyValuePairs <SellersType>(EnumConverter.EnumAppendItemType.All); this.YNList = BooleanConverter.GetKeyValuePairs(EnumConverter.EnumAppendItemType.All); this.RevertStatusList = EnumConverter.GetKeyValuePairs <RMARevertStatus>(EnumConverter.EnumAppendItemType.All); this.NewProductStatusList = EnumConverter.GetKeyValuePairs <RMANewProductStatus>(EnumConverter.EnumAppendItemType.All); this.OutBoundStatusList = EnumConverter.GetKeyValuePairs <RMAOutBoundStatus>(EnumConverter.EnumAppendItemType.All); this.ReturnStatusList = EnumConverter.GetKeyValuePairs <RMAReturnStatus>(EnumConverter.EnumAppendItemType.All); this.RefundStatusList = EnumConverter.GetKeyValuePairs <RMARefundStatus>(EnumConverter.EnumAppendItemType.All); this.RMARequestTypeList = EnumConverter.GetKeyValuePairs <RMARequestType>(EnumConverter.EnumAppendItemType.All); this.RMANextHandlerList = EnumConverter.GetKeyValuePairs <RMANextHandler>(EnumConverter.EnumAppendItemType.All); this.CompareSymbolList = EnumConverter.GetKeyValuePairs <CompareSymbolType>(); this.PMUserList = new List <UserInfo>(); this.SellerOperationInfoList = new List <CodeNamePair>(); this.RMAReasonList = new List <CodeNamePair>(); this.IsUnCheck = this.IsUnOutbound = this.IsUnReceive = this.IsUnRefund = this.IsUnResponse = this.IsUnReturn = this.IsUnRevert = false; this.CheckBoxList = new ObservableCollection <CheckBoxVM>(); this.QuickSearchCondition = new QuickSearchConditionVM(); List <KeyValuePair <RMARequestStatus?, string> > tmpList = EnumConverter.GetKeyValuePairs <RMARequestStatus>(EnumConverter.EnumAppendItemType.All); List <KeyValuePair <RMARequestStatus?, string> > list = new List <KeyValuePair <RMARequestStatus?, string> >(); foreach (var item in tmpList) { if (item.Key == null || item.Key == RMARequestStatus.Origin || item.Key == RMARequestStatus.Handling || item.Key == RMARequestStatus.Complete || item.Key == RMARequestStatus.Abandon) { list.Add(item); } } this.RequestStatusList = list; }
public PayableQueryVM() { this.WebChannelList = new List <UIWebChannel>(CPApplication.Current.CurrentWebChannelList); this.WebChannelList.Insert(0, new UIWebChannel { ChannelName = ResCommonEnum.Enum_All, ChannelType = UIWebChannelType.Sales }); this.OrderTypeList = EnumConverter.GetKeyValuePairs <PayableOrderType>(); this.PayStatusList = EnumConverter.GetKeyValuePairs <PayableStatus>(EnumConverter.EnumAppendItemType.All); this.InvoiceStatusList = EnumConverter.GetKeyValuePairs <PayableInvoiceStatus>(EnumConverter.EnumAppendItemType.All); this.PayItemStyleList = EnumConverter.GetKeyValuePairs <PayItemStyle>(EnumConverter.EnumAppendItemType.All); this.POStatusList = EnumConverter.GetKeyValuePairs <ECCentral.BizEntity.PO.PurchaseOrderStatus>(EnumConverter.EnumAppendItemType.All); this.POStatusList.RemoveAll(x => x.Key == ECCentral.BizEntity.PO.PurchaseOrderStatus.Origin); this.POTypeList = EnumConverter.GetKeyValuePairs <ECCentral.BizEntity.PO.PurchaseOrderType>(EnumConverter.EnumAppendItemType.All); this.PayPeriodTypeList = new List <CodeNamePair>(); this.PaySettleCompanyList = EnumConverter.GetKeyValuePairs <ECCentral.BizEntity.PO.PaySettleCompany>(EnumConverter.EnumAppendItemType.All); this.VendorSettleOrderStatusList = EnumConverter.GetKeyValuePairs <ECCentral.BizEntity.PO.SettleStatus>(EnumConverter.EnumAppendItemType.All); this.YNList = BooleanConverter.GetKeyValuePairs(EnumConverter.EnumAppendItemType.All); this.IsOnlyNegativeOrder = this.IsNotInStock = false; }