protected void BtnSave_Click(object sender, EventArgs e) { string pStr = "%"; DataTable dataTable = DocumentAction.QueryCorpCode(this.UserCode); if (dataTable.Rows.Count > 0) { pStr = dataTable.Rows[0]["CorpCode"].ToString(); } DateTime dateTime = default(DateTime); dateTime = DateTime.Now; Hashtable hashtable = new Hashtable(); hashtable.Add("MeetingInfoID", this.MeetingInfoID.ToString()); hashtable.Add("UserCode", SqlStringConstructor.GetQuotedString(this.UserCode)); hashtable.Add("RecordDate", SqlStringConstructor.GetQuotedString(dateTime.ToString("yyyy-MM-dd"))); hashtable.Add("CorpCode", SqlStringConstructor.GetQuotedString(pStr)); hashtable.Add("Topic", SqlStringConstructor.GetQuotedString(this.txtTopic.Text)); hashtable.Add("Content", SqlStringConstructor.GetQuotedString(this.txtContent.Text)); if (this.RecordID == 0) { if (ConferenceManage.AddConferenceTopic(hashtable)) { this.JS.Text = "alert('保存成功!');window.returnValue=true;window.close();"; return; } this.JS.Text = "alert('保存失败!');"; return; } else { string where = " where RecordID = " + this.RecordID.ToString(); if (ConferenceManage.UpdConferenceTopic(hashtable, where)) { this.JS.Text = "alert('保存成功!');window.returnValue=true;window.close();"; return; } this.JS.Text = "alert('保存失败!');"; return; } }