示例#1
0
        public override void GetAttrMulti(FLOObj O)
        {
            FLOOpe o = (FLOOpe)O;

            o.Ope_operationsite = this.tb_operationsite.Text;
            o.Ope_routingpre    = this.tb_routingpre.Text;
            o.Ope_routing       = this.tb_routing.Text;
            o.Ope_runtime       = (int)this.nud_runtime.Value;
            o.Ope_releasefence  = (int)this.nud_releasefence.Value;
        }
示例#2
0
        public override void SetAttr(FLOObj O)
        {
            FLOOpe o = (FLOOpe)O;

            this.tb_operationpre.Text   = o.Ope_operationpre;
            this.tb_operation.Text      = o.Ope_operation;
            this.tb_operationsite.Text  = o.Ope_operationsite;
            this.tb_routingpre.Text     = o.Ope_routingpre;
            this.tb_routing.Text        = o.Ope_routing;
            this.nud_operationseq.Value = (decimal)o.Ope_operationseq;
            this.nud_runtime.Value      = (decimal)o.Ope_runtime;
            this.nud_releasefence.Value = (decimal)o.Ope_releasefence;
        }
示例#3
0
        public override void SetAttrMulti(FLOObj O)
        {
            FLOOpe o = (FLOOpe)O;

            if (init)
            {
                this.tb_operationpre.Text   = o.Ope_operationpre;
                this.tb_operation.Text      = o.Ope_operation;
                this.tb_operationsite.Text  = o.Ope_operationsite;
                this.tb_routingpre.Text     = o.Ope_routingpre;
                this.tb_routing.Text        = o.Ope_routing;
                this.nud_operationseq.Value = (decimal)o.Ope_operationseq;
                this.nud_runtime.Value      = (decimal)o.Ope_runtime;
                this.nud_releasefence.Value = (decimal)o.Ope_releasefence;
            }

            init = false;

            if (this.tb_operationpre.Text != o.Ope_operationpre)
            {
                this.tb_operationpre.Text = "";
            }
            if (this.tb_operation.Text != o.Ope_operation)
            {
                this.tb_operation.Text = "";
            }
            if (this.tb_operationsite.Text != o.Ope_operationsite)
            {
                this.tb_operationsite.Text = "";
            }
            if (this.tb_operationpre.Text != o.Ope_routingpre)
            {
                this.tb_operationpre.Text = "";
            }
            if (this.tb_routing.Text != o.Ope_routing)
            {
                this.tb_routing.Text = "";
            }
            if (this.nud_operationseq.Value != (decimal)o.Ope_operationseq)
            {
                this.nud_operationseq.Value = 0;
            }
            if (this.nud_runtime.Value != (decimal)o.Ope_runtime)
            {
                this.nud_runtime.Value = 0;
            }
            if (this.nud_releasefence.Value != (decimal)o.Ope_releasefence)
            {
                this.nud_releasefence.Value = 0;
            }
        }