Beispiel #1
0
 public ProductSetSalesProvince()
 {
     InitializeComponent();
     this.Loaded += (sender, e) =>
     {
         this.ProductSetSalesProvinceResult.ItemsSource = Data;
         facade = new ProductSalesAreaBatchFacade();
     };
 }
Beispiel #2
0
        public List <ProductInfo> productList; //存放勾选的商品

        public ProductSalesAreaBatchSetMaintain()
        {
            model = new ProductSalesAreaBatchQueryVM();
            InitializeComponent();
            ProductSalesAreaBatchResult.LoadingDataSource += new EventHandler <Newegg.Oversea.Silverlight.Controls.Data.LoadingDataEventArgs>(ProductSalesAreaBatchResult_LoadingDataSource);
            this.Loaded += (sender, e) =>
            {
                this.DataContext = model;
                facade           = new ProductSalesAreaBatchFacade();
            };
        }
Beispiel #3
0
 //初始化数据
 public ProductSalesAreaBatchSearchMaintain()
 {
     InitializeComponent();
     model = new ProductSalesAreaBatchQueryVM();
     this.SalesAreaBatchByProductResult.LoadingDataSource += new EventHandler <Newegg.Oversea.Silverlight.Controls.Data.LoadingDataEventArgs>(SalesAreaBatchByProductResult_LoadingDataSource);
     this.SalesAreaBatchResult.LoadingDataSource          += new EventHandler <Newegg.Oversea.Silverlight.Controls.Data.LoadingDataEventArgs>(SalesAreaBatchResult_LoadingDataSource);
     this.Loaded += (sender, e) => {
         if (this.cboResultType.Items.Count == 0)
         {
             this.cboResultType.Items.Add("商品");
             this.cboResultType.Items.Add("记录");
         }
         this.cboResultType.SelectedIndex = 0;
         this.DataContext = model;
         facade           = new ProductSalesAreaBatchFacade();
     };
 }
 public ProductSalesAreaBatchWarehouse()
 {
     InitializeComponent();
     listStockVM    = new List <ProductSalesAreaBatchStockVM>();
     listProvinceVM = new List <ProductSalesAreaBatchProvinceVM>();
     this.Loaded   += (sender, e) =>
     {
         facade = new ProductSalesAreaBatchFacade();
         this.cbWebChanne.ItemsSource       = CPApplication.Current.CurrentWebChannelList;
         this.cbWebChanne.DisplayMemberPath = "ChannelName";
         this.cbWebChanne.SelectedValuePath = "ChannelID";
         this.cbWebChanne.SelectedIndex     = 0;
         if (IsDisPlayProvince == true) //不显示省份
         {
             spProvince.Visibility = Visibility.Visible;
         }
     };
 }