| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8" />
- <meta name="keywords" content="dongke,mes,ibossmes">
- <meta name="description" content="制造企业生产过程执行管理系统">
- <meta name="author" content="xuwei">
- <title>东科软件</title>
- <script src="/plugins/xeasyui/xeasyui.min.js"></script>
- </head>
- <body class="easyui-layout" onkeydown="keyLogin();">
- <!--
- <input class="easyui-combobox w-input" id="叶子" name="叶子" data-options="prompt:'',tipPosition:'top',url:'/mes/list.ashx?m=truefalse',method:'get',valueField:'text',textField:'text',panelHeight:'200px',editable:'true'" style="width:100%;height:32px;">
- <input class="easyui-filebox" id="图片" name="图片" data-options="prompt:'',tipPosition:'top',buttonText:'选择图片',buttonAlign:'right',accept:'image/*',onChange:$.imagePreview" style="width:100%;height:32px;" >
- -->
- <!--<div data-options="region:'center',plain:true,border:false">-->
- <form id="ff" method="post" class="w-form" style="text-align:center;color:#fff;">
- <div class="w-div" style="padding-top:30px;">
- <div>账套:<input class="easyui-textbox w-input" value="dongke" id="accountCode" name="accountCode" data-options="required:true,prompt:'',tipPosition:'top'" style="width:250px;height:32px;"></div>
- </div>
- <div class="w-div" style="padding-top:8px;">
- <div>工号:<input class="easyui-textbox w-input" id="userCode" name="userCode" data-options="required:true,true:'请填写工号...',tipPosition:'top'" style="width:250px;height:32px;"></div>
- </div>
- <div class="w-div" style="padding-top:8px;">
- <div>密码:<input class="easyui-passwordbox w-input" id="userPassword" name="userPassword" data-options="required:true,true:'请填写密码...',tipPosition:'top'" style="width:250px;height:32px;"></div>
- </div>
- <div class="w-div" style="padding-top:8px;">
- <a href="javascript:void(0)" id="tbSave" class="easyui-linkbutton" onclick="submitForm()" style="margin-left:48px; width:250px;height:32px;">登录</a>
- </div>
- <!--<div class="w-div" style="padding-top:8px;">
- <a href="javascript:void(0)" id="tbADSave" class="easyui-linkbutton" onclick="ADsubmitForm()" style="margin-left:48px; width:250px;height:32px;">AD域验证</a>
- </div>-->
- </form>
- <!--</div>-->
- <script type="text/javascript">
- $(function () {
- $('#userCode').textbox('textbox').bind('keyup', function (e) {
- //this.value = this.value.toUpperCase();
- if (e.keyCode == 13) {
- }
- });
- });
- function submitForm() {
- if ($('#ff').form("validate")) {
- $.get('login.ashx?m=0&r=' + Math.random(),$('#ff').serialize(), function (data) {
- var json = JSON.parse(data);
- if (json['success'] == true) {
- parent.window.location.href = 'main.html?client=web';
- }
- else {
- $.messager.alert('用户登录', json['message'], 'warning');
- }
- });
- }
- }
- //function ADsubmitForm() {
- // $.get('login.ashx?m=1&r=' + Math.random(), $('#ff').serialize(), function (data) {
- // var json = JSON.parse(data);
- // if (json['success'] == true) {
- // parent.window.location.href = 'main.html';
- // }
- // else {
- // $.messager.alert('用户登录', json['message'], 'warning');
- // }
- // });
- //}
- function keyLogin() {
- if (event.keyCode == 13) submitForm();
- }
- </script>
- <!--<script src="http://127.0.0.1:60123/hgws/get_ad_code?callback=GetAD"></script>-->
- </body>
- </html>
|