コード例 #1
0
ファイル: CVoucherUI.cs プロジェクト: phinamcn03/ttdk
        public string GetTransactionListAutoComplete(string funcPara)
        {
            StringBuilder ret        = new StringBuilder();
            string        InputValue = CXmlPara.CreatePara(funcPara);

            ServiceREF.GeneralLedgerService.COutputValue   outputValue = new ServiceREF.GeneralLedgerService.COutputValue();
            ServiceREF.GeneralLedgerService.CTransaction[] list        = gl_service.GetTransactionList(InputValue, ref outputValue);
            if (list != null && list.Length > 0)
            {
                DateTime date = DateTime.Now;
                foreach (var item in list)
                {
                    if (item.RefDate != null)
                    {
                        date = (DateTime)item.RefDate;
                    }
                    ret.AppendFormat("{0}|{1}|{2}|{3}|{4}|{5}|{6}|{7}|{8}|{9}|{10}|{11}|{12}\n",
                                     item.ID, item.RefNo, item.PartnerName, item.PartnerID,
                                     date.ToString("yyyy-MM-dd"), item.RefID, item.TotalAmount, item.Amount,
                                     item.IsPosted, item.IsCancel, item.IsBalance,
                                     item.UnPayAmount, item.PayAmount);
                }
            }
            string result = string.Empty;

            if (ret.Length > 0)
            {
                result = ret.ToString(0, ret.Length - 1);
            }
            return(result);
        }
コード例 #2
0
ファイル: CPaymentUI.cs プロジェクト: phinamcn03/ttdk
        public string GetGrid(int gridID, int currPage, int NumberRowOfPage, string exAttribute)
        {
            string InputValue = CXmlPara.CreatePara(new CPara[] {
                new CPara("PageIndex", currPage.ToString()),
                new CPara("NumberRowOfPage", NumberRowOfPage.ToString())
            },
                                                    exAttribute
                                                    );

            ServiceREF.GeneralLedgerService.COutputValue   outputValue = new ServiceREF.GeneralLedgerService.COutputValue();
            ServiceREF.GeneralLedgerService.CTransaction[] list        = gl_service.GetTransactionList(InputValue, ref outputValue);
            return(CGrid.ToJsonForHandle <ServiceREF.GeneralLedgerService.CTransaction>(0, gridID, list, currPage, outputValue.TotalPage, outputValue.TotalRow));
        }