123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272 |
- <%@page import="java.io.Writer"%>
- <%@page import="com.uas.mes.common.entity.Master"%>
- <%@page import="com.uas.mes.common.entity.Employee"%>
- <%@ page language="java" pageEncoding="utf-8"%>
- <%
- String path = request.getContextPath();
- String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
- Object mobile = session.getAttribute("_mobile");
- if("true".equals(mobile))
- response.sendRedirect("jsps/mobile/main/index.jsp");
- %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <title>UAS-MES系统</title>
- <link rel="icon" href="<%=basePath %>resource/images/icon_title.png" type="image/x-icon"/>
- <link rel="stylesheet" href="<%=basePath %>resource/ext/resources/css/ext-all-gray.css" type="text/css"/>
- <link rel="stylesheet" type="text/css" href="<%=basePath %>resource/css/TabScrollerMenu.css"/>
- <link rel="stylesheet" href="<%=basePath %>resource/css/main.css" type="text/css"/>
- <link rel="stylesheet" type="text/css" href="<%=basePath %>resource/ux/css/CheckHeader.css" />
- <link rel="stylesheet" href="<%=basePath %>resource/css/tree.css" type="text/css"/>
- <script type="text/javascript" src="<%=basePath %>resource/ext/ext-all.js"></script>
- <script type="text/javascript" src="<%=basePath %>resource/i18n/i18n.js?_em=<%=session.getAttribute("em_uu") %>"></script>
- <script type="text/javascript" src="<%=basePath %>resource/ux/TabScrollerMenu.js"></script>
- <script type="text/javascript" src="<%=basePath %>resource/ux/TabCloseMenu.js"></script>
- <script type="text/javascript" src="<%=basePath %>resource/jquery/jquery-1.4.min.js"></script>
- <style type="text/css">
- .main-btn-underline .x-btn-inner{font-size:13px;}
- .main-btn-underline-over .x-btn-inner{text-decoration: underline;color: blue;}
- .bottom-left{float: left;cursor: pointer;padding-bottom: 6px;margin-left: 3px;text-decoration: none;font-weight:lighter;font-family: "宋体"}
- .bottom_right{text-decoration: none;float:right;cursor: pointer;padding-bottom: 4px; margin-left: 1px;font-weight:lighter;color: blue;font-family: "宋体"}
- .bottom_right:hover{float:right;color: green;cursor: pointer;text-decoration: underline;}
- .float{ width:200px; padding:5px 10px; border:1px solid #ffecb0; font-size:12px; background-color:#fffee0; -moz-box-shadow:1px 1px 2px rgba(0,0,0,.2); -webkit-box-shadow:1px 1px 2px rgba(0,0,0,.2); box-shadow:1px 1px 2px rgba(0,0,0,.2); position:absolute; -moz-border-radius:5px; -webkit-border-radius:5px; border-radius:5px; }
- .float .close-ico{ position:absolute; top:5px; right:5px; display:block; width:16px; height:16px; background-image:url(../resource/images/cup.gif); text-indent:-900px; overflow:hidden; }
- .float .close-ico:hover{ background-position:0 -16px;}
- .float p{ line-height:22px}
- .x-panel-body-default {
- background: #f1f2f5;
- border: none !important;
- }
- .searchMenu{
- position:absolute;top:110;left:180;width:auto;height:auto;z-index:4;visibility:hidden;border: 1;background-color: BECEBE;
- border:1px solid #ffecb0; -moz-box-shadow:1px 1px 2px rgba(0,0,0,.2); -webkit-box-shadow:1px 1px 2px rgba(0,0,0,.2); box-shadow:1px 1px 2px rgba(0,0,0,.2); -moz-border-radius:5px; -webkit-border-radius:5px; border-radius:5px;
- }
- .menuDiv{
- position:absolute;width:auto;height:auto;z-index:4;visibility:hidden;border: 1;background-color: #dedede;
- border:1px; -moz-box-shadow:1px 1px 2px rgba(0,0,0,.2); -webkit-box-shadow:1px 1px 2px rgba(0,0,0,.2); box-shadow:1px 1px 2px rgba(0,0,0,.2); -moz-border-radius:5px; -webkit-border-radius:5px; border-radius:5px;
- }
- .menuDiv a{
- text-decoration: none;
- }
- .menuDiv a:hover{
- color: black;
- font-weight: bold;
- }
-
- .main-btn-left {
- border: none;
- float: left;
- font-size: 13px;
- }
- .main-btn-right {
- border: none;
- float: right;
- font-size: 13px;
- }
- .main-btn-left a:hover,.main-btn-right font:hover{
- text-decoration: underline;
- }
- .menuitem-lock{
- background: url('<%=basePath %>resource/images/icon/lock.png') no-repeat center center;
- }
- .main-btn-user {
- background-image: url('<%=basePath %>resource/images/wishmaster.gif');
- }
- .main-btn-link {
- background-image: url('<%=basePath %>resource/images/ie.png');
- }
- #myinfo{
- font-size: 13px;
- display: none;
- }
- #myinfo font,input{
- font-size: 13px;
- }
- .label{
- width: 45px;
- font-family: 隶书;
- color: blue;
- }
- #myinfo input{
- border: none;
- width: 100px;
- }
- #phones {
- background-color: #fff;
- text-shadow: #fff 0 1px 0;
- position: relative;
- display: block;
- height: auto;
- }
-
- #phones div.phone img {
- margin-bottom: 1px;
- }
-
- #phones div.phone {
- float: left;
- padding: 1px 1px;
- margin: 0px;
- text-align: center;
- line-height: 14px;
- color: #333;
- font-size: 10px;
- font-family: "Helvetica Neue",sans-serif;
- height: 130px;
- width: 140px;
- overflow: hidden;
- border: 1px solid gray;
- cursor: pointer;
- }
-
- .x-ie6 #phones div.phone,
- .x-ie7 #phones div.phone,
- .x-ie8 #phones div.phone {
- border-top: none;
- padding: 3px 2px;
- margin: 2px;
- }
- #phones div.phone-hover {
- background-color: #eee;
- }
- #phones div{
- background-color: #D3E1F1 !important;
- }
- #phones div:hover{
- background-color: #D6B1F1 !important;
- }
- #phones .x-item-selected {
- background-color: #D6B1F1 !important;
- }
-
- #phones div.phone strong {
- color: #000;
- display: block;
- }
-
- #phones div.phone span {
- color: #999;
- }
- .process-lazy {
- color: red;
- }
- </style>
- <script type="text/javascript">
-
- Ext.Loader.setConfig({
- enabled: true
- });//开启动态加载
- Ext.application({
- name: 'erp',//为应用程序起一个名字,相当于命名空间
- appFolder: basePath+'app',//app文件夹所在路径
- controllers: [//声明所用到的控制层
- 'common.Main'
- ],
- launch: function() {
- Ext.create('erp.view.common.main.Viewport');
- }
- });
-
- var username = '<%=session.getAttribute("username")%>';
- var em_name = '<%=session.getAttribute("em_name")%>';
- var em_uu = '<%=session.getAttribute("em_uu")%>';
- var en_uu = '<%=session.getAttribute("en_uu")%>';
- var em_code = '<%=session.getAttribute("em_code")%>';
- var en_email ='<%=session.getAttribute("en_email")%>';
- function selectAll(){
- if($("#selectAll").attr("checked") == true){
- $(":checkbox").attr("checked","checked");
- }else{
- $(":checkbox").attr("checked","");
- }
- }
- function getSearchKeys(){
- var sf = Ext.getCmp('searchField');
- sf.setValue('');
- var condition = '';
- $.each($("input:checked"),function(){
- if(this.id != "selectAll"){
- if(this.name != "condition"){
- if(sf.value == '' || sf.value == null || sf.value == '快速查找'){
- sf.setValue($(this).next().text());
- } else if(! contains(sf.value, $(this).next().text(), true)){
- sf.setValue(sf.value + ';' + $(this).next().text());
- }
- } else {
- condition = this.value;
- }
- }
- });
- if(condition == 'and'){
- sf.setValue(sf.value.replace(/;/g, '&&'));
- } else {
- sf.setValue(sf.value.replace(/;/g, '##'));
- }
- $('#searchMenu').hide();
- sf.onTriggerClick(sf.value);
- }
- function deleteFromCookie(id, value){
- $("#"+id).remove();
- var searchKeys = Ext.util.Cookies.get('searchKeys');
- if(contains(searchKeys, '||' + value + '||')){
- searchKeys = searchKeys.replace('||' + value, '');
- } else if(contains(searchKeys, value + '||')){
- searchKeys = searchKeys.replace(value + '||', '');
- } else if(contains(searchKeys, '||' + value)){
- searchKeys = searchKeys.replace('||' + value, '');
- }
- Ext.util.Cookies.set('searchKeys', searchKeys);
- }
- function logout(){
- Ext.Msg.confirm('温馨提示',"确定退出吗?",
- ok);
- function ok(btn){
- if(btn == 'yes'){
- Ext.Ajax.request({
- url: basePath + "common/logout.action",
- method: 'GET',
- callback: function(opt, s, r) {
- document.location.href = basePath + "?_page=logout";
- }
- });
- } else {
- return;
- }
- };
- }
- function main_relogin(){
- showLoginDiv();
- }
- window.onload = function() {
- SetCookie('em_name', em_name);
- SetCookie('em_uu', em_uu);
- SetCookie('en_name', en_name);
- SetCookie('en_uu', en_uu);
- SetCookie('em_code', em_code);
- };
- </script>
- </head>
- <body>
- <textarea id="textarea_text" style="position:absolute;left:-1000px"></textarea>
- <script type="text/javascript" src="<%=basePath %>resource/ux/CheckColumn.js"></script>
- </body>
- <script>
- <%
- Object obj = session.getAttribute("employee");
- String sob = "";
- String sobText = "";
- if(obj != null) {
- Employee employee = (Employee)obj;
- sob = employee.getEm_master();
- Master master = employee.getCurrentMaster();
- if(master != null)
- sobText = master.getMa_function();
- }
- %>
- var sob = '<%=sob%>';
- var sobText = '<%=sobText%>';
- </script>
- </html>
|