コード例 #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);
            }
        }
コード例 #2
0
ファイル: RelationPostForm.xaml.cs プロジェクト: JuRogn/OA
        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);
            }
        }