protected void setData() { DataTable dataTable = DocumentAction.QueryOneSendFile(this.FileID); if (dataTable.Rows.Count == 1) { this.txtFileNumber.Text = dataTable.Rows[0]["FileNumber"].ToString(); this.txtTitle.Text = dataTable.Rows[0]["Title"].ToString(); this.txtSignUserName.Text = dataTable.Rows[0]["SignUserName"].ToString(); this.txtDraftDept.Text = dataTable.Rows[0]["DraftDept"].ToString(); this.txtIssueRange.Text = dataTable.Rows[0]["IssueRange"].ToString(); this.txtIssuePage.Text = dataTable.Rows[0]["IssuePage"].ToString(); this.txtShareNumber.Text = dataTable.Rows[0]["ShareNumber"].ToString(); this.txtIssueDate.Text = dataTable.Rows[0]["IssueDate"].ToString(); this.txtRemark.Text = dataTable.Rows[0]["Remark"].ToString(); this.hdnFilePath.Value = dataTable.Rows[0]["FilePath"].ToString(); this.txtOriginalName.Text = dataTable.Rows[0]["OriginalName"].ToString(); this.annexName.InnerText = dataTable.Rows[0]["OriginalName"].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; } }
protected void setData() { DataTable dataTable = DocumentAction.QueryOneSendFile(this.FileID); if (dataTable.Rows.Count == 1) { this.LbTitle.Text = dataTable.Rows[0]["Title"].ToString(); this.LbUserName.Text = dataTable.Rows[0]["UserName"].ToString(); this.LbRecordDate.Text = Convert.ToDateTime(dataTable.Rows[0]["RecordDate"].ToString()).ToShortDateString(); this.LbRemark.Text = dataTable.Rows[0]["Remark"].ToString(); } }
protected void setDate() { DataTable dataTable = DocumentAction.QueryOneSendFile(this.InstanceCode); if (dataTable.Rows.Count == 1) { this.txtTitle.Text = dataTable.Rows[0]["Title"].ToString(); this.txtUserName.Text = dataTable.Rows[0]["userName"].ToString(); this.txtRecordDate.Text = dataTable.Rows[0]["RecordDate"].ToString(); this.txtOriginalName.Text = dataTable.Rows[0]["OriginalName"].ToString(); this.txtRemark.Text = dataTable.Rows[0]["Remark"].ToString(); } }