Пример #1
0
        private void InsertActivePrefix()
        {
            Tables.PrefixesT lObjPrefixesT = new Tables.PrefixesT();

            lObjPrefixesT.Prefix = lObjCmbPrefixes.Value;
            lObjPrefixesT.Active = "Y";

            int lIntResult = lObjPrefixesService.SaveActivePrefix(lObjPrefixesT);

            if (lIntResult != 0)
            {
                string lStrError = DIApplication.Company.GetLastErrorDescription();
                Application.SBO_Application.StatusBar.SetText(lStrError
                                                              , SAPbouiCOM.BoMessageTime.bmt_Long, SAPbouiCOM.BoStatusBarMessageType.smt_Error);
            }
        }
Пример #2
0
        private void UpdatePreviousPrefix(string lStrPrefix, int lIntRowCode)
        {
            Tables.PrefixesT lObjPrefixesT = new Tables.PrefixesT();

            lObjPrefixesT.Prefix  = lStrPrefix;
            lObjPrefixesT.Active  = "N";
            lObjPrefixesT.RowCode = lIntRowCode.ToString();

            int lIntResult = lObjPrefixesService.UpdatePrevPrefix(lObjPrefixesT);

            if (lIntResult != 0)
            {
                string lStrError = DIApplication.Company.GetLastErrorDescription();
                Application.SBO_Application.StatusBar.SetText(lStrError
                                                              , SAPbouiCOM.BoMessageTime.bmt_Long, SAPbouiCOM.BoStatusBarMessageType.smt_Error);
            }
        }