This commit is contained in:
2023-03-29 11:01:39 +08:00
@@ -421,7 +421,7 @@ namespace Mvc.Controllers
} }
[HttpGet] [HttpGet]
public ResponseData<string> getDefaultCode(string projectId, string type) public ResponseData<string> getDefaultCode(string projectId, string type, string unitId)
{ {
ResponseData<string> res = new ResponseData<string>(); ResponseData<string> res = new ResponseData<string>();
res.successful = true; res.successful = true;
@@ -460,7 +460,18 @@ namespace Mvc.Controllers
res.resultValue = BLL.SQLHelper.RunProcNewId("SpGetNewCode5", "dbo.Check_SpotCheck", "DocCode", prefix); res.resultValue = BLL.SQLHelper.RunProcNewId("SpGetNewCode5", "dbo.Check_SpotCheck", "DocCode", prefix);
} }
break; break;
case "monthMeeting":
{
string prefix = BLL.ProjectService.GetProjectCodeByProjectId(projectId) + "-" + BLL.UnitService.GetUnitCodeByUnitId(unitId) + "-ZLYLH-";
res.resultValue = BLL.SQLHelper.RunProcNewId("SpGetThreeNumber", "Meeting_CQMSMeeting", "MeetingCode", projectId, prefix);
}
break;
case "specialMeeting":
{
string prefix = BLL.ProjectService.GetProjectCodeByProjectId(projectId) + "-" + BLL.UnitService.GetUnitCodeByUnitId(unitId) + "-ZLZTH-";
res.resultValue = BLL.SQLHelper.RunProcNewId("SpGetThreeNumber", "Meeting_CQMSMeeting", "MeetingCode", projectId, prefix);
}
break;
} }
return res; return res;
} }