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

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!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 runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
    <link rel="Bookmark" href="favicon.ico" />
    <title>主界面</title>
    <link href="FlowPage/css/main.css" rel="stylesheet" type="text/css" />
    <link href="FlowPage/css/ext-all.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .start-button
        {
            background-image: url(images/vista_start_button.gif) !important;
        }
        .shortcut-icon
        {  
            width: 64px;
            height: 64px;
        }
        .icon-KHGL
        {
            background-image: url(images/50.png) !important;
            filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="images/50.png" , sizingMethod= "scale" );
            margin-bottom: 6px;
        }
        .icon-LCGL
        {
            background-image: url(images/57.png) !important;
            filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="images/57.png" , sizingMethod= "scale" );
            margin-bottom: 6px;
        }
        .icon-XTSZ
        {
            background-image: url(images/51.png) !important;
            filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="images/51.png" , sizingMethod= "scale" );
            margin-bottom: 6px;
        }
        .icon-LCSP
        {
            background-image: url(images/54.png) !important;
            filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="images/54.png" , sizingMethod= "scale" );
            margin-bottom: 6px;
        }
        .icon-WDLC
        {
            background-image: url(images/46.png) !important;
            filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="images/46.png" , sizingMethod= "scale" );
            margin-bottom: 6px;
        }
        .icon-LCSZ
        {
            background-image: url(images/59.png) !important;
            filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="images/59.png" , sizingMethod= "scale" );
            margin-bottom: 6px;
        }
        .icon-XSGL
        {
            background-image: url(images/39.png) !important;
            filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="images/39.png" , sizingMethod= "scale" );
            margin-bottom: 6px;
        }
        .icon-CP
        {
            background-image: url(images/product.png) !important;
            filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="images/product.png" , sizingMethod= "scale" );
            margin-bottom: 6px;
        }
         .icon-GYS
        {
            background-image: url(images/gys.png) !important;
            filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="images/gys.png" , sizingMethod= "scale" );
            margin-bottom: 6px;
        }
        .desktopEl
        {
            color: White;
        }
        .raised
        {
            background: transparent;
            width: 40%;
        }
        .raised h1, .raised p
        {
            margin: 0 10px;
        }
        .raised h1
        {
            font-size: 12px;
            color: #4d5e6c;
        }
        .raised p
        {
            padding-bottom: 0.5em;
        }
        .raised .b1, .raised .b2, .raised .b3, .raised .b4, .raised .b1b, .raised .b2b, .raised .b3b, .raised .b4b
        {
            display: block;
            overflow: hidden;
            font-size: 1px;
        }
        .raised .b1, .raised .b2, .raised .b3, .raised .b1b, .raised .b2b, .raised .b3b
        {
            height: 1px;
        }
        .raised .b2
        {
            background: #4d5e6c;
            border-left: 1px solid #4d5e6c;
            border-right: 1px solid #4d5e6c;
        }
        .raised .b3
        {
            background: #4d5e6c;
            border-left: 1px solid #4d5e6c;
            border-right: 1px solid #4d5e6c;
        }
        .raised .b4
        {
            background: #4d5e6c;
            border-left: 1px solid #4d5e6c;
            border-right: 1px solid #4d5e6c;
        }
        .raised .b4b
        {
            background: #4d5e6c;
            border-left: 1px solid #4d5e6c;
            border-right: 1px solid #4d5e6c;
        }
        .raised .b3b
        {
            background: #4d5e6c;
            border-left: 1px solid #4d5e6c;
            border-right: 1px solid #4d5e6c;
        }
        .raised .b2b
        {
            background: #4d5e6c;
            border-left: 1px solid #4d5e6c;
            border-right: 1px solid #4d5e6c;
        }
        .raised .b1
        {
            margin: 0 5px;
            background: #4d5e6c;
        }
        .raised .b2, .raised .b2b
        {
            margin: 0 3px;
            border-width: 0 2px;
        }
        .raised .b3, .raised .b3b
        {
            margin: 0 2px;
        }
        .raised .b4, .raised .b4b
        {
            height: 2px;
            margin: 0 1px;
        }
        .raised .b1b
        {
            margin: 0 5px;
            background: #4d5e6c;
        }
        .raised .boxcontent
        {
            display: block;
            background: #4d5e6c;
            border-left: 1px solid #4d5e6c;
            border-right: 1px solid #4d5e6c;
        }     
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <ext:ResourceManager ID="ResourceManager1" runat="server" DirectMethodNamespace="DirectMethod">
    </ext:ResourceManager>
    <ext:Desktop ID="MyDesktop" runat="server" Wallpaper="images/bg2.jpg">
        <Content>
            <table width="100%" cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td align="center" style="display: none">
                        <table>
                            <tr>
                                <td>
                                    留言：
                                </td>
                                <td>
                                    <ext:TextField ID="txtInfo" runat="server" Width="600">
                                    </ext:TextField>
                                </td>
                                <td>
                                    <ext:Button ID="Button1" runat="server" Text="保存留言">
                                        <DirectEvents>
                                            <Click OnEvent="Add_Click">
                                            </Click>
                                        </DirectEvents>
                                    </ext:Button>
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td align="right" valign="top">
                        <table style="background-image: url('images/userborder.png'); width: 580px; height: 28px;"
                            cellpadding="0" cellspacing="0" border="0">
                            <tr>
                                <td align="center" valign="top">
                                    <table cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td>
                                                <ext:Image ID="Image1" runat="server" ImageUrl="~/FlowPage/images/htishi.gif">
                                                </ext:Image>
                                            </td>
                                            <td>
                                                &nbsp;
                                            </td>
                                            <td>
                                                <ext:LinkButton ID="LinkButton1" runat="server" Text="待办流程:0">
                                                    <DirectEvents>
                                                        <Click OnEvent="Look_Click">
                                                        </Click>
                                                    </DirectEvents>
                                                </ext:LinkButton>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td align="center" valign="top">
                                    <table cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td>
                                                <ext:Image ID="Image2" runat="server" ImageUrl="~/FlowPage/images/htishi.gif">
                                                </ext:Image>
                                            </td>
                                            <td>
                                                &nbsp;
                                            </td>
                                            <td>
                                                <ext:LinkButton ID="LinkButton2" runat="server" Text="沟通信息:0">
                                                    <DirectEvents>
                                                        <Click OnEvent="LookGT_Click">
                                                        </Click>
                                                    </DirectEvents>
                                                </ext:LinkButton>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td align="center" valign="top">
                                    <table cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td>
                                                <ext:Image ID="Image3" runat="server" ImageUrl="~/FlowPage/images/htishi.gif">
                                                </ext:Image>
                                            </td>
                                            <td>
                                                &nbsp;
                                            </td>
                                            <td>
                                                <ext:LinkButton ID="LinkButton3" runat="server" Text="客户任务:0">
                                                    <DirectEvents>
                                                        <Click OnEvent="LookKHRW_Click">
                                                        </Click>
                                                    </DirectEvents>
                                                </ext:LinkButton>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td align="center" valign="top">
                                    <table cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td>
                                                <ext:Image ID="Image4" runat="server" ImageUrl="~/FlowPage/images/htishi.gif">
                                                </ext:Image>
                                            </td>
                                            <td>
                                                &nbsp;
                                            </td>
                                            <td>
                                                <ext:LinkButton ID="LinkButton4" runat="server" Text="转移客户任务:0">
                                                    <DirectEvents>
                                                        <Click OnEvent="LookKHRWZY_Click">
                                                        </Click>
                                                    </DirectEvents>
                                                </ext:LinkButton>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td align="center" valign="top">
                                    <table cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td>
                                                <ext:Image ID="Image5" runat="server" ImageUrl="~/FlowPage/images/htishi.gif">
                                                </ext:Image>
                                            </td>
                                            <td>
                                                &nbsp;
                                            </td>
                                            <td>
                                                <ext:LinkButton ID="LinkButton5" runat="server" Text="客户纪念日:0">
                                                    <DirectEvents>
                                                        <Click OnEvent="LookKHJNR_Click">
                                                        </Click>
                                                    </DirectEvents>
                                                </ext:LinkButton>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </Content>
        <StartButton Text="<span style=font-size:13px>开始</span>" IconCls="start-button" />
        <Shortcuts>
        </Shortcuts>
        <Modules>
        </Modules>
        <StartMenu Width="300" Height="400" ToolsWidth="127" Title="" Icon="Anchor">
            <ToolItems>
                <ext:MenuItem Text="退出系统" Icon="Disconnect">
                    <DirectEvents>
                        <Click OnEvent="Logout_Click">
                            <Confirmation ConfirmRequest="true" Message="您确定要退出吗?" Title="提示" />
                            <EventMask ShowMask="true" Msg="正在退出中..." MinDelay="1000" />
                        </Click>
                    </DirectEvents>
                </ext:MenuItem>
                <ext:MenuSeparator />
            </ToolItems>
            <Items>
            </Items>
        </StartMenu>
    </ext:Desktop>
    <ext:DesktopWindow ID="Window1" runat="server" Title="流程管理" InitCenter="true" Icon="Anchor"
        Constrain="true" Maximized="true" Width="1020" Height="560" MinWidth="1020" MinHeight="560">
        <AutoLoad Mode="IFrame" NoCache="true" ShowMask="true">
        </AutoLoad>
    </ext:DesktopWindow>
    <ext:DesktopWindow ID="Window2" runat="server" Title="流程设置" InitCenter="true" Icon="Anchor"
        Constrain="true" Maximized="true" Width="1020" Height="560" MinWidth="1020" MinHeight="560">
        <AutoLoad Url="~/FlowPage/WorkFlowList.aspx" Mode="IFrame" ShowMask="true">
        </AutoLoad>
    </ext:DesktopWindow>
    <ext:DesktopWindow ID="Window3" runat="server" Title="我的流程" InitCenter="true" Icon="Anchor"
        Constrain="true" Maximized="true" Width="1020" Height="560" MinWidth="1020" MinHeight="560">
        <AutoLoad Mode="IFrame" ShowMask="true">
        </AutoLoad>
    </ext:DesktopWindow>
    <ext:DesktopWindow ID="Window4" runat="server" Title="流程审批" InitCenter="true" Icon="Anchor"
        Constrain="true" Maximized="true" Width="1020" Height="560" MinWidth="1020" MinHeight="560">
        <AutoLoad Url="~/FlowPage/WorkFlow_SPPage/WorkFlow_SPList.aspx" Mode="IFrame" ShowMask="true">
        </AutoLoad>
    </ext:DesktopWindow>
    <ext:TaskManager ID="TaskManager1" runat="server">
        <Tasks>
            <ext:Task TaskID="servertime" Interval="10000">
                <DirectEvents>
                    <Update OnEvent="RefreshTime">
                    </Update>
                </DirectEvents>
            </ext:Task>
        </Tasks>
    </ext:TaskManager>
    <ext:DesktopWindow ID="Window5" runat="server" Title="系统设置" InitCenter="true" Icon="Anchor"
        Constrain="true" Maximized="true" Width="1020" Height="560" MinWidth="1020" MinHeight="560">
        <AutoLoad Mode="IFrame" ShowMask="true">
        </AutoLoad>
    </ext:DesktopWindow>
    <ext:DesktopWindow ID="Window6" runat="server" Title="客户关系管理" InitCenter="true" Icon="Anchor"
        Constrain="true" Maximized="true" Width="1020" Height="560" MinWidth="1020" MinHeight="560">
        <AutoLoad Mode="IFrame" ShowMask="true">
        </AutoLoad>
    </ext:DesktopWindow>
    <ext:DesktopWindow ID="DesktopWindow1" runat="server" Title="沟通信息" InitCenter="true"
        Constrain="true" Icon="Anchor" Width="420" Height="560" MinWidth="420" MinHeight="560"
        Layout="FitLayout" Maximizable="false">
        <Items>
            <ext:GridPanel ID="GPaperTitle" runat="server" StripeRows="false" ColumnLines="false"
                ClicksToEdit="1" TrackMouseOver="false" Header="false">
                <Store>
                    <ext:Store ID="Store1" runat="server">
                        <Reader>
                            <ext:JsonReader>
                                <Fields>
                                    <ext:RecordField Name="UserInfoName" />
                                    <ext:RecordField Name="CreateDate" />
                                    <ext:RecordField Name="Notes" />
                                    <ext:RecordField Name="User_WorkFlow_View_User_WorkFlow_Order_ID" />
                                </Fields>
                            </ext:JsonReader>
                        </Reader>
                    </ext:Store>
                </Store>
                <LoadMask ShowMask="true" />
                <ColumnModel ID="ColumnModel2" runat="server">
                    <Columns>
                        <ext:TemplateColumn MenuDisabled="true" Width="402">
                            <Template ID="Template1" runat="server">
                                <Html>
                                <img alt="" src="images/chat.png" />
                                <span style='font-size: 19px; color: #2f97df'> 流程编号：{User_WorkFlow_View_User_WorkFlow_Order_ID}</span>
                                </Html>
                            </Template>
                        </ext:TemplateColumn>
                    </Columns>
                </ColumnModel>
                <View>
                    <ext:GridView ID="GridView1" runat="server" EnableRowBody="true">
                        <GetRowClass Handler="rowParams.body = '<table ><tr><td  style=color:#cb974e><p style=font-size:14px;line-height:20px>'+ record.data.Notes + '</p></td></tr> <tr><td align=right style=color:#61b34e><span style=font-size:14px;line-height:20px;>发送人：'+ record.data.UserInfoName+'['+ record.data.CreateDate+ ']</span></td></tr> </table>';" />
                    </ext:GridView>
                </View>
            </ext:GridPanel>
        </Items>
    </ext:DesktopWindow>
    <ext:DesktopWindow ID="Window7" runat="server" Title="客户任务" InitCenter="true" Icon="Anchor"
        Constrain="true" Width="1030" Height="560" MinWidth="1030" MinHeight="560">
        <AutoLoad Mode="IFrame" ShowMask="true">
        </AutoLoad>
    </ext:DesktopWindow>
    <ext:DesktopWindow ID="Window8" runat="server" Title="客户任务" InitCenter="true" Icon="Anchor"
        Constrain="true" Width="1030" Height="560" MinWidth="1030" MinHeight="560">
        <AutoLoad Mode="IFrame" ShowMask="true">
        </AutoLoad>
    </ext:DesktopWindow>
    <ext:DesktopWindow ID="Window9" runat="server" Title="客户纪念日" InitCenter="true" Icon="Anchor"
        Constrain="true" Width="530" Height="560" MinWidth="530" MinHeight="560" Layout="FitLayout">
        <Content>
            <ext:GridPanel ID="GridPanel1" runat="server" StripeRows="false" ColumnLines="false"
                ClicksToEdit="1" TrackMouseOver="false" Header="false">
                <Store>
                    <ext:Store ID="Store2" runat="server">
                        <Reader>
                            <ext:JsonReader>
                                <Fields>
                                    <ext:RecordField Name="ZT" />
                                    <ext:RecordField Name="KH" />
                                    <ext:RecordField Name="LXR" />
                                    <ext:RecordField Name="KHId" />
                                    <ext:RecordField Name="LXRId" />
                                    <ext:RecordField Name="JNRLX" />
                                    <ext:RecordField Name="JNR" />
                                    <ext:RecordField Name="BZ" />
                                </Fields>
                            </ext:JsonReader>
                        </Reader>
                    </ext:Store>
                </Store>
                <LoadMask ShowMask="true" />
                <ColumnModel ID="ColumnModel1" runat="server">
                    <Columns>
                        <ext:TemplateColumn MenuDisabled="true" Width="502">
                            <Template ID="Template2" runat="server">
                                <Html>
                                <table cellspacing="9">
                                <tr>                                
                                <td  valign="middle"> 
                                <img alt="" src="images/bell.png" />
                                <span style='font-size: 16px; font-weight: bold'> 主题：{ZT}</span>
                                </td>                            
                                </tr>
                                   <tr>                              
                                <td>  
                                <span style='font-size: 15px; color: #2f97df'> 客户：{KH}&nbsp;&nbsp;联系人：{LXR}</span>
                                </td>                                
                                </tr>
                                </table>
                                </Html>
                            </Template>
                        </ext:TemplateColumn>
                    </Columns>
                </ColumnModel>
                <View>
                    <ext:GridView ID="GridView2" runat="server" EnableRowBody="true">
                        <GetRowClass Handler="rowParams.body = '<table ><tr><td  style=color:#cb974e><p style=font-size:14px;line-height:20px>'+ record.data.BZ + '</p></td></tr> <tr><td align=right style=color:#61b34e><span style=font-size:14px;line-height:20px;>纪念类型：'+ record.data.JNRLX+'&nbsp;&nbsp;&nbsp;[纪念日：'+ record.data.JNR+ ']</span></td></tr> </table>';" />
                    </ext:GridView>
                </View>
            </ext:GridPanel>
        </Content>
    </ext:DesktopWindow>
    <ext:DesktopWindow ID="Window10" runat="server" Title="销售管理" InitCenter="true" Icon="Anchor"
        Constrain="true" Maximized="true" Width="1020" Height="560" MinWidth="1020" MinHeight="560">
        <AutoLoad Mode="IFrame" ShowMask="true">
        </AutoLoad>
    </ext:DesktopWindow>
    <ext:DesktopWindow ID="Window11" runat="server" Title="产品管理" InitCenter="true" Icon="Anchor"
        Constrain="true" Maximized="true" Width="1020" Height="560" MinWidth="1020" MinHeight="560">
        <AutoLoad Mode="IFrame" ShowMask="true">
        </AutoLoad>
    </ext:DesktopWindow>
     <ext:DesktopWindow ID="Window12" runat="server" Title="供应商" InitCenter="true" Icon="Anchor"
        Constrain="true" Maximized="true" Width="1020" Height="560" MinWidth="1020" MinHeight="560">
        <AutoLoad Mode="IFrame" ShowMask="true">
        </AutoLoad>
    </ext:DesktopWindow>
    </form>
</body>
</html>
