Esempio n. 1
0
        public MoveIn_Result MoveOut(string Station, string Serial, bool pass, string Notes)
        {
            MoveIn_Result Result_Send = new MoveIn_Result();

            Result_Send.Response = true;
            Result_Send.Error    = "";
            MES_HAI.Entity.Enums.Results SerialResult = new MES_HAI.Entity.Enums.Results();
            MES_HAI.Entity.Measure[]     Results      = new MES_HAI.Entity.Measure[1];
            MES_HAI.Entity.Measure       Result       = new MES_HAI.Entity.Measure();

            if (pass)
            {
                SerialResult        = MES_HAI.Entity.Enums.Results.Pass;
                Result.MeasureValue = "1";
                Result.Result       = MES_HAI.Entity.Enums.MeasureResults.Pass;
            }
            else
            {
                SerialResult        = MES_HAI.Entity.Enums.Results.Fail;
                Result.MeasureValue = "0";
                Result.Result       = MES_HAI.Entity.Enums.MeasureResults.Fail;
            }
            //New
            Result.HighLimit    = "1";
            Result.LowLimit     = "0";
            Result.MeasureKey   = "Pass/Fail";
            Result.MeasureNotes = Notes;
            Result.Position     = 0;
            Results[0]          = Result;
            var Errors = CIM.Serial_MoveOutAndTestResults(Station, Serial, SerialResult, "1", "1.1", Results, 0, false);

            Result_Send.Error = Error_Process(Errors.ErrorDescription);
            return(Result_Send);
        }
Esempio n. 2
0
        public MoveIn_Result GetInformation(string Station, string Serial)
        {
            MoveIn_Result Result = new MoveIn_Result();

            Result.Response = false;
            Result.Error    = "";
            var Response = CIM.Serial_GetInformation(Station, Serial);

            Result.Response = true;
            return(Result);
        }
Esempio n. 3
0
        public MoveIn_Result Built(string Station, string Children, string Serial)
        {
            MoveIn_Result Result = new MoveIn_Result();

            Result.Response = false;
            Result.Error    = "";
            var Response = CIM.Serial_Correlation(Station, Children, Serial);

            Result.Response = true;
            return(Result);
        }
Esempio n. 4
0
        public MoveIn_Result MoveIn(string Station, string Serial, ref string ResponseResult)
        {
            MoveIn_Result Result = new MoveIn_Result();

            Result.Response = false;
            Result.Error    = "";
            var Response = CIM.Serial_MoveIn(Station, Serial, true, 0);

            if (Response.Result == MES_HAI.Entity.Enums.Results.Pass)
            {
                if (Response.Station == Station)
                {
                    if (Response.UnitId == Serial)
                    {
                        Result.Response = true;
                    }
                    else
                    {
                        Result.Response = false;
                        Result.Error    = "Serial Does Not Match";
                    }
                }
                else
                {
                    Result.Response = false;
                    Result.Error    = "Station Does Not Match";
                }
            }
            else
            {
                if (Response.Station == Station)
                {
                    if (Response.UnitId == Serial)
                    {
                        Result.Error = Error_Process(Response.ErrorDescription);
                    }
                    else
                    {
                        Result.Response = false;
                        Result.Error    = "Serial Does Not Match";
                    }
                }
                else
                {
                    Result.Response = false;
                    Result.Error    = "Station Does Not Match";
                }
            }
            ResponseResult = Response.ErrorDescription;
            return(Result);
        }
Esempio n. 5
0
        public MoveIn_Result MoveOut(string Station, string Serial, bool pass)
        {
            MoveIn_Result Result_Send = new MoveIn_Result();

            Result_Send.Response = true;
            Result_Send.Error    = "";
            MES_HAI.Entity.Enums.Results SerialResult = new MES_HAI.Entity.Enums.Results();
            if (pass)
            {
                SerialResult = MES_HAI.Entity.Enums.Results.Pass;
            }
            else
            {
                SerialResult = MES_HAI.Entity.Enums.Results.Fail;
            }
            var Errors = CIM.Serial_MoveOut(Station, Serial, SerialResult, 0, false);

            Result_Send.Error = Error_Process(Errors.ErrorDescription);
            return(Result_Send);
        }