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

               				                				                   TextBox_Name.Text = _Base_ModuleEntity.Name.ToString();
                                				                   TextBox_Memo.Text = _Base_ModuleEntity.Memo.ToString();
                                				                            }
        }
        protected void Base_ModuleAdd()
        {
            #region 判断是否可空
		 
                                                                          
                  var _Name = Request.Form["TextBox_Name"];
                 if (string.IsNullOrEmpty(_Name))
                   {
                        Alert("[ 模块名称 ]不能为空");
                        return;
                  }
				                                           
                  var _Memo = Request.Form["TextBox_Memo"];
                 if (string.IsNullOrEmpty(_Memo))
                   {
                        Alert("[ 备注 ]不能为空");
                        return;
                  }
				                                                
	        #endregion
           
            #region 获取数据

            Base_ModuleEntity  _Base_ModuleEntity = new Base_ModuleEntity();
            
               		                               	  		                            
                 	                 	                
                    _Base_ModuleEntity.Name =Convert.ToString(_Name.ToString());
               		                        	  		                            
                 	                 	                
                    _Base_ModuleEntity.Memo =Convert.ToString(_Memo.ToString());
               		                        	  		        
		       	_Base_ModuleEntity.CreateDate =DateTime.Now;
		               	              try
            {
                DataProvider.GetInstance().AddBase_Module(_Base_ModuleEntity);
            }
            catch
            {
                WriteLog("Base_ModuleAdd", "添加Base_Module", "插入数据库时出错", Common.DailyUtility.MideSmsType.LogType.SystemLog);
                Alert("添加数据时出错,请重试");
                return;
            }
            Alert("添加Base_Module成功");
        }
        private MideFrameWork.Data.Entity.Base_ModuleEntity GetBase_Module(DataRow dr)
        {
            MideFrameWork.Data.Entity.Base_ModuleEntity info = new MideFrameWork.Data.Entity.Base_ModuleEntity();
										if(DBNull.Value==dr["ID"])
					info.ID=0;
				else
					info.ID=int.Parse(dr["ID"].ToString());
									
																								
						if(DBNull.Value==dr["Name"])
				info.Name= string.Empty;
			else	
				info.Name= dr["Name"].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());
						
															            return info;
        }