Beispiel #1
0
 private void Browser_NewWindow(object sender, CancelEventArgs e)
 {
     //获取触发tempBrowser_NewWindow事件的浏览器
     WebBrowser myBrowser = (WebBrowser)sender;
     //获取触发tempBrowser_NewWindow事件的浏览器所在TabPage
     XtraTabPage mypage = (XtraTabPage)myBrowser.Parent;
     //通过StatusText属性获得新的url
     string NewURL = ((WebBrowser)sender).StatusText;
     //生成新的一页
     XtraTabPage TabPageTemp = new XtraTabPage();
     //生成新的tempBrowser
     WebBrowser tempBrowser = new WebBrowser();
     //临时浏览器定向到新的url
     tempBrowser.Navigate(NewURL);
     tempBrowser.Dock = DockStyle.Fill;
     //为临时浏览器关联NewWindow等事件
     tempBrowser.NewWindow +=
        new CancelEventHandler(Browser_NewWindow);
     tempBrowser.Navigated +=
        new WebBrowserNavigatedEventHandler(Browser_Navigated);
     tempBrowser.ProgressChanged +=
        new WebBrowserProgressChangedEventHandler(Browser_ProgressChanged);
     tempBrowser.StatusTextChanged +=
        new EventHandler(Browser_StatusTextChanged);
     tempBrowser.DocumentCompleted +=
         new WebBrowserDocumentCompletedEventHandler(Browser_DocumentCompleted);
     //将临时浏览器添加到临时TabPage中
     TabPageTemp.Controls.Add(tempBrowser);
     //将临时TabPage添加到主窗体中
     this.tctlControl.TabPages.Add(TabPageTemp);
     TabPageTemp.Text = "加载中";
     //使外部无法捕获此事件
     e.Cancel = true;
     DisbaledRight(tempBrowser);
 }
        /// <summary>
        /// 每个模块对应一个TabPage, 將模块主窗体的Panel容器集成在主窗体的TabPage页内。
        /// 所有加载的模块主窗体的Panel容器都嵌套在主窗体的TabControl内。
        /// </summary>
        public override void LoadGUI(object mainTabControl)
        {
            if (mainTabControl == null) return;
            if ((mainTabControl is XtraTabControl) == false) return;

            //主窗体的TabControl组件
            XtraTabControl xtraTabControl = mainTabControl as XtraTabControl;

            try
            {
                //获取模块主窗体的Panel容器
                Control container = _ModuleMainForm.GetContainer();

                if (null != container)
                {
                    container.Dock = DockStyle.Fill;
                    XtraTabPage page = new XtraTabPage();
                    page.Tag = _ModuleMainForm; //模块窗体
                    page.Text = _ModuleMainForm.ModuleName;//取模块名称// this.GetCurrentModuleName();
                    page.Controls.Add(container); //嵌套在主窗体的TabControl内
                    xtraTabControl.TabPages.Add(page);
                }
            }
            catch (Exception ex) { Msg.ShowException(ex); }
        }
Beispiel #3
0
 private void BindPageTab(XtraTabPage tabPage, XtraForm form)
 {
     var _tabPage = CreateTabPageControl("零部件列表");
     _tabPage.Controls.Add(form);
     tabControl.TabPages.Add(_tabPage);
     tabPage.Controls.Add(tabControl);
     xtraTabControl1.SelectedTabPage = tabPage;
 }
Beispiel #4
0
 public bool HasView(XtraTabPage page, ViewTypeEnum findView)
 {
     if (page.Tag is ViewTypeEnum)
     {
         var pageView = (ViewTypeEnum) page.Tag;
         return pageView == findView;
     }
     return false;
 }
Beispiel #5
0
 private XtraTabPage CreatePage(BaseActionView actionView)
 {
     var page = new XtraTabPage();
     IEntityGridControl entityGridControl = _entityGridControlFactory.Create(actionView);
     page.Controls.Add(entityGridControl.Control);
     page.Tag = actionView.View;
     page.Text = actionView.Caption;
     return page;
 }
Beispiel #6
0
        public void AddTab(XtraUserControl userControl, string titleTab, bool newTab)
        {
            //estancia uma nova Tab passando os parametros
            XtraTabPage sysTabPage1 = new XtraTabPage();

            // mostra o botao de fechamento da Tab
            if (userControl.Name.Equals("WaringsPaymentsDayForm"))
                sysTabPage1.ShowCloseButton = DefaultBoolean.False;
            else
                sysTabPage1.ShowCloseButton = DefaultBoolean.True;

            //informa qual o Control
            sysTabPage1.Controls.Add((Control)userControl);

            //informa o nome do Control para comparações futuras
            sysTabPage1.Tag = userControl.Name;
            //informa o titulo da Tab
            sysTabPage1.Text = titleTab;

            // Inteiro necessario para saber se o Control ja existe na Tab
            int num = 0;

            // estancia um nova Tab caso ja exista o Control informado anteriormente e vincula a esta para usar futuramente
            XtraTabPage sysTabPage2 = new XtraTabPage();

            // verifica se ja existe
            foreach (XtraTabPage sysTabPage3 in desk.tabControl.TabPages)
            {
                // se existir vincula a Tab criada anteriormente, se nao existir nao faz nada
                if (sysTabPage3 == sysTabPage1 || sysTabPage3.Tag.Equals(sysTabPage1.Tag))
                {
                    ++num;
                    sysTabPage2 = sysTabPage3;
                }
            }

            // se o Control nao existir na Tab vincula ela, e da foco
            if (num == 0)
            {
                desk.tabControl.TabPages.Add(sysTabPage1);
                desk.tabControl.SelectedTabPage = sysTabPage1;
            }

            // caso existir mas newTab esteja TRUE remeve a atual e vincula a nova
            else if (newTab)
            {
                desk.tabControl.TabPages.Remove(sysTabPage2);
                desk.tabControl.TabPages.Add(sysTabPage1);
                desk.tabControl.SelectedTabPage = sysTabPage1;
            }

            // se existir e nao deseja vincular nova, apenas da foco
            else
                desk.tabControl.SelectedTabPage = sysTabPage2;
            SplashScreenManager.CloseForm(false);
        }
        public static void addNewTab(DevExpress.XtraEditors.XtraUserControl uc, String title)
        {
            uc.Dock = DockStyle.Fill;
            XtraTabPage Page = new XtraTabPage();
            Page.Name = uc.Name;

            Page.Text = title;
            Page.Controls.Add(uc);
            xtabMainForm.TabPages.Add(Page);
            xtabMainForm.SelectedTabPageIndex = xtabMainForm.TabPages.IndexOf(Page) + 1;
        }
        //El3hata
        public void bindRecordEl3hataForm(CarEl3hata carEl3hata)
        {
            CarEl3htaCreate objForm = new CarEl3htaCreate(carEl3hata, xtraTabControlCarsContent);

            objForm.TopLevel = false;
            XtraTabPage xtraTabPage = getTabPage("تسجيل العهدة");

            if (xtraTabPage == null)
            {
                xtraTabControlCarsContent.TabPages.Add("تسجيل العهدة");
                xtraTabPage = getTabPage("تسجيل العهدة");
            }
            xtraTabPage.Controls.Clear();
            xtraTabPage.Controls.Add(objForm);
            xtraTabControlCarsContent.SelectedTabPage = xtraTabPage;

            objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            objForm.Dock            = DockStyle.Fill;
            objForm.Show();
        }
        public void bindUpdateEl3hataForm(DataRowView El3htaRow, CarEl3hata carEl3hata)
        {
            CarElahataUpdate objForm = new CarElahataUpdate(Convert.ToInt16(El3htaRow[0].ToString()), carEl3hata, xtraTabControlCarsContent);

            objForm.TopLevel = false;
            XtraTabPage xtraTabPage = getTabPage("تعديل العهدة");

            if (xtraTabPage == null)
            {
                xtraTabControlCarsContent.TabPages.Add("تعديل العهدة");
                xtraTabPage = getTabPage("تعديل العهدة");
            }
            xtraTabPage.Controls.Clear();
            xtraTabPage.Controls.Add(objForm);
            xtraTabControlCarsContent.SelectedTabPage = xtraTabPage;

            objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            objForm.Dock            = DockStyle.Fill;
            objForm.Show();
        }
Beispiel #10
0
        public void bindReportSparePartForm(GridControl gridControl)
        {
            SparePart_Report objForm = new SparePart_Report(gridControl);

            objForm.TopLevel = false;
            XtraTabPage xtraTabPage = getTabPage(xtraTabControlCarsContent, "تقرير قطع الغيار");

            if (xtraTabPage == null)
            {
                xtraTabControlCarsContent.TabPages.Add("تقرير قطع الغيار");
                xtraTabPage = getTabPage(xtraTabControlCarsContent, "تقرير قطع الغيار");
            }
            xtraTabPage.Controls.Clear();
            xtraTabPage.Controls.Add(objForm);
            xtraTabControlCarsContent.SelectedTabPage = xtraTabPage;

            objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            objForm.Dock            = DockStyle.Fill;
            objForm.Show();
        }
        public void bindUpdateSparePartForm(DataRowView SparePartRow, SparePart sparepart)
        {
            SparePartUpdate objForm = new SparePartUpdate(SparePartRow, sparepart, xtraTabControlCarsContent);

            objForm.TopLevel = false;
            XtraTabPage xtraTabPage = getTabPage("تعديل قطع الغيار");

            if (xtraTabPage == null)
            {
                xtraTabControlCarsContent.TabPages.Add("تعديل قطع الغيار");
                xtraTabPage = getTabPage("تعديل قطع الغيار");
            }
            xtraTabPage.Controls.Clear();
            xtraTabPage.Controls.Add(objForm);
            xtraTabControlCarsContent.SelectedTabPage = xtraTabPage;

            objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            objForm.Dock            = DockStyle.Fill;
            objForm.Show();
        }
Beispiel #12
0
        public void bindRecordEmployeesForm(Employees employees)
        {
            EmployeeRecord objForm = new EmployeeRecord(employees, xtraTabControlHRContent);

            objForm.TopLevel = false;
            XtraTabPage xtraTabPage = getTabPage(xtraTabControlHRContent, "أضافة موظف");

            if (xtraTabPage == null)
            {
                xtraTabControlHRContent.TabPages.Add("أضافة موظف");
                xtraTabPage = getTabPage(xtraTabControlHRContent, "أضافة موظف");
            }
            xtraTabPage.Controls.Clear();
            xtraTabPage.Controls.Add(objForm);
            xtraTabControlHRContent.SelectedTabPage = xtraTabPage;

            objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            objForm.Dock            = DockStyle.Fill;
            objForm.Show();
        }
Beispiel #13
0
        public void bindReport4EmployeesForm(GridControl gridControl)
        {
            EmployeeReport objForm = new EmployeeReport(gridControl, "تقرير البيانات الشخصية للموظفين");

            objForm.TopLevel = false;
            XtraTabPage xtraTabPage = getTabPage(xtraTabControlHRContent, "تقرير البيانات الشخصية للموظفين");

            if (xtraTabPage == null)
            {
                xtraTabControlHRContent.TabPages.Add("تقرير البيانات الشخصية للموظفين");
                xtraTabPage = getTabPage(xtraTabControlHRContent, "تقرير البيانات الشخصية للموظفين");
            }
            xtraTabPage.Controls.Clear();
            xtraTabPage.Controls.Add(objForm);
            xtraTabControlHRContent.SelectedTabPage = xtraTabPage;

            objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            objForm.Dock            = DockStyle.Fill;
            objForm.Show();
        }
 private void dateTimePicker2_ValueChanged(object sender, EventArgs e)
 {
     try
     {
         calLicenseAvaliblePeriod();
         XtraTabPage xtraTabPage = getTabPage("تسجيل رخصة العربية");
         if (dateTimePicker2.Text != date.Split('*')[1] || !IsClear())
         {
             xtraTabPage.ImageOptions.Image = Properties.Resources.unsave__2_;
         }
         else
         {
             xtraTabPage.ImageOptions.Image = null;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
        public void bindUpdateIncomesForm(DataRowView incomesRow, CarIncomes carIncomes)
        {
            CarIncomeUpdate objForm = new CarIncomeUpdate(Convert.ToInt16(incomesRow[0].ToString()), carIncomes, xtraTabControlCarsContent);

            objForm.TopLevel = false;
            XtraTabPage xtraTabPage = getTabPage("تعديل إيراد");

            if (xtraTabPage == null)
            {
                xtraTabControlCarsContent.TabPages.Add("تعديل إيراد");
                xtraTabPage = getTabPage("تعديل إيراد");
            }
            xtraTabPage.Controls.Clear();
            xtraTabPage.Controls.Add(objForm);
            xtraTabControlCarsContent.SelectedTabPage = xtraTabPage;

            objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            objForm.Dock            = DockStyle.Fill;
            objForm.Show();
        }
Beispiel #16
0
        public void SetTabPage()
        {
            List <string> ls = new List <string>();

            for (int i = 0; i < dt.Rows.Count; i++)
            {
                ls.Add(dt.Rows[i]["sysid"].ToString());
            }
            List <string> lss = ls.Distinct().ToList();

            xtraTabControl1.TabPages.Clear();

            foreach (string nm in lss)
            {
                listBox1.Items.Add(nm);
                XtraTabPage xTabPage = new XtraTabPage();
                xTabPage.Text = nm;
                xtraTabControl1.TabPages.Add(xTabPage);
            }
        }
        private void smiCloseOther_Click(object sender, EventArgs e)
        {
            XtraTabPage           currentPage = this.tbcPages.SelectedTabPage;
            XtraTabPageCollection tabPages    = this.tbcPages.TabPages;
            List <XtraTabPage>    removePages = new List <XtraTabPage>();

            for (int i = 0; i < tabPages.Count; i++)
            {
                if (tabPages[i] != currentPage)
                {
                    removePages.Add(tabPages[i]);
                }
            }

            for (int i = 0; i < removePages.Count; i++)
            {
                removePages[i].Controls[0].Dispose();
                tabPages.Remove(removePages[i]);
            }
        }
Beispiel #18
0
        private void barButtonItem5_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            XtraTabPage tabTK_DoanhThu = new XtraTabPage();

            tabTK_DoanhThu.Text = "Hướng dẫn sử dụng phần mềm";
            if (KiemTraTabPage(tabTK_DoanhThu.Text) == false)
            {
                xtraTabControl1.TabPages.Add(tabTK_DoanhThu);
            }
            else
            {
                tabTK_DoanhThu.PageVisible = true;
            }
            UC_Huongdan ds = new UC_Huongdan();

            ds.Parent = xtraTabControl1.TabPages[ViTriTabPage(tabTK_DoanhThu.Text)];
            ds.Dock   = DockStyle.Fill;
            ds.Show();
            xtraTabControl1.SelectedTabPage = xtraTabControl1.TabPages[ViTriTabPage(tabTK_DoanhThu.Text)];
        }
Beispiel #19
0
        private void bbiNhapHang_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            XtraTabPage tabNhapHang = new XtraTabPage();

            tabNhapHang.Text = "Phiếu nhập";
            if (KiemTraTabPage(tabNhapHang.Text) == false)
            {
                xtraTabControl1.TabPages.Add(tabNhapHang);
            }
            else
            {
                tabNhapHang.PageVisible = true;
            }
            UC_NhapHang NhapHang = new UC_NhapHang();

            NhapHang.Parent = xtraTabControl1.TabPages[ViTriTabPage(tabNhapHang.Text)];
            NhapHang.Dock   = DockStyle.Fill;
            NhapHang.Show();
            xtraTabControl1.SelectedTabPage = xtraTabControl1.TabPages[ViTriTabPage(tabNhapHang.Text)];
        }
Beispiel #20
0
        private void bbiPhieuXuat_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            XtraTabPage tabXuatHang = new XtraTabPage();

            tabXuatHang.Text = "Phiếu xuất";
            if (KiemTraTabPage(tabXuatHang.Text) == false)
            {
                xtraTabControl1.TabPages.Add(tabXuatHang);
            }
            else
            {
                tabXuatHang.PageVisible = true;
            }
            UXuatHang XuatHang = new View.UXuatHang();

            XuatHang.Parent = xtraTabControl1.TabPages[ViTriTabPage(tabXuatHang.Text)];
            XuatHang.Dock   = DockStyle.Fill;
            XuatHang.Show();
            xtraTabControl1.SelectedTabPage = xtraTabControl1.TabPages[ViTriTabPage(tabXuatHang.Text)];
        }
        public void bindUpdateExpensesForm(DataRowView ExpensesRow, CarExpenses carExpenses)
        {
            CarExpensesUpdate objForm = new CarExpensesUpdate(ExpensesRow, carExpenses, xtraTabControlCarsContent);

            objForm.TopLevel = false;
            XtraTabPage xtraTabPage = getTabPage("تعديل مصروف");

            if (xtraTabPage == null)
            {
                xtraTabControlCarsContent.TabPages.Add("تعديل مصروف");
                xtraTabPage = getTabPage("تعديل مصروف");
            }
            xtraTabPage.Controls.Clear();
            xtraTabPage.Controls.Add(objForm);
            xtraTabControlCarsContent.SelectedTabPage = xtraTabPage;

            objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            objForm.Dock            = DockStyle.Fill;
            objForm.Show();
        }
Beispiel #22
0
        private void bbiTrangChu_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            XtraTabPage tabTrangChu_danhsach = new XtraTabPage();

            tabTrangChu_danhsach.Text = "Danh sách hàng hóa trong kho";
            if (KiemTraTabPage(tabTrangChu_danhsach.Text) == false)
            {
                xtraTabControl1.TabPages.Add(tabTrangChu_danhsach);
            }
            else
            {
                tabTrangChu_danhsach.PageVisible = true;
            }
            UC_TrangChu_DanhSach ds = new UC_TrangChu_DanhSach();

            ds.Parent = xtraTabControl1.TabPages[ViTriTabPage(tabTrangChu_danhsach.Text)];
            ds.Dock   = DockStyle.Fill;
            ds.Show();
            xtraTabControl1.SelectedTabPage = xtraTabControl1.TabPages[ViTriTabPage(tabTrangChu_danhsach.Text)];
        }
        //car Incomes
        public void bindRecordIncomesForm(CarIncomes carIncomes)
        {
            CarIncomeRecord objForm = new CarIncomeRecord(carIncomes, xtraTabControlCarsContent);

            objForm.TopLevel = false;
            XtraTabPage xtraTabPage = getTabPage("تسجيل إيراد");

            if (xtraTabPage == null)
            {
                xtraTabControlCarsContent.TabPages.Add("تسجيل إيراد");
                xtraTabPage = getTabPage("تسجيل إيراد");
            }
            xtraTabPage.Controls.Clear();
            xtraTabPage.Controls.Add(objForm);
            xtraTabControlCarsContent.SelectedTabPage = xtraTabPage;

            objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            objForm.Dock            = DockStyle.Fill;
            objForm.Show();
        }
        public void bindSparePartForm(DataRowView carRow, Cars cars)
        {
            CarSpareParts objForm = new CarSpareParts(carRow, cars, xtraTabControlCarsContent, this);

            objForm.TopLevel = false;
            XtraTabPage xtraTabPage = getTabPage("قطع الغيار");

            if (xtraTabPage == null)
            {
                xtraTabControlCarsContent.TabPages.Add("قطع الغيار");
                xtraTabPage = getTabPage("قطع الغيار");
            }
            xtraTabPage.Controls.Clear();
            xtraTabPage.Controls.Add(objForm);
            xtraTabControlCarsContent.SelectedTabPage = xtraTabPage;

            objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            objForm.Dock            = DockStyle.Fill;
            objForm.Show();
        }
        public void bindReportIncomesForm(GridControl gridControl)
        {
            CarIncomesReport objForm = new CarIncomesReport(gridControl);

            objForm.TopLevel = false;
            XtraTabPage xtraTabPage = getTabPage("تقرير الإيرادات");

            if (xtraTabPage == null)
            {
                xtraTabControlCarsContent.TabPages.Add("تقرير الإيرادات");
                xtraTabPage = getTabPage("تقرير الإيرادات");
            }
            xtraTabPage.Controls.Clear();
            xtraTabPage.Controls.Add(objForm);
            xtraTabControlCarsContent.SelectedTabPage = xtraTabPage;

            objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            objForm.Dock            = DockStyle.Fill;
            objForm.Show();
        }
Beispiel #26
0
        private void barButtonItem_ThongKe_DoanhThu_Chung_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            XtraTabPage tabTK_DoanhThu_Chung = new XtraTabPage();

            tabTK_DoanhThu_Chung.Text = "Doanh thu chung qua các năm";
            if (KiemTraTabPage(tabTK_DoanhThu_Chung.Text) == false)
            {
                xtraTabControl1.TabPages.Add(tabTK_DoanhThu_Chung);
            }
            else
            {
                tabTK_DoanhThu_Chung.PageVisible = true;
            }
            UC_ThongKe_Chung ds = new UC_ThongKe_Chung();

            ds.Parent = xtraTabControl1.TabPages[ViTriTabPage(tabTK_DoanhThu_Chung.Text)];
            ds.Dock   = DockStyle.Fill;
            ds.Show();
            xtraTabControl1.SelectedTabPage = xtraTabControl1.TabPages[ViTriTabPage(tabTK_DoanhThu_Chung.Text)];
        }
