예제 #1
0
 public QcEvaSubQaData(QcSubQuaelement sqe) : base(sqe.Name)
 {
     this.Sqe = sqe;
     double.TryParse(sqe["权值"], out 权值);
     this.计分方式 = sqe["计分方式"];
     this.分组   = sqe["分组"];
 }
예제 #2
0
        //public class 结果值枚举Converter : QcTypeConverter
        //{
        //    public static string[] 结果值枚举 = new string[] { "Y/N", "R:R0", "M;M0", "A?B?C?D?" };
        //    public 结果值枚举Converter() : base(结果值枚举) { }

        //}

        public QcCheckEntry  CloneTo(QcSubQuaelement Parent)
        {
            QcCheckEntry qce = new QcCheckEntry(Parent);

            qce["标准检查项编码"] = this["标准检查项编码"];
            qce.CloneFields(this);
            return(qce);
        }
예제 #3
0
        public QcSubQuaelement CloneTo(QcQuaelement Parent)
        {
            QcSubQuaelement qsq = new QcSubQuaelement(Parent);

            qsq.CloneFields(this);
            Nodes.ForEach(sq => qsq.Nodes.Add(sq.CloneTo(qsq)));
            return(qsq);
        }
예제 #4
0
        public static List <QcCheckEntry> GetCheckEntry(QcSubQuaelement SubQuaelement)
        {
            var pls = DbHelper.Query("Select * from QC_EVA_CHECKENTRY where 质量子元素编码='" + SubQuaelement.Code + "'");

            return((from p in pls select new QcCheckEntry(p)
            {
                Parent = SubQuaelement
            }).ToList());
        }
예제 #5
0
 public QcCheckEntry(QcSubQuaelement parent) : base(null, TableName)
 {
     Parent = parent;
 }