更改 新建工单 流水号设置位置
This commit is contained in:
@@ -125,6 +125,7 @@ namespace ZR.Admin.WebApi.Controllers.MES.pro
|
|||||||
int data = 0;
|
int data = 0;
|
||||||
if (proWorkorder != null)
|
if (proWorkorder != null)
|
||||||
{
|
{
|
||||||
|
proWorkorder.Id = DateTime.Now.ToString("yyyyMMddHHmmss");
|
||||||
string workPlanId = proWorkorder.FkProPlanId;
|
string workPlanId = proWorkorder.FkProPlanId;
|
||||||
string workorderId = proWorkorder.Id;
|
string workorderId = proWorkorder.Id;
|
||||||
|
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ namespace ZR.Service.mes.pro
|
|||||||
|
|
||||||
public int AddWorkorder(ProWorkorder proWorkorder)
|
public int AddWorkorder(ProWorkorder proWorkorder)
|
||||||
{
|
{
|
||||||
proWorkorder.Id = DateTime.Now.ToString("yyyyMMddHHmmss");
|
|
||||||
return Context.Insertable(proWorkorder).ExecuteCommand();
|
return Context.Insertable(proWorkorder).ExecuteCommand();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user