Beispiel #27
0
        public void bindUpdateEmployeesForm(DataRowView row, Employees employees)
        {
            EmployeeUpdate objForm = new EmployeeUpdate(row, employees, xtraTabControlHRContent);

            objForm.TopLevel = false;
            XtraTabPage xtraTabPage = getTabPage(xtraTabControlHRContent, "تعديل موظف");

            if (xtraTabPage == null)
            {
                xtraTabControlHRContent.TabPages.Add("تعديل موظف");
                xtraTabPage = getTabPage(xtraTabControlHRContent, "تعديل موظف");
            }
            xtraTabPage.Controls.Clear();
            xtraTabPage.Controls.Add(objForm);
            xtraTabControlHRContent.SelectedTabPage = xtraTabPage;

            objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            objForm.Dock            = DockStyle.Fill;
            objForm.Show();
        }
        public void bindUpdateDriverForm(DataRowView DriverRow, Drivers drivers)
        {
            Driver_Update objForm = new Driver_Update(DriverRow, drivers, xtraTabControlCarsContent);

            objForm.TopLevel = false;
            XtraTabPage xtraTabPage = getTabPage("تعديل بيانات سائق");

            if (xtraTabPage == null)
            {
                xtraTabControlCarsContent.TabPages.Add("تعديل بيانات سائق");
                xtraTabPage = getTabPage("تعديل بيانات سائق");
            }
            xtraTabPage.Controls.Clear();
            xtraTabPage.Controls.Add(objForm);
            xtraTabControlCarsContent.SelectedTabPage = xtraTabPage;

            objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            objForm.Dock            = DockStyle.Fill;
            objForm.Show();
        }
        public void bindCarDriversForm(DataRowView carRow, Cars cars)
        {
            CarDrivers objForm = new CarDrivers(carRow, cars, xtraTabControlCarsContent);

            objForm.TopLevel = false;
            XtraTabPage xtraTabPage = getTabPage("سائقي السيارة");

            if (xtraTabPage == null)
            {
                xtraTabControlCarsContent.TabPages.Add("سائقي السيارة");
                xtraTabPage = getTabPage("سائقي السيارة");
            }
            xtraTabPage.Controls.Clear();
            xtraTabPage.Controls.Add(objForm);
            xtraTabControlCarsContent.SelectedTabPage = xtraTabPage;

            objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            objForm.Dock            = DockStyle.Fill;
            objForm.Show();
        }
Beispiel #30
0
        //function
        //cars
        public void bindRecordCarForm(Cars cars)
        {
            Car_Record objForm = new Car_Record(cars, xtraTabControlCarsContent);

            objForm.TopLevel = false;
            XtraTabPage xtraTabPage = getTabPage(xtraTabControlCarsContent, "أضافة سيارة");

            if (xtraTabPage == null)
            {
                xtraTabControlCarsContent.TabPages.Add("أضافة سيارة");
                xtraTabPage = getTabPage(xtraTabControlCarsContent, "أضافة سيارة");
            }
            xtraTabPage.Controls.Clear();
            xtraTabPage.Controls.Add(objForm);
            xtraTabControlCarsContent.SelectedTabPage = xtraTabPage;

            objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            objForm.Dock            = DockStyle.Fill;
            objForm.Show();
        }
        //drivers
        public void bindRecordDriverForm(Drivers drivers)
        {
            Driver_Record objForm = new Driver_Record(drivers, xtraTabControlCarsContent);

            objForm.TopLevel = false;
            XtraTabPage xtraTabPage = getTabPage("تسجيل سائق");

            if (xtraTabPage == null)
            {
                xtraTabControlCarsContent.TabPages.Add("تسجيل سائق");
                xtraTabPage = getTabPage("تسجيل سائق");
            }
            xtraTabPage.Controls.Clear();
            xtraTabPage.Controls.Add(objForm);
            xtraTabControlCarsContent.SelectedTabPage = xtraTabPage;

            objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            objForm.Dock            = DockStyle.Fill;
            objForm.Show();
        }
        private void DelegateProfit_LinkClicked(object sender, NavBarLinkEventArgs e)
        {
            try
            {
                restForeColorOfNavBarItem();
                NavBarItem navBarItem = (NavBarItem)sender;
                navBarItem.Appearance.ForeColor = Color.Blue;
                if (!xtraTabControlAccounting.Visible)
                {
                    xtraTabControlAccounting.Visible = true;
                }

                XtraTabPage xtraTabPage = getTabPage(xtraTabControlAccounting, "حساب نسبة المندوب");
                if (xtraTabPage == null)
                {
                    xtraTabControlAccounting.TabPages.Add("حساب نسبة المندوب");
                    xtraTabPage             = getTabPage(xtraTabControlAccounting, "حساب نسبة المندوب");
                    xtraTabPage.RightToLeft = RightToLeft.No;
                }
                else
                {
                    xtraTabPage.RightToLeft = RightToLeft.No;
                }

                xtraTabPage.Controls.Clear();
                xtraTabControlAccounting.SelectedTabPage = xtraTabPage;

                GetDelegateProfit objForm = new GetDelegateProfit(this);

                objForm.TopLevel = false;
                xtraTabPage.Controls.Add(objForm);
                objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
                objForm.Dock            = DockStyle.Fill;
                //objForm.DisplayAtaqm();
                objForm.Show();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Beispiel #33
0
        private void OpenAppManager_ItemClick(object sender, ItemClickEventArgs e)
        {
            foreach (XtraTabPage item in this.tabPageControl.TabPages)
            {
                if (item.Text == "应用程序管理")
                {
                    this.tabPageControl.SelectedTabPage = item;
                    return;
                }
            }
            XtraTabPage result = new XtraTabPage();

            System.Windows.Forms.Integration.ElementHost elementHost1 = new System.Windows.Forms.Integration.ElementHost();
            elementHost1.Dock = DockStyle.Fill;
            System.Windows.Controls.ContentControl contentCtrl = new System.Windows.Controls.ContentControl();
            System.Windows.ResourceDictionary      res         = new System.Windows.ResourceDictionary();
            res.BeginInit();
            res.Source = new Uri("pack://application:,,,/Assistant;component/Template/AppManager.xaml");
            res.EndInit();
            contentCtrl.ContentTemplate = res["appManager"] as System.Windows.DataTemplate;
            contentCtrl.CommandBindings.Add(new System.Windows.Input.CommandBinding(Commands.Browser, OnOpenAppFile, CanOpenAppFile));
            contentCtrl.CommandBindings.Add(new System.Windows.Input.CommandBinding(Commands.OK, OnUploadAppFile, CanUploadAppFile));
            contentCtrl.CommandBindings.Add(new System.Windows.Input.CommandBinding(Commands.Add, OnAddAppFile));
            contentCtrl.CommandBindings.Add(new System.Windows.Input.CommandBinding(Commands.Delete, OnDeleteAppFile, CanDeleteAppFiel));
            contentCtrl.CommandBindings.Add(new System.Windows.Input.CommandBinding(Commands.Remove, OnRemoveAppFile, CanRemoveAppFiel));
            try
            {
                contentCtrl.DataContext = new AppFileManager();
                contentCtrl.Content     = contentCtrl.DataContext;
                elementHost1.Child      = contentCtrl;
                result.Controls.Add(elementHost1);
                result.ShowCloseButton = DevExpress.Utils.DefaultBoolean.True;
                result.Text            = "应用程序管理";
                this.tabPageControl.TabPages.Add(result);
                this.tabPageControl.SelectedTabPage = result;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Beispiel #34
0
        public void DuplicateQuery()
        {
            Query q  = CurrentQuery;
            int   qi = GetQueryIndex(q);           // index of query to dup

            if (qi != CurrentQueryIndex)
            {
                qi = qi;                                      // debug
            }
            if (qi < 0 || qi >= DocumentList.Count)
            {
                return;
            }
            qi++;                                                 // where duplicate query will go

            Query q2 = q.Clone();                                 // make copy query

            q2.UserObject = new UserObject(UserObjectType.Query); // reset userobject info
            q2.Name       = q.Name;                               // set base name to build new name from
            AssignUniqueQueryName(q2);

            Document doc = new Document();

            doc.Type    = DocumentType.Query;
            doc.Content = q2;
            DocumentList.Insert(qi, doc);
            CurrentQuery      = q2;
            CurrentQueryIndex = qi;

            XtraTabPage tp = new XtraTabPage();

            tp.ImageIndex = 0;
            tp.Text       = q2.Name;
            Tabs.TabPages.Insert(qi, tp);
            Tabs.SelectedTabPageIndex = qi;

            QbUtil.SetMode(QueryMode.Build);
            //Qtc.Render(CurrentQuery);
            SessionManager.SetShellTitle(q2.Name);             // set main window title
            return;
        }
Beispiel #35
0
        ///<summary>
        ///将控件添加到标签页中
        ///</summary>
        ///<param name="PageName">窗体名</param>
        ///<param name="ctrl">添加的From/CefSharp.WinForms.ChromiumWebBrowser webComhtml = null</param>
        private void AddControlToPage(string PageName, Form frm = null, XtraTabControl xtraTabControl = null)
        {
            WaitDialogForm waitFrm = new WaitDialogForm("x x", "xxx");

            try
            {
                foreach (XtraTabPage page in xtraTabControl.TabPages)
                {
                    if (page.Text == PageName)
                    {
                        xtraTabControl.SelectedTabPage = page;//显示该页面
                        return;
                    }
                }
                XtraTabPage xpage = new XtraTabPage();
                xpage.Name = PageName;
                xpage.Text = PageName;
                if (frm != null)
                {
                    //frm.MdiParent = this;
                    frm.Visible         = true;
                    frm.Dock            = DockStyle.Fill;
                    frm.FormBorderStyle = FormBorderStyle.None;
                    frm.TopLevel        = false;
                    xpage.Controls.Add(frm);//添加要增加的页面
                }
                //if (webComhtml != null) {
                //    xpage.Controls.Add(webComhtml);//添加要增加的页面
                //}
                xtraTabControl.TabPages.Add(xpage);
                xtraTabControl.SelectedTabPage = xpage;
            }
            catch (Exception ex)
            {
                waitFrm.Refresh();
                waitFrm.SetCaption($"加载异常{ex.ToString()}");
                XtraMessageBox.Show(ex.ToString());
            } finally {
                waitFrm.Close();
            }
        }
Beispiel #36
0
        private void navBarControl1_LinkClicked(object sender, NavBarLinkEventArgs e)
        {
            try
            {
                if (e.Link.Item.Enabled == false)
                {
                    return;
                }
                string formName, formCaption;
                formName    = e.Link.Item.Name.Trim();
                formCaption = e.Link.Item.Caption.Trim();//注册页面

                if (!IsExisted(formName, xtraTabControl1))
                {
                    if (xtraTabControl1.TabPages.Count <= 10)
                    {
                        string assemblyName = "SecuLabel";
                        Form   childForm    = (Form)System.Reflection.Assembly.Load(assemblyName).CreateInstance(assemblyName + "." + formName);

                        this.InitFormInControl(childForm);

                        XtraTabPage xt = new XtraTabPage();
                        xt.Text = formCaption;
                        xt.Name = formName;

                        xt.Controls.Add(childForm);
                        xtraTabControl1.TabPages.Add(xt);
                    }
                    else
                    {
                        XtraMessageBox.Show("您已经打开太多的窗体!", "提示");
                    }
                }
                xtraTabControl1.SelectedTabPage = (XtraTabPage)xtraTabControl1.Controls.Find(formName, false)[0];
            }
            catch (Exception navBarControl1_LinkClicked)
            {
                XtraMessageBox.Show(this, "System error[navBarControl1_LinkClicked]: " + navBarControl1_LinkClicked.Message);
                return;
            }
        }
Beispiel #37
0
        private void showPage(XtraTabPage page, System.Type type)
        {
            var panelE = new PanelEnhanced();

            panelE.BackgroundImage = Properties.Resources.bg2;
            panelE.Dock            = DockStyle.Fill;
            page.Controls.Add(panelE);
            cmd2 = new Xr.Common.Controls.OpaqueCommand(page);
            cmd2.ShowOpaqueLayer(0f);
            DoWorkAsync(100, (o) =>
            {
                return(null);
            }, null, (data) =>
            {
                var uc       = (UserControl)Activator.CreateInstance(type);
                uc.BackColor = Color.Transparent;
                setUcUI(null, uc);
                panelE.Controls.Add(uc);
                cmd2.HideOpaqueLayer();
            });
        }
 //根据路径打开文件
 private void OpenFileByPath(string FilePath)
 {
     string ExtName = (System.IO.Path.GetExtension(FilePath)).Replace(".", "").ToLower();
     int index = LandEvaluationBll.BindingDataTable.GetImageIndexByExtName(ExtName);
     XtraTabPage tabPage = new XtraTabPage();
     tabPage.Text = System.IO.Path.GetFileName(FilePath);
     tabPage.ImageIndex = index;
     Control fileViewerControl = null;
     if (index == 1)
     {
         RichEditControl richEditControl = new RichEditControl();
         richEditControl.LoadDocument(FilePath);
         fileViewerControl = richEditControl;
     }
     else if (index == 2)
     {
         SpreadsheetControl spreadsheetControl = new SpreadsheetControl();
         spreadsheetControl.LoadDocument(FilePath);
         fileViewerControl = spreadsheetControl;
     }
     else if (index == 4)
     {
         PdfViewer pdfViewer = new PdfViewer();
         pdfViewer.LoadDocument(FilePath);
         fileViewerControl = pdfViewer;
     }
     else if (index == 5)
     {
         PdfViewer pdfViewer = new PdfViewer();
         pdfViewer.LoadDocument(FilePath);
         fileViewerControl = pdfViewer;
     }
     else if (index == 9)
     {
         this.axMapControl1.LoadMxFile(FilePath);
         this.xtraTabControl2.SelectedTabPageIndex = 0;
         this.xtraTabControl1.SelectedTabPageIndex = 1;
         return;
     }
     tabPage.Controls.Add(fileViewerControl);
     fileViewerControl.Dock = DockStyle.Fill;
     this.xtraTabControl2.TabPages.Add(tabPage);
     this.xtraTabControl2.SelectedTabPage = tabPage;
     //this.xtraTabControl2.Refresh();
 }
        private void OutputSearchResult()
        {
            this.resultXtraTabControl.SuspendLayout();
            this.resultXtraTabControl.TabPages.Clear();

            if (this._outputKeyDictionary != null && this._outputKeyDictionary.Count > 0)
            {
                this.exportResultSimpleButton.Enabled = true;

                foreach (KeyValuePair<string, List<string>> missingKeys in this._outputKeyDictionary)
                {
                    XtraTabPage tabPage = new XtraTabPage() { Text = LanguageHelper.GetLanguageDisplayName(missingKeys.Key) };

                    tabPage.Controls.Add(new MissingKeyListUserControl(missingKeys.Value) { Dock = DockStyle.Fill });

                    this.resultXtraTabControl.TabPages.Add(tabPage);
                }

                this.alertControl.Show(this, new DevExpress.XtraBars.Alerter.AlertInfo("Notice", "Analyze finished."));
            }
            else
            {
                this.exportResultSimpleButton.Enabled = false;

                if (this._currentAnalyzeMode != AnalyzeModes.Solution)
                {
                    XtraMessageBox.Show("Great! No key is lost!");
                }
                else
                {
                    XtraMessageBox.Show("Great! No duplicated keys here!");
                }
            }

            this.resultXtraTabControl.ResumeLayout(false);
        }
Beispiel #40
0
 private void tabCenter_SelectedPageChanged(object sender, TabPageChangedEventArgs e)
 {
     this.m_PreSelectedPage = e.PrevPage;
     ChangeHook(e.Page, null);
 }
Beispiel #41
0
        public FrmRuntime()
        {
            // 加载登陆
            string[] strSplit = { "," };
            string[] strLoginor=ConfigManager.Loginor.Split(strSplit, StringSplitOptions.RemoveEmptyEntries);
            ILogin loginor = ResourceFactory.CreateInstance(strLoginor[0], strLoginor[1]) as Frame.Define.ILogin;
            if (loginor == null)
                loginor = new FrmLogin();

            loginor.Logger = Environment.LogWriter;
            loginor.NhibernateHelper = Environment.NHibernateHelper;
            loginor.AdodbHelper = Environment.AdodbHelper;
            global::Define.IApplication app = Environment.Application;
            if (!loginor.Login(ref app))
            {
                Application.Exit();
                return;
            }
            Environment.Application = app;

            loginor.ShowMessage("正在验证GIS控件权限...");
            string errMsg = null;
            if (!Environment.ResourceManager.LicenseVerify(ref errMsg))
            {
                MessageBox.Show(errMsg);
                Application.Exit();
                return;
            }

            loginor.ShowMessage("正在加载框架界面方案...");
            InitializeComponent();
            this.Text = ConfigManager.AppName;
            this.Icon = ConfigManager.Logo;
            //splitControlMain.PanelVisibility = SplitPanelVisibility.Panel1;

            loginor.ShowMessage("正在创建GIS控件对象...");
            IHooker hooker = Environment.ResourceManager.GetHooker();
            this.m_MainHookPage= this.AddHooker(hooker, enumDockPosition.Center) as XtraTabPage;
            this.Hook = hooker.Hook;
            //Control hookControl = hooker.Control;
            //if (hookControl != null)
            //{
            //    if (hookControl is System.ComponentModel.ISupportInitialize) ((System.ComponentModel.ISupportInitialize)(hookControl)).BeginInit();
            //    //this.splitControlMain.Panel1.Controls.Add(hookControl);
            //    this.tpDefalut.Controls.Add(hookControl);
            //    this.tpDefalut.Text = hooker.Caption;
            //    hookControl.Dock = DockStyle.Fill;
            //    if (hookControl is System.ComponentModel.ISupportInitialize) ((System.ComponentModel.ISupportInitialize)(hookControl)).EndInit();
            //}
            //this.Hook = hooker.Hook;
            //this.m_DictHooker[hooker.ID] = this.tpDefalut;

            loginor.ShowMessage("正在加载插件...");
            IList<Define.ClassInfo> listPlugin = Environment.NHibernateHelper.GetObjectsByCondition<Define.ClassInfo>("from ClassInfo cInfo where cInfo.Type=1");
            foreach (Define.ClassInfo cInfo in listPlugin)
            {
                IPlugin plugin= Utility.ResourceFactory.CreatePlugin(cInfo);
                if (plugin != null)
                {
                    plugin.Logger = Environment.LogWriter;
                    plugin.NhibernateHelper = Environment.NHibernateHelper;
                    plugin.AdodbHelper = Environment.AdodbHelper;
                    plugin.GisWorkspace = Environment.Workspace;
                    plugin.Application = Environment.Application;
                }
            }

            loginor.ShowMessage("正在读取界面配置...");
            IList<RibbonCommandInfo> listCommand = Environment.NHibernateHelper. GetObjectsByCondition<RibbonCommandInfo>("from RibbonCommandInfo rcInfo order by Order asc"); ;

            m_CommandInfoList = new List<RibbonCommandInfo>();
            int count = listCommand.Count;
            for (int i = 0; i < count; i++)
            {
                m_CommandInfoList.Add(listCommand[i]);
            }

            loginor.ShowMessage("正在创建资源...");
            ribbonEngine = new RibbonEngine();
            ribbonEngine.CommandInfoList = m_CommandInfoList;
            ribbonEngine.Ribbon = this.ribbon;
            ribbonEngine.MainMenu = this.mainMenu;
            ribbonEngine.CommandInfoFinder = delegate(string resourceID)
            {
                return m_CommandInfoList.Find(delegate(RibbonCommandInfo cmdInfo) { return cmdInfo.ID == resourceID; });
            };
            ribbonEngine.OnMessage += delegate(string strMsg)
            {
                Utility.Log.AppendMessage(enumLogType.Operate, strMsg);
                loginor.ShowMessage(strMsg);
            };

            //List<ICommand>
                m_CommandList=new List<ICommand>();
            //cmdList.Add(new Commands.CommandLinkage());
            //cmdList.Add(new Utility.EsriCommandProxy(new ESRI.ArcGIS.Controls.ControlsAddDataCommandClass()));
            //cmdEngine.LoadFromCommand(new Commands.CommandLinkage(), "ESRI", "ESRI命令In Frame",null,null);
            //cmdEngine.LoadFromCommand(new Utility.EsriCommandProxy(new ESRI.ArcGIS.Controls.ControlsAddDataCommandClass()), "ESRI", "ESRI命令In Frame",null,null);

            ribbonEngine.Load(ref m_CommandList);

            loginor.ShowMessage("正在绑定资源...");
            //RibbonCommandAdapter
                m_Adapter = new RibbonCommandAdapter(this);
            m_Adapter.OnMessage += delegate(string strMsg)
            {
                this.statusBarMessage.Caption = strMsg;
                Application.DoEvents();
                //frmLogin.SetMessage(strMsg);
            };
            m_Adapter.Adapter(this.ribbon);
            m_Adapter.AddCommands(m_CommandList.ToArray());

            loginor.ShowMessage("正在绘制界面...");
            Thread.Sleep(1000);

            loginor.Dispose();

            //this.dockPanelBottom.Visibility = DockVisibility.Hidden;
            //this.dockPanelLeft.Visibility = DockVisibility.Hidden;
            //this.dockPanelRight.Visibility = DockVisibility.Hidden;
            this.defaultLookAndFeel1.LookAndFeel.SkinName = Properties.Settings.Default.SkinName;
        }
Beispiel #42
0
 private XtraTabPage GetVersionTabPage(string versionIndexField)
 {
     XtraTabPage versionTabPage = null;
     string caption = "tabPage_" + versionIndexField;
     foreach (XtraTabPage tabPage in xtraTabControl1.TabPages)
     {
         if (caption.Equals(tabPage.Name))
         {
             versionTabPage = tabPage;
             break;
         }
     }
     if (versionTabPage == null)
     {
         versionTabPage = new XtraTabPage();
         versionTabPage.Name = caption;
         versionTabPage.Text = versionIndexField;
         xtraTabControl1.TabPages.AddRange(new XtraTabPage[] { versionTabPage });
     }
     return versionTabPage;
 }
        private void miCreateSnapshot_ItemClick(object sender, ItemClickEventArgs e)
        {
            var srcPage = this.tabControl.SelectedTabPage;

              var vm = new TabViewModel();
              vm.AssignFrom(this.viewModel);
              vm.Source = TabViewModel.SourceType.CustomList;
              vm.GridFilter = null;

              var page = new XtraTabPage();
              page.Text = srcPage.Text + " #2";
              page.ShowCloseButton = DefaultBoolean.True;
              page.Tag = vm;
              page.ImageIndex = vm.ImageIndex;

              vm.servers = new List<ServerRow>();
              for(int i=0, c= this.gvServers.RowCount; i<c; i++)
            vm.servers.Add((ServerRow)this.gvServers.GetRow(i));

              this.tabControl.TabPages.Insert(this.tabControl.TabPages.Count - 1, page);
              this.tabControl.SelectedTabPage = page;
        }
 private void LoadData(XtraTabPage page)
 {
     if (page == null||page.Tag==null) return;
     if (page.Controls.Count == 0)
     {
         UCTreeListDataPermission uc = new UCTreeListDataPermission();
         page.Controls.Add(uc);
         uc.Dock = DockStyle.Fill;
         uc.ColName.Caption = "Tên " + page.Text.ToLower();
         DataTable dt = GetDataSource(page.Tag as DataPermission);
         Filter(dt);
         uc.DataSource = dt;
         uc.TreePermission.ExpandAll();
     }
     else
     {
         UCTreeListDataPermission uc = page.Controls[0] as UCTreeListDataPermission;
         Filter(uc.DataSource);
     }
 }
 private void tabControl_MouseUp(object sender, MouseEventArgs e)
 {
     this.tabControl.Cursor = Cursors.Default;
       dragPage = null;
 }
        private void LoadViewModelsFromIniFile(IniFile ini)
        {
            bool hasFavTab = false;
              if (ini != null)
              {
            int i = 0;
            foreach (var section in ini.Sections)
            {
              if (System.Text.RegularExpressions.Regex.IsMatch(section.Name, "^Tab[0-9]+$"))
              {
            var vm = new TabViewModel();
            vm.LoadFromIni(ini, section, this.extenders);
            var page = new XtraTabPage();
            page.Text = section.GetString("TabName") ?? this.GetGameCaption((Game) vm.InitialGameID);
            page.Tag = vm;
            page.ImageIndex = vm.ImageIndex;
            this.tabControl.TabPages.Insert(i++, page);
            hasFavTab |= vm.Source == TabViewModel.SourceType.Favorites;
              }
            }
              }
              else
              {
            // migrate favorite games from v1.16
            int i = 0;
            foreach (var gameId in Settings.Default.FavGameIDs.Split(','))
            {
              if (string.IsNullOrEmpty(gameId))
            continue;
              var vm = new TabViewModel();
              vm.AssignFrom(Settings.Default);
              vm.InitialGameID = int.Parse(gameId);
              var page = new XtraTabPage();
              page.Text = this.GetGameCaption((Game)vm.InitialGameID);
              page.Tag = vm;
              this.tabControl.TabPages.Insert(i++, page);
            }
              }

              if (hasFavTab)
              {
            this.tabControl.TabPages.Remove(this.tabFavorites);
            this.tabFavorites.Dispose();
              }

              if (this.tabControl.TabPages.Count > 2)
            this.tabControl.TabPages.Remove(this.tabGame);
              else
            this.tabGame.Tag = new TabViewModel();
        }
Beispiel #47
0
        public XtraTabPage AddNewTab(ref XtraTabControl tab_control, int width, int height, string text, int curTabIndex, RibbonControl ribbonControl)
        {
            XtraTabPage newTab = new XtraTabPage();
            //TreeList newTree = new TreeList();
            GridControl newGrid = new GridControl();

            GridView newGridView = new GridView();

            if (tab_control != null)
            {
                try
                {
                    tab_control.SuspendLayout();

                    tab_control.TabPages.Add(newTab);

                    newTab.Controls.Add(newGrid);
                    //newTab.Name = name;
                    newTab.Size = new System.Drawing.Size(width, height);
                    newTab.Text = text;

                    newGrid.Dock = DockStyle.Fill;
                    newGrid.Location = new System.Drawing.Point(0, 0);
                    newGrid.MainView = newGridView;
                    newGrid.MenuManager = ribbonControl;
                    newGrid.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { newGridView });
                    //newTree.Name = "tab_" + noOfTab;
                    newGrid.TabIndex = curTabIndex++;
                    noOfTab++;
                    newGrid.Click += new EventHandler(newTree_Click);
                    newGridView.GridControl = newGrid;
                    tab_control.ResumeLayout(false);

                }
                catch (Exception e1) { MessageBox.Show(e1.ToString()); }
                return newTab;
            }
            else
            {
                return null;
            }
        }
 private void CloneTab(XtraTabPage source)
 {
     var page = new XtraTabPage();
       page.Text = source.Text + " #2";
       page.ShowCloseButton = DefaultBoolean.True;
       var vm = new TabViewModel();
       vm.AssignFrom(this.viewModel);
       page.Tag = vm;
       page.ImageIndex = vm.ImageIndex;
       var idx = this.tabControl.TabPages.IndexOf(source);
       this.tabControl.TabPages.Insert(idx + 1, page);
       this.tabControl.SelectedTabPage = page;
 }
        private void AddNewTab(string name, TabViewModel.SourceType sourceType)
        {
            var vm = new TabViewModel();
              vm.Source = sourceType;
              vm.servers = new List<ServerRow>();
              vm.gameExtension = unknownGame;

              var page = new XtraTabPage();
              page.Text = name;
              page.Tag = vm;
              page.ImageIndex = vm.ImageIndex;
              this.tabControl.TabPages.Insert(this.tabControl.TabPages.Count - 1, page);
              this.tabControl.SelectedTabPage = page;
        }
 private void UpdateTabContextMenu(XtraTabPage page)
 {
     this.miRenameTab.Enabled = page != this.tabAdd;
 }
Beispiel #51
0
 public ucFindLabel(XtraTabControl _x1, XtraTabPage _p1)
 {
     InitializeComponent();
 }
 /// <summary> 
 /// Required method for Designer support - do not modify 
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(MasterDetailControl));
     this.PSTab = new XtraTabControl();
     this.tabPage1 = new XtraTabPage();
     this.imageList1 = new System.Windows.Forms.ImageList(this.components);
     this.imageList2 = new System.Windows.Forms.ImageList(this.components);
     this.PSTab.SuspendLayout();
     this.SuspendLayout();
     //
     // cmbExport
     //
     //
     // cmbEdit
     //
     //
     // PSTab
     //
     this.PSTab.TabPages.Add(this.tabPage1);
     //			this.PSTab.Controls.AddRange(new System.Windows.Forms.Control[] {
     //																				this.tabPage1});
     this.PSTab.Dock = System.Windows.Forms.DockStyle.Fill;
     this.PSTab.Location = new System.Drawing.Point(1, 1);
     this.PSTab.Name = "PSTab";
     this.PSTab.SelectedTabPageIndex = 0;
     this.PSTab.Size = new System.Drawing.Size(698, 295);
     this.PSTab.TabIndex = 3;
     this.PSTab.SelectedPageChanged += new TabPageChangedEventHandler(this.PSTab_SelectedIndexChanged);
     //
     // tabPage1
     //
     this.tabPage1.Location = new System.Drawing.Point(4, 22);
     this.tabPage1.Name = "tabPage1";
     this.tabPage1.Size = new System.Drawing.Size(690, 269);
     this.tabPage1.TabIndex = 0;
     this.tabPage1.Text = "Main Report";
     //
     // imageList1
     //
     this.imageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit;
     this.imageList1.ImageSize = new System.Drawing.Size(16, 16);
     this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
     this.imageList1.TransparentColor = System.Drawing.Color.Magenta;
     //
     // imageList2
     //
     this.imageList2.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit;
     this.imageList2.ImageSize = new System.Drawing.Size(32, 32);
     this.imageList2.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList2.ImageStream")));
     this.imageList2.TransparentColor = System.Drawing.Color.Magenta;
     //
     // PreviewControl
     //
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
                                                                   this.PSTab});
     this.Name = "PreviewControl";
     this.PSTab.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Beispiel #53
