예제 #1
0
        private void RegiestServices()
        {
            if (services == null)
                services = new BasicServices();

            client = services.PlatformClient;
        }
예제 #2
0
 public NewsServices()
 {
     servers = new BasicServices();
     client = servers.PlatformClient;
     publicWS = new Saas.Tools.PublicInterfaceWS.PublicServiceClient();
     fileClient = new Saas.Tools.NewFileUploadWS.UploadServiceClient();
     RegisterServices();
 }
예제 #3
0
        public RollImageNews()
        {
            InitializeComponent();
            servers = new BasicServices();
            client = servers.PlatformClient;

            InitTop();
        }
예제 #4
0
 /// <summary>
 /// 展示新闻界面
 /// </summary>
 public NewsView()
 {
     InitializeComponent();
     services = new BasicServices();
     client = services.PlatformClient;
     //ctrUpload.MaxSize = 512000;
     
     RegisterEvent();
 }
예제 #5
0
파일: NewsServices.cs 프로젝트: JuRogn/OA
        public NewsServices()
        {
            servers = new BasicServices();
            client = servers.PlatformClient;
            callBackClient = servers.CallBackClient;
            publicWS = new Saas.Tools.PublicInterfaceWS.PublicServiceClient();

            RegisterServices();
        }
예제 #6
0
파일: NewsShow.xaml.cs 프로젝트: JuRogn/OA
 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);
 }
예제 #7
0
        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);
            }
        }
예제 #8
0
파일: News.xaml.cs 프로젝트: JuRogn/OA
        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();
            }
        }
예제 #9
0
파일: News.xaml.cs 프로젝트: JuRogn/OA
 public void Cleanup()
 {
     _refdateTimer.Tick -= _refdateTimer_Tick;
     _refdateTimer.Stop();
     _refdateTimer = null;
     //非双工客户端
     client = null;
     //双工客户端
     callbackClient = null;
     //基础服务通讯
     services = null;
 }