public override void SetAttr(FLOObj O) { FLOR2O o = (FLOR2O)O; if (!this.cb_resourcetype.Items.Contains(o.R2O_restype)) { this.cb_resourcetype.Items.Add(o.R2O_restype); this.cb_resourcetype.SelectedItem = o.R2O_restype; } this.tb_routingpre.Text = o.DNlist(0).Ope_routingpre; this.tb_routing.Text = o.DNlist(0).Ope_routing; this.tb_operationpre.Text = o.DNlist(0).Ope_operationpre; this.tb_operation.Text = o.DNlist(0).Ope_operation; this.tb_operationsite.Text = o.DNlist(0).Ope_operationsite; this.nud_operationseq.Value = (decimal)o.DNlist(0).Ope_operationseq; this.tb_resourcepre.Text = o.UPlist(0).Res_resourcepre; this.tb_resource.Text = o.UPlist(0).Res_resource; this.tb_resourcesite.Text = o.UPlist(0).Res_resourcesite; this.cb_altresource.SelectedItem = o.R2O_altresource; this.cb_resourcetype.SelectedItem = o.R2O_restype; this.nud_altpriority.Value = (decimal)o.R2O_altpriority; this.nud_qtyper.Value = (decimal)o.R2O_qtyper; }
public override void SetAttrMulti(FLOObj O) { FLOR2O o = (FLOR2O)O; if (init) { this.tb_routingpre.Text = o.DNlist(0).Ope_routingpre; this.tb_routing.Text = o.DNlist(0).Ope_routing; this.tb_operationpre.Text = o.DNlist(0).Ope_operationpre; this.tb_operation.Text = o.DNlist(0).Ope_operation; this.tb_operationsite.Text = o.DNlist(0).Ope_operationsite; this.tb_resourcepre.Text = o.UPlist(0).Res_resourcepre; this.tb_resource.Text = o.UPlist(0).Res_resource; this.tb_resourcesite.Text = o.UPlist(0).Res_resourcesite; this.nud_operationseq.Value = (decimal)o.DNlist(0).Ope_operationseq; this.nud_altpriority.Value = (decimal)o.R2O_altpriority; this.nud_qtyper.Value = (decimal)o.R2O_qtyper; this.cb_altresource.SelectedItem = o.R2O_altresource; this.cb_resourcetype.SelectedItem = o.R2O_restype; } init = false; if (this.tb_routingpre.Text != o.DNlist(0).Ope_routingpre) { this.tb_routingpre.Text = ""; } if (this.tb_routing.Text != o.DNlist(0).Ope_routing) { this.tb_routing.Text = ""; } if (this.tb_operationpre.Text != o.DNlist(0).Ope_operationpre) { this.tb_operationpre.Text = ""; } if (this.tb_operation.Text != o.DNlist(0).Ope_operation) { this.tb_operation.Text = ""; } if (this.tb_operationsite.Text != o.DNlist(0).Ope_operationsite) { this.tb_operationsite.Text = ""; } if (this.tb_resourcepre.Text != o.UPlist(0).Res_resourcepre) { this.tb_resourcepre.Text = ""; } if (this.tb_resource.Text != o.UPlist(0).Res_resource) { this.tb_resource.Text = ""; } if (this.tb_resourcesite.Text != o.UPlist(0).Res_resourcesite) { this.tb_resourcesite.Text = ""; } if (this.nud_operationseq.Value != (decimal)o.Ope_operationseq) { this.nud_operationseq.Value = 0; } if (this.nud_altpriority.Value != (decimal)o.R2O_altpriority) { this.nud_altpriority.Value = 0; } if (this.nud_qtyper.Value != (decimal)o.R2O_qtyper) { this.nud_qtyper.Value = 0; } if (this.cb_altresource.Text != o.R2O_altresource) { this.cb_altresource.Text = ""; } if (this.cb_resourcetype.Text != o.R2O_restype.ToString()) { this.cb_resourcetype.Text = ""; } }