焊接材料修改

This commit is contained in:
2025-02-18 17:38:49 +08:00
parent d8cd15555d
commit 96d8567515
18 changed files with 161 additions and 75 deletions
+17 -11
View File
@@ -273,16 +273,8 @@ namespace BLL
WarehouseMan = plan.WarehouseMan,
WarehouseDate = plan.WarehouseDate
};
if ((TwConst.TypeInt)plan.TypeInt!= TwConst.TypeInt.)
{
master.CusBillCode = GetCusBillCodeByTaskCode(plan.WeldTaskCode, (TwConst.TypeInt)plan.TypeInt,
(BLL.TwConst.Category)plan.Category);
}
else
{
master.CusBillCode= plan.CusBillCode.Replace("-AP", "");
}
master.CusBillCode = GetCusBillCode(plan.WeldTaskCode, (TwConst.TypeInt)plan.TypeInt,
(BLL.TwConst.Category)plan.Category, plan.CusBillCode);
Add(master);
//生成明细
foreach (var detail in detailLists)
@@ -338,7 +330,15 @@ namespace BLL
TwInOutplanmasterService.Update(plan);
}
public static string GetCusBillCodeByTaskCode(string taskCode, TwConst.TypeInt typeInt, TwConst.Category category)
/// <summary>
/// 获取入库单编号
/// </summary>
/// <param name="taskCode"></param>
/// <param name="typeInt"></param>
/// <param name="category"></param>
/// <returns></returns>
/// <param name="planCusBillCode"></param>
public static string GetCusBillCode(string taskCode, TwConst.TypeInt typeInt, TwConst.Category category, string planCusBillCode = "")
{
string cusBillCode = "";
switch (typeInt)
@@ -353,6 +353,12 @@ namespace BLL
cusBillCode = taskCode + "-GI-PF01-RE01";
}
break;
case TwConst.TypeInt.:
cusBillCode = planCusBillCode.Replace("-AP-", "-GI-");
break;
case TwConst.TypeInt.:
cusBillCode = planCusBillCode.Replace("-AP", ""); ;
break;
}
return cusBillCode;