当前位置: 首页>>代码示例>>C#>>正文


C# SAPbouiCOM类代码示例

本文整理汇总了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", "", "");
            }
        }
开发者ID:camillaamaro,项目名称:FluxusFBOne,代码行数:25,代码来源:Avarias.cs

示例2: FormInit

 public void FormInit(SAPbouiCOM.Form oForm)
 {
     oForm = B1Connections.theAppl.Forms.Item(formuid);
     oForm.Freeze(true);
     this.Act1_FormInit();
     oForm.Freeze(false);
 }
开发者ID:wldyd0210,项目名称:TEST,代码行数:7,代码来源:KIS_SO0010A_HRD.cs

示例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);
     }
 }
开发者ID:HoussamSaghir,项目名称:ITCO,代码行数:35,代码来源:frm_ItemAddCost.b1f.cs

示例4: EventDispatcher

 public EventDispatcher(SAPbouiCOM.Application sapApp, MenuEventHandler menuHandler,
     AddinAppEventHandler addinAppEventHandler)
 {
     this.sapApp = sapApp;
     this.menuHandler = menuHandler;
     this.addinAppEventHandler = addinAppEventHandler;
 }
开发者ID:THJLI,项目名称:dover,代码行数:7,代码来源:EventDispatcher.cs

示例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;
            }
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:33,代码来源:TR_COMMON_HRD.cs

示例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;
            }
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:40,代码来源:TR_COMMON_HRD.cs

示例7: CryptoService

        public CryptoService(SAPbouiCOM.Application app)
        {
            string _systemNumer = app.Company.SystemId.Trim();
            string _instalationNumber = app.Company.InstallationId.Trim();

            ENCRYPTION_KEY = _systemNumer + _instalationNumber;
        }
开发者ID:THJLI,项目名称:dover,代码行数:7,代码来源:CryptoService.cs

示例8: FormEventHandler

 public FormEventHandler(SAPbouiCOM.Application sapApp, PermissionManager permissionManager,
     B1SResourceManager resourceManager)
 {
     this.sapApp = sapApp;
     this.permissionManager = permissionManager;
     this.resourceManager = resourceManager;
 }
开发者ID:THJLI,项目名称:dover,代码行数:7,代码来源:FormEventHandler.cs

示例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();
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:26,代码来源:KIS_SO_COR60506_HRD.cs

示例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;
 }
开发者ID:HoussamSaghir,项目名称:ITCO,代码行数:8,代码来源:frm_ItemAddCost.b1f.cs

示例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);
 }
开发者ID:THJLI,项目名称:dover,代码行数:8,代码来源:UIHelper.cs

示例12: FillComboBox

        public void FillComboBox(SAPbouiCOM.ComboBox cb, List<ComboEntity> datasource)
        {
            foreach (var item in datasource)
            {
                cb.ValidValues.Add(item.Value, item.Description);
            }

        }
开发者ID:ozeraydin57,项目名称:Sap-Business-One-B1-Helper-Class,代码行数:8,代码来源:HelperComboBox.cs

示例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)
 }
开发者ID:wldyd0210,项目名称:TEST,代码行数:9,代码来源:KIS_SO0031A_HRD.cs

示例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);
 }
开发者ID:wldyd0210,项目名称:TEST,代码行数:10,代码来源:KIS_SO0141A_HRD.cs

示例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;
 }
开发者ID:THJLI,项目名称:dover,代码行数:10,代码来源:UIHelper.cs


注:本文中的SAPbouiCOM类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。