示例#1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="doc"></param>
        /// <returns></returns>
        public static string GetDateStamp(XmlDocument doc)
        {
            XmlNode receiptNode = null;

            try {
                receiptNode = doc.DocumentElement.SelectSingleNode("/Transaction/Receipt");
            }
            catch (XPathException xpe) {
                throw xpe;
            }

            return(SummaCommon.GetSummaFormattedTimestamp(receiptNode.Attributes["Date"].Value,
                                                          receiptNode.Attributes["Time"].Value));
        }
示例#2
0
 internal static string GetTimestamp(XmlNode productTotalNode)
 {
     return(SummaCommon.GetSummaFormattedTimestamp(productTotalNode.Attributes["Date"].Value,
                                                   productTotalNode.Attributes["Time"].Value));
 }