Exemplo n.º 1
0
 public string GetNextCode()
 {
     return(QcCode.GetNextNumber("C",
                                 QcCompany.GetCompanys(),
                                 1, 6, "000000"
                                 ));
 }
Exemplo n.º 2
0
        public string GetNextCode()
        {
            string prefix = DbHelper.GetDateTime().ToString("yyyy-MM-dd") + "-";

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

            return(QcCode.GetNextNumber(prefix,
                                        QcTask.GetTask("任务编号 like '" + prefix + "%'"),
                                        11, 3, "000"
                                        ));
        }
Exemplo n.º 4
0
        public string GetNextCode()
        {
            string prestring = string.Format("{0}{1}{2}", DateTime.Now.Year, DateTime.Now.Month.ToString("00"), DateTime.Now.Day.ToString("00"));

            return(QcCode.GetNextNumber(prestring,
                                        QcDevice.GetDevices(string.Format("设备UID like '%{0}%'", prestring)),
                                        8, 3, "000"
                                        ));
        }
Exemplo n.º 5
0
        public string GetNextCode()
        {
            string prefix = DbHelper.GetDateTime().ToString("yyyy-MM-dd") + "-";

            return(QcCode.GetNextNumber(prefix,
                                        QcJob.GetJob("作业编号 like '" + prefix + "%'"),
                                        11, 4, "0000"
                                        ));
        }
Exemplo n.º 6
0
 /// <summary>
 ///  获取下一个可用的编码
 /// </summary>
 /// <returns></returns>
 static string GetNextCode()
 {
     return(QcCode.GetNextNumber(Users));
 }
Exemplo n.º 7
0
 static string GetNextCode()
 {
     //return QcCode.GetNextPartNumber(null, lstDepartment , 0);
     return(QcCode.GetNextNumber("", Departments, 0, 2, ""));
 }
Exemplo n.º 8
0
 public string GetNextPartCode()
 {
     return(QcCode.GetNextNumber(this, Nodes, 7, 3, "000"));
 }
Exemplo n.º 9
0
 static string GetNextCode()
 {
     return(QcCode.GetNextNumber(lstRoleEnums));
 }
Exemplo n.º 10
0
 static string GetNextCode()
 {
     return(QcCode.GetNextNumber(Permissions));
 }