コード例 #1
0
 void client_GetRelationPostByIDCompleted(object sender, GetRelationPostByIDCompletedEventArgs e)
 {
     if (e.Error != null && e.Error.Message != null)
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message),
                                        Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
     }
     else
     {
         V_RELATIONPOST ents = e.Result;
         RelationPost = new T_HR_RELATIONPOST();
         RelationPost.RELATIONPOSTID = ents.RelationPostID;
         RelationPost.RELATEPOSTID   = ents.Post.POSTID;
         lkPost.DataContext          = ents.Post;
     }
 }
コード例 #2
0
ファイル: RelationPostForm.xaml.cs プロジェクト: JuRogn/OA
 void client_GetRelationPostByIDCompleted(object sender, GetRelationPostByIDCompletedEventArgs e)
 {
     if (e.Error != null && e.Error.Message != null)
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message),
                    Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
     }
     else
     {
         V_RELATIONPOST ents = e.Result;
         RelationPost = new T_HR_RELATIONPOST();
         RelationPost.RELATIONPOSTID = ents.RelationPostID;
         RelationPost.RELATEPOSTID = ents.Post.POSTID;
         lkPost.DataContext = ents.Post;
     }
 }