public void RelationPostUpdate(T_HR_RELATIONPOST entity) { using (RelationPostBLL bll = new RelationPostBLL()) { bll.RelationPostUpdate(entity); } }
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; } }
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); } }
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); } }