示例#1
0
 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);
 }
示例#2
0
        private void RegiestServices()
        {
            if (services == null)
                services = new BasicServices();

            client = services.PlatformClient;
        }
示例#3
0
        public RollImageNews()
        {
            InitializeComponent();
            servers = new BasicServices();
            client  = servers.PlatformClient;

            InitTop();
        }
示例#4
0
        public RollImageNews()
        {
            InitializeComponent();
            servers = new BasicServices();
            client = servers.PlatformClient;

            InitTop();
        }
示例#5
0
 /// <summary>
 /// 展示新闻界面
 /// </summary>
 public NewsView()
 {
     InitializeComponent();
     services = new BasicServices();
     client = services.PlatformClient;
     //ctrUpload.MaxSize = 512000;
     
     RegisterEvent();
 }
示例#6
0
        private void RegiestServices()
        {
            if (services == null)
            {
                services = new BasicServices();
            }

            client = services.PlatformClient;
        }
示例#7
0
        /// <summary>
        /// 展示新闻界面
        /// </summary>
        public NewsView()
        {
            InitializeComponent();
            services = new BasicServices();
            client   = services.PlatformClient;
            //ctrUpload.MaxSize = 512000;

            RegisterEvent();
        }
示例#8
0
 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);
 }
示例#9
0
 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);
 }
示例#10
0
 public void Cleanup()
 {
     _refdateTimer.Tick -= _refdateTimer_Tick;
     _refdateTimer.Stop();
     _refdateTimer = null;
     //非双工客户端
     client = null;
     //基础服务通讯
     services = null;
 }
示例#11
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();
            }
        }
示例#12
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);
            }
        }
示例#13
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);
            }
        }
示例#14
0
        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();
            }
        }
示例#15
0
 public NewsManager()
 {
     InitializeComponent();
     this.Loaded += new RoutedEventHandler(WebPartManage_Loaded);
     client       = new BasicServices().PlatformClient;
 }
示例#16
0
 public NewsManager()
 {
     InitializeComponent();
     this.Loaded += new RoutedEventHandler(WebPartManage_Loaded);
     client = new BasicServices().PlatformClient;
 }
示例#17
0
文件: News.xaml.cs 项目: JuRogn/OA
 public void Cleanup()
 {
     _refdateTimer.Tick -= _refdateTimer_Tick;
     _refdateTimer.Stop();
     _refdateTimer = null;
     //非双工客户端
     client = null;
     //双工客户端
     callbackClient = null;
     //基础服务通讯
     services = null;
 }