//Init private void initConstructor(DBMAINContext poDB) { //DBContext this.db = poDB; //VM this.oVM = new Taskd_summaryVM(); //DS this.oDS = new Taskd_summary_workerDS(this.db); //BL //MAP //JSON JsSerialize = new JavaScriptSerializer(); } //End initConstructor
} //End prepareLookupFilter() public ActionResult Index() { int?nRoleId = hlpConfig.SessionInfo.getAppRoleId(); int?nResId = hlpConfig.SessionInfo.getAppResId(); //LEADER if (nRoleId == valROLE.ROLEID_LEADER) { this.oData = this.oDS.getData(nRoleId, nResId, nResId); } //OTHERS else { this.oData = this.oDS.getData(nRoleId, nResId); } return(View(this.oData)); }