Exemplo n.º 1
0
        public void ExportToWeightByDocumentUKM(string doc_ukm)
        {
            string Division = WebConfigurationManager.AppSettings["Division"];
            string dirPath  = WebConfigurationManager.AppSettings["UKM_Import_Path"];

            // чистим папку весов.
            string[] Files2 = Directory.GetFiles(dirPath);
            foreach (string file in Files2)
            {
                string fileToCopy = System.IO.Path.GetFileName(file);
                File.Delete(file);
            }

            if (Division == "RB")
            {
                WeighingEquipUtils utl = new WeighingEquipUtils();
                utl.ExportAllToQload();
            }
            else
            if (Division == "RF")
            {
                WeighingEquipUtils utl = new WeighingEquipUtils();
                utl.ExportAllToWE();
            }
        }
Exemplo n.º 2
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 += " Весы загружены.";
            }
        }
Exemplo n.º 3
0
        protected void WeightLoadButton1_Click(object sender, EventArgs e)
        {
            string Division = WebConfigurationManager.AppSettings["Division"];

            if (Division == "RF")
            {
                WeighingEquipUtils utl = new WeighingEquipUtils();
                utl.ExportAllToWE();
            }
            else
            if (Division == "RB")
            {
                WeighingEquipUtils utl = new WeighingEquipUtils();
                utl.ExportToWE_qload_by_weights_UKMPrice_BY_Journ(jourID);
            }
        }
Exemplo n.º 4
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) + "  ";
                }
            }
        }
Exemplo n.º 5
0
        public void ExportAllToWE()
        {
            WeighingEquipUtils utl = new WeighingEquipUtils();

            utl.ExportAllToWE();
        }
Exemplo n.º 6
0
        protected void SendAllToWEButton1_Click(object sender, EventArgs e)
        {
            WeighingEquipUtils utl = new WeighingEquipUtils();

            utl.ExportAllToWE();
        }
Exemplo n.º 7
0
        protected void ExportToUKMButton1_Click(object sender, EventArgs e)
        {
            WeighingEquipUtils we = new WeighingEquipUtils();

            MessageTextBox1.Text = we.ExportAllToWE();
        }
Exemplo n.º 8
0
        protected void DirectExportToWeightQload_Click(object sender, EventArgs e)
        {
            WeighingEquipUtils utl = new WeighingEquipUtils();

            utl.ExportAllToQload();
        }
Exemplo n.º 9
0
        protected void DirectExportToWeightButton1_Click(object sender, EventArgs e)
        {
            WeighingEquipUtils utl = new WeighingEquipUtils();

            utl.ExportFromUKMDirect();
        }