Exemple #1
0
    private void btnOK_Click(object sender, System.EventArgs e)
    {
        string value = this.hdnUserCode.Value;

        System.DateTime dtBegin = System.Convert.ToDateTime(this.txtBeginDate.Text);
        System.DateTime dtEnd   = System.Convert.ToDateTime(this.txtEndDate.Text);
        if (FlowAuditAction.AddSecondUser(base.UserCode, value, dtBegin, dtEnd))
        {
            this.JS.Text        = "alert('增加成功!');";
            this.btnOK.Visible  = false;
            this.btnUpd.Visible = true;
            return;
        }
        this.JS.Text = "alert('增加失败!');";
    }