protected void BtnAdd_Click(object sender, EventArgs e) { DateTime arg_05_0 = DateTime.Now; Hashtable hashtable = new Hashtable(); hashtable.Add("FileID", SqlStringConstructor.GetQuotedString(this.FileID.ToString())); hashtable.Add("Title", SqlStringConstructor.GetQuotedString(this.txtTitle.Text)); hashtable.Add("Remark", SqlStringConstructor.GetQuotedString(this.txtRemark.Text)); hashtable.Add("IsPigeonhole", SqlStringConstructor.GetQuotedString("0")); hashtable.Add("UserCode", SqlStringConstructor.GetQuotedString(this.Session["yhdm"].ToString())); hashtable.Add("RecordDate", SqlStringConstructor.GetQuotedString(this.txtRecordDate.Text.ToString())); hashtable.Add("CorpCode", SqlStringConstructor.GetQuotedString(this.CorpCode)); hashtable.Add("AuditState", "-1"); if (base.Request.QueryString["fid"] == "") { if (DocumentAction.AddSendFileInfo(hashtable)) { this.JS.Text = "alert('保存成功!');window.returnValue=true;window.close();"; return; } this.JS.Text = "alert('保存失败!');"; return; } else { string where = " where FileID = '" + this.FileID.ToString() + " '"; if (DocumentAction.UpdSendFileInfo(hashtable, where)) { this.JS.Text = "alert('保存成功!');window.returnValue=true;window.close();"; return; } this.JS.Text = "alert('保存失败!');"; return; } }