0
 protected override void OnShown(EventArgs e) {
     base.OnShown(e);
     if (showTab2) {
         if (tqsbTab == null) {
             byqTab = new XtraTabPage();
             byqTab.Text = "变压器";
             xtraTabControl1.TabPages.Add(byqTab);
             tqdlbhTab = new XtraTabPage();
             tqdlbhTab.Text = "电流动作保护器";
             xtraTabControl1.TabPages.Add(tqdlbhTab);
             tqsbTab = new XtraTabPage();
             tqsbTab.Text = "其它设备";
             xtraTabControl1.TabPages.Add(tqsbTab);
         }
     }
 }
 private void tabControl_MouseDown(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left)
       {
     var page = tabControl.CalcHitInfo(e.Location).Page;
     if (page != this.tabAdd)
       this.dragPage = page;
       }
       else if (e.Button == MouseButtons.Right)
       {
     Point pt = e.Location;
     XtraTabHitInfo info = this.tabControl.CalcHitInfo(pt);
     if (info.HitTest == XtraTabHitTest.PageHeader)
     {
       if (info.Page == this.tabAdd)
     return;
       tabControl.SelectedTabPage = info.Page;
       this.UpdateTabContextMenu(info.Page);
       menuTab.ShowPopup(tabControl.PointToScreen(pt));
     }
       }
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     DevExpress.XtraCharts.XYDiagram xyDiagram1 = new DevExpress.XtraCharts.XYDiagram();
     DevExpress.XtraCharts.Series series1 = new DevExpress.XtraCharts.Series();
     DevExpress.XtraCharts.SideBySideBarSeriesLabel sideBySideBarSeriesLabel1 = new DevExpress.XtraCharts.SideBySideBarSeriesLabel();
     DevExpress.XtraCharts.PointOptions pointOptions1 = new DevExpress.XtraCharts.PointOptions();
     DevExpress.XtraCharts.Series series2 = new DevExpress.XtraCharts.Series();
     DevExpress.XtraCharts.SideBySideBarSeriesLabel sideBySideBarSeriesLabel2 = new DevExpress.XtraCharts.SideBySideBarSeriesLabel();
     DevExpress.XtraCharts.SideBySideBarSeriesLabel sideBySideBarSeriesLabel3 = new DevExpress.XtraCharts.SideBySideBarSeriesLabel();
     DevExpress.XtraCharts.XYDiagram xyDiagram2 = new DevExpress.XtraCharts.XYDiagram();
     DevExpress.XtraCharts.Series series3 = new DevExpress.XtraCharts.Series();
     DevExpress.XtraCharts.SideBySideBarSeriesLabel sideBySideBarSeriesLabel4 = new DevExpress.XtraCharts.SideBySideBarSeriesLabel();
     DevExpress.XtraCharts.Series series4 = new DevExpress.XtraCharts.Series();
     DevExpress.XtraCharts.SideBySideBarSeriesLabel sideBySideBarSeriesLabel5 = new DevExpress.XtraCharts.SideBySideBarSeriesLabel();
     DevExpress.XtraCharts.SideBySideBarSeriesLabel sideBySideBarSeriesLabel6 = new DevExpress.XtraCharts.SideBySideBarSeriesLabel();
     DevExpress.XtraCharts.XYDiagram xyDiagram3 = new DevExpress.XtraCharts.XYDiagram();
     DevExpress.XtraCharts.Series series5 = new DevExpress.XtraCharts.Series();
     DevExpress.XtraCharts.SideBySideBarSeriesLabel sideBySideBarSeriesLabel7 = new DevExpress.XtraCharts.SideBySideBarSeriesLabel();
     DevExpress.XtraCharts.Series series6 = new DevExpress.XtraCharts.Series();
     DevExpress.XtraCharts.SideBySideBarSeriesLabel sideBySideBarSeriesLabel8 = new DevExpress.XtraCharts.SideBySideBarSeriesLabel();
     DevExpress.XtraCharts.SideBySideBarSeriesLabel sideBySideBarSeriesLabel9 = new DevExpress.XtraCharts.SideBySideBarSeriesLabel();
     DevExpress.XtraCharts.XYDiagram xyDiagram4 = new DevExpress.XtraCharts.XYDiagram();
     DevExpress.XtraCharts.Series series7 = new DevExpress.XtraCharts.Series();
     DevExpress.XtraCharts.SideBySideBarSeriesLabel sideBySideBarSeriesLabel10 = new DevExpress.XtraCharts.SideBySideBarSeriesLabel();
     DevExpress.XtraCharts.Series series8 = new DevExpress.XtraCharts.Series();
     DevExpress.XtraCharts.SideBySideBarSeriesLabel sideBySideBarSeriesLabel11 = new DevExpress.XtraCharts.SideBySideBarSeriesLabel();
     DevExpress.XtraCharts.SideBySideBarSeriesLabel sideBySideBarSeriesLabel12 = new DevExpress.XtraCharts.SideBySideBarSeriesLabel();
     DevExpress.XtraCharts.XYDiagram xyDiagram5 = new DevExpress.XtraCharts.XYDiagram();
     DevExpress.XtraCharts.Series series9 = new DevExpress.XtraCharts.Series();
     DevExpress.XtraCharts.SideBySideBarSeriesLabel sideBySideBarSeriesLabel13 = new DevExpress.XtraCharts.SideBySideBarSeriesLabel();
     DevExpress.XtraCharts.Series series10 = new DevExpress.XtraCharts.Series();
     DevExpress.XtraCharts.SideBySideBarSeriesLabel sideBySideBarSeriesLabel14 = new DevExpress.XtraCharts.SideBySideBarSeriesLabel();
     DevExpress.XtraCharts.SideBySideBarSeriesLabel sideBySideBarSeriesLabel15 = new DevExpress.XtraCharts.SideBySideBarSeriesLabel();
     DevExpress.XtraCharts.SimpleDiagram3D simpleDiagram3D1 = new DevExpress.XtraCharts.SimpleDiagram3D();
     DevExpress.XtraCharts.Series series11 = new DevExpress.XtraCharts.Series();
     DevExpress.XtraCharts.Pie3DSeriesLabel pie3DSeriesLabel1 = new DevExpress.XtraCharts.Pie3DSeriesLabel();
     DevExpress.XtraCharts.PiePointOptions piePointOptions1 = new DevExpress.XtraCharts.PiePointOptions();
     DevExpress.XtraCharts.Pie3DSeriesView pie3DSeriesView1 = new DevExpress.XtraCharts.Pie3DSeriesView();
     DevExpress.XtraCharts.Pie3DSeriesLabel pie3DSeriesLabel2 = new DevExpress.XtraCharts.Pie3DSeriesLabel();
     DevExpress.XtraCharts.Pie3DSeriesView pie3DSeriesView2 = new DevExpress.XtraCharts.Pie3DSeriesView();
     DevExpress.XtraCharts.SideBySideBarSeriesLabel sideBySideBarSeriesLabel16 = new DevExpress.XtraCharts.SideBySideBarSeriesLabel();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ItemDetailReport));
     this.txtItemName = new DevExpress.XtraEditors.TextEdit();
     this.label1 = new System.Windows.Forms.Label();
     this.chartBar = new DevExpress.XtraCharts.ChartControl();
     this.tabControl1 = new DevExpress.XtraTab.XtraTabControl();
     this.tbSummary = new DevExpress.XtraTab.XtraTabPage();
     this.lblLastIssue = new System.Windows.Forms.Label();
     this.txtSOH = new System.Windows.Forms.Label();
     this.txtAMC = new System.Windows.Forms.Label();
     this.txtMOS = new System.Windows.Forms.Label();
     this.txtMin = new System.Windows.Forms.Label();
     this.txtMax = new System.Windows.Forms.Label();
     this.txtReorderAmount = new System.Windows.Forms.Label();
     this.txtExpiredAmount = new System.Windows.Forms.Label();
     this.txtNearExp = new System.Windows.Forms.Label();
     this.lblLastRec = new System.Windows.Forms.Label();
     this.label31 = new System.Windows.Forms.Label();
     this.label32 = new System.Windows.Forms.Label();
     this.lblstat = new System.Windows.Forms.Label();
     this.label30 = new System.Windows.Forms.Label();
     this.label9 = new System.Windows.Forms.Label();
     this.label8 = new System.Windows.Forms.Label();
     this.label7 = new System.Windows.Forms.Label();
     this.label6 = new System.Windows.Forms.Label();
     this.label5 = new System.Windows.Forms.Label();
     this.label4 = new System.Windows.Forms.Label();
     this.label3 = new System.Windows.Forms.Label();
     this.label2 = new System.Windows.Forms.Label();
     this.tbBinCard = new DevExpress.XtraTab.XtraTabPage();
     this.layoutControl2 = new DevExpress.XtraLayout.LayoutControl();
     this.printBinCard = new DevExpress.XtraPrinting.Control.PrintControl();
     this.label24 = new System.Windows.Forms.Label();
     this.lkBinCardWarehouse = new DevExpress.XtraEditors.LookUpEdit();
     this.layoutControlGroup2 = new DevExpress.XtraLayout.LayoutControlGroup();
     this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem();
     this.emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem();
     this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem();
     this.emptySpaceItem3 = new DevExpress.XtraLayout.EmptySpaceItem();
     this.emptySpaceItem5 = new DevExpress.XtraLayout.EmptySpaceItem();
     this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem();
     this.tbClassicBinCard = new DevExpress.XtraTab.XtraTabPage();
     this.lkWarehouses = new DevExpress.XtraEditors.LookUpEdit();
     this.lkYear = new DevExpress.XtraEditors.LookUpEdit();
     this.lkProgramFilter = new DevExpress.XtraEditors.LookUpEdit();
     this.transactionGrid = new DevExpress.XtraGrid.GridControl();
     this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.tpDelete = new System.Windows.Forms.ToolStripMenuItem();
     this.gridViewBinCard = new DevExpress.XtraGrid.Views.Grid.GridView();
     this.colGRNF = new DevExpress.XtraGrid.Columns.GridColumn();
     this.colDocType = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn15 = new DevExpress.XtraGrid.Columns.GridColumn();
     this.colManuf = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn16 = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn17 = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn18 = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn19 = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn20 = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn21 = new DevExpress.XtraGrid.Columns.GridColumn();
     this.colUnitCost = new DevExpress.XtraGrid.Columns.GridColumn();
     this.colTotalCost = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn24 = new DevExpress.XtraGrid.Columns.GridColumn();
     this.label28 = new System.Windows.Forms.Label();
     this.tbSOHTrend = new DevExpress.XtraTab.XtraTabPage();
     this.groupSohDetail = new System.Windows.Forms.GroupBox();
     this.lkShowTable = new System.Windows.Forms.LinkLabel();
     this.label29 = new System.Windows.Forms.Label();
     this.tbAMCTrend = new DevExpress.XtraTab.XtraTabPage();
     this.lkDetailAmc = new System.Windows.Forms.LinkLabel();
     this.label34 = new System.Windows.Forms.Label();
     this.chartAmc = new DevExpress.XtraCharts.ChartControl();
     this.tbMOSTrend = new DevExpress.XtraTab.XtraTabPage();
     this.lkDetailMos = new System.Windows.Forms.LinkLabel();
     this.label35 = new System.Windows.Forms.Label();
     this.chartMOS = new DevExpress.XtraCharts.ChartControl();
     this.tbActivityTrend = new DevExpress.XtraTab.XtraTabPage();
     this.label36 = new System.Windows.Forms.Label();
     this.chartComp = new DevExpress.XtraCharts.ChartControl();
     this.tbSSTrend = new DevExpress.XtraTab.XtraTabPage();
     this.label20 = new System.Windows.Forms.Label();
     this.lblTime = new System.Windows.Forms.Label();
     this.lblCurStatus = new System.Windows.Forms.Label();
     this.label19 = new System.Windows.Forms.Label();
     this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
     this.label10 = new System.Windows.Forms.Label();
     this.label11 = new System.Windows.Forms.Label();
     this.label12 = new System.Windows.Forms.Label();
     this.label13 = new System.Windows.Forms.Label();
     this.label14 = new System.Windows.Forms.Label();
     this.label15 = new System.Windows.Forms.Label();
     this.label16 = new System.Windows.Forms.Label();
     this.label18 = new System.Windows.Forms.Label();
     this.lblThreeStockout = new System.Windows.Forms.Label();
     this.lblSixStockOut = new System.Windows.Forms.Label();
     this.lblTwelveStockOut = new System.Windows.Forms.Label();
     this.lblThreeNearStock = new System.Windows.Forms.Label();
     this.lblSixNearStock = new System.Windows.Forms.Label();
     this.lblTwelveNear = new System.Windows.Forms.Label();
     this.lblThreeBelowMin = new System.Windows.Forms.Label();
     this.lblSixBelowMin = new System.Windows.Forms.Label();
     this.lblTwelveBelowMin = new System.Windows.Forms.Label();
     this.lblTwelveOverStock = new System.Windows.Forms.Label();
     this.lblSixOverStock = new System.Windows.Forms.Label();
     this.lblThreeOverStock = new System.Windows.Forms.Label();
     this.tbTransactions = new DevExpress.XtraTab.XtraTabPage();
     this.lblAvgIssues = new System.Windows.Forms.Label();
     this.lblAvgReceives = new System.Windows.Forms.Label();
     this.lblLastIssues = new System.Windows.Forms.Label();
     this.lblLastReceive = new System.Windows.Forms.Label();
     this.label23 = new System.Windows.Forms.Label();
     this.label22 = new System.Windows.Forms.Label();
     this.label21 = new System.Windows.Forms.Label();
     this.label17 = new System.Windows.Forms.Label();
     this.tbConsumptionTrend = new DevExpress.XtraTab.XtraTabPage();
     this.lkDetailCons = new System.Windows.Forms.LinkLabel();
     this.label33 = new System.Windows.Forms.Label();
     this.consuTrend = new DevExpress.XtraCharts.ChartControl();
     this.tbStockExpiryStatus = new DevExpress.XtraTab.XtraTabPage();
     this.chartPie = new DevExpress.XtraCharts.ChartControl();
     this.tbLogisticsSummary = new DevExpress.XtraTab.XtraTabPage();
     this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
     this.lookUpEdit1 = new DevExpress.XtraEditors.LookUpEdit();
     this.gridControl1 = new DevExpress.XtraGrid.GridControl();
     this.gridView3 = new DevExpress.XtraGrid.Views.Grid.GridView();
     this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup();
     this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
     this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
     this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem();
     this.tbSOHLocation = new DevExpress.XtraTab.XtraTabPage();
     this.gridLocations = new DevExpress.XtraGrid.GridControl();
     this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView();
     this.gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn3 = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn5 = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn2 = new DevExpress.XtraGrid.Columns.GridColumn();
     this.colPalletNumber = new DevExpress.XtraGrid.Columns.GridColumn();
     this.colPalletLocation = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn4 = new DevExpress.XtraGrid.Columns.GridColumn();
     this.tbSOHPriceSummary = new DevExpress.XtraTab.XtraTabPage();
     this.gridSOHSummary = new DevExpress.XtraGrid.GridControl();
     this.gridView4 = new DevExpress.XtraGrid.Views.Grid.GridView();
     this.gridColumn14 = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn13 = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn6 = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn7 = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn8 = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn9 = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn10 = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn11 = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn12 = new DevExpress.XtraGrid.Columns.GridColumn();
     this.lblItemID = new System.Windows.Forms.Label();
     this.xtraTabPage1 = new DevExpress.XtraTab.XtraTabPage();
     this.dtDate = new CalendarLib.DateTimePickerEx();
     this.btnCancel = new DevExpress.XtraEditors.SimpleButton();
     this.chartControl1 = new DevExpress.XtraCharts.ChartControl();
     this.printDoc = new System.Drawing.Printing.PrintDocument();
     this.printDialog1 = new System.Windows.Forms.PrintDialog();
     this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
     this.txtitmName = new System.Windows.Forms.Label();
     this.label38 = new System.Windows.Forms.Label();
     this.lblBUnit = new System.Windows.Forms.Label();
     this.xpButton1 = new DevExpress.XtraEditors.SimpleButton();
     this.btnExport = new DevExpress.XtraEditors.SimpleButton();
     this.lblItemSerialNumber = new DevExpress.XtraEditors.LabelControl();
     ((System.ComponentModel.ISupportInitialize)(this.txtItemName.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.chartBar)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(xyDiagram1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(series1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(sideBySideBarSeriesLabel1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(series2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(sideBySideBarSeriesLabel2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(sideBySideBarSeriesLabel3)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.tabControl1)).BeginInit();
     this.tabControl1.SuspendLayout();
     this.tbSummary.SuspendLayout();
     this.tbBinCard.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControl2)).BeginInit();
     this.layoutControl2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.lkBinCardWarehouse.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem5)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit();
     this.tbClassicBinCard.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.lkWarehouses.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.lkYear.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.lkProgramFilter.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.transactionGrid)).BeginInit();
     this.contextMenuStrip1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.gridViewBinCard)).BeginInit();
     this.tbSOHTrend.SuspendLayout();
     this.tbAMCTrend.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.chartAmc)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(xyDiagram2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(series3)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(sideBySideBarSeriesLabel4)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(series4)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(sideBySideBarSeriesLabel5)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(sideBySideBarSeriesLabel6)).BeginInit();
     this.tbMOSTrend.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.chartMOS)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(xyDiagram3)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(series5)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(sideBySideBarSeriesLabel7)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(series6)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(sideBySideBarSeriesLabel8)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(sideBySideBarSeriesLabel9)).BeginInit();
     this.tbActivityTrend.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.chartComp)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(xyDiagram4)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(series7)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(sideBySideBarSeriesLabel10)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(series8)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(sideBySideBarSeriesLabel11)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(sideBySideBarSeriesLabel12)).BeginInit();
     this.tbSSTrend.SuspendLayout();
     this.tableLayoutPanel1.SuspendLayout();
     this.tbTransactions.SuspendLayout();
     this.tbConsumptionTrend.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.consuTrend)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(xyDiagram5)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(series9)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(sideBySideBarSeriesLabel13)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(series10)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(sideBySideBarSeriesLabel14)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(sideBySideBarSeriesLabel15)).BeginInit();
     this.tbStockExpiryStatus.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.chartPie)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(simpleDiagram3D1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(series11)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(pie3DSeriesLabel1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(pie3DSeriesView1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(pie3DSeriesLabel2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(pie3DSeriesView2)).BeginInit();
     this.tbLogisticsSummary.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
     this.layoutControl1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.lookUpEdit1.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridView3)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit();
     this.tbSOHLocation.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.gridLocations)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit();
     this.tbSOHPriceSummary.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.gridSOHSummary)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridView4)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.chartControl1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(sideBySideBarSeriesLabel16)).BeginInit();
     this.SuspendLayout();
     //
     // txtItemName
     //
     this.txtItemName.Enabled = false;
     this.txtItemName.Location = new System.Drawing.Point(269, 21);
     this.txtItemName.Name = "txtItemName";
     this.txtItemName.Properties.Appearance.ForeColor = System.Drawing.Color.Black;
     this.txtItemName.Properties.Appearance.Options.UseForeColor = true;
     this.txtItemName.Size = new System.Drawing.Size(522, 20);
     this.txtItemName.TabIndex = 0;
     //
     // label1
     //
     this.label1.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
     this.label1.Location = new System.Drawing.Point(122, 25);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(117, 13);
     this.label1.TabIndex = 1;
     this.label1.Text = "Item Name";
     this.label1.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // chartBar
     //
     this.chartBar.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.chartBar.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(221)))), ((int)(((byte)(231)))), ((int)(((byte)(253)))));
     xyDiagram1.AxisX.Range.ScrollingRange.SideMarginsEnabled = true;
     xyDiagram1.AxisX.Range.SideMarginsEnabled = true;
     xyDiagram1.AxisX.VisibleInPanesSerializable = "-1";
     xyDiagram1.AxisY.Range.ScrollingRange.SideMarginsEnabled = true;
     xyDiagram1.AxisY.Range.SideMarginsEnabled = true;
     xyDiagram1.AxisY.VisibleInPanesSerializable = "-1";
     this.chartBar.Diagram = xyDiagram1;
     this.chartBar.Location = new System.Drawing.Point(6, 42);
     this.chartBar.Name = "chartBar";
     sideBySideBarSeriesLabel1.LineVisible = true;
     pointOptions1.ValueNumericOptions.Format = DevExpress.XtraCharts.NumericFormat.Number;
     pointOptions1.ValueNumericOptions.Precision = 3;
     sideBySideBarSeriesLabel1.PointOptions = pointOptions1;
     series1.Label = sideBySideBarSeriesLabel1;
     series1.Name = "Series 1";
     sideBySideBarSeriesLabel2.LineVisible = true;
     series2.Label = sideBySideBarSeriesLabel2;
     series2.Name = "Series 2";
     this.chartBar.SeriesSerializable = new DevExpress.XtraCharts.Series[] {
     series1,
     series2};
     sideBySideBarSeriesLabel3.LineVisible = true;
     this.chartBar.SeriesTemplate.Label = sideBySideBarSeriesLabel3;
     this.chartBar.Size = new System.Drawing.Size(960, 475);
     this.chartBar.TabIndex = 2;
     //
     // tabControl1
     //
     this.tabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.tabControl1.Location = new System.Drawing.Point(1, 63);
     this.tabControl1.Name = "tabControl1";
     this.tabControl1.SelectedTabPage = this.tbSummary;
     this.tabControl1.Size = new System.Drawing.Size(1046, 549);
     this.tabControl1.TabIndex = 3;
     this.tabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
     this.tbSummary,
     this.tbBinCard,
     this.tbClassicBinCard,
     this.tbSOHTrend,
     this.tbAMCTrend,
     this.tbMOSTrend,
     this.tbActivityTrend,
     this.tbSSTrend,
     this.tbTransactions,
     this.tbConsumptionTrend,
     this.tbStockExpiryStatus,
     this.tbLogisticsSummary,
     this.tbSOHLocation,
     this.tbSOHPriceSummary});
     this.tabControl1.SelectedPageChanged += new DevExpress.XtraTab.TabPageChangedEventHandler(this.tabControl1_SelectedPageChanged);
     //
     // tbSummary
     //
     this.tbSummary.Controls.Add(this.lblLastIssue);
     this.tbSummary.Controls.Add(this.txtSOH);
     this.tbSummary.Controls.Add(this.txtAMC);
     this.tbSummary.Controls.Add(this.txtMOS);
     this.tbSummary.Controls.Add(this.txtMin);
     this.tbSummary.Controls.Add(this.txtMax);
     this.tbSummary.Controls.Add(this.txtReorderAmount);
     this.tbSummary.Controls.Add(this.txtExpiredAmount);
     this.tbSummary.Controls.Add(this.txtNearExp);
     this.tbSummary.Controls.Add(this.lblLastRec);
     this.tbSummary.Controls.Add(this.label31);
     this.tbSummary.Controls.Add(this.label32);
     this.tbSummary.Controls.Add(this.lblstat);
     this.tbSummary.Controls.Add(this.label30);
     this.tbSummary.Controls.Add(this.label9);
     this.tbSummary.Controls.Add(this.label8);
     this.tbSummary.Controls.Add(this.label7);
     this.tbSummary.Controls.Add(this.label1);
     this.tbSummary.Controls.Add(this.label6);
     this.tbSummary.Controls.Add(this.txtItemName);
     this.tbSummary.Controls.Add(this.label5);
     this.tbSummary.Controls.Add(this.label4);
     this.tbSummary.Controls.Add(this.label3);
     this.tbSummary.Controls.Add(this.label2);
     this.tbSummary.Name = "tbSummary";
     this.tbSummary.PageVisible = false;
     this.tbSummary.Size = new System.Drawing.Size(1040, 521);
     this.tbSummary.Text = "Summary";
     //
     // lblLastIssue
     //
     this.lblLastIssue.AutoSize = true;
     this.lblLastIssue.Enabled = false;
     this.lblLastIssue.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblLastIssue.ForeColor = System.Drawing.Color.Black;
     this.lblLastIssue.Location = new System.Drawing.Point(266, 355);
     this.lblLastIssue.Name = "lblLastIssue";
     this.lblLastIssue.Size = new System.Drawing.Size(14, 13);
     this.lblLastIssue.TabIndex = 24;
     this.lblLastIssue.Text = "0";
     //
     // txtSOH
     //
     this.txtSOH.AutoSize = true;
     this.txtSOH.Enabled = false;
     this.txtSOH.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txtSOH.ForeColor = System.Drawing.Color.Black;
     this.txtSOH.Location = new System.Drawing.Point(266, 85);
     this.txtSOH.Name = "txtSOH";
     this.txtSOH.Size = new System.Drawing.Size(14, 13);
     this.txtSOH.TabIndex = 25;
     this.txtSOH.Text = "0";
     //
     // txtAMC
     //
     this.txtAMC.AutoSize = true;
     this.txtAMC.Enabled = false;
     this.txtAMC.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txtAMC.ForeColor = System.Drawing.Color.Black;
     this.txtAMC.Location = new System.Drawing.Point(266, 115);
     this.txtAMC.Name = "txtAMC";
     this.txtAMC.Size = new System.Drawing.Size(14, 13);
     this.txtAMC.TabIndex = 25;
     this.txtAMC.Text = "0";
     //
     // txtMOS
     //
     this.txtMOS.AutoSize = true;
     this.txtMOS.Enabled = false;
     this.txtMOS.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txtMOS.ForeColor = System.Drawing.Color.Black;
     this.txtMOS.Location = new System.Drawing.Point(266, 145);
     this.txtMOS.Name = "txtMOS";
     this.txtMOS.Size = new System.Drawing.Size(14, 13);
     this.txtMOS.TabIndex = 25;
     this.txtMOS.Text = "0";
     //
     // txtMin
     //
     this.txtMin.AutoSize = true;
     this.txtMin.Enabled = false;
     this.txtMin.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txtMin.ForeColor = System.Drawing.Color.Black;
     this.txtMin.Location = new System.Drawing.Point(266, 175);
     this.txtMin.Name = "txtMin";
     this.txtMin.Size = new System.Drawing.Size(14, 13);
     this.txtMin.TabIndex = 25;
     this.txtMin.Text = "0";
     //
     // txtMax
     //
     this.txtMax.AutoSize = true;
     this.txtMax.Enabled = false;
     this.txtMax.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txtMax.ForeColor = System.Drawing.Color.Black;
     this.txtMax.Location = new System.Drawing.Point(266, 205);
     this.txtMax.Name = "txtMax";
     this.txtMax.Size = new System.Drawing.Size(14, 13);
     this.txtMax.TabIndex = 25;
     this.txtMax.Text = "0";
     //
     // txtReorderAmount
     //
     this.txtReorderAmount.AutoSize = true;
     this.txtReorderAmount.Enabled = false;
     this.txtReorderAmount.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txtReorderAmount.ForeColor = System.Drawing.Color.Black;
     this.txtReorderAmount.Location = new System.Drawing.Point(266, 235);
     this.txtReorderAmount.Name = "txtReorderAmount";
     this.txtReorderAmount.Size = new System.Drawing.Size(14, 13);
     this.txtReorderAmount.TabIndex = 25;
     this.txtReorderAmount.Text = "0";
     //
     // txtExpiredAmount
     //
     this.txtExpiredAmount.AutoSize = true;
     this.txtExpiredAmount.Enabled = false;
     this.txtExpiredAmount.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txtExpiredAmount.ForeColor = System.Drawing.Color.Black;
     this.txtExpiredAmount.Location = new System.Drawing.Point(266, 265);
     this.txtExpiredAmount.Name = "txtExpiredAmount";
     this.txtExpiredAmount.Size = new System.Drawing.Size(14, 13);
     this.txtExpiredAmount.TabIndex = 25;
     this.txtExpiredAmount.Text = "0";
     //
     // txtNearExp
     //
     this.txtNearExp.AutoSize = true;
     this.txtNearExp.Enabled = false;
     this.txtNearExp.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txtNearExp.ForeColor = System.Drawing.Color.Black;
     this.txtNearExp.Location = new System.Drawing.Point(266, 295);
     this.txtNearExp.Name = "txtNearExp";
     this.txtNearExp.Size = new System.Drawing.Size(14, 13);
     this.txtNearExp.TabIndex = 25;
     this.txtNearExp.Text = "0";
     //
     // lblLastRec
     //
     this.lblLastRec.AutoSize = true;
     this.lblLastRec.Enabled = false;
     this.lblLastRec.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblLastRec.ForeColor = System.Drawing.Color.Black;
     this.lblLastRec.Location = new System.Drawing.Point(266, 325);
     this.lblLastRec.Name = "lblLastRec";
     this.lblLastRec.Size = new System.Drawing.Size(14, 13);
     this.lblLastRec.TabIndex = 25;
     this.lblLastRec.Text = "0";
     //
     // label31
     //
     this.label31.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label31.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
     this.label31.Location = new System.Drawing.Point(136, 355);
     this.label31.Name = "label31";
     this.label31.Size = new System.Drawing.Size(103, 13);
     this.label31.TabIndex = 22;
     this.label31.Text = "Last Issued Date";
     this.label31.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // label32
     //
     this.label32.AutoSize = true;
     this.label32.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label32.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
     this.label32.Location = new System.Drawing.Point(122, 325);
     this.label32.Name = "label32";
     this.label32.Size = new System.Drawing.Size(117, 13);
     this.label32.TabIndex = 23;
     this.label32.Text = "Last Received Date";
     this.label32.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // lblstat
     //
     this.lblstat.AutoSize = true;
     this.lblstat.Enabled = false;
     this.lblstat.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblstat.ForeColor = System.Drawing.Color.Black;
     this.lblstat.Location = new System.Drawing.Point(266, 55);
     this.lblstat.Name = "lblstat";
     this.lblstat.Size = new System.Drawing.Size(14, 13);
     this.lblstat.TabIndex = 21;
     this.lblstat.Text = "0";
     //
     // label30
     //
     this.label30.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label30.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
     this.label30.Location = new System.Drawing.Point(109, 55);
     this.label30.Name = "label30";
     this.label30.Size = new System.Drawing.Size(130, 13);
     this.label30.TabIndex = 20;
     this.label30.Text = "Current Status";
     this.label30.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // label9
     //
     this.label9.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
     this.label9.Location = new System.Drawing.Point(136, 295);
     this.label9.Name = "label9";
     this.label9.Size = new System.Drawing.Size(103, 13);
     this.label9.TabIndex = 17;
     this.label9.Text = "Near Expiry Amount";
     this.label9.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // label8
     //
     this.label8.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
     this.label8.Location = new System.Drawing.Point(141, 265);
     this.label8.Name = "label8";
     this.label8.Size = new System.Drawing.Size(98, 13);
     this.label8.TabIndex = 17;
     this.label8.Text = "Expired";
     this.label8.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // label7
     //
     this.label7.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
     this.label7.Location = new System.Drawing.Point(79, 235);
     this.label7.Name = "label7";
     this.label7.Size = new System.Drawing.Size(160, 13);
     this.label7.TabIndex = 17;
     this.label7.Text = "Reorder Amount";
     this.label7.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // label6
     //
     this.label6.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
     this.label6.Location = new System.Drawing.Point(79, 145);
     this.label6.Name = "label6";
     this.label6.Size = new System.Drawing.Size(160, 13);
     this.label6.TabIndex = 17;
     this.label6.Text = "Months Of Stock";
     this.label6.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // label5
     //
     this.label5.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
     this.label5.Location = new System.Drawing.Point(112, 205);
     this.label5.Name = "label5";
     this.label5.Size = new System.Drawing.Size(127, 13);
     this.label5.TabIndex = 17;
     this.label5.Text = "Maximum Value";
     this.label5.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // label4
     //
     this.label4.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
     this.label4.Location = new System.Drawing.Point(91, 175);
     this.label4.Name = "label4";
     this.label4.Size = new System.Drawing.Size(148, 13);
     this.label4.TabIndex = 16;
     this.label4.Text = "Minimum Value";
     this.label4.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // label3
     //
     this.label3.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
     this.label3.Location = new System.Drawing.Point(0, 115);
     this.label3.Name = "label3";
     this.label3.Size = new System.Drawing.Size(239, 13);
     this.label3.TabIndex = 19;
     this.label3.Text = "Average Monthly Consumption";
     this.label3.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // label2
     //
     this.label2.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
     this.label2.Location = new System.Drawing.Point(114, 85);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(125, 13);
     this.label2.TabIndex = 18;
     this.label2.Text = "Stock On Hand";
     this.label2.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // tbBinCard
     //
     this.tbBinCard.Controls.Add(this.layoutControl2);
     this.tbBinCard.Name = "tbBinCard";
     this.tbBinCard.Size = new System.Drawing.Size(1040, 521);
     this.tbBinCard.Text = "Bin Card";
     //
     // layoutControl2
     //
     this.layoutControl2.Controls.Add(this.printBinCard);
     this.layoutControl2.Controls.Add(this.label24);
     this.layoutControl2.Controls.Add(this.lkBinCardWarehouse);
     this.layoutControl2.Dock = System.Windows.Forms.DockStyle.Fill;
     this.layoutControl2.Location = new System.Drawing.Point(0, 0);
     this.layoutControl2.Name = "layoutControl2";
     this.layoutControl2.Root = this.layoutControlGroup2;
     this.layoutControl2.Size = new System.Drawing.Size(1040, 521);
     this.layoutControl2.TabIndex = 107;
     this.layoutControl2.Text = "layoutControl2";
     //
     // printBinCard
     //
     this.printBinCard.BackColor = System.Drawing.Color.Empty;
     this.printBinCard.ForeColor = System.Drawing.Color.Empty;
     this.printBinCard.IsMetric = false;
     this.printBinCard.Location = new System.Drawing.Point(12, 60);
     this.printBinCard.Name = "printBinCard";
     this.printBinCard.Size = new System.Drawing.Size(1016, 449);
     this.printBinCard.TabIndex = 104;
     this.printBinCard.TooltipFont = new System.Drawing.Font("Tahoma", 8.25F);
     //
     // label24
     //
     this.label24.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label24.Location = new System.Drawing.Point(12, 12);
     this.label24.Name = "label24";
     this.label24.Size = new System.Drawing.Size(224, 20);
     this.label24.TabIndex = 104;
     this.label24.Text = "Electronic Bin Card ";
     //
     // lkBinCardWarehouse
     //
     this.lkBinCardWarehouse.Location = new System.Drawing.Point(298, 36);
     this.lkBinCardWarehouse.Name = "lkBinCardWarehouse";
     this.lkBinCardWarehouse.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
     new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
     this.lkBinCardWarehouse.Properties.Columns.AddRange(new DevExpress.XtraEditors.Controls.LookUpColumnInfo[] {
     new DevExpress.XtraEditors.Controls.LookUpColumnInfo("Name", "Name")});
     this.lkBinCardWarehouse.Properties.DisplayMember = "Name";
     this.lkBinCardWarehouse.Properties.NullText = "Select Warehouse";
     this.lkBinCardWarehouse.Properties.ValueMember = "ID";
     this.lkBinCardWarehouse.Size = new System.Drawing.Size(129, 20);
     this.lkBinCardWarehouse.StyleController = this.layoutControl2;
     this.lkBinCardWarehouse.TabIndex = 106;
     this.lkBinCardWarehouse.EditValueChanged += new System.EventHandler(this.lkBinCardWarehouse_EditValueChanged);
     //
     // layoutControlGroup2
     //
     this.layoutControlGroup2.CustomizationFormText = "layoutControlGroup2";
     this.layoutControlGroup2.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
     this.layoutControlGroup2.GroupBordersVisible = false;
     this.layoutControlGroup2.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
     this.layoutControlItem4,
     this.emptySpaceItem2,
     this.layoutControlItem3,
     this.emptySpaceItem3,
     this.emptySpaceItem5,
     this.layoutControlItem5});
     this.layoutControlGroup2.Location = new System.Drawing.Point(0, 0);
     this.layoutControlGroup2.Name = "layoutControlGroup2";
     this.layoutControlGroup2.Size = new System.Drawing.Size(1040, 521);
     this.layoutControlGroup2.Text = "layoutControlGroup2";
     this.layoutControlGroup2.TextVisible = false;
     //
     // layoutControlItem4
     //
     this.layoutControlItem4.Control = this.label24;
     this.layoutControlItem4.CustomizationFormText = "layoutControlItem4";
     this.layoutControlItem4.Location = new System.Drawing.Point(0, 0);
     this.layoutControlItem4.Name = "layoutControlItem4";
     this.layoutControlItem4.Size = new System.Drawing.Size(228, 24);
     this.layoutControlItem4.Text = "layoutControlItem4";
     this.layoutControlItem4.TextSize = new System.Drawing.Size(0, 0);
     this.layoutControlItem4.TextToControlDistance = 0;
     this.layoutControlItem4.TextVisible = false;
     //
     // emptySpaceItem2
     //
     this.emptySpaceItem2.AllowHotTrack = false;
     this.emptySpaceItem2.CustomizationFormText = "emptySpaceItem2";
     this.emptySpaceItem2.Location = new System.Drawing.Point(228, 0);
     this.emptySpaceItem2.Name = "emptySpaceItem2";
     this.emptySpaceItem2.Size = new System.Drawing.Size(792, 24);
     this.emptySpaceItem2.Text = "emptySpaceItem2";
     this.emptySpaceItem2.TextSize = new System.Drawing.Size(0, 0);
     //
     // layoutControlItem3
     //
     this.layoutControlItem3.Control = this.lkBinCardWarehouse;
     this.layoutControlItem3.CustomizationFormText = "Warehouse";
     this.layoutControlItem3.Location = new System.Drawing.Point(228, 24);
     this.layoutControlItem3.Name = "layoutControlItem3";
     this.layoutControlItem3.Size = new System.Drawing.Size(191, 24);
     this.layoutControlItem3.Text = "Warehouse";
     this.layoutControlItem3.TextSize = new System.Drawing.Size(55, 13);
     //
     // emptySpaceItem3
     //
     this.emptySpaceItem3.AllowHotTrack = false;
     this.emptySpaceItem3.CustomizationFormText = "emptySpaceItem3";
     this.emptySpaceItem3.Location = new System.Drawing.Point(0, 24);
     this.emptySpaceItem3.Name = "emptySpaceItem3";
     this.emptySpaceItem3.Size = new System.Drawing.Size(228, 24);
     this.emptySpaceItem3.Text = "emptySpaceItem3";
     this.emptySpaceItem3.TextSize = new System.Drawing.Size(0, 0);
     //
     // emptySpaceItem5
     //
     this.emptySpaceItem5.AllowHotTrack = false;
     this.emptySpaceItem5.CustomizationFormText = "emptySpaceItem5";
     this.emptySpaceItem5.Location = new System.Drawing.Point(419, 24);
     this.emptySpaceItem5.Name = "emptySpaceItem5";
     this.emptySpaceItem5.Size = new System.Drawing.Size(601, 24);
     this.emptySpaceItem5.Text = "emptySpaceItem5";
     this.emptySpaceItem5.TextSize = new System.Drawing.Size(0, 0);
     //
     // layoutControlItem5
     //
     this.layoutControlItem5.Control = this.printBinCard;
     this.layoutControlItem5.CustomizationFormText = "layoutControlItem5";
     this.layoutControlItem5.Location = new System.Drawing.Point(0, 48);
     this.layoutControlItem5.Name = "layoutControlItem5";
     this.layoutControlItem5.Size = new System.Drawing.Size(1020, 453);
     this.layoutControlItem5.Text = "layoutControlItem5";
     this.layoutControlItem5.TextSize = new System.Drawing.Size(0, 0);
     this.layoutControlItem5.TextToControlDistance = 0;
     this.layoutControlItem5.TextVisible = false;
     //
     // tbClassicBinCard
     //
     this.tbClassicBinCard.Controls.Add(this.lkWarehouses);
     this.tbClassicBinCard.Controls.Add(this.lkYear);
     this.tbClassicBinCard.Controls.Add(this.lkProgramFilter);
     this.tbClassicBinCard.Controls.Add(this.btnExport);
     this.tbClassicBinCard.Controls.Add(this.transactionGrid);
     this.tbClassicBinCard.Controls.Add(this.label28);
     this.tbClassicBinCard.Controls.Add(this.xpButton1);
     this.tbClassicBinCard.Name = "tbClassicBinCard";
     this.tbClassicBinCard.Size = new System.Drawing.Size(1040, 521);
     this.tbClassicBinCard.Text = "Classic Bin Card";
     //
     // lkWarehouses
     //
     this.lkWarehouses.Location = new System.Drawing.Point(208, 41);
     this.lkWarehouses.Name = "lkWarehouses";
     this.lkWarehouses.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
     new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
     this.lkWarehouses.Properties.Columns.AddRange(new DevExpress.XtraEditors.Controls.LookUpColumnInfo[] {
     new DevExpress.XtraEditors.Controls.LookUpColumnInfo("Name", "Name")});
     this.lkWarehouses.Properties.DisplayMember = "Name";
     this.lkWarehouses.Properties.NullText = "Select Warehouse";
     this.lkWarehouses.Properties.ValueMember = "ID";
     this.lkWarehouses.Size = new System.Drawing.Size(209, 20);
     this.lkWarehouses.TabIndex = 105;
     this.lkWarehouses.EditValueChanged += new System.EventHandler(this.lkWarehouses_EditValueChanged);
     //
     // lkYear
     //
     this.lkYear.Location = new System.Drawing.Point(423, 42);
     this.lkYear.Name = "lkYear";
     this.lkYear.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
     new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
     this.lkYear.Properties.Columns.AddRange(new DevExpress.XtraEditors.Controls.LookUpColumnInfo[] {
     new DevExpress.XtraEditors.Controls.LookUpColumnInfo("Year", "Year")});
     this.lkYear.Properties.DisplayMember = "Year";
     this.lkYear.Properties.ValueMember = "Year";
     this.lkYear.Size = new System.Drawing.Size(100, 20);
     this.lkYear.TabIndex = 104;
     this.lkYear.EditValueChanged += new System.EventHandler(this.lkYear_EditValueChanged);
     //
     // lkProgramFilter
     //
     this.lkProgramFilter.Location = new System.Drawing.Point(529, 42);
     this.lkProgramFilter.Name = "lkProgramFilter";
     this.lkProgramFilter.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
     new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
     this.lkProgramFilter.Properties.Columns.AddRange(new DevExpress.XtraEditors.Controls.LookUpColumnInfo[] {
     new DevExpress.XtraEditors.Controls.LookUpColumnInfo("CompanyName", "Name")});
     this.lkProgramFilter.Properties.DisplayMember = "CompanyName";
     this.lkProgramFilter.Properties.NullText = "Select Program";
     this.lkProgramFilter.Properties.ValueMember = "ID";
     this.lkProgramFilter.Size = new System.Drawing.Size(209, 20);
     this.lkProgramFilter.TabIndex = 13;
     this.lkProgramFilter.Visible = false;
     this.lkProgramFilter.EditValueChanged += new System.EventHandler(this.LkProgramFilterEditValueChanged);
     //
     // transactionGrid
     //
     this.transactionGrid.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.transactionGrid.ContextMenuStrip = this.contextMenuStrip1;
     this.transactionGrid.Location = new System.Drawing.Point(7, 68);
     this.transactionGrid.MainView = this.gridViewBinCard;
     this.transactionGrid.Name = "transactionGrid";
     this.transactionGrid.Size = new System.Drawing.Size(1032, 449);
     this.transactionGrid.TabIndex = 12;
     this.transactionGrid.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
     this.gridViewBinCard});
     //
     // contextMenuStrip1
     //
     this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.tpDelete});
     this.contextMenuStrip1.Name = "contextMenuStrip1";
     this.contextMenuStrip1.Size = new System.Drawing.Size(108, 26);
     //
     // tpDelete
     //
     this.tpDelete.Name = "tpDelete";
     this.tpDelete.Size = new System.Drawing.Size(107, 22);
     this.tpDelete.Text = "Delete";
     this.tpDelete.Click += new System.EventHandler(this.tpDelete_Click);
     //
     // gridViewBinCard
     //
     this.gridViewBinCard.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
     this.colGRNF,
     this.colDocType,
     this.gridColumn15,
     this.colManuf,
     this.gridColumn16,
     this.gridColumn17,
     this.gridColumn18,
     this.gridColumn19,
     this.gridColumn20,
     this.gridColumn21,
     this.colUnitCost,
     this.colTotalCost,
     this.gridColumn24});
     this.gridViewBinCard.GridControl = this.transactionGrid;
     this.gridViewBinCard.Name = "gridViewBinCard";
     this.gridViewBinCard.OptionsBehavior.Editable = false;
     this.gridViewBinCard.OptionsCustomization.AllowSort = false;
     this.gridViewBinCard.OptionsSelection.EnableAppearanceFocusedCell = false;
     this.gridViewBinCard.OptionsView.ShowGroupPanel = false;
     //
     // colGRNF
     //
     this.colGRNF.Caption = "GRNF";
     this.colGRNF.FieldName = "GRNF";
     this.colGRNF.Name = "colGRNF";
     this.colGRNF.Visible = true;
     this.colGRNF.VisibleIndex = 0;
     //
     // colDocType
     //
     this.colDocType.Caption = "Type";
     this.colDocType.FieldName = "DocType";
     this.colDocType.Name = "colDocType";
     this.colDocType.Visible = true;
     this.colDocType.VisibleIndex = 1;
     //
     // gridColumn15
     //
     this.gridColumn15.Caption = "Reference No";
     this.gridColumn15.FieldName = "RefNo";
     this.gridColumn15.Name = "gridColumn15";
     this.gridColumn15.Visible = true;
     this.gridColumn15.VisibleIndex = 2;
     //
     // colManuf
     //
     this.colManuf.Caption = "Manufacturer";
     this.colManuf.FieldName = "Manufacturer";
     this.colManuf.Name = "colManuf";
     this.colManuf.Visible = true;
     this.colManuf.VisibleIndex = 3;
     //
     // gridColumn16
     //
     this.gridColumn16.Caption = "Date";
     this.gridColumn16.DisplayFormat.FormatString = "dd/MM/yyyy";
     this.gridColumn16.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime;
     this.gridColumn16.FieldName = "Date";
     this.gridColumn16.Name = "gridColumn16";
     this.gridColumn16.Visible = true;
     this.gridColumn16.VisibleIndex = 4;
     //
     // gridColumn17
     //
     this.gridColumn17.Caption = "Batch No";
     this.gridColumn17.FieldName = "BatchNo";
     this.gridColumn17.Name = "gridColumn17";
     this.gridColumn17.Visible = true;
     this.gridColumn17.VisibleIndex = 5;
     //
     // gridColumn18
     //
     this.gridColumn18.Caption = "Expiry Date";
     this.gridColumn18.DisplayFormat.FormatString = "MM/yyyy";
     this.gridColumn18.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime;
     this.gridColumn18.FieldName = "ExpDate";
     this.gridColumn18.Name = "gridColumn18";
     this.gridColumn18.Visible = true;
     this.gridColumn18.VisibleIndex = 6;
     //
     // gridColumn19
     //
     this.gridColumn19.Caption = "Received";
     this.gridColumn19.DisplayFormat.FormatString = "#,##0";
     this.gridColumn19.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
     this.gridColumn19.FieldName = "Received";
     this.gridColumn19.Name = "gridColumn19";
     this.gridColumn19.Visible = true;
     this.gridColumn19.VisibleIndex = 7;
     //
     // gridColumn20
     //
     this.gridColumn20.Caption = "Issued";
     this.gridColumn20.DisplayFormat.FormatString = "#,##0";
     this.gridColumn20.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
     this.gridColumn20.FieldName = "Issued";
     this.gridColumn20.Name = "gridColumn20";
     this.gridColumn20.Visible = true;
     this.gridColumn20.VisibleIndex = 8;
     //
     // gridColumn21
     //
     this.gridColumn21.Caption = "Balance";
     this.gridColumn21.DisplayFormat.FormatString = "#,##0";
     this.gridColumn21.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
     this.gridColumn21.FieldName = "Balance";
     this.gridColumn21.Name = "gridColumn21";
     this.gridColumn21.Visible = true;
     this.gridColumn21.VisibleIndex = 9;
     //
     // colUnitCost
     //
     this.colUnitCost.Caption = "Unit Cost";
     this.colUnitCost.DisplayFormat.FormatString = "#,##0.#0";
     this.colUnitCost.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
     this.colUnitCost.FieldName = "UnitPrice";
     this.colUnitCost.Name = "colUnitCost";
     this.colUnitCost.Visible = true;
     this.colUnitCost.VisibleIndex = 10;
     //
     // colTotalCost
     //
     this.colTotalCost.Caption = "Total Cost";
     this.colTotalCost.DisplayFormat.FormatString = "#,##0.#0";
     this.colTotalCost.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
     this.colTotalCost.FieldName = "TotalPrice";
     this.colTotalCost.Name = "colTotalCost";
     this.colTotalCost.Visible = true;
     this.colTotalCost.VisibleIndex = 11;
     //
     // gridColumn24
     //
     this.gridColumn24.Caption = "To/From";
     this.gridColumn24.FieldName = "ToFrom";
     this.gridColumn24.Name = "gridColumn24";
     this.gridColumn24.Visible = true;
     this.gridColumn24.VisibleIndex = 12;
     //
     // label28
     //
     this.label28.AutoSize = true;
     this.label28.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label28.Location = new System.Drawing.Point(7, 15);
     this.label28.Name = "label28";
     this.label28.Size = new System.Drawing.Size(200, 23);
     this.label28.TabIndex = 10;
     this.label28.Text = "Electronic Bin Card ";
     //
     // tbSOHTrend
     //
     this.tbSOHTrend.Controls.Add(this.groupSohDetail);
     this.tbSOHTrend.Controls.Add(this.lkShowTable);
     this.tbSOHTrend.Controls.Add(this.label29);
     this.tbSOHTrend.Controls.Add(this.chartBar);
     this.tbSOHTrend.Name = "tbSOHTrend";
     this.tbSOHTrend.Padding = new System.Windows.Forms.Padding(3);
     this.tbSOHTrend.PageVisible = false;
     this.tbSOHTrend.Size = new System.Drawing.Size(1040, 521);
     this.tbSOHTrend.Text = "SOH Trend";
     //
     // groupSohDetail
     //
     this.groupSohDetail.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.groupSohDetail.Location = new System.Drawing.Point(-1, 37);
     this.groupSohDetail.Name = "groupSohDetail";
     this.groupSohDetail.Size = new System.Drawing.Size(968, 496);
     this.groupSohDetail.TabIndex = 13;
     this.groupSohDetail.TabStop = false;
     this.groupSohDetail.Text = "Show trend by month";
     this.groupSohDetail.Visible = false;
     //
     // lkShowTable
     //
     this.lkShowTable.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.lkShowTable.AutoSize = true;
     this.lkShowTable.Location = new System.Drawing.Point(1094, 12);
     this.lkShowTable.Name = "lkShowTable";
     this.lkShowTable.Size = new System.Drawing.Size(72, 13);
     this.lkShowTable.TabIndex = 12;
     this.lkShowTable.TabStop = true;
     this.lkShowTable.Text = "Show Table";
     this.lkShowTable.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LkShowTableLinkClicked);
     //
     // label29
     //
     this.label29.AutoSize = true;
     this.label29.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label29.Location = new System.Drawing.Point(7, 15);
     this.label29.Name = "label29";
     this.label29.Size = new System.Drawing.Size(229, 23);
     this.label29.TabIndex = 11;
     this.label29.Text = "Trend - Stock On Hand";
     //
     // tbAMCTrend
     //
     this.tbAMCTrend.Controls.Add(this.lkDetailAmc);
     this.tbAMCTrend.Controls.Add(this.label34);
     this.tbAMCTrend.Controls.Add(this.chartAmc);
     this.tbAMCTrend.Name = "tbAMCTrend";
     this.tbAMCTrend.Padding = new System.Windows.Forms.Padding(3);
     this.tbAMCTrend.PageVisible = false;
     this.tbAMCTrend.Size = new System.Drawing.Size(1040, 521);
     this.tbAMCTrend.Text = "AMC Trend";
     //
     // lkDetailAmc
     //
     this.lkDetailAmc.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.lkDetailAmc.AutoSize = true;
     this.lkDetailAmc.Location = new System.Drawing.Point(1101, 22);
     this.lkDetailAmc.Name = "lkDetailAmc";
     this.lkDetailAmc.Size = new System.Drawing.Size(72, 13);
     this.lkDetailAmc.TabIndex = 14;
     this.lkDetailAmc.TabStop = true;
     this.lkDetailAmc.Text = "Show Table";
     //
     // label34
     //
     this.label34.AutoSize = true;
     this.label34.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label34.Location = new System.Drawing.Point(7, 15);
     this.label34.Name = "label34";
     this.label34.Size = new System.Drawing.Size(453, 23);
     this.label34.TabIndex = 12;
     this.label34.Text = "Trend - Average Monthly Consumption (AMC) ";
     //
     // chartAmc
     //
     this.chartAmc.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.chartAmc.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(221)))), ((int)(((byte)(231)))), ((int)(((byte)(253)))));
     xyDiagram2.AxisX.Range.ScrollingRange.SideMarginsEnabled = true;
     xyDiagram2.AxisX.Range.SideMarginsEnabled = true;
     xyDiagram2.AxisX.VisibleInPanesSerializable = "-1";
     xyDiagram2.AxisY.Range.ScrollingRange.SideMarginsEnabled = true;
     xyDiagram2.AxisY.Range.SideMarginsEnabled = true;
     xyDiagram2.AxisY.VisibleInPanesSerializable = "-1";
     this.chartAmc.Diagram = xyDiagram2;
     this.chartAmc.Location = new System.Drawing.Point(4, 58);
     this.chartAmc.Name = "chartAmc";
     this.chartAmc.PaletteRepository.Add("Palette 1", new DevExpress.XtraCharts.Palette("Palette 1", DevExpress.XtraCharts.PaletteScaleMode.Repeat, new DevExpress.XtraCharts.PaletteEntry[0]));
     this.chartAmc.PaletteRepository.Add("Palette 2", new DevExpress.XtraCharts.Palette("Palette 2", DevExpress.XtraCharts.PaletteScaleMode.Repeat, new DevExpress.XtraCharts.PaletteEntry[0]));
     sideBySideBarSeriesLabel4.LineVisible = true;
     series3.Label = sideBySideBarSeriesLabel4;
     series3.Name = "Series 1";
     sideBySideBarSeriesLabel5.LineVisible = true;
     series4.Label = sideBySideBarSeriesLabel5;
     series4.Name = "Series 2";
     this.chartAmc.SeriesSerializable = new DevExpress.XtraCharts.Series[] {
     series3,
     series4};
     sideBySideBarSeriesLabel6.LineVisible = true;
     this.chartAmc.SeriesTemplate.Label = sideBySideBarSeriesLabel6;
     this.chartAmc.Size = new System.Drawing.Size(963, 452);
     this.chartAmc.TabIndex = 3;
     //
     // tbMOSTrend
     //
     this.tbMOSTrend.Controls.Add(this.lkDetailMos);
     this.tbMOSTrend.Controls.Add(this.label35);
     this.tbMOSTrend.Controls.Add(this.chartMOS);
     this.tbMOSTrend.Name = "tbMOSTrend";
     this.tbMOSTrend.Padding = new System.Windows.Forms.Padding(3);
     this.tbMOSTrend.PageVisible = false;
     this.tbMOSTrend.Size = new System.Drawing.Size(1040, 521);
     this.tbMOSTrend.Text = "MOS Trend";
     //
     // lkDetailMos
     //
     this.lkDetailMos.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.lkDetailMos.AutoSize = true;
     this.lkDetailMos.Location = new System.Drawing.Point(1100, 24);
     this.lkDetailMos.Name = "lkDetailMos";
     this.lkDetailMos.Size = new System.Drawing.Size(72, 13);
     this.lkDetailMos.TabIndex = 16;
     this.lkDetailMos.TabStop = true;
     this.lkDetailMos.Text = "Show Table";
     //
     // label35
     //
     this.label35.AutoSize = true;
     this.label35.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label35.Location = new System.Drawing.Point(7, 15);
     this.label35.Name = "label35";
     this.label35.Size = new System.Drawing.Size(248, 23);
     this.label35.TabIndex = 12;
     this.label35.Text = "Trend - Months of Stock ";
     //
     // chartMOS
     //
     this.chartMOS.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.chartMOS.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(221)))), ((int)(((byte)(231)))), ((int)(((byte)(253)))));
     xyDiagram3.AxisX.Range.ScrollingRange.SideMarginsEnabled = true;
     xyDiagram3.AxisX.Range.SideMarginsEnabled = true;
     xyDiagram3.AxisX.VisibleInPanesSerializable = "-1";
     xyDiagram3.AxisY.Range.ScrollingRange.SideMarginsEnabled = true;
     xyDiagram3.AxisY.Range.SideMarginsEnabled = true;
     xyDiagram3.AxisY.VisibleInPanesSerializable = "-1";
     this.chartMOS.Diagram = xyDiagram3;
     this.chartMOS.Location = new System.Drawing.Point(7, 48);
     this.chartMOS.Name = "chartMOS";
     this.chartMOS.PaletteName = "Palette 2";
     this.chartMOS.PaletteRepository.Add("Palette 1", new DevExpress.XtraCharts.Palette("Palette 1", DevExpress.XtraCharts.PaletteScaleMode.Repeat, new DevExpress.XtraCharts.PaletteEntry[] {
         new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(163)))), ((int)(((byte)(54))))), System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(163)))), ((int)(((byte)(54)))))),
         new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(200)))), ((int)(((byte)(73)))), ((int)(((byte)(51))))), System.Drawing.Color.FromArgb(((int)(((byte)(200)))), ((int)(((byte)(73)))), ((int)(((byte)(51))))))}));
     this.chartMOS.PaletteRepository.Add("Palette 2", new DevExpress.XtraCharts.Palette("Palette 2", DevExpress.XtraCharts.PaletteScaleMode.Repeat, new DevExpress.XtraCharts.PaletteEntry[] {
         new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(168)))), ((int)(((byte)(39))))), System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(168)))), ((int)(((byte)(39)))))),
         new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(44)))), ((int)(((byte)(35))))), System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(44)))), ((int)(((byte)(35))))))}));
     sideBySideBarSeriesLabel7.LineVisible = true;
     series5.Label = sideBySideBarSeriesLabel7;
     series5.Name = "Series 1";
     sideBySideBarSeriesLabel8.LineVisible = true;
     series6.Label = sideBySideBarSeriesLabel8;
     series6.Name = "Series 2";
     this.chartMOS.SeriesSerializable = new DevExpress.XtraCharts.Series[] {
     series5,
     series6};
     sideBySideBarSeriesLabel9.LineVisible = true;
     this.chartMOS.SeriesTemplate.Label = sideBySideBarSeriesLabel9;
     this.chartMOS.Size = new System.Drawing.Size(1160, 452);
     this.chartMOS.TabIndex = 4;
     //
     // tbActivityTrend
     //
     this.tbActivityTrend.Appearance.PageClient.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(221)))), ((int)(((byte)(231)))), ((int)(((byte)(253)))));
     this.tbActivityTrend.Appearance.PageClient.Options.UseBackColor = true;
     this.tbActivityTrend.Controls.Add(this.label36);
     this.tbActivityTrend.Controls.Add(this.chartComp);
     this.tbActivityTrend.Name = "tbActivityTrend";
     this.tbActivityTrend.Padding = new System.Windows.Forms.Padding(3);
     this.tbActivityTrend.PageVisible = false;
     this.tbActivityTrend.Size = new System.Drawing.Size(1040, 521);
     this.tbActivityTrend.Text = "Activity Trend";
     //
     // label36
     //
     this.label36.AutoSize = true;
     this.label36.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label36.Location = new System.Drawing.Point(7, 15);
     this.label36.Name = "label36";
     this.label36.Size = new System.Drawing.Size(164, 23);
     this.label36.TabIndex = 12;
     this.label36.Text = "Trend - Activity ";
     //
     // chartComp
     //
     this.chartComp.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(221)))), ((int)(((byte)(231)))), ((int)(((byte)(253)))));
     xyDiagram4.AxisX.Range.ScrollingRange.SideMarginsEnabled = true;
     xyDiagram4.AxisX.Range.SideMarginsEnabled = true;
     xyDiagram4.AxisX.VisibleInPanesSerializable = "-1";
     xyDiagram4.AxisY.Range.ScrollingRange.SideMarginsEnabled = true;
     xyDiagram4.AxisY.Range.SideMarginsEnabled = true;
     xyDiagram4.AxisY.VisibleInPanesSerializable = "-1";
     this.chartComp.Diagram = xyDiagram4;
     this.chartComp.Location = new System.Drawing.Point(7, 48);
     this.chartComp.Name = "chartComp";
     this.chartComp.PaletteRepository.Add("Palette 1", new DevExpress.XtraCharts.Palette("Palette 1", DevExpress.XtraCharts.PaletteScaleMode.Repeat, new DevExpress.XtraCharts.PaletteEntry[0]));
     this.chartComp.PaletteRepository.Add("Palette 2", new DevExpress.XtraCharts.Palette("Palette 2", DevExpress.XtraCharts.PaletteScaleMode.Repeat, new DevExpress.XtraCharts.PaletteEntry[0]));
     sideBySideBarSeriesLabel10.LineVisible = true;
     series7.Label = sideBySideBarSeriesLabel10;
     series7.Name = "Series 1";
     sideBySideBarSeriesLabel11.LineVisible = true;
     series8.Label = sideBySideBarSeriesLabel11;
     series8.Name = "Series 2";
     this.chartComp.SeriesSerializable = new DevExpress.XtraCharts.Series[] {
     series7,
     series8};
     sideBySideBarSeriesLabel12.LineVisible = true;
     this.chartComp.SeriesTemplate.Label = sideBySideBarSeriesLabel12;
     this.chartComp.Size = new System.Drawing.Size(967, 476);
     this.chartComp.TabIndex = 3;
     //
     // tbSSTrend
     //
     this.tbSSTrend.Controls.Add(this.label20);
     this.tbSSTrend.Controls.Add(this.lblTime);
     this.tbSSTrend.Controls.Add(this.lblCurStatus);
     this.tbSSTrend.Controls.Add(this.label19);
     this.tbSSTrend.Controls.Add(this.tableLayoutPanel1);
     this.tbSSTrend.Name = "tbSSTrend";
     this.tbSSTrend.PageVisible = false;
     this.tbSSTrend.Size = new System.Drawing.Size(1040, 521);
     this.tbSSTrend.Text = "Stock Status Trend";
     //
     // label20
     //
     this.label20.AutoSize = true;
     this.label20.Font = new System.Drawing.Font("Verdana", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label20.Location = new System.Drawing.Point(35, 106);
     this.label20.Name = "label20";
     this.label20.Size = new System.Drawing.Size(142, 16);
     this.label20.TabIndex = 1;
     this.label20.Text = "Trend (No. of times)";
     //
     // lblTime
     //
     this.lblTime.AutoSize = true;
     this.lblTime.Location = new System.Drawing.Point(257, 68);
     this.lblTime.Name = "lblTime";
     this.lblTime.Size = new System.Drawing.Size(0, 13);
     this.lblTime.TabIndex = 1;
     //
     // lblCurStatus
     //
     this.lblCurStatus.AutoSize = true;
     this.lblCurStatus.Location = new System.Drawing.Point(150, 68);
     this.lblCurStatus.Name = "lblCurStatus";
     this.lblCurStatus.Size = new System.Drawing.Size(0, 13);
     this.lblCurStatus.TabIndex = 1;
     //
     // label19
     //
     this.label19.AutoSize = true;
     this.label19.Location = new System.Drawing.Point(45, 68);
     this.label19.Name = "label19";
     this.label19.Size = new System.Drawing.Size(104, 13);
     this.label19.TabIndex = 1;
     this.label19.Text = "Current Status : ";
     //
     // tableLayoutPanel1
     //
     this.tableLayoutPanel1.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single;
     this.tableLayoutPanel1.ColumnCount = 4;
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 182F));
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 75F));
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 85F));
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 277F));
     this.tableLayoutPanel1.Controls.Add(this.label10, 0, 0);
     this.tableLayoutPanel1.Controls.Add(this.label11, 1, 0);
     this.tableLayoutPanel1.Controls.Add(this.label12, 2, 0);
     this.tableLayoutPanel1.Controls.Add(this.label13, 3, 0);
     this.tableLayoutPanel1.Controls.Add(this.label14, 0, 1);
     this.tableLayoutPanel1.Controls.Add(this.label15, 0, 2);
     this.tableLayoutPanel1.Controls.Add(this.label16, 0, 3);
     this.tableLayoutPanel1.Controls.Add(this.label18, 0, 4);
     this.tableLayoutPanel1.Controls.Add(this.lblThreeStockout, 1, 1);
     this.tableLayoutPanel1.Controls.Add(this.lblSixStockOut, 2, 1);
     this.tableLayoutPanel1.Controls.Add(this.lblTwelveStockOut, 3, 1);
     this.tableLayoutPanel1.Controls.Add(this.lblThreeNearStock, 1, 2);
     this.tableLayoutPanel1.Controls.Add(this.lblSixNearStock, 2, 2);
     this.tableLayoutPanel1.Controls.Add(this.lblTwelveNear, 3, 2);
     this.tableLayoutPanel1.Controls.Add(this.lblThreeBelowMin, 1, 3);
     this.tableLayoutPanel1.Controls.Add(this.lblSixBelowMin, 2, 3);
     this.tableLayoutPanel1.Controls.Add(this.lblTwelveBelowMin, 3, 3);
     this.tableLayoutPanel1.Controls.Add(this.lblTwelveOverStock, 3, 4);
     this.tableLayoutPanel1.Controls.Add(this.lblSixOverStock, 2, 4);
     this.tableLayoutPanel1.Controls.Add(this.lblThreeOverStock, 1, 4);
     this.tableLayoutPanel1.Location = new System.Drawing.Point(38, 134);
     this.tableLayoutPanel1.Name = "tableLayoutPanel1";
     this.tableLayoutPanel1.RowCount = 5;
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
     this.tableLayoutPanel1.Size = new System.Drawing.Size(419, 109);
     this.tableLayoutPanel1.TabIndex = 0;
     //
     // label10
     //
     this.label10.AutoSize = true;
     this.label10.Location = new System.Drawing.Point(4, 1);
     this.label10.Name = "label10";
     this.label10.Size = new System.Drawing.Size(0, 13);
     this.label10.TabIndex = 0;
     //
     // label11
     //
     this.label11.AutoSize = true;
     this.label11.Location = new System.Drawing.Point(187, 1);
     this.label11.Name = "label11";
     this.label11.Size = new System.Drawing.Size(52, 13);
     this.label11.TabIndex = 1;
     this.label11.Text = "3 Month";
     //
     // label12
     //
     this.label12.AutoSize = true;
     this.label12.Location = new System.Drawing.Point(263, 1);
     this.label12.Name = "label12";
     this.label12.Size = new System.Drawing.Size(52, 13);
     this.label12.TabIndex = 1;
     this.label12.Text = "6 Month";
     //
     // label13
     //
     this.label13.AutoSize = true;
     this.label13.Location = new System.Drawing.Point(349, 1);
     this.label13.Name = "label13";
     this.label13.Size = new System.Drawing.Size(59, 13);
     this.label13.TabIndex = 1;
     this.label13.Text = "12 Month";
     //
     // label14
     //
     this.label14.AutoSize = true;
     this.label14.Location = new System.Drawing.Point(4, 22);
     this.label14.Name = "label14";
     this.label14.Size = new System.Drawing.Size(63, 13);
     this.label14.TabIndex = 1;
     this.label14.Text = "Stock Out";
     //
     // label15
     //
     this.label15.AutoSize = true;
     this.label15.Location = new System.Drawing.Point(4, 43);
     this.label15.Name = "label15";
     this.label15.Size = new System.Drawing.Size(94, 13);
     this.label15.TabIndex = 1;
     this.label15.Text = "Near Stock Out";
     //
     // label16
     //
     this.label16.AutoSize = true;
     this.label16.Location = new System.Drawing.Point(4, 64);
     this.label16.Name = "label16";
     this.label16.Size = new System.Drawing.Size(64, 13);
     this.label16.TabIndex = 1;
     this.label16.Text = "Below Min";
     //
     // label18
     //
     this.label18.AutoSize = true;
     this.label18.Location = new System.Drawing.Point(4, 85);
     this.label18.Name = "label18";
     this.label18.Size = new System.Drawing.Size(71, 13);
     this.label18.TabIndex = 1;
     this.label18.Text = "Over Stock";
     //
     // lblThreeStockout
     //
     this.lblThreeStockout.AutoSize = true;
     this.lblThreeStockout.Location = new System.Drawing.Point(187, 22);
     this.lblThreeStockout.Name = "lblThreeStockout";
     this.lblThreeStockout.Size = new System.Drawing.Size(14, 13);
     this.lblThreeStockout.TabIndex = 1;
     this.lblThreeStockout.Text = "0";
     //
     // lblSixStockOut
     //
     this.lblSixStockOut.AutoSize = true;
     this.lblSixStockOut.Location = new System.Drawing.Point(263, 22);
     this.lblSixStockOut.Name = "lblSixStockOut";
     this.lblSixStockOut.Size = new System.Drawing.Size(14, 13);
     this.lblSixStockOut.TabIndex = 1;
     this.lblSixStockOut.Text = "0";
     //
     // lblTwelveStockOut
     //
     this.lblTwelveStockOut.AutoSize = true;
     this.lblTwelveStockOut.Location = new System.Drawing.Point(349, 22);
     this.lblTwelveStockOut.Name = "lblTwelveStockOut";
     this.lblTwelveStockOut.Size = new System.Drawing.Size(14, 13);
     this.lblTwelveStockOut.TabIndex = 1;
     this.lblTwelveStockOut.Text = "0";
     //
     // lblThreeNearStock
     //
     this.lblThreeNearStock.AutoSize = true;
     this.lblThreeNearStock.Location = new System.Drawing.Point(187, 43);
     this.lblThreeNearStock.Name = "lblThreeNearStock";
     this.lblThreeNearStock.Size = new System.Drawing.Size(14, 13);
     this.lblThreeNearStock.TabIndex = 1;
     this.lblThreeNearStock.Text = "0";
     //
     // lblSixNearStock
     //
     this.lblSixNearStock.AutoSize = true;
     this.lblSixNearStock.Location = new System.Drawing.Point(263, 43);
     this.lblSixNearStock.Name = "lblSixNearStock";
     this.lblSixNearStock.Size = new System.Drawing.Size(14, 13);
     this.lblSixNearStock.TabIndex = 1;
     this.lblSixNearStock.Text = "0";
     //
     // lblTwelveNear
     //
     this.lblTwelveNear.AutoSize = true;
     this.lblTwelveNear.Location = new System.Drawing.Point(349, 43);
     this.lblTwelveNear.Name = "lblTwelveNear";
     this.lblTwelveNear.Size = new System.Drawing.Size(14, 13);
     this.lblTwelveNear.TabIndex = 1;
     this.lblTwelveNear.Text = "0";
     //
     // lblThreeBelowMin
     //
     this.lblThreeBelowMin.AutoSize = true;
     this.lblThreeBelowMin.Location = new System.Drawing.Point(187, 64);
     this.lblThreeBelowMin.Name = "lblThreeBelowMin";
     this.lblThreeBelowMin.Size = new System.Drawing.Size(14, 13);
     this.lblThreeBelowMin.TabIndex = 1;
     this.lblThreeBelowMin.Text = "0";
     //
     // lblSixBelowMin
     //
     this.lblSixBelowMin.AutoSize = true;
     this.lblSixBelowMin.Location = new System.Drawing.Point(263, 64);
     this.lblSixBelowMin.Name = "lblSixBelowMin";
     this.lblSixBelowMin.Size = new System.Drawing.Size(14, 13);
     this.lblSixBelowMin.TabIndex = 1;
     this.lblSixBelowMin.Text = "0";
     //
     // lblTwelveBelowMin
     //
     this.lblTwelveBelowMin.AutoSize = true;
     this.lblTwelveBelowMin.Location = new System.Drawing.Point(349, 64);
     this.lblTwelveBelowMin.Name = "lblTwelveBelowMin";
     this.lblTwelveBelowMin.Size = new System.Drawing.Size(14, 13);
     this.lblTwelveBelowMin.TabIndex = 1;
     this.lblTwelveBelowMin.Text = "0";
     //
     // lblTwelveOverStock
     //
     this.lblTwelveOverStock.AutoSize = true;
     this.lblTwelveOverStock.Location = new System.Drawing.Point(349, 85);
     this.lblTwelveOverStock.Name = "lblTwelveOverStock";
     this.lblTwelveOverStock.Size = new System.Drawing.Size(14, 13);
     this.lblTwelveOverStock.TabIndex = 1;
     this.lblTwelveOverStock.Text = "0";
     //
     // lblSixOverStock
     //
     this.lblSixOverStock.AutoSize = true;
     this.lblSixOverStock.Location = new System.Drawing.Point(263, 85);
     this.lblSixOverStock.Name = "lblSixOverStock";
     this.lblSixOverStock.Size = new System.Drawing.Size(14, 13);
     this.lblSixOverStock.TabIndex = 1;
     this.lblSixOverStock.Text = "0";
     //
     // lblThreeOverStock
     //
     this.lblThreeOverStock.AutoSize = true;
     this.lblThreeOverStock.Location = new System.Drawing.Point(187, 85);
     this.lblThreeOverStock.Name = "lblThreeOverStock";
     this.lblThreeOverStock.Size = new System.Drawing.Size(14, 13);
     this.lblThreeOverStock.TabIndex = 1;
     this.lblThreeOverStock.Text = "0";
     //
     // tbTransactions
     //
     this.tbTransactions.Controls.Add(this.lblAvgIssues);
     this.tbTransactions.Controls.Add(this.lblAvgReceives);
     this.tbTransactions.Controls.Add(this.lblLastIssues);
     this.tbTransactions.Controls.Add(this.lblLastReceive);
     this.tbTransactions.Controls.Add(this.label23);
     this.tbTransactions.Controls.Add(this.label22);
     this.tbTransactions.Controls.Add(this.label21);
     this.tbTransactions.Controls.Add(this.label17);
     this.tbTransactions.Name = "tbTransactions";
     this.tbTransactions.PageVisible = false;
     this.tbTransactions.Size = new System.Drawing.Size(1040, 521);
     this.tbTransactions.Text = "Transaction";
     //
     // lblAvgIssues
     //
     this.lblAvgIssues.AutoSize = true;
     this.lblAvgIssues.Location = new System.Drawing.Point(357, 184);
     this.lblAvgIssues.Name = "lblAvgIssues";
     this.lblAvgIssues.Size = new System.Drawing.Size(14, 13);
     this.lblAvgIssues.TabIndex = 1;
     this.lblAvgIssues.Text = "0";
     this.lblAvgIssues.Visible = false;
     //
     // lblAvgReceives
     //
     this.lblAvgReceives.AutoSize = true;
     this.lblAvgReceives.Location = new System.Drawing.Point(357, 153);
     this.lblAvgReceives.Name = "lblAvgReceives";
     this.lblAvgReceives.Size = new System.Drawing.Size(14, 13);
     this.lblAvgReceives.TabIndex = 1;
     this.lblAvgReceives.Text = "0";
     this.lblAvgReceives.Visible = false;
     //
     // lblLastIssues
     //
     this.lblLastIssues.AutoSize = true;
     this.lblLastIssues.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblLastIssues.Location = new System.Drawing.Point(353, 105);
     this.lblLastIssues.Name = "lblLastIssues";
     this.lblLastIssues.Size = new System.Drawing.Size(22, 23);
     this.lblLastIssues.TabIndex = 1;
     this.lblLastIssues.Text = "0";
     //
     // lblLastReceive
     //
     this.lblLastReceive.AutoSize = true;
     this.lblLastReceive.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblLastReceive.Location = new System.Drawing.Point(353, 67);
     this.lblLastReceive.Name = "lblLastReceive";
     this.lblLastReceive.Size = new System.Drawing.Size(22, 23);
     this.lblLastReceive.TabIndex = 1;
     this.lblLastReceive.Text = "0";
     //
     // label23
     //
     this.label23.AutoSize = true;
     this.label23.Font = new System.Drawing.Font("Verdana", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label23.Location = new System.Drawing.Point(141, 182);
     this.label23.Name = "label23";
     this.label23.Size = new System.Drawing.Size(210, 16);
     this.label23.TabIndex = 0;
     this.label23.Text = "AVG. no. of days b/n Issues : ";
     this.label23.Visible = false;
     //
     // label22
     //
     this.label22.AutoSize = true;
     this.label22.Font = new System.Drawing.Font("Verdana", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label22.Location = new System.Drawing.Point(125, 151);
     this.label22.Name = "label22";
     this.label22.Size = new System.Drawing.Size(226, 16);
     this.label22.TabIndex = 0;
     this.label22.Text = "AVG. no. of days b/n Receives : ";
     this.label22.Visible = false;
     //
     // label21
     //
     this.label21.AutoSize = true;
     this.label21.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label21.Location = new System.Drawing.Point(141, 105);
     this.label21.Name = "label21";
     this.label21.Size = new System.Drawing.Size(214, 23);
     this.label21.TabIndex = 0;
     this.label21.Text = "Last Issued Date : ";
     //
     // label17
     //
     this.label17.AutoSize = true;
     this.label17.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label17.Location = new System.Drawing.Point(116, 67);
     this.label17.Name = "label17";
     this.label17.Size = new System.Drawing.Size(239, 23);
     this.label17.TabIndex = 0;
     this.label17.Text = "Last Received Date : ";
     //
     // tbConsumptionTrend
     //
     this.tbConsumptionTrend.Controls.Add(this.lkDetailCons);
     this.tbConsumptionTrend.Controls.Add(this.label33);
     this.tbConsumptionTrend.Controls.Add(this.consuTrend);
     this.tbConsumptionTrend.Name = "tbConsumptionTrend";
     this.tbConsumptionTrend.Padding = new System.Windows.Forms.Padding(3);
     this.tbConsumptionTrend.PageVisible = false;
     this.tbConsumptionTrend.Size = new System.Drawing.Size(1040, 521);
     this.tbConsumptionTrend.Text = "Consumption Trend";
     //
     // lkDetailCons
     //
     this.lkDetailCons.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.lkDetailCons.AutoSize = true;
     this.lkDetailCons.Location = new System.Drawing.Point(1100, 17);
     this.lkDetailCons.Name = "lkDetailCons";
     this.lkDetailCons.Size = new System.Drawing.Size(72, 13);
     this.lkDetailCons.TabIndex = 16;
     this.lkDetailCons.TabStop = true;
     this.lkDetailCons.Text = "Show Table";
     //
     // label33
     //
     this.label33.AutoSize = true;
     this.label33.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label33.Location = new System.Drawing.Point(7, 15);
     this.label33.Name = "label33";
     this.label33.Size = new System.Drawing.Size(212, 23);
     this.label33.TabIndex = 12;
     this.label33.Text = "Trend - Consumption";
     //
     // consuTrend
     //
     this.consuTrend.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.consuTrend.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(221)))), ((int)(((byte)(231)))), ((int)(((byte)(253)))));
     xyDiagram5.AxisX.Range.ScrollingRange.SideMarginsEnabled = true;
     xyDiagram5.AxisX.Range.SideMarginsEnabled = true;
     xyDiagram5.AxisX.VisibleInPanesSerializable = "-1";
     xyDiagram5.AxisY.Range.ScrollingRange.SideMarginsEnabled = true;
     xyDiagram5.AxisY.Range.SideMarginsEnabled = true;
     xyDiagram5.AxisY.VisibleInPanesSerializable = "-1";
     this.consuTrend.Diagram = xyDiagram5;
     this.consuTrend.Location = new System.Drawing.Point(10, 41);
     this.consuTrend.Name = "consuTrend";
     sideBySideBarSeriesLabel13.LineVisible = true;
     series9.Label = sideBySideBarSeriesLabel13;
     series9.Name = "Series 1";
     sideBySideBarSeriesLabel14.LineVisible = true;
     series10.Label = sideBySideBarSeriesLabel14;
     series10.Name = "Series 2";
     this.consuTrend.SeriesSerializable = new DevExpress.XtraCharts.Series[] {
     series9,
     series10};
     sideBySideBarSeriesLabel15.LineVisible = true;
     this.consuTrend.SeriesTemplate.Label = sideBySideBarSeriesLabel15;
     this.consuTrend.Size = new System.Drawing.Size(955, 476);
     this.consuTrend.TabIndex = 3;
     //
     // tbStockExpiryStatus
     //
     this.tbStockExpiryStatus.Appearance.PageClient.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(221)))), ((int)(((byte)(231)))), ((int)(((byte)(253)))));
     this.tbStockExpiryStatus.Appearance.PageClient.Options.UseBackColor = true;
     this.tbStockExpiryStatus.Controls.Add(this.chartPie);
     this.tbStockExpiryStatus.Name = "tbStockExpiryStatus";
     this.tbStockExpiryStatus.Padding = new System.Windows.Forms.Padding(3);
     this.tbStockExpiryStatus.PageVisible = false;
     this.tbStockExpiryStatus.Size = new System.Drawing.Size(1040, 521);
     this.tbStockExpiryStatus.Text = "Stock Expiry Status";
     //
     // chartPie
     //
     this.chartPie.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(221)))), ((int)(((byte)(231)))), ((int)(((byte)(253)))));
     this.chartPie.BorderOptions.Visible = false;
     simpleDiagram3D1.RotationMatrixSerializable = "1;0;0;0;0;0.5;-0.866025403784439;0;0;0.866025403784439;0.5;0;0;0;0;1";
     this.chartPie.Diagram = simpleDiagram3D1;
     this.chartPie.Dock = System.Windows.Forms.DockStyle.Fill;
     this.chartPie.Location = new System.Drawing.Point(3, 3);
     this.chartPie.Name = "chartPie";
     this.chartPie.PaletteName = "Palette 2";
     this.chartPie.PaletteRepository.Add("Palette 1", new DevExpress.XtraCharts.Palette("Palette 1", DevExpress.XtraCharts.PaletteScaleMode.Repeat, new DevExpress.XtraCharts.PaletteEntry[] {
         new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(187)))), ((int)(((byte)(47))))), System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(187)))), ((int)(((byte)(47)))))),
         new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))), System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))))}));
     this.chartPie.PaletteRepository.Add("Palette 2", new DevExpress.XtraCharts.Palette("Palette 2", DevExpress.XtraCharts.PaletteScaleMode.Repeat, new DevExpress.XtraCharts.PaletteEntry[] {
         new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(151)))), ((int)(((byte)(73))))), System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(151)))), ((int)(((byte)(73)))))),
         new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(198)))), ((int)(((byte)(23)))), ((int)(((byte)(23))))), System.Drawing.Color.FromArgb(((int)(((byte)(198)))), ((int)(((byte)(23)))), ((int)(((byte)(23)))))),
         new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.FromArgb(((int)(((byte)(231)))), ((int)(((byte)(242)))), ((int)(((byte)(6))))), System.Drawing.Color.FromArgb(((int)(((byte)(231)))), ((int)(((byte)(242)))), ((int)(((byte)(6))))))}));
     pie3DSeriesLabel1.LineVisible = true;
     piePointOptions1.PointView = DevExpress.XtraCharts.PointView.SeriesName;
     piePointOptions1.ValueNumericOptions.Format = DevExpress.XtraCharts.NumericFormat.Percent;
     pie3DSeriesLabel1.PointOptions = piePointOptions1;
     series11.Label = pie3DSeriesLabel1;
     series11.Name = "Series 1";
     series11.View = pie3DSeriesView1;
     this.chartPie.SeriesSerializable = new DevExpress.XtraCharts.Series[] {
     series11};
     pie3DSeriesLabel2.LineVisible = true;
     this.chartPie.SeriesTemplate.Label = pie3DSeriesLabel2;
     this.chartPie.SeriesTemplate.View = pie3DSeriesView2;
     this.chartPie.Size = new System.Drawing.Size(1034, 515);
     this.chartPie.TabIndex = 21;
     //
     // tbLogisticsSummary
     //
     this.tbLogisticsSummary.Controls.Add(this.layoutControl1);
     this.tbLogisticsSummary.Name = "tbLogisticsSummary";
     this.tbLogisticsSummary.Padding = new System.Windows.Forms.Padding(3);
     this.tbLogisticsSummary.PageVisible = false;
     this.tbLogisticsSummary.Size = new System.Drawing.Size(1040, 521);
     this.tbLogisticsSummary.Text = "Logistics Summary";
     //
     // layoutControl1
     //
     this.layoutControl1.Controls.Add(this.lookUpEdit1);
     this.layoutControl1.Controls.Add(this.gridControl1);
     this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.layoutControl1.Location = new System.Drawing.Point(3, 3);
     this.layoutControl1.Name = "layoutControl1";
     this.layoutControl1.Root = this.layoutControlGroup1;
     this.layoutControl1.Size = new System.Drawing.Size(1034, 515);
     this.layoutControl1.TabIndex = 0;
     this.layoutControl1.Text = "layoutControl1";
     //
     // lookUpEdit1
     //
     this.lookUpEdit1.Location = new System.Drawing.Point(45, 12);
     this.lookUpEdit1.Name = "lookUpEdit1";
     this.lookUpEdit1.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
     new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
     this.lookUpEdit1.Size = new System.Drawing.Size(168, 20);
     this.lookUpEdit1.StyleController = this.layoutControl1;
     this.lookUpEdit1.TabIndex = 5;
     //
     // gridControl1
     //
     this.gridControl1.Location = new System.Drawing.Point(12, 52);
     this.gridControl1.MainView = this.gridView3;
     this.gridControl1.Name = "gridControl1";
     this.gridControl1.Size = new System.Drawing.Size(1010, 451);
     this.gridControl1.TabIndex = 4;
     this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
     this.gridView3});
     //
     // gridView3
     //
     this.gridView3.GridControl = this.gridControl1;
     this.gridView3.Name = "gridView3";
     this.gridView3.OptionsView.ShowGroupPanel = false;
     //
     // layoutControlGroup1
     //
     this.layoutControlGroup1.CustomizationFormText = "Root";
     this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
     this.layoutControlGroup1.GroupBordersVisible = false;
     this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
     this.layoutControlItem1,
     this.layoutControlItem2,
     this.emptySpaceItem1});
     this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0);
     this.layoutControlGroup1.Name = "Root";
     this.layoutControlGroup1.Size = new System.Drawing.Size(1034, 515);
     this.layoutControlGroup1.Text = "Root";
     this.layoutControlGroup1.TextVisible = false;
     //
     // layoutControlItem1
     //
     this.layoutControlItem1.Control = this.gridControl1;
     this.layoutControlItem1.CustomizationFormText = "Text";
     this.layoutControlItem1.Location = new System.Drawing.Point(0, 24);
     this.layoutControlItem1.Name = "layoutControlItem1";
     this.layoutControlItem1.Size = new System.Drawing.Size(1014, 471);
     this.layoutControlItem1.Text = "Text";
     this.layoutControlItem1.TextLocation = DevExpress.Utils.Locations.Top;
     this.layoutControlItem1.TextSize = new System.Drawing.Size(30, 13);
     //
     // layoutControlItem2
     //
     this.layoutControlItem2.Control = this.lookUpEdit1;
     this.layoutControlItem2.CustomizationFormText = "Month";
     this.layoutControlItem2.Location = new System.Drawing.Point(0, 0);
     this.layoutControlItem2.Name = "layoutControlItem2";
     this.layoutControlItem2.Size = new System.Drawing.Size(205, 24);
     this.layoutControlItem2.Text = "Month";
     this.layoutControlItem2.TextSize = new System.Drawing.Size(30, 13);
     //
     // emptySpaceItem1
     //
     this.emptySpaceItem1.AllowHotTrack = false;
     this.emptySpaceItem1.CustomizationFormText = "emptySpaceItem1";
     this.emptySpaceItem1.Location = new System.Drawing.Point(205, 0);
     this.emptySpaceItem1.Name = "emptySpaceItem1";
     this.emptySpaceItem1.Size = new System.Drawing.Size(809, 24);
     this.emptySpaceItem1.Text = "emptySpaceItem1";
     this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0);
     //
     // tbSOHLocation
     //
     this.tbSOHLocation.Controls.Add(this.gridLocations);
     this.tbSOHLocation.Name = "tbSOHLocation";
     this.tbSOHLocation.Padding = new System.Windows.Forms.Padding(3);
     this.tbSOHLocation.Size = new System.Drawing.Size(1040, 521);
     this.tbSOHLocation.Text = "SOH Locations";
     //
     // gridLocations
     //
     this.gridLocations.Dock = System.Windows.Forms.DockStyle.Fill;
     this.gridLocations.Location = new System.Drawing.Point(3, 3);
     this.gridLocations.MainView = this.gridView1;
     this.gridLocations.Name = "gridLocations";
     this.gridLocations.Size = new System.Drawing.Size(1034, 515);
     this.gridLocations.TabIndex = 0;
     this.gridLocations.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
     this.gridView1});
     //
     // gridView1
     //
     this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
     this.gridColumn1,
     this.gridColumn3,
     this.gridColumn5,
     this.gridColumn2,
     this.colPalletNumber,
     this.colPalletLocation,
     this.gridColumn4});
     this.gridView1.GridControl = this.gridLocations;
     this.gridView1.GroupCount = 1;
     this.gridView1.GroupSummary.AddRange(new DevExpress.XtraGrid.GridSummaryItem[] {
     new DevExpress.XtraGrid.GridGroupSummaryItem(DevExpress.Data.SummaryItemType.Sum, "Balance", null, "")});
     this.gridView1.Name = "gridView1";
     this.gridView1.OptionsBehavior.Editable = false;
     this.gridView1.OptionsBehavior.SummariesIgnoreNullValues = true;
     this.gridView1.OptionsSelection.EnableAppearanceFocusedCell = false;
     this.gridView1.OptionsView.ShowFooter = true;
     this.gridView1.SortInfo.AddRange(new DevExpress.XtraGrid.Columns.GridColumnSortInfo[] {
     new DevExpress.XtraGrid.Columns.GridColumnSortInfo(this.colPalletLocation, DevExpress.Data.ColumnSortOrder.Ascending)});
     //
     // gridColumn1
     //
     this.gridColumn1.Caption = "Receive Date";
     this.gridColumn1.FieldName = "EurDate";
     this.gridColumn1.Name = "gridColumn1";
     this.gridColumn1.OptionsColumn.AllowEdit = false;
     this.gridColumn1.Visible = true;
     this.gridColumn1.VisibleIndex = 0;
     this.gridColumn1.Width = 100;
     //
     // gridColumn3
     //
     this.gridColumn3.Caption = "Batch No";
     this.gridColumn3.FieldName = "BatchNo";
     this.gridColumn3.Name = "gridColumn3";
     this.gridColumn3.OptionsColumn.AllowEdit = false;
     this.gridColumn3.Visible = true;
     this.gridColumn3.VisibleIndex = 4;
     this.gridColumn3.Width = 113;
     //
     // gridColumn5
     //
     this.gridColumn5.Caption = "Expiry Date";
     this.gridColumn5.FieldName = "ExpiryDate";
     this.gridColumn5.Name = "gridColumn5";
     this.gridColumn5.OptionsColumn.AllowEdit = false;
     this.gridColumn5.Visible = true;
     this.gridColumn5.VisibleIndex = 1;
     this.gridColumn5.Width = 227;
     //
     // gridColumn2
     //
     this.gridColumn2.Caption = "Balance";
     this.gridColumn2.FieldName = "Balance";
     this.gridColumn2.Name = "gridColumn2";
     this.gridColumn2.OptionsColumn.AllowEdit = false;
     this.gridColumn2.Summary.AddRange(new DevExpress.XtraGrid.GridSummaryItem[] {
     new DevExpress.XtraGrid.GridColumnSummaryItem(DevExpress.Data.SummaryItemType.Sum)});
     this.gridColumn2.Visible = true;
     this.gridColumn2.VisibleIndex = 2;
     this.gridColumn2.Width = 184;
     //
     // colPalletNumber
     //
     this.colPalletNumber.Caption = "PalletNumber";
     this.colPalletNumber.FieldName = "PalletNo";
     this.colPalletNumber.Name = "colPalletNumber";
     this.colPalletNumber.Visible = true;
     this.colPalletNumber.VisibleIndex = 5;
     this.colPalletNumber.Width = 147;
     //
     // colPalletLocation
     //
     this.colPalletLocation.Caption = "Pallet Location";
     this.colPalletLocation.FieldName = "PalletLocation";
     this.colPalletLocation.Name = "colPalletLocation";
     this.colPalletLocation.OptionsColumn.AllowEdit = false;
     this.colPalletLocation.Visible = true;
     this.colPalletLocation.VisibleIndex = 6;
     this.colPalletLocation.Width = 182;
     //
     // gridColumn4
     //
     this.gridColumn4.Caption = "Manufacturer";
     this.gridColumn4.FieldName = "ManufacturerName";
     this.gridColumn4.Name = "gridColumn4";
     this.gridColumn4.OptionsColumn.AllowEdit = false;
     this.gridColumn4.Visible = true;
     this.gridColumn4.VisibleIndex = 3;
     this.gridColumn4.Width = 199;
     //
     // tbSOHPriceSummary
     //
     this.tbSOHPriceSummary.Controls.Add(this.gridSOHSummary);
     this.tbSOHPriceSummary.Name = "tbSOHPriceSummary";
     this.tbSOHPriceSummary.Size = new System.Drawing.Size(1040, 521);
     this.tbSOHPriceSummary.Text = "SOH Price Summary";
     //
     // gridSOHSummary
     //
     this.gridSOHSummary.Dock = System.Windows.Forms.DockStyle.Fill;
     this.gridSOHSummary.Location = new System.Drawing.Point(0, 0);
     this.gridSOHSummary.MainView = this.gridView4;
     this.gridSOHSummary.Name = "gridSOHSummary";
     this.gridSOHSummary.Size = new System.Drawing.Size(1040, 521);
     this.gridSOHSummary.TabIndex = 1;
     this.gridSOHSummary.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
     this.gridView4});
     //
     // gridView4
     //
     this.gridView4.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
     this.gridColumn14,
     this.gridColumn13,
     this.gridColumn6,
     this.gridColumn7,
     this.gridColumn8,
     this.gridColumn9,
     this.gridColumn10,
     this.gridColumn11,
     this.gridColumn12});
     this.gridView4.GridControl = this.gridSOHSummary;
     this.gridView4.GroupSummary.AddRange(new DevExpress.XtraGrid.GridSummaryItem[] {
     new DevExpress.XtraGrid.GridGroupSummaryItem(DevExpress.Data.SummaryItemType.Sum, "Balance", null, "")});
     this.gridView4.Name = "gridView4";
     this.gridView4.OptionsBehavior.Editable = false;
     this.gridView4.OptionsBehavior.SummariesIgnoreNullValues = true;
     this.gridView4.OptionsSelection.EnableAppearanceFocusedCell = false;
     this.gridView4.OptionsView.ShowFooter = true;
     //
     // gridColumn14
     //
     this.gridColumn14.Caption = "Unit Cost";
     this.gridColumn14.FieldName = "Cost";
     this.gridColumn14.Name = "gridColumn14";
     this.gridColumn14.Visible = true;
     this.gridColumn14.VisibleIndex = 4;
     this.gridColumn14.Width = 97;
     //
     // gridColumn13
     //
     this.gridColumn13.Caption = "Supplier";
     this.gridColumn13.FieldName = "Supplier";
     this.gridColumn13.Name = "gridColumn13";
     this.gridColumn13.Visible = true;
     this.gridColumn13.VisibleIndex = 2;
     this.gridColumn13.Width = 166;
     //
     // gridColumn6
     //
     this.gridColumn6.Caption = "Receive Date";
     this.gridColumn6.FieldName = "EurDate";
     this.gridColumn6.Name = "gridColumn6";
     this.gridColumn6.OptionsColumn.AllowEdit = false;
     this.gridColumn6.Visible = true;
     this.gridColumn6.VisibleIndex = 0;
     this.gridColumn6.Width = 90;
     //
     // gridColumn7
     //
     this.gridColumn7.Caption = "Batch No";
     this.gridColumn7.FieldName = "BatchNo";
     this.gridColumn7.Name = "gridColumn7";
     this.gridColumn7.OptionsColumn.AllowEdit = false;
     this.gridColumn7.Visible = true;
     this.gridColumn7.VisibleIndex = 6;
     this.gridColumn7.Width = 128;
     //
     // gridColumn8
     //
     this.gridColumn8.Caption = "Expiry Date";
     this.gridColumn8.FieldName = "ExpiryDate";
     this.gridColumn8.Name = "gridColumn8";
     this.gridColumn8.OptionsColumn.AllowEdit = false;
     this.gridColumn8.Visible = true;
     this.gridColumn8.VisibleIndex = 1;
     this.gridColumn8.Width = 161;
     //
     // gridColumn9
     //
     this.gridColumn9.Caption = "Balance";
     this.gridColumn9.FieldName = "Balance";
     this.gridColumn9.Name = "gridColumn9";
     this.gridColumn9.OptionsColumn.AllowEdit = false;
     this.gridColumn9.Summary.AddRange(new DevExpress.XtraGrid.GridSummaryItem[] {
     new DevExpress.XtraGrid.GridColumnSummaryItem(DevExpress.Data.SummaryItemType.Sum)});
     this.gridColumn9.Visible = true;
     this.gridColumn9.VisibleIndex = 3;
     this.gridColumn9.Width = 102;
     //
     // gridColumn10
     //
     this.gridColumn10.Caption = "PalletNumber";
     this.gridColumn10.FieldName = "PalletNo";
     this.gridColumn10.Name = "gridColumn10";
     this.gridColumn10.Visible = true;
     this.gridColumn10.VisibleIndex = 7;
     this.gridColumn10.Width = 106;
     //
     // gridColumn11
     //
     this.gridColumn11.Caption = "Pallet Location";
     this.gridColumn11.FieldName = "PalletLocation";
     this.gridColumn11.Name = "gridColumn11";
     this.gridColumn11.OptionsColumn.AllowEdit = false;
     this.gridColumn11.Visible = true;
     this.gridColumn11.VisibleIndex = 8;
     this.gridColumn11.Width = 157;
     //
     // gridColumn12
     //
     this.gridColumn12.Caption = "Manufacturer";
     this.gridColumn12.FieldName = "ManufacturerName";
     this.gridColumn12.Name = "gridColumn12";
     this.gridColumn12.OptionsColumn.AllowEdit = false;
     this.gridColumn12.Visible = true;
     this.gridColumn12.VisibleIndex = 5;
     this.gridColumn12.Width = 167;
     //
     // lblItemID
     //
     this.lblItemID.AutoSize = true;
     this.lblItemID.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblItemID.ForeColor = System.Drawing.SystemColors.AppWorkspace;
     this.lblItemID.Location = new System.Drawing.Point(12, 36);
     this.lblItemID.Name = "lblItemID";
     this.lblItemID.Size = new System.Drawing.Size(0, 18);
     this.lblItemID.TabIndex = 26;
     //
     // xtraTabPage1
     //
     this.xtraTabPage1.Name = "xtraTabPage1";
     this.xtraTabPage1.Size = new System.Drawing.Size(973, 520);
     this.xtraTabPage1.Text = "xtraTabPage1";
     //
     // dtDate
     //
     this.dtDate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.dtDate.CalendarFont = new System.Drawing.Font("Nyala", 10.75F);
     this.dtDate.CalendarForeColor = System.Drawing.Color.Black;
     this.dtDate.CustomFormat = "MM/dd/ yy";
     this.dtDate.DayOfWeekCharacters = 2;
     this.dtDate.ForeColor = System.Drawing.Color.Black;
     this.dtDate.Location = new System.Drawing.Point(748, 10);
     this.dtDate.Name = "dtDate";
     this.dtDate.PopUpFontSize = 9.75F;
     this.dtDate.Size = new System.Drawing.Size(114, 20);
     this.dtDate.TabIndex = 17;
     this.dtDate.Value = new System.DateTime(2008, 10, 21, 0, 0, 0, 0);
     this.dtDate.Visible = false;
     //
     // btnCancel
     //
     this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnCancel.Location = new System.Drawing.Point(962, 34);
     this.btnCancel.Name = "btnCancel";
     this.btnCancel.Size = new System.Drawing.Size(75, 23);
     this.btnCancel.TabIndex = 20;
     this.btnCancel.Text = "Close";
     this.btnCancel.Click += new System.EventHandler(this.BtnCancelClick);
     //
     // chartControl1
     //
     this.chartControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.chartControl1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(221)))), ((int)(((byte)(231)))), ((int)(((byte)(253)))));
     this.chartControl1.Location = new System.Drawing.Point(7, 25);
     this.chartControl1.Name = "chartControl1";
     this.chartControl1.PaletteRepository.Add("Palette 1", new DevExpress.XtraCharts.Palette("Palette 1", DevExpress.XtraCharts.PaletteScaleMode.Repeat, new DevExpress.XtraCharts.PaletteEntry[0]));
     this.chartControl1.PaletteRepository.Add("Palette 2", new DevExpress.XtraCharts.Palette("Palette 2", DevExpress.XtraCharts.PaletteScaleMode.Repeat, new DevExpress.XtraCharts.PaletteEntry[0]));
     this.chartControl1.SeriesSerializable = new DevExpress.XtraCharts.Series[0];
     sideBySideBarSeriesLabel16.LineVisible = true;
     this.chartControl1.SeriesTemplate.Label = sideBySideBarSeriesLabel16;
     this.chartControl1.Size = new System.Drawing.Size(974, 411);
     this.chartControl1.TabIndex = 2;
     //
     // printDialog1
     //
     this.printDialog1.UseEXDialog = true;
     //
     // toolTip1
     //
     this.toolTip1.AutoPopDelay = 5000;
     this.toolTip1.InitialDelay = 500;
     this.toolTip1.ReshowDelay = 0;
     this.toolTip1.ShowAlways = true;
     this.toolTip1.ToolTipTitle = "Item Name";
     //
     // txtitmName
     //
     this.txtitmName.AutoSize = true;
     this.txtitmName.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txtitmName.Location = new System.Drawing.Point(81, 12);
     this.txtitmName.Name = "txtitmName";
     this.txtitmName.Size = new System.Drawing.Size(0, 18);
     this.txtitmName.TabIndex = 100;
     //
     // label38
     //
     this.label38.AutoSize = true;
     this.label38.Location = new System.Drawing.Point(71, 40);
     this.label38.Name = "label38";
     this.label38.Size = new System.Drawing.Size(92, 13);
     this.label38.TabIndex = 101;
     this.label38.Text = "Unit of Issue : ";
     //
     // lblBUnit
     //
     this.lblBUnit.AutoSize = true;
     this.lblBUnit.Location = new System.Drawing.Point(168, 40);
     this.lblBUnit.Name = "lblBUnit";
     this.lblBUnit.Size = new System.Drawing.Size(0, 13);
     this.lblBUnit.TabIndex = 101;
     //
     // xpButton1
     //
     this.xpButton1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.xpButton1.Image = ((System.Drawing.Image)(resources.GetObject("xpButton1.Image")));
     this.xpButton1.Location = new System.Drawing.Point(893, 38);
     this.xpButton1.Name = "xpButton1";
     this.xpButton1.Size = new System.Drawing.Size(75, 23);
     this.xpButton1.TabIndex = 15;
     this.xpButton1.Text = "Print";
     this.xpButton1.Click += new System.EventHandler(this.BtnPrintClicked);
     //
     // btnExport
     //
     this.btnExport.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnExport.Location = new System.Drawing.Point(770, 38);
     this.btnExport.Name = "btnExport";
     this.btnExport.Size = new System.Drawing.Size(106, 23);
     this.btnExport.TabIndex = 103;
     this.btnExport.Text = "Export Bin Card";
     this.btnExport.Click += new System.EventHandler(this.BtnExportClick);
     //
     // lblItemSerialNumber
     //
     this.lblItemSerialNumber.Appearance.Font = new System.Drawing.Font("Tahoma", 10F, System.Drawing.FontStyle.Bold);
     this.lblItemSerialNumber.Location = new System.Drawing.Point(287, 5);
     this.lblItemSerialNumber.Name = "lblItemSerialNumber";
     this.lblItemSerialNumber.Size = new System.Drawing.Size(132, 16);
     this.lblItemSerialNumber.TabIndex = 104;
     this.lblItemSerialNumber.Text = "Item Serial Number: ";
     //
     // ItemDetailReport
     //
     this.Appearance.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Appearance.Options.UseFont = true;
     this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(1049, 614);
     this.Controls.Add(this.lblItemSerialNumber);
     this.Controls.Add(this.lblItemID);
     this.Controls.Add(this.lblBUnit);
     this.Controls.Add(this.label38);
     this.Controls.Add(this.txtitmName);
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.dtDate);
     this.Controls.Add(this.tabControl1);
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "ItemDetailReport";
     this.ShowInTaskbar = false;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "Item Detail Reports";
     this.Load += new System.EventHandler(this.BinCardTransactionLoad);
     ((System.ComponentModel.ISupportInitialize)(this.txtItemName.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(xyDiagram1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(sideBySideBarSeriesLabel1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(series1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(sideBySideBarSeriesLabel2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(series2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(sideBySideBarSeriesLabel3)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.chartBar)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.tabControl1)).EndInit();
     this.tabControl1.ResumeLayout(false);
     this.tbSummary.ResumeLayout(false);
     this.tbSummary.PerformLayout();
     this.tbBinCard.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.layoutControl2)).EndInit();
     this.layoutControl2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.lkBinCardWarehouse.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem5)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit();
     this.tbClassicBinCard.ResumeLayout(false);
     this.tbClassicBinCard.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.lkWarehouses.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.lkYear.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.lkProgramFilter.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.transactionGrid)).EndInit();
     this.contextMenuStrip1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.gridViewBinCard)).EndInit();
     this.tbSOHTrend.ResumeLayout(false);
     this.tbSOHTrend.PerformLayout();
     this.tbAMCTrend.ResumeLayout(false);
     this.tbAMCTrend.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(xyDiagram2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(sideBySideBarSeriesLabel4)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(series3)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(sideBySideBarSeriesLabel5)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(series4)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(sideBySideBarSeriesLabel6)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.chartAmc)).EndInit();
     this.tbMOSTrend.ResumeLayout(false);
     this.tbMOSTrend.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(xyDiagram3)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(sideBySideBarSeriesLabel7)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(series5)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(sideBySideBarSeriesLabel8)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(series6)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(sideBySideBarSeriesLabel9)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.chartMOS)).EndInit();
     this.tbActivityTrend.ResumeLayout(false);
     this.tbActivityTrend.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(xyDiagram4)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(sideBySideBarSeriesLabel10)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(series7)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(sideBySideBarSeriesLabel11)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(series8)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(sideBySideBarSeriesLabel12)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.chartComp)).EndInit();
     this.tbSSTrend.ResumeLayout(false);
     this.tbSSTrend.PerformLayout();
     this.tableLayoutPanel1.ResumeLayout(false);
     this.tableLayoutPanel1.PerformLayout();
     this.tbTransactions.ResumeLayout(false);
     this.tbTransactions.PerformLayout();
     this.tbConsumptionTrend.ResumeLayout(false);
     this.tbConsumptionTrend.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(xyDiagram5)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(sideBySideBarSeriesLabel13)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(series9)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(sideBySideBarSeriesLabel14)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(series10)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(sideBySideBarSeriesLabel15)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.consuTrend)).EndInit();
     this.tbStockExpiryStatus.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(simpleDiagram3D1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(pie3DSeriesLabel1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(pie3DSeriesView1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(series11)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(pie3DSeriesLabel2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(pie3DSeriesView2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.chartPie)).EndInit();
     this.tbLogisticsSummary.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
     this.layoutControl1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.lookUpEdit1.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridView3)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit();
     this.tbSOHLocation.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.gridLocations)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit();
     this.tbSOHPriceSummary.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.gridSOHSummary)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridView4)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(sideBySideBarSeriesLabel16)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.chartControl1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
		private void addDetailTabPage(
			ILanguageColumnFilter filter,
			int imageIndex,
			string name,
			string languageCode)
		{
			var tabPage =
				new XtraTabPage
					{
						Text = name,
						ImageIndex = imageIndex,
					};
			tabControl1.TabPages.Add(tabPage);

			if (!string.IsNullOrEmpty(languageCode))
			{
				if (filter != null && !filter.WantDisplayLanguageColumnInGrid(languageCode))
				{
					tabPage.PageVisible = false;
				}
			}

			var textBox = new MemoEdit();
			textBox.TextChanged += textBox_TextChanged;
			textBox.KeyDown += textBox_KeyDown;
			textBox.Name = @"ColumnText";
			tabPage.Controls.Add(textBox);

			if (!StringExtensionMethods.IsNullOrWhiteSpace(languageCode))
			{
				var isRtl = CultureHelper.CreateCultureErrorTolerant(languageCode).TextInfo.IsRightToLeft;
				if (isRtl)
				{
					textBox.RightToLeft = RightToLeft.Yes;
				}
			}

			textBox.Properties.AcceptsReturn = true;
			textBox.Properties.AcceptsTab = true;
			textBox.AllowDrop = true;
			textBox.Dock = DockStyle.Fill;
			textBox.Properties.HideSelection = false;
			textBox.Properties.ScrollBars = ScrollBars.Vertical;
			textBox.TabIndex = 0;

			// --
			// Spell checker.

			var project = MainForm.Current.ProjectFilesControl.Project ?? Project.Empty;

			if (project != null && project.UseSpellChecker)
			{
				var culture =
					new LanguageCodeDetection(project).DetectCultureFromFileName(
					GridEditableData.ParentSettings,
					name);

				var spellChecker = CultureHelper.CreateSpellChecker(culture);
				if (spellChecker != null)
				{
					spellChecker.ParentContainer = textBox;
					spellChecker.SetShowSpellCheckMenu(textBox, true);
				}
			}
		}
        private void ChangeClickBrick(object sender, EventArgs e)
        {
            Brick brick = sender as Brick;

            if(brick.Value.Equals("Main")) {
                PSTab.SelectedTabPageIndex = 0;
                return;
            }

            int i = brick.Value.Equals(0) ? 1 : 0;
            brick.Value = i;
            ((ImageBrick)brick).Image = imageList1.Images[i];
            pc.InvalidateBrick(brick);
            string tpName = "Orders[" + brick.ID + "]";

            if(i == 1) {
                XtraTabPage tp = new XtraTabPage();
                tp.Text = tpName;
                tp.Tag = brick.ID;
                PSTab.TabPages.Add(tp);
                PrintingSystem ps = new PrintingSystem();
                ps.SetCommandVisibility(PrintingSystemCommand.ClosePreview, CommandVisibility.None);
                MyPrintControl pcNew = new MyPrintControl();
                pcNew.ChangeClickBrick += new EventHandler(ChangeClickBrick);
                pcNew.Dock = DockStyle.Fill;
                pcNew.PrintingSystem = ps;
                tp.Controls.Add((System.Windows.Forms.Control)pcNew);

                PSTab.SelectedTabPageIndex = FindTabPageIndex(tpName, PSTab);
                //this.Focus();
            } else {
                PSTab.TabPages.RemoveAt(FindTabPageIndex(tpName, PSTab));
                PSTab.SelectedTabPageIndex = 0;
            }
        }
