<%@ Page Title="" Language="C#" MasterPageFile="~/BackStage/SiteMaster.Master" AutoEventWireup="true" CodeBehind="Frm_OfficeList.aspx.cs" Inherits="AndroidSevice.Web.BackStage.GZT.Frm_OfficeList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
        function ShowDataHelp(_url, _title, _handler) {
            layer.open({
                type: 2,
                area: ['80%', '85%'],
                fix: false, //不固定
                maxmin: true,
                content: _url
            });
        }
        function sAlert(info) {
            var message = info;
            layer.alert(message, 8); //风格一，layer弹出层特效
        }
        function sAlertOut(info) {
            layer.alert(info, { closeBtn: 0
            }, function () {
                window.location.href = '../../default.aspx'; //刷新父页面
            });
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="content-header">
				<div class="btn-group">
				</div>
			</div>
	<div id="breadcrumb">
				<a href="#" title="Go to Home" class="tip-bottom"><i class="icon-home"></i>工作台</a>
				<a href="#" class="current">工作台设置</a>
	</div>
	<div class="container-fluid">
		    <div class="row-fluid">
			    <div class="span12">
				    <div class="widget-box">
					    <div class="widget-title">
						    <span class="icon">
							    <i class="icon-th-list"></i>
						    </span>
						    <h5>工作台设置</h5>
                             <div class="buttons">
								
							 </div>
                        </div>
					    <div class="widget-content">
                            <button type="button" style=" color:White; background:#00B7EE"  onclick=ShowDataHelp('Frm_OfficeSet.aspx?','','') class="btn"><i class="icon-plus-sign"></i>设置</button>
                            <table id="wew" class="table table-bordered table-striped table-hover">
                                <thead>
								    <tr>
									    <th style=" width:30px">序号</th>
									    <th>业务流程</th>
                                        <th>操作</th>
								    </tr>
							    </thead>
                                <tbody>
                                <%
                                    if (dtList != null && dtList.Rows.Count != 0)
                                    {
                                        for (int i = 0; i < dtList.Rows.Count; i++)
                                        {
                                    %>
                                <tr>    
                                    <td style=" width:30px"><%=i+1 %></td>
									<td ><%=dtList.Rows[i]["FullName"].ToString() %></td>
                                    <td>
                                        <% if (i !=0)
                                        {%>
                                            <button type="button" onclick="window.location.href='Frm_OfficeList.aspx?type=up&bname=<%=dtList.Rows[i]["BillName"].ToString() %>&sort=<%=dtList.Rows[i]["Sort"].ToString() %>&other=<%=dtList.Rows[i-1]["BillName"].ToString() %>'" class="btn btn-mini" >上移</button>
                                        <%} %>
                                         <% if (i != dtList.Rows.Count-1)
                                        {%>
                                            <button type="button" onclick="window.location.href='Frm_OfficeList.aspx?type=down&bname=<%=dtList.Rows[i]["BillName"].ToString() %>&sort=<%=dtList.Rows[i]["Sort"].ToString() %>&other=<%=dtList.Rows[i+1]["BillName"].ToString() %>'" class="btn btn-mini" >下移</button>
                                        <%} %>
                                        </td>
							    </tr>
                                    <%
                                        }
                                    }
                                        %>
                                </tbody>
					    </table>
                        
				    </div>
			    </div>
		    </div>
	    </div>
    </div>
</asp:Content>