public string GetNextCode() { string prefix = DbHelper.GetDateTime().ToString("yyyy-MM-dd") + "-"; return(QcCode.GetNextNumber(prefix, QcTask.GetTask("任务编号 like '" + prefix + "%'"), 11, 3, "000" )); }
public string GetNextCode() { string prefix = DbHelper.GetDateTime().ToString("yyyy-MM-dd") + "-"; return(QcCode.GetNextNumber(prefix, QcProject.GetProjects("项目编号 like '" + prefix + "%'"), 11, 2, "00" )); }
public string GetNextCode() { string prefix = DbHelper.GetDateTime().ToString("yyyy-MM-dd") + "-"; return(QcCode.GetNextNumber(prefix, QcJob.GetJob("作业编号 like '" + prefix + "%'"), 11, 4, "0000" )); }