本文整理汇总了C#中SAPbouiCOM类的典型用法代码示例。如果您正苦于以下问题:C# SAPbouiCOM类的具体用法?C# SAPbouiCOM怎么用?C# SAPbouiCOM使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SAPbouiCOM类属于命名空间,在下文中一共展示了SAPbouiCOM类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AddAvarias
public static void AddAvarias(int idOOPR, string descricao, SAPbobsCOM.Company oCompany, SAPbouiCOM.Application SBO_Application)
{
SAPbobsCOM.GeneralService oGeneralService = null;
SAPbobsCOM.GeneralData oGeneralData = null;
SAPbobsCOM.GeneralDataParams oGeneralParams = null;
SAPbobsCOM.CompanyService oCompanyService = null;
string proxCode = GetProxCodeAvarias(oCompany);
try
{
oCompanyService = oCompany.GetCompanyService();
oGeneralService = oCompanyService.GetGeneralService("FLX_FB_AVR");
oGeneralData = ((SAPbobsCOM.GeneralData)(oGeneralService.GetDataInterface(SAPbobsCOM.GeneralServiceDataInterfaces.gsGeneralData)));
oGeneralData.SetProperty("Code", proxCode);
oGeneralData.SetProperty("Name", proxCode);
oGeneralData.SetProperty("U_FLX_FB_AVR_IDOOPR", idOOPR);
oGeneralData.SetProperty("U_FLX_FB_AVR_DESC", descricao);
oGeneralParams = oGeneralService.Add(oGeneralData);
}
catch (Exception ex)
{
SBO_Application.MessageBox(ex.Message, 1, "Ok", "", "");
}
}
示例2: FormInit
public void FormInit(SAPbouiCOM.Form oForm)
{
oForm = B1Connections.theAppl.Forms.Item(formuid);
oForm.Freeze(true);
this.Act1_FormInit();
oForm.Freeze(false);
}
示例3: MenuEvent
public override void MenuEvent(ref SAPbouiCOM.MenuEvent pVal, out bool BubbleEvent)
{
BubbleEvent = true;
this.UIAPIRawForm.Freeze(true);
try
{
if (pVal.MenuUID == "AddLine")
{
if (this.UIAPIRawForm.Mode == SAPbouiCOM.BoFormMode.fm_UPDATE_MODE || this.UIAPIRawForm.Mode == SAPbouiCOM.BoFormMode.fm_OK_MODE ||
this.UIAPIRawForm.Mode == SAPbouiCOM.BoFormMode.fm_ADD_MODE)
{
mtxCost.AddLine();
//mtxCost.AddRowIndex();
mtxCost.FlushToDataSource();
}
}
if (pVal.MenuUID == "DeleteLine")
{
if (RowToDeleteIndex > 0)
{
mtxCost.DeleteRow(RowToDeleteIndex);
mtxCost.FlushToDataSource();
this.UIAPIRawForm.Mode = SAPbouiCOM.BoFormMode.fm_UPDATE_MODE;
}
}
}
catch (Exception ex)
{
Utilities.LogException(ex);
}
finally
{
this.UIAPIRawForm.Freeze(false);
}
}
示例4: EventDispatcher
public EventDispatcher(SAPbouiCOM.Application sapApp, MenuEventHandler menuHandler,
AddinAppEventHandler addinAppEventHandler)
{
this.sapApp = sapApp;
this.menuHandler = menuHandler;
this.addinAppEventHandler = addinAppEventHandler;
}
示例5: GetGridCalc_SumValue
/// <summary>
/// 체크된 행의 그리드 컬럼 합계를 계산하고 요청한 컬럼의 행 합계를 반환합니다.
/// </summary>
public static double GetGridCalc_SumValue(ref SAPbouiCOM.Form oForm, string ColumUid)
{
try
{
SAPbouiCOM.Grid oGrid = oForm.Items.Item("grd1").Specific;
XDocument root = XDocument.Parse(oGrid.DataTable.SerializeAsXML(BoDataTableXmlSelect.dxs_DataOnly));
var query =
from
c in root.Descendants("Row")
where c.Elements("Cells").Elements("Cell").Any(o => o.Element("ColumnUid").Value == "U_CHK" && o.Element("Value").Value == "Y")
select c;
//금액 집계
double U_DEPAMT = GetCoumnValue(query, ColumUid).Sum();//총 입금액
oGrid = null;
return U_DEPAMT;
}
catch (Exception)
{
throw;
}
}
示例6: SetGridSumField
/// <summary>
/// 그리드의 컬럼 합계를 조작합니다.
/// </summary>
/// <param name="oGrid"></param>
/// <param name="columnNames"></param>
/// <param name="bst_Value"></param>
internal static void SetGridSumField(ref SAPbouiCOM.Grid oGrid, string columnNames, BoColumnSumType bst_Value = BoColumnSumType.bst_Auto)
{
string[] columnName;
SAPbouiCOM.GridColumn oGC = null;
SAPbouiCOM.EditTextColumn oEditGC = null;
try
{
columnName = columnNames.Split(',');
for (int iLooper = 0; iLooper <= (columnName.Length - 1); iLooper++)
{
oGC = oGrid.Columns.Item(columnName[iLooper].Trim());
oGC.Type = SAPbouiCOM.BoGridColumnType.gct_EditText;
oEditGC = (SAPbouiCOM.EditTextColumn)oGC;
oEditGC.ColumnSetting.SumType = bst_Value;
}
}
catch (System.Exception ex)
{
B1Connections.theAppl.StatusBar.SetText(ex.Message, BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Error);
}
finally
{
oGC = null;
oEditGC = null;
columnName = null;
}
}
示例7: CryptoService
public CryptoService(SAPbouiCOM.Application app)
{
string _systemNumer = app.Company.SystemId.Trim();
string _instalationNumber = app.Company.InstallationId.Trim();
ENCRYPTION_KEY = _systemNumer + _instalationNumber;
}
示例8: FormEventHandler
public FormEventHandler(SAPbouiCOM.Application sapApp, PermissionManager permissionManager,
B1SResourceManager resourceManager)
{
this.sapApp = sapApp;
this.permissionManager = permissionManager;
this.resourceManager = resourceManager;
}
示例9: Act1_FormInit
//[B1Listener(BoEventTypes.et_MENU_CLICK, true, ActionType.Mnu)]
//public virtual bool ET_BFMenuClick(MenuEvent pVal)
//{
// // ADD YOUR ACTION CODE HERE ...
// return true;
//}
//[B1Listener(BoEventTypes.et_MENU_CLICK, false, ActionType.Mnu)]
//public virtual void ET_OnAfterMenuClick(MenuEvent pVal)
//{
// oForm.Freeze(true);
// this.Act1_FormInit(oForm);
// oForm.Freeze(false);
// // ADD YOUR ACTION CODE HERE ...
//}
/// <summary>
/// 화면 팝업에 필요한 설정정보를 호출합니다.
/// </summary>
private void Act1_FormInit(SAPbouiCOM.Form oForm)
{
// '// ADD YOUR ACTION CODE HERE ...
this.Act2_DataSourcesBinding();
this.Act3_DefualtSetting(oForm);
this.Act4_FormMenuSetting();
}
示例10: btnAddRow_ClickAfter
void btnAddRow_ClickAfter(object sboObject, SAPbouiCOM.SBOItemEventArg pVal)
{
mtxCost.AddLine();
//mtxCost.AddRowIndex();
mtxCost.AddRowIndex();
mtxCost.FlushToDataSource();
this.UIAPIRawForm.Mode = SAPbouiCOM.BoFormMode.fm_UPDATE_MODE;
}
示例11: GetFormAfterAction
internal static SAPbouiCOM.Form GetFormAfterAction(string formType, SAPbouiCOM.Application application, Action invoke)
{
int beforeCount = GetFormTypeCount(formType, application);
invoke();
int afterCount = GetFormTypeCount(formType, application);
Assert.AreNotSame(beforeCount, afterCount);
return application.Forms.GetForm(formType, beforeCount);
}
示例12: FillComboBox
public void FillComboBox(SAPbouiCOM.ComboBox cb, List<ComboEntity> datasource)
{
foreach (var item in datasource)
{
cb.ValidValues.Add(item.Value, item.Description);
}
}
示例13: A01_FormInit
private void A01_FormInit(SAPbouiCOM.Form oForm)
{
//'Initialize.....
//DataBinded(ref oForm);
//Call LabelInit(oForm)
//Form_Default(oForm);
//MenuSetting(ref oForm);
//FindData(false)
}
示例14: Act1_FormInit
private void Act1_FormInit(SAPbouiCOM.Form oForm)
{
oForm.Freeze(true);
Act2_DataSourcesBinding(oForm);
//Call LabelInit(oForm)
Act3_DefualtSetting(oForm, "", "");
Act4_FormMenuSetting(oForm);
//FindData(false)
oForm.Freeze(false);
}
示例15: GetFormTypeCount
internal static int GetFormTypeCount(string formType, SAPbouiCOM.Application application)
{
int count = 1;
for (int i = 0; i < application.Forms.Count; i++)
{
if (application.Forms.Item(i).TypeEx == formType)
count++;
}
return count;
}