Пример #1
0
        public void UpdateTopItemConfig(TopItemConfigInfo entity)
        {
            DataCommand dc = DataCommandManager.GetDataCommand("TopItemConfig_Update");

            dc.SetParameterValue <TopItemConfigInfo>(entity);
            dc.ExecuteNonQuery();
        }
Пример #2
0
        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);
            }
        }
Пример #3
0
        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("操作成功!");
            });
        }
Пример #4
0
 public virtual void TopItemConfigUpdate(TopItemConfigInfo entity)
 {
     ObjectFactory <TopItemAppService> .Instance.TopItemConfigUpdate(entity);
 }
Пример #5
0
        /// <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);
        }
Пример #6
0
 public void TopItemConfigUpdate(TopItemConfigInfo entity)
 {
     ObjectFactory <TopItemProcessor> .Instance.TopItemConfigUpdate(entity);
 }