You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
137 lines
3.1 KiB
137 lines
3.1 KiB
4 years ago
|
//设置工厂主键
|
||
|
function setWerksID(data) {
|
||
|
if (data != null) {
|
||
|
document.getElementById("WERKSID").value = data.id;
|
||
|
}
|
||
|
else {
|
||
|
document.getElementById("WERKSID").value = "";
|
||
|
// document.getElementById("WERKSNAME").value = "";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
//设置仓库主键
|
||
|
function setCorpID(data) {
|
||
|
if (data != null) {
|
||
|
document.getElementById("CORPID").value = data.id;
|
||
|
}
|
||
|
else {
|
||
|
document.getElementById("CORPID").value = "";
|
||
|
|
||
|
// document.getElementById("CORPNAME").value = "";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
//设置仓库路线
|
||
|
function setCorpLineID(data) {
|
||
|
|
||
|
if (data != null) {
|
||
|
if (data.id == document.getElementById("CORPID").value) { return; }
|
||
|
document.getElementById("CORPID").value = data.id;
|
||
|
$("#divLine").load("/WorkStation/UpdateDivLine",
|
||
|
{ CORPID: data.id });
|
||
|
}
|
||
|
else {
|
||
|
if (document.getElementById("CORPID").value == "")
|
||
|
return;
|
||
|
document.getElementById("CORPID").value = "";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
//设置零件类别主键
|
||
|
function setMatSortID(data) {
|
||
|
if (data != null) {
|
||
|
document.getElementById("MATSORTID").value = data.id;
|
||
|
}
|
||
|
else {
|
||
|
document.getElementById("MATSORTID").value = "";
|
||
|
document.getElementById("SORTNAME").value = "";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
//设置路线主键
|
||
|
function setLineID(data) {
|
||
|
if (data != null) {
|
||
|
document.getElementById("LINEID").value = data.id;
|
||
|
}
|
||
|
else {
|
||
|
|
||
|
document.getElementById("LINEID").value = "";
|
||
|
// document.getElementById("LINENAME").value = "";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
//设置换包装台主键
|
||
|
function setCpackPlaceID(data) {
|
||
|
if (data != null) {
|
||
|
document.getElementById("CPACKPLACEID").value = data.id;
|
||
|
}
|
||
|
else {
|
||
|
document.getElementById("CPACKPLACEID").value = "";
|
||
|
document.getElementById("CPACKPLACENAME").value = "";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
//设置零件主键
|
||
|
function setMatNoID(data) {
|
||
|
|
||
|
if (data != null) {
|
||
|
document.getElementById("MATERIALID").value = data.id;
|
||
|
$("HidMat").value = '';
|
||
|
}
|
||
|
else {
|
||
|
document.getElementById("MATERIALID").value = "";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
//设置货位类型主键
|
||
|
function setcargotype(data) {
|
||
|
if (data != null) {
|
||
|
document.getElementById("CARGOTYPEID").value = data.id;
|
||
|
}
|
||
|
else {
|
||
|
document.getElementById("CARGOTYPEID").value = "";
|
||
|
}
|
||
|
|
||
|
}
|
||
|
//设置存储区域主键
|
||
|
function setarecode(data) {
|
||
|
if (data != null) {
|
||
|
document.getElementById("AREAID").value = data.id;
|
||
|
}
|
||
|
else {
|
||
|
document.getElementById("AREAID").value = "";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
function setBinId(data) {
|
||
|
if (data != null) {
|
||
|
|
||
|
document.getElementById("BINID").value = data.id;
|
||
|
|
||
|
} else {
|
||
|
document.getElementById("BINID").value = "";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
function setWorkStatId(data) {
|
||
|
if (data != null) {
|
||
|
document.getElementById("WORKSTATID").value = data.id;
|
||
|
} else {
|
||
|
document.getElementById("WORKSTATID").value = "";
|
||
|
}
|
||
|
}
|
||
|
function setRequestPlaceId(data) {
|
||
|
if (data != null) {
|
||
|
document.getElementById("RequestPlaceId").value = data.id;
|
||
|
} else {
|
||
|
document.getElementById("RequestPlaceId").value = "";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
|