Exemple #1
0
        /// <summary>
        /// 复制
        /// </summary>
        /// <returns></returns>
        public CStatHub Clone()
        {
            CStatHub hub = new CStatHub(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.IdCardAddr = this.IdCardAddr;

            hub.DoRun = this.DoRun;

            hub.Alarm = this.Alarm;

            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;

            for (int i = 0; i < _slotMax; i++)
            {
                hub.SnEnable[i]   = this.SnEnable[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.TranOK[i]     = this.TranOK[i];
            }

            return(hub);
        }
Exemple #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);
        }