Exemplo n.º 1
0
        private void opsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var view = afbGridView;

            if (!view.IsDataRow(view.FocusedRowHandle))
            {
                return;
            }

            if (view.GetFocusedRowCellDisplayText(colOPHM) == "M")
            {
                Ops.opMasterXUC frm = new Ops.opMasterXUC();
                frm.qsString = string.Format("OPMid = {0}", view.GetFocusedRowCellValue(colOPID));
                frm.Show();

                var panel = dockManager.AddPanel(DevExpress.XtraBars.Docking.DockingStyle.Float);
                panel.FloatLocation = new Point(100, 100);
                panel.FloatSize     = new Size(600, 300);
                panel.Name          = "Ops";
                panel.Text          = "Ops:" + view.GetFocusedRowCellDisplayText(colOPID);

                frm.Dock = DockStyle.Fill;
                panel.Controls.Add(frm);
            }

            else if (afbGridView.GetFocusedRowCellDisplayText(colOPHM) == "H")
            {
                Ops.opHouseXUC frm = new Ops.opHouseXUC();
                frm.qsString = string.Format("OPHid = {0}", view.GetFocusedRowCellValue(colOPID));
                frm.Show();

                var panel = dockManager.AddPanel(DevExpress.XtraBars.Docking.DockingStyle.Float);
                panel.FloatLocation = new Point(100, 100);
                panel.FloatSize     = new Size(600, 300);
                panel.Name          = "Ops";
                panel.Text          = "Ops:" + view.GetFocusedRowCellDisplayText(colOPID);

                frm.Dock = DockStyle.Fill;
                panel.Controls.Add(frm);
            }
        }
Exemplo n.º 2
0
        private void mastersToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (!Program.MF.EntryCheck("Ops.opMasterXUC", false))
            {
                return;
            }

            Ops.opMasterXUC frm = new Ops.opMasterXUC();
            frm.qsString = string.Format("{0} in (ShpID,CneID,CrrID,CraID)", frtGridView.GetFocusedRowCellValue(colFRTID));
            frm.Show();

            var panel = dockManager.AddPanel(DevExpress.XtraBars.Docking.DockingStyle.Float);

            panel.FloatLocation = new Point(100, 100);
            panel.FloatSize     = new Size(600, 300);
            panel.Name          = "Master";
            panel.Text          = "Masters of " + frtGridView.GetFocusedRowCellDisplayText(colAD);

            frm.Dock = DockStyle.Fill;
            panel.Controls.Add(frm);
        }
Exemplo n.º 3
0
        private void goOps(GridView view)
        {
            if (!view.IsDataRow(view.FocusedRowHandle))
            {
                return;
            }

            if (view.GetFocusedRowCellDisplayText("OPHM") == "M")
            {
                Ops.opMasterXUC frm = new Ops.opMasterXUC();
                frm.qsString = string.Format("OPMid = {0}", view.GetFocusedRowCellValue("OPID"));
                frm.Show();

                var panel = dockManager.AddPanel(DevExpress.XtraBars.Docking.DockingStyle.Float);
                panel.FloatLocation = new Point(100, 100);
                panel.FloatSize     = new Size(600, 300);
                panel.Name          = "Ops";
                panel.Text          = "Ops:" + view.GetFocusedRowCellDisplayText("OPID");

                frm.Dock = DockStyle.Fill;
                panel.Controls.Add(frm);
            }

            else if (view.GetFocusedRowCellDisplayText("OPHM") == "H")
            {
                Ops.opHouseXUC frm = new Ops.opHouseXUC();
                frm.qsString = string.Format("OPHid = {0}", view.GetFocusedRowCellValue("OPID"));
                frm.Show();

                var panel = dockManager.AddPanel(DevExpress.XtraBars.Docking.DockingStyle.Float);
                panel.FloatLocation = new Point(100, 100);
                panel.FloatSize     = new Size(600, 300);
                panel.Name          = "Ops";
                panel.Text          = "Ops:" + view.GetFocusedRowCellDisplayText("OPID");

                frm.Dock = DockStyle.Fill;
                panel.Controls.Add(frm);
            }
        }
Exemplo n.º 4
0
        private void refKaydaGitToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string tbl   = jrnGridView.GetFocusedRowCellDisplayText(colREFTBL);
            string tblPK = jrnGridView.GetFocusedRowCellDisplayText(colREFID);

            if (string.IsNullOrEmpty(tbl) || string.IsNullOrEmpty(tblPK))
            {
                return;
            }

            if (tbl == "OPH")
            {
                Ops.opHouseXUC frm = new Ops.opHouseXUC();
                frm.qsString = string.Format("OPHID = {0}", jrnGridView.GetFocusedRowCellValue(colREFID));
                //frm.Show();

                var panel = dockManager.AddPanel(DevExpress.XtraBars.Docking.DockingStyle.Float);
                panel.FloatLocation = new Point(100, 100);
                panel.FloatSize     = new Size(600, 300);
                panel.Name          = "House";
                panel.Text          = "House of Jurnal " + jrnGridView.GetFocusedRowCellDisplayText(colJRNID);

                frm.Dock = DockStyle.Fill;
                panel.Controls.Add(frm);
            }
            if (tbl == "OPM")
            {
                var aa = tbl;

                Ops.opMasterXUC frm = new Ops.opMasterXUC();
                frm.qsString = string.Format("OPMID = {0}", jrnGridView.GetFocusedRowCellValue(colREFID));
                frm.Show();

                var panel = dockManager.AddPanel(DevExpress.XtraBars.Docking.DockingStyle.Float);
                panel.FloatLocation = new Point(100, 100);
                panel.FloatSize     = new Size(600, 300);
                panel.Name          = "Master";
                panel.Text          = "Master of Jurnal " + jrnGridView.GetFocusedRowCellDisplayText(colJRNID);

                frm.Dock = DockStyle.Fill;
                panel.Controls.Add(frm);
            }
            if (tbl == "FRT")
            {
                Firma.frtXUC frm = new Firma.frtXUC();
                frm.qsString = string.Format("FRTID = {0}", jrnGridView.GetFocusedRowCellValue(colREFID));

                var panel = dockManager.AddPanel(DevExpress.XtraBars.Docking.DockingStyle.Float);
                panel.FloatLocation = new Point(100, 100);
                panel.FloatSize     = new Size(600, 300);
                panel.Name          = "Firma";
                panel.Text          = "Firma of Jurnal " + jrnGridView.GetFocusedRowCellDisplayText(colJRNID);

                frm.Dock = DockStyle.Fill;
                panel.Controls.Add(frm);
                frm.Show();
            }
            if (tbl == "AFB")
            {
                Account.FaturaXF frm = new Account.FaturaXF();
                frm.AFBid = (int)jrnGridView.GetFocusedRowCellValue(colREFID);

                frm.TopLevel = false;

                var panel = dockManager.AddPanel(DevExpress.XtraBars.Docking.DockingStyle.Float);
                panel.FloatLocation = new Point(100, 100);
                panel.FloatSize     = new Size(600, 300);
                panel.Name          = "Fatura";
                panel.Text          = "Fatura of Jurnal " + jrnGridView.GetFocusedRowCellDisplayText(colJRNID);

                frm.Dock = DockStyle.Fill;
                panel.Controls.Add(frm);
                //frm.LoadData();
                frm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
                frm.Show();
            }
        }