Exemplo n.º 1
0
        public Frm_Main()
        {
            //卸载与安装
            if (!File.Exists(Application.StartupPath + "\\Packaging.mdb") && File.Exists(Application.StartupPath + "\\Backup\\Packaging.mdb"))
            {
                File.Copy(Application.StartupPath + "\\Backup\\Packaging.mdb", Application.StartupPath + "\\Packaging.mdb", true);
            }

            //2013.11.20
            //检查数据库是否存在

            if (!File.Exists(Application.StartupPath + "\\Packaging.mdb"))
            {
                MessageBox.Show("程序根目录中数据库文件Packaging.MDB不存在");
                System.Environment.Exit(System.Environment.ExitCode);
                this.Dispose();
                this.Close();
                return;
            }

            PublicFunc.Init();
            DevExpress.Data.CurrencyDataController.DisableThreadingProblemsDetection = true;
            // PublicFunc.ReadXMLConfigure();

            InitializeComponent();
            BI_ListClose_ItemClick(this, null);
            TE_Title.Text = "Packaging";
            RC_Main.DefaultPageCategory.Expanded = true;
            RC_Main.Minimized = true;
            InitSkinGallery();



            db = new DataBaseManage();

            TxtData.XMLConfigure.RegCode = db.GetRegCode();
            TxtData.XMLConfigure.Reged   = PublicFunc.CompareCode(TxtData.XMLConfigure.RegCode);
            db.SaveCs8cConfigure();
            PublicFunc.ReadCs8CConfigure();

            db.GetIp(ref TxtData.XMLConfigure.IpAddress, ref TxtData.XMLConfigure.RestrictCode);
            db.GetPopedom(ref TxtData.PublicData.ScreenEnable);

            TxtData.XMLConfigure.User = db.GetAutoLogin();


            if (TxtData.XMLConfigure.User != null)
            {
                TxtData.XMLConfigure.Login   = true;
                TxtData.XMLConfigure.PopeDom = db.GetUserPopm(TxtData.XMLConfigure.User);
                db.AddLog(TxtData.XMLConfigure.User + "登录");
            }
            PublicFunc.ReadXMLConfigure();


            poll = new Thread(new ThreadStart(PublicFunc.Poll));
            poll.Start();
        }
Exemplo n.º 2
0
        public Frm_Main()
        {
            //卸载与安装
            if (!File.Exists(Application.StartupPath+"\\RobotPolish.mdb")&&File.Exists(Application.StartupPath+"\\Backup\\RobotPolish.mdb"))
            {
                File.Copy(Application.StartupPath + "\\Backup\\RobotPolish.mdb", Application.StartupPath + "\\RobotPolish.mdb",true);
            }

            //2013.11.20
            //检查数据库是否存在

            if (!File.Exists(Application.StartupPath + "\\RobotPolish.mdb"))
            {
                MessageBox.Show("程序根目录中数据库文件RobotPolish.mdb不存在");
                System.Environment.Exit(System.Environment.ExitCode);
                this.Dispose();
                this.Close();
                return;
            }

            PublicFunc.Init();
            DevExpress.Data.CurrencyDataController.DisableThreadingProblemsDetection = true;
               // PublicFunc.ReadXMLConfigure();

            InitializeComponent();
            BI_ListClose_ItemClick(this, null);
            TE_Title.Text = "抛光工艺管理软件";
            RC_Main.DefaultPageCategory.Expanded = true;
            RC_Main.Minimized = true;
            InitSkinGallery();

            db = new DataBaseManage();

            TxtData.XMLConfigure.RegCode = db.GetRegCode();
            TxtData.XMLConfigure.Reged = true;
            //db.SaveCs8cConfigure();
            //PublicFunc.ReadCs8CConfigure();

            db.GetIp(ref TxtData.XMLConfigure.IpAddress, ref TxtData.XMLConfigure.RestrictCode);
            db.GetPopedom(ref TxtData.PublicData.ScreenEnable);

            TxtData.XMLConfigure.User = db.GetAutoLogin();
            TxtData.SoapData.Tool = db.GetTool();

            if (TxtData.XMLConfigure.User != null)
            {
                TxtData.XMLConfigure.Login = true;
                TxtData.XMLConfigure.PopeDom = db.GetUserPopm(TxtData.XMLConfigure.User);
                db.AddLog(TxtData.XMLConfigure.User + "登录");

            }
            PublicFunc.ReadXMLConfigure();

            poll = new Thread(new ThreadStart(PublicFunc.Poll));
            poll.Start();
        }
