private void 申请请假ToolStripMenuItem_Click(object sender, EventArgs e) { UCVacation ucv = new UCVacation(this); ucv.Location = groupBox1.Location; groupBox1.Controls.Clear(); groupBox1.Controls.Add(ucv); groupBox1.Text = "申请请假"; }
public vacationinfo(UCVacation UCVacation) { InitializeComponent(); this.UCVacation = UCVacation; this.did = UCVacation.id; this.year = UCVacation.year; this.month = UCVacation.month; this.day = UCVacation.day; this.ampm = UCVacation.ampm; this.year1 = UCVacation.year1; this.month1 = UCVacation.month1; this.day1 = UCVacation.day1; this.ampm1 = UCVacation.ampm1; this.reason = UCVacation.reason; label1.Text = "请假开始时间:" + year + "-" + month + "-" + day + "-" + ampm + System.Environment.NewLine + System.Environment.NewLine + "请假结束时间:" + year1 + "-" + month1 + "-" + day1 + "-" + ampm1 + System.Environment.NewLine + System.Environment.NewLine + "请假原因:" + reason; }