Ejemplo n.º 1
0
        public static string GetNewId(DEBusinessItem theItem, string oldId, BusinessItemType itemType, string className, out string codeId, out bool isGenIdInServer)
        {
            FrmNewID wid = new FrmNewID(oldId, itemType, className)
            {
                newId   = false,
                curItem = theItem
            };

            isGenIdInServer = false;
            codeId          = null;
            if (ServiceSwitches.IsTiIntegratorTopMost)
            {
                wid.TopMost = true;
            }
            if (wid.ShowDialog() == DialogResult.OK)
            {
                isGenIdInServer = wid.isGenIdInServer;
                codeId          = wid.txtId.Tag as string;
                if (isGenIdInServer)
                {
                    wid.id = null;
                }
            }
            return(wid.id);
        }
Ejemplo n.º 2
0
 public FrmNewID(string oldID, BusinessItemType itemType, string className)
 {
     this.groupOid = Guid.Empty;
     this.InitializeComponent();
     this.txtId.Text      = oldID;
     this.className       = className;
     this.itemType        = itemType;
     this.btnecms.Enabled = ConstCommon.FUNCTION_ECMS;
     this.txtId.SelectAll();
 }
Ejemplo n.º 3
0
 public FrmNewID(string oldID, BusinessItemType itemType, string className, bool bShare)
 {
     this.groupOid = Guid.Empty;
     this.InitializeComponent();
     this.txtId.Text      = oldID;
     this.className       = className;
     this.itemType        = itemType;
     this.btnecms.Enabled = ConstCommon.FUNCTION_ECMS;
     this.btnnext.Visible = false;
     this.bShareLoad      = bShare;
 }
Ejemplo n.º 4
0
        public static void GenerateCode(string oldId, string ClassName, string cmd, BusinessItemType ItemType, bool isNextSeg, out string Id, out string codeId)
        {
            FrmGetCode code = new FrmGetCode(oldId, ClassName, cmd, ItemType, isNextSeg);

            Id     = "";
            codeId = "";
            if (code.ShowDialog() == DialogResult.OK)
            {
                Id     = code.Id;
                codeId = code.CodeId;
            }
        }
Ejemplo n.º 5
0
 public FrmGetCode(string id, string ClassName, BusinessItemType ItemType, bool isNextSeg)
 {
     this.Id          = "";
     this.ClassName   = "";
     this.ReturnProps = "";
     this.CodeId      = "";
     this.cmd         = "";
     this.isNextSeg   = true;
     this.InitializeComponent();
     this.Id        = id;
     this.ClassName = ClassName;
     this.ItemType  = ItemType;
     this.isNextSeg = isNextSeg;
 }
Ejemplo n.º 6
0
 public FrmGetCode(string id, string ClassName, BusinessItemType ItemType, object isReBack)
 {
     this.Id          = "";
     this.ClassName   = "";
     this.ReturnProps = "";
     this.CodeId      = "";
     this.cmd         = "";
     this.isNextSeg   = true;
     this.InitializeComponent();
     this.Id        = id;
     this.ClassName = ClassName;
     this.ItemType  = ItemType;
     this.isNextSeg = false;
     this.isReBack  = Convert.ToBoolean(isReBack);
 }
Ejemplo n.º 7
0
        public static string GetNewId(string oldId, BusinessItemType itemType, string className, out string codeId)
        {
            FrmNewID wid = new FrmNewID(oldId, itemType, className)
            {
                newId = false
            };

            if (ServiceSwitches.IsTiIntegratorTopMost)
            {
                wid.TopMost = true;
            }
            wid.ShowDialog();
            codeId = wid.txtId.Tag as string;
            return(wid.id);
        }
Ejemplo n.º 8
0
        public static string GetNewId(string oldId, BusinessItemType itemType, string className, RevisionEffectivityWay oldEff, out string codeId, out RevisionEffectivityWay newEff)
        {
            FrmNewID wid = new FrmNewID(oldId, itemType, className)
            {
                newId = false
            };

            if (ServiceSwitches.IsTiIntegratorTopMost)
            {
                wid.TopMost = true;
            }
            wid.effway = oldEff;
            wid.ShowDialog();
            codeId = wid.txtId.Tag as string;
            newEff = wid.effway;
            return(wid.id);
        }
Ejemplo n.º 9
0
        public static bool RecycleCode(string oldId, string ClassName, string cmd, BusinessItemType ItemType)
        {
            FrmGetCode code = new FrmGetCode(oldId, ClassName, cmd, ItemType, true);

            return(code.ShowDialog() == DialogResult.OK);
        }