Beispiel #1
0
        private void radButtonElement9_Click(object sender, EventArgs e)
        {
            this.rdv = new RDV();
            Telerik.WinControls.UI.Docking.DocumentWindow docWindow = new Telerik.WinControls.UI.Docking.DocumentWindow("Ajouter RDVs à une date");
            rdv.Height = docWindow.Height = this.Height;
            rdv.Width  = docWindow.Width = this.Width;
            docWindow.Controls.Add(rdv);
            this.radDock1.AddDocument(docWindow);

            this.radDock1.ActiveWindow = docWindow;
            docWindow.CloseAction      = DockWindowCloseAction.Close;
        }
Beispiel #2
0
        private void radButtonElement14_Click(object sender, EventArgs e)
        {
            this.pers = new Personnel();
            Telerik.WinControls.UI.Docking.DocumentWindow docWindow = new Telerik.WinControls.UI.Docking.DocumentWindow("Ajouter Personnel");
            pers.Height = docWindow.Height = this.Height;
            pers.Width  = docWindow.Width = this.Width;
            docWindow.Controls.Add(pers);
            this.radDock1.AddDocument(docWindow);

            this.radDock1.ActiveWindow = docWindow;
            docWindow.CloseAction      = DockWindowCloseAction.Close;
        }
Beispiel #3
0
        private void radButtonElement7_Click(object sender, EventArgs e)
        {
            med = new Medecin();
            Telerik.WinControls.UI.Docking.DocumentWindow docWindow = new Telerik.WinControls.UI.Docking.DocumentWindow("Ajouter Médecin");
            med.Height = docWindow.Height = this.Height;
            med.Width  = docWindow.Width = this.Width;
            docWindow.Controls.Add(med);
            this.radDock1.AddDocument(docWindow);

            this.radDock1.ActiveWindow = docWindow;
            docWindow.CloseAction      = DockWindowCloseAction.Close;
        }
Beispiel #4
0
        private void CreateVisualStyleBuilderMocks()
        {
            this.settings             = new QuickNavigatorSettings();
            this.settings.ShowPreview = false;
            this.dockWindows          = new SortedList <string, DockWindow>(5);

            //add 5 tool windows
            for (int i = 1; i < 6; i++)
            {
                ToolWindow tool = new ToolWindow("Tool Window " + i);
                this.dockWindows.Add(tool.Text, tool);
            }

            //add 5 document windows
            for (int i = 1; i < 6; i++)
            {
                DocumentWindow doc = new DocumentWindow("Document Window " + i);
                this.dockWindows.Add(doc.Text, doc);
            }

            this.activeWindow = this.dockWindows.Values[0];
        }
