Skip to content

Commit

Permalink
fix ticket udf for create
Browse files Browse the repository at this point in the history
  • Loading branch information
moldypenguins committed Dec 18, 2019
1 parent cdde1ea commit 17c6637
Show file tree
Hide file tree
Showing 30 changed files with 12 additions and 17 deletions.
Binary file modified .vs/AutotaskNET/v15/.suo
Binary file not shown.
Binary file modified .vs/AutotaskNET/v15/Server/sqlite3/storage.ide
Binary file not shown.
Binary file modified .vs/AutotaskNET/v15/Server/sqlite3/storage.ide-shm
Binary file not shown.
Binary file modified .vs/AutotaskNET/v15/Server/sqlite3/storage.ide-wal
Binary file not shown.
Binary file added .vs/AutotaskNET/v16/.suo
Binary file not shown.
Empty file.
Binary file added .vs/AutotaskNET/v16/Server/sqlite3/storage.ide
Binary file not shown.
2 changes: 1 addition & 1 deletion AutotaskNET/Entities/Ticket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public static implicit operator net.autotask.webservices.Ticket(Ticket ticket)
TicketNumber = ticket.TicketNumber,
TicketType = ticket.TicketType,
Title = ticket.Title,
UserDefinedFields = Array.ConvertAll(ticket.UserDefinedFields.ToArray(), new Converter<UserDefinedField, net.autotask.webservices.UserDefinedField>(UserDefinedField.ToATWS))
UserDefinedFields = ticket.UserDefinedFields == null ? null : Array.ConvertAll(ticket.UserDefinedFields.ToArray(), new Converter<UserDefinedField, net.autotask.webservices.UserDefinedField>(UserDefinedField.ToATWS))
};

} //end implicit operator net.autotask.webservices.Ticket(Ticket ticket)
Expand Down
11 changes: 5 additions & 6 deletions AutotaskNET/Entities/TicketNote.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ public class TicketNote : Entity
public TicketNote() : base() { } //end TicketNote()
public TicketNote(net.autotask.webservices.TicketNote entity) : base(entity)
{
this.CreatorResourceID = entity.CreatorResourceID == null ? default(int?) : int.Parse(entity.CreatorResourceID.ToString());
this.CreatorResourceID = entity.CreatorResourceID == null ? default(long?) : long.Parse(entity.CreatorResourceID.ToString());
this.Description = entity.Description == null ? default(string) : entity.Description.ToString();
this.LastActivityDate = entity.LastActivityDate == null ? default(DateTime?) : DateTime.Parse(entity.LastActivityDate.ToString());
this.NoteType = int.Parse(entity.NoteType.ToString());
this.Publish = int.Parse(entity.Publish.ToString());
this.TicketID = int.Parse(entity.TicketID.ToString());
this.TicketID = long.Parse(entity.TicketID.ToString());
this.Title = entity.Title == null ? default(string) : entity.Title.ToString();

} //end TicketNote(net.autotask.webservices.TicketNote entity)
Expand All @@ -56,9 +56,8 @@ public static implicit operator net.autotask.webservices.TicketNote(TicketNote t
#region Fields

#region ReadOnly Fields


public int? CreatorResourceID; //ReadOnly [Resource]

public long? CreatorResourceID; //ReadOnly [Resource]
public DateTime? LastActivityDate; //ReadOnly

#endregion //ReadOnly Fields
Expand All @@ -68,7 +67,7 @@ public static implicit operator net.autotask.webservices.TicketNote(TicketNote t
public string Description; //Required Length:32000
public int NoteType; //Required PickList
public int Publish; //Required PickList
public int TicketID; //Required [Ticket]
public long TicketID; //Required [Ticket]
public string Title; //Required Length:250

#endregion //Required Fields
Expand Down
4 changes: 2 additions & 2 deletions AutotaskNET/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.13.3.0")]
[assembly: AssemblyFileVersion("0.13.3.0")]
[assembly: AssemblyVersion("0.13.5.0")]
[assembly: AssemblyFileVersion("0.13.5.0")]
[assembly: NeutralResourcesLanguage("en-CA")]

Binary file modified AutotaskNET/bin/Debug/AutotaskNET.dll
Binary file not shown.
Binary file modified AutotaskNET/bin/Debug/AutotaskNET.pdb
Binary file not shown.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ D:\GitHub\AutotaskNET\AutotaskNET\obj\Debug\AutotaskNET.pdb
D:\Source\GitHub\AutotaskNET\AutotaskNET\bin\Debug\AutotaskNET.dll.config
D:\Source\GitHub\AutotaskNET\AutotaskNET\bin\Debug\AutotaskNET.dll
D:\Source\GitHub\AutotaskNET\AutotaskNET\bin\Debug\AutotaskNET.pdb
D:\Source\GitHub\AutotaskNET\AutotaskNET\obj\Debug\AutotaskNET.csproj.CoreCompileInputs.cache
D:\Source\GitHub\AutotaskNET\AutotaskNET\obj\Debug\AutotaskNET.csprojAssemblyReference.cache
D:\Source\GitHub\AutotaskNET\AutotaskNET\obj\Debug\AutotaskNET.dll
D:\Source\GitHub\AutotaskNET\AutotaskNET\obj\Debug\AutotaskNET.pdb
Binary file not shown.
Binary file modified AutotaskNET/obj/Debug/AutotaskNET.dll
Binary file not shown.
Binary file modified AutotaskNET/obj/Debug/AutotaskNET.pdb
Binary file not shown.
Binary file modified AutotaskNET/obj/Debug/DesignTimeResolveAssemblyReferences.cache
Binary file not shown.
Binary file not shown.
5 changes: 2 additions & 3 deletions AutotaskTEST/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,9 @@ static void Main(string[] args)
Console.WriteLine();

#endregion //Contacts


/*

/*
//Entity Information
Console.WriteLine($"{DateTime.Now.ToLongTimeString()}\tGetting Entity Information...");
List<EntityInformation> eInformation = atAPI.GetEntityInfo();
Expand All @@ -169,9 +168,9 @@ static void Main(string[] args)
Console.WriteLine($"\t\t - {udfInfo.Name} = Type: {udfInfo.Type}");
}
Console.WriteLine();
*/


Console.WriteLine($"{DateTime.Now.ToLongTimeString()}\tDone.");
Console.WriteLine();
}
Expand Down
Binary file modified AutotaskTEST/bin/Debug/AutotaskNET.dll
Binary file not shown.
Binary file modified AutotaskTEST/bin/Debug/AutotaskNET.pdb
Binary file not shown.
Binary file modified AutotaskTEST/bin/Debug/AutotaskTEST.exe
Binary file not shown.
Binary file modified AutotaskTEST/bin/Debug/AutotaskTEST.pdb
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file modified AutotaskTEST/obj/Debug/AutotaskTEST.exe
Binary file not shown.
Binary file modified AutotaskTEST/obj/Debug/AutotaskTEST.pdb
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ D:\Source\GitHub\AutotaskNET\AutotaskTEST\bin\Debug\AutotaskNET.dll
D:\Source\GitHub\AutotaskNET\AutotaskTEST\bin\Debug\AutotaskNET.pdb
D:\Source\GitHub\AutotaskNET\AutotaskTEST\bin\Debug\AutotaskNET.dll.config
D:\Source\GitHub\AutotaskNET\AutotaskTEST\obj\Debug\AutotaskTEST.csprojAssemblyReference.cache
D:\Source\GitHub\AutotaskNET\AutotaskTEST\obj\Debug\AutotaskTEST.csproj.CoreCompileInputs.cache
D:\Source\GitHub\AutotaskNET\AutotaskTEST\obj\Debug\AutotaskTEST.csproj.CopyComplete
D:\Source\GitHub\AutotaskNET\AutotaskTEST\obj\Debug\AutotaskTEST.exe
D:\Source\GitHub\AutotaskNET\AutotaskTEST\obj\Debug\AutotaskTEST.pdb
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![Autotask PSA](https://www.risolv.ca/images/AutotaskPSA.png)
![Autotask PSA](https://host.risolv.ca/images/AutotaskPSA.png)

## AutotaskNET ![GitHub License](https://img.shields.io/github/license/risolv/AutotaskNET.svg?logo=GNU&logoColor=FFFFFF&style=flat) ![GitHub Release](https://img.shields.io/github/release/risolv/AutotaskNET.svg?logo=GitHub&logoColor=FFFFFF&style=flat) ![Travis Build Status](https://img.shields.io/travis/com/risolv/AutotaskNET.svg?logo=Travis&logoColor=FFFFFF&style=flat)
*Autotask Web Services API .NET Interface*
Expand Down

0 comments on commit 17c6637

Please sign in to comment.