예제 #1
0
 public Teacher_Brief()
 {
     InitializeComponent();
     Group = "�Юv�򥻸��";
     _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 PermRecLogProcess();
     _DataListener = new ChangeListen();
     _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 ComboBoxSource(cboAccountType, ComboBoxSource.ListenAttribute.Text));
     _DataListener.Add(new ComboBoxSource(cboGender, ComboBoxSource.ListenAttribute.Text));
     _DataListener.StatusChanged += new EventHandler<ChangeEventArgs>(_DataListener_StatusChanged);
     cboGender.DropDownStyle = ComboBoxStyle.DropDownList;
     Teacher.AfterChange += new EventHandler<K12.Data.DataChangedEventArgs>(Teacher_AfterChange);
     Disposed += new EventHandler(BaseInfoItem_Disposed);
 }
예제 #2
0
        public Student_Brief()
        {
            InitializeComponent();

            Group = "�򥻸��";
            _DataListener = new ChangeListen();
            _DataListener.Add(new TextBoxSource(txtName));
            _DataListener.Add(new TextBoxSource(txtIDNumber));
            _DataListener.Add(new TextBoxSource(txtBirthDate));
            _DataListener.Add(new TextBoxSource(txtBirthPlace));
            _DataListener.Add(new TextBoxSource(txtEngName));
            _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.StatusChanged += new EventHandler<ChangeEventArgs>(_DataListener_StatusChanged);

            _BGWorker = new BackgroundWorker();
            _BGWorker.DoWork += new DoWorkEventHandler(_BGWorker_DoWork);
            _BGWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(_BGWorker_RunWorkerCompleted);
            Initialize();
            Student.AfterChange += new EventHandler<K12.Data.DataChangedEventArgs>(JHStudent_AfterChange);
            Disposed += new EventHandler(StudentBrief_Disposed);
        }
예제 #3
0
        private string _SMS = string.Empty; //��ʹq��1

        #endregion Fields

        #region Constructors

        public Student_Phone()
            : base()
        {
            InitializeComponent();
            DataListener = new ChangeListen();
            DataListener.Add(new TextBoxSource(txtEverPhone));
            DataListener.Add(new TextBoxSource(txtContactPhone));
            DataListener.Add(new TextBoxSource(this.txtMobile1));
            DataListener.Add(new TextBoxSource(this.txtMobile2));
            DataListener.Add(new TextBoxSource(this.txtCompanyPhone));
            DataListener.Add(new TextBoxSource(this.txtOtherPhone));
            DataListener.Add(new TextBoxSource(this.txtContactRemark));
            DataListener.StatusChanged += new EventHandler<ChangeEventArgs>(DataListener_StatusChanged);

            Group = "�q�T���";

            //skypeProxy = new SkypeControl.SkypeProxy();
            //skypeProxy.CountryInfo = new SkypeControl.CountryInfo("886", "�x�W");
            //skypeProxy.OnSkypeStatusChange += new SkypeControl.SkypeStatusChangeHandler(skypeProxy_OnSkypeStatusChange);
            //skypeProxy_OnSkypeStatusChange(null, null);

            _bwWork = new BackgroundWorker();
            _bwWork.DoWork += new DoWorkEventHandler(_bwWork_DoWork);
            _bwWork.RunWorkerCompleted += new RunWorkerCompletedEventHandler(_bwWork_RunWorkerCompleted);

            Phone.AfterUpdate += new EventHandler<K12.Data.DataChangedEventArgs>(JHPhone_AfterUpdate);
            Disposed += new EventHandler(PhonePalmerwormItem_Disposed);
        }
예제 #4
0
 //�غc�l
 public Class_Brief()
 {
     InitializeComponent();
     Group = "�Z�Ű򥻸��";
     _DataListener = new ChangeListen();
     _DataListener.Add(new TextBoxSource(txtClassName));
     _DataListener.Add(new TextBoxSource(txtSortOrder));
     _DataListener.Add(new ComboBoxSource(cboGradeYear, ComboBoxSource.ListenAttribute.Text));
     _DataListener.Add(new ComboBoxSource(cboTeacher, ComboBoxSource.ListenAttribute.Text));
     _DataListener.StatusChanged += new EventHandler<ChangeEventArgs>(_DataListener_StatusChanged);
     _TeacherNameDic = new Dictionary<string, string>();
     //prlp = new PermRecLogProcess();
     Class.AfterChange += new EventHandler<K12.Data.DataChangedEventArgs>(Class_AfterChange);
     Teacher.AfterChange += new EventHandler<K12.Data.DataChangedEventArgs>(Teacher_AfterChange);
     _BGWorker = new BackgroundWorker();
     _BGWorker.DoWork += new DoWorkEventHandler(_BGWorker_DoWork);
     _BGWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(_BGWorker_RunWorkerCompleted);
     Disposed += new EventHandler(Class_Brief_Disposed);
     Disposed += new EventHandler(Teacher_Brief_Disposed);
 }
