示例#1
0
        public string GetNextCode()
        {
            string prefix = DbHelper.GetDateTime().ToString("yyyy-MM-dd") + "-";

            return(QcCode.GetNextNumber(prefix,
                                        QcTask.GetTask("任务编号 like '" + prefix + "%'"),
                                        11, 3, "000"
                                        ));
        }
示例#2
0
        public string GetNextCode()
        {
            string prefix = DbHelper.GetDateTime().ToString("yyyy-MM-dd") + "-";

            return(QcCode.GetNextNumber(prefix,
                                        QcProject.GetProjects("项目编号 like '" + prefix + "%'"),
                                        11, 2, "00"
                                        ));
        }
示例#3
0
        public string GetNextCode()
        {
            string prefix = DbHelper.GetDateTime().ToString("yyyy-MM-dd") + "-";

            return(QcCode.GetNextNumber(prefix,
                                        QcJob.GetJob("作业编号 like '" + prefix + "%'"),
                                        11, 4, "0000"
                                        ));
        }