Exemplo n.º 3
0
        private void BBI_Login_ItemClick(object sender, ItemClickEventArgs e)
        {
            if (this.BEI_UserName.EditValue.ToString() == "" || this.BEI_PassW.EditValue.ToString() == "")
            {
                MessageBox.Show("密码和用户名不能为空!");
                return;
            }


            TxtData.XMLConfigure.Login = db.ExistUser(this.BEI_UserName.EditValue.ToString(), this.BEI_PassW.EditValue.ToString());
            if (TxtData.XMLConfigure.Login)
            {
                TxtData.XMLConfigure.User    = this.BEI_UserName.EditValue.ToString();
                TxtData.XMLConfigure.PopeDom = db.GetUserPopm(this.BEI_UserName.EditValue.ToString());
                db.EditAutoLogin(this.BEI_UserName.EditValue.ToString(), this.BEI_PassW.EditValue.ToString(), (bool)BEI_AutoLogin.EditValue);

                db.AddLog(TxtData.XMLConfigure.User + "登录");
            }
            else
            {
                MessageBox.Show("登录失败!");
                this.RC_Main.Minimized = false;
            }
        }
Exemplo n.º 4
0
        public Frm_Main()
        {
            //卸载与安装
            if (!File.Exists(Application.StartupPath + "\\LasMAN.mdb") && File.Exists(Application.StartupPath + "\\Backup\\LasMAN.mdb"))
            {
                File.Copy(Application.StartupPath + "\\Backup\\LasMAN.mdb", Application.StartupPath + "\\LasMAN.mdb", true);
            }
            if (!Directory.Exists(Application.StartupPath + "\\Log"))
            {
                Directory.CreateDirectory(Application.StartupPath + "\\Log");
            }

            DevExpress.Data.CurrencyDataController.DisableThreadingProblemsDetection = true;
            // PublicFunc.ReadXMLConfigure();

            InitializeComponent();
            BI_ListClose_ItemClick(this, null);
            //     TE_Title.Text = "机器人与装备集成实验系统";
            RC_Main.DefaultPageCategory.Expanded = true;
            RC_Main.Minimized = true;
            InitSkinGallery();



            db = new DataBaseManage();
            db.SaveCs8cConfigure();
            // PublicFunc.ReadCs8CConfigure();

            db.GetRegCode(ref TxtData.XMLConfigure.RegCode);
            db.GetIp(ref TxtData.XMLConfigure.IpAddress, ref TxtData.XMLConfigure.RestrictCode);
            db.GetPopedom(ref TxtData.PublicData.ScreenEnable);

            TxtData.XMLConfigure.User = db.GetAutoLogin();


            if (TxtData.XMLConfigure.User != null)
            {
                TxtData.XMLConfigure.Login   = true;
                TxtData.XMLConfigure.PopeDom = db.GetUserPopm(TxtData.XMLConfigure.User);
                db.AddLog(TxtData.XMLConfigure.User + "登录");
            }
            PublicFunc.ReadXMLConfigure();


            poll = new Thread(new ThreadStart(PublicFunc.Poll));
            poll.Start();
        }
