Ejemplo n.º 1
0
        public override void SetAttrMulti(FLOObj O)
        {
            FLODmd o = (FLODmd)O;

            if (init)
            {
                this.tb_sorderid.Text            = o.Dmd_sorderid;
                this.dtp_ordereddate.Value       = Convert.ToDateTime(o.Dmd_ordereddate);
                this.nud_orderqty.Value          = (decimal)o.Dmd_orderqty;
                this.nud_orderprirority.Value    = (decimal)o.Dmd_orderpriority;
                this.nud_latenesstolerance.Value = (decimal)o.Dmd_latenesstolerance;

                if (o.Ltlist.Count > 0)
                {
                    this.tb_item.Text = o.LTlist(0).LTlist(0).Buf_item;
                    this.tb_site.Text = o.LTlist(0).LTlist(0).Buf_site;
                }
            }

            init = false;

            if (this.tb_sorderid.Text != o.Dmd_sorderid)
            {
                this.tb_sorderid.Text = "";
            }
            if (this.dtp_ordereddate.Value.ToShortDateString() != o.Dmd_ordereddate)
            {
                this.dtp_ordereddate.Value = DateTime.Now;
            }
            if (this.nud_orderqty.Value != (decimal)o.Dmd_orderqty)
            {
                this.nud_orderqty.Value = 0;
            }
            if (this.nud_orderprirority.Value != (decimal)o.Dmd_orderpriority)
            {
                this.nud_orderprirority.Value = 1;
            }
            if (this.nud_latenesstolerance.Value != (decimal)o.Dmd_latenesstolerance)
            {
                this.nud_latenesstolerance.Value = 0;
            }

            if (o.Ltlist.Count > 0)
            {
                if (this.tb_item.Text != o.LTlist(0).LTlist(0).Buf_item)
                {
                    tb_item.Text = "";
                }
                if (this.tb_site.Text != o.LTlist(0).LTlist(0).Buf_site)
                {
                    tb_site.Text = "";
                }
            }
        }
Ejemplo n.º 2
0
        public override void SetAttr(FLOObj O)
        {
            FLODmd o = (FLODmd)O;

            this.tb_sorderid.Text            = o.Dmd_sorderid;
            this.dtp_ordereddate.Value       = Convert.ToDateTime(o.Dmd_ordereddate);
            this.nud_orderqty.Value          = (decimal)o.Dmd_orderqty;
            this.nud_orderprirority.Value    = (decimal)o.Dmd_orderpriority;
            this.nud_latenesstolerance.Value = (decimal)o.Dmd_latenesstolerance;

            if (o.Ltlist.Count > 0)
            {
                this.tb_item.Text = o.LTlist(0).Buf_item;
                this.tb_site.Text = o.LTlist(0).Buf_site;
            }
        }