示例#1
0
        public void initSelector()
        {
            int        limit      = Configuration.defaultLimit;
            ReaderForm readerForm = Program.MainForm.ReaderForm;

            setBindingSource(readerForm.khoaBindingSource,
                             SqlObjectLoader.getSqlObjectsFromDataTable(
                                 typeof(NameableObject),
                                 getDataTable("getKhoa")));
            setBindingSource(readerForm.classBindingSource,
                             SqlObjectLoader.getSqlObjectsFromDataTable(
                                 typeof(NameableObject),
                                 getDataTable("getLop")));
        }
示例#2
0
        public object[] getReaderSearchParams()
        {
            ReaderForm readerForm = Program.MainForm.ReaderForm;

            object[] arr = new object[11];
            arr[0]  = getValueOfTextBox(readerForm.searchID);
            arr[1]  = getValueOfComboBox(readerForm.searchKhoa);
            arr[2]  = getValueOfComboBox(readerForm.searchClass);
            arr[3]  = readerForm.searchNgayCap.getDateTimeSQL();
            arr[4]  = readerForm.searchHetHan.getDateTimeSQL();
            arr[5]  = getValueOfTextBox(readerForm.searchRealname);
            arr[6]  = readerForm.searchBirthday.getDateTimeSQL();
            arr[7]  = getValueOfComboBox(readerForm.searchSex);
            arr[8]  = getValueOfTextBox(readerForm.searchSDT);
            arr[9]  = getValueOfTextBox(readerForm.searchLocation);
            arr[10] = 100;
            return(arr);
        }