Rooms agreement Unit

Development tools and key technologies: VS backend

Author: Chen Chi Fan                                                                           

Write Time: 2019.6.15                      

1. First say the function room units need to achieve agreement, click one of the protocol data unit management, its price agreements

Also corresponds to the name of the unit corresponding to the class room rates, we can also manage protocol unit fuzzy query or a combination of inquiry, of course, but also on the protocol unit management add, modify, delete function to achieve. The following diagram shows the protocol management unit:

2. The following is a protocol unit, said management fuzzy query and query combination, it is necessary for the protocol unit table Search, when protocol filtering units, house prices will correspond to the list of protocols for data emptied. We first clear the query to the corresponding data, it is necessary to id, then his method of rendering, so the corresponding data will be check out. Another problem is that, when acquiring data, to reset the first page.

3. Construction side controller entity class, the associated table of Annex id data acquired by the protocol unit management table in the html, protocol number and unit names in the string AssistNum is through the controller, string CompanyName acquired data. And if (! String. IsNullorEmpty (AssistNum)) {

AssistNum = AssistNum.Trim();

listStu = listStu.where(p =>p.AssistNum.Contains(AssistNum));

} That filters data.

最后还要调用分页封装类,LayuiTableData<Student> layuiTableData = new LayuiTableData<Student>()

结语:主要说的是客房协议单位管理模糊查询和组合查询对数据进行筛选。

Guess you like

Origin blog.csdn.net/qq_44554890/article/details/92570700