示例#1
0
        protected override API.Business.Table <API.CRM.Kontrahent> CreateTable(API.Business.Session session)
        {
            var table = session.GetModule <Enova.API.CRM.CRMModule>().Kontrahenci;

            table.Filter = getFilter();
            return(table);
        }
 public DataGridFormWithEnovaAPI()
 {
     if (!this.DesignMode)
     {
         session = API.EnovaService.Instance.CreateSession();
     }
     InitializeComponent();
 }
 protected override void OnClosed(EventArgs e)
 {
     base.OnClosed(e);
     if (session != null)
     {
         session.Dispose();
     }
     session = null;
 }
示例#4
0
            public static IEnumerable <API.CRM.Kontrahent> ByPrzedstawiciel(API.Business.Session session, string przedstawiciel)
            {
                string filter = "";

                if (!string.IsNullOrEmpty(przedstawiciel))
                {
                    filter = "Features.[przedstawiciel] = '" + przedstawiciel + "'";
                }
                return(Get(session, filter));
            }
示例#5
0
 protected override API.Business.Table <API.Kasa.RozrachunekIdx> CreateTable(API.Business.Session session)
 {
     return(session.GetModule <API.Kasa.KasaModule>().RozrachunkiIdx);
 }
示例#6
0
 //protected override API.Business.Table<API.Kasa.DokRozlicz> CreateTable(API.Business.Session session)
 protected override API.Business.Table <API.Kasa.DokRozliczBase> CreateTable(API.Business.Session session)
 {
     return(session.GetModule <API.Kasa.KasaModule>().DokRozliczeniowe);
 }
示例#7
0
 //protected override API.Business.Table<API.Kasa.IPozycjaDokRozlicz> CreateTable(API.Business.Session session)
 protected override API.Business.Table <API.Kasa.PozycjaDokRozlicz> CreateTable(API.Business.Session session)
 {
     throw new NotImplementedException();
 }
示例#8
0
        protected override API.Business.Table <API.Business.DictionaryItem> CreateTable(API.Business.Session session)
        {
            var table = session.GetModule <API.Business.BusinessModule>().Dictionary;

            table.Filter = @"Category = '" + category + "'";
            return(table);
        }
示例#9
0
 public static API.CRM.CRMModule GetModule(API.Business.Session session)
 {
     return(session.GetModule <API.CRM.CRMModule>());
 }
示例#10
0
 public static IEnumerable <API.CRM.Kontrahent> Get(API.Business.Session session, string filter = null)
 {
     return(GetModule(session).Kontrahenci.CreateView().SetFilter(filter).Cast <API.CRM.Kontrahent>());
 }