ASP. NET large project practice series Season 2 (2) extjs4 Implementation of Windows desktop (including source code)

Source: Internet
Author: User
Female Men conquer men with stockings, and men conquer banks with stockings. It is very important to have a bright appearance and packaging. For customers who are familiar with the same framework menu interface, a gorgeous simulated Windows desktop system interface will surely make them feel as bright as they are looking behind. Although the front of the back may be a big mom, the core of the information system is not a flashy interface. In any case, it is absolutely not a bad thing to provide an interface and interactive mode that can instantly highlight the eyes of customers.

Source code download: xg.part1.rar, xg.part2.rar

Note:

1. In some cases, there is still room for refactoring, and there should be no bugs. However, it is recommended that you study and digest them before using them.

2. I modified it,CodeOnly the presentation layer. I have removed the business logic and data access layer first. This is more in line with this topic and is convenient for you to apply it separately.

3. the logon page is provided with a plaintext transfer password. Note that

4. The traditional menu page is provided to demonstrate modular function page loading. You can add functions such as basic exit and logon again.

5. If you plan to use the full set of extjs4, we recommend that you read this series and be familiar with extjs4 before considering it as appropriate. If you just use this "shell" and set IFRAME to use your own page, there will be no major problems.

6. If you do not have the extjs experience, you are not recommended to use the code in this article. This is a comprehensive application and the code is complicated.

Deployment Guide:

1. Download The xg.part1.rarand xg.part2.rar files and decompress them to obtain the directory.XG

2. OpenXG. sln, Such

 

3. Compile the entire solution without any errors.

4.XG. MVC. ApplicationSet ProjectStartup Item, And then pressF5Run (chrome or ie9 is recommended. We do not recommend that you use IE6 or at a slower speed ). You can also deploy and run it in IIS. Run as follows:

5. User name: Admin Password: 000000 the interface mode can be "cool desktop" or "classic menu", as shown in the following two options:

 

Incomplete User Guide:

1. directory structure explanation:

2. menus and shortcuts are dynamically generated from the JSON returned by C #. Open fiddler2 and find the action under the corresponding controller based on the request URL to view the code.

3. "Test Module 1" demonstrates the On-Demand Loading of new features in extjs4, that is, JavaScript will load only when you open this module. Therefore, module1.aspx does not reference module1.js. Instead, an instance of a module object is added as follows:

 
<SCRIPT type = "text/JavaScript">
Ext. Create ('mod. testmodule. module1 ',{
Modid: '/testmodule/module1/module1'
});
</SCRIPT>

Note that you need to register the folder path in run. js for On-Demand Loading:

Ext. loader. setconfig ({
Enabled:True,
Paths :{
'Mod. testmodule': 'http: // www.cnblogs.com/scripts/mod/testlele ',
'Oit. ex': 'http: // www.cnblogs.com/scripts/extensions ',
'Ext. UX ': 'http: // www.cnblogs.com/scripts/ux'
}
});


3. If you do not want the floating cloudRun. js to remove the following code:

//Floating cloud Control
VaRI =-500;
VaREl = ext. Get ('Scene _ cloud ');
VaRCloudtask = {
Run:Function(){
El. setstyle ('left', I + 'px ');
I ++;
If(I> document. Body. clientwidth)
I =-500;
},
Interval: 30

}
Ext. TASKMANAGER. Start (cloudtask );

4. You can set your own background image list in wallpapersettings. js. The corresponding folder is \ scripts \ Desktop \ wallpapers"

Store:New Ext. Data. treestore ({
Model: 'hmsdesktop. wallpapermodel ',
Root :{
Text: 'wallpaper ',
Expanded: True ,
Children :[{
Text: "NONE ",
Iconcls: 'asterisk _ orange ',
Leaf: True
}, Child('blue.jpg '),
Child('blue-curtain.jpg '),
Child('fields-of-peace.jpg '),
Child('fresh-morning.jpg '),
Child('colorado-farm.jpg '),
Child('blue-swirl.jpg '),
Child('mongo.jpg '),
Child('{top.jpg '),
Child('{top2.jpg '),
Child('sky.jpg '),
Child('19201080.jpg '),
Child('fghj_079020.jpg '),
Child('cloud.jpg ')]
}
})

5. hmsdesktop. JS is an example of desktop Js. It is recommended that you start from here and change the Start menu title here:

//Start Menu
Getstartconfig:Function(){
VaRMe =This, Ret = me. callparent ();

ReturnExt. Apply (Ret ,{
Title: 'legend of string ',
Height: 400,

 

6. You can change the path of the logo image under "\ content" and "\ scripts \ Desktop \ images.

 

Next announcement:

It is estimated that you will raise some questions and plan to answer and solve your questions in the next article, as well as more detailed code descriptions for each interface element.

 

If you haven't asked any questions, this will be the next article:

ASP. NET large project practice series Season 2 (3) no human cloud, no detours! Extjs cognition, development, debugging
Behind the scenes is boring code, which isProgramThe staff's cups bring the beauty to others, and leave the boring to themselves .... in the next article, we will discuss some misunderstandings about extjs and assess whether it is suitable for your project. In addition, string brother will take you a shortcut to correctly master the development and debugging methods of extjs, this frees extjs from getting started and developing...

 

 

Http://www.cnblogs.com/legendxian/archive/2011/11/23/2253949.html

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.