예제 #1
0
        private void RequestTask_Load(object sender, EventArgs e)
        {
            _Running         = false;
            _SubmitCountdown = 0;

            this.timerUI_Update.Enabled = true;

            this.textBoxServerIP.Text    = "localhost";
            this.textBoxPort.Text        = "9443";
            this.textBoxThreads.Text     = "4";
            this.checkBoxSSL.Checked     = true;
            this.textBoxThreadDelay.Text = "100";

            this.textBoxUser.Text = "admin";
            this.textBoxPass.Text = "admin";

            this.textBoxSQL.Text = "select parts.*,sortingpart.* from parts left outer join sortingpart on parts.part_codeid=sortingpart.part_codeid where parts.product_id=(select product_id from products where product_codeid='170107010001')";

            this.textBoxLength.Text = "2000";
            this.textBoxWidth.Text  = "1250";
            this.textBoxHeight.Text = "40";

            this.progressBar.Maximum = 100;
            this.progressBar.Value   = 0;

            this.radioButtonBinPacking.Checked = true;
            this.radioButtonPathImport.Checked = false;

            this.comboBoxTx.Items.Add("T1");
            this.comboBoxTx.Items.Add("T2");
            this.comboBoxTx.Items.Add("T3");
            this.comboBoxTx.Items.Add("T4");
            this.comboBoxTx.SelectedIndex = 2;

            this.comboBoxDx.Items.Add("D-");
            this.comboBoxDx.Items.Add("D+");
            this.comboBoxDx.SelectedIndex = 0;

            this.comboBoxTy.Items.Add("T1");
            this.comboBoxTy.Items.Add("T2");
            this.comboBoxTy.Items.Add("T3");
            this.comboBoxTy.Items.Add("T4");
            this.comboBoxTy.SelectedIndex = 3;

            this.comboBoxDy.Items.Add("D-");
            this.comboBoxDy.Items.Add("D+");
            this.comboBoxDy.SelectedIndex = 1;

            this.textBoxSawThickness.Text = "5";
            this.textBoxTrim.Text         = "10";

            if (File.Exists("D:\\gitArtisman\\ArtCloud\\Nesting.xml"))
            {
                this.textBoxFile.Text = "D:\\gitArtisman\\ArtCloud\\Nesting.xml";
            }

            UpdateButtonState();

            TaskController.CadmInit();
        }