Beispiel #1
0
    protected void BtnSave_Click(object sender, EventArgs e)
    {
        Hashtable hashtable = new Hashtable();
        string    value     = this.hdnUserName.Value;

        hashtable.Add("MeetingInfoID", this.MeetingInfoID.ToString());
        hashtable.Add("WaiterCode", SqlStringConstructor.GetQuotedString(this.hdnUserCode.Value));
        hashtable.Add("WaiterName", SqlStringConstructor.GetQuotedString(value.ToString()));
        hashtable.Add("Content", SqlStringConstructor.GetQuotedString(this.txtContent.Text));
        if (this.RecordID == 0)
        {
            if (ConferenceManage.AddTemplateFraeInfo("[OA_Meeting_Waiter]", 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.UpdTemplateFraeInfo("[OA_Meeting_Waiter]", hashtable, where))
            {
                this.JS.Text = "alert('保存成功!');window.returnValue=true;window.close();";
                return;
            }
            this.JS.Text = "alert('保存失败!');";
            return;
        }
    }
    protected void BtnSave_Click(object sender, EventArgs e)
    {
        Hashtable hashtable = new Hashtable();
        int       num       = 0;

        if (this.txtNumber.Text != "")
        {
            num = Convert.ToInt32(this.txtNumber.Text);
        }
        hashtable.Add("MeetingInfoID", this.MeetingInfoID.ToString());
        hashtable.Add("EquipmentName", SqlStringConstructor.GetQuotedString(this.txtEquipmentName.Text));
        hashtable.Add("Number", num.ToString());
        if (this.RecordID == 0)
        {
            if (ConferenceManage.AddTemplateFraeInfo("[OA_Meeting_Equipment]", 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.UpdTemplateFraeInfo("[OA_Meeting_Equipment]", hashtable, where))
            {
                this.JS.Text = "alert('保存成功!');window.returnValue=true;window.close();";
                return;
            }
            this.JS.Text = "alert('保存失败!');";
            return;
        }
    }
Beispiel #3
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("TempletID", this.TemplateID.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.AddTemplateFraeInfo("[OA_Meeting_Templet_AttendMan]", 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.UpdTemplateFraeInfo("[OA_Meeting_Templet_AttendMan]", hashtable, where))
            {
                this.JS.Text = "alert('保存成功!');window.returnValue=true;window.close();";
                return;
            }
            this.JS.Text = "alert('保存失败!');";
            return;
        }
    }
Beispiel #4
0
    protected void BtnSave_Click(object sender, EventArgs e)
    {
        Hashtable hashtable = new Hashtable();

        hashtable.Add("MeetingInfoID", this.MeetingInfoID.ToString());
        hashtable.Add("ProjectName", SqlStringConstructor.GetQuotedString(this.txtProjectName.Text));
        hashtable.Add("Content", SqlStringConstructor.GetQuotedString(this.txtContent.Text));
        if (this.txtFilePath.HasFile)
        {
            HttpPostedFile postedFile = this.txtFilePath.PostedFile;
            com.jwsoft.pm.entpm.action.FileUpload fileUpload = new com.jwsoft.pm.entpm.action.FileUpload();
            string[] array = fileUpload.Upload(postedFile, 4);
            hashtable.Add("OriginalName", SqlStringConstructor.GetQuotedString(array[0]));
            hashtable.Add("FilePath", SqlStringConstructor.GetQuotedString(array[1]));
        }
        if (this.RecordID == 0)
        {
            if (ConferenceManage.AddTemplateFraeInfo("[OA_Meeting_Project]", 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.UpdTemplateFraeInfo("[OA_Meeting_Project]", hashtable, where))
            {
                this.JS.Text = "alert('保存成功!');window.returnValue=true;window.close();";
                return;
            }
            this.JS.Text = "alert('保存失败!');";
            return;
        }
    }