コード例 #1
0
    //選取人員之後指定EmpID
    protected void GetSmallEmployees_Click(object sender, GetEmployeeEventArgs e)
    {
        try
        {
            EmpID = e.id;
            ObjectDataSource_RegisterPersonInfo.SelectParameters["emp_id"].DefaultValue = e.id;
            FormView_RegisterPersonInfo.DataBind();

            //個人固定欄位
            ObjectDataSource_fixA.SelectParameters["activity_id"].DefaultValue = ActivityID.ToString();
            ObjectDataSource_fixA.SelectParameters["emp_id"].DefaultValue      = EmpID;
        }
        catch (Exception ex)
        {
            WriteErrorLog("GetSmallEmployees", ex.Message, "0");
        }
    }
コード例 #2
0
 //選取人員之後
 protected void GetEmployees_Click(object sender, GetEmployeeEventArgs e)
 {
     txtEmployee.Text = e.id;
 }
コード例 #3
0
    //選取人員之後指定EmpID
    protected void GetSmallEmployees_Click(object sender, GetEmployeeEventArgs e)
    {
        //EmpID = e.id;
        //ObjectDataSource_RegisterPersonInfo.SelectParameters["emp_id"].DefaultValue = e.id;
        //FormView_RegisterPersonInfo.DataBind();

        ////個人固定欄位
        //ObjectDataSource_fixA.SelectParameters["activity_id"].DefaultValue = ActivityID.ToString();
        //ObjectDataSource_fixA.SelectParameters["emp_id"].DefaultValue = EmpID;
    }
コード例 #4
0
    //選取人員之後指定EmpID
    protected void GetSmallEmployees_Click(object sender, GetEmployeeEventArgs e)
    {
        try
        {
            EmpID = e.id;
            ObjectDataSource_RegisterPersonInfo.SelectParameters["emp_id"].DefaultValue = e.id;
            FormView_RegisterPersonInfo.DataBind();

            //個人固定欄位
            ObjectDataSource_fixA.SelectParameters["activity_id"].DefaultValue = ActivityID.ToString();
            ObjectDataSource_fixA.SelectParameters["emp_id"].DefaultValue = EmpID;
        }
        catch (Exception ex)
        {
            WriteErrorLog("GetSmallEmployees", ex.Message, "0");

        }
    }
コード例 #5
0
 //選取人員之後
 protected void GetEmployees_Click(object sender, GetEmployeeEventArgs e)
 {
     txtEmployee.Text = e.id;
 }