예제 #1
0
 public string GetNextCode()
 {
     return(QcCode.GetNextNumber("C",
                                 QcCompany.GetCompanys(),
                                 1, 6, "000000"
                                 ));
 }
예제 #2
0
        public override QcCheckResult Check(string field = null)
        {
            QcCheckResult result   = new QcCheckResult(this);
            bool          checkall = (field == null);

            result.AddCheckNull(field, new[] { "单位名称", "通讯地址", "等级", "类型", "行政隶属", "联系电话" });
            result.AddCheckUsed(field, QcCompany.GetCompanys(), new[] { "单位名称" }, (IsNew() ? 0 : 1));
            result.AddCheckEnum(field, "等级", QcCompanyDescriptor.资质等级s);
            result.AddCheckEnum(field, "类型", QcCompanyDescriptor.类型s);

            if (result.Count > 0)
            {
                return(result);
            }
            return(null);
        }