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(); } }
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 += " Весы загружены."; } }
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); } }
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) + " "; } } }
public void ExportAllToWE() { WeighingEquipUtils utl = new WeighingEquipUtils(); utl.ExportAllToWE(); }
protected void SendAllToWEButton1_Click(object sender, EventArgs e) { WeighingEquipUtils utl = new WeighingEquipUtils(); utl.ExportAllToWE(); }
protected void ExportToUKMButton1_Click(object sender, EventArgs e) { WeighingEquipUtils we = new WeighingEquipUtils(); MessageTextBox1.Text = we.ExportAllToWE(); }
protected void DirectExportToWeightQload_Click(object sender, EventArgs e) { WeighingEquipUtils utl = new WeighingEquipUtils(); utl.ExportAllToQload(); }
protected void DirectExportToWeightButton1_Click(object sender, EventArgs e) { WeighingEquipUtils utl = new WeighingEquipUtils(); utl.ExportFromUKMDirect(); }