Exemple #1
0
        public override bool PopUp(FLOMgr mgr, FormFLO f)
        {
            f = new FormFLOCal(CheckLockType());

            if (mgr == null)
            {
                return(false);
            }

            f.SetAttr(this);
            DialogResult r = f.ShowDialog();

            if (r == DialogResult.OK)
            {
                if (mgr.Flolist.CheckObjNameUnique(f.GetObjName(), this))               // objname 유일성 테스트
                {
                    return(false);
                }

                if (f.CheckFormLogic())
                {
                    return(false);
                }

                f.GetAttr(this);

                Oldname      = Objname;
                Objname      = f.GetObjName();
                this.Disname = f.GetDisName();

                UpdateCon();

                mgr.LastCalType = this.cal_caltype;

                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemple #2
0
        public FLOB2C(FLOMgr mgr, FLOObj s, FLOObj e, FormFLO f)
        {
            Objtype = OBJTYPE.B2C;
            Init(mgr.Flolist.GetObjSeq(this.Objtype));

            this.Uplist.Clear();
            this.Dnlist.Clear();

            this.Uplist.Insert(0, s);
            this.Dnlist.Insert(0, e);

            if (CheckFLOLogic(this.UPlist(0), this.DNlist(0)))
            {
                if (PopUp(mgr, new FormFLO()))
                {
                    this.Drwobj = new DRWCon(mgr, this);
                    this.UPlist(0).Dnlist.Add(this);
                    this.DNlist(0).Uplist.Add(this);
                }
            }
        }
Exemple #3
0
        public FLOO2B(FLOMgr mgr, FLOObj s, FLOObj e, FormFLO f)
        {
            Objtype = OBJTYPE.O2B;
            Init(mgr.Flolist.GetObjSeq(this.Objtype));

            this.Ltlist.Clear();
            this.Rtlist.Clear();

            this.Ltlist.Insert(0, s);
            this.Rtlist.Insert(0, e);

            if (CheckFLOLogic(this.LTlist(0), this.RTlist(0)))
            {
                if (PopUp(mgr, new FormFLO()))
                {
                    this.Drwobj = new DRWCon(mgr, this);

                    this.LTlist(0).Rtlist.Add(this);
                    this.RTlist(0).Ltlist.Add(this);
                }
            }
        }
Exemple #4
0
        public override bool PopUp(FLOMgr mgr, FormFLO f)
        {
            f = new FormFLOB2O(CheckLockType(), b2o_altbufs);

            if (mgr == null)
            {
                return(false);
            }

            f.SetAttr(this);
            DialogResult r = f.ShowDialog();

            if (r == DialogResult.OK)
            {
                if (mgr.Flolist.CheckObjNameUnique(f.GetObjName(), this))               // objname 유일성 테스트
                {
                    return(false);
                }

                if (f.CheckFormLogic())
                {
                    return(false);
                }

                f.GetAttr(this);

                this.Oldname = Objname;
                this.Objname = f.GetObjName();
                this.Disname = f.GetDisName();

                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemple #5
0
        private void PopUpMulti(DrawArea drawArea, MouseEventArgs e)
        {
            FormFLO f = new FormFLO();

            switch (this.Flolist.GetSelectedObjType())
            {
            case FLOObj.OBJTYPE.Buf:
                f = new FormFLOBuf(99);
                break;

            case FLOObj.OBJTYPE.Cal:
                f = new FormFLOCal(99);
                break;

            case FLOObj.OBJTYPE.Res:
                f = new FormFLORes(99);
                break;

            case FLOObj.OBJTYPE.Dmd:
                f = new FormFLODmd(99);
                break;

            case FLOObj.OBJTYPE.Ope:
                f = new FormFLOOpe(99);
                break;

            case FLOObj.OBJTYPE.B2O:
                f = new FormFLOB2O(99, new ArrayList());
                break;

            case FLOObj.OBJTYPE.O2B:
                f = new FormFLOO2B(99);
                break;

            case FLOObj.OBJTYPE.R2O:
                f = new FormFLOR2O(99, new ArrayList());
                break;

            default:
                return;
            }

            if (this.Flolist.GetSelectedObj().Objtype == FLOObj.OBJTYPE.Buf)
            {
                foreach (FLOObj o in Flolist.GetSelectedObjList())
                {
                    foreach (FLOObj c in o.Rtlist)
                    {
                        if (c.Objtype == FLOObj.OBJTYPE.B2D)
                        {
                            f.LockedForm(98);
                        }
                    }
                }
            }

            if (this.Flolist.GetSelectedObj().Objtype == FLOObj.OBJTYPE.Cal)
            {
                if (Flolist.GetSelectedCalObjConned())
                {
                    f.LockedForm(98);
                }
            }

            if (this.Flolist.GetSelectedObj().Objtype == FLOObj.OBJTYPE.B2O)
            {
                if (Flolist.GetSelectedBomObjTypeMatch())
                {
                    f.LockedForm(98);
                }
            }

            if (this.Flolist.GetSelectedObj().Objtype == FLOObj.OBJTYPE.O2B)
            {
                if (Flolist.GetSelectedOpeObjTypeMatch() == FLOObj.OPETYPE.AltRouting)
                {
                    f.LockedForm(97);
                }
                else if (Flolist.GetSelectedOpeObjTypeMatch() == FLOObj.OPETYPE.CoByProd)
                {
                    f.LockedForm(98);
                }
                else
                {
                    f.LockedForm(99);
                }
            }

            foreach (FLOObj o in Flolist.GetSelectedObjList())
            {
                f.SetAttrMulti(o);
            }

            DialogResult r = f.ShowDialog();

            if (r == DialogResult.OK)
            {
                foreach (FLOObj o in Flolist.GetSelectedObjList())
                {
                    if (!Flolist.CheckObjNameUnique(f.GetObjName(o), o))
                    {
                        f.GetAttrMulti(o);
                        o.Oldname = o.Objname;
                        o.Objname = f.GetObjName(o);
                        o.Disname = f.GetDisName(o);
                        o.UpdateCon();
                    }
                }
            }
        }
Exemple #6
0
 public virtual bool PopUp(FLOMgr mgr, FormFLO f, int x, int y)
 {
     return(false);
 }