public static int Delete(KeyEdittype model,object trans)
		{
			if(model != null && trans !=null )
				return baseOperate.Delete(model,trans);	
			else
				throw new ApplicationException("在dbo.key_editType中删除一条记录时,传递的参数model,trans有错误!");
		}
		public static int Delete(KeyEdittype model)
		{
			if(model != null)
				return baseOperate.Delete(model);	
			else
				throw new ApplicationException("在dbo.key_editType中删除一条记录时,传递的参数model为Null!");;
		}
		public static int Insert(KeyEdittype model)
		{
			if(model != null)
				return baseOperate.Insert(model);
			else
				throw new ApplicationException("在dbo.key_editType中增加一条记录时,传递的参数model为Null!");
		}
		public static bool Exists(KeyEdittype model)
		{
			if(model != null )
				return baseOperate.Exists(model);	
			else
				throw new ApplicationException("在dbo.key_editType中查询某条记录是否存在时,传递的参数model为Null!");
					
		}
		public  static KeyEdittype GetModel(KeyEdittype model)
		{
			if(model != null )
				return baseOperate.GetModel(model);	
			else
				throw new ApplicationException("根据主键获取dbo.key_editType中的一条记录时,传递的参数model为Null!");
					
		}
        protected void btnInsertEditType_Click(object sender, EventArgs e)
        {
            KeyEdittype ket = new KeyEdittype();

            ket.Keyid = Guid.NewGuid().ToString();
            ket.Keyname = "不要编辑";
            ket.Keycode = "0";
            ket.Keyinfo = "不要编辑证";
            ket.Sort = 0;
            BizKeyEdittype.Insert(ket);

            ket.Keyid = Guid.NewGuid().ToString();
            ket.Keyname = "文本框";
            ket.Keycode = "1";
            ket.Keyinfo = "数字,字条,小数,等少数字条输入";
            ket.Sort = 1;
            BizKeyEdittype.Insert(ket);

            ket.Keyid = Guid.NewGuid().ToString();
            ket.Keyname = "日期选择框";
            ket.Keycode = "2";
            ket.Keyinfo = "输入日期";
            ket.Sort = 2;
            BizKeyEdittype.Insert(ket);

            ket.Keyid = Guid.NewGuid().ToString();
            ket.Keyname = "下拉框";
            ket.Keycode = "3";
            ket.Keyinfo = "连接字典表,一定要指定一个字典管理表中的编号";
            ket.Sort = 3;
            BizKeyEdittype.Insert(ket);

            ket.Keyid = Guid.NewGuid().ToString();
            ket.Keyname = "密码框";
            ket.Keycode = "4";
            ket.Keyinfo = "一般用来输入密码";
            ket.Sort = 4;
            BizKeyEdittype.Insert(ket);


            ket.Keyid = Guid.NewGuid().ToString();
            ket.Keyname = "文件上传";
            ket.Keycode = "5";
            ket.Keyinfo = "用来上传文件";
            ket.Sort = 5;
            BizKeyEdittype.Insert(ket);

            ket.Keyid = Guid.NewGuid().ToString();
            ket.Keyname = "多行文本框";
            ket.Keycode = "6";
            ket.Keyinfo = "用来输入较多的描术性文字,但不用于发表文章";
            ket.Sort = 6;
            BizKeyEdittype.Insert(ket);

            LABMsg.Text = "插入编辑类型字典表成功";
        }