|
@ -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); |
|
|