IDAL.cs
上传用户:tiancihang
上传日期:2014-03-12
资源大小:21387k
文件大小:3k
- using System;
- using System.Collections.Generic;
- using System.Text;
- using com.etong.Model;
- using System.Data;
- using System.Data.SqlClient;
- namespace com.etong.IDAL
- {
- /*------------------------------------------------------------------------------------------------------------
- *
- * 定义角色接口
- *
- * -----------------------------------------------------------------------------------------------------------*/
- public interface IRole
- {
- bool AddRole(RoleInfo roleinfo);
- bool UpdateRole(RoleInfo roleinfo);
- bool DeleteRole(int roleid);
- void AddRoleToUser(int roleid, int userid);
- void AddPermissionToRole(int permissionid, int roleid, int permissionType, string fromDate, string toDate);
- DataTable GetRoleByConditions(int roleType, string searchContent, bool isBlurSearch);
- DataTable GetRoleByID(int id);
- DataTable GetAllRoles();
- //得到角色所有权限列表
- DataTable GetPermissionList();
- //得到指定角色的权限列表
- DataTable GetPermissionList(int RoleID);
- DataTable GetUserPerissionList(int userid, string sAccount, int rightType);
- void DeletePermissionInPermissionRole(int roleid);
- }
- #region 工程项目实施接口
- public interface IProjectImplement
- {
- DataTable GetAllProjects();
- DataTable GetProjectByID(int id);
- DataTable GetConstructByID(int constructid);
- DataTable GetAllConstructs();
- DataSet GetProjectByID(int ProjectID, bool isGetlist);
- int AddClient(ClientInfo clientinfo);
- int AddConstruct(ConstructInfo constructinfo);
- //int UpdateConstruct(ConstructInfo constructinfo);
- void ChangeStatus(int projectid,int statusValue);
- void ConfirmConstructTaskType(int constructid, int tasktype);
- int GetProjectID(int constructid);
- void UpdateTransactorSignature(int constructid, string TransactorSignature);
- void UpdateMoney(int constructid, decimal chargemachine, decimal chargemanpower, decimal chargeother, decimal chargestuff, decimal chargesum,string changeman);
- void UpdateFg_TransactorIdea(int constructid, string Fg_TransactorIdea,string Fg_TransactorSignature);
- void UpdateZjl_TransactorIdea(int constructid, string Zjl_TransactorIdea, string Zjl_TransactorSignature);
- void UpdateMaterialStock(int constructid, string content,int flag);
- void UpdateContactAuthorzationIdea(int coustructid, string PactSqIdea, string PactSq);
- void UpdatePlanFile(int constructid, string planfile);
- void UpdateFinishFile(int constructid, string finishfile);
- void UpdateProjectDocumentBack(int constructid, string clientinfo, string pactfile, string Ys_Manager, string YsW_Idea, string YsW_Manager);
- void UpdateStartWorking(int constructid, string working, int startworking, int drawmat);
- DataTable GetDepartmentByID(int id);
- DataView GetStructureStatus();
- }
- #endregion
- }