protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Doc dc = new Doc();
            int id = Convert.ToInt32(Request.QueryString["docID"]);
            dc.Docload(id);
            lbldocTitle.Text = dc.docTitle;

            Assess ass = new Assess();
            DataSet ds = new DataSet();
            ds = ass.Loadassess(Convert.ToInt32(Request.QueryString["docID"]));
            GridView1.DataSource = ds.Tables[0].DefaultView;
            GridView1.DataBind();//5*1*a*s*p*x
        }
    }
Esempio n. 2
0
 protected void Bt_ok_Click(object sender, EventArgs e)
 {
     string xwhere = " where docID=" + SQLString.GetQuotedString(Request.QueryString["docID"]) + "and expertID=" + SQLString.GetQuotedString(Request.Cookies["userID"].Value.ToString());
     Hashtable ht = new Hashtable();
     ht.Add("assessment", SQLString.GetQuotedString(txtdocReason.Text));
     ht.Add("docToTime", SQLString.GetQuotedString(DateTime.Now.ToShortDateString()));
     Assess ass = new Assess();
     if (ass.Update(ht, xwhere))
     {
         Response.Write("<script>alert('审核完毕!');window.location='newdoclist.aspx';</script>");
     }
     else
     {
         Response.Write("<script>alert('审核失败!');window.location='newdoclist.aspx';</script>");
     }
 }
Esempio n. 3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            int docID = Convert.ToInt32(Request.QueryString["docID"]);
            Doc dc = new Doc();
            dc.Docload(docID);
            txtTitle.Text = dc.docTitle;

            Assess ass = new Assess();
            DataSet ds = new DataSet();
            ds = ass.Loadassess(docID);
            GridView1.DataSource = ds.Tables[0].DefaultView;
            GridView1.DataBind();
        }
            if (ddlState.SelectedValue != "21")
            {
                RequiredFieldValidator1.Enabled = true;
            }
            else
            {
                RequiredFieldValidator1.Enabled = false;
            }
    }
Esempio n. 4
0
    private void SendExp(int docID)
    {
        int i = 0;
        foreach (ListItem item in CheckBoxList1.Items)
        {
            if (item.Selected == true)
            {
                i++;
            }
        }
        if (i != 3)
        {
            Response.Write("<Script Language=JavaScript>alert(\"请选择三位专家评审!\")</Script>");
        }

        else
        {
            string[] arr = new string[CheckBoxList1.Items.Count];
            for (int j = 0; j < CheckBoxList1.Items.Count; j++)
            {
                if (CheckBoxList1.Items[j].Selected == true)
                {
                    arr[i] = CheckBoxList1.Items[j].Value;
                    Hashtable ht = new Hashtable();
                    ht.Add("expertID", SQLString.GetQuotedString(arr[i]));
                    ht.Add("docID", SQLString.GetQuotedString(Convert.ToString(docID)));
                    Assess ass = new Assess();
                    ass.AsignExp(ht);
                }

            }
        }
    }