Exemplo n.º 1
0
        public void Query(ECCategoryQueryVM queryVM, PagingInfo p, EventHandler <RestClientEventArgs <dynamic> > callback)
        {
            var queryFilter = queryVM.ConvertVM <ECCategoryQueryVM, ECCategoryQueryFilter>();

            queryFilter.CompanyCode = CPApplication.Current.CompanyCode;
            queryFilter.PagingInfo  = p;
            string relativeUrl = "/MKTService/ECCategory/Query";

            restClient.QueryDynamicData(relativeUrl, queryFilter, callback);
        }
Exemplo n.º 2
0
        public override void OnPageLoad(object sender, EventArgs e)
        {
            base.OnPageLoad(sender, e);
            this.lstChannelList.ItemsSource = CPApplication.Current.CurrentWebChannelList.ToList <UIWebChannel>();

            _queryVM = new ECCategoryQueryVM();

            this.ucMaintain.EditCompleted   += new EventHandler <ECCategoryActionEventArgs>(ucMaintain_EditCompleted);
            this.ucMaintain.CancelClick     += new EventHandler(ucMaintain_CancelClick);
            this.ucMaintain.AddCompleted    += new EventHandler <ECCategoryActionEventArgs>(ucMaintain_AddCompleted);
            this.ucMaintain.DeleteCompleted += new EventHandler <ECCategoryActionEventArgs>(ucMaintain_DeleteCompleted);
        }