<%@ Page Title="" Language="C#" MasterPageFile="~/BackStage/SiteMaster.Master" AutoEventWireup="true" CodeBehind="Frm_DelarsUseSet.aspx.cs" Inherits="AndroidSevice.Web.JXS.Frm_DelarsUseSet" %>
<%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
        function ShowDataHelp(_url, _title, _handler) {
            var wid = '1100px';
            var hid = '700px';
            if (_title == '1') {
                wid = '80%';
                hid = '85%';
            } else if (_title == '2') {
                wid = '1100px';
                hid = '600px';
            }
            else if (_title == '3') {
                wid = '800px';
                hid = '600px';
            }
            else if (_title == '4') {
                wid = '800px';
                hid = '600px';
            }
            else if (_title == '5') {
                wid = '800px';
                hid = '600px';
            }
            layer.open({
                type: 2,

                area: [wid, hid],
                fix: false, //不固定
                maxmin: true,
                content: _url,
                end: function () {
                    location.reload();
                }
            });
        }
        function sAlert(info) {
            var message = info;
            layer.alert(message, 8); //风格一，layer弹出层特效
        }
        function sAlerts(info, reltype) {
            var message = info;
            var realtype = reltype
            layer.alert(message, 8); //风格一，layer弹出层特效
            if (realtype == 'true') {
                parent.location.reload(); //刷新父页面
            }
        }
        function sAlertok(info) {
            layer.alert(info, { closeBtn: 0
            }, function () {
                parent.location.reload(); //刷新父页面
            });
        }
        function sAlertOut(info) {
            layer.alert(info, { closeBtn: 0
            }, function () {
                window.location.href = '../../default.aspx'; //刷新父页面
            });
        }
    </script>
    <style type="text/css">
        .style1
        {
            width: 61px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="content-header">
    <!--可做顶部导航-->
			</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">
									<button type="button"  name="sub" value="add" onclick=ShowDataHelp('Frm_CustomerData.aspx?','3','') class="btn btn-mini" ><i class="icon-plus-sign"></i>设置用户</button>
                                    <button type="button"  name="sub" value="add" onclick=ShowDataHelp('Frm_UserEdit.aspx?','3','') class="btn btn-mini" ><i class="icon-plus-sign"></i>设置经手人</button>
                                    <button type="button"  name="sub" value="add" onclick=ShowDataHelp('Frm_ZDRUserEdit.aspx?','3','') class="btn btn-mini" ><i class="icon-plus-sign"></i>设置制单人</button>
								</div>
							</div>
							<div class="widget-content">
                             <table id="wew" class="table table-bordered table-striped table-hover">
                                    <thead>
										<tr>
                                            <th style=" width:20px">序号</th>
											<th>登录编号</th>
											<th>登录人员</th>
                                            <th >经手人</th>
											<th >对应制单人</th>
                                            <th >往来单位</th>
                                            <th>启/停用</th>
                                            <th>在线验证</th>
                                            <th>密码</th>
											<th>备注</th>
                                            <th>修改</th>
                                            <th>权限</th>
                                            <% if (_isUserPower=="true")
                                               {%>
                                            <th>信息授权</th>
                                            <%}%>
                                            <th>复制权限</th>
                                            <th>删除</th>
										</tr>
									</thead>
                                    <tbody>
                                    <%if (list != null)
                                      {
                                          for (int i = 0; i < list.Count; i++)
                                          {%>
                                    <tr>
                                            <td style=" width:20px"><%=i+1%></td>
											<td><%=list[i].Loginid%></td>
                                            <td><%=list[i].LoginName%></td>
                                            <td ><%=list[i].Loginusername%></td>
                                            <td ><%=list[i].FullName%></td>
                                             <td ><%=list[i].Btypename%></td>
                                            <td><a href="Frm_DelarsUseSet.aspx?sub=istop&loginid=<%=list[i].Loginid%>"><%=list[i].IsStop == "0" ? "√" : "×"%></a></td>
                                            <td><a href="Frm_DelarsUseSet.aspx?sub=islogin&loginid=<%=list[i].Loginid%>"><%=list[i].LoginSet == "0" ? "√" : "×"%></a></td>
                                             <td ><%=list[i].PassWord == "" ? "" : "******"%></td>
                                            <td><%=list[i].Comment%></td>
                                            <td><button type="button" <%=list[i].SysType %> onclick="ShowDataHelp('Frm_AddDelarsUseSet.aspx?loginid=<%=list[i].Loginid%>','3','')" class="btn"><i class="icon-edit"></i>修改</button></td>
                                            <td><button type="button" onclick="ShowDataHelp('Frm_SetLimit.aspx?subh=other&loginid=<%=list[i].Loginid%>','2','')" class="btn"><i class="icon-user"></i>设置</button></td>
                                            
                                           <% if (_isUserPower == "true")
                                              {%>
                                            <td><button type="button" onclick="ShowDataHelp('Frm_Powers.aspx?loginid=<%=list[i].Loginid%>&pages=prhit','4','')" class="btn"><i class="icon-check"></i>设置</button></td>
                                            <%} %>
                                            <td><button type="button" onclick="ShowDataHelp('Frm_CopyLimit.aspx?subh=other&loginid=<%=list[i].Loginid%>&loginname=<%=list[i].LoginName %>','5','')" class="btn"><i class="icon-file"></i>复制权限</button></td>
                                                
                                            <td><a ><button type="button" onclick="javaScript:if(confirm('您确定要删除吗？')) window.location.href='Frm_DelarsUseSet.aspx?sub=del&loginid=<%=list[i].Loginid %>&num=<%=list[i].Num %>'" class="btn"><i class="icon-trash"></i>删除</button></a></td>
										</tr>
                                        <%
                                          }
                                      }
                                         %>
                                    </tbody>
							</table>
                            <div class="pager">
                            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" FirstPageText="首页" LastPageText="尾页" PrevPageText="上一页" NextPageText="下一页" 
                            onpagechanging="AspNetPager1_PageChanging"
                            PageSize="20" AlwaysShow="True" />
                            </div>
							</div>
						</div>
					</div>
				</div>
			</div>
</asp:Content>
