public List <String> GetDocItemTagInsertString(Int32 hid)
        {
            List <String> listSqls = new List <string>();

            foreach (var term in TagTerms)
            {
                listSqls.Add(@"INSERT INTO [dbo].[t_tag] ([HID],[TagType],[TagID],[TagSubID],[Term]) VALUES ("
                             + string.Join(",", new string[] {
                    hid.ToString(),
                    ((Int32)(HIHTagTypeEnum.FinanceDocumentItem)).ToString(),
                    DocID.ToString(),
                    ItemID.ToString(),
                    "N'" + term + "'"
                })
                             + ")");
            }

            return(listSqls);
        }
Beispiel #2
0
 /// <summary>
 /// Returns a hash code for this instance.
 /// </summary>
 /// <returns>An hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.</returns>
 public override int GetHashCode()
 {
     return(string.Concat("DocListFilteredCriteria", DocID.ToString(), DocClassID.ToString(), DocTypeID.ToString(), SenderID.ToString(), RecipientID.ToString(), DocRef.ToString(), DocDate.ToString(), Subject.ToString(), DocStatusID.ToString(), CreateDate.ToString(), CreateUserID.ToString(), ChangeDate.ToString(), ChangeUserID.ToString()).GetHashCode());
 }
Beispiel #3
0
 /// <summary>
 /// Returns a hash code for this instance.
 /// </summary>
 /// <returns>An hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.</returns>
 public override int GetHashCode()
 {
     return(string.Concat("Criteria2", CreateDoc.ToString(), DocID.ToString(), CreateFolder.ToString(), FolderID.ToString(), DocListFilteredCriteria.ToString()).GetHashCode());
 }
Beispiel #4
0
 /// <summary>
 /// Returns a string that represents the current <see cref="Doc"/>
 /// </summary>
 /// <returns>A <see cref="System.String"/> that represents this instance.</returns>
 public override string ToString()
 {
     // Return the Primary Key as a string
     return(DocID.ToString() + ", " + DocRef.ToString());
 }
Beispiel #5
0
 /// <summary>
 /// Returns a hash code for this instance.
 /// </summary>
 /// <returns>An hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.</returns>
 public override int GetHashCode()
 {
     return(string.Concat("CriteriaGetByObject", DocID.ToString(), FolderID.ToString()).GetHashCode());
 }