示例#1
0
        /// <summary>
        /// 复制
        /// </summary>
        /// <returns></returns>
        public CStatTest Clone()
        {
            CStatTest hub = new CStatTest(this._idNo, this._name, this.FlowId, this.FlowName, this._slotMax);

            hub._idNo = this._idNo;

            hub._name = this._name;

            hub._slotMax = this._slotMax;

            hub.FlowId = this.FlowId;

            hub.FlowName = this.FlowName;

            hub.IdCard = this.IdCard;

            hub.ModelName = this.ModelName;

            hub.MesFlag = this.MesFlag;

            hub.IsNull = this.IsNull;

            hub.StartTime = this.StartTime;

            hub.EndTime = this.EndTime;

            hub.TTNum = this.TTNum;

            hub.FailNum = this.FailNum;

            hub.ChkFail = this.ChkFail;

            for (int i = 0; i < _slotMax; i++)
            {
                hub.SerialNo[i]   = this.SerialNo[i];
                hub.ResultName[i] = this.ResultName[i];
                hub.ResultId[i]   = this.ResultId[i];
                hub.Result[i]     = this.Result[i];
                hub.Value[i]      = this.Value[i];
                hub.TranOK[i]     = this.TranOK[i];
            }

            return(hub);
        }
示例#2
0
        public CStat(int idNo, string hubName, string testName, int flowId, string flowName, int slotMax)
        {
            hub = new CStatHub(idNo, hubName, flowId, flowName, slotMax);

            test = new CStatTest(idNo, testName, flowId, flowName, slotMax);
        }