上一页 1 ··· 354 355 356 357 358 359 360 361 362 ··· 364 下一页
摘要: VIEW层代码: 1: 2: 3: 4: 5: controller层代码: 1: public ActionResult TreeDepartment() 2: { 3: 4: Entity.OA.Department de... 阅读全文
posted @ 2011-05-20 17:07 张占岭 阅读(1879) 评论(1) 推荐(0) 编辑
摘要: 1: static List<Entity.OA.Department> entitiesList = null; 2: 3: internal static void Reload() 4: { 5: entitiesList = (from pc in iDepartmentsRepository.GetDepartments() 6: orderby pc.DeptName ascending 7: select pc).ToList(); 8: } 9: 10: #region 树型部门列表11: /// <summary>12: /// 虚拟产品类别 13: 阅读全文
posted @ 2011-05-20 15:49 张占岭 阅读(623) 评论(0) 推荐(0) 编辑
摘要: #region 插入用户汇款充值记录 public void UserRemittance(UserAccountRecord userAccountRecord, WebBankAccountRecord webBankAccountRecord) { /// <summary> ///用户账户收支明细 /// </summary> IUserAccountRecordsRepository IUARRpstry = new UserAccountRecordsRepository(); /// <summary> /// 用户账户余额 /// </ 阅读全文
posted @ 2011-05-20 15:42 张占岭 阅读(743) 评论(0) 推荐(0) 编辑
摘要: 1: namespace Data 2: { 3: /// <summary> 4: /// OA数据库基类 5: /// </summary> 6: public abstract class OARepositoryBase 7: { 8: protected Data.OA.LinqOADataContext _db = (Data.OA.LinqOADataContext)Data.DataContextFactory.Intance("OA"); 9: 10: /// <summary> 11: /// 虚方法,子类可以根据自己 阅读全文
posted @ 2011-05-20 14:41 张占岭 阅读(689) 评论(0) 推荐(0) 编辑
摘要: MVC路由的选择是从上向下去找到,当找到满足条件的路由后会自动跳出.namespace OA { // Note: For instructions on enabling IIS6 or IIS7 classic mode, // visit http://go.microsoft.com/?LinkId=9394801 public class MvcApplication : System.Web.HttpApplication { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute 阅读全文
posted @ 2011-05-20 13:34 张占岭 阅读(793) 评论(0) 推荐(0) 编辑
上一页 1 ··· 354 355 356 357 358 359 360 361 362 ··· 364 下一页