public override void SetAttr(FLOObj O) { FLOB2C o = (FLOB2C)O; this.tb_calendarpre.Text = o.DNlist(0).Cal_calendarpre; this.tb_calendar.Text = o.DNlist(0).Cal_calendar; this.tb_calpattern.Text = o.DNlist(0).Cal_pattern.ToString(); this.nud_qtyper.Value = (decimal)((FLOCal.Cal_Detail)o.DNlist(0).Cal_details[0]).cal_qtyper; this.tb_item.Text = o.UPlist(0).Buf_item; this.tb_site.Text = o.UPlist(0).Buf_site; this.tb_caltype.Text = o.DNlist(0).Cal_caltype.ToString(); }
public override void GetAttr(FLOObj O) { FLOB2C o = (FLOB2C)O; o.DNlist(0).Cal_calendarpre = this.tb_calendarpre.Text; o.DNlist(0).Cal_calendar = this.tb_calendar.Text; if (this.tb_calpattern.Text == FLOObj.CPTTYPE.EVERYDAY.ToString()) { o.DNlist(0).Cal_pattern = FLOObj.CPTTYPE.EVERYDAY; } if (this.tb_calpattern.Text == FLOObj.CPTTYPE.EVERY_N_DAYS.ToString()) { o.DNlist(0).Cal_pattern = FLOObj.CPTTYPE.EVERY_N_DAYS; } if (this.tb_calpattern.Text == FLOObj.CPTTYPE.DAYS_OF_WEEK.ToString()) { o.DNlist(0).Cal_pattern = FLOObj.CPTTYPE.DAYS_OF_WEEK; } if (this.tb_calpattern.Text == FLOObj.CPTTYPE.DAY_OF_YEAR.ToString()) { o.DNlist(0).Cal_pattern = FLOObj.CPTTYPE.DAY_OF_YEAR; } if (this.tb_calpattern.Text == FLOObj.CPTTYPE.DAY_OF_MONTH.ToString()) { o.DNlist(0).Cal_pattern = FLOObj.CPTTYPE.DAY_OF_MONTH; } else { o.DNlist(0).Cal_pattern = FLOObj.CPTTYPE.NULL; } o.UPlist(0).Buf_item = this.tb_item.Text; o.UPlist(0).Buf_site = this.tb_site.Text; if (this.tb_caltype.Text == FLOObj.CALTYPE.REP_QTY.ToString()) { o.DNlist(0).Cal_caltype = FLOObj.CALTYPE.REP_QTY; } if (this.tb_caltype.Text == FLOObj.CALTYPE.MAX_ON_HAND.ToString()) { o.DNlist(0).Cal_caltype = FLOObj.CALTYPE.MAX_ON_HAND; } if (this.tb_caltype.Text == FLOObj.CALTYPE.MIN_ON_HAND.ToString()) { o.DNlist(0).Cal_caltype = FLOObj.CALTYPE.MIN_ON_HAND; } }