摘要: public virtual EmployeeJoinInfo GetEmployeeJoinByWorkCode(string workCode) { using(ISession session = OpenSession()) { IList list = session.CreateCriteria(typeof(EmployeeJoinInfo)).Add(Expression.Eq("WorkCode", workCode)).Add(Expression.Not(Expression.Eq("... 阅读全文
posted @ 2012-08-29 23:07 Tom Fan 阅读(243) 评论(0) 推荐(0) 编辑
摘要: public virtual ArrayList QueryEmployeeDemissionSettlementListByExec(DateTime begin,DateTime end) { using (ISession session = OpenSession()) { return (ArrayList)session.CreateCriteria(typeof(EmployeeDemissionInfo)).Add(Expression.Eq("SettlementStatus",... 阅读全文
posted @ 2012-08-29 23:05 Tom Fan 阅读(409) 评论(0) 推荐(0) 编辑
摘要: public virtual DemissionRemittanceInfo GetDemissionRemittanceInfo(int demissionremittanceID) { using (ISession session = OpenSession()) { return (DemissionRemittanceInfo)NHibernateHelper.GetObject(session, typeof(DemissionRemittanceInfo), demissionremitta... 阅读全文
posted @ 2012-08-29 23:03 Tom Fan 阅读(204) 评论(0) 推荐(0) 编辑
摘要: public virtual void DeletePerson(int id) { using(ISession session = OpenSession()) { ITransaction tx = null; try { tx = session.BeginTransaction(); session.Delete(string.Format("from Perso... 阅读全文
posted @ 2012-08-29 23:01 Tom Fan 阅读(383) 评论(0) 推荐(0) 编辑
摘要: public virtual IList GetEmployeeListByPeriodAndDeptList(IList deptlist, DateTime begin, DateTime end) { using (ISession session = OpenSession()) { return session.CreateCriteria(typeof(EmployeeInfo)).Add(Expression.In("DeptID", deptlist)).Add(Expression.S... 阅读全文
posted @ 2012-08-29 22:58 Tom Fan 阅读(255) 评论(0) 推荐(0) 编辑
摘要: public virtual int InsertEmployeeInfoByImport(EmployeeInfo info, PersonInfo person, CorporationSaveCountInfo count) { using (ISession session = OpenSession()) { ITransaction tx = null;//创建一个事务 try { tx = se... 阅读全文
posted @ 2012-08-29 22:53 Tom Fan 阅读(197) 评论(0) 推荐(0) 编辑
摘要: View Code select sum(c) from ( select count(*) as c from auditingapply where AuditingStatus in (4400000 ) and MakeDraftMan=9500 union select count(*) as c from auditingapply where AuditingStatus in (4400004 ) and MakeDraftMan=9500 and createtime>(select case when month(getdate())-5<0 --如果当前月份. 阅读全文
posted @ 2012-08-29 22:43 Tom Fan 阅读(183) 评论(0) 推荐(0) 编辑