コード例 #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;
            }
        }
コード例 #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);
        }