예제 #5
0
        public Student_Parent()
        {
            InitializeComponent();
            Group = "緊急聯絡人資料";
            _StudParentRec = new ParentRecord();
            _ParentType = ParentType.Guardian;

            _DataListener_Guardian = new ChangeListen();
            _DataListener_Guardian.StatusChanged += new EventHandler<ChangeEventArgs>(_DataListener_Guardian_StatusChanged);

            // 加入緊急聯絡人 Listener
            _DataListener_Guardian.Add(new TextBoxSource(txtParentName));
            _DataListener_Guardian.Add(new TextBoxSource(txtParentPhone));

            //_DataListener_Guardian.Add(new ComboBoxSource(cboRelationship, ComboBoxSource.ListenAttribute.Text));

            K12.Data.Parent.AfterUpdate += new EventHandler<K12.Data.DataChangedEventArgs>(JHParent_AfterUpdate);

            BGWorker = new BackgroundWorker();
            BGWorker.DoWork += new DoWorkEventHandler(BGWorker_DoWork);
            BGWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(BGWorker_RunWorkerCompleted);

            Disposed += new EventHandler(ParentInfoPalmerwormItem_Disposed);
        }
        public Student_TakeCourse()
        {
            InitializeComponent();

            this.Group = "修課紀錄";
            _RunningKey = "";

            this.dicCourses = new Dictionary<string, string>();

            this.Load += new EventHandler(Form_Load);
            this.form_loaded = false;
            _Errors = new ErrorProvider();
            _Listener = new ChangeListen();
            _Listener.Add(new DataGridViewSource(this.dgvData));
            //_Listener.Add(new ComboBoxSource(this.cboSemester, ComboBoxSource.ListenAttribute.Text));
            //this.IsPublic.ValueChanged += new EventHandler(IsPublic_ValueChanged);
            //_Listener.Add(new CheckBoxSource(this.IsPublic));
            //_Listener.StatusChanged += new EventHandler<ChangeEventArgs>(Listener_StatusChanged);

            _BGWLoadData = new BackgroundWorker();
            _BGWLoadData.DoWork += new DoWorkEventHandler(_BGWLoadData_DoWork);
            _BGWLoadData.RunWorkerCompleted += new RunWorkerCompletedEventHandler(_BGWLoadData_RunWorkerCompleted);

            _BGWSaveData = new BackgroundWorker();
            _BGWSaveData.DoWork += new DoWorkEventHandler(_BGWSaveData_DoWork);
            _BGWSaveData.RunWorkerCompleted += new RunWorkerCompletedEventHandler(_BGWSaveData_RunWorkerCompleted);

            this.nudSchoolYear.TextChanged += new EventHandler(SchoolYear_TextChanged);
        }
