protected void setData(int recordId) { DataTable dataTable = ConferenceManage.QueryMeetingInfo(recordId); if (dataTable.Rows.Count == 1) { this.txtMeetingTitle.Text = dataTable.Rows[0]["MeetingTitle"].ToString(); this.hdnMeetingTitle.Value = dataTable.Rows[0]["MeetingTitle"].ToString(); this.txtMeetingPlace.Text = dataTable.Rows[0]["MeetingPlace"].ToString(); this.hdnMeetingRoom.Value = dataTable.Rows[0]["MeetingPlace"].ToString(); this.txtCallDate.Text = ((DateTime)dataTable.Rows[0]["CallDate"]).ToShortDateString(); this.txtContent.Text = dataTable.Rows[0]["Content"].ToString(); this.ddltCallTime.SelectedValue = dataTable.Rows[0]["CallTime"].ToString(); this.ddltCallMinute.SelectedValue = dataTable.Rows[0]["CallMinute"].ToString(); } }
protected void setData(int meetingInfoID) { DataTable dataTable = ConferenceManage.QueryMeetingInfo(meetingInfoID); if (dataTable.Rows.Count == 1) { this.txtSummary.Text = dataTable.Rows[0]["SummaryName"].ToString(); this.txtOriginalName.Text = dataTable.Rows[0]["OriginalName"].ToString(); this.annexName.InnerText = dataTable.Rows[0]["OriginalName"].ToString(); this.hdnFilePath.Value = dataTable.Rows[0]["FilePath"].ToString(); } if (this.hdnFilePath.Value.Length > 0) { this.tr_add.Visible = false; this.tr_edit.Visible = true; return; } this.tr_add.Visible = true; this.tr_edit.Visible = false; }