Exemplo n.º 5
0
        public Frm_Main()
        {
            //卸载与安装
            if (!File.Exists(Application.StartupPath+"\\LasMAN.mdb")&&File.Exists(Application.StartupPath+"\\Backup\\LasMAN.mdb"))
            {
                File.Copy(Application.StartupPath + "\\Backup\\LasMAN.mdb", Application.StartupPath + "\\LasMAN.mdb",true);
            }
            if (!Directory.Exists(Application.StartupPath+"\\Log"))
            {
                Directory.CreateDirectory(Application.StartupPath + "\\Log");
            }

            DevExpress.Data.CurrencyDataController.DisableThreadingProblemsDetection = true;
               // PublicFunc.ReadXMLConfigure();

            InitializeComponent();
            BI_ListClose_ItemClick(this, null);
               //     TE_Title.Text = "机器人与装备集成实验系统";
            RC_Main.DefaultPageCategory.Expanded = true;
            RC_Main.Minimized = true;
            InitSkinGallery();

            db = new DataBaseManage();
            db.SaveCs8cConfigure();
               // PublicFunc.ReadCs8CConfigure();

            db.GetRegCode(ref TxtData.XMLConfigure.RegCode);
            db.GetIp(ref TxtData.XMLConfigure.IpAddress, ref TxtData.XMLConfigure.RestrictCode);
            db.GetPopedom(ref TxtData.PublicData.ScreenEnable);

            TxtData.XMLConfigure.User = db.GetAutoLogin();

            if (TxtData.XMLConfigure.User != null)
            {
                TxtData.XMLConfigure.Login = true;
                TxtData.XMLConfigure.PopeDom = db.GetUserPopm(TxtData.XMLConfigure.User);
                db.AddLog(TxtData.XMLConfigure.User + "登录");

            }
            PublicFunc.ReadXMLConfigure();

            poll = new Thread(new ThreadStart(PublicFunc.Poll));
            poll.Start();
        }
Exemplo n.º 6
0
        void Poll(object target)
        {
            DataBaseManage db = new DataBaseManage();
            if (!db.SavePreset())
            {
                TxtData.PublicData.ErrorCode = 1;
                return;
            }

            if (!db.SaveAction())
            {
                TxtData.PublicData.ErrorCode = 2;
                return;
            }
            if (!db.SaveProduct(CBE_RecipeName.EditValue.ToString()))
            {
                TxtData.PublicData.ErrorCode = 34;
                return;
            }

            FtpClient ftp = new FtpClient(TxtData.XMLConfigure.IpAddress);
              //*******************************************
            //匹配tool  2013.10.15
            //匹配home
            if (!ftp.DownLoadConfigure()||!PublicFunc.ReadCs8CConfigure())
            {
                TxtData.PublicData.ErrorCode = 43;
                return;
            }

            double[] tool = db.GetTool();
            if (tool==null||tool.Length!=6||TxtData.CS8CConfigure.Tool==null||TxtData.CS8CConfigure.Tool.Length!=6)
            {
                TxtData.PublicData.ErrorCode = 42;
                return;
            }
            for (int i = 0; i < 6;i++)
            {
                if (tool[i]!=TxtData.CS8CConfigure.Tool[i])
                {
                    TxtData.PublicData.ErrorCode = 42;
                    return;
                }
            }

            //home
            double[] home = db.GetHome();
            if (home == null || home.Length != 6 || TxtData.CS8CConfigure.Home== null || TxtData.CS8CConfigure.Home.Length != 6)
            {
                TxtData.PublicData.ErrorCode = 44;
                return;
            }
            for (int i = 0; i < 6; i++)
            {
                if (home[i] != TxtData.CS8CConfigure.Home[i])
                {
                    TxtData.PublicData.ErrorCode = 44;
                    return;
                }
            }

            //**************************************
            if (!ftp.UpLoadPreset())
            {
                TxtData.PublicData.ErrorCode = 21;
                return;
            }
            if (!ftp.UploadAction())
            {
                TxtData.PublicData.ErrorCode = 22;
                return;
            }
            if (!ftp.UpLoadRecipe())
            {
                TxtData.PublicData.ErrorCode = 23;
                return;
            }

            if (TxtData.CS8CConfigure.EnableItem[7] || TxtData.CS8CConfigure.EnableItem[6])
            {

                if (!SoapInstance.SoapRead.SetAppdata("nWorkPlaceIndex", WorkPlace))
                {
                    TxtData.PublicData.ErrorCode = 24;
                    return;
                }

            }

            if (!SoapInstance.SoapRead.SetAppdata("nInterfaceType", 5))
            {
                TxtData.PublicData.ErrorCode = 24;
                return;
            }
            db.AddLog("调试产品"+CBE_RecipeName.Text);
            while (TxtData.DataBase.InterfaceType == 9)
            {
                System.Threading.Thread.Sleep(10);
            }
            TxtData.PublicData.ErrorCode = 40;
        }
