bug
This commit is contained in:
@@ -115,9 +115,18 @@ namespace Tnb.EquipMgr
|
||||
}
|
||||
private async Task<dynamic> Create(VisualDevModelDataCrInput input)
|
||||
{
|
||||
string Code = await _billRuleService.GetBillNumber("moldRequisition");
|
||||
string moldId = input.data[nameof(ToolMoldRequisition.mold_id)].ToString();
|
||||
ToolMolds toolMolds = await _db.Queryable<ToolMolds>()
|
||||
.SingleAsync(x => x.id == moldId);
|
||||
|
||||
if (toolMolds.mold_status == Tnb.BasicData.DictConst.SCTypeId)
|
||||
{
|
||||
throw Oops.Bah("模具不在库,不可领用");
|
||||
}
|
||||
|
||||
DbResult<bool> result = await _db.Ado.UseTranAsync(async () =>
|
||||
{
|
||||
string Code = await _billRuleService.GetBillNumber("moldRequisition");
|
||||
ToolMoldRequisition toolMoldRequisition = new ToolMoldRequisition();
|
||||
toolMoldRequisition.code = Code;
|
||||
toolMoldRequisition.mold_id= input.data[nameof(ToolMoldRequisition.mold_id)].ToString();
|
||||
|
||||
Reference in New Issue
Block a user