Exemplo n.º 1
0
 protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
 {
     LabMsg1.Text     = "";
     TextBox5.Text    = "";
     TextBox6.Text    = "";
     TextBox5.Enabled = true;
     if (e.CommandName == "UserDeploy")
     {
         DataTable dt = new DataTable();
         dt = Coeno.BLL.Entity.OrganizaMana.AssessUserDeploy.QueryDeployUser(e.CommandArgument.ToString());
         ModalPopupExtenderDeploy.Show();
         TextBox1.Text = dt.Rows[0]["EmpID"].ToString();
         TextBox2.Text = dt.Rows[0]["EmpName"].ToString();
         TextBox3.Text = dt.Rows[0]["DeptID"].ToString();
         TextBox4.Text = dt.Rows[0]["DeptName"].ToString();
     }
 }
Exemplo n.º 2
0
    //檢索部門
    protected void Button2_Click(object sender, EventArgs e)
    {
        LabMsg1.Text = "";
        DataTable dt = new DataTable();

        dt = Coeno.BLL.Entity.OrganizaMana.AssessUserDeploy.QueryDeployDeptName(TextBox5.Text);

        if (dt.Rows.Count > 0)
        {
            ModalPopupExtenderDeploy.Show();
            TextBox6.Text = dt.Rows[0]["DeptName"].ToString();
        }
        else
        {
            MPEShow();
            LabMsg1.Text      = "未檢索到部門名稱,請檢查部門ID輸入是否有誤!!";
            LabMsg1.ForeColor = System.Drawing.Color.Red;
            TextBox6.Text     = "";
            return;
        }
    }
Exemplo n.º 3
0
 protected void MPEShow()
 {
     ModalPopupExtenderDeploy.Show();
 }