private void InitDate() { _services = new PlatformServicesClient(); _services.GetTaskConfigInfoByUserCompleted += new EventHandler<GetTaskConfigInfoByUserCompletedEventArgs>(_services_GetTaskConfigInfoByUserCompleted); //_services.Endpoint.Address = new System.ServiceModel.EndpointAddress("http://localhost:15739/PlatformServices.svc"); //_services.GetTaskConfigInfoByUserAsync(Common.CurrentLoginUserInfo.SysUserID); }
private void RegiestServices() { if (services == null) services = new BasicServices(); client = services.PlatformClient; }
public RollImageNews() { InitializeComponent(); servers = new BasicServices(); client = servers.PlatformClient; InitTop(); }
/// <summary> /// 展示新闻界面 /// </summary> public NewsView() { InitializeComponent(); services = new BasicServices(); client = services.PlatformClient; //ctrUpload.MaxSize = 512000; RegisterEvent(); }
private void RegiestServices() { if (services == null) { services = new BasicServices(); } client = services.PlatformClient; }
public NewsShow() { InitializeComponent(); rtbContent.HideHeadToolbars(); services = new BasicServices(); publicWS = new Saas.Tools.PublicInterfaceWS.PublicServiceClient(); client = services.PlatformClient; client.GetNewsModelByIDCompleted += new EventHandler <GetNewsModelByIDCompletedEventArgs>(client_GetNewsModelByIDCompleted); publicWS.GetContentCompleted += new EventHandler <Saas.Tools.PublicInterfaceWS.GetContentCompletedEventArgs>(publicWS_GetContentCompleted); }
public NewsShow() { InitializeComponent(); rtbContent.HideHeadToolbars(); services = new BasicServices(); publicWS = new Saas.Tools.PublicInterfaceWS.PublicServiceClient(); client = services.PlatformClient; client.GetNewsModelByIDCompleted += new EventHandler<GetNewsModelByIDCompletedEventArgs>(client_GetNewsModelByIDCompleted); publicWS.GetContentCompleted += new EventHandler<Saas.Tools.PublicInterfaceWS.GetContentCompletedEventArgs>(publicWS_GetContentCompleted); }
public void Cleanup() { _refdateTimer.Tick -= _refdateTimer_Tick; _refdateTimer.Stop(); _refdateTimer = null; //非双工客户端 client = null; //基础服务通讯 services = null; }
private void RegiestServices() { if (services == null) services = new BasicServices(); client = services.PlatformClient; callbackClient = services.CallBackClient; if (callbackClient != null) { callbackClient.ReceiveReceived += new EventHandler<ReceiveReceivedEventArgs>(CallBackClient_ReceiveReceived); callbackClient.LoginCompleted += new EventHandler<System.ComponentModel.AsyncCompletedEventArgs>(CallBackClient_LoginCompleted); callbackClient.LoginAsync(); } }
public RollNewsViewModel() { if (services == null) services = new BasicServices(); client = services.PlatformClient; if (client != null) { //client.GetNewsListByParamsCompleted += new EventHandler<GetNewsListByParamsCompletedEventArgs>(client_GetNewsListByParamsCompleted); //client.GetNewsListByParamsAsync("0|1", 10, "1"); //client.GetNewsListByEmployeeIDCompleted += new EventHandler<GetNewsListByEmployeeIDCompletedEventArgs>(client_GetNewsListByEmployeeIDCompleted); //client.GetNewsListByEmployeeIDAsync("0|1", 10, "1", SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID); } }
public RollNewsViewModel() { if (services == null) { services = new BasicServices(); } client = services.PlatformClient; if (client != null) { //client.GetNewsListByParamsCompleted += new EventHandler<GetNewsListByParamsCompletedEventArgs>(client_GetNewsListByParamsCompleted); //client.GetNewsListByParamsAsync("0|1", 10, "1"); client.GetNewsListByEmployeeIDCompleted += new EventHandler <GetNewsListByEmployeeIDCompletedEventArgs>(client_GetNewsListByEmployeeIDCompleted); //client.GetNewsListByEmployeeIDAsync("0|1", 10, "1", SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID); } }
private void RegiestServices() { if (services == null) { services = new BasicServices(); } client = services.PlatformClient; callbackClient = services.CallBackClient; if (callbackClient != null) { callbackClient.ReceiveReceived += new EventHandler <ReceiveReceivedEventArgs>(CallBackClient_ReceiveReceived); callbackClient.LoginCompleted += new EventHandler <System.ComponentModel.AsyncCompletedEventArgs>(CallBackClient_LoginCompleted); callbackClient.LoginAsync(); } }
public NewsManager() { InitializeComponent(); this.Loaded += new RoutedEventHandler(WebPartManage_Loaded); client = new BasicServices().PlatformClient; }
public void Cleanup() { _refdateTimer.Tick -= _refdateTimer_Tick; _refdateTimer.Stop(); _refdateTimer = null; //非双工客户端 client = null; //双工客户端 callbackClient = null; //基础服务通讯 services = null; }