Example #1
0
        private void comfirmSubmit_Click(object sender, EventArgs e)
        {
            CommonClass cc = new CommonClass();

            if (cc.sqlEx("update applyList set confirmer='"+confirmer.Text.Trim()+
                "',messageStatus = '"+messageStatus.Text.Trim()+
                "',supportNeed='"+supportNeed.Text.Trim()+
                "',fareStatus='"+fareStatus.Text.Trim()+
                "',add_remove='"+add_remove.Text.Trim()+
                "',remark='"+remark.Text.Trim()+
                "',status='审核通过' where id='"+index+"' and status='待审核' ") > 0)
            {
                MessageBox.Show("确认申请成功!");

                bind();
            }
            else
            {
                MessageBox.Show("糟糕,出错了!");
            }
        }
Example #2
0
        private void rejectApply_Click(object sender, EventArgs e)
        {
            CommonClass cc = new CommonClass();

            if (cc.sqlEx("update applyList set status='审核不通过' where id='" + index + "' and status='待审核' ") > 0)
            {
                MessageBox.Show("拒绝申请成功!");

                bind();
            }
            else
            {
                MessageBox.Show("糟糕,出错了!");
            }
        }