Merge branch 'master' of https://gitee.com/frane-yang/SGGL_SeDin_New
This commit is contained in:
commit
0d9136361b
|
|
@ -421,7 +421,7 @@ namespace Mvc.Controllers
|
|||
}
|
||||
|
||||
[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>();
|
||||
res.successful = true;
|
||||
|
|
@ -460,7 +460,18 @@ namespace Mvc.Controllers
|
|||
res.resultValue = BLL.SQLHelper.RunProcNewId("SpGetNewCode5", "dbo.Check_SpotCheck", "DocCode", prefix);
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue