Esempio n. 1
0
 internal BookCondition()
 {
     InitializeComponent();
     fh = new DBForms.DBForm(this, TopPanel, btnClose);
     fh.Init <tables.BookCondition, tables.BookCondition>(this.panForm, obj);
     DBForms.DBForm.SetSearchable(coppy, txtCoppyNo, SelectCoppy, "ID", "CoppyNo");
 }
Esempio n. 2
0
 internal MemberList()
 {
     InitializeComponent();
     fh     = new DBForms.DBForm(this, TopPanel, btnClose, null, btnMaximize);
     report = new DBForms.ListView <tables.Member, tables.Member>(panForm, "", DBForms.helper.Printing.MyPrinter.DataGrideViewPrinter);
     report.SearchControl(txtTitle, "FullName");
 }
 internal Category()
 {
     InitializeComponent();
     fh = new DBForms.DBForm(this, TopPanel, btnClose);
     fh.Init <tables.BookCategory, tables.BookCategory>(this.panForm, obj);
     report = new DBForms.ListView <tables.BookCategory, tables.BookCategory>(panForm, "", DBForms.helper.Printing.MyPrinter.DataGrideViewPrinter);
 }
Esempio n. 4
0
 internal Book()
 {
     InitializeComponent();
     fh = new DBForms.DBForm(this, TopPanel, btnClose);
     fh.Init <tables.Book, tables.Book>(this.panForm, obj);
     fh.SetFormButtons(obj, panForm, btnSave, btnReset);
     DBForms.DBForm.PopulateCombobox <tables.BookCategory>(cmbCategoryID, "ID", "CategoryName");
 }
Esempio n. 5
0
 internal FineList()
 {
     InitializeComponent();
     fh     = new DBForms.DBForm(this, TopPanel, btnClose, null, btnMaximize);
     report = new DBForms.ListView <tables.Circulation, tables.view.MemberFine>(panForm, "", DBForms.helper.Printing.MyPrinter.DataGrideViewPrinter);
     report.SearchControl(txtMemberID, "MemberID");
     report.Where("Fine>", 0);
 }
Esempio n. 6
0
 internal BookCoppisList()
 {
     InitializeComponent();
     fh     = new DBForms.DBForm(this, TopPanel, btnClose, null, btnMaximize);
     report = new DBForms.ListView <tables.BookCoppy, tables.view.BookCoppy>(panForm, "", DBForms.helper.Printing.MyPrinter.DataGrideViewPrinter);
     report.SearchControl(txtTitle, "Title");
     report.SearchControl(txtCoppyNo, "CoppyNo");
 }
Esempio n. 7
0
 internal Member()
 {
     InitializeComponent();
     fh = new DBForms.DBForm(this, TopPanel, btnClose);
     fh.Init <tables.Member, tables.Member>(this.panForm, obj);
     fh.SetFormButtons(obj, panForm, btnSave, btnReset);
     DBForms.DBForm.PopulateCombobox <tables.MemberType>(cmbMemberType, "ID", "TypeName");
 }
