public TeacherItem() { InitializeComponent(); Group = "教師基本資料_雙語部"; _BGWork = new BackgroundWorker(); _BGWork.DoWork += new DoWorkEventHandler(_BGWork_DoWork); _BGWork.RunWorkerCompleted += new RunWorkerCompletedEventHandler(_BGWork_RunWorkerCompleted); _AllTeacherNameDic = new Dictionary <string, string>(); _AllLogIDDic = new Dictionary <string, string>(); prlp = new K12StudentPhoto.PermRecLogProcess(); _DataListener = new ChangeListener(); _DataListener.Add(new TextBoxSource(txtName)); _DataListener.Add(new TextBoxSource(txtIDNumber)); _DataListener.Add(new TextBoxSource(txtNickname)); _DataListener.Add(new TextBoxSource(txtPhone)); _DataListener.Add(new TextBoxSource(txtEmail)); _DataListener.Add(new TextBoxSource(txtCategory)); _DataListener.Add(new TextBoxSource(txtSTLoginAccount)); _DataListener.Add(new TextBoxSource(txtSTLoginPwd)); _DataListener.Add(new TextBoxSource(txtCellPhone)); _DataListener.Add(new ComboBoxSource(cboAccountType, ComboBoxSource.ListenAttribute.Text)); _DataListener.Add(new ComboBoxSource(cboGender, ComboBoxSource.ListenAttribute.Text)); _DataListener.StatusChanged += new EventHandler <ChangeEventArgs>(_DataListener_StatusChanged); cboGender.DropDownStyle = ComboBoxStyle.DropDownList; JHTeacher.AfterChange += new EventHandler <K12.Data.DataChangedEventArgs>(JHTeacher_AfterChange); JHTeacher.AfterDelete += new EventHandler <K12.Data.DataChangedEventArgs>(JHTeacher_AfterDelete); Disposed += new EventHandler(BaseInfoItem_Disposed); //啟動更新事件 eh = FISCA.InteractionService.PublishEvent(EventCord); }
public StudentItem() { InitializeComponent(); Group = "基本資料_雙語部"; _DataListener = new ChangeListener(); _DataListener.Add(new TextBoxSource(txtName)); _DataListener.Add(new TextBoxSource(txtSSN)); _DataListener.Add(new TextBoxSource(txtBirthDate)); _DataListener.Add(new TextBoxSource(txtBirthPlace)); _DataListener.Add(new TextBoxSource(txtEngName)); _DataListener.Add(new TextBoxSource(txtChineseName)); //new 中文姓名 _DataListener.Add(new TextBoxSource(txtPassportNumber)); //new 居留證號 _DataListener.Add(new TextBoxSource(txtLoginID)); _DataListener.Add(new TextBoxSource(txtLoginPwd)); _DataListener.Add(new ComboBoxSource(cboGender, ComboBoxSource.ListenAttribute.Text)); _DataListener.Add(new ComboBoxSource(cboNationality, ComboBoxSource.ListenAttribute.Text)); _DataListener.Add(new ComboBoxSource(cboAccountType, ComboBoxSource.ListenAttribute.Text)); _DataListener.Add(new TextBoxSource(txtEntranceDate)); _DataListener.Add(new TextBoxSource(txtLeavingDate)); _DataListener.Add(new TextBoxSource(txtGivenName)); _DataListener.Add(new TextBoxSource(txtMiddleName)); _DataListener.Add(new TextBoxSource(txtFamilyName)); _DataListener.StatusChanged += new EventHandler <ChangeEventArgs>(_DataListener_StatusChanged); _BGWorker = new BackgroundWorker(); _BGWorker.DoWork += new DoWorkEventHandler(_BGWorker_DoWork); _BGWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(_BGWorker_RunWorkerCompleted); prlp = new K12StudentPhoto.PermRecLogProcess(); Initialize(); JHStudent.AfterChange += new EventHandler <K12.Data.DataChangedEventArgs>(JHStudent_AfterChange); eh = FISCA.InteractionService.PublishEvent(EventCode); JHStudent.AfterDelete += new EventHandler <K12.Data.DataChangedEventArgs>(JHStudent_AfterDelete); Disposed += new EventHandler(BaseInfoPalmerwormItem_Disposed); }