修改返修单不能删除的问题
This commit is contained in:
parent
fb65157cf1
commit
b64626eadc
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -789,26 +789,29 @@ namespace BLL
|
||||||
{
|
{
|
||||||
newJointInfo.RT3_RepairFilmNum = newJointInfo.RT3_RepairFilmNum - 1;
|
newJointInfo.RT3_RepairFilmNum = newJointInfo.RT3_RepairFilmNum - 1;
|
||||||
}
|
}
|
||||||
string[] strs = newJointInfo.RT3_RepairFilm.Split(',');
|
if (!string.IsNullOrEmpty(newJointInfo.RT3_RepairFilm))
|
||||||
if (strs.Length == 1)
|
|
||||||
{
|
{
|
||||||
newJointInfo.RT3_RepairFilm = null;
|
string[] strs = newJointInfo.RT3_RepairFilm.Split(',');
|
||||||
}
|
if (strs.Length == 1)
|
||||||
else
|
|
||||||
{
|
|
||||||
string str = string.Empty;
|
|
||||||
foreach (var item in strs)
|
|
||||||
{
|
{
|
||||||
if (item != filmNum)
|
newJointInfo.RT3_RepairFilm = null;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
string str = string.Empty;
|
||||||
|
foreach (var item in strs)
|
||||||
{
|
{
|
||||||
str += item + ",";
|
if (item != filmNum)
|
||||||
|
{
|
||||||
|
str += item + ",";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
if (!string.IsNullOrEmpty(str))
|
||||||
|
{
|
||||||
|
str = str.Substring(0, str.LastIndexOf(","));
|
||||||
|
}
|
||||||
|
newJointInfo.RT3_RepairFilm = str;
|
||||||
}
|
}
|
||||||
if (!string.IsNullOrEmpty(str))
|
|
||||||
{
|
|
||||||
str = str.Substring(0, str.LastIndexOf(","));
|
|
||||||
}
|
|
||||||
newJointInfo.RT3_RepairFilm = str;
|
|
||||||
}
|
}
|
||||||
newJointInfo.HardResultDate = DateTime.Now;
|
newJointInfo.HardResultDate = DateTime.Now;
|
||||||
db.SubmitChanges();
|
db.SubmitChanges();
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<FineUIPro DebugMode="false" Theme="Cupertino"/>
|
<FineUIPro DebugMode="false" Theme="Cupertino"/>
|
||||||
<appSettings>
|
<appSettings>
|
||||||
<!--连接字符串-->
|
<!--连接字符串-->
|
||||||
<add key="ConnectionString" value="Server=.\SQL2019;Database=HJGLDB_DS;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Max Pool Size = 1000;Connect Timeout=1200"/>
|
<add key="ConnectionString" value="Server=.\MSSQLSERVER01;Database=HJGLDB_DS;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Max Pool Size = 1000;Connect Timeout=1200"/>
|
||||||
<!--系统名称-->
|
<!--系统名称-->
|
||||||
<add key="SystemName" value="诺必达焊接管理系统"/>
|
<add key="SystemName" value="诺必达焊接管理系统"/>
|
||||||
<add key="ChartImageHandler" value="storage=file;timeout=20;url=~/Images/;"/>
|
<add key="ChartImageHandler" value="storage=file;timeout=20;url=~/Images/;"/>
|
||||||
|
|
Loading…
Reference in New Issue