private void Recommend(EmCostume item) { try { if (GlobalUtil.EngineUnconnectioned(this)) { return; } UpdateEmRecommandPara para = new UpdateEmRecommandPara() { EmIsRecommand = item.EmIsRecommand, ID = item.ID }; UpdateResult result = GlobalCache.EMallServerProxy.UpdateEmRecommand(para); switch (result) { case UpdateResult.Success: break; case UpdateResult.Error: GlobalMessageBox.Show("内部错误!"); break; default: break; } } catch (Exception ee) { GlobalUtil.ShowError(ee); } finally { GlobalUtil.UnLockPage(this); } }
/// <summary> /// 是否在线上商城中作为店主推荐 /// </summary> /// <param name="para"></param> /// <returns></returns> public UpdateResult UpdateEmRecommand(UpdateEmRecommandPara para) { byte[] response = this.engine.CustomizeOutter.Query(EMallInformationTypes.UpdateEmRecommand, SerializeHelper.ResultToSerialize(para)); return((UpdateResult)SerializeHelper.ByteArrayToInt(response)); }