资源预览内容
第1页 / 共57页
第2页 / 共57页
第3页 / 共57页
第4页 / 共57页
第5页 / 共57页
第6页 / 共57页
第7页 / 共57页
第8页 / 共57页
第9页 / 共57页
第10页 / 共57页
亲,该文档总共57页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
摘 要BSN(Business Support Network)计费系统的预付费入库,就是将经过拣重以后的话单文件进行解析并提取其中的信息,然后把这些信息入库,将它们以表的结构存放在数据库中,总的来说它实现的是从文件级到表级的过程。入库后产生了三张表:清单表、费用表和总帐(sd)表。清单表、费用表是给web前台查询用的,为客户提供清单级的查询;sd表的帐目数据是给以后出帐用的,可以为客户提供总帐级的查询。由于电信计费时的数据量很大,入库时,对数据库的操作会很慢,而电信计费要求是快速的实现计费,为此采取批量入库的方法,即写数据库时我们采用批量操作,当提取的记录达到一定数目时,把它们一起写入数据库,从而可以实现快速的对数据库进行写操作。实现从文件级到表级的转换,关键是如何提取文件中的话单记录并把它放到表中相应得位置中,在这里先读取话单文件的头文件,把它属性标识ID存放到当前文件的属性ID序列中;然后取出一条话单记录,依次读取话单字段,然后根据当前文件的属性ID序列中对应属性标识ID来设置话单属性,并把它存放到计费原数据结构(TCallDetailRecord)pRecordData的对应的成员变量里。要提取相应得字段的信息时,再用属性标识ID来匹配取得。入库时,先用从话单文件中提取的信息以及其他必要信息来填写清单表、费用表和sd表,并把他们以向量的形式存放起来,处理完一个文件后,检查是否到了批量入库的记录数,到了就把这些记录写入数据库。关键词:BSN;计费系统;预付费;话单文件;入库5ABSTRACTBSN (Business Support Network) Billing System Prepayment is to depositing After sorting heavy billing documents, parse and extract the information, then storage the information, They will need to be stored in the structure of the database. Generally speaking, it realizes is from the document level to the table level process. After depositing have three tables : Detailed list table,expense table and general ledger (sd) table The detailed list table and the expense table are uses for the web onstage inquiry, to provide our customers with inventory level inquiry; The sd table account data is will enter in the accounts to later with, may provided to customers of the general ledger level inquiry. As the telecommunications billing tremendous volume of data and storage, the operation of the database would be very slow. but Telecom Billing demand is the fast realization of billing . Therefore, we adopt the method which the batch goes into storage, write database we use batch operations, When the extraction of a certain number of records, Put them together into the database. Therefore may realize fast carries on to the database writes theoperation.The realization from the document level to the table leveltransformation, the key is how to extract the paper records and put it to the table in the corresponding location . Here, first reads the head of the bill document ,puts its attribute ID to deposit to in the current document attributeID sequence; Then takes out a bill record, reads in turn takes the bill field,then, corresponds the attribute according to in the current documentattribute ID sequence to mark ID to establish the bill attribute. And deposits it to the correspondence member variable of the original billing data structure (TCallDetailRecord) pRecordData. When wants the extract phase earns the field the information, again uses the attribute to mark ID to match obtains.When depositing, First uses the information which with draws from the bill document fills and other information necessary to complete the inventory table, the cost tables and sd table. And deposits them by the vector form After processes a document, checks whether arrived the record number which the batch goes into storage, if achieved the request then put the records into the database.Keywords:BSN; Billing System; Prepayment; Billing documents; Depositing毕业设计(论文)原创性声明和使用授权说明原创性声明本人郑重承诺:所呈交的毕业设计(论文),是我个人在指导教师的指导下进行的研究工作及取得的成果。尽我所知,除文中特别加以标注和致谢的地方外,不包含其他人或组织已经发表或公布过的研究成果,也不包含我为获得 及其它教育机构的学位或学历而使用过的材料。对本研究提供过帮助和做出过贡献的个人或集体,均已在文中作了明确的说明并表示了谢意。作 者 签 名: 日 期: 指导教师签名: 日期: 使用授权说明本人完全了解 大学关于收集、保存、使用毕业设计(论文)的规定,即:按照学校要求提交毕业设计(论文)的印刷本和电子版本;学校有权保存毕业设计(论文)的印刷本和电子版,并提供目录检索与阅览服务;学校可以采用影印、缩印、数字化或其它复制手段保存论文;在不以赢利为目的前提下,学校可以公布论文的部分或全部内容。作者签名: 日 期: 学位论文原创性声明本人郑重声明:所呈交的论文是本人在导师的指导下独立进行研究所取得的研究成果。除了文中特别加以标注引用的内容外,本论文不包含任何其他个人或集体已经发表或撰写的成果作品。对本文的研究做出重要贡献的个人和集体,均已在文中以明确方式标明。本人完全意识到本声明的法律后果由本人承担。作者签名: 日期: 年 月 日学位论文版权使用授权书本学位论文作者完全了解学校有关保留、使用学位论文的规定,同意学校保留并向国家有关部门或机构送交论文的复印件和电子版,允许论文被查阅和借阅。本人授权 大学可以将本学位论文的全部或部分内容编入有关数据库进行检索,可以采用影印、缩印或扫描等复制手段保存和汇编本学位论文。涉密论文按学校规定处理。作者签名:日期: 年 月 日导师签名: 日期: 年 月 日目 录第一章绪论11.1 BSN11.1.1 BSN概述11.1.2计费系统再BSN中的定位31.2计费系统41.2.1 计费系统概述41.2.2 计费系统的业务流程51.3 预付费和后付费61.4 预付费入库71.4.1 预付费入库在计费中系统中的位置71.4.2预付费入库前流程简介71.5 本文的组织结构10第二章开发环境和开发基础介绍112.1开发环境介绍112.2开发基础介绍11第三章预付费入库设计173.1 预付费入库基类的设计183.2.1 预付费入库基类(TPcsTrans)的设计183.2.1数据组织操作类(TeventPcsInfo)的设计203.2程序流程223.2.1 主程序流程223.2.2 处理命令Execute()程序流程233.2.3处理话单文件函数ProcessPcsFile()程序流程23第四章预付费入库程序的具体实现274.1处理命令Execute()程序274.2处理话单文件函数ProcessPcsFile()程序294.3 一条话单的处理344.3.1处理一条话单DealOneCdr()344.3.2 入库结构的转换Convert()344.3.3 向数据集合类里面插入数据374.4完成一个文件的处理DoneOneFile()384.4.1 DoneOneFile()384.4.2将临时数据插入容器InsertOneFileResult()394.4.3入库处理PcsIntoDB()40第五章程序的运行与结果425.1程序的运行过程:425.2结果输出45结束语46致谢47参考文献48附录149第一章 绪论现代电信网络正在向着网络业务的数据化、综合化,网络传输的光纤化、宽带化,网络处理的分组化、IP化趋势演进。国内电信运营商通过引进国内外各大主流厂商的一流产品,构建了传输和交换能力均为国际一流水准的网络。但是,国内电信运营商在经营模式,服务内容,服务水平方面与国外电信运营商存在相当的差距。提高经营水平和服务水平,使电信运营商在以客户为中心的现代市场环境和日益激烈的市场竞争中处于有利的地位,是目前国内
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号