public string RelateRecord(string parent, string parentId, string child, string childId) { parent = ConvertToProper(parent); child = ConvertToProper(child); var value = new set_relationship_value(); value.module1 = parent; value.module1_id = parentId; value.module2 = child; value.module2_id = childId; error_value value2 = _sugarsoap.set_relationship(_session, value); return(value2.number + ":" + value2.description); }
public string RelateRecord(string parent, string parentId, string child, string childId) { parent = ConvertToProper(parent); child = ConvertToProper(child); var value = new set_relationship_value(); value.module1 = parent; value.module1_id = parentId; value.module2 = child; value.module2_id = childId; error_value value2 = _sugarsoap.set_relationship(_session, value); return (value2.number + ":" + value2.description); }
public set_relationship_list_result set_relationships(string session, set_relationship_value[] set_relationship_list) { Guid gUSER_ID = GetSessionUserID(session); set_relationship_list_result results = new set_relationship_list_result(); results.created = 0; results.failed = 0; for ( int i=0; i < set_relationship_list.Length; i ++ ) { int nACLACCESS = Security.GetUserAccess(set_relationship_list[i].module1, "edit"); if ( nACLACCESS < 0 ) { L10N L10n = new L10N("en-US"); throw(new Exception(L10n.Term("ACL.LBL_INSUFFICIENT_ACCESS"))); } SetRelationship(set_relationship_list[i].module1, set_relationship_list[i].module1_id, set_relationship_list[i].module2, set_relationship_list[i].module2_id); results.created++ ; } return results; }
public error_value set_relationship(string session, set_relationship_value set_relationship_value) { Guid gUSER_ID = GetSessionUserID(session); // 02/16/2006 Paul. Don't need to verify the modules as it will be done inside SetRelationship(); //VerifyModuleName(set_relationship_value.module1); //VerifyModuleName(set_relationship_value.module2); int nACLACCESS = Security.GetUserAccess(set_relationship_value.module1, "edit"); if ( nACLACCESS < 0 ) { L10N L10n = new L10N("en-US"); throw(new Exception(L10n.Term("ACL.LBL_INSUFFICIENT_ACCESS"))); } error_value results = new error_value(); SetRelationship(set_relationship_value.module1, set_relationship_value.module1_id, set_relationship_value.module2, set_relationship_value.module2_id); return results; }
public set_relationship_list_result set_relationships(string session, set_relationship_value[] set_relationship_list) { object[] results = this.Invoke("set_relationships", new object[] { session, set_relationship_list}); return ((set_relationship_list_result)(results[0])); }
public error_value set_relationship(string session, set_relationship_value set_relationship_value) { object[] results = this.Invoke("set_relationship", new object[] { session, set_relationship_value}); return ((error_value)(results[0])); }