Beispiel #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);
        }
Beispiel #2
0
        public static string GetShareNewId(string oldId, BusinessItemType itemType, string className, RevisionEffectivityWay oldEff, out string codeId, out RevisionEffectivityWay newEff, bool IsShare)
        {
            FrmNewID wid = new FrmNewID(oldId, itemType, className, true)
            {
                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);
        }