Beispiel #58
0
 public ucPart(XtraTabControl _x1, XtraTabPage _p1)
 {
     InitializeComponent();
     p1 = _p1;
     x1 = _x1;
 }
Beispiel #59
0
        public Control AddControl(Control ctrlTarget, enumDockPosition dockPosition)
        {
            Control ctrlNew = null;
            switch (dockPosition)
            {
                case enumDockPosition.Center:
                    XtraTabPage tpNew = new XtraTabPage();
                    this.tabCenter.TabPages.Add(tpNew);
                    ctrlNew = tpNew;
                    break;

                case enumDockPosition.Left:
                    ctrlNew =this.dockManager1.AddPanel(DockingStyle.Left);// this.dockPanelLeft.AddPanel();
                    break;

                case enumDockPosition.Right:
                    ctrlNew =this.dockManager1.AddPanel(DockingStyle.Right);// this.dockPanelRight.AddPanel();
                    break;

                case enumDockPosition.Top:
                    ctrlNew = this.dockManager1.AddPanel(DockingStyle.Top);
                    break;

                case enumDockPosition.Bottom:
                    ctrlNew = this.dockManager1.AddPanel(DockingStyle.Bottom);
                    break;

                default:
                    ctrlNew= this.dockManager1.AddPanel(DockingStyle.Float);
                    break;
            }

            if (ctrlTarget is System.ComponentModel.ISupportInitialize)
                ((System.ComponentModel.ISupportInitialize)(ctrlTarget)).BeginInit();

            ctrlNew.Controls.Add(ctrlTarget);
            ctrlTarget.Dock = System.Windows.Forms.DockStyle.Fill;

            if (ctrlTarget is System.ComponentModel.ISupportInitialize)
                ((System.ComponentModel.ISupportInitialize)(ctrlTarget)).EndInit();

            return ctrlNew;
        }
Beispiel #60
0
        public void CreateQueryResultGrid(DataTable dt,LayerInfo layerInfo)
        {
            var gc = new GridControl();
            var gv = new GridView();
            gc.Dock = DockStyle.Fill;
            gc.MainView = gv;
            gv.OptionsView.ShowGroupPanel = false;
            gv.OptionsBehavior.Editable = false;
            gc.ViewCollection.Add(gv);
            gv.GridControl = gc;
            gc.DataSource = dt;
            gv.RowClick += new RowClickEventHandler(gv_RowClick);
            gv.DoubleClick += new EventHandler(gv_DoubleClick);
            gv.CustomDrawRowIndicator += new RowIndicatorCustomDrawEventHandler(gv_CustomDrawRowIndicator);
            gv.IndicatorWidth = 50;
            gv.Tag = layerInfo;

            var tab = new XtraTabPage() { Text = layerInfo.LayerCaption };
            tab.Controls.Add(gc);
            xtraTabCtl_QueryResult.TabPages.Add(tab);
        }