Esempio n. 1
0
        private void InitParas(string strID)
        {
            client = new OrganizationServiceClient();
            client.GetRelationPostByIDCompleted += new EventHandler <GetRelationPostByIDCompletedEventArgs>(client_GetRelationPostByIDCompleted);
            client.RelationPostAddCompleted     += new EventHandler <System.ComponentModel.AsyncCompletedEventArgs>(client_RelationPostAddCompleted);
            client.RelationPostUpdateCompleted  += new EventHandler <System.ComponentModel.AsyncCompletedEventArgs>(client_RelationPostUpdateCompleted);

            if (FormType == SMT.SaaS.FrameworkUI.FormTypes.New)
            {
                RelationPost = new T_HR_RELATIONPOST();
                RelationPost.RELATIONPOSTID = Guid.NewGuid().ToString();
            }
            else
            {
                client.GetRelationPostByIDAsync(strID);
            }
        }
Esempio n. 2
0
        private void InitParas(string strID)
        {
            client = new OrganizationServiceClient();
            client.GetRelationPostByIDCompleted += new EventHandler<GetRelationPostByIDCompletedEventArgs>(client_GetRelationPostByIDCompleted);
            client.RelationPostAddCompleted += new EventHandler<System.ComponentModel.AsyncCompletedEventArgs>(client_RelationPostAddCompleted);
            client.RelationPostUpdateCompleted += new EventHandler<System.ComponentModel.AsyncCompletedEventArgs>(client_RelationPostUpdateCompleted);

            if (FormType == SMT.SaaS.FrameworkUI.FormTypes.New)
            {
                RelationPost = new T_HR_RELATIONPOST();
                RelationPost.RELATIONPOSTID = Guid.NewGuid().ToString();
            }
            else
            {
                client.GetRelationPostByIDAsync(strID);
            }
        }