void initRecptComponent() { //添加耗材录入 recpt_name_itemNo1 = new recptConsume.recpt_name_itemNo(); recpt_list1 = new recpt_list(); // recpt1 // this.recpt_name_itemNo1.Location = this.issue_name_itemNo1.Location; this.recpt_name_itemNo1.Name = "recpt"; this.recpt_name_itemNo1.Size = this.issue_name_itemNo1.Size; this.recpt_name_itemNo1.TabIndex = 1; this.Controls.Add(recpt_name_itemNo1); // list1 // this.recpt_list1.Location = this.list1.Location; this.recpt_list1.Name = "recpt_list1"; this.recpt_list1.Size = this.list1.Size; this.recpt_list1.TabIndex = 2; this.Controls.Add(recpt_list1); }