public static void OnLoad1Step( IDepartmentDetails form, EventArgs args) { IDepartment department = form.CurrentEntity as IDepartment; if(department != null) { IOwnerSecurityProfile securityProfile = department.Owner.GetOwnerSecurityProfile(department.Owner); if(securityProfile != null) form.securityProfileLookup.LookupResultValue = securityProfile; } }
public static void SaveDepartmentStep( IDepartmentDetails form, EventArgs args) { IDepartment department = form.CurrentEntity as IDepartment; department.Save(); // do this extra save since team is a view representing owner department.Owner.Save(); IOwnerSecurityProfile profile = form.securityProfileLookup.LookupResultValue as IOwnerSecurityProfile; department.Owner.UpdateOwnerSecurityProfile(department.Owner, profile); }
public static void OnLoad1Step(IDepartmentDetails form, EventArgs args) { IDepartment department = form.CurrentEntity as IDepartment; if (department != null) { IOwnerSecurityProfile securityProfile = department.Owner.GetOwnerSecurityProfile(department.Owner); if (securityProfile != null) { form.securityProfileLookup.LookupResultValue = securityProfile; } } }
public static void SaveDepartmentStep(IDepartmentDetails form, EventArgs args) { IDepartment department = form.CurrentEntity as IDepartment; department.Save(); // do this extra save since team is a view representing owner department.Owner.Save(); IOwnerSecurityProfile profile = form.securityProfileLookup.LookupResultValue as IOwnerSecurityProfile; department.Owner.UpdateOwnerSecurityProfile(department.Owner, profile); }