/// <summary>
 /// Get Document By DocNum
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="businessObject"></param>
 /// <param name="docNum">DocNum</param>
 /// <returns></returns>
 public static bool GetByDocNum <T>(this BusinessObject <T> businessObject, int docNum) where T : Documents
 {
     return(businessObject.Object.Search(businessObject.BoObjectType.GetTableName(), FrameworkQueries.Instance.GetByDocNumQuery(docNum)));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Get Document By DocNum
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="businessObject"></param>
 /// <param name="docNum">DocNum</param>
 /// <returns></returns>
 public static bool GetByDocNum <T>(this BusinessObject <T> businessObject, int docNum) where T : Documents
 {
     return(businessObject.Object.Search(businessObject.BoObjectType.GetTableName(), $"[DocNum]={docNum}"));
 }