public virtual int _GetUniqueIdentifier()
        {
            var hashCode = 399326290;

            hashCode = hashCode * -1521134295 + (Id?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (DisplayName?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (StandardName?.GetHashCode() ?? 0);
            return(hashCode);
        }
        public override int GetHashCode()
        {
            unchecked
            {
                const int hashBase   = (int)2166136261;
                const int multiplier = 16777619;

                int hash = hashBase;
                hash = (hash * multiplier) ^ StandardCode.GetHashCode();
                hash = (hash * multiplier) ^ (StandardReference is null ? 0 : StandardReference.GetHashCode());
                hash = (hash * multiplier) ^ (StandardName is null ? 0 : StandardName.GetHashCode());
                hash = (hash * multiplier) ^ Level.GetHashCode();
                return(hash);
            }
        }
예제 #3
0
        public String GetTextView(Int32 indentLevel)
        {
            String        i  = HttpClientHelper.Indent(indentLevel);
            StringBuilder sb = new StringBuilder()
                               .Append(i).Append("Id:                ").Append(Id)
                               .Append(i).Append("Id_External:       ").Append(Id_External)
                               .Append(i).Append("CreatedAt:         ").Append(CreatedAt)
                               .Append(i).Append("UpdatedAt:         ").Append(UpdatedAt)
                               .Append(i).Append("Description:       ").Append(Description)
                               .Append(i).Append("Id_WorkTypeGroup:  ").Append(Id_WorkTypeGroup)
                               .Append(i).Append("Name:              ").Append(Name)
                               .Append(i).Append("TypeIsAgri:        ").Append(TypeIsAgri)
                               .Append(i).Append("TypeIsApplication: ").Append(TypeIsApplication)
                               .Append(i).Append("TypeIsSowing:      ").Append(TypeIsSowing)
                               .Append(i).Append("TypeIsHarvesting:  ").Append(TypeIsHarvesting)
                               .Append(i).Append("TypeIsSoil:        ").Append(TypeIsSoil)
                               .Append(i).Append("StandardName:      ").Append(StandardName.AsRuString())
                               .Append(i).Append("Hidden:            ").Append(Hidden)
            ;

            return(sb.ToString());
        }
예제 #4
0
 private void txtFullName_EditValueChanged(object sender, EventArgs e)
 {
     try
     {
         string strFilter = string.Format("LastNameEN like '%{0}%' or EmployeeID like '%{1}%'", StandardName.TitleCase(Common.Methods.RemoveToneMarks(txtSearch.Text.Trim())), txtSearch.Text.Trim());
         dtEmployeeIDList.DefaultView.RowFilter = strFilter;
         grdEmployeeIDList.Refresh();
         grvEmployeeID.RefreshData();
     }
     catch (Exception ex)
     {
         HPA.Common.Helper.ShowException(ex, ex.Message, "");
     }
 }