示例#1
0
 protected void Gridview_Kucun_RowCommand(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName == "Apply")
     {
         label10.Text        = e.CommandArgument.ToString();
         Panel_Apply.Visible = true;
         UpdatePanel_Apply.Update();
         TB_shengchanman.Text  = Session["UserName"].ToString().Trim();
         TB_shengchantime.Text = DateTime.Now.ToShortDateString();
     }
 }
示例#2
0
    //提交申请
    protected void ConfirmApply(object sender, EventArgs e)
    {
        Guid   id     = new Guid(label10.Text.ToString().Trim());
        string man    = Session["UserName"].ToString().Trim();
        string reason = TB_lingdaoyijian.Text.ToString().Trim();

        or.Insert_Apply(id, man, reason);
        ScriptManager.RegisterClientScriptBlock(Page, GetType(), "alert", "alert('提交成功!')", true);
        Panel_Apply.Visible = false;
        UpdatePanel_Apply.Update();
        label17.Text = "";
        BindApply();
    }
示例#3
0
    //审核驳回
    protected void CheckNotOK(object sender, EventArgs e)
    {
        if (TextBox19.Text == "")
        {
            ScriptManager.RegisterClientScriptBlock(Page, GetType(), "alert", "alert('审核驳回必须填写驳回意见!')", true);
            return;
        }
        string result  = "审核驳回";
        string man     = Session["UserName"].ToString().Trim();
        Guid   id      = new Guid(label21.Text.ToString());
        string opinion = TextBox19.Text.ToString().Trim();

        or.Update_Apply_Check(id, result, man, opinion);
        Panel2.Visible = false;
        UpdatePanel2.Update();
        BindApply();
        UpdatePanel_Apply.Update();
        ScriptManager.RegisterClientScriptBlock(Page, GetType(), "alert", "alert('已审核驳回!')", true);
    }
示例#4
0
 //关闭申请
 protected void CloseApply(object sender, EventArgs e)
 {
     Panel_Apply.Visible   = false;
     TB_lingdaoyijian.Text = "";
     UpdatePanel_Apply.Update();
 }