• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# SAPbouiCOM类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中SAPbouiCOM的典型用法代码示例。如果您正苦于以下问题:C# SAPbouiCOM类的具体用法?C# SAPbouiCOM怎么用?C# SAPbouiCOM使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



SAPbouiCOM类属于命名空间,在下文中一共展示了SAPbouiCOM类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: SetComboBoxValue

        public void SetComboBoxValue(SAPbouiCOM.ComboBox cb, string value) //combobox a değer set et
        {
            try
            {
                cb.Select(value);
            }
            catch
            {

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


示例17: MenuEvent

 public override void MenuEvent(ref SAPbouiCOM.MenuEvent pVal, out bool BubbleEvent)
 {
     BubbleEvent = true;
     if (pVal.MenuUID == "DeleteLine")
     {
         if (RowToDeleteIndex > 0)
         {
             this.UIAPIRawForm.Mode = SAPbouiCOM.BoFormMode.fm_UPDATE_MODE;
         }
     }
 }
开发者ID:HoussamSaghir,项目名称:ITCO,代码行数:11,代码来源:frm_TransferSetup.b1f.cs


示例18: SelectComboBoxValue

        public void SelectComboBoxValue(SAPbouiCOM.Form oForm, SAPbobsCOM.Recordset oRecordSet, string uniqId, string field) //combobox a değer set et
        {
            try
            {
                string val = oRecordSet.Fields.Item(field).Value.ToString();
                ((SAPbouiCOM.ComboBox)oForm.Items.Item(uniqId).Specific).Select(val);
            }
            catch
            {

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


示例19: Act3_DefualtSetting

 /// <summary>
 /// 폼(Form) 및 아이템들(Items)의 기본값으로 설정되야하는 항목들을 정의합니다.
 /// </summary>
 private void Act3_DefualtSetting(SAPbouiCOM.Form oForm)
 {
     // '// ADD YOUR ACTION CODE HERE ...
     try
     {
         CreateItem(oForm);
     }
     catch (Exception ex)
     {
         B1Connections.theAppl.StatusBar.SetText("Act3_DefualtSetting : " + ex.ToString(), SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error);
     }
 }
开发者ID:wldyd0210,项目名称:TEST,代码行数:15,代码来源:KIS_SO_COR60506_HRD.cs


示例20: TransferItemsProcess

        public static void TransferItemsProcess(SAPbouiCOM.Application oApp, string referenceNumber, List<SelectedBatchDataSources> issueBatchDSList, List<SelectedBatchDataSources> receiptBatchDSList, List<TransferItem> issueItemsList, List<TransferItem> receiptItemsList)
        {
            try
            {
                B1Helper.DiCompany.StartTransaction();

                Task t1 = Task.Run(delegate()
                 {
                     foreach (var tItem in issueItemsList)
                     {
                         B1Helper.CreateTransferGoodsIssue(oApp, referenceNumber, tItem.IssueItemCode, Convert.ToDouble(tItem.Quantity), tItem.FromWhs);
                     }
                 });

                Task t2 = Task.Run(delegate()
                         {
                             foreach (var ds in issueBatchDSList)
                             {
                                 B1Helper.CreateTransferGoodsIssue(oApp, referenceNumber, ds.ItemCode, Convert.ToDouble(ds.Quantity), ds.WhsCode, ds.SelectedBatches);
                             }
                         });

                Task t3 = Task.Run(delegate()
                        {
                            foreach (var ds in receiptBatchDSList)
                            {
                                B1Helper.CreateTransferGoodsReceipt(oApp, referenceNumber, ds.ItemCode, Convert.ToDouble(ds.Quantity), ds.WhsCode, (ds.AddAmount/ds.Quantity) + ds.AvgPrice, ds.SelectedBatches);
                            }
                        });
                Task t4 = Task.Run(delegate()
               {
                   foreach (var receiptItem in receiptItemsList)
                   {
                       B1Helper.CreateTransferGoodsReceipt(oApp, referenceNumber, receiptItem.ReceiptItemCode, Convert.ToDouble(receiptItem.Quantity), receiptItem.ToWhs, receiptItem.AvgCost + (receiptItem.AddCost / receiptItem.Quantity));
                   }
               });

                Task.WaitAll(t1, t2, t3, t4);
                B1Helper.DiCompany.EndTransaction(SAPbobsCOM.BoWfTransOpt.wf_Commit);
            }
            catch (Exception ex)
            {
                var id = Convert.ToInt32(referenceNumber);
                Utilities.LogException(ex);
                B1Helper.DeleteRecord(id);
                B1Helper.DiCompany.EndTransaction(SAPbobsCOM.BoWfTransOpt.wf_RollBack);
            }
        }
开发者ID:HoussamSaghir,项目名称:ITCO,代码行数:48,代码来源:AddonInfoInfo.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# SC类代码示例发布时间:2022-05-24
下一篇:
C# RuntimeTypeHandle类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap