|
|
@ -51,8 +51,8 @@ namespace Mesnac.Action.ChemicalWeighing.Technical.RecipType
|
|
|
|
//验证是否选中某物料
|
|
|
|
//验证是否选中某物料
|
|
|
|
if (clientGridView.SelectedRows.Count != 1)
|
|
|
|
if (clientGridView.SelectedRows.Count != 1)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
string msg1 = StringParser.Parse(ResourceService.GetString("Mesnac_Action_ChemicalWeighing_FrmRecipeType_ModifyAction_msg1")); //请选择一项要修改的物料!
|
|
|
|
//string msg1 = StringParser.Parse(ResourceService.GetString("Mesnac_Action_ChemicalWeighing_FrmRecipeType_ModifyAction_msg1")); //请选择一项要修改的物料!
|
|
|
|
MessageBox.Show(msg1, Mesnac.Basic.LanguageHelper.Caption, MessageBoxButtons.OK, MessageBoxIcon.Information);
|
|
|
|
MessageBox.Show("请选择一项要修改的物料!", Mesnac.Basic.LanguageHelper.Caption, MessageBoxButtons.OK, MessageBoxIcon.Information);
|
|
|
|
this._runtime.IsReturn = true;
|
|
|
|
this._runtime.IsReturn = true;
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -73,9 +73,9 @@ namespace Mesnac.Action.ChemicalWeighing.Technical.RecipType
|
|
|
|
newMaterial.recipetype_Id = base_RecipeType.recipetype_Id; //在此设定物料对象的ID
|
|
|
|
newMaterial.recipetype_Id = base_RecipeType.recipetype_Id; //在此设定物料对象的ID
|
|
|
|
frmMaterial.Dispose();
|
|
|
|
frmMaterial.Dispose();
|
|
|
|
|
|
|
|
|
|
|
|
string msg2 = StringParser.Parse(ResourceService.GetString("Mesnac_Action_ChemicalWeighing_FrmRecipeType_ModifyAction_msg2")); //确认修改{0}物料信息?
|
|
|
|
//string msg2 = StringParser.Parse(ResourceService.GetString("Mesnac_Action_ChemicalWeighing_FrmRecipeType_ModifyAction_msg2")); //确认修改{0}物料信息?
|
|
|
|
msg2 = String.Format(msg2, base_RecipeType.recipetype_Name);
|
|
|
|
//msg2 = String.Format(msg2, base_RecipeType.recipetype_Name);
|
|
|
|
if (MessageBox.Show(msg2, Mesnac.Basic.LanguageHelper.Caption, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
|
|
|
|
if (MessageBox.Show("确认修改物料信息?", Mesnac.Basic.LanguageHelper.Caption, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
//更新数据库中的物料信息
|
|
|
|
//更新数据库中的物料信息
|
|
|
|
TechnicalHelper.updateRecipeType(newMaterial);
|
|
|
|
TechnicalHelper.updateRecipeType(newMaterial);
|
|
|
|