The dropdown box cascade selection function is very practical, the framework user management of the editing sector in the face of the organization's choice in the 3.2 version of the new cascade selection of support, so that the organization's choice more convenient and efficient, and not prone to error.
The organizational structure of our framework is divided into 5 types, namely: Company, Branch, Department, Sub-department, working group. Different enterprises can make trade-offs according to the actual needs. The organization selection control for the user editing interface uses the Easyui combobox control, and the cascading selection primarily uses the onchange event for this control.
The cascading selection effect is as follows:
The following is a code reference to add the User JS section.
Adduser:function () {//add user var Adddialog = top.$.hdialog ({href:formurl, title: ' Add User ', width:610, height:640, iconcls: ' Icon16_user_add ', onload:function () { Useradminmethod.initdata (); Bindorganize (); top.$ (' #Enabled '). attr ("Checked", true); top.$ (' #Description '). Val (""); top.$ (' #UserName '). focus (); }, Submit:function () {if (top.$ (' #uiform '). Validate (). form ()) { var postdata = Pagemethod.serializejson (top.$ (' #uiform ')); Postdata.companyname = top.$ (' #CompanyId '). ComboBox (' GetText '); Postdata.subcompanyname = top.$ (' #SubCompanyId '). ComboBox (' GetText '); Postdata.departmentname = top.$ (' #DepartmentId '). ComboBox (' GetText '); Postdata.subdepartmentname = top.$ (' #SubDepartmentId '). CombObox (' GetText '); Postdata.workgroupname = top.$ (' #WorkgroupId '). ComboBox (' GetText '); $.ajaxjson ("/frameworkmodules/useradmin/submitform", PostData, function (d) {if (d.success) { Msg.ok (D.message); Adddialog.dialog (' close '); Mygrid.reload (); } else {messageorredirect (d); } }); } else {msg.warning (' Please enter a user name. ‘); top.$ (' #UserName '). focus (); } } }); return false; }
Cascading binding Code reference:  
Binding organization Information-implementing cascading selection Function Bindorganize () {top.$ (' #SubCompanyId, #DepartmentId, #SubDepartmentId, #WorkgroupId '). ComboBox ({valuefield: ' Id ', TextField: ' FullName ', panelheight:100, editable:true}); top.$ (' #CompanyId '). ComboBox ({valuefield: ' ID ', TextField: ' FULLNAME ', panelheight:100, editable:true, ur L: '/frameworkmodules/organizeadmin/getorganizebycategory?organizecategory=company ', onchange:function (NewValue, OldValue) {top.$ (' #SubCompanyId '). ComboBox ({URL: '/frameworkmodules/organizeadmin/getcategory Childrensbyid?organizecategory=subcompany&organzieid= ' + newvalue, onchange:function (NewValue, OldValu e) {top.$ (' #DepartmentId '). ComboBox ({URL: '/frameworkmodules/organizeadmin/get Categorychildrensbyid?organizecategory=department&organzieid= ' + newvalue}); top.$ (' #DepartmentId '). ComboBox ({ URL: '/frameworkmodules/organizeadmin/getcategorychildrensbyid?organizecategory=department&organz Ieid= ' + newvalue}); top.$ (' #SubDepartmentId '). ComboBox ({URL: '/frameworkmodules/organizeadmin/getcategorychildrensbyid ? organizecategory=subdepartment&organzieid= ' + newvalue}); top.$ (' #WorkgroupId '). ComboBox ({URL: '/frameworkmodules/organizeadmin/getcategorychildrensbyid?org Anizecategory=workgroup&organzieid= ' + newvalue}); } }); } });}
Related articles:
rdiframework Platform Code generator V3.2 release version
rdiframework.net-based on. NET rapid Information System development Framework-Series catalogue
Rdiframework.net━.net Rapid Information System Development framework- Introduction to Workflow Components
example demonstrates the definition of a business process using the workflow component of the Rdiframework.net framework-leave application process-web
Rdiframework.net━. NET rapid Information System development Framework-Workflow component Web business platform
For a few years, thanks to the supporters and users of the rdiframework.net framework, you can find out more at the address below.
rdiframework.net official website:http://www.rdiframework.net/
rdiframework.net Official blog:http://blog.rdiframework.net/
At the same time need to be explained, all the technical articles in the future to the official website as the subject, welcome to our collection!
rdiframework.net Framework by the professional team for a long time to build, has been updated, has been upgrading, please rest assured that use!
Welcome to Rdiframework.net Framework Official public (No.:rdiframework-net), keep abreast of the latest developments.
Scan QR code for immediate attention
. NET rapid Information System Development Framework V3.2, WEB User Management Module editing interface-organization selection support cascading selection