Ejemplo n.º 1
0
 protected void InitFields(DataRow rowInfo)
 {
     this.Id                = TengDa._Convert.StrToInt(rowInfo["Id"].ToString(), -1);
     this.getPutType        = (GetPutType)Enum.Parse(typeof(GetPutType), rowInfo["GetPutType"].ToString());
     this.clampStatus       = (ClampStatus)Enum.Parse(typeof(ClampStatus), rowInfo["ClampStatus"].ToString());
     this.clampOri          = (ClampOri)Enum.Parse(typeof(ClampOri), rowInfo["ClampOri"].ToString());
     this.clampId           = TengDa._Convert.StrToInt(rowInfo["ClampId"].ToString(), -1);
     this.getPutTime        = DateTime.Parse(rowInfo["GetPutTime"].ToString());
     this.priority          = TengDa._Convert.StrToInt(rowInfo["Priority"].ToString(), 1);
     this.name              = rowInfo["Name"].ToString();
     this.company           = rowInfo["Company"].ToString();
     this.model             = rowInfo["Model"].ToString();
     this.number            = rowInfo["Number"].ToString();
     this.location          = rowInfo["Location"].ToString();
     this.isEnable          = Convert.ToBoolean(rowInfo["IsEnable"]);
     this.rgvValue          = rowInfo["RgvValue"].ToString();
     this.rgvGetFeederValue = rowInfo["RgvGetFeederValue"].ToString();
     this.rgvPutFeederValue = rowInfo["RgvPutFeederValue"].ToString();
     this.floorStatus       = (FloorStatus)Enum.Parse(typeof(FloorStatus), rowInfo["FloorStatus"].ToString());
     this.sampleStatus      = (SampleStatus)Enum.Parse(typeof(SampleStatus), rowInfo["SampleStatus"].ToString());
     this.PreFloorStatus    = this.floorStatus;
     this.fromStationId     = TengDa._Convert.StrToInt(rowInfo["FromStationId"].ToString(), -1);
     //for (int i = 0; i < Option.TemperaturePointCount + 1; i++)
     //{
     //    this.sampledDatas[i] = new List<float>();
     //}
 }
 /// <summary>
 /// Process the upcoming direction, return true if succeeded, otherwise false
 /// </summary>
 /// <param name="direction"></param>
 /// <returns></returns>
 public bool ProcessRequest(Direction direction)
 {
     if ((direction & requestableDirection) == Direction.None)
     {
         return(false);
     }
     status = ConvertDirectionToFloorStatus(direction) | status;
     return(true);
 }
Ejemplo n.º 3
0
 private void UpdateField(string[] fieldValues, int index, FloorStatus floorStatus)
 {
     FieldsVM.ElementAt(index).BackgroundPath     = fieldValues[0];
     FieldsVM.ElementAt(index).SkillCastingPath   = fieldValues[1];
     FieldsVM.ElementAt(index).SkillExecutingPath = fieldValues[2];
     FieldsVM.ElementAt(index).PawnImagePath      = fieldValues[3];
     FieldsVM.ElementAt(index).PawnHP             = fieldValues[4];
     FieldsVM.ElementAt(index).PawnManna          = fieldValues[5];
     FieldsVM.ElementAt(index).InfoToolTip        = fieldValues[6];
     FieldsVM.ElementAt(index).FloorStatus        = floorStatus;
 }
