Exemple #1
0
 public void RelationPostUpdate(T_HR_RELATIONPOST entity)
 {
     using (RelationPostBLL bll = new RelationPostBLL())
     {
         bll.RelationPostUpdate(entity);
     }
 }
Exemple #2
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;
     }
 }
Exemple #3
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;
     }
 }
Exemple #4
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);
            }
        }
Exemple #5
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);
            }
        }
 public void RelationPostUpdate(T_HR_RELATIONPOST entity)
 {
     using (RelationPostBLL bll = new RelationPostBLL())
     {
         bll.RelationPostUpdate(entity);
     }
 }