Beispiel #1
0
        public override void AfterConstruction()
        {
            base.AfterConstruction();
            //prodDoc
            boAttachmentBibliothek chosenLibary = this.Session.FindObject <boAttachmentBibliothek>(new BinaryOperator("Key", "manufacturerDoc", BinaryOperatorType.Equal));

            if (chosenLibary != null)
            {
                this.Bibliothek = chosenLibary;
            }
        }
Beispiel #2
0
        public override void AfterConstruction()
        {
            base.AfterConstruction();
            // Place your initialization code here (https://documentation.devexpress.com/eXpressAppFramework/CustomDocument112834.aspx).
            boAttachmentBibliothek chosenLibary = this.Session.FindObject <boAttachmentBibliothek>(new BinaryOperator("Key", "equipDoc", BinaryOperatorType.Equal));

            if (chosenLibary != null)
            {
                this.Bibliothek = chosenLibary;
            }
        }
        public override void AfterConstruction()
        {
            base.AfterConstruction();

            boAttachmentBibliothek relatedLibary = this.Session.FindObject <boAttachmentBibliothek>(new BinaryOperator("Key", "KwpContract", BinaryOperatorType.Equal));

            if (relatedLibary != null)
            {
                this.Bibliothek = relatedLibary;
            }
        }
Beispiel #4
0
        public override void AfterConstruction()
        {
            base.AfterConstruction();
            //hier auch wieder die Bibliothek zuordnen
            //prodDoc
            boAttachmentBibliothek chosenLibary = this.Session.FindObject <boAttachmentBibliothek>(new BinaryOperator("Key", "prodDoc", BinaryOperatorType.Equal));

            if (chosenLibary != null)
            {
                this.Bibliothek = chosenLibary;
            }
            //wenn das Produkt da ist
            if (this.HerstellerProdukt != null)
            {
            }
        }
Beispiel #5
0
        protected override void OnChanged(string propertyName, object oldValue, object newValue)
        {
            base.OnChanged(propertyName, oldValue, newValue);
            switch (propertyName)
            {
            case "Mandant":
                //immer auf die Standardbibliothek setzen
                if (newValue != null)
                {
                    boMandant selectedMandant     = (boMandant)newValue;
                    boAttachmentBibliothek curBib = this.Session.FindObject <boAttachmentBibliothek>(new GroupOperator(new BinaryOperator("Mandant.Oid", selectedMandant.Oid, BinaryOperatorType.Equal), new BinaryOperator("Bezeichnung", "Standardbibliothek", BinaryOperatorType.Equal)));
                    if (curBib != null)
                    {
                        this.Bibliothek = this.Session.GetObjectByKey <boAttachmentBibliothek>(curBib.Oid);
                    }
                }
                break;

            case "File":
                this.Filesize = this.File.Size;
                //this.Extension = this.File.FileName.Substring(this.File.FileName.LastIndexOf('.'), this.File.FileName.Length-1);
                break;
            }
        }