case 3823

This commit is contained in:
2020-10-15 20:36:08 +00:00
parent 6ce273b16b
commit fb9066d5d1
6 changed files with 29 additions and 11 deletions

View File

@@ -3353,7 +3353,7 @@ At first I was happy to find your code that solved my problem, but I did not lik
static public bool EditRecord(RootObjectTypes ObjectType, Guid ID)
{
//call version with optional id as optional id empty
return EditRecord(ObjectType, ID, Guid.Empty);
return EditRecord(ObjectType, ID);
}
//case 227
@@ -3376,18 +3376,17 @@ At first I was happy to find your code that solved my problem, but I did not lik
/// <returns></returns>
static public bool EditRecord(TypeAndID TID)
{
return EditRecord(TID.RootObjectType, TID.ID, Guid.Empty);
return EditRecord(TID.RootObjectType, TID.ID);
}
/// <summary>
/// Same as edit record but with optional id parameter
/// to be used when creating a work order or other object that requires the optional id value
/// </summary>
/// <param name="ObjectType"></param>
/// <param name="ID"></param>
/// <param name="OptionalIDForCreate"></param>
/// <param name="ID"></param>
/// <param name="subTypeIdToOpen"></param>
/// <returns></returns>
static public bool EditRecord(RootObjectTypes ObjectType, Guid ID, Guid OptionalIDForCreate, TypeAndID subTypeIdToOpen=null)
static public bool EditRecord(RootObjectTypes ObjectType, Guid ID, TypeAndID subTypeIdToOpen=null)
{
//case 1039 //if(log.IsDebugEnabled)
//case 1039 //log.Debug("EditRecord(" + ObjectType.ToString()+", " + ID.ToString());