diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Technical/RecipType/DeleteAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Technical/RecipType/DeleteAction.cs index a6d40bf..8b30d36 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Technical/RecipType/DeleteAction.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Technical/RecipType/DeleteAction.cs @@ -48,9 +48,7 @@ namespace Mesnac.Action.ChemicalWeighing.Technical.RecipType { int mID = Convert.ToInt32(Convert.ToInt32(clientGridView.SelectedRows[0].Cells["recipetype_Id"].Value)); string mName = clientGridView.SelectedRows[0].Cells["recipetype_Name"].Value as string; - string msg1 = StringParser.Parse(ResourceService.GetString("Mesnac_Action_ChemicalWeighing_FrmRecipeType_DeleteAction_msg1")); //确认删除当前物料(物料名:{0})吗? - msg1 = String.Format(msg1, mName); - DialogResult result = MessageBox.Show(msg1, Mesnac.Basic.LanguageHelper.Caption, MessageBoxButtons.YesNo, MessageBoxIcon.Question); + DialogResult result = MessageBox.Show("确认删除当前物料吗", Mesnac.Basic.LanguageHelper.Caption, MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (result == DialogResult.Yes) { //删除本地数据库中的用户信息 @@ -68,8 +66,7 @@ namespace Mesnac.Action.ChemicalWeighing.Technical.RecipType } else { - string msg2 = StringParser.Parse(ResourceService.GetString("Mesnac_Action_ChemicalWeighing_FrmRecipeType_DeleteAction_msg2")); //请选择一条要删除物料信息! - MessageBox.Show(msg2, Mesnac.Basic.LanguageHelper.Caption, MessageBoxButtons.OK, MessageBoxIcon.Information); + MessageBox.Show("请选择一条要删除物料信息!", Mesnac.Basic.LanguageHelper.Caption, MessageBoxButtons.OK, MessageBoxIcon.Information); //请选择一条要删除物料信息! } } catch (Exception ex) diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Technical/RecipType/FrmRecipeTypeInfo.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Technical/RecipType/FrmRecipeTypeInfo.cs index 869766d..cce4e1f 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Technical/RecipType/FrmRecipeTypeInfo.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Technical/RecipType/FrmRecipeTypeInfo.cs @@ -82,7 +82,7 @@ namespace Mesnac.Action.ChemicalWeighing.Technical.RecipType private void FrmRecipeTypeInfo_Load(object sender, EventArgs e) { - this.InitUI(); + //this.InitUI(); this.InitData(); } @@ -98,18 +98,18 @@ namespace Mesnac.Action.ChemicalWeighing.Technical.RecipType } } - private void InitUI() - { - if (this._actionType == ActionType.Add) - { - this.Text = StringParser.Parse(ResourceService.GetString("Menac_Action_ChemicalWeighing_MaterialManage_FrmRecipeType_Text_Add")); //添加物料 - } - else if (this._actionType == ActionType.Modify) - { - this.Text = StringParser.Parse(ResourceService.GetString("Menac_Action_ChemicalWeighing_MaterialManage_FrmRecipeType_Text_Modify")); //修改物料信息 - } - this.label1.Text = StringParser.Parse(ResourceService.GetString("Menac_Action_ChemicalWeighing_MaterialManage_FrmRecipeType_label1_Text")); //物料名称: - this.label2.Text = StringParser.Parse(ResourceService.GetString("Menac_Action_ChemicalWeighing_MaterialManage_FrmRecipeType_label2_Text")); //物料编码: - } + //private void InitUI() + //{ + // if (this._actionType == ActionType.Add) + // { + // this.Text = StringParser.Parse(ResourceService.GetString("Menac_Action_ChemicalWeighing_MaterialManage_FrmRecipeType_Text_Add")); //添加物料 + // } + // else if (this._actionType == ActionType.Modify) + // { + // this.Text = StringParser.Parse(ResourceService.GetString("Menac_Action_ChemicalWeighing_MaterialManage_FrmRecipeType_Text_Modify")); //修改物料信息 + // } + // this.label1.Text = StringParser.Parse(ResourceService.GetString("Menac_Action_ChemicalWeighing_MaterialManage_FrmRecipeType_label1_Text")); //物料名称: + // this.label2.Text = StringParser.Parse(ResourceService.GetString("Menac_Action_ChemicalWeighing_MaterialManage_FrmRecipeType_label2_Text")); //物料编码: + //} } } diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Technical/RecipType/ModifyAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Technical/RecipType/ModifyAction.cs index 3aa2c8a..2f663bb 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Technical/RecipType/ModifyAction.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Technical/RecipType/ModifyAction.cs @@ -51,8 +51,8 @@ namespace Mesnac.Action.ChemicalWeighing.Technical.RecipType //验证是否选中某物料 if (clientGridView.SelectedRows.Count != 1) { - string msg1 = StringParser.Parse(ResourceService.GetString("Mesnac_Action_ChemicalWeighing_FrmRecipeType_ModifyAction_msg1")); //请选择一项要修改的物料! - MessageBox.Show(msg1, Mesnac.Basic.LanguageHelper.Caption, MessageBoxButtons.OK, MessageBoxIcon.Information); + //string msg1 = StringParser.Parse(ResourceService.GetString("Mesnac_Action_ChemicalWeighing_FrmRecipeType_ModifyAction_msg1")); //请选择一项要修改的物料! + MessageBox.Show("请选择一项要修改的物料!", Mesnac.Basic.LanguageHelper.Caption, MessageBoxButtons.OK, MessageBoxIcon.Information); this._runtime.IsReturn = true; return; } @@ -73,9 +73,9 @@ namespace Mesnac.Action.ChemicalWeighing.Technical.RecipType newMaterial.recipetype_Id = base_RecipeType.recipetype_Id; //在此设定物料对象的ID frmMaterial.Dispose(); - string msg2 = StringParser.Parse(ResourceService.GetString("Mesnac_Action_ChemicalWeighing_FrmRecipeType_ModifyAction_msg2")); //确认修改{0}物料信息? - msg2 = String.Format(msg2, base_RecipeType.recipetype_Name); - if (MessageBox.Show(msg2, Mesnac.Basic.LanguageHelper.Caption, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) + //string msg2 = StringParser.Parse(ResourceService.GetString("Mesnac_Action_ChemicalWeighing_FrmRecipeType_ModifyAction_msg2")); //确认修改{0}物料信息? + //msg2 = String.Format(msg2, base_RecipeType.recipetype_Name); + if (MessageBox.Show("确认修改物料信息?", Mesnac.Basic.LanguageHelper.Caption, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { //更新数据库中的物料信息 TechnicalHelper.updateRecipeType(newMaterial);