Esempio n. 1
0
        public string GetTransaction(string exAttribute)
        {
            string InputValue = CXmlPara.CreatePara(exAttribute);

            ServiceREF.GeneralLedgerService.CTransaction item = gl_service.GetTransaction(InputValue);
            return(CJson.SerializeObject(item));
        }
Esempio n. 2
0
        public string GetTransaction(string funcPara)
        {
            StringBuilder ret        = new StringBuilder();
            string        InputValue = CXmlPara.CreatePara(funcPara);

            ServiceREF.GeneralLedgerService.GeneralLedgerService gl_service = new ServiceREF.GeneralLedgerService.GeneralLedgerService();
            ServiceREF.GeneralLedgerService.CTransaction         item       = gl_service.GetTransaction(funcPara);
            if (item != null)
            {
                DateTime date = DateTime.Now;
                if (item.RefDate != null)
                {
                    date = (DateTime)item.RefDate;
                }
                ret.AppendFormat("{0}|{1}|{2}|{3}|{4}|{5}|{6}|{7}|{8}|{9}|{10}\n",
                                 item.ID, item.RefNo, item.RefTypeName,
                                 date.ToString("yyyy-MM-dd"), item.PartnerName, item.Amount, item.PartnerID, item.RefID,
                                 item.IsPosted, item.IsCancel, item.IsBalance);
            }
            return(ret.ToString());
        }//GetPersonList