<%@ page language="C#" autoeventwireup="true" inherits="SB_admin_index_index, App_Web_wywlgbzm" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>系统管理</title>
    <script type="text/javascript" language="javascript" src="<%=ResolveUrl("~/SB/control/easy_ui/jquery.min.js?v=1")%>"></script>
    <script type="text/javascript" language="javascript" src="<%=ResolveUrl("~/SB/control/easy_ui/jquery.easyui.min.js?v=1")%>"></script>
    <script type="text/javascript" language="javascript" src="<%=ResolveUrl("~/SB/control/easy_ui/locale/easyui-lang-zh_CN.js?v=1")%>"></script>
    <script type="text/javascript" language="javascript" src="<%=ResolveUrl("~/SB/control/easy_ui/jquery.load.js?v=1")%>"></script>
    <script type="text/javascript" language="javascript" src="<%=ResolveUrl("~/SB/control/easy_ui/jquery.json.js?v=1")%>"></script>
    <script type="text/javascript" language="javascript" src="<%=ResolveUrl("~/SB/control/easy_ui/jquery.easyui.validtor.js?v=1")%>"></script>
    <script type="text/javascript" language="javascript" src="<%=ResolveUrl("~/SB/control/js/PageDialog.js?v=1")%>"></script>
    <link rel="stylesheet" type="text/css" href="<%=ResolveUrl("~/SB/control/easy_ui/themes/bootstrap/easyui.css?v=1")%>" />
    <link rel="stylesheet" type="text/css" href="<%=ResolveUrl("~/SB/control/easy_ui/themes/icon.css?v=1")%>" />
    <link rel="stylesheet" type="text/css" href="<%=ResolveUrl("~/SB/control/easy_ui/load.css?v=1")%>" />
    <link rel="stylesheet" type="text/css" href="<%=ResolveUrl("~/SB/control/css/main.css?v=1")%>" />
    
    <script type="text/javascript" language="javascript">
   
    function OpenFrame(url,titlename){
         load("页面载入中 请稍等...");
         
         var cd = "?";
         if(url.indexOf("?")!=-1) cd="&";
            
         var frame = $("#mainframe").attr("src",url+cd+"d="+new Date).get(0);
         frame.onload = frame.onreadystatechange = function() 
         {
              if (this.readyState && this.readyState != 'complete') 
                return;
              else{
                onComplete();
              }
         }  
         setTitle(titlename)
    }
    function setTitle(titlename){
         $("body").layout("panel","center").panel("setTitle",titlename);
    }
    function onComplete(){
         unload();
    }
    $(function(){
        $("body").css("visibility","visible"); 
     
        
    $("#dlg").show().dialog({
        iconCls:'icon-message',
        modal:true 
        });
        
        $("#openMessage").datagrid({
            url:'<%=ResolveUrl("~/SB/admin/N47_Project/N47_Project_Dataview.aspx?p_complete=no")%>',
            fit:true,
            pagination:true,
            singleSelect:true,
            rownumbers:true,
            pageSize:10
            
        });
        
    })
    

    </script>

