protected void init_form(string ctrID)
        {
            if (!string.IsNullOrEmpty(ctrID))
            {
                _Base_ButtonEntity = DataProvider.GetInstance().GetBase_ButtonEntity(int.Parse(ctrID));

               				                				                   TextBox_Title.Text = _Base_ButtonEntity.Title.ToString();
                                				                   TextBox_Memo.Text = _Base_ButtonEntity.Memo.ToString();
                                				                				                            }
        }
        protected void Base_ButtonAdd()
        {
            #region 判断是否可空
		 
                                                                          
                  var _Title = Request.Form["TextBox_Title"];
                 if (string.IsNullOrEmpty(_Title))
                   {
                        Alert("[ 权限名称 ]不能为空");
                        return;
                  }
				                                           
                  var _Memo = Request.Form["TextBox_Memo"];
                 if (string.IsNullOrEmpty(_Memo))
                   {
                        Alert("[ 备注 ]不能为空");
                        return;
                  }
				                                                                                
	        #endregion
           
            #region 获取数据

            Base_ButtonEntity  _Base_ButtonEntity = new Base_ButtonEntity();
            
               		                               	  		                            
                 	                 	                
                    _Base_ButtonEntity.Title =Convert.ToString(_Title.ToString());
               		                        	  		                            
                 	                 	                
                    _Base_ButtonEntity.Memo =Convert.ToString(_Memo.ToString());
               		                        	  		        
		       	_Base_ButtonEntity.CreateDate =DateTime.Now;
		               	  		        
		       	_Base_ButtonEntity.UpdateDate =DateTime.Now;
		               	              try
            {
                DataProvider.GetInstance().AddBase_Button(_Base_ButtonEntity);
            }
            catch
            {
                WriteLog("Base_ButtonAdd", "添加Base_Button", "插入数据库时出错", Common.DailyUtility.MideSmsType.LogType.SystemLog);
                Alert("添加数据时出错,请重试");
                return;
            }
            Alert("添加Base_Button成功");
        }
        private MideFrameWork.Data.Entity.Base_ButtonEntity GetBase_Button(DataRow dr)
        {
            MideFrameWork.Data.Entity.Base_ButtonEntity info = new MideFrameWork.Data.Entity.Base_ButtonEntity();
										if(DBNull.Value==dr["ID"])
					info.ID=0;
				else
					info.ID=int.Parse(dr["ID"].ToString());
									
																								
						if(DBNull.Value==dr["Title"])
				info.Title= string.Empty;
			else	
				info.Title= dr["Title"].ToString();
																								
						if(DBNull.Value==dr["Memo"])
				info.Memo= string.Empty;
			else	
				info.Memo= dr["Memo"].ToString();
																									if(DBNull.Value==dr["CreateDate"])
					info.CreateDate=DateTime.Now;
				else
					info.CreateDate=DateTime.Parse(dr["CreateDate"].ToString());
						
																									if(DBNull.Value==dr["UpdateDate"])
					info.UpdateDate=DateTime.Now;
				else
					info.UpdateDate=DateTime.Parse(dr["UpdateDate"].ToString());
						
															            return info;
        }