Esempio n. 8
0
 internal BookSearch()
 {
     InitializeComponent();
     fh     = new DBForms.DBForm(this, TopPanel, btnClose);
     report = new DBForms.ListView <tables.Book, tables.view.BooksList>(panForm, "", DBForms.helper.Printing.MyPrinter.DataGrideViewPrinter);
     report.SearchControl(txtBookTitle, "Title");
     report.SearchControl(txtBookAuthor, "Author");
     DBForms.DBForm.PopulateCombobox <tables.BookCategory>(cmbCategoryID, "ID", "CategoryName");
 }
 internal SystemLogs()
 {
     InitializeComponent();
     fh     = new DBForms.DBForm(this, TopPanel, btnClose, null, btnMaximize);
     report = new DBForms.ListView <tables.SoftwareLogs, tables.SoftwareLogs>(panForm, "", DBForms.helper.Printing.MyPrinter.DataGrideViewPrinter);
     report.SearchControl(txtUserName, "UserName");
     report.SearchControl(dtpFromDate, "Created>");
     report.SearchControl(dtpToDate, "Created<");
     DBForms.DBForm.SetDateRange(dtpFromDate, dtpToDate);
 }
 internal BookCoppy()
 {
     InitializeComponent();
     fh = new DBForms.DBForm(this, TopPanel, btnClose);
     fh.Init <tables.BookCoppy, tables.BookCoppy>(this.panForm, obj);
     //fh.SetFormButtons<tables.BookCoppy>(obj, gbpForm, btnSave, btnClear);
     DBForms.DBForm.PopulateCombobox <tables.BookCategory>(cmbCategoryID, "ID", "CategoryName");
     DBForms.DBForm.SetSearchable(b, txtRegisterNo, BookSelect, "ID", "RegisterNo");
     DBForms.DBForm.SetSearchable(b, txtTitle, BookSelect, "ID", "Title");
 }
        internal Password(long ID)
        {
            InitializeComponent();
            fh = new DBForms.DBForm(this, TopPanel, btnClose);
            fh.Init <tables.User, tables.User>(this.panForm, obj);

            fh.SetFormButtons(obj, panForm, btnSave);

            obj.Set(ID);
        }
 internal Profile(long ID)
 {
     InitializeComponent();
     fh = new DBForms.DBForm(this, TopPanel, btnClose);
     fh.Init <tables.User, tables.User>(panForm, obj);
     if (ID > 0)
     {
         obj.Set(ID);
         DBForms.DBForm.SetForm <tables.User>(obj, panForm);
     }
 }
        internal User()
        {
            InitializeComponent();
            fh = new DBForms.DBForm(this, TopPanel, btnClose);

            fh.Init <tables.User, tables.User>(this.panForm, obj);

            fh.SetFormButtons(obj, panForm, btnSave, btnReset);

            cmbActive.Enabled   = Core._user.info.UserType == UserTypes.Admin;
            cmbUserType.Enabled = Core._user.info.UserType == UserTypes.Admin;
        }
Esempio n. 14
0
 internal CirculationBookReturn()
 {
     InitializeComponent();
     fh = new DBForms.DBForm(this, TopPanel, btnClose);
     fh.Init <tables.Circulation, tables.Circulation>(this.panForm, obj);
     DBForms.DBForm.SetSearchable(member, txtMemberID, MemberSelect, "ID", "MemberID");
     DBForms.DBForm.PopulateComobobox(cmbCirculationStatus, typeof(CirculationStatus));
     report = new DBForms.ShortDataList <tables.Circulation, tables.view.Circulation>(dgvTable);
     report.SearchControl(txtMemberID, "MemberID");
     report.SearchControl(cmbCirculationStatus, "Status");
     cmbCirculationStatus.SelectedIndex = 0;
     DBForms.DBForm.SetDateRange(dtpIssuedDate, dtpReturnDate);
 }
        internal CirculationBookIssue()
        {
            InitializeComponent();
            fh = new DBForms.DBForm(this, TopPanel, btnClose);
            fh.Init <tables.Circulation, tables.Circulation>(this.panForm, obj);

            DBForms.DBForm.SetSearchable(member, txtMemberID, MemberSelect, "ID", "MemberID");
            DBForms.DBForm.SetSearchable(coppy, txtCoppyNo, BookCoppySelect, "ID", "CoppyNo");

            report = new DBForms.ShortDataList <tables.Circulation, tables.view.Circulation>(dgvTable);
            report.SearchControl(txtMemberID, "MemberID");
            report.Where("Status", (int)CirculationStatus.Issued);
        }
Esempio n. 16
0
        internal BookCondition(long ID)
        {
            InitializeComponent();
            fh = new DBForms.DBForm(this, TopPanel, btnClose);
            fh.Init <tables.BookCondition, tables.BookCondition>(this.panForm, obj);
            DBForms.DBForm.SetSearchable(coppy, txtCoppyNo, SelectCoppy, "ID", "CoppyNo");

            if (ID > 0)
            {
                obj.Set(ID);
                DBForms.DBForm.SetForm <tables.BookCondition>(obj, panForm);
                btnSave.Text = "UPDATE";
            }
        }