</head>
<body class="easyui-layout" style="visibility:hidden">
<div region="north" class="rtitle" style="border: 1px solid lightGrey; background: whitesmoke;  height:47px; padding-top: 0px">
       <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td align="left">
                    <div style="float: left">
              
                        <img src="logo.gif" style="height:40px" />
                    </div>
                    <div style="float: right;margin-top:10px"> 
                    
                     <a href="Exit.aspx" class="easyui-linkbutton" plain="true" iconcls="icon-cancel">退出系统</a>

                        [<a href="http://support.25175.com/" style="color: #3399CC;" target="_blank">问题反馈</a>]
                        &nbsp;
                         <a href="http://www.25175.com" style="color: #3399CC;">Powered by 25175</a>
                        &nbsp;
                    </div>
                    
                    <div style="float: left;margin-top:5px">
                        <span style="font-size: 17px; margin-left: 30px; ">
                            
                            <asp:Label ID="labFont" runat="server" Text="顺通广告公司客户订单流程管理系统(V6.1.1)" style="font-family:微软雅黑; font-weight:bold; color: dimgray;"></asp:Label></span>
                    </div>
                </td>
            </tr>
        </table>
    
     </div>
    <div data-options="region:'west',split:true" title="操作" style="width:115px; padding-top:10px;  padding-left:10px" >
        
        <asp:Literal ID="litUser" runat="server" Visible="false">
        <a href="#" class="easyui-linkbutton" plain="true" iconcls="icon-user" onclick='OpenFrame("../N47_User.aspx","人员设置")'>人员列表</a>  <br />
        </asp:Literal>
        
        <asp:Literal ID="litCustomer" runat="server" Visible="false">
        <a href="#" class="easyui-linkbutton" plain="true" iconcls="icon-subject" onclick='OpenFrame("../N47_Customer.aspx","客户设置")'>客户列表</a>  <br />
        </asp:Literal>
        
        <asp:Literal ID="litProject" runat="server" Visible="false">
        <a href="#" class="easyui-linkbutton" plain="true" iconcls="icon-book" onclick='OpenFrame("../N47_Project.aspx","项目列表")'>项目列表</a>  <br />
        </asp:Literal>
        
        <asp:Literal ID="litPrintForm" runat="server" Visible="false">
        <a href="#" class="easyui-linkbutton" plain="true" iconcls="icon-message" onclick='OpenFrame("../N47_PrintForm.aspx","项目制作单")'>项目制作单</a>  <br />
        </asp:Literal>

        <asp:Literal ID="litDeliveryNote" runat="server" Visible="false">
        <a href="#" class="easyui-linkbutton" plain="true" iconcls="icon-message" onclick='OpenFrame("../N47_DeliveryNote.aspx","项目送货单")'>项目送货单</a>  <br />
        </asp:Literal>
          
      
        <asp:Literal ID="litJD" runat="server" Visible="false">
        <a href="#" class="easyui-linkbutton" plain="true" iconcls="icon-edit2" onclick='OpenFrame("../N47_WorkProjects.aspx","自主接单")'>自主接单</a>  <br />
        </asp:Literal>
        
        <asp:Literal ID="litMonthStatistics" runat="server" Visible="false">
        <a href="#" class="easyui-linkbutton" plain="true" iconcls="icon-print" onclick='OpenFrame("../N47_Project/N47_Project_MonthStatistics.aspx","项目统计")'>项目统计</a>  <br />
        </asp:Literal>
        
        <asp:Literal ID="litProjectPrice" runat="server" Visible="false">
        <a href="#" class="easyui-linkbutton" plain="true" iconcls="icon-money" onclick='OpenFrame("../N47_Project/N47_ProjectAmountStatistics.aspx","金额统计")'>金额统计</a>  <br />
        </asp:Literal>
        
        <asp:Literal ID="litUserWorkStatistics" runat="server" Visible="false">
        <a href="#" class="easyui-linkbutton" plain="true" iconcls="icon-competentRole" onclick='OpenFrame("../N47_UserTaskCompleteStatistics.aspx","员工业绩统计")'>员工业绩</a>  <br />
        </asp:Literal>
        
        <asp:Literal ID="litBackup" runat="server" Visible="false">
        <a href="#" class="easyui-linkbutton" plain="true" iconcls="icon-save" onclick='OpenFrame("backup.aspx","数据备份")'>数据备份</a>  <br />
        </asp:Literal>
        
        <a href="#" class="easyui-linkbutton" plain="true" iconcls="icon-key" onclick='OpenFrame("UpdatePassword.aspx","密码修改")'>密码修改</a>  <br />
        <a href="Exit.aspx" class="easyui-linkbutton" plain="true" iconcls="icon-cancel">退出系统</a>

    </div>
    
    <div id="main" region="center" border="0" title="项目列表" >
        <iframe id="mainframe" scrolling="auto" src="../N47_Project.aspx"  frameborder="0" style="width: 100%; height: 100%;">
        </iframe>
    </div>
    
    <div id="dlg" title="未完成项目"  style="width:1000px;height:400px; display:none">  
     
         <table id="openMessage" >  
            <thead>  
                <tr>  
                        <th field="p_name" width="150" formatter='showProject'>项目名称</th>
						<th field="p_customer" width="150" >客户</th>
						<th field="p_notPlan" width="50" formatter='p_notPlanFormat'>未安排</th>
						<th field="p_march" width="50" formatter='p_marchFormat'>进行中</th>
						<th field="p_complete" width="50" formatter='p_completeFormat'>已完成</th>
						
						<th field="p_depart" width="150" >部门(客户)</th>
						<th field="p_linkman" width="150" >联系人</th>
						<th field="p_tel" width="150" >联系电话</th>
						<th field="p_qq" width="150" >QQ</th>
						<th field="p_contact" width="150" >其他联系方式</th>
						<th field="p_address" width="150" >地址</th>
	
			            <th field="p_spe" width="150" >规格</th>
			            <th field="p_quantity" width="150" >数量</th>
			            <th field="p_material" width="150" >材料</th>
			            <th field="p_technology" width="150" >工艺</th>
			            
						<th field="p_orderTakers" width="150" >接单人员</th>

						<th field="p_uid" width="150" >项目创建人员</th>
						<th field="p_cdate" width="150" >创建日期</th>
                        <th field="p_note" width="150" >备注</th>
                        
                        
                </tr>  
            </thead>  
        </table>
    </div>
    <script language="javascript" type="text/javascript">
        function showProject(value,row,index)
        {
            return "<a href='#' onclick=\"OpenFrame('../N47_Project.aspx?pid="+row.id+"','项目列表')\" >"+value+"</a>";
        }
        function p_notPlanFormat(value,row,index){
        return "<input type='checkbox'  "+ (value?"checked='checked'":"")+" onclick=\"return false;\"  />";
        }function p_marchFormat(value,row,index){
        return "<input type='checkbox'  "+ (value?"checked='checked'":"")+" onclick=\"return false;\"  />";
        }function p_completeFormat(value,row,index){
        return "<input type='checkbox'  "+ (value?"checked='checked'":"")+" onclick=\"return false;\"  />";
        }
    </script>
    
    
   
</body>
</html>
