工单操作
This commit is contained in:
@@ -21,5 +21,11 @@ namespace ZR.Service.mes.pro.IService
|
||||
public int DeleteWorkPlan(string id);
|
||||
|
||||
public List<ProWorkorder> GetWorkorderList(string id);
|
||||
|
||||
public int AddWorkorder(ProWorkorder proWorkorder);
|
||||
|
||||
public int UpdateWorkorder(ProWorkorder proWorkorder);
|
||||
|
||||
public int DeleteWorkorder(string id);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,5 +54,21 @@ namespace ZR.Service.mes.pro
|
||||
{
|
||||
return Context.Queryable<ProWorkorder>().Where(it => it.FkProPlanId == id).ToList();
|
||||
}
|
||||
|
||||
public int AddWorkorder(ProWorkorder proWorkorder)
|
||||
{
|
||||
proWorkorder.Id = DateTime.Now.ToString("yyyyMMddHHmmss");
|
||||
return Context.Insertable(proWorkorder).ExecuteCommand();
|
||||
}
|
||||
|
||||
public int UpdateWorkorder(ProWorkorder proWorkorder)
|
||||
{
|
||||
return Context.Updateable(proWorkorder).ExecuteCommand();
|
||||
}
|
||||
|
||||
public int DeleteWorkorder(string id)
|
||||
{
|
||||
return Context.Deleteable<ProWorkorder>().In(id).ExecuteCommand();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user