/// <summary>
        /// Before Save
        /// </summary>
        /// <param name="newRecord">new</param>
        /// <returns>true if can be saved</returns>
        protected override bool BeforeSave(bool newRecord)
        {
            //	if (RESPONSIBLETYPE_Human.equals(getResponsibleType()) && getAD_User_ID() == 0)
            //		return true;
            if (RESPONSIBLETYPE_Role.Equals(GetResponsibleType()) &&
                GetAD_Role_ID() == 0 &&
                GetAD_Client_ID() > 0)
            {
                log.SaveError("Error", Msg.ParseTranslation(GetCtx(), "@RequiredEnter@ @AD_Role_ID@"));
                return(false);
            }
            //	User not used
            if (!RESPONSIBLETYPE_Human.Equals(GetResponsibleType()) && GetAD_User_ID() == 0)
            {
                SetAD_User_ID(0);
            }
            //	Role not used
            if (!RESPONSIBLETYPE_Role.Equals(GetResponsibleType()) && GetAD_Role_ID() == 0)
            {
                SetAD_Role_ID(0);
            }



            //Lakhwinder
            if (RESPONSIBLETYPE_Human.Equals(GetResponsibleType()))
            {
                if (GetAD_User_ID() == 0)
                {
                    return(false);
                }
                SetAD_Role_ID(0);
            }
            else if (RESPONSIBLETYPE_Role.Equals(GetResponsibleType()))
            {
                if (GetAD_Role_ID() == 0)
                {
                    return(false);
                }
                SetAD_User_ID(0);
            }
            else if (RESPONSIBLETYPE_Organization.Equals(GetResponsibleType()))
            {
                SetAD_Role_ID(0);
                SetAD_User_ID(0);
            }
            //Lakhwinder
            return(true);
        }
 /// <summary>
 /// Is Role Responsible
 /// </summary>
 /// <returns>true if role</returns>
 public bool IsRole()
 {
     return(RESPONSIBLETYPE_Role.Equals(GetResponsibleType()) &&
            GetAD_Role_ID() != 0);
 }