Exemplo n.º 7
0
        void Poll(object target)
        {
            DataBaseManage db = new DataBaseManage();

            if (!db.SavePreset())
            {
                TxtData.PublicData.ErrorCode = 1;
                return;
            }

            if (!db.SaveAction())
            {
                TxtData.PublicData.ErrorCode = 2;
                return;
            }
            if (!db.SaveProduct(CBE_RecipeName.EditValue.ToString()))
            {
                TxtData.PublicData.ErrorCode = 34;
                return;
            }


            FtpClient ftp = new FtpClient(TxtData.XMLConfigure.IpAddress);

            //*******************************************
            //匹配tool  2013.10.15
            //匹配home
            if (!ftp.DownLoadConfigure() || !PublicFunc.ReadCs8CConfigure())
            {
                TxtData.PublicData.ErrorCode = 43;
                return;
            }

            double[] tool = db.GetTool();
            if (tool == null || tool.Length != 6 || TxtData.CS8CConfigure.Tool == null || TxtData.CS8CConfigure.Tool.Length != 6)
            {
                TxtData.PublicData.ErrorCode = 42;
                return;
            }
            for (int i = 0; i < 6; i++)
            {
                if (tool[i] != TxtData.CS8CConfigure.Tool[i])
                {
                    TxtData.PublicData.ErrorCode = 42;
                    return;
                }
            }

            //home
            double[] home = db.GetHome();
            if (home == null || home.Length != 6 || TxtData.CS8CConfigure.Home == null || TxtData.CS8CConfigure.Home.Length != 6)
            {
                TxtData.PublicData.ErrorCode = 44;
                return;
            }
            for (int i = 0; i < 6; i++)
            {
                if (home[i] != TxtData.CS8CConfigure.Home[i])
                {
                    TxtData.PublicData.ErrorCode = 44;
                    return;
                }
            }



            //**************************************
            if (!ftp.UpLoadPreset())
            {
                TxtData.PublicData.ErrorCode = 21;
                return;
            }
            if (!ftp.UploadAction())
            {
                TxtData.PublicData.ErrorCode = 22;
                return;
            }
            if (!ftp.UpLoadRecipe())
            {
                TxtData.PublicData.ErrorCode = 23;
                return;
            }

            if (TxtData.CS8CConfigure.EnableItem[7] || TxtData.CS8CConfigure.EnableItem[6])
            {
                if (!SoapInstance.SoapRead.SetAppdata("nWorkPlaceIndex", WorkPlace))
                {
                    TxtData.PublicData.ErrorCode = 24;
                    return;
                }
            }


            if (!SoapInstance.SoapRead.SetAppdata("nInterfaceType", 5))
            {
                TxtData.PublicData.ErrorCode = 24;
                return;
            }
            db.AddLog("调试产品" + CBE_RecipeName.Text);
            while (TxtData.DataBase.InterfaceType == 9)
            {
                System.Threading.Thread.Sleep(10);
            }
            TxtData.PublicData.ErrorCode = 40;
        }
