Esempio n. 1
0
    protected void BtnSave_Click(object sender, EventArgs e)
    {
        Hashtable hashtable = new Hashtable();
        string    value     = this.hdnName.Value;
        string    value2    = this.hdnNumber.Value;

        hashtable.Add("MeetingInfoID", this.MeetingInfoID.ToString());
        hashtable.Add("CallHour", this.ddltCallTime.SelectedValue.ToString());
        hashtable.Add("CallMinute", this.ddltCallMinute.SelectedValue.ToString());
        hashtable.Add("Topic", SqlStringConstructor.GetQuotedString(this.txtTopic.Text));
        hashtable.Add("AttendManCodes", SqlStringConstructor.GetQuotedString(this.hdnAttendManName.Value));
        hashtable.Add("AttendManNames", SqlStringConstructor.GetQuotedString(value.ToString()));
        hashtable.Add("Number", value2.ToString());
        if (this.ckbIsSms.Checked)
        {
            hashtable.Add("IsSms", SqlStringConstructor.GetQuotedString("1"));
        }
        else
        {
            hashtable.Add("IsSms", SqlStringConstructor.GetQuotedString("0"));
        }
        hashtable.Add("Content", SqlStringConstructor.GetQuotedString(this.txtContent.Text));
        if (this.RecordID == 0)
        {
            if (ConferenceManage.AddSubsection(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.UpdSubsection(hashtable, where))
            {
                this.JS.Text = "alert('保存成功!');window.returnValue=true;window.close();";
                return;
            }
            this.JS.Text = "alert('保存失败!');";
            return;
        }
    }