Exemple #1
0
        public override void SetAttr(FLOObj O)
        {
            FLOB2D o = (FLOB2D)O;

            this.tb_item.Text                = o.LTlist(0).Buf_item;
            this.tb_site.Text                = o.LTlist(0).Buf_site;
            this.tb_sorderid.Text            = o.RTlist(0).Dmd_sorderid;
            this.dtp_ordereddate.Value       = Convert.ToDateTime(o.RTlist(0).Dmd_ordereddate);
            this.nud_orderqty.Value          = (decimal)o.RTlist(0).Dmd_orderqty;
            this.nud_orderprirority.Value    = (decimal)o.RTlist(0).Dmd_orderpriority;
            this.nud_latenesstolerance.Value = (decimal)o.RTlist(0).Dmd_latenesstolerance;
        }
Exemple #2
0
        public override void GetAttr(FLOObj O)
        {
            FLOB2D o = (FLOB2D)O;

            o.LTlist(0).Buf_item              = this.tb_item.Text;
            o.LTlist(0).Buf_site              = this.tb_site.Text;
            o.LTlist(0).Buf_sellable          = 1;
            o.RTlist(0).Dmd_sorderid          = this.tb_sorderid.Text;
            o.RTlist(0).Dmd_ordereddate       = this.dtp_ordereddate.Value.ToShortDateString();
            o.RTlist(0).Dmd_orderqty          = (int)this.nud_orderqty.Value;
            o.RTlist(0).Dmd_orderpriority     = (int)this.nud_orderprirority.Value;
            o.RTlist(0).Dmd_latenesstolerance = (int)this.nud_latenesstolerance.Value;
        }