예제 #7
0
        private void TeacherExtDetail_Load(object sender, EventArgs e)
        {
            this.logAgent = new Log.LogAgent();

            DataListener = new ChangeListen();
            DataListener.Add(new TextBoxSource(txtBirthday));
            DataListener.Add(new TextBoxSource(txtAddress));
            DataListener.Add(new TextBoxSource(txtMobil));
            DataListener.Add(new TextBoxSource(txtOtherPhone));
            DataListener.Add(new TextBoxSource(txtPhone));
            DataListener.Add(new TextBoxSource(txtResearch));
            DataListener.Add(new TextBoxSource(txtMajorWorkPlace));
            DataListener.Add(new TextBoxSource(txtWebSiteUrl));
            DataListener.Add(new TextBoxSource(txtMemo));
            DataListener.Add(new TextBoxSource(txtEmployeeNo));
            DataListener.Add(new TextBoxSource(txtNtuSystemNo));
            DataListener.Add(new TextBoxSource(txtEnglishName));
            DataListener.StatusChanged += new EventHandler<ChangeEventArgs>(DataListener_StatusChanged);

            _BGWork = new BackgroundWorker();
            _BGWork.DoWork += new DoWorkEventHandler(_BGWork_DoWork);
            _BGWork.RunWorkerCompleted += new RunWorkerCompletedEventHandler(_BGWork_RunWorkerCompleted);
            _isBGWorkBusy = false;

            _dicUTDs = new Dictionary<int, TeacherExtVO>();
            Access = new AccessHelper();
        }
        private void Student_PaymentHistory_Load(object sender, EventArgs e)
        {
            _Listener = new ChangeListen();
            _Listener.Add(new DataGridViewSource(this.dgvData));
            _Listener.StatusChanged += new EventHandler<ChangeEventArgs>(Listener_StatusChanged);

            _BGWLoadData = new BackgroundWorker();
            _BGWLoadData.DoWork += new DoWorkEventHandler(_BGWLoadData_DoWork);
            _BGWLoadData.RunWorkerCompleted += new RunWorkerCompletedEventHandler(_BGWLoadData_RunWorkerCompleted);

            _BGWSaveData = new BackgroundWorker();
            _BGWSaveData.DoWork += new DoWorkEventHandler(_BGWSaveData_DoWork);
            _BGWSaveData.RunWorkerCompleted += new RunWorkerCompletedEventHandler(_BGWSaveData_RunWorkerCompleted);

            _RunningKey = "";

            dgvData.CurrentCellDirtyStateChanged += new EventHandler(dgvData_CurrentCellDirtyStateChanged);
            dgvData.CellEnter += new DataGridViewCellEventHandler(dgvData_CellEnter);
            dgvData.RowsRemoved += new DataGridViewRowsRemovedEventHandler(dgvData_RowsRemoved);
            this.dgvData.ColumnHeaderMouseClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dgvData_ColumnHeaderMouseClick);
            this.dgvData.RowHeaderMouseClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dgvData_RowHeaderMouseClick);
            this.dgvData.MouseClick += new System.Windows.Forms.MouseEventHandler(this.dgvData_MouseClick);

            this.dgvData.DataError += new DataGridViewDataErrorEventHandler(dgvData_DataError);

            Access = new AccessHelper();
            Helper = new QueryHelper();

            _dicUTDs = new Dictionary<string, PaymentHistory>();
            //  耀明建議不要自動更新資料項目的內容,若要自動更新則取消註解下列程式碼即可。
            //UDT.PaymentHistory.AfterUpdate += new EventHandler<UDT.ParameterEventArgs>(PaymentHistory_AfterUpdate);
        }
예제 #9
0
        private void Student_Paper_Load(object sender, EventArgs e)
        {
            _Errors = new ErrorProvider();

            _Listener = new ChangeListen();
            _Listener.Add(new TextBoxSource(this.txtPaperName));
            _Listener.Add(new TextBoxSource(this.txtDescription));
            _Listener.Add(new TextBoxSource(this.txtAdvisor1));
            _Listener.Add(new TextBoxSource(this.txtAdvisor2));
            _Listener.Add(new TextBoxSource(this.txtAdvisor3));
            _Listener.Add(new TextBoxSource(this.nudSchoolYear));
            _Listener.Add(new ComboBoxSource(this.cboSemester, ComboBoxSource.ListenAttribute.Text));
            this.IsPublic.ValueChanged += new EventHandler(IsPublic_ValueChanged);
            //_Listener.Add(new CheckBoxSource(this.IsPublic));
            _Listener.Add(new TextBoxSource(this.txtPublishedDate));
            _Listener.StatusChanged += new EventHandler<ChangeEventArgs>(Listener_StatusChanged);

            _BGWLoadData = new BackgroundWorker();
            _BGWLoadData.DoWork += new DoWorkEventHandler(_BGWLoadData_DoWork);
            _BGWLoadData.RunWorkerCompleted += new RunWorkerCompletedEventHandler(_BGWLoadData_RunWorkerCompleted);

            _BGWSaveData = new BackgroundWorker();
            _BGWSaveData.DoWork += new DoWorkEventHandler(_BGWSaveData_DoWork);
            _BGWSaveData.RunWorkerCompleted += new RunWorkerCompletedEventHandler(_BGWSaveData_RunWorkerCompleted);

            this.nudSchoolYear.TextChanged += new EventHandler(SchoolYear_TextChanged);

            _RunningKey = "";
            _dicUTDs = new Dictionary<string, UDT.Paper>();

            Access = new AccessHelper();
            queryHelper = new QueryHelper();

            BindSemester(string.Empty);
        }
