Web applications based on Easyui and a summary of the past year

Source: Internet
Author: User
Tags how to use sql

Objective

In this company service for a year, one months ago has submitted the resignation application, fortunately, the leadership has been approved, in a few days on the formalities, thank you for the leadership of the cultivation and retention, thank you colleagues in the work of my help, thank the Master (in my mind when he is my master, followed he did learn a lot of things, Address a teacher also do not have to leave this team indeed some do not give up, not for other, just because the atmosphere of this team is particularly good, colleagues get along harmoniously, not so much infighting, so work also dry of strong, working time can use the network, can on QQ, can on various forums, can see news and so on, I personally like this way of working, as an IT staff, if behind closed doors, then the result is to be eliminated, the continuous emergence of new technology, if you do not have to consult the information of multi-bubble forum to learn, do each appear a new technology to pay for training institutions to learn? Because of this work environment, so in the past year I learned a lot of knowledge, some through the internet to learn, some through colleagues to learn, some in the QQ group to those who have to ask the experts (here to thank the QQ Group of those friends), regardless of the way learned, Learned is my own, always useful on the place, the next job is not so good environment, because the office can not surf the internet, not above the forum, more than QQ ...

A summary of the past year

In the past year, following the leadership and colleagues of this company (b Company), I feel that this year has been largely enhanced by technology and communication:

1. Technical aspects

1.1 has been doing client development before, so for those scripting language use less, here deepened the use of jquery,js.

1.2 A little more understanding of the asynchronous use of Ajax.

1.3 learned how to use SQL monitoring, learned some ways to optimize SQL statements, of course, this is the experience accumulated in the actual project, more valuable.

1.4 Learned to use the client and the web side of the mutual invocation, nesting to develop the application system.

1.5 learned how to handle cross-domain requests.

2. Communication aspects

2.1 It is actually a service role, so when communicating with users to find their own positioning.

2.2 No matter whether the user's requirements are reasonable, the communication is not full of gunpowder.

2.3 Respect each other is very important, respect each other also will make each other respect oneself.

Why leave Open

Before coming to B Company, in a listed group company (hereinafter referred to as a company) to do internal application system development, full service for 3 years, so far, left a company has been a year 10 months, in this period with the previous leadership has been still linked, of course, this no other meaning, mainly after work there for 3 years, is also my work since the longest service time of a company, how many or some of the friendship exists, after I entered the company B, before the leadership of a company found me, the purpose is to let me use spare time to help develop a set of application system, I listened to without further ado agreed, why so readily? There are several reasons for this:

1. At that time I left the more hurried, may not be the handover is so careful, this point I always feel sorry.

2. The day before I left a company, that is Thursday (because the leader is the HK side, every Thursday afternoon will go back to HK), the leader went to my office to say to me: "xxx, then I left ...", the back of the I did not hear clearly, because then a little flattered feeling that he a senior leader, Completely can not take my this little minions as a matter of, even if is to say hello also should be I go to him to say hello to, this thing let me always grateful, I think at that time he gave me face.

3. In my resignation, many details of the leadership for me to consider, for example, I left the sudden, according to the Ministry of Personnel requirements of the time can not reach, early departure need to deduct wages, but he gave me the check batch date in advance, although it is a small thing, but let people in the heart warm.

Above seemingly pulled a lot of nonsense, the original intention is in my ability to help develop free of charge, because I am engaged in this line, technology is not a problem, is to spend more time, but the project after the leadership or gave me unexpected remuneration, here to thank them for their care, Of course this project is also several twists and turns to complete, after all, I am an amateur, not in the same place, communication is very inconvenient (to tell the truth, through this time I also learned a lot).

During this period, the leader talked to me several times, the purpose is to hope that I can go back to work, because before a lot of projects are I follow up, the leadership may be considering I am more familiar with it, I thought for a long time, finally agreed to, so to the B company this side of the request to leave; Honestly, I never thought I'd go Really did not think, really is the world difficult material ...

The goal of the job after going back

1. Unified development language, the previous project there are a variety of development languages, such as vb6,c++,vfp,asp,delphi,c#, so far there are DOS operating system procedures, why? Do I have to be proficient in a variety of development languages? Or does each development language find a corresponding developer? The cut, the upgrade of the upgrade, or no matter who can not play down.

2. The following projects are mainly web-based and easy to update; The client is supplemented by the ability to communicate with hardware using a combination of client and web.

3. Integrate many small programs into one frame, do not be so scattered, do not stop "patching".

4. Build a good source control platform, either TFS or SVN.

A recent Web application

I this person is so, see other people good things want to learn, just came to B company, see the company with a lot of functions are relatively tall, my Learning method is this: first understand how these tall function is how to realize, do not understand on the elder, here again thanks to my teacher, thank him for his generous advice, Careful guidance; After understanding, you create a project to try to make a demo out, in this process encountered do not understand to consult others, until they understand, then this time this thing has "belonged to" my own, I have loaded into the head inside, So I haven't stopped studying since I entered Company B. No matter what knowledge to learn, must use up, only in the actual project can learn more, to find their shortcomings, so the following project is I just entered the B Company began to develop, borrowed some predecessors of things, but not directly copy, only the image and CSS style is used in the original, Because I art technology is too bad, want to ps out a logo picture on a lot of times, PS out of the results even their own look on the uncomfortable, so do not force, quoted some of the previous pictures and styles, here is worth explaining is: the existing company's project and database structure of our developers have, This is also the leadership approval, because we sometimes work at home, so the database structure and programs are copied locally in order to create a real development environment and debugging environment.

  In addition to the pictures I have developed in accordance with my own design, including database design and project architecture design, follow-up I will take the time to continue to improve the project, mainly for the manufacturing industry, now only a few basic functions, it can be said that the manufacturing industry basically will use a few functions, such as bar code control and printing, according to the actual needs can be flexibly expanded, the following is part:

Describe:

Bar code rules are used to control the format of bar code, for the present factory, bar code control is the most common, then different products have different barcode format requirements, each customer also has their own special requirements, so this bar code rules are very important, before I practice as follows:

In the database according to the current month and date + serial number to automatically generate, this can also solve the problem, but if you need to expand the time to take a break, as long as the customer asked bar code format slightly change the format, then we need to change the things are quite much, and may even bring a lot of serious problems, Because the format is fixed and cannot be changed flexibly, there is little likelihood of expansion.

In view of this, the present practice is as follows:

Define a bar code rules, including the barcode of the calculation of the system, the need to block the letter or character, bar code prefix, bar code suffix, the total length of the bar code, the length of the serial number and so on, in the generation of bar code to choose this rule, if there is a new format requirements, that only need to new format requirements of a bar The original data structure has no impact, flexible, easy to expand!

Describe:

Barcode Generation is a more critical function, sometimes the amount of data may be larger, for example, the number of a ticket is 20000, that is to say that the user generated a bar code at a time to generate 20000 records in the database, according to my personal experience, this thing can not be directly to the user to operate, Prevent the database from being dragged to death; my practice is that regardless of the number of users submitted, the server will save the user submitted requests, the server timed to process the requests, each time sorted by chronological processing of the first submitted request, if the user's request to appear illegal data, The server directly rejects the request and notifies the user, and vice versa, so that the user can avoid problems such as a slow system or a deadlock in the database by avoiding direct manipulation of large amounts of data.

Describe:

The route is worth saying here, the use of gooflow design, of course, Gooflow only UI parts, backstage are also designed.

Support multi-node routing, where conditions need to be set up, for example: currently we have two roads ahead, route A to Beijing, Route B to Shanghai, we now stand at the intersection of the choice of the specific route to go? This time will need the conditions, we are now the purpose is to go to Beijing to see the Forbidden City, it is clear that has been matched to the conditions, that we should take the route A; the system will find out which line to take according to the specific situation, this logic is more complicated.

Describe:

Dynamic reports, can be dynamically generated according to different conditions of the control, to implement the query function, so that you can save a lot of reports, simple query function with this enough.

Describe:

Maintenance function is actually a more complex business, according to different maintenance action and produce different data structure, such as maintenance action contains "simple maintenance", "replacement material", "Scrap" and other options, such as simple maintenance is easier to handle, just follow the normal route operation and record the repair process can be, But the replacement material is not the same, need to record what the replacement material? What is the original material number? What is the replacement material number? including Vendor,datecode and other information; In the general production management application system, customers will require detailed maintenance records and reports, which is a key point.

Describe:

The following are called API implementation, the specific logic is implemented in the API, the API uses the factory model design, according to different needs to produce different data structure, these pages do not write a code behind, all scripts.

Describe:

In the development process, will involve a lot of error information, both stored procedures are also in the program inside, before my practice is to directly write the name of the stored procedure error message after the wrong information, so that a look at what a stored procedure throws the error, directly can be wrong location, but found a problem, Stored procedure name string length can not be unified, resulting in poor page layout control; In view of this, I unified use ErrorCode to replace the error message, for users, users do not need to know where to error, system administrator or Developer according to the ErrorCode table can also quickly locate the problem point , this solves the problem of page layout caused by the non-uniformity of the error message length, as shown in the ErrorCode table:

The above are described in part of the web features, the whole project is also a part of the client, the client is actually better understanding, mainly in the client called the Web program, the client main form code below, of course, only part of the code, according to the actual situation can be added.

usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Windows.Forms;usingSystem.Security.Permissions;namespacemes{[PermissionSet (SecurityAction.Demand, Name="FullTrust")] [System.Runtime.InteropServices.ComVisibleAttribute (true)]     Public Partial classFrmmain:form { PublicFrmmain () {InitializeComponent (); }         PublicWebBrowser Browser {Get{return  This. WebBrowser1;} }        Private voidFrmmain_load (Objectsender, EventArgs e) {            stringConfigpath = Application.startuppath +"\\config.ini"; if(!System.IO.File.Exists (Configpath)) {MessageBox.Show ("the system cannot start because the configuration file is missing, please contact the administrator! ","Warm Tips", MessageBoxButtons.OK, messageboxicon.warning);                Application.exit (); Gc.                Collect (); return; } MES.COMMON.GLOBAL.APIURL= MES.Common.IniHelper.GetConfigValue ("Apiurl"); MES.Common.Global.serverPath= MES.Common.IniHelper.GetConfigValue ("Serverpath"); Webbrowser1.objectforscripting= This;        WebBrowser1.Navigate (MES.Common.Global.serverPath); }         Public voidPRINT_ZPL (stringContent) {System.Drawing.Printing.PrintDocument P=NewSystem.Drawing.Printing.PrintDocument (); stringDefaultprint =P.printersettings.defaultpagesettings.printersettings.printername;        MES.Common.PrintHelper.PrintLabel (Defaultprint, Content); }        Private voidWebbrowser1_documentcompleted (Objectsender, WebBrowserDocumentCompletedEventArgs e) {webbrowser1.scripterrorssuppressed=true;//Disable script debugging, Mask script error prompt box        }                /// <summary>        ///get the weight of the weighing machine/// </summary>        /// <param name= "Com" >Communication COM Port</param>        /// <param name= "Checkcount" >Number of Cycles</param>        /// <returns></returns>         Public stringGetweigh (stringComintCheckcount) {            returnMES.Common.WeighHelper.GetWeighData (Com, Checkcount); }        /// <summary>        ///Get the COM list above the local computer/// </summary>        /// <returns></returns>         Public stringgetcomlist () {stringstr =""; List<string> list=MES.Common.WeighHelper.GetComList ();  for(inti =0; I < list. Count; i++) {str+ = List[i]. ToString () +","; }            returnstr; }    }}

As for how to callback the client's function, refer to this article: Understanding JavaScript callback function

If you think the article is passable, please help the top, your support is my driving force of progress, thank you!!

Web applications based on Easyui and a summary of the past year

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.