// // GET: /HR/ public ActionResult HR_Department() { string id = Request.QueryString["id"]; ViewData["DeptList"] = deptInstance.GetChildListDept(); Bse_Department depmodel = new Bse_Department(); if (string.IsNullOrEmpty(id)) { depmodel = new BLL.Bll_Bse_Department().GetModel(" and Dept_Code='root'"); return View(depmodel); } else { depmodel = new BLL.Bll_Bse_Department().GetModel(" and Dept_Code='" + id + "'"); var result = JsonConvert.SerializeObject(depmodel, new JsonDateConverter("yyyy-MM-dd")); return JavaScript(result); } }
// // GET: /HR/ public ActionResult HR_Department() { string id = Request.QueryString["id"]; ViewData["DeptList"] = deptInstance.GetChildListDept(); Bse_Department depmodel = new Bse_Department(); if (string.IsNullOrEmpty(id)) { depmodel = new BLL.Bll_Bse_Department().GetModel(" and Dept_Code='root'"); return(View(depmodel)); } else { depmodel = new BLL.Bll_Bse_Department().GetModel(" and Dept_Code='" + id + "'"); var result = JsonConvert.SerializeObject(depmodel, new JsonDateConverter("yyyy-MM-dd")); return(JavaScript(result)); } }