<%@ Page Language="c#" CodeBehind="UserEdit.aspx.cs" AutoEventWireup="false" Inherits="LVS.Web.UserEdit" %>
<%@ Register TagPrefix="uc1" TagName="EditComToolbar" Src="~/Common/EditComToolbar.ascx" %>
<%@ Register TagPrefix="uc1" TagName="PageCom" Src="~/Common/PageCom.ascx" %>
<%@ Register TagPrefix="uc1" TagName="EditGridTop" Src="~/Common/EditGridTop.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<uc1:PageCom ID="PageCom1" Title="员工信息" runat="server"></uc1:PageCom>
<script src="../../../SourceFiles/JS/kindeditor/kindeditor.js" type="text/javascript"></script>
<script src="../../../SourceFiles/JS/kindeditor/lang/zh_CN.js" type="text/javascript"></script>
<script language="javascript">
var Edit_PageName = "UserEdit";
var TableName = "LVS_CORE_UserLineProcess"; //要删除数据时的表名
var __subGrid = "maingrid";
var gridManager;
var strjon = [{ text: '编程工单扫描', id: '编程工单扫描' },
{ text: '组装工单扫描', id: '组装工单扫描' },
{ text: 'LOP工单扫描', id: 'LOP工单扫描' },
{ text: '控制柜工单', id: '控制柜工单' },
{ text: '小部件(检修盒)', id: '小部件(检修盒)' },
{ text: '线缆', id: '线缆' },
{ text: '装箱检测扫描', id: '装箱检测扫描' },
{ text: '实物入库扫描', id: '实物入库扫描' },
{ text: '实物发运扫描', id: '实物发运扫描' },
{ text: '配料出库扫描', id: '配料出库扫描' },
{ text: '生产异常扫描', id: '生产异常扫描' },
{ text: '采购入库扫描', id: '采购入库扫描'}];
function getCompanyID() {
return $("#CompanysID").val();
}
function beforeDialog() {
if ($("#CompanysID").val() == "") {
alert('请先选择公司');
return false;
}
}
function onAfterSaved(saveType) {
if (saveType == "add")
btnAdd_Click();
else {
CloseDialog();
}
}
function aler() {
alert(2);
}
//加载grid数据
function OnSubListLoad() {
var grid = $("#maingrid");
manager = grid.ligerGrid({
columns: [
{ display: '产线', name: 'ProductionLine', width: fixWidth(grid, 0.3), align: 'center' },
{ display: '产线代码', name: 'ProductionLineCode', width: fixWidth(grid, 0.2), align: 'center' },
{ display: '工序', name: 'Process', width: fixWidth(grid, 0.3), align: 'center' },
{ display: '工序代码', name: 'ProcessCode', width: fixWidth(grid, 0.2), align: 'left' }
],
url: 'UserEdit.aspx?Type=BindGrid',
pageSize: [15],
frozen: false,
checkbox: true,
allowHideColumn: true,
rownumbers: false,
width: '100%',
height: 200,
fixedCellHeight: false,
usePager: true,
parms: [{ name: 'strParams', value: "&QUERY_I_MastPKID=" + $("#PKID").val()}]
});
gridManager = grid.ligerGetGridManager();
$("#pageloading").hide();
}
//、、BarRoleText
</script>
</head>
<body>
<form id="form1" method="post" runat="server">
<%-- // <input type="hidden" id="BarRoleText" name="BarRoleText" />--%>
<div class="panelBar" id="topBar">
<uc1:EditComToolbar ID="Toolbar1" runat="server" />
</div>
<div id="mainDiv" style="margin: 0; padding: 0; vertical-align: top; height: 400px;
overflow-y: auto; overflow-x: hidden;">
<fieldset style="padding-top: 5" id="Fieldset1">
<legend>用户信息</legend>
<table id="TABLE1" class="EditForm" align="center" border="0">
<tr>
<td align="RIGHT" width="15%">
员工编号:
</td>
<td width="35%">
<input type="text" id="Code" name="Code" valid="null" />
</td>
<td align="RIGHT" width="15%">
员工状态:
</td>
<td width="35%">
<select id="UserStatus" name="UserStatus" ltype="select" valid="null">
<option value="有效" selected>有效</option>
<option value="无效">无效</option>
</select>
</td>
</tr>
<tr>
<td align="RIGHT" width="15%">
所属公司:
</td>
<td nowrap width="35%">
<input type="text" id="CompanysID_Text" name="CompanysID_Text" style="margin-right: -40px;"
readonly valid="null">
<span style="text-align: left; padding: 0; width: 36px;"><a href="javascript:RemoveInputValue('CompanysID_Text','CompanysID');"
class="SelectRemoveButton" title="清除数据"> </a> <a href="javascript:void(0)"
class="SelectOpenButton" title="公司列表" onclick='openWin("../../SelectPage/CompanysSelect.aspx","380","400","公司列表","[{CompanysID_Text:"CName",CompanysID:"PKID"}]","")'>
</a> </span>
<input type="hidden" id="CompanysID" name="CompanysID">
</td>
<td align="RIGHT" width="15%">
<label id="RES_DEPTSID">
所属部门:</label>
</td>
<td width="35%" nowrap>
<input type="text" id="DeptsID_Text" name="DeptsID_Text" style="margin-right: -40px;"
readonly>
<span style="text-align: left; padding: 0; width: 36px;"><a href="javascript:RemoveInputValue('DeptsID_Text','DeptsID');"
class="SelectRemoveButton" title="清除数据"> </a> <a href="javascript:void(0)"
class="SelectOpenButton" title="部门列表" onclick='openWin("../../SelectPage/DepartmentSelect.aspx","300","400","部门列表","[{DeptsID_Text:"CName",DeptsID:"PKID"}]","","beforeDialog()")'>
</a> </span>
<input type="hidden" id="DeptsID" name="DeptsID">
</td>
</tr>
<tr>
<td align="RIGHT" width="15%">
职务:
</td>
<td nowrap width="35%">
<input type="text" id="PositionName" name="PositionName" style="margin-right: -40px;"
readonly valid="null">
<span style="text-align: left; padding: 0; width: 36px;"><a href="javascript:RemoveInputValue('PositionName','PositionID');"
class="SelectRemoveButton" title="清除数据"> </a> <a href="javascript:void(0)"
class="SelectOpenButton" title="职务列表" onclick='openWin("../../SelectPage/PositionSelect.aspx","380","400","职务列表","[{PositionName:"CName",PositionID:"PKID"}]","")'>
</a> </span>
<input type="hidden" id="PositionID" name="PositionID">
</td>
<td align="RIGHT" width="15%">
部门负责人:
</td>
<td nowrap width="35%">
<select id="IsResponsibilityPerson" name="IsResponsibilityPerson">
<option value="0">否</option>
<option value="1">是</option>
</select>
</td>
</tr>
<tr>
<td align="RIGHT" width="15%">
登录名称:
</td>
<td width="35%">
<input type="text" id="LoginName" name="LoginName" valid="null">
</td>
<td align="RIGHT" width="15%">
中文姓名:
</td>
<td width="35%">
<input type="text" id="CName" name="CName" valid="null">
</td>
</tr>
<tr>
<td align="RIGHT" width="15%">
密码:
</td>
<td width="35%">
<input id="LoginPwd" name="LoginPwd" type="password" />
</td>
<td align="RIGHT" width="15%">
英文姓名:
</td>
<td width="35%">
<input type="text" id="EName" name="EName">
</td>
</tr>
<tr>
<td align="RIGHT" width="15%">
扫描枪密码:
</td>
<td width="35%">
<input type="text" id="BarPwd" name="BarPwd" type="password">
</td>
<td align="RIGHT" width="15%">
职责权限:
</td>
<td width="35%">
<input type="text" id="Undefined1" name="Undefined1" >
</td>
</tr>
<tr>
<td align="right" width="15%">
员工性别:
</td>
<td width="35%">
<select id="Sex" type="text" name="Sex">
<option value="男">男</option>
<option value="女">女</option>
</select>
</td>
<td align="right" width="15%">
邮箱:
</td>
<td width="35%">
<input type="text" id="EMail" name="EMail">
</td>
</tr>
<tr>
<td align="RIGHT" width="15%">
固话:
</td>
<td width="35%">
<input id="Tel" name="Tel" type="text">
</td>
<td align="RIGHT" width="15%">
手机:
</td>
<td width="35%">
<input type="text" id="Mobile" name="Mobile">
</td>
</tr>
<tr>
<td align="right" width="15%">
<label id="Label1">
是否域用户:</label>
</td>
<td width="35%">
<select id="IsAd" type="text" name="IsAd" disabled>
<option value="否">否</option>
<option value="是">是</option>
</select>
</td>
<td align="RIGHT" width="15%">
入职日期:
</td>
<td width="35%">
<input type="text" id="TryLoginTime" name="TryLoginTime" datetype="3" style="border: 0"
unsize>
</td>
</tr>
</table>
</fieldset>
</div>
</form>
</body>
</html>