本文整理汇总了C#中SAPbouiCOM.Form类的典型用法代码示例。如果您正苦于以下问题:C# Form类的具体用法?C# Form怎么用?C# Form使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Form类属于SAPbouiCOM命名空间,在下文中一共展示了Form类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: A00_SubFormInit
public void A00_SubFormInit(string pStrPFormUID, int pRows = -1, string extCOM = "", string popupID = "", string callBack = "CallBack")
{
this.LoadForm();
oForm = B1Connections.theAppl.Forms.ActiveForm;
oForm.Freeze(true);
Act02_DataSourcesBinding(oForm, pRows, extCOM, popupID, callBack);
Act03_DefualtSetting(oForm, pStrPFormUID);
#region 콜백버튼생성
if (!FN.GetItemExistsChk(pForm, callBack))
{
pForm.Freeze(true);
SAPbouiCOM.Item oItm;
oItm = pForm.Items.Add(callBack, BoFormItemTypes.it_BUTTON);
oItm.Top = -100;
oItm.Left = -100;
oItm.Width = 1;
oItm.Height = 1;
oItm.LinkTo = "";
SAPbouiCOM.Button oButton = (SAPbouiCOM.Button)oItm.Specific;
oButton.Caption = popupID;
pForm.Freeze(false);
}
#endregion
oForm.Freeze(false);
}
示例2: SubFormInit
//[B1Listener(BoEventTypes.et_MENU_CLICK, true, ActionType.Mnu)]
//public virtual bool ET_BFMenuClick(MenuEvent pVal) {
// // GENERATED CODE
// // ADD YOUR ACTION CODE HERE ...
// return this.LoadForm();
//}
//[B1Listener(BoEventTypes.et_MENU_CLICK, false, ActionType.Mnu)]
//public virtual void ET_OnAfterMenuClick(MenuEvent pVal) {
// // GENERATED CODE
// oForm = B1Connections.theAppl.Forms.Item(formuid);
// oForm.Freeze(true);
// this.FormInit(oForm);
// oForm.Freeze(false);
// // ADD YOUR ACTION CODE HERE ...
//}
public void SubFormInit(string Pformuid)
{
this.LoadForm();
oForm = B1Connections.theAppl.Forms.Item(formuid);
oForm.Freeze(true);
this.Act1_FormInit(Pformuid);
oForm.Freeze(false);
}
示例3: 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 ...
}
示例4: SubFormInit
//[B1Listener(BoEventTypes.et_MENU_CLICK, true, ActionType.Mnu)]
//public virtual bool ET_BFMenuClick(MenuEvent pVal) {
// // ADD YOUR ACTION CODE HERE ...
// return this.LoadForm();
//}
//[B1Listener(BoEventTypes.et_MENU_CLICK, false, ActionType.Mnu)]
//public virtual void ET_OnAfterMenuClick(MenuEvent pVal) {
// oForm.Freeze(true);
// this.Act1_FormInit();
// oForm.Freeze(false);
// // ADD YOUR ACTION CODE HERE ...
//}
public void SubFormInit(string Pformuid, string pCol, string ColName, string Col, string FRCol = "", string TOCol = "")
{
this.LoadForm();
oForm = B1Connections.theAppl.Forms.Item(formuid);
oForm.Freeze(true);
this.Act1_FormInit(Pformuid, pCol, ColName, Col, FRCol, TOCol);
oForm.Freeze(false);
}
示例5: Act1_FormInit
/// <summary>
/// 화면 팝업에 필요한 설정정보를 호출합니다.
/// </summary>
private void Act1_FormInit() {
// '// ADD YOUR ACTION CODE HERE ...
oForm = B1Connections.theAppl.Forms.Item(formuid);
this.Act2_DataSourcesBinding();
this.Act3_DefualtSetting();
this.Act4_FormMenuSetting();
oForm.Visible = true;
}
示例6: Act1_FormInit
/// <summary>
/// 화면 팝업에 필요한 설정정보를 호출합니다.
/// </summary>
private void Act1_FormInit()
{
oForm = B1Connections.theAppl.Forms.ActiveForm;
oForm.Freeze(true);
Act2_DataSourcesBinding(oForm);
Act3_DefualtSetting(oForm);
//Act4_FormMenuSetting(oForm);
//FindData(false)
oForm.Freeze(false);
}
示例7: ClearUnManagedObject
private void ClearUnManagedObject() {
if ( oButton != null ) { Marshal.ReleaseComObject(oButton); } oButton = null;
if ((oForm != null)) {
Marshal.ReleaseComObject(oForm);
}
oForm = null;
// ADD YOUR ACTION CODE HERE ...
System.GC.Collect();
System.GC.WaitForPendingFinalizers();
}
示例8: A00_SubFormInit
//protected KIS_SO0031F_HRD(string strFormType, string strFormUID, bool bAddOn)
// : base(strFormType, strFormUID, bAddOn)
//{
//}
//[B1Listener(BoEventTypes.et_MENU_CLICK, true, ActionType.Mnu)]
//public virtual bool ET_BFMenuClick(MenuEvent pVal) {
// // ADD YOUR ACTION CODE HERE ...
// return this.LoadForm();
//}
//[B1Listener(BoEventTypes.et_MENU_CLICK, false, ActionType.Mnu)]
//public virtual void ET_OnAfterMenuClick(MenuEvent pVal) {
// oForm.Freeze(true);
// this.Act1_FormInit();
// oForm.Freeze(false);
// // ADD YOUR ACTION CODE HERE ...
//}
public void A00_SubFormInit(string pStrPFormUID, Dictionary<string, string> pParamDict)
{
this.LoadForm();
oForm = B1Connections.theAppl.Forms.ActiveForm;
oForm.Freeze(true);
Act02_DataSourcesBinding(oForm);
Act03_DefualtSetting(oForm, pStrPFormUID, pParamDict);
oForm.Freeze(false);
}
示例9: Act1_FormInit
/// <summary>
/// 화면 팝업에 필요한 설정정보를 호출합니다.
/// </summary>
private void Act1_FormInit()
{
// '// ADD YOUR ACTION CODE HERE ...
oForm = B1Connections.theAppl.Forms.ActiveForm;
oForm.Freeze(true);
Act2_DataSourcesBinding(oForm);
Act3_DefualtSetting(oForm, "");
Act4_FormMenuSetting(oForm);
//FindData(false)
oForm.Freeze(false);
}
示例10: A00_SubFormInit
/// <summary>
/// 화면 팝업에 필요한 설정정보를 호출합니다.
/// </summary>
public void A00_SubFormInit(string pStrPFormUID)
{
this.LoadForm();
oForm = B1Connections.theAppl.Forms.ActiveForm;
oForm.Freeze(true);
Act02_DataSourcesBinding(oForm);
Act03_DefualtSetting(oForm, pStrPFormUID);
Act04_FormMenuSetting();
oForm.Freeze(false);
}
示例11: Act0_SubFormInit
/// <summary>
/// 화면 팝업에 필요한 설정정보를 호출합니다.
/// </summary>
public void Act0_SubFormInit(string pStrPFormUID)
{
// '// ADD YOUR ACTION CODE HERE ...
this.LoadForm();
oForm = B1Connections.theAppl.Forms.ActiveForm;
SAPbouiCOM.Form pForm = B1Connections.theAppl.Forms.Item(pStrPFormUID);
pForm.DataSources.UserDataSources.Item("cFormDOC").Value = oForm.UniqueID;
this.Act2_DataSourcesBinding();
this.Act3_DefualtSetting(oForm, pStrPFormUID);
this.Act4_FormMenuSetting();
}
示例12: 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);
}
}
示例13: Act0_SubFormInit
public void Act0_SubFormInit(string pStrPFormUID, string pDocEntry, string sDocEntry = "")
{
this.LoadForm();
oForm = B1Connections.theAppl.Forms.ActiveForm;
SAPbouiCOM.Form pForm = B1Connections.theAppl.Forms.Item(pStrPFormUID);
// UserDataSource 가 있는지 체크한다.(모달팝업여부)
if (FN.GetUserDataSourceExistsChk(pForm, "cFORMUID"))
pForm.DataSources.UserDataSources.Item("cFORMUID").Value = oForm.UniqueID;
oForm.Freeze(true);
Act2_DataSourcesBinding(oForm);
Act3_DefualtSetting(oForm, pStrPFormUID, pDocEntry, sDocEntry);
Act4_FormMenuSetting(oForm);
oForm.Freeze(false);
}
示例14: SubFormInit
public void SubFormInit(string KeyValue)
{
this.LoadForm();
oForm = B1Connections.theAppl.Forms.Item(formuid);
oForm.Freeze(true);
this.Act1_FormInit();
oForm.Freeze(false);
oForm.Visible = true;
oForm.Mode = BoFormMode.fm_FIND_MODE;
oEditText = (SAPbouiCOM.EditText)oForm.Items.Item("edtCODE").Specific;
oEditText.Value = KeyValue;
SAPbouiCOM.Item oItem = oForm.Items.Item("1");
oItem.Click();
oItem = null;
}
示例15: ET_1_BFItemPressed
public virtual bool ET_1_BFItemPressed(ItemEvent pVal) {
oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
oButton = ((SAPbouiCOM.Button)(oForm.Items.Item("1").Specific));
// ADD YOUR ACTION CODE HERE ...
try
{
switch (oForm.Mode)
{
case BoFormMode.fm_ADD_MODE:
if (CheckValues() == false)
{
return false;
}
break;
case BoFormMode.fm_EDIT_MODE:
break;
case BoFormMode.fm_FIND_MODE:
break;
case BoFormMode.fm_OK_MODE:
break;
case BoFormMode.fm_PRINT_MODE:
break;
case BoFormMode.fm_UPDATE_MODE:
if (CheckValues() == false)
{
return false;
}
break;
case BoFormMode.fm_VIEW_MODE:
break;
default:
break;
}
}
catch (Exception ex)
{
B1Connections.theAppl.StatusBar.SetText(ex.Message, BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Error);
}
return true;
}