Exemplo n.º 1
0
        /// <summary>
        /// 获取类型一致的设备集合
        /// </summary>
        public CSMG[] SelectSMGsOfType(CSMG.EnmSMGType etype)
        {
            List <CSMG> smgs = new List <CSMG>();

            foreach (CSMG smg in SMGs)
            {
                if (smg.SMGType == etype)
                {
                    smgs.Add(smg);
                }
            }
            return(smgs.ToArray());
        }
Exemplo n.º 2
0
 public CTask(string fladrs, string tladrs, EnmTaskType etype, EnmTaskStatus estatus, string ICcode, int eqpID, CSMG.EnmSMGType eqpType, int dist, int hid)
     : this()
 {
     mefrAddrs = fladrs;
     metoAddrs = tladrs;
     meType    = etype;
     meStatus  = estatus;
     meICcode  = ICcode;
     meEqp     = eqpID;
     meSMGType = eqpType;
     meDist    = dist;
     meHid     = hid; //车厅ID
 }
Exemplo n.º 3
0
 //数据库检索用
 public CTask(int nID, int nDist, string nFrLct, string nToLct, EnmTaskType nType, EnmTaskStatus nStatus, string nICcode, int nHid, string nCarSize, int eqp, int SMGType)
     : this()
 {
     meID      = nID;
     meDist    = nDist;
     mefrAddrs = nFrLct;
     metoAddrs = nToLct;
     meType    = nType;
     meStatus  = nStatus;
     meICcode  = nICcode;
     meHid     = nHid;
     meCarSize = nCarSize;
     meEqp     = eqp;
     meSMGType = (CSMG.EnmSMGType)SMGType;
 }
Exemplo n.º 4
0
 public CTask(string fladrs, string tladrs, EnmTaskType etype, EnmTaskStatus estatus, string ICcode, int eqpID, CSMG.EnmSMGType eqpType, int dist, int hid, string carSize)
     : this(fladrs, tladrs, etype, estatus, ICcode, eqpID, eqpType, dist, hid)
 {
     meCarSize = carSize;
 }