Ejemplo n.º 4
0
        /// <summary>
        /// 获取该烤箱下某种炉层状态的工位个数
        /// </summary>
        /// <param name="floorStatus"></param>
        /// <returns></returns>
        public int GetCount(FloorStatus floorStatus)
        {
            int count = 0;

            this.Floors.ForEach(f => f.Stations.ForEach(s =>
            {
                if (s.FloorStatus == floorStatus)
                {
                    count++;
                }
            }));
            return(count);
        }
 public FloorData(uint level)
 {
     this.level           = level;
     status               = FloorStatus.Waiting;
     requestableDirection = Direction.Both;
     if (IsTopFloor())
     {
         requestableDirection = Direction.Down;
     }
     if (IsBottomFloor())
     {
         requestableDirection = Direction.Up;
     }
 }
 public void OnElevatorArrived(Direction direction)
 {
     if (status == FloorStatus.RequestingUpAndDown)
     {
         status = status ^ ConvertDirectionToFloorStatus(direction);
     }
     //else if (status == ConvertDirectionToFloorStatus(direction))
     //{
     //    status = FloorStatus.Waiting;
     //}
     else
     {
         status = FloorStatus.Waiting;
     }
 }
 private void StartService()
 {
     LogManager.WriteLog("Inside StartService method", LogManager.enumLogLevel.Info);
     System.Threading.Thread.Sleep(4000);
     LogManager.WriteLog("DialupService" + "---" + "Resetting the under process records.", LogManager.enumLogLevel.Info);
     _bmcExchangeImportExport.ResetExportHistory();
     LogManager.WriteLog("DialupService" + "---" + "Service started to pick records from EH.", LogManager.enumLogLevel.Info);
     _bmcExchangeImportExport.ExportDataToEnterprise();
     _bmcExchangeImportExport.ImportDataToExchange();
     _floorStatus   = FloorStatus.GetInstance();
     _vaultMessages = new VaultMessageServiceHandle();
     _vaultMessages.Init();
     _vaultMessages.DoWork();
     LogManager.WriteLog("Service Started Successfully.", LogManager.enumLogLevel.Info);
 }
Ejemplo n.º 8
0
        protected void InitFields(DataRow rowInfo)
        {
            this.Id             = TengDa._Convert.StrToInt(rowInfo["Id"].ToString(), -1);
            this.name           = rowInfo["Name"].ToString();
            this.clampIds       = rowInfo["ClampIds"].ToString();
            this.company        = rowInfo["Company"].ToString();
            this.model          = rowInfo["Model"].ToString();
            this.number         = rowInfo["Number"].ToString();
            this.curveIndexs    = rowInfo["CurveIndexs"].ToString();
            this.floorstatus    = (FloorStatus)Enum.Parse(typeof(FloorStatus), rowInfo["FloorStatus"].ToString());
            this.PreFloorStatus = this.floorstatus;

            for (int k = 0; k < Option.TemperaturePointCount; k++)
            {
                this.sampledDatas[k] = new List <float>();
            }
        }
Ejemplo n.º 9
0
 protected void InitFields(DataRow rowInfo)
 {
     this.Id             = TengDa._Convert.StrToInt(rowInfo["Id"].ToString(), -1);
     this.getPutType     = (GetPutType)Enum.Parse(typeof(GetPutType), rowInfo["GetPutType"].ToString());
     this.clampStatus    = (ClampStatus)Enum.Parse(typeof(ClampStatus), rowInfo["ClampStatus"].ToString());
     this.clampOri       = (ClampOri)Enum.Parse(typeof(ClampOri), rowInfo["ClampOri"].ToString());
     this.clampId        = TengDa._Convert.StrToInt(rowInfo["ClampId"].ToString(), -1);
     this.getPutTime     = DateTime.Parse(rowInfo["GetPutTime"].ToString());
     this.priority       = TengDa._Convert.StrToInt(rowInfo["Priority"].ToString(), 1);
     this.name           = rowInfo["Name"].ToString();
     this.company        = rowInfo["Company"].ToString();
     this.model          = rowInfo["Model"].ToString();
     this.number         = rowInfo["Number"].ToString();
     this.location       = rowInfo["Location"].ToString();
     this.isEnable       = Convert.ToBoolean(rowInfo["IsEnable"]);
     this.robotValues    = rowInfo["RobotValues"].ToString();
     this.floorStatus    = (FloorStatus)Enum.Parse(typeof(FloorStatus), rowInfo["FloorStatus"].ToString());
     this.sampleStatus   = (SampleStatus)Enum.Parse(typeof(SampleStatus), rowInfo["SampleStatus"].ToString());
     this.PreFloorStatus = this.floorStatus;
     this.fromStationId  = TengDa._Convert.StrToInt(rowInfo["FromStationId"].ToString(), -1);
 }
Ejemplo n.º 10
0
 public Floor()
 {
     Queue  = new List <Passenger>();
     Status = FloorStatus.NO_PRESSED;
 }
Ejemplo n.º 11
0
 public Field(Pawn pawnOnField = null, FloorType floor = FloorType.Base, FloorStatus floorStatus = FloorStatus.Normal) // default field without bonuses
 {
     PawnOnField = pawnOnField;
     Floor       = floor;
     FloorStatus = floorStatus;
 }