From 59fb13fa4857f7e8b32d8e70746192483d334d79 Mon Sep 17 00:00:00 2001 From: nodyang Date: Mon, 7 Aug 2023 20:52:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=89=A9=E6=96=99=E5=92=8C?= =?UTF-8?q?=E5=A4=A7=E4=BB=93=E7=9A=84=E5=85=B3=E7=B3=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LjMetageFormula/FrmMetageFormula.cs | 11 ++--------- Main/MCEdit/Data/MCProject/nodeForm/FormStock.xml | 4 ++-- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMetageFormula/FrmMetageFormula.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMetageFormula/FrmMetageFormula.cs index eab7417..5189a63 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMetageFormula/FrmMetageFormula.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMetageFormula/FrmMetageFormula.cs @@ -67,15 +67,8 @@ namespace Mesnac.Action.ChemicalWeighing.LjMetageFormula private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { IList ls = null; - //表示大仓的物料 - if (DrpType.SelectedValue.ToString() == "1") - { - ls = StockMaterialDb.GetStockByMtypIdMId(Convert.ToInt32(DrpType.SelectedValue), Convert.ToInt32(comboBox1.SelectedValue)); - } - else - { - ls = DaybinMaterialDb.GetStockByMtypIdMId(Convert.ToInt32(DrpType.SelectedValue), Convert.ToInt32(comboBox1.SelectedValue)); - } + + ls = StockMaterialDb.GetStockByMtypIdMId(Convert.ToInt32(DrpType.SelectedValue), Convert.ToInt32(comboBox1.SelectedValue)); if (ls == null || ls.Count == 0) { diff --git a/Main/MCEdit/Data/MCProject/nodeForm/FormStock.xml b/Main/MCEdit/Data/MCProject/nodeForm/FormStock.xml index 4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