//選取人員之後指定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"); } }
//選取人員之後 protected void GetEmployees_Click(object sender, GetEmployeeEventArgs e) { txtEmployee.Text = e.id; }
//選取人員之後指定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; }