07 2012 档案
摘要:其实现代码如下: /// /// 得到某机构工资发放明细的自定义DataTable对象 /// /// /// public static DataTable GetCustomerGrantDetailByBranchId(int branchId) { //得到所有工资标准项 IList sItems = BLL.Salary_itemManager.GetAllSalary_items(); //得到某机构下所有员工列表 IList humans = BLL.Human_fileManager.GetHumanFileByBranch...
阅读全文
摘要:当我们在DAL层写一个方法进行对数据的条件查询时: public IList<UserInfo> GetUsersByCondition( stiring condition ) { string strSql=string.Format(" select * from UserInfo where {0}" ,conditon);return GetUsreInfoBySql( strSql );}时须在界面层对condition有二种处理: 1.使用System.Text.StringBuilder处理,这种处理方式对于条件很多的情况有助于代码效率和内存使用
阅读全文