Serial: (i) gradual, through the XML configuration, to achieve common to WinForm (. Net), WebForm (Asp.net+jquery+easyui) forms, reports--preface

Source: Internet
Author: User

incrementally, through XML configuration, for common use with WinForm (. Net), WebForm (Asp.net+jquery+easyui) forms, reports--Preface

Yangtze River tributary

This series, defined as "step by step, through the XML configuration, the implementation of common in WinForm (. Net), WebForm (Asp.net+jquery+easyui) forms, reports, through a lot of space for detailed code and text description, combat." NET development. Welcome reprint, Reproduced Please indicate the source, thank you!

Ten years ago (August 17, 2004 ), CSDN published two articles about printing related to the. NET environment, then developed and shared open source "gold printing Pass", and many programmers peer friends and college teachers to know, very excited!!!

Open source:. NET Environment for printing page setup, printer settings, Print Preview dialog box implementation and application (1)

Open source:. NET Environment for printing page setup, printer settings, Print Preview dialog box implementation and application (2)

Ten years later today (September 10, 2014, teachers ' Day, I wish the world teacher Happy Holidays! ), I will continue to the leading edge, serial blog, so that the programmer to repeat the rules can be found in the program function "no program", so that the program does not understand the SQL DBA can write "program"!!!

Knowledge points
    • ado
    • Xml
    • Serialization/deserialization
    • Jquery
    • Easyui
    • Master version

Software Environment
    • Microsoft Visual Studio.NET 2008/2010/2012 and later
    • Oracle/sqlserver/mysql/db2/access, etc.

I have always thought that writing a program is about thinking, and if you master a bit of technology, it will bring technology to the extreme. So, do not be intimidated by the knowledge point, you must think, you can also:), especially students, you can certainly do.

For example, XML files, parsing is easy, is a few words of things, and then repeat, and the simplest parser, directly with serialization deserialization, is also a few lines of code, of course, there are some tricks. Again, although the use of jquery and Easyui used to display the Web page reports and query filtering, as well as data additions and deletions, if the reader contacted, please be sure to believe that my jquery and Easyui level absolutely no you high. As long as I have a little, I will be as flexible as possible to apply to the actual combat.

First, a little dry, that can let the reader have information about themselves, but also to let the reader have confidence in the author, absolutely do not write a very program, that is, to complete a display in the Easyui grid report.

Above interface, only need to configure a data source SELECT statement, in <Filter> specify which filter fields to dynamically display, and in <Fields> specify the fields to display. Only need to enter in the browser url:http://website/webmis.web/ui/normviewgrid.aspx?controller=xml Description of the control file name, enter, done.

<?xml version= "1.0" encoding= "Utf-8"? ><webmiscontrollerserializer xmlns:xsi= "http://www.w3.org/2001/ Xmlschema-instance "xmlns:xsd=" Http://www.w3.org/2001/XMLSchema "> <Controller> <!--Note that the field in select is uppercase,      So the Name node in field should be the same as--<Select> Select a.id as ID, a.dm as CITY,A.MC as name,b.dm as town, Mc,b.memo From Test_entityaccessorm a Inner joins Test_entityaccessorm_inner B on A.id=b.cityid </Select> &L T Filter> <Field> <!--ID node indicates that the Name property of the filter input control ID or HTML element is displayed, so you can take a unique name, and it is recommended to name the Filter_ field in a unified &lt ;id>filter_dm</id> <!--The name node represents the name of the field specified in select and must be prefixed with a table prefix for conditional queries, case-sensitive, and <name>city</n         Ame> <!--the label name for the filter--<Title> City code </Title> <!--not write default visible, set false to pass the recessive condition parameter-- <Visible>true</Visible> <!--represents a data type, such as a date, you can display the date control directly--<type>string</type   > <!--query conditions are allowed to be empty and prompt     <Null>false</Null> <Nulltitle> Query code cannot be empty, please enter!</nulltitle> </Field> <f        Ield> <ID>filter_XZDM</ID> <!--query fields are case-insensitive-<Name>town</Name> <Title> Township Code </Title> </Field> <Field> <ID>filter_MC</ID> <      name>mc</name> <Title> name </Title> </Field> </Filter> <Fields> <Field> <ID>ID</ID> <Name>ID</Name> <Title> logo id</title&gt        ; <Align>right</Align> <Width>20</Width> </Field> <Field> <!-        -When querying a report instead of a form, if you do not specify name, take the ID node, match the case with select-<ID>City</ID> <Title> City Code </Title> <Width>20</Width> </Field> <Field> <ID>MC</ID> <title > City Name </title> <Width>20</Width> </Field> <Field> <ID>Town</ID> <Title> Township Code </Title> <Width>20</Width> </Field> <Field> <i d>memo</id> <Title> Township Description </Title> <Width>20</Width> </Field> &L T;/fields> </Controller></WebMisControllerSerializer>

in the next chapter of this connection, we will explain the implementation principle, then give C # to implement the XML configuration file related classes, and give the source code.

Disclaimer: This article copyright for the Yangtze River tributary Zhou Fangyong All, if necessary to reprint, please retain the full content and source.

Yangtze River tributary [email protected]: winxin8001234567

Serial: (i) gradual, through the XML configuration, to achieve common to WinForm (. Net), WebForm (Asp.net+jquery+easyui) forms, reports--preface

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.