Browse Source

调整库位信息

master
lilili 2 years ago
parent
commit
a108e73f03
  1. 10
      WMS-BS/NFine.Application/WMS/BasicSettingsApp.cs
  2. 12
      WMS-BS/NFine.Web/Areas/WMS/Views/BasicSettings/ICSStackWMSAdd.cshtml

10
WMS-BS/NFine.Application/WMS/BasicSettingsApp.cs

@ -2132,15 +2132,15 @@ UPDATE dbo.ICSContainer set ContainerID='{0}',ContainerCODE='{1}',ContainerName=
string Qu = dr["区域"].ToString().Trim().ToUpper(); string Qu = dr["区域"].ToString().Trim().ToUpper();
string Pai = dr["区"].ToString().Trim().ToUpper(); string Pai = dr["区"].ToString().Trim().ToUpper();
string Jia = dr["货架"].ToString().Trim().ToUpper(); string Jia = dr["货架"].ToString().Trim().ToUpper();
string Ceng = dr[""].ToString().Trim().ToUpper();
string Ge = dr[""].ToString().Trim().ToUpper();
string Ceng = dr[""].ToString().Trim().ToUpper();
string Ge = dr[""].ToString().Trim().ToUpper();
if (KuFang == "" || KuFang == null) if (KuFang == "" || KuFang == null)
{ {
throw new Exception("第 " + index + " 行库房编码不能为空!"); throw new Exception("第 " + index + " 行库房编码不能为空!");
} }
if (Qu == "" && Pai == "" && Jia == "" && Ceng == "" && Ge == "") if (Qu == "" && Pai == "" && Jia == "" && Ceng == "" && Ge == "")
{ {
throw new Exception("第 " + index + " 区、排、货架、层、格至少填写一项!");
throw new Exception("第 " + index + " 区域、区、货架、层、列至少填写一项!");
} }
string sqlWH = @"select ID from ICSWarehouse where WarehouseCode='{0}' and WorkPoint='{1}'"; string sqlWH = @"select ID from ICSWarehouse where WarehouseCode='{0}' and WorkPoint='{1}'";
sqlWH = string.Format(sqlWH, KuFang, WorkPoint); sqlWH = string.Format(sqlWH, KuFang, WorkPoint);
@ -2170,12 +2170,12 @@ UPDATE dbo.ICSContainer set ContainerID='{0}',ContainerCODE='{1}',ContainerName=
if (Ceng != "") if (Ceng != "")
{ {
StackCode += "-" + Ceng; StackCode += "-" + Ceng;
StackName += Ceng + "";
StackName += Ceng + "";
} }
if (Ge != "") if (Ge != "")
{ {
StackCode += "-" + Ge; StackCode += "-" + Ge;
StackName += Ge + "";
StackName += Ge + "";
} }
string sqls = @"select LocationCode from ICSLocation where LocationCode='{0}' and WorkPoint='{1}'"; string sqls = @"select LocationCode from ICSLocation where LocationCode='{0}' and WorkPoint='{1}'";
sqls = string.Format(sqls, StackCode, WorkPoint); sqls = string.Format(sqls, StackCode, WorkPoint);

12
WMS-BS/NFine.Web/Areas/WMS/Views/BasicSettings/ICSStackWMSAdd.cshtml

@ -187,11 +187,11 @@
} }
if (Ceng!="") { if (Ceng!="") {
StackCode += "-" + Ceng; StackCode += "-" + Ceng;
StackName += Ceng + "";
StackName += Ceng + "";
} }
if (Ge!="") { if (Ge!="") {
StackCode += "-" + Ge; StackCode += "-" + Ge;
StackName += Ge + "";
StackName += Ge + "";
} }
var objArr = { var objArr = {
ID:ID, ID:ID,
@ -257,11 +257,11 @@
</td> </td>
@*<td style="width:30px">-</td>*@ @*<td style="width:30px">-</td>*@
<td class="formValue"> <td class="formValue">
<input id="Ceng" name="Ceng" type="text" class="form-control required" style="width: 80px;" maxlength="10" placeholder="" />
<input id="Ceng" name="Ceng" type="text" class="form-control required" style="width: 80px;" maxlength="10" placeholder="" />
</td> </td>
@*<td style="width:30px">-</td>*@ @*<td style="width:30px">-</td>*@
<td class="formValue"> <td class="formValue">
<input id="Ge" name="Ge" type="text" class="form-control required" style="width: 80px;" maxlength="10" placeholder="" />
<input id="Ge" name="Ge" type="text" class="form-control required" style="width: 80px;" maxlength="10" placeholder="" />
</td> </td>
</tr> </tr>
<tr> <tr>
@ -276,10 +276,10 @@
<span>&nbsp;货架</span> <span>&nbsp;货架</span>
</td> </td>
<td class="formValue"> <td class="formValue">
<span>&nbsp;</span>
<span>&nbsp;</span>
</td> </td>
<td class="formValue"> <td class="formValue">
<span>&nbsp;</span>
<span>&nbsp;</span>
</td> </td>
</tr> </tr>
</table> </table>

Loading…
Cancel
Save