private void OnCustomInitialize()
        {
            try
            {
                mCmbBank.ExpandType = SAPbouiCOM.BoExpandType.et_DescriptionOnly;
                mCmbAcct.ExpandType = SAPbouiCOM.BoExpandType.et_ValueOnly;

                IList <BankDTO> lLstObjBanks = mBankDAO.GetBanks();
                foreach (BankDTO lObjBank in lLstObjBanks)
                {
                    mCmbBank.ValidValues.Add(lObjBank.BankCode, lObjBank.BankName);
                }

                mCmbAcct.ValidValues.Add("", "");

                LoadComboAuctions();

                //mObjLastAuction = mAuctionDAO.GetLastAuction();


                this.UIAPIRawForm.DataSources.DataTables.Add("SellersDataTable");
                mDtSellers = this.UIAPIRawForm.DataSources.DataTables.Item("SellersDataTable");
                mDtSellers.Columns.Add("Name", SAPbouiCOM.BoFieldsType.ft_Text);
                mDtSellers.Columns.Add("Amount", SAPbouiCOM.BoFieldsType.ft_Price);

                mMtxSellers.Columns.Item("Col_Seller").DataBind.Bind("SellersDataTable", "Name");
                mMtxSellers.Columns.Item("Col_Amount").DataBind.Bind("SellersDataTable", "Amount");
                mMtxSellers.AutoResizeColumns();

                //mObjLastAuction = mAuctionDAO.GetLastAuction();
                //if (mObjLastAuction != null)
                //{
                //    LoadSellers(mObjLastAuction.Folio);
                //    mEdtFolio.Value = mObjLastAuction.Folio;
                //}
                //else
                //{
                //    UIApplication.ShowError("No hay subastas activas.");
                //}
            }
            catch (Exception ex)
            {
                LogUtility.WriteError(string.Format("[CheckGeneration - OnCustomInitialize] Error: {0}", ex.Message));
                UIApplication.ShowMessageBox(ex.Message);
            }
        }
Beispiel #2
0
 public IList <BankDTO> GetBanks()
 {
     return(mObjBankDAO.GetBanks());
 }