コード例 #1
0
        public void GeneralLedgerEntries(JToken ledgerEntries)
        {
            JToken  journals    = ledgerEntries.SelectToken("Journal");
            JObject generalInfo = FillInfo(ledgerEntries);



            if (journals != null)
            {
                string journalsJson = JsonConvert.SerializeObject(JsonConvert.DeserializeObject <List <SaftJournal> >(journals.ToString()));
                MongoConnection.AddMany("Journals", journalsJson);
            }
            if (generalInfo != null)
            {
                MongoConnection.Add("LedgerEntriesInfo", generalInfo.ToString());
            }
        }
コード例 #2
0
 public void Header(JToken header)
 {
     MongoConnection.Add("Header", header.ToString());
 }