Beispiel #5
0
        private void btnEdit_ItemClick(object sender, ItemClickEventArgs e)
        {
            if (DGvTransView.FocusedRowHandle < 0)
            {
                return;
            }
            if (BsfGlobal.FindPermission("Tenant-Edit") == false)
            {
                MessageBox.Show("You don't have Rights to TenantRegister-Modify", "Information", MessageBoxButtons.OK, MessageBoxIcon.Stop);
                return;
            }
            // bar1.Visible = false;
            // if (BsfGlobal.g_bWorkFlowDialog == true) return;
            if (DGvTransView.FocusedRowHandle >= 0)
            {
                int PBRegId = Convert.ToInt32(DGvTransView.GetFocusedRowCellValue("TenantId").ToString());
                //frmTenantEntry frmProg = new frmTenantEntry();// { dtComp = dvData.ToTable(), TopLevel = false, FormBorderStyle = System.Windows.Forms.FormBorderStyle.None, Dock = DockStyle.Fill };

                string Approve = CommFun.IsNullCheck(DGvTransView.GetRowCellValue(DGvTransView.FocusedRowHandle, "Approve"), CommFun.datatypes.vartypestring).ToString();
                if (Approve != "Partial" && Approve != "Yes")
                {
                    string sUserName = BsfGlobal.CheckEntryUsed("Tenant-Edit", PBRegId, BsfGlobal.g_sCRMDBName);
                    if (sUserName != "")
                    {
                        string sMsg = "The Entry is already Used by " + sUserName;
                        sMsg = sMsg + ", Do not Edit";
                        MessageBox.Show(sMsg);
                        return;
                    }
                }

                frmTenantEntry frmProg = new frmTenantEntry()
                {
                    TopLevel = false, FormBorderStyle = System.Windows.Forms.FormBorderStyle.None, Dock = DockStyle.Fill
                };

                if (BsfGlobal.g_bWorkFlow == true)
                {
                    m_oGridMasterView = DGvTransView;
                    m_oGridMasterView.FocusedRowHandle = DGvTransView.FocusedRowHandle;
                    BsfGlobal.g_bTrans = true;
                    m_oDW = (Telerik.WinControls.UI.Docking.DocumentWindow)BsfGlobal.g_oDock.ActiveWindow;
                    m_oDW.Hide();
                    BsfGlobal.g_bTrans = false;
                    Cursor.Current     = Cursors.WaitCursor;
                    PanelControl oPanel = new PanelControl();
                    oPanel = BsfGlobal.GetPanel(frmProg, "Tenant Entry");
                    if ((oPanel == null))
                    {
                        return;
                    }
                    oPanel.Controls.Clear();
                    oPanel.Controls.Add(frmProg);
                    frmProg.Execute(PBRegId);
                    oPanel.Visible = true;
                    Cursor.Current = Cursors.Default;
                }
                else
                {
                    PBRegId = Convert.ToInt32(DGvTransView.GetRowCellValue(DGvTransView.FocusedRowHandle, "TenantId"));
                    CommFun.DW1.Hide();
                    frmProg          = new frmTenantEntry();
                    CommFun.DW2.Text = "Tenant Entry";
                    frmProg.TopLevel = false;
                    CommFun.RP2.Controls.Clear();
                    frmProg.FormBorderStyle = FormBorderStyle.None;
                    frmProg.Dock            = DockStyle.Fill;
                    CommFun.RP2.Controls.Add(frmProg);
                    frmProg.Execute(PBRegId);
                    CommFun.DW2.Show();
                }

                //if (BsfGlobal.g_bWorkFlow == true)
                //{
                //    m_oGridMasterView = DGvTransView;
                //    m_oGridMasterView.FocusedRowHandle = DGvTransView.FocusedRowHandle;
                //    BsfGlobal.g_bTrans = true;
                //    m_oDW = (DocumentWindow)BsfGlobal.g_oDock.ActiveWindow;
                //    m_oDW.Hide();
                //    BsfGlobal.g_bTrans = false;
                //    Cursor.Current = Cursors.WaitCursor;
                //    PanelControl oPanel = new PanelControl();
                //    oPanel = BsfGlobal.GetPanel(frmProg, "Tenant Entry");
                //    if ((oPanel == null))
                //        return;
                //    oPanel.Controls.Clear();
                //    oPanel.Controls.Add(frmProg);
                //    frmProg.Execute(PBRegId);
                //    oPanel.Visible = true;
                //    Cursor.Current = Cursors.Default;
                //}
                //else
                //{
                //    Radpanel.Controls.Clear();
                //    frmProg.Radpanel = Radpanel;
                //    Radpanel.Controls.Add(frmProg);
                //    frmProg.Execute(PBRegId);
                //}

                //if (BsfGlobal.g_bWorkFlow == true)
                //{
                //    if (frmWhere == "CallSheetFinalize")
                //    {
                //        frmProg.Execute(PBRegId);
                //        frmProg.Show();
                //    }
                //    else
                //    {
                //        if (BsfGlobal.g_bWorkFlow == true)
                //        {
                //            BsfGlobal.g_bTrans = true;
                //            m_oDW = (Telerik.WinControls.UI.Docking.DocumentWindow)BsfGlobal.g_oDock.ActiveWindow;
                //            m_oDW.Hide();
                //            BsfGlobal.g_bTrans = false;
                //            Cursor.Current = Cursors.WaitCursor;
                //            PanelControl oPanel = new PanelControl();
                //            oPanel = BsfGlobal.GetPanel(frmProg, "Tenant Entry");
                //            if ((oPanel == null))
                //                return;
                //            oPanel.Controls.Clear();
                //            oPanel.Controls.Add(frmProg);
                //            frmProg.Execute(PBRegId);
                //            oPanel.Visible = true;
                //            Cursor.Current = Cursors.Default;
                //        }
                //        else
                //        {
                //            Cursor.Current = Cursors.WaitCursor;
                //            panelControl1.Controls.Clear();
                //            panelControl1.Controls.Add(frmProg);
                //            frmProg.Execute(PBRegId);
                //            Cursor.Current = Cursors.Default;
                //        }
                //    }
                //}
                //else
                //{
                //    if (frmWhere == "CallSheetFinalize")
                //    {
                //        frmProg.TopLevel = false;
                //        frmProg.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
                //        frmProg.Dock = DockStyle.Fill;
                //       // frmProg.m_iTenantId = Convert.ToInt32(DGvTransView.GetFocusedRowCellValue("TenantId"));
                //        frmProg.Show();

                //    }
                //    else
                //    {
                //        frmProg.Radpanel = Radpanel;
                //        Radpanel.Controls.Clear();
                //        Radpanel.Controls.Add(frmProg);
                //        frmProg.Execute(PBRegId);
                //    }

                //}
            }
        }