<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SPIsYes.aspx.cs" Inherits="WorkFlow.FlowPage.WorkFlow_SPPage.SPIsYes" %>

<!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 id="Head1" runat="server">
    <title>未审批</title>
    <link href="../css/main.css" rel="stylesheet" type="text/css" />
    <link href="../css/ext-all.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript">
    function openwindow2(url,name,iWidth,iHeight)
{

    var url;                             //转向网页的地址;
    var name;                            //网页名称，可为空;
    var iWidth;                          //弹出窗口的宽度;
    var iHeight;                         //弹出窗口的高度;    
    //获得窗口的垂直位置
    var iTop = (window.screen.availHeight-30-iHeight)/2;        
    //获得窗口的水平位置
    var iLeft = (window.screen.availWidth-10-iWidth)/2;           
        window.open(url,name,'height='+iHeight+',,innerHeight='+iHeight+',width='+iWidth+',innerWidth='+iWidth+',top='+iTop+',left='+iLeft+',toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no, status=no');
      
}
    </script>

    <script type="text/javascript">
       //返回IE版本
function getIEVersonNumber()
{
	var ua = navigator.userAgent;
	var msieOffset = ua.indexOf("MSIE ");
	if(msieOffset < 0)
		return 0;
	return parseFloat(ua.substring(msieOffset + 5, ua.indexOf(";", msieOffset)));
}
   function window_onload()
{
		if(navigator.appName == "Netscape" || navigator.appName == "Opera" || getIEVersonNumber() <= 5)
		{ 
		 var win = parent.Ext.getCmp('Window2');if (win) {win.hide();}  
		 var win = parent.Ext.getCmp('Window1');if (win) {win.hide();}  
			alert("请使用微软IE8浏览器！");			
		}
}
    </script>

