Exemple #1
0
        public Dictionary <string, object> GetCechy(Enova.API.Business.Session session)
        {
            Dictionary <string, object> cechy = new Dictionary <string, object>();

            //cechy.Add("KONTRAHENT", this.Zamowienie.Kontrahent);

            //using (var session = Enova.API.EnovaService.Instance.CreateSession())
            //{
            cechy.Add("KONTRAHENT", session.GetModule <Enova.API.CRM.CRMModule>().Kontrahenci[this.Zamowienie.Kontrahent.Guid.Value]);
            //}
            if (!string.IsNullOrEmpty(this.Zamowienie.Pakowacz))
            {
                cechy.Add("PAKOWACZ", this.Zamowienie.Pakowacz);
            }

            if (!string.IsNullOrEmpty(sezonyComboBox.Text))
            {
                cechy.Add("SEZON", sezonyComboBox.Text);
            }

            if (!string.IsNullOrEmpty(przedstawicielComboBox.Text))
            {
                cechy.Add("PRZEDSTAWICIEL", przedstawicielComboBox.Text);
            }

            if (przewoznikComboBox.SelectedIndex > 0)
            {
                cechy.Add("PRZEWOŻNIK", przewoznikComboBox.Text);
            }

            if (!string.IsNullOrEmpty(nrListuTextBox.Text))
            {
                cechy.Add("NR LISTU", nrListuTextBox.Text);
            }

            if (!string.IsNullOrEmpty(iloscPaczekTextBox.Text))
            {
                cechy.Add("ILOSC PACZEK", iloscPaczekTextBox.Text);
            }

            if (placiWysylkeComboBox.SelectedIndex > 0)
            {
                cechy.Add("PŁACI WYSYŁKĘ", placiWysylkeComboBox.Text);
            }

            if (zaPobraniemCheckBox.Checked)
            {
                cechy.Add("ZA POBRANIEM", true);
            }

            return(cechy);
        }
Exemple #2
0
 protected override API.Business.Table <API.Handel.DokumentHandlowy> CreateTable(Enova.API.Business.Session session)
 {
     return(session.GetModule <Enova.API.Handel.HandelModule>().DokHandlowe);
 }