Ejemplo n.º 1
0
 private void iLoanList_LinkClicked(object sender, NavBarLinkEventArgs e)
 {
     new FrmGetDates().ShowDialog();
     if (Class7.IsInputDate)
     {
         ToolsGui.BindToParentForm(new FrmLoanInvList(), this);
     }
 }
Ejemplo n.º 2
0
 private void blbiBuyOld_ItemClick(object sender, ItemClickEventArgs e)
 {
     Class6.string_1 = "19";
     ToolsGui.BindToParentForm(new FrmBookLost(), this);
 }
Ejemplo n.º 3
0
 private void blbiSupplierReturn_ItemClick(object sender, ItemClickEventArgs e)
 {
     Class6.string_1 = "15";
     ToolsGui.BindToParentForm(new FrmToSupp(), this);
 }
Ejemplo n.º 4
0
 private void blbiChangePass_ItemClick(object sender, ItemClickEventArgs e)
 {
     ToolsGui.BindToParentForm(new ChangePassForm(), this);
 }
Ejemplo n.º 5
0
 private void barLargeButtonItem4_ItemClick(object sender, ItemClickEventArgs e)
 {
     ToolsGui.BindToParentForm(new FrmLibraryInfo(), this);
 }
Ejemplo n.º 6
0
 private void barLargeButtonItem3_ItemClick(object sender, ItemClickEventArgs e)
 {
     Class6.string_1 = "13";
     ToolsGui.BindToParentForm(new FrmFromSupp(), this);
 }
Ejemplo n.º 7
0
 private void barLargeButtonItem2_ItemClick(object sender, ItemClickEventArgs e)
 {
     ToolsGui.BindToParentForm(new OverDueForm(), this);
 }
Ejemplo n.º 8
0
        private void barManager_0_ItemClick(object sender, ItemClickEventArgs e)
        {
            try
            {
                if (e.Item.GetType() == typeof(BarCheckItem))
                {
                    BarCheckItem checkItem = e.Item as BarCheckItem;
                    if (checkItem != null && checkItem.GroupIndex == 1)
                    {
                        defaultLookAndFeel_0.LookAndFeel.SkinName = e.Item.Caption;
                        SysvarService ser  = new SysvarService();
                        Sysvar        sysV = ser.GetByMCode("Themes");
                        if (sysV == null)
                        {
                            sysV       = new Sysvar();
                            sysV.MCode = "Themes";
                            sysV.Type  = "G";
                        }

                        sysV.MValue = checkItem.Caption;
                        ser.Save(sysV);
                    }

                    return;
                }

                switch (e.Item.Tag.ToString())
                {
                case "PREPORTS":
                    Class11.string_1 = "P";
                    ToolsGui.BindToParentForm(new FrmReports(), this);
                    return;

                case "STOCKADD":
                    FrmLibraryDef frm4 = new FrmLibraryDef();
                    frm4.MdiParent = this;
                    frm4.Show();
                    return;

                case "UNITS":
                    ToolsGui.BindToParentForm(new UnitsForm(), this);
                    return;

                case "GOODSGRP":
                    ToolsGui.BindToParentForm(new BookCategoryForm(), this);
                    return;

                case "GOODS":
                    ToolsGui.BindToParentForm(new BookForm(), this);
                    return;

                case "DIAGRAM":
                    ToolsGui.BindToParentForm(new LibraryLocationForm(), this);
                    return;

                case "MERCLOCATION":
                    ToolsGui.BindToParentForm(new BooksLocationForm(), this);
                    return;

                case "LABELS":
                    ToolsGui.BindToParentForm(new CardPrintForm(), this);
                    return;

                case "CUSTOMER":
                    ReaderForm frm6 = new ReaderForm();
                    frm6.MdiParent = this;
                    frm6.Show();
                    return;

                case "ORDER":
                    ToolsGui.BindToParentForm(new FrmMercOrder(), this);
                    return;

                case "TRANSCODE":
                    Class11.string_1 = "K";
                    ToolsGui.BindToParentForm(new FrmTransCode(), this);
                    return;

                case "STKINFO":
                    ToolsGui.BindToParentForm(new FrmLibraryInfo(), this);
                    return;

                case "SUPPINFO":
                    ToolsGui.BindToParentForm(new FrmSuppInfo(), this);
                    return;

                case "MERCQR":
                    ToolsGui.BindToParentForm(new FrmBookView(), this);
                    return;

                case "KREPORTS":
                    Class11.string_1 = "K";
                    ToolsGui.BindToParentForm(new FrmReports(), this);
                    return;

                case "SUPPDEF":
                    ToolsGui.BindToParentForm(new FrmCustomer(), this);
                    return;

                case "ABOUT":
                    new AboutForm().ShowDialog();
                    return;

                case "AREPORT":
                    Class11.string_1 = "A";
                    ToolsGui.BindToParentForm(new FrmReports(), this);
                    return;

                case "LOAN":
                    ToolsGui.BindToParentForm(new LoanBookForm(), this);
                    return;

                case "RECEIVED":
                    ToolsGui.BindToParentForm(new ReturnBookForm(), this);
                    return;

                case "OVERDUELST":
                    ToolsGui.BindToParentForm(new OverDueForm(), this);
                    return;

                case "BOOKSEARCH":
                    ToolsGui.BindToParentForm(new BookListForm(), this);
                    return;

                case "LANGUAGE":
                    ToolsGui.BindToParentForm(new FrmLanguage(), this);
                    return;

                case "LOANLST":
                    new FrmGetDates().ShowDialog();
                    if (Class7.IsInputDate)
                    {
                        ToolsGui.BindToParentForm(new FrmLoanInvList(), this);
                    }
                    return;

                case "LREPORTS":
                    ToolsGui.BindToParentForm(new FrmReaderInfo(), this);
                    return;

                case "LBRCARD":
                    ToolsGui.BindToParentForm(new CardPrintForm(), this);
                    return;

                default:
                    return;
                }
            }
            catch
            {
            }
        }
Ejemplo n.º 9
0
 private void iReaderInfo_LinkClicked(object sender, NavBarLinkEventArgs e)
 {
     ToolsGui.BindToParentForm(new FrmReaderInfo(), this);
 }
Ejemplo n.º 10
0
 private void iCardDef_LinkClicked(object sender, NavBarLinkEventArgs e)
 {
     ToolsGui.BindToParentForm(new ReaderForm(), this);
 }
Ejemplo n.º 11
0
 private void iBookFinder_LinkClicked(object sender, NavBarLinkEventArgs e)
 {
     ToolsGui.BindToParentForm(new BookListForm(), this);
 }
Ejemplo n.º 12
0
 private void iReturn_LinkClicked(object sender, NavBarLinkEventArgs e)
 {
     ToolsGui.BindToParentForm(new ReturnBookForm(), this);
 }