焊接材料修改
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user