private void SetEnableMenuAndItemEnabled(SAPbouiCOM.Form oForm) { try { if (oForm.DataSources.UserDataSources.Item("U_STATUS").ValueEx == "R") { FN.SetItemEnable(oForm, "btnPOPUP", false); oForm.EnableMenu(SO.MenuProperty.DeleteRow, false); } else { FN.SetItemEnable(oForm, "btnPOPUP", true); oForm.EnableMenu(SO.MenuProperty.DeleteRow, true); } } catch (Exception) { throw; } }
/// <summary> /// 폼(Form)에 대해 활성화,비활성화가 필요한 메뉴들을 정의합니다. /// </summary> private void Act4_FormMenuSetting(SAPbouiCOM.Form oForm) { //oForm.EnableMenu("1282", false);//추가 //oForm.EnableMenu("1283", false); //제거 oForm.EnableMenu("1284", false); //취소 oForm.EnableMenu("1293", false); //행삭제 oForm.EnableMenu("1292", false); //행추가 }