</head>
<body style="background-color: #5f6268" onload="window_onload();">
    <form id="myform" name="myform" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <% //获取服务器的地址
        string URL = this.Session["URL"].ToString();
        string ID;
        string DocType;
        string DocTitle = "";
        //起草文件,则ID为NULL,否则为记录的主键
        ID = Request.QueryString["ID"];
        if (ID == null || ID == "")
        {
            //获取新建文件的类型         
            DocType = "doc";
        }
        else
        {
            //获取DocTitle
            DocTitle = Request.QueryString["DocTitle"];
            //获取文件的 类型       
            DocType = "doc";
        }
        
 %>
    <table cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <td align="right">
                <table>
                    <tr>
                        <td>
                            <img alt="" src="../../images/blue16_024.gif" />
                        </td>
                        <td>
                            <asp:UpdatePanel ID="UpdatePanel6" runat="server">
                                <ContentTemplate>
                                    <asp:LinkButton ID="LinkButton3" runat="server" ToolTip="打印该流程信息" ForeColor="White"
                                        OnClick="LinkButton3_Click">打印</asp:LinkButton>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <table width="100%" cellpadding="0" cellspacing="0">
        <tr>
            <td align="center">
                <table>
                    <tr>
                        <td valign="top" align="center">
                            <asp:HiddenField ID="hifAccount" runat="server" />
                            <div style="background-image: url('../icon/1new.png'); width: 880px; height: 10px">
                            </div>
                            <div style="background-image: url('../icon/2.png'); width: 880px; text-align: center">

                                <script language="javascript" type="text/javascript" for="WebOffice1" event="NotifyCtrlReady">
                                WebOffice1_NotifyCtrlReady();
                                </script>

                                <div id="User_WorkFlow_View_TitleInfo" runat="server" style="color: #2a6583; font-weight: bold;
                                    font-size: 25px; margin-bottom: 3px">
                                </div>
                                <div id="CreateInfo" runat="server" style="font-size: 12px; margin-bottom: 3px">
                                </div>
                                <div id="Notes" runat="server" style="font-size: 12px; margin-bottom: 3px">
                                </div>
                                <input id="User_WorkFlow_Order_ID" type="text" name="User_WorkFlow_Order_ID" style="display: none"
                                    runat="server" />

                                <script language="javascript" type="text/javascript">
            var s = ""
            s += "<object id=WebOffice1 height=586  width='99%' style='LEFT: 0px; TOP: 0px'  classid='clsid:E77E049B-23FC-4DB8-B756-60529A35FAD5' codebase=WebOffice.cab#V6,0,2,0>"
            s +="<param name='_ExtentX' value='6350'><param name='_ExtentY' value='6350'>"
            s +="</OBJECT>"
            document.write(s)
                                </script>

                                <script language="javascript" type="text/javascript">
    function CloseDoc()
    {
       document.all.WebOffice1.Close();
        var win = parent.Ext.getCmp('Window1');if (win) {win.hide();}  
    }
        function window_onunload() {
	        document.all.WebOffice1.Close();
        }
        // -----------------------------== 修订文档 ==------------------------------------ //
        function ProtectRevision() {
	        document.all.WebOffice1.SetTrackRevisions(0) 
        }

        // -----------------------------== 隐藏修订 ==------------------------------------ //
        function UnShowRevisions() {
	        document.all.WebOffice1.ShowRevisions(0);
        }
        // --------------------------== 显示当前修订 ==---------------------------------- //
        function ShowRevisions() {
	        document.all.WebOffice1.ShowRevisions(0);
        }
        // -------------------------== 接受当前所有修订 ------------------------------ //
        function AcceptAllRevisions() {
            document.all.WebOffice1.SetTrackRevisions(0);
        }     
     function WebOffice1_NotifyCtrlReady() 
     { 
        document.all.WebOffice1.ShowToolBar = 0; // 0 隐藏 1 显示
             document.all.WebOffice1.LoadOriginalFile("<%=URL %>/GetSPIsNoInfomation.aspx?User_WorkFlow_Order_ID="+myform.User_WorkFlow_Order_ID.value,"doc");
 	         document.all.WebOffice1.SetTrackRevisions(1);
             document.all.WebOffice1.ShowRevisions(0);//隐藏修订
    	document.all.WebOffice1.ProtectDoc(1,1,"222");//设置文档保护
        document.all.WebOffice1.SetToolBarButton2("Menu Bar",1,8);//隐藏菜单
     	document.all.WebOffice1.SetToolBarButton2("Standard",1,8);//隐藏常用工具栏
     	document.all.WebOffice1.SetToolBarButton2("Formatting",1,8);//隐藏格式工具栏


     }

    </script>

                            </div>
                            <div style="background-image: url('../icon/1.png'); width: 880px; height: 10px">
                            </div>
                        </td>
                        <td valign="top" align="center">
                            <div style="background-image: url('../icon/left-top.png'); width: 317px; height: 10px">
                            </div>
                            <div style="background-image: url('../icon/left-c.png'); width: 317px;">
                                <table width="98%" style="border-bottom: solid 1px black">
                                    <tr>
                                        <td align="left">
                                            <table>
                                                <tr>
                                                    <td style="width: 19px">
                                                        <img alt="" src="../../images/ViewAddFile.gif" />
                                                    </td>
                                                    <td>
                                                        附件列表：
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                                <asp:DataList ID="DataList1" runat="server" OnItemCommand="DataList1_ItemCommand"
                                    OnItemDataBound="DataList1_ItemDataBound" RepeatColumns="2">
                                    <ItemTemplate>
                                        <table width="100%">
                                            <tr>
                                                <td align="center">
                                                    <asp:ImageButton ID="ImageButton1" runat="server" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="center">
                                                    <asp:HiddenField ID="hifHZ" runat="server" Value=' <%#Eval("HZ")%>' />
                                                    <asp:LinkButton ID="lblUpLoadFiles" runat="server" CommandArgument='<%#Eval("FileUploadInfo")%>'
                                                        CommandName="XZOne" ToolTip="下载该附件" Font-Size="12px"> <%#Eval("FileUploadInfo")%></asp:LinkButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </ItemTemplate>
                                </asp:DataList>
                            </div>
                            <div style="background-image: url('../icon/left-dw.png'); width: 317px; height: 10px">
                            </div>
                            <div style="background-image: url('../icon/left-top.png'); width: 317px; height: 10px">
                            </div>
                            <div style="background-image: url('../icon/left-c.png'); width: 317px;">
                                <table width="98%" style="border-bottom: solid 1px black">
                                    <tr>
                                        <td align="left">
                                            <table>
                                                <tr>
                                                    <td style="width: 19px">
                                                        <img alt="" src="../../images/ModifyRecord.gif" />
                                                    </td>
                                                    <td>
                                                        审批记录：
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                                <asp:GridView ID="grvSPList" runat="server" GridLines="None" AutoGenerateColumns="False"
                                    Width="98%" BorderStyle="None" OnRowDataBound="grvSPList_RowDataBound">
                                    <Columns>
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <table width="100%" style="border-bottom: 1px dotted #cccccc;">
                                                    <tr>
                                                        <td align="left">
                                                            <%#Eval("SpNote")%>
                                                            <asp:GridView ID="GridView4" runat="server" AutoGenerateColumns="False" BorderStyle="None"
                                                                OnRowCommand="GridView4_RowCommand" Width="100%" GridLines="None" ShowHeader="True"
                                                                ShowFooter="True">
                                                                <Columns>
                                                                    <asp:TemplateField>
                                                                        <ItemTemplate>
                                                                            <table>
                                                                                <tr>
                                                                                    <td align="left">
                                                                                        <span style="font-size: 12px">
                                                                                            <%#Eval("UpLoadFiles")%></span>
                                                                                    </td>
                                                                                    <td align="right" style="width: 30px">
                                                                                        <asp:LinkButton ID="lblUpLoadFiles" runat="server" CommandArgument='<%#Eval("UpLoadFiles")%>'
                                                                                            Font-Size="12px" CommandName="XZOne" ToolTip="下载该附件">下载</asp:LinkButton>
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                </Columns>
                                                            </asp:GridView>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="right">
                                                            <table>
                                                                <tr>
                                                                    <td>
                                                                        <span style="font-size: 12px">
                                                                            <%#Eval("UserInfoName")%></span>
                                                                    </td>
                                                                    <td>
                                                                        <span style="font-size: 12px">
                                                                            <%#Eval("DepartmentName")%></span>
                                                                    </td>
                                                                    <td>
                                                                        <span style="font-size: 12px">
                                                                            <%#Eval("PostionName")%></span>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td colspan="3">
                                                                        <span style="font-size: 12px">
                                                                            <asp:HiddenField ID="hifSpDate" runat="server" Value='  <%#Eval("SpDate")%>' />
                                                                            <%#Eval("SpDate")%><asp:Label ID="lblWeek" runat="server" Font-Size="12px"></asp:Label>
                                                                        </span>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td colspan="3">
                                                                        <span style="font-size: 12px">耗时:<%#Eval("HS")%></span>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                </asp:GridView>
                            </div>
                            <div style="background-image: url('../icon/left-dw.png'); width: 317px; height: 10px">
                            </div>
                            <div style="background-image: url('../icon/left-top.png'); width: 317px; height: 10px">
                            </div>
                            <div style="background-image: url('../icon/left-c.png'); width: 317px;">
                                <table width="98%" style="border-bottom: solid 1px black">
                                    <tr>
                                        <td align="left">
                                            <table>
                                                <tr>
                                                    <td style="width: 19px">
                                                        <img alt="" src="../../images/AllEnoplyee.gif" />
                                                    </td>
                                                    <td>
                                                        沟通记录：
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                                <asp:UpdatePanel ID="UpdatePanel5" runat="server">
                                    <ContentTemplate>
                                        <asp:GridView ID="grvGTList" runat="server" AutoGenerateColumns="False" BorderStyle="None"
                                            Width="100%" GridLines="None" ShowHeader="True" ShowFooter="True">
                                            <Columns>
                                                <asp:TemplateField>
                                                    <ItemTemplate>
                                                        <table width="100%" style="border-bottom: 1px dotted #cccccc;">
                                                            <tr>
                                                                <td align="left">
                                                                    <%#Eval("Notes")%>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right">
                                                                    <table>
                                                                        <tr>
                                                                            <td>
                                                                                <span style="font-size: 12px">
                                                                                    <%#Eval("CreateUserName")%></span>
                                                                            </td>
                                                                            <td>
                                                                                <table cellpadding="0" cellspacing="0">
                                                                                    <tr>
                                                                                        <td style="font-size: 12px; color: Green;">
                                                                                            发送至
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td align="center">
                                                                                            <img src="../../images/line_double_arrow_end.png" alt="" width="20px" />
                                                                                        </td>
                                                                                    </tr>
                                                                                </table>
                                                                            </td>
                                                                            <td>
                                                                                <span style="font-size: 12px">
                                                                                    <%#Eval("Name")%></span>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td colspan="3">
                                                                                <span style="font-size: 12px">
                                                                                    <%#Eval("CreateDate")%></span>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                        </asp:GridView>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </div>
                            <div style="background-image: url('../icon/left-dw.png'); width: 317px; height: 10px">
                            </div>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
