本文整理汇总了C#中MenuEvent类的典型用法代码示例。如果您正苦于以下问题:C# MenuEvent类的具体用法?C# MenuEvent怎么用?C# MenuEvent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MenuEvent类属于命名空间,在下文中一共展示了MenuEvent类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ET_OnAfterMenuClick
public virtual void ET_OnAfterMenuClick(MenuEvent pVal)
{
oForm.Freeze(true);
this.Act1_FormInit();
oForm.Freeze(false);
// ADD YOUR ACTION CODE HERE ...
}
示例2: ET_OnAfterMenuClick
public virtual void ET_OnAfterMenuClick(MenuEvent pVal)
{
oForm = B1Connections.theAppl.Forms.Item(formuid);
oForm.Freeze(true);
this.Act1_FormInit(oForm);
oForm.Freeze(false);
// ADD YOUR ACTION CODE HERE ...
}
示例3: ET_AFDataMenu_Add
public virtual void ET_AFDataMenu_Add(MenuEvent pVal)
{
oForm = B1Connections.theAppl.Forms.ActiveForm;
// ADD YOUR ACTION CODE HERE ...
try
{
SetAddedDefualtFormat();
}
catch (Exception ex)
{
B1Connections.theAppl.StatusBar.SetText(ex.Message, BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Error);
}
}
示例4: sapApp_MenuEvent
internal void sapApp_MenuEvent(ref MenuEvent pVal, out bool BubbleEvent)
{
BubbleEvent = true;
List<MenuEventAttribute> events;
menuEvents.TryGetValue(pVal.MenuUID, out events);
if (events != null)
{
foreach (var e in events)
{
DispatchForm(e, ref pVal, out BubbleEvent);
}
}
}
示例5: ET_AFDataMenu_Add
public virtual void ET_AFDataMenu_Add(MenuEvent pVal)
{
oForm = B1Connections.theAppl.Forms.ActiveForm;
// ADD YOUR ACTION CODE HERE ...
SetDefultMasterData(oForm);
}
示例6: ET_AFRowDataMenu_Delete
public virtual void ET_AFRowDataMenu_Delete(MenuEvent pVal)
{
oForm = B1Connections.theAppl.Forms.ActiveForm;
// ADD YOUR ACTION CODE HERE ...
try
{
oMatrix = (SAPbouiCOM.Matrix)oForm.Items.Item(gSelMtx).Specific;
oForm.Freeze(true);
oMatrix.AddRow(1, -1);
int i = oMatrix.VisualRowCount;
oMatrix.DeleteRow(i);
oMatrix.FlushToDataSource();
if (gSelMtx == "mtx1_DUMY")
{
gDeliverySelect = -1;
// 1. 삭제된뒤 DataTable의 Index값을 다시 설정한다.
SetDataTableReIndexing_Deliver();
// 2. 다시 DataTable 기준으로 화면에 조회한다.
FindData(oForm);
}
else
{
// 1. 삭제된뒤 DataTable의 Index값을 다시 설정한다.
SetDataTableReIndexing_Call();
// 2. 다시 DataTable 기준으로 화면에 조회한다.
FindSubData(oForm, GetSelectedMatrixRowIndex(oForm));
}
oForm.Freeze(false);
}
catch (Exception)
{
throw;
}
}
示例7: ET_AFRowDataMenu_Add
public virtual void ET_AFRowDataMenu_Add(MenuEvent pVal)
{
oForm = B1Connections.theAppl.Forms.ActiveForm;
// ADD YOUR ACTION CODE HERE ...
string strCode = string.Empty;
string strDELIVCD = string.Empty;
if (gSelMtx == "mtx1_DUMY")
{
oMatrix = (SAPbouiCOM.Matrix)oForm.Items.Item(gSelMtx).Specific;
oDB1_Z = (SAPbouiCOM.DBDataSource)oForm.DataSources.DBDataSources.Item("@KIS_SO00301Z_HRD");
// 배달코드 생성
strDELIVCD = GetMaxDelivCode(oForm);
// SystemDataTable에 행 추가하고 추가된 Index값을 리턴받는다.
int index = AddRowDataTable_DELIVER(oForm, strDELIVCD);
SetMatrixAddRow(ref oForm, ref oMatrix, ref oDB1_Z, index.ToString(), strDELIVCD, "U_DELVCD");
}
else
{
// 배달리스트에서 선택된 라인의 배달코드
oMatrix = (SAPbouiCOM.Matrix)oForm.Items.Item("mtx1_DUMY").Specific;
int iSelectIndex = oMatrix.GetNextSelectedRow(0, BoOrderType.ot_RowOrder);
strDELIVCD = FN.GetMatirxCellValue(ref oMatrix, "U_DELVCD", iSelectIndex);
oDB2_Z = (SAPbouiCOM.DBDataSource)oForm.DataSources.DBDataSources.Item("@KIS_SO00302Z_HRD");
// SystemDataTable에 행 추가하고 추가된 Index값을 리턴받는다.
int index = AddRowDataTable_CALL(oForm, strDELIVCD);
oMatrix = (SAPbouiCOM.Matrix)oForm.Items.Item("mtx2_DUMY").Specific;
SetMatrixAddRow(ref oForm, ref oMatrix, ref oDB2_Z, index.ToString(), strDELIVCD, "U_DELVCD");
// 상담리스트에 행추가하고 선택된 행의 Index 값을 가져와서 선택된 행의 수정여부를 수정한다.
iSelectIndex = oMatrix.GetNextSelectedRow(0, BoOrderType.ot_RowOrder);
oMatrix.CommonSetting.SetCellEditable(iSelectIndex, gCallTp_IDX, true);// 콜유형
oMatrix.CommonSetting.SetCellEditable(iSelectIndex, gComment_IDX, true);// 접수내용
}
B1Connections.theAppl.StatusBar.SetText(pVal.MenuUID.ToString(), SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_None);
}
示例8: ET_AF_SUB_BASEDOC
public virtual void ET_AF_SUB_BASEDOC(MenuEvent pVal)
{
// ADD YOUR ACTION CODE HERE ...
oForm = B1Connections.theAppl.Forms.ActiveForm;
//try
//{
// string ObjectType = oForm.DataSources.UserDataSources.Item("ObjectType").ValueEx;
// string BaseEntry = oForm.DataSources.UserDataSources.Item("BaseEntry").ValueEx;
// if (ObjectType == "KIS_BT0040")
// {
// LoadSubForm(oForm, "KIS_BT0030", BaseEntry);
// }
//}
//catch (Exception ex)
//{
// B1Connections.theAppl.StatusBar.SetText(ex.Message, BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Error);
//}
}
示例9: ET_AFDataMenu_Remove
public virtual void ET_AFDataMenu_Remove(MenuEvent pVal)
{
oForm = B1Connections.theAppl.Forms.ActiveForm;
// ADD YOUR ACTION CODE HERE ...
if (oForm.Mode != BoFormMode.fm_OK_MODE)
oForm.Mode = BoFormMode.fm_OK_MODE;
}
示例10: ET_AFRowDataMenu_Delete
public virtual void ET_AFRowDataMenu_Delete(MenuEvent pVal)
{
oForm = B1Connections.theAppl.Forms.ActiveForm;
// ADD YOUR ACTION CODE HERE ...
try
{
oMatrix = (SAPbouiCOM.Matrix)oForm.Items.Item("mtx").Specific;
oForm.Freeze(true);
oMatrix.AddRow(1, -1);
int i = oMatrix.VisualRowCount;
oMatrix.DeleteRow(i);
oMatrix.FlushToDataSource();
oForm.Freeze(false);
}
catch (Exception)
{
throw;
}
}
示例11: ET_AFDataMenu_Find
public virtual void ET_AFDataMenu_Find(MenuEvent pVal)
{
oForm = B1Connections.theAppl.Forms.ActiveForm;
// ADD YOUR ACTION CODE HERE ...
SetStatic_ClearCaption();
}
示例12: ET_BFDataMenu_Remove
public virtual bool ET_BFDataMenu_Remove(MenuEvent pVal)
{
oForm = B1Connections.theAppl.Forms.ActiveForm;
// ADD YOUR ACTION CODE HERE ...
if (GetBefore_Remove_Validation() == false)
{
return false;
}
return true;
}
示例13: ET_AFDataMenu_Add
public virtual void ET_AFDataMenu_Add(MenuEvent pVal) {
oForm = B1Connections.theAppl.Forms.ActiveForm;
// ADD YOUR ACTION CODE HERE ...
oDB_M = oForm.DataSources.DBDataSources.Item("@KIS_FI0010M_HRD");
oDB_1 = oForm.DataSources.DBDataSources.Item("@KIS_FI00101_HRD");
string strNowDate = B1Connections.diCompany.GetCompanyDate().ToShortDateString();
strNowDate = FN.SetDateFormatToDB(strNowDate, FN.eDateType.p_YYYYMMDD);
oDB_M.SetValue("U_DOCDATE", 0, strNowDate.Replace(".", ""));
oDB_M.SetValue("U_USERID", 0, B1Connections.theAppl.Company.UserName);
oComboBox = oForm.Items.Item("cboYYYY").Specific;
oComboBox.Select(FN.Left(strNowDate, 4), BoSearchKey.psk_ByValue);
oComboBox = oForm.Items.Item("cboTYPE").Specific;
oComboBox.Select(0, BoSearchKey.psk_Index);
}
示例14: ET_AFRowDataMenu_Add
public virtual void ET_AFRowDataMenu_Add(MenuEvent pVal)
{
oForm = B1Connections.theAppl.Forms.ActiveForm;
// ADD YOUR ACTION CODE HERE ...
oMatrix = (SAPbouiCOM.Matrix)oForm.Items.Item("mtx").Specific;
oDB_1 = (SAPbouiCOM.DBDataSource)oForm.DataSources.DBDataSources.Item("@KIS_FI00101_HRD");
FN.SetMatrixAddRow(ref oForm, ref oMatrix, ref oDB_1, FN.RowSelectMode.SelectedLine, "U_PRCCD");
}
示例15: ET_BFDataMenu_Remove
public virtual bool ET_BFDataMenu_Remove(MenuEvent pVal)
{
oForm = B1Connections.theAppl.Forms.ActiveForm;
// ADD YOUR ACTION CODE HERE ...
// 입금내역 있으면 지로청구 자료 삭제 불가
return DeleteDoc(oForm);
//return true;
}