Exemple #1
0
        public override void OnPageLoad(object sender, EventArgs e)
        {
            base.OnPageLoad(sender, e);
            this.Grid.DataContext = viewModel = new CustomerGiftQueryVM();
            _facade        = new CustomerGiftFacade(this);
            _facadeChannel = new CommonDataFacade(this);

            //绑定状态ComboBox
            this.cmbCustomerGiftStatus.ItemsSource = EnumConverter.GetKeyValuePairs <CustomerGiftStatus>(EnumConverter.EnumAppendItemType.All);
            CheckRights();
        }
 public CustomerGiftMaintain()
 {
     InitializeComponent();
     _facade = new CustomerGiftFacade(CPApplication.Current.CurrentPage);
     InitNewViewModel();
 }