public void LoadTree(ECDynamicCategoryQueryVM vm, EventHandler <RestClientEventArgs <ECDynamicCategory> > callback) { ECDynamicCategoryQueryFilter filter = new ECDynamicCategoryQueryFilter(); filter.CompanyCode = CPApplication.Current.CompanyCode; filter.CategoryType = vm.CategoryType; filter.Status = vm.Status; string relativeUrl = "/MKTService/ECDynamicCategory/GetCategoryTree"; restClient.Query <ECDynamicCategory>(relativeUrl, filter, callback); }
public override void OnPageLoad(object sender, EventArgs e) { base.OnPageLoad(sender, e); QueryVM = new ECDynamicCategoryQueryVM(); this.GridCondition.DataContext = QueryVM; this.ucMaintain.VM = new ECDynamicCategoryVM { CategoryType = this.QueryVM.CategoryType }; this.ucMaintain.EditCompleted += new EventHandler <ECDynamicCategoryActionEventArgs>(ucMaintain_EditCompleted); this.ucMaintain.CancelClick += new EventHandler(ucMaintain_CancelClick); this.ucMaintain.AddCompleted += new EventHandler <ECDynamicCategoryActionEventArgs>(ucMaintain_AddCompleted); this.ucMaintain.DeleteCompleted += new EventHandler <ECDynamicCategoryActionEventArgs>(ucMaintain_DeleteCompleted); }