House urgent to send the item fifth day notes! _ Home Emergency Delivery Project

Source: Internet
Author: User
Fix bugs
1, regionaction add area, conditional writing error
if (Region.getid () ==null | | Region.getid (). Equals ("")) {
}


2. Modify the function of the page
<input type= "text" name= "Minweight" class= "Easyui-numberbox"/>
$ ("[name= ' Minweight ']"). Val (1); The page will not display the default value, click the input box will not show
Workaround: Easyui render the element again, setting the default value
<input type= "text" name= "Minweight" id= "Minweight" class= "Easyui-numberbox"/>
$ ("#minweight"). Numberbox (' SetValue ', ' 1 ');

Fifth day of the project
Three important modules: basic settings, access, transfer (interview can be used)
Other modules: Routing (vehicles, aircraft, ship lines), financial


First, the completion of the basic settings (district Management)
Original business: Manage the District/dispatch scheduling
Merge the neighborhood into a distribution area (district)-------for the distribution area set up administrator (responsible for a distribution company)-----According to each member of the collection time, arrange to send a number of staff to the region for distribution

Create a zone, which is the area associated with the partition (the partition can only belong to a fixed area, a one-to-many), for which the responsible for the assigned staff. This feature will be related to the reception module business admissibility, using the designated area associated customer
Business acceptance, the customer will dispatch business to send the company, home urgent to send the company door-to-door receipt, when the input requirements, according to customer address, related to the district and to send staff

1, add the Area (association partition)
Replace the original page with the decidedzone.jsp page in the new code

The first step: query to send the staff, to make a drop-down selection
<input class= "Easyui-combobox" name= "Region.id"
data-options= "Valuefield: ' id ', TextField: ' staffinfo ', url: ' ${pagecontext.request.contextpath}/staff_ Findall.action ' "/>
Step two: When the window is fixed, an unassigned partition is associated
<table id= "Subareagrid" class= "Easyui-datagrid" border= "false" style= "width:300px;height:300px" data-options= " URL: ' ${pagecontext.request.contextpath}/subarea_findnoassociation.action ', Fitcolumns:true,singleselect:false ' >
<thead>
<tr>
<th data-options= ' field: ' id ', width:30,checkbox:true ' > # </th>
<th data-options= "field: ' Addresskey ', width:150" > Keywords </th>
<th data-options= "field: ' Position ', width:200,align: ' Right '" > Position </th>
</tr>
</thead>
</table>

2, the District list query
Paging query, unconditional
The data table for the calibration area
$ (' #grid '). DataGrid ({
Iconcls: ' Icon-forward ',
Fit:true,
Border:true,
Rownumbers:true,
Striped:true,
PageList: [30,50,100],
Pagination:true,
Toolbar:toolbar,
URL: "${pagecontext.request.contextpath}/decidedzone_list.action",
IDfield: ' id ',
Columns:columns,
Ondblclickrow:dodblclickrow
});
The Action code is loaded immediately----Service code----Domain Configuration @LazyToOne

3, the fixed area related customers
Job: Get customer Data using WebService heavy CRM

Temporary solution: Create a Customer table in the system
A fixed area contains many customers (One-to-many)

4, double click on the district, query the associated partitions and customers
If you want to set singleselect only one row of data table selected
Double-click a row of data----Double-click the event
$ (' #grid '). DataGrid ({
Singleselect:true,
Ondblclickrow:dodblclickrow
});
Double-click the data table to call Dodblclickrow

You can define a function inside a data table
$ (' #grid '). DataGrid ({
Singleselect:true,
Ondblclickrow:function (Rowindex,rowdata) {

}
});

There are two ways to load a data table
First Kind
As long as table in HTML
<table id= "Association_subarea" ></table>
Column data and table data from JS
$ (' #association_subarea '). DataGrid ({
Columns: [[
{Column One},
{Column Two}
]],
URL: Data source
});
Second Kind
<table id= "Subareagrid" class= "Easyui-datagrid" border= "false" style= "width:300px;height:300px" data-options= " URL: ' ${pagecontext.request.contextpath}/subarea_findnoassociation.action ' >
<thead>
<tr>
<th data-options= "field: ' Subareaids ', width:30,checkbox:true" > Number </th>
<th data-options= "field: ' Addresskey ', width:150" > Keywords </th>
<th data-options= "field: ' Position ', width:200,align: ' Right '" > Position </th>
</tr>
</thead>
</table>

Double-click the fixed area data a row, in the JS code to obtain the line corresponding to Decidedzoneid, will be the region number, respectively, call the partition action and customer action to complete the query
* * Subareaaction's Findhasassociation
* * Customeraction's Findhasassociation
If you are querying table data, you need to pass parameters to the server, if you have Chinese please use the method and Queryparams properties, no use in Chinese? Stitching parameters

====================================================================================
Second, the analysis of the school-taking business
Accept
Accept the link, is the beginning of the business, as a service front-end, customers through the telephone, network and other means of commissioning, business clients through exchanges with customers, access to customer service needs and specific delegation information, the service instructions into our service system.

Scheduling
In the automatic order, because the pickup address can not match the pickup personnel, it is transferred to manual scheduling.
Manually match the address and order to the appropriate pickup person

Business Notice Noticebill: Customers through the network or telephone way, to our customers, apply for home delivery business, customer service personnel need to record customer application, generate business notice.

Business Notice to enter the system, automatic production of Workbill, work orders will be notified to send personnel to take goods

Work order Workordermanage: Work list Some shipping information, more detailed than before

New Code Import:
Copy the Qupai folder in page Web-inf/page under
Replace Menu.json with the original menu information

Third, take the----business to accept
Writing entity classes Noticebill and Workbill

1, through business acceptance, input mobile phone number, away from the Coke Ajax based on mobile phone number query customer information, the default display

2, when the mobile phone number can find customers, customers have some relationship with the district, linked to the sending staff
When the mobile phone number can not find customers, or customers do not and the district management, how to find the staff ...
First use the address to match the partition, through the zoning to find the area, through the fixed area to find the staff, if still can not find or find multiple partitions (into manual scheduling)
Navigating queries using objects




















No. (A.),
, [
,

]











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.