| | |
| | | html.push("<tr>"); |
| | | html.push("<td>" + this.Account + "</td>"); |
| | | html.push("<td>" + this.UserName + "</td>"); |
| | | if (this.UserType == 1) { |
| | | html.push("<td>" + "管理员" + "</td>"); |
| | | } |
| | | else if (this.UserType == 2) { |
| | | html.push("<td>" + "业务员" + "</td>"); |
| | | } |
| | | else if (this.UserType == 3) { |
| | | html.push("<td>" + "业务主管" + "</td>"); |
| | | } |
| | | else if (this.UserType == 4) { |
| | | html.push("<td>" + "业务总监" + "</td>"); |
| | | } |
| | | else if (this.UserType == 5) { |
| | | html.push("<td>" + "客服人员" + "</td>"); |
| | | } |
| | | else if (this.UserType == 6) { |
| | | html.push("<td>" + "财务人员" + "</td>"); |
| | | } |
| | | else if (this.UserType == 99) { |
| | | html.push("<td>" + "其他" + "</td>"); |
| | | } |
| | | else { |
| | | html.push("<td>" + "" + "</td>"); |
| | | } |
| | | |
| | | html.push("<td>" + this.Mobile + "</td>"); |
| | | html.push("<td>" + formatFlagIcon(this.MobileFlag) + "</td>"); |
| | | |
| | |
| | | var account = $("#userDialog #account").val(); |
| | | var password = $("#userDialog #password").val(); |
| | | var userName = $("#userDialog #userName").val(); |
| | | var userType = $("#userDialog #userType").val(); |
| | | var mobile = $("#userDialog #mobile").val(); |
| | | var email = $("#userDialog #email").val(); |
| | | var emailFlag = $("#userDialog #emailFlag").val(); |
| | |
| | | |
| | | var clientIp = $("#userDialog #clientIp").val(); |
| | | |
| | | $.post("sysuser.ashx", { action: "saveUser", userid: userid, account: account, password: password, userName:userName, mobile: mobile, email: email, mobileFlag: mobileFlag, emailFlag: emailFlag, isVerification: isVerification, clientIp: clientIp }, |
| | | $.post("sysuser.ashx", { action: "saveUser", userid: userid, account: account, password: password, userName: userName, userType: userType, mobile: mobile, email: email, mobileFlag: mobileFlag, emailFlag: emailFlag, isVerification: isVerification, clientIp: clientIp }, |
| | | function(result) { |
| | | mytek.alert(result.Message, result.OK, function() { |
| | | if (result.OK) { |
| | |
| | | $("#userDialog #account").val(""); |
| | | $("#userDialog #password").val(""); |
| | | $("#userDialog #userName").val(""); |
| | | $("#userDialog #userType").val(""); |
| | | $("#userDialog #mobile").val(""); |
| | | $("#userDialog #email").val(""); |
| | | $("#userDialog input[name=isVerification]").iCheck("uncheck"); |
| | |
| | | $("#userDialog #account").val(user.Account); |
| | | $("#userDialog #password").val(user.Password); |
| | | $("#userDialog #userName").val(user.UserName); |
| | | $("#userDialog #userType").val(user.UserType); |
| | | $("#userDialog #mobile").val(user.Mobile); |
| | | $("#userDialog #email").val(user.Email); |
| | | $("#userDialog #emailFlag").val(user.EmailFlag); |
| | |
| | | 账户名称 <span style="color:red">*</span></label> |
| | | <div class="col-sm-10"> |
| | | <input type="text" name="userName" id="userName" value="" class="form-control" /> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-2 control-label"> |
| | | 账户类型 <span style="color:red">*</span> |
| | | </label> |
| | | <div class="col-sm-4"> |
| | | <select name="userType" id="userType" class="form-control"> |
| | | <option value=""></option> |
| | | <option value="1">管理员</option> |
| | | <option value="2">业务员</option> |
| | | <option value="3">业务主管</option> |
| | | <option value="4">业务总监</option> |
| | | <option value="5">客服人员</option> |
| | | <option value="6">财务人员</option> |
| | | <option value="99">其他</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | |
| | | 用户名称 |
| | | </th> |
| | | <th> |
| | | 用户类型 |
| | | </th> |
| | | <th> |
| | | 手机 |
| | | </th> |
| | | <th> |