예제 #10
0
        private void Student_Address_Load(object sender, EventArgs e)
        {
            _errors = new ErrorTip();
            _warnings = new ErrorTip();

            BGWorker = new BackgroundWorker();
            BGWorker.DoWork += new DoWorkEventHandler(BGWorker_DoWork);
            BGWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(BGWorker_RunWorkerCompleted);

            _DataListener_Permanent = new ChangeListen();
            _DataListener_Mailing = new ChangeListen();
            _DataListener_Other = new ChangeListen();

            _DataListener_Permanent.StatusChanged += new EventHandler<ChangeEventArgs>(_DataListener_Permanent_StatusChanged);
            _DataListener_Mailing.StatusChanged += new EventHandler<ChangeEventArgs>(_DataListener_Mailing_StatusChanged);
            _DataListener_Other.StatusChanged += new EventHandler<ChangeEventArgs>(_DataListener_Other_StatusChanged);

            CountyTownDownloadTask = Task.Factory.StartNew(() =>
            {
                //XmlElement �i�H�૬�� XmlObject�C
                CountyTownList = (XmlObject)Config.App["�m����ϦC��"].PreviousData;
            });

            // �[�J���y Listener Data
            _DataListener_Permanent.Add(new TextBoxSource(txtZipcode));
            _DataListener_Permanent.Add(new ComboBoxSource(cboCounty, ComboBoxSource.ListenAttribute.Text));
            _DataListener_Permanent.Add(new ComboBoxSource(cboTown, ComboBoxSource.ListenAttribute.Text));
            _DataListener_Permanent.Add(new TextBoxSource(txtDistrict));
            _DataListener_Permanent.Add(new TextBoxSource(txtArea));
            _DataListener_Permanent.Add(new TextBoxSource(txtDetail));
            _DataListener_Permanent.Add(new TextBoxSource(txtLongtitude));
            _DataListener_Permanent.Add(new TextBoxSource(txtLatitude));

            // �[�J�q�T Listener Data
            _DataListener_Mailing.Add(new TextBoxSource(txtZipcode));
            _DataListener_Mailing.Add(new ComboBoxSource(cboCounty, ComboBoxSource.ListenAttribute.Text));
            _DataListener_Mailing.Add(new ComboBoxSource(cboTown, ComboBoxSource.ListenAttribute.Text));
            _DataListener_Mailing.Add(new TextBoxSource(txtDistrict));
            _DataListener_Mailing.Add(new TextBoxSource(txtArea));
            _DataListener_Mailing.Add(new TextBoxSource(txtDetail));
            _DataListener_Mailing.Add(new TextBoxSource(txtLongtitude));
            _DataListener_Mailing.Add(new TextBoxSource(txtLatitude));

            // �[�J�䥦 Listener Data
            _DataListener_Other.Add(new TextBoxSource(txtZipcode));
            _DataListener_Other.Add(new ComboBoxSource(cboCounty, ComboBoxSource.ListenAttribute.Text));
            _DataListener_Other.Add(new ComboBoxSource(cboTown, ComboBoxSource.ListenAttribute.Text));
            _DataListener_Other.Add(new TextBoxSource(txtDistrict));
            _DataListener_Other.Add(new TextBoxSource(txtArea));
            _DataListener_Other.Add(new TextBoxSource(txtDetail));
            _DataListener_Other.Add(new TextBoxSource(txtLongtitude));
            _DataListener_Other.Add(new TextBoxSource(txtLatitude));

            Address.AfterUpdate += new EventHandler<K12.Data.DataChangedEventArgs>(JHAddress_AfterUpdate);

            //_address_type = AddressType.Permanent;
            _address_type = AddressType.Mailing;

            _getCountyBackgroundWorker = new BackgroundWorker();
            _getCountyBackgroundWorker.DoWork += new DoWorkEventHandler(_getCountyBackgroundWorker_DoWork);
            _getCountyBackgroundWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(_getCountyBackgroundWorker_RunWorkerCompleted);
            _getCountyBackgroundWorker.RunWorkerAsync();

            if (UserAcl.Current["Content0050"].Editable)
                return;

            if (UserAcl.Current["Content0050"].Viewable)
                this.Enabled = false;

            Disposed += new EventHandler(AddressPalmerwormItem_Disposed);
        }