Esempio n. 1
0
        private ComplianceDocumentReference InsertComplianceDocumentReference(PXCache cache,
                                                                              PXFieldUpdatingEventArgs args, Guid?noteId)
        {
            var keys      = ((string)args.NewValue).Split(',');
            var type      = keys[0].Trim();
            var refNumber = keys[1].Trim();
            var reference = InsertComplianceDocumentReference(cache.Graph, ComplianceReferenceTypeHelper.GetKeyByValue(itemType, type), refNumber, noteId);

            return(reference);
        }
        public static DocumentKey ConvertToDocumentKey <T>(string clDisplayName)
        {
            var keys      = (clDisplayName).Split(',');
            var type      = keys[0].Trim();
            var refNumber = keys[1].Trim();

            return(new DocumentKey
                   (
                       ComplianceReferenceTypeHelper.GetKeyByValue(typeof(T), type),
                       refNumber
                   ));
        }
Esempio n. 3
0
 private string GetFieldValue(ComplianceDocumentReference reference)
 {
     return(string.Join(", ", ComplianceReferenceTypeHelper.GetValueByKey(itemType, reference.Type),
                        reference.ReferenceNumber));
 }