public void UpdateTopItemConfig(TopItemConfigInfo entity) { DataCommand dc = DataCommandManager.GetDataCommand("TopItemConfig_Update"); dc.SetParameterValue <TopItemConfigInfo>(entity); dc.ExecuteNonQuery(); }
public virtual void TopItemConfigUpdate(TopItemConfigInfo entity) { TopItemConfigInfo item = LoadTopItemConfig(entity.PageType.Value, entity.RefSysNo.Value); if (item != null)//update { ObjectFactory <ITopItemDA> .Instance.UpdateTopItemConfig(entity); } else //create { ObjectFactory <ITopItemDA> .Instance.CreateTopItemConfig(entity); } }
private void SaveConfig_Click(object sender, RoutedEventArgs e) { if (ucPosition.PageID == null || ucPosition.PageID <= 0) { Window.Alert("请选择页面类型!"); return; } TopItemConfigInfo entity = new TopItemConfigInfo(); entity.PageType = ucPosition.PageType; entity.RefSysNo = ucPosition.PageID; entity.ISSendMailStore = viewModel.ISSendMailStore; entity.ISShowTopStore = viewModel.ISShowTopStore; entity.CompanyCode = CPApplication.Current.CompanyCode; facade.UpdateTopItemConfig(entity, (obj, args) => { if (args.FaultsHandle()) { return; } Window.Alert("操作成功!"); }); }
public virtual void TopItemConfigUpdate(TopItemConfigInfo entity) { ObjectFactory <TopItemAppService> .Instance.TopItemConfigUpdate(entity); }
/// <summary> /// 更新配置信息 /// </summary> /// <param name="entity"></param> /// <param name="callback"></param> public void UpdateTopItemConfig(TopItemConfigInfo entity, EventHandler <RestClientEventArgs <dynamic> > callback) { string relativeUrl = "/MKTService/TopItemConfig/Update"; restClient.Update(relativeUrl, entity, callback); }
public void TopItemConfigUpdate(TopItemConfigInfo entity) { ObjectFactory <TopItemProcessor> .Instance.TopItemConfigUpdate(entity); }