摘要:
VIEW层代码: 1: 2: 3: 4: 5: controller层代码: 1: public ActionResult TreeDepartment() 2: { 3: 4: Entity.OA.Department de... 阅读全文
摘要:
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: 阅读全文
摘要:
#region 插入用户汇款充值记录 public void UserRemittance(UserAccountRecord userAccountRecord, WebBankAccountRecord webBankAccountRecord) { /// <summary> ///用户账户收支明细 /// </summary> IUserAccountRecordsRepository IUARRpstry = new UserAccountRecordsRepository(); /// <summary> /// 用户账户余额 /// </ 阅读全文
摘要:
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: /// 虚方法,子类可以根据自己 阅读全文
摘要:
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 阅读全文