Exemplo n.º 8
0
        void Poll(object target)
        {
            TxtData.MdbData.PresetData[4]  = (double)SE_Pan.Value;
            TxtData.MdbData.IODelay[3]     = (double)SE_Wait.Value;
            TxtData.MdbData.HomeSpeed      = (double)SE_Home.Value;
            TxtData.PublicData.CycleCount  = (int)SE_Cycle.Value;
            TxtData.PublicData.TriggleMode = CBE_Triggle.SelectedIndex;
            if (!db.EditProductPara(CBE_Triggle.SelectedIndex, (int)SE_Cycle.Value, TxtData.PublicData.WorkPlaceCount) ||
                !db.EditConfigure(TxtData.MdbData.PresetData, "PRESETDATA") ||
                !db.EditConfigure(TxtData.MdbData.IODelay, "IODELAY") ||
                !db.EditConfigure(TxtData.MdbData.StepLength, TxtData.MdbData.HomeSpeed))
            {
                TxtData.PublicData.ErrorCode = 37;
                return;
            }

            if (!db.SavePreset())
            {
                TxtData.PublicData.ErrorCode = 1;
                return;
            }

            if (!db.SaveAction())
            {
                TxtData.PublicData.ErrorCode = 2;
                return;
            }


            RobotKit.FtpClient ftp = new FtpClient(TxtData.XMLConfigure.IpAddress);



            double[] tool = db.GetTool();
            if (tool == null || tool.Length != 6 || TxtData.MdbData.Tool == null || TxtData.MdbData.Tool.Length != 6)
            {
                TxtData.PublicData.ErrorCode = 42;
                return;
            }
            for (int i = 0; i < 6; i++)
            {
                if (tool[i] != TxtData.MdbData.Tool[i])
                {
                    TxtData.PublicData.ErrorCode = 42;
                    return;
                }
            }
            double[] home = db.GetHome();
            if (home == null || home.Length != 6 || TxtData.MdbData.Home == null || TxtData.MdbData.Home.Length != 6)
            {
                TxtData.PublicData.ErrorCode = 44;
                return;
            }
            for (int i = 0; i < 6; i++)
            {
                if (home[i] != TxtData.MdbData.Home[i])
                {
                    TxtData.PublicData.ErrorCode = 44;
                    return;
                }
            }
            //**************************************

            if (!db.SaveCs8cConfigure())
            {
                TxtData.PublicData.ErrorCode = 3;
                return;
            }



            if (!ftp.UpLoadPreset())
            {
                TxtData.PublicData.ErrorCode = 21;
                return;
            }
            if (!ftp.UploadAction())
            {
                TxtData.PublicData.ErrorCode = 22;
                return;
            }
            if (!ftp.UploadConfigure())
            {
                TxtData.PublicData.ErrorCode = 23;
                return;
            }

            //****************************************************************************************************************
            //2013.10.31
            for (int i = 0; i < TxtData.PublicData.WorkPlaceCount; i++)
            {
                for (int j = 0; j < TxtData.PublicData.ProductCount[i]; j++)
                {
                    if (!db.SaveProduct(i + 1, TxtData.PublicData.ProductName[i][j], TxtData.PublicData.MatchPresetName[i][j], TxtData.PublicData.TrajByPass[i][j]))
                    {
                        TxtData.PublicData.ErrorCode = 3 + i + 1;
                        return;
                    }
                    if (TxtData.PublicData.MatchPresetName[i][j] != "StaubliPreset" && !db.SavePreset(i + 1, TxtData.PublicData.MatchPresetName[i][j]))
                    {
                        TxtData.PublicData.ErrorCode = 7 + i + 1;
                        return;
                    }
                    if (TxtData.MdbData.EnableItem[4])
                    {
                        string FileName = (i + 1).ToString() + "Product" + (j + 1).ToString() + ".txt";
                        File.Copy(Application.StartupPath + "\\Txt\\" + "product" + (i + 1).ToString() + ".txt", Application.StartupPath + "\\Txt\\" + FileName, true);
                        if (!ftp.UpLoadProduct(FileName))
                        {
                            TxtData.PublicData.ErrorCode = 23 + i;
                            return;
                        }
                    }
                    else
                    {
                        if (!ftp.UpLoadProduct(i + 1))
                        {
                            TxtData.PublicData.ErrorCode = 23 + i;
                            return;
                        }
                    }

                    //设置需要生产的产品的名称
                    if (!SoapInstance.SoapRead.SetAppdata("sProductName[" + (i + 1).ToString() + "]", TxtData.PublicData.ProductName[i][j]))
                    {
                        TxtData.PublicData.ErrorCode = 12;
                        return;
                    }
                    //if (!SoapInstance.SoapRead.SetAppdata(@"sProductName[1]", TxtData.PublicData.ProductName[i][j]))
                    //{
                    //    TxtData.PublicData.ErrorCode = 12;
                    //    return;
                    //}
                    if (TxtData.PublicData.MatchPresetName[i][j] != "StaubliPreset" && !ftp.UpLoadPreset(i + 1))
                    {
                        TxtData.PublicData.ErrorCode = 27 + i;
                        return;
                    }
                }
            }
            //****************************************************************************************************************
            //同工位多产品
            //2014.05.30
            if (TxtData.MdbData.EnableItem[4])
            {
                for (int i = 1; i <= TxtData.PublicData.WorkPlaceCount; i++)
                {
                    if (!SoapInstance.SoapRead.SetAppdata("nWpMutiCount[" + i.ToString() + "]", TxtData.PublicData.ProductCount[i - 1]))
                    {
                        TxtData.PublicData.ErrorCode = 12;
                        return;
                    }
                }
            }

            //if (!SoapInstance.SoapRead.SetAppdata("sCustom", (CBE_Custom.Text==null)?"  ":CBE_Custom.Text))
            if (!SoapInstance.SoapRead.SetAppdata("sCustom", CBE_Custom.Text))
            {
                TxtData.PublicData.ErrorCode = 12;
                return;
            }

            if (!SoapInstance.SoapRead.SetAppdata("nCycleMode", CBE_Triggle.SelectedIndex))
            {
                TxtData.PublicData.ErrorCode = 12;
                return;
            }
            if (!SoapInstance.SoapRead.SetAppdata("nCycleCount", (int)SE_Cycle.Value))
            {
                TxtData.PublicData.ErrorCode = 12;
                return;
            }
            if (!SoapInstance.SoapRead.SetAppdata("nWorkPlaceCount", TxtData.PublicData.WorkPlaceCount))
            {
                TxtData.PublicData.ErrorCode = 12;
                return;
            }

            if (!SoapInstance.SoapRead.SetAppdata("nInterfaceType", 13))
            {
                TxtData.PublicData.ErrorCode = 12;
                return;
            }
            db.AddLog("下载生产信息");
            TxtData.PublicData.ErrorCode = 40;
        }
Exemplo n.º 9
0
        void Poll(object target)
        {
            DataBaseManage db = new DataBaseManage();

            double[] tool = db.GetTool();
            if (tool == null || tool.Length != 6 || TxtData.SoapData.Tool == null || TxtData.SoapData.Tool.Length != 6)
            {
                TxtData.PublicData.ErrorCode = 42;
                return;
            }

            TxtData.MdbData.Tool = tool;
            //for (int i = 0; i < 6; i++)
            //{
            //    if (tool[i] != TxtData.MdbData.Tool[i])
            //    {
            //        TxtData.PublicData.ErrorCode = 42;
            //        return;
            //    }
            //}

            //home
            double[] home = db.GetHome();
            if (home == null || home.Length != 6 || TxtData.SoapData.Home == null || TxtData.SoapData.Home.Length != 6)
            {
                TxtData.PublicData.ErrorCode = 44;
                return;
            }
            for (int i = 0; i < 6; i++)
            {
                if (home[i] != TxtData.SoapData.Home[i])
                {
                    TxtData.PublicData.ErrorCode = 44;
                    return;
                }
            }
            TxtData.MdbData.Home = home;



            //**************************************

            if (db.IsMatlabFile(CBE_RecipeName.EditValue.ToString()) == 0)
            {
                TxtData.PublicData.ErrorCode = 34;
                return;
            }
            PolishTxt.MatlabFile = (db.IsMatlabFile(CBE_RecipeName.EditValue.ToString()) == 2);

            //

            PolishTxt.Home = home;
            if (!db.SaveProduct(CBE_RecipeName.EditValue.ToString()))
            {
                TxtData.PublicData.ErrorCode = 34;
                return;
            }

            if (!System.IO.Directory.Exists(Application.StartupPath + "\\txt\\"))
            {
                System.IO.Directory.CreateDirectory(Application.StartupPath + "\\txt\\");
            }


            if (!PolishTxt.Standard2Polish(Application.StartupPath + "\\txt\\Recipe.txt", Application.StartupPath + "\\txt\\" + CBE_RecipeName.EditValue.ToString() + ".txt"))
            {
                TxtData.PublicData.ErrorCode = 49;
                return;
            }



            FtpClient ftp = new FtpClient(TxtData.XMLConfigure.IpAddress);

            //*******************************************



            if (!ftp.UpLoad(Application.StartupPath + "\\txt\\" + CBE_RecipeName.EditValue.ToString().Trim() + @".txt", @"/usr/usrapp/txt"))
            // if (!ftp.UpLoadPolishTxt(CBE_RecipeName.EditValue.ToString().Trim()))

            {
                TxtData.PublicData.ErrorCode = 24;
                return;
            }

            SoapInstance.SoapRead.SoapSetAppname = @"Disk://RobotPolish/RobotPolish.pjx";
            if (!SoapInstance.SoapRead.SetAppdata("sTxtSelected", CBE_RecipeName.EditValue.ToString() + ".txt"))
            {
                TxtData.PublicData.ErrorCode = 70;
                return;
            }


            //
            if (!SoapInstance.SoapRead.SetLibdata("read", "nZshift", -(int)ND_Z.Value))
            {
                TxtData.PublicData.ErrorCode = 70;
                return;
            }



            //2015.01.20
            if (!SoapInstance.SoapRead.SetAppAIO("io:aPressSet", (double)NUD_Press.Value))
            {
                TxtData.PublicData.ErrorCode = 70;
                return;
            }

            if (!SoapInstance.SoapRead.SetAppAIO("io:aRevolu", (double)NUD_Speed.Value))
            {
                TxtData.PublicData.ErrorCode = 70;
                return;
            }
            if (!SoapInstance.SoapRead.SetAppAIO("io:aRotation", (double)NUD_Rot.Value))
            {
                TxtData.PublicData.ErrorCode = 70;
                return;
            }
            if (!SoapInstance.SoapRead.SetAppAIO("io:aTableSpeed", (double)NUD_Speed.Value))
            {
                TxtData.PublicData.ErrorCode = 70;
                return;
            }

            if (!SoapInstance.SoapRead.SetAppdata("nVirtualKey", 272))
            {
                TxtData.PublicData.ErrorCode = 70;
                return;
            }
            db.AddLog("下载产品" + CBE_RecipeName.Text);
            db.AddProductCount(CBE_Custom.Text, CBE_RecipeName.Text, 1);//while (TxtData.SoapData.InterfaceType == 9)
            //{//    System.Threading.Thread.Sleep(10);
            //}
            TxtData.PublicData.ErrorCode = 40;
        }