本文整理汇总了C#中SAPbouiCOM.Form.Close方法的典型用法代码示例。如果您正苦于以下问题:C# Form.Close方法的具体用法?C# Form.Close怎么用?C# Form.Close使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SAPbouiCOM.Form
的用法示例。
在下文中一共展示了Form.Close方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ET_1_AFItemPressed
public virtual void ET_1_AFItemPressed(ItemEvent pVal)
{
oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
oButton = ((SAPbouiCOM.Button)(oForm.Items.Item("1").Specific));
// ADD YOUR ACTION CODE HERE ...
if (oForm.Mode == BoFormMode.fm_OK_MODE || oForm.Mode == BoFormMode.fm_ADD_MODE)
{
SetApplyDataToParent2(oForm);
}
oForm.Close();
}
示例2: ET_grd_AFDoubleClick
public virtual void ET_grd_AFDoubleClick(ItemEvent pVal)
{
oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
oGrid = ((SAPbouiCOM.Grid)(oForm.Items.Item("grd").Specific));
// ADD YOUR ACTION CODE HERE ...
string pformuid = oForm.DataSources.UserDataSources.Item("pformuid").ValueEx;
SAPbouiCOM.Form pform = (SAPbouiCOM.Form)B1Connections.theAppl.Forms.Item(pformuid);
if (PRow != -1)
{
pBtn = pVal.ItemUID;
//pform.DataSources.UserDataSources.Item("edtFRDELCD").Value = oGrid.DataTable.GetValue("Code", PRow);
pform.DataSources.UserDataSources.Item(pColNM).Value = oGrid.DataTable.GetValue("Code", PRow);
oForm.Close();
}
}
示例3: ET_grd_AFDoubleClick
public virtual void ET_grd_AFDoubleClick(ItemEvent pVal)
{
oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
oGrid = ((SAPbouiCOM.Grid)(oForm.Items.Item("grd").Specific));
// ADD YOUR ACTION CODE HERE ...
SetApplyDataToParentForm_2(oForm);
oForm.Close();
}
示例4: ET_btnApply_AFItemPressed
public virtual void ET_btnApply_AFItemPressed(ItemEvent pVal)
{
oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
oButton = ((SAPbouiCOM.Button)(oForm.Items.Item("btnApply").Specific));
// ADD YOUR ACTION CODE HERE ...
if (oForm.DataSources.UserDataSources.Item("sTYPE").ValueEx == "TRUE")
{
SetApplyDataToParentForm(oForm);
CallBackEvent();
}
oForm.Close();
}
示例5: ET_btnAPPLY_AFItemPressed
public virtual void ET_btnAPPLY_AFItemPressed(ItemEvent pVal)
{
oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
oButton = ((SAPbouiCOM.Button)(oForm.Items.Item("btnAPPLY").Specific));
// ADD YOUR ACTION CODE HERE ...
SetApplyDataToParentForm_2(oForm);
oForm.Close();
}
示例6: ET_1_AFItemPressed
public virtual void ET_1_AFItemPressed(ItemEvent pVal)
{
oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
oButton = ((SAPbouiCOM.Button)(oForm.Items.Item("1").Specific));
// ADD YOUR ACTION CODE HERE ...
oForm.Close();
}
示例7: ET_btn1_AFItemPressed
public virtual void ET_btn1_AFItemPressed(ItemEvent pVal) {
oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
oButton = ((SAPbouiCOM.Button)(oForm.Items.Item("btn1").Specific));
// ADD YOUR ACTION CODE HERE ...
try
{
oGrid = oForm.Items.Item("grd1").Specific;
string DocEntry = string.Empty;
if (oGrid.Rows.SelectedRows.Count > 0)
{
int iRowindex = oGrid.Rows.SelectedRows.Item(0, BoOrderType.ot_RowOrder);
DocEntry = ((int)oGrid.DataTable.GetValue("DOCENTRY", iRowindex)).ToString();
LoadSubForm(oForm, "KIS_TR0031_HRD", DocEntry);
}
}
catch (Exception ex)
{
B1Connections.theAppl.StatusBar.SetText(ex.Message, BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Error);
}
finally
{
oForm.Close();
}
}
示例8: SubFormCopy
/// <summary>
/// 광고수주오더에서 광고매출확정으로 관련 항목 데이터 복제시 사용합니다.
/// </summary>
/// <param name="KIS_SD0030_HRD_FormUid">광고수주오더 폼UID</param>
public void SubFormCopy(string KIS_SD0030_HRD_FormUid)
{
this.LoadForm();
//광고매출확정 폼
oForm = B1Connections.theAppl.Forms.Item(formuid);
//광고수주오더 폼
SAPbouiCOM.Form oForm_KIS_SD0030_HRD = B1Connections.theAppl.Forms.Item(KIS_SD0030_HRD_FormUid);
this.Act1_FormInit();
try
{
SAPbouiCOM.DBDataSource oKIS_SD0030T_HRD = oForm_KIS_SD0030_HRD.DataSources.DBDataSources.Item("@KIS_SD0030T_HRD");
SAPbouiCOM.DBDataSource oKIS_SD00301_HRD = oForm_KIS_SD0030_HRD.DataSources.DBDataSources.Item("@KIS_SD00301_HRD");
SAPbouiCOM.DBDataSource oKIS_SD0050T_HRD = oForm.DataSources.DBDataSources.Item("@KIS_SD0050T_HRD");
SAPbouiCOM.DBDataSource oKIS_SD00501_HRD = oForm.DataSources.DBDataSources.Item("@KIS_SD00501_HRD");
SetDBDataSourceCopy_Header(oKIS_SD0030T_HRD, oKIS_SD0050T_HRD);
SetDBDataSourceCopy_Line(oKIS_SD00301_HRD, oKIS_SD00501_HRD);
oForm.Visible = true;
}
catch (Exception ex)
{
B1Connections.theAppl.StatusBar.SetText(ex.Message, BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Error);
oForm.Close();
}
}
示例9: ET_btnSAVE_AFItemPressed
public virtual void ET_btnSAVE_AFItemPressed(ItemEvent pVal)
{
oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
oButton = ((SAPbouiCOM.Button)(oForm.Items.Item("btnSAVE").Specific));
oGrid = (SAPbouiCOM.Grid)oForm.Items.Item("grd").Specific;
// ADD YOUR ACTION CODE HERE ...
if (oGrid.DataTable.Rows.Count != 0)
{
SetApplyDataToMatrix(oForm);
oForm.Close();
}
else
{
B1Connections.theAppl.StatusBar.SetText("추가할 데이터가 없습니다", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error);
}
}