Ejemplo n.º 1
0
        private string EndJob_Service(string reporter, string productSN, string Ext, string Time)
        {
            string             ret;
            deviceInfo         devInfo     = new deviceInfo();
            Service1SoapClient test1       = new Service1SoapClient();
            string             productType = devInfo.GetProductType(productSN);

            try
            {
                if (jobNew > 0)
                {
                    jobNew--;
                    string ret1 = test1.CollectDevice_MES_ControlJob_New(reporter, deviceInfo.deviceCode, productType, productSN, deviceInfo.operationGroup, Ext, "1", Time);
                }
                ret = test1.CollectDevice_MES_EndJob_New(reporter, deviceInfo.deviceCode, productType, productSN, deviceInfo.operationGroup, Ext, Time);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }

            return(ret);
        }
Ejemplo n.º 2
0
        private string StartJob_Service(string reporter, string productSN, string Ext, string Time)
        {
            deviceInfo         devInfo     = new deviceInfo();
            Service1SoapClient test1       = new Service1SoapClient();
            string             productType = devInfo.GetProductType(productSN);

            jobNew++;
            string ret;

            try
            {
                ret = test1.CollectDevice_MES_StartJob_New(reporter, deviceInfo.deviceCode, productType, productSN, deviceInfo.operationGroup, Ext, Time);
                if (ret == "OK")
                {
                    string ret1 = test1.CollectDevice_MES_ControlJob_New(reporter, deviceInfo.deviceCode, productType, productSN, deviceInfo.operationGroup, Ext, "0", Time);
                }
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }

            return(ret);
        }