78 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			C#
		
	
	
	
		
		
			
		
	
	
			78 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			C#
		
	
	
	
|  |  | |||
|  | /// <summary> | |||
|  | ///INTERFACE CLASS FOR TABLE t_Authority | |||
|  | ///By wm with codesmith.  | |||
|  | ///on 04/18/2017 | |||
|  | /// </summary> | |||
|  | 
 | |||
|  | using System; | |||
|  | using System.Collections.Generic; | |||
|  | using System.Linq; | |||
|  | using System.Text; | |||
|  | using System.Data; | |||
|  | 
 | |||
|  | namespace DeiNiu.wms.Data.Model | |||
|  | { | |||
|  |     [Serializable] | |||
|  |     public class Authority : Authority_base | |||
|  |     { | |||
|  |         public Authority() | |||
|  |         { | |||
|  | 
 | |||
|  |         } | |||
|  |         public Authority(DataRow dr) | |||
|  |             : base(dr) | |||
|  |         { | |||
|  | 
 | |||
|  |         } | |||
|  |         public Authority(int id): base(id) | |||
|  |         { | |||
|  | 
 | |||
|  |         } | |||
|  |         protected override void getImp() | |||
|  |         { | |||
|  |             model_imp = new Authority_Imp(); | |||
|  | 
 | |||
|  |         } | |||
|  |         //begin cust db operation, query, excute sql etc. | |||
|  |         public DataSet QueryByName() | |||
|  |         { | |||
|  |             return  CustQuery(100); | |||
|  |         } | |||
|  |         public int UpdateByDept() | |||
|  |         { | |||
|  |             return CustOper(200); | |||
|  |         } | |||
|  |         public DataTable QueryValidAuthority() | |||
|  |         { | |||
|  |             return CustQuery(300).Tables[0]; | |||
|  |         } | |||
|  |         /// <summary> | |||
|  |         /// 查询非公共权限 | |||
|  |         /// </summary> | |||
|  |         /// <returns></returns> | |||
|  |         public DataTable QueryNonePublicAuthority() | |||
|  |         { | |||
|  |             cmdParameters[0] = "1"; | |||
|  |             return CustQuery(400).Tables[0]; | |||
|  |         } | |||
|  | 
 | |||
|  |         /// <summary> | |||
|  |         /// 查询公共新闻信息 | |||
|  |         /// </summary> | |||
|  |         /// <returns></returns> | |||
|  |         public DataTable QueryPublicInfomation() | |||
|  |         { | |||
|  |             cmdParameters[0] = "1"; | |||
|  |             return CustQuery(500).Tables[0]; | |||
|  |         } | |||
|  | 
 | |||
|  | 
 | |||
|  |         public DataTable queryCateAuths() | |||
|  |         { | |||
|  |             cmdParameters[0] = "1"; | |||
|  |             return CustQuery(600).Tables[0]; | |||
|  |         } | |||
|  |     } | |||
|  | } | |||
|  |   |