This commit is contained in:
2019-10-08 21:14:47 +00:00
parent aad7577de0
commit 4d468ec240

View File

@@ -2368,6 +2368,30 @@ namespace GZTW.AyaNova.BLL
/*Custom fields*/
mCustom1,mCustom2,mCustom3,mCustom4,mCustom5,mCustom6,mCustom7,mCustom8,mCustom9,mCustom0));
MarkOld();//db is now synched with object
// Commit the transaction
transaction.Commit();
}
catch
{
// Rollback transaction
transaction.Rollback();
throw;
}
finally
{
connection.Close();
}
//Successful update so
//change modification time to match
this.mModified.Date=dtModified;
//case 3701 set pm's inactive if client is now inactive
if (this.mActiveChanged && this.mActive == false)
{
@@ -2397,34 +2421,13 @@ namespace GZTW.AyaNova.BLL
" WHERE AWORKORDERID=@PMID "
);
cmPM.AddInParameter("@PMID", DbType.Guid, i.LT_O_WorkorderPreventiveMaintenance.Value);
DBUtil.DB.ExecuteNonQuery(cmPM, transaction);
DBUtil.DB.ExecuteNonQuery(cmPM);
}
}
}
}
MarkOld();//db is now synched with object
// Commit the transaction
transaction.Commit();
}
catch
{
// Rollback transaction
transaction.Rollback();
throw;
}
finally
{
connection.Close();
}
//Successful update so
//change modification time to match
this.mModified.Date=dtModified;
if (AyaBizUtils.AllowAutomaticMRUOnUpdate)
{
AyaBizUtils.MRU.Add(RootObjectTypes.Client, mID);