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

            o.Buf_item                   = this.tb_item.Text;
            o.Buf_site                   = this.tb_site.Text;
            o.Buf_stage                  = this.tb_stage.Text;
            o.Buf_sellable               = this.ck_sellable.Checked == true?1:0;
            o.Buf_isresponsebuffer       = this.ck_isresponsebuffer.Checked == true?1:0;
            o.Buf_isproductionplanbuffer = this.ck_isproductionplanbuffer.Checked == true?1:0;
        }
Esempio n. 2
0
        public override void SetAttr(FLOObj O)
        {
            FLOBuf o = (FLOBuf)O;

            this.tb_item.Text                      = o.Buf_item;
            this.tb_site.Text                      = o.Buf_site;
            this.tb_stage.Text                     = o.Buf_stage;
            this.ck_sellable.Checked               = o.Buf_sellable == 1?true:false;
            this.ck_isresponsebuffer.Checked       = o.Buf_isresponsebuffer == 1?true:false;
            this.ck_isproductionplanbuffer.Checked = o.Buf_isproductionplanbuffer == 1?true:false;
        }
Esempio n. 3
0
        public override void SetAttrMulti(FLOObj O)
        {
            FLOBuf o = (FLOBuf)O;

            if (init)
            {
                this.tb_item.Text                      = o.Buf_item;
                this.tb_site.Text                      = o.Buf_site;
                this.tb_stage.Text                     = o.Buf_stage;
                this.ck_sellable.Checked               = o.Buf_sellable == 1?true:false;
                this.ck_isresponsebuffer.Checked       = o.Buf_isresponsebuffer == 1?true:false;
                this.ck_isproductionplanbuffer.Checked = o.Buf_isproductionplanbuffer == 1?true:false;
            }

            init = false;

            if (this.tb_item.Text != o.Buf_item)
            {
                this.tb_item.Text = "";
            }
            if (this.tb_site.Text != o.Buf_site)
            {
                this.tb_site.Text = "";
            }
            if (this.tb_stage.Text != o.Buf_stage)
            {
                this.tb_stage.Text = "";
            }
            if (this.ck_sellable.Checked != (o.Buf_sellable == 1?true:false))
            {
                this.ck_sellable.Checked = false;
            }
            if (this.ck_isresponsebuffer.Checked != (o.Buf_isresponsebuffer == 1?true:false))
            {
                this.ck_isresponsebuffer.Checked = true;
            }
            if (this.ck_isproductionplanbuffer.Checked != (o.Buf_isproductionplanbuffer == 1?true:false))
            {
                ck_isproductionplanbuffer.Checked = true;
            }
        }