コード例 #1
0
ファイル: HRController.cs プロジェクト: huaminglee/hfoa
 //
 // 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);
     }
 }
コード例 #2
0
ファイル: HRController.cs プロジェクト: huaminglee/hfoa
        //
        // 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));
            }
        }