Esempio n. 17
0
 internal Settings()
 {
     InitializeComponent();
     fh = new DBForms.DBForm(this, TopPanel, btnClose);
     fh.Init <tables.Settings, tables.Settings>(this.panForm, obj);
     fh.SetFormButtons(obj, panForm, btnSave);
     if (controllers.Settings.Count() > 0)
     {
         obj.First();
         DBForms.DBForm.SetForm(obj, panForm);
     }
     DBForms.DBForm.SetPictureBox(pcbInstituteLogo, btnSelectLogo);
     DBForms.DBForm.SetPictureBox(pcbInstituteBackground, btnSelectBackground);
 }
 internal CirculationDetails(long id)
 {
     InitializeComponent();
     if (id <= 0)
     {
         this.Close();
     }
     fh = new DBForms.DBForm(this, TopPanel, btnClose);
     fh.Init <tables.Circulation, tables.Circulation>(this.panForm, obj);
     obj.Set(id);
     member.First("MemberID", obj.info.MemberID);
     DBForms.DBForm.SetForm(obj, panForm);
     txtMemberFullName.Text = member.info.FullName;
 }
Esempio n. 19
0
        internal Book(long ID)
        {
            InitializeComponent();
            DBForms.DBForm.PopulateCombobox <tables.BookCategory>(cmbCategoryID, "ID", "CategoryName");
            fh = new DBForms.DBForm(this, TopPanel, btnClose);
            fh.Init <tables.Book, tables.Book>(this.panForm, obj);
            fh.SetFormButtons(obj, panForm, btnSave, btnReset);
            btnReset.Visible = false;

            if (ID > 0)
            {
                obj.Set(ID);
                DBForms.DBForm.SetForm <tables.Book>(obj, panForm);
                btnSave.Text = "UPDATE";
            }
        }
Esempio n. 20
0
        internal Member(long ID)
        {
            InitializeComponent();
            fh = new DBForms.DBForm(this, TopPanel, btnClose);
            fh.Init <tables.Member, tables.Member>(this.panForm, obj);
            fh.SetFormButtons(obj, panForm, btnSave, btnReset);
            DBForms.DBForm.PopulateCombobox <tables.MemberType>(cmbMemberType, "ID", "TypeName");
            btnReset.Visible = false;

            if (ID > 0)
            {
                obj.Set(ID);
                DBForms.DBForm.SetForm(obj, panForm);
                btnSave.Text = "UPDATE";
            }
        }
 internal BookCoppy(long id)
 {
     InitializeComponent();
     fh = new DBForms.DBForm(this, TopPanel, btnClose);
     DBForms.DBForm.PopulateCombobox <tables.BookCategory>(cmbCategoryID, "ID", "CategoryName");
     DBForms.DBForm.SetSearchable(b, txtRegisterNo, BookSelect, "ID", "RegisterNo");
     DBForms.DBForm.SetSearchable(b, txtTitle, BookSelect, "ID", "Title");
     gbpBook.Enabled    = false;
     txtCoppyNo.Enabled = false;
     if (id >= 0)
     {
         obj.Set(id);
         b.Set(obj.info.BookID);
         fh.Init <tables.BookCoppy, tables.BookCoppy>(this.panForm, obj);
         BookSelect();
         DBForms.Common.ObjectToForm(gbpForm, obj.info);
         btnSave.Text = "SAVE CHANGES";
     }
 }
        internal User(long ID)
        {
            InitializeComponent();
            fh = new DBForms.DBForm(this, TopPanel, btnClose);
            fh.Init <tables.User, tables.User>(this.panForm, obj);
            fh.SetFormButtons(obj, panForm, btnSave, btnReset);

            cmbUserType.Enabled = (Core._user.info.UserType == UserTypes.Admin && ID != Core._user.info.ID);
            cmbActive.Enabled   = Core._user.info.UserType == UserTypes.Admin;

            btnReset.Visible    = false;
            txtPassword.Enabled = Core._user.info.UserType == UserTypes.Admin;;

            if (ID > 0)
            {
                obj.Set(ID);
                DBForms.DBForm.SetForm <tables.User>(obj, panForm);
                txtUsername.Enabled = false;
                btnSave.Text        = "UPDATE";
            }
        }
Esempio n. 23
0
 internal Backup()
 {
     InitializeComponent();
     fh = new DBForms.DBForm(this, TopPanel, btnClose);
 }
Esempio n. 24
0
 internal About()
 {
     InitializeComponent();
     fh            = new DBForms.DBForm(this, TopPanel, btnClose);
     txtAbout.Text = "Library Mangament is open source software developed in C#.\r";
 }