Ejemplo n.º 1
0
        /// <summary>
        /// Returns true if SecurityContractApplication instances are equal
        /// </summary>
        /// <param name="other">Instance of SecurityContractApplication to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(SecurityContractApplication other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Fullname == other.Fullname ||
                     Fullname != null &&
                     Fullname.Equals(other.Fullname)
                     ) &&
                 (
                     ApplicationFunctions == other.ApplicationFunctions ||
                     ApplicationFunctions != null &&
                     other.ApplicationFunctions != null &&
                     ApplicationFunctions.SequenceEqual(other.ApplicationFunctions)
                 ) &&
                 (
                     DataPolicies == other.DataPolicies ||
                     DataPolicies != null &&
                     other.DataPolicies != null &&
                     DataPolicies.SequenceEqual(other.DataPolicies)
                 ));
        }
Ejemplo n.º 2
0
        private void loadMenu(decimal _bas_id)
        {
            List <ApplicationFunctions> colappFunctions = new List <ApplicationFunctions>();

            colappFunctions  = ApplicationFunctions.getFunctions_tree(_bas_id);//  .getCoordinators(_user._usv_co, _user._usv_warehouse, _user._usv_area);
            Session["_MENU"] = colappFunctions;
            //dwCustomers.Focus();
            //// Enlazar datos al dropdown list encargado de mostrar la informacion de los coordinadores
            //dwCustomers.DataSource = dsCustomers;
            //dwCustomers.DataBind();
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (Fullname != null)
         {
             hashCode = hashCode * 59 + Fullname.GetHashCode();
         }
         if (ApplicationFunctions != null)
         {
             hashCode = hashCode * 59 + ApplicationFunctions.GetHashCode();
         }
         if (DataPolicies != null)
         {
             hashCode = hashCode * 59 + DataPolicies.GetHashCode();
         }
         return(hashCode);
     }
 }