示例#1
0
        public static bool SearchesCode()
        {
            FrmGetCode code = new FrmGetCode("", "", BusinessItemType.Unknown, false)
            {
                cmd = "CX"
            };

            return(code.ShowDialog() == DialogResult.OK);
        }
示例#2
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;
            }
        }
示例#3
0
        private void btnecms_Click(object sender, EventArgs e)
        {
            FrmGetCode code = new FrmGetCode {
                ItemType  = this.itemType,
                ClassName = this.className
            };

            if (code.ShowDialog() == DialogResult.OK)
            {
                this.txtId.Text          = code.Id;
                this.txtId.Tag           = code.CodeId;
                this.btnOK.Enabled       = true;
                this.labCodeInfo.Visible = false;
            }
        }
示例#4
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);
        }