Esempio n. 1
0
        protected void LoadQWeighButton1_Click(object sender, EventArgs e)
        {
            WLMessageTextBox1.Text = "";

            WeighingEquipUtils utl = new WeighingEquipUtils();

            CheckBoxList chb = (CheckBoxList)WeightsPlaceHolder1.FindControl("WTCheckBoxList1");

            if (chb == null)
            {
                return;
            }

            bool loaded = false;

            foreach (ListItem itm in chb.Items)
            {
                if (itm.Selected)
                {
                    WLMessageTextBox1.Text += utl.ExportToWE_qload_by_weights_UKMPrice_by_format(itm.Value) + " /n ";

                    loaded = true;

                    Thread.Sleep(1000);
                }
            }

            if (loaded)
            {
                WLMessageTextBox1.Text += " Весы загружены.";
            }
        }
Esempio n. 2
0
        protected void LoadQWeighButton1_Click(object sender, EventArgs e)
        {
            MessageTextBox1.Text = "";

            WeighingEquipUtils utl = new WeighingEquipUtils();

            CheckBoxList chb = (CheckBoxList)WeightsPlaceHolder1.FindControl("WTCheckBoxList1");

            if (chb == null)
            {
                return;
            }

            foreach (ListItem itm in chb.Items)
            {
                if (itm.Selected)
                {
                    MessageTextBox1.Text += utl.ExportToWE_qload_by_weights_UKMPrice_by_format(itm.Value) + "  ";
                }
            }
        }