Esempio n. 1
0
        public override void GetAttrMulti(FLOObj O)
        {
            FLOB2O o = (FLOB2O)O;

            o.B2O_cosqty = (int)this.nud_consqty.Value;

            if (this.nud_altpriority.Enabled)
            {
                o.B2O_altpriority = (int)this.nud_altpriority.Value;
            }
        }
Esempio n. 2
0
        public override void GetAttr(FLOObj O)
        {
            FLOB2O o = (FLOB2O)O;

            o.B2O_cosqty   = (int)this.nud_consqty.Value;
            o.B2O_constype = (FLOObj.BOMTYPE) this.cb_constype.SelectedItem;

            if (this.cb_altbuffer.SelectedItem != null)
            {
                o.B2O_altbuf = this.cb_altbuffer.SelectedItem.ToString();
            }

            o.B2O_altpriority = (int)this.nud_altpriority.Value;
        }
Esempio n. 3
0
        public override void SetAttr(FLOObj O)
        {
            FLOB2O o = (FLOB2O)O;

            this.tb_bompre.Text            = FLOObj.BMPRE;
            this.tb_bom.Text               = o.RTlist(0).Ope_operation;
            this.tb_bomsite.Text           = o.RTlist(0).Ope_operationsite;
            this.nud_bomseq.Value          = (decimal)o.RTlist(0).Ope_operationseq;
            this.tb_item.Text              = o.LTlist(0).Buf_item;
            this.tb_site.Text              = o.LTlist(0).Buf_site;
            this.nud_consqty.Value         = (decimal)o.B2O_cosqty;
            this.cb_constype.SelectedItem  = o.B2O_constype;
            this.cb_altbuffer.SelectedItem = o.B2O_altbuf;
            this.nud_altpriority.Value     = (decimal)o.B2O_altpriority;
        }
Esempio n. 4
0
        public override void SetAttrMulti(FLOObj O)
        {
            FLOB2O o = (FLOB2O)O;

            if (init)
            {
                this.tb_bompre.Text            = FLOObj.BMPRE;
                this.tb_bom.Text               = o.RTlist(0).Ope_operation;
                this.tb_bomsite.Text           = o.RTlist(0).Ope_operationsite;
                this.nud_bomseq.Value          = (decimal)o.RTlist(0).Ope_operationseq;
                this.tb_item.Text              = o.LTlist(0).Buf_item;
                this.tb_site.Text              = o.LTlist(0).Buf_site;
                this.nud_consqty.Value         = (decimal)o.B2O_cosqty;
                this.cb_constype.SelectedItem  = o.B2O_constype;
                this.cb_altbuffer.SelectedItem = o.B2O_altbuf;
                this.nud_altpriority.Value     = (decimal)o.B2O_altpriority;
            }

            init = false;

            if (this.tb_bom.Text != o.RTlist(0).Ope_operation)
            {
                this.tb_bom.Text = "";
            }
            if (this.tb_bomsite.Text != o.RTlist(0).Ope_operationsite)
            {
                this.tb_bomsite.Text = "";
            }
            if (this.tb_item.Text != o.LTlist(0).Buf_item)
            {
                this.tb_item.Text = "";
            }
            if (this.tb_site.Text != o.LTlist(0).Buf_site)
            {
                this.tb_site.Text = "";
            }
            if (this.nud_bomseq.Value != (decimal)o.RTlist(0).Ope_operationseq)
            {
                this.nud_bomseq.Value = 0;
            }
            if (this.nud_consqty.Value != (decimal)o.B2O_cosqty)
            {
                this.nud_consqty.Value = 0;
            }
            if (this.nud_altpriority.Value != (decimal)o.B2O_altpriority)
            {
                this.nud_altpriority.Value = 0;
            }
            if (this.cb_constype.SelectedItem != null)
            {
                if (this.cb_constype.SelectedItem.ToString() != o.B2O_constype.ToString())
                {
                    this.cb_constype.SelectedItem = "";
                }
            }
            if (this.cb_altbuffer.SelectedItem != null)
            {
                if (this.cb_altbuffer.SelectedItem.ToString() != o.B2O_altbuf.ToString())
                {
                    this.cb_altbuffer.SelectedItem = "";
                }
            }
        }