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); }
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(); }
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; }
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; } }
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; }
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); }
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); }
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); }
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); }