public virtual void OrgOwnMemberDelete(OrgOwnMember entity) { TraceCallEnterEvent.Raise(); try { m_DataContext.BeginNestedTran(); try { m_DataContext.ndihdOrgOwnMemberDelete(entity.ID); m_DataContext.CommitNested(); } catch { m_DataContext.RollbackNested(); throw; } TraceCallReturnEvent.Raise(); return; } catch (Exception ex) { ExceptionManager.Publish(ex); TraceCallReturnEvent.Raise(false); throw; } }
protected void btnCreate_Click(object sender, EventArgs e) { string memberId = Request.QueryString["MemberId"]; IOrgOwnMemberService srvOrgOwnMember = ServiceFactory.GetOrgOwnMemberService(); NdiPrincipal principal = (NdiPrincipal) Context.User; OrgOwnMember kefMember = null; kefMember = new OrgOwnMember(Guid.NewGuid()); kefMember.OrganisationKefRef = principal.OrganisationID; kefMember.OrganisationName = txtOrgInstitution.Text; kefMember.OrganisationDepartment = txtOrgDepartment.Text; kefMember.OrganisationPostCode = txtOrgZipCode.Text; kefMember.OrganisationCity = txtOrgCity.Text; kefMember.OrganisationAddress = txtOrgAddress.Text; kefMember.ContactName = txtMemberName.Text; kefMember.ContactType = cmbContactType.SelectedValue.ToString(); kefMember.ContactPosition = txtMemberPosition.Text; kefMember.ContactQualification = txtMemberQualification.Text; kefMember.MailingInstitution = txtMailingInstitution.Text; kefMember.MailingZipCode = txtMailingZipCode.Text; kefMember.MailingTownShip = txtMailingTownShip.Text; kefMember.MailingAddress = txtMailingAddress.Text; kefMember.ContactPhone1 = txtPhone1.Text; kefMember.ContactPhone2 = txtPhone2.Text; kefMember.ContactPhone3 = txtPhone3.Text; kefMember.ContactFax = txtFax.Text; kefMember.ContactEmail1 = txtEmail1.Text; kefMember.ContactEmail2 = txtEmail2.Text; kefMember.ContactEmail3 = txtEmail3.Text; kefMember.ContactPositionInKef = txtPositionInKef.Text; srvOrgOwnMember.OrgOwnMemberInsert(kefMember); Response.Redirect("KefOrganisationData.aspx?orgID=" + principal.OrganisationID.ToString()); }
// ------------------------------------------------------------------------------------- /// <summary> /// Copy constructor. /// </summary> /// <param name="IDVal">Value of 'uID' field</param> /// <param name="origInstance">Original document data to copy.</param> // ------------------------------------------------------------------------------------- public OrgOwnMember(DBGuid IDVal, OrgOwnMember origInstance) : base(IDVal, origInstance) { }
// ------------------------------------------------------------------------------------- /// <summary> /// Copy constructor. /// </summary> /// <param name="origInstance">Original document data to copy.</param> // ------------------------------------------------------------------------------------- public OrgOwnMember(OrgOwnMember origInstance) : base(origInstance) { }
public virtual void OrgOwnMemberUpdate(OrgOwnMember entity) { TraceCallEnterEvent.Raise(); try { m_DataContext.BeginNestedTran(); try { int count; m_DataContext.ndihdOrgOwnMemberUpdate(entity.ID, entity.OrganisationKefRef, entity.OrganisationName, entity.OrganisationDepartment, entity.OrganisationPostCode, entity.OrganisationCity, entity.OrganisationAddress, entity.ContactName, entity.ContactType, entity.ContactPosition, entity.ContactPositionInKef, entity.ContactQualification, entity.MailingInstitution, entity.MailingZipCode, entity.MailingTownShip, entity.MailingAddress, entity.ContactPhone1, entity.ContactPhone2, entity.ContactPhone3, entity.ContactFax, entity.ContactEmail1, entity.ContactEmail2, entity.ContactEmail3, out count); if (count == 0) throw new ServiceUpdateException(); m_DataContext.CommitNested(); } catch { m_DataContext.RollbackNested(); throw; } TraceCallReturnEvent.Raise(); return; } catch (Exception ex) { ExceptionManager.Publish(ex); TraceCallReturnEvent.Raise(false); throw; } }
public virtual OrgOwnMember OrgOwnMemberSelect(DBGuid IDVal) { TraceCallEnterEvent.Raise(); try { OrgOwnMember result = null; DataSet entitySet = m_DataContext.ndihdOrgOwnMemberSelect(IDVal); if (entitySet.Tables[0].Rows.Count != 0) { result = new OrgOwnMember(entitySet); } TraceCallReturnEvent.Raise(); return result; } catch (Exception ex) { ExceptionManager.Publish(ex); TraceCallReturnEvent.Raise(false); throw; } }
public override void OrgOwnMemberUpdate(OrgOwnMember entity) { TraceCallEnterEvent.Raise(); try { m_DataContext.BeginNestedTran(); try { #region : Frissítjük a dKefMembersLastModified idõpontot : OrganisationService srvOrg = new OrganisationService(m_DataContext); Organisation org = srvOrg.OrganisationSelect(entity.OrganisationKefRef); org.KefMembersLastModified = DateTime.Now; srvOrg.OrganisationUpdateBase(org); #endregion //elmentjük az entitás adatait base.OrgOwnMemberUpdate(entity); m_DataContext.CommitNested(); } catch { m_DataContext.RollbackNested(); throw; } TraceCallReturnEvent.Raise(); return; } catch (Exception ex) { ExceptionManager.Publish(ex); TraceCallReturnEvent.Raise(false); throw; } }