如何将数据库表的字段值放入虚构(任意)标记中? [英] How to put values of fields of tables of a database into fictional(arbitrary) tags?

查看:93
本文介绍了如何将数据库表的字段值放入虚构(任意)标记中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友们,我有一个大学项目,在这个项目中,诊所经理可以访问相关部分的应用程序,打算选择所有或部分员工(包含:医生,护士,司机,其他员工)已经投保的保险机构。但是这些选定员工的规格(如:名字和姓氏,人员代码,国家医疗代码......)必须分别放在特殊的任意标签中,然后将这些信息保存到txt文件然后发送到保险组织。



我的尝试:



我今天开始这个项目并且对此没有任何了解。但是这个标签的草图如下所示。

< h>

< n>< sq> 1< sq> 2< sq> 3

< sp>< nf> GEORGE MICHAELSON< nf> SARAH WAYNE< nf> RYAN PENDLETON

< hc>< mc> 123456< mc> 333333

< mc> 444444





在此标签中:

< h取代; =开始标题。

< n> =开始标记为sq标签。

< sq> =序列标签

< sp> =所选员工的规格

< nf> =所选员工的姓名。

< hc> =医疗代码标签的起始标签。

< mc> =医疗代码。

Hi dear friends,I have a university project,in this project,the clinic manager that has access to quite sections of the application,intends to select all or some of emploees(contains:doctors,nurses,drivers,other employees) that have been insured,to an insurance organization.but specification of these selected employees (like: first name and last name,personnel code,national medical code,...) must discretely put among special arbitrary tag,then saving these info to a txt file then sending to insurance organization.

What I have tried:

I got started this project today and don't have any idea about.but sketch of this tags like below.
<h>
<n><sq>1 <sq> 2 <sq> 3
<sp><nf>GEORGE MICHAELSON<nf>SARAH WAYNE<nf>RYAN PENDLETON
<hc><mc>123456<mc>333333
<mc>444444


In this tags:
<h> =start header.
<n>=start tag of sq tags.
<sq>=sequence tag
<sp>=specification of selected employees
<nf>=names of selected employees.
<hc>=start header tag of medical code tags.
<mc>=medical code.

推荐答案

为什么选择任意标签?我建议将数据库中的数据存储到XML文档中,该文档本质上是一个结构化文本文档。看看这个:使用C#从SQL数据库生成XML文件 [ ^ ]。

了解有关使用C#的XML简介的更多信息 [ ^ ]
Why arbitrary tags? I suggest store the data from database into a XML document, which is essentially a structural text document. Check this out: Generating XML File From SQL Database Using C#[^].
Learn more about Introduction to XML with C#[^]


你说你对你的项目一无所知?你没有写任何代码。但是你需要帮助才能理解这个要求 - 正确吗?

所以在开始任何编码之前(如果你是专家或初学者)坐下来用你自己的话来翻译这个要求。然后考虑一下您的应用程序将满足要求的部件/步骤。喜欢:用户管理(诊所经理),选择输入表格,文件读/写等等。

然后当你更好地了解你不理解或不知道如何实施,回到这里(或其他地方)并询问具体问题或阅读文件/示例代码......

我认为这也是您在大学项目期间应该学习的内容。
You say you have no idea about your project? You didn't write any code. But you want help to understand the requirement - correct?
So before starting any coding (if you are an expert or a beginner) sit down and "translate" the requirement in your own words. Then think about the "parts/steps" that your application will go through to fullfill the requirement. like: user Management (clinic Manager), Input forms for selection, file Reader/writer and so on.
Then when you have a better idea what you don't understand or don't know how to implement, come back here (or elsewhere) and ask specific questions or read documentations/example Code...
I think that is also exactly what you should learn during your University-Project.


这篇关于如何将数据库表的字段值放入虚构(任意)标记中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