From 1adb3401336433589d5028e7621786a64e72234b Mon Sep 17 00:00:00 2001 From: Nakorn Rientrakrunchai Date: Sat, 15 Aug 2020 16:05:45 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=97=E0=B8=94=E0=B8=AA=E0=B8=AD=E0=B8=9A?= =?UTF-8?q?=E0=B9=80=E0=B8=A1=E0=B8=99=E0=B8=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Views/Shared/_Layout.cshtml | 31 ++++++++++++-- Views/Shared/_LayoutDirect.cshtml | 31 +++++++++++++- tb320eva.csproj | 1 + wwwroot/BackendScript/images/evaluation.png | Bin 0 -> 716 bytes wwwroot/js/coregen.js | 43 ++++++++++++++++++++ wwwroot/json/eva.json | 1 + 6 files changed, 102 insertions(+), 5 deletions(-) create mode 100644 wwwroot/BackendScript/images/evaluation.png create mode 100644 wwwroot/json/eva.json diff --git a/Views/Shared/_Layout.cshtml b/Views/Shared/_Layout.cshtml index 8e5a74b..c7744bd 100644 --- a/Views/Shared/_Layout.cshtml +++ b/Views/Shared/_Layout.cshtml @@ -127,9 +127,23 @@ + + +
  • + +
    + +
    + ออกจากระบบ
  • @@ -214,6 +228,10 @@ + + + diff --git a/Views/Shared/_LayoutDirect.cshtml b/Views/Shared/_LayoutDirect.cshtml index 2b72c26..e4275e4 100644 --- a/Views/Shared/_LayoutDirect.cshtml +++ b/Views/Shared/_LayoutDirect.cshtml @@ -124,12 +124,37 @@ + + + +
  • + +
    + +
    + ออกจากระบบ +
    +
  • + +
  • - +
    + +
    กลับ
  • + @@ -201,6 +226,10 @@ $("#username").text(getCookie("emp_name")); $(document).ready(function(){ + var module = "eva"; + //var menu_url = appsite+"/json/"+module+".json"; + var menu_url = "@MyHelper.GetConfig(Configuration, "SiteInformation:appsite")/api/menu/"+module; + GetMenu(module, "#mymenu", menu_url); $( document ).on( 'focus', ':input', function(){ $( this ).attr( 'autocomplete', 'off' ); diff --git a/tb320eva.csproj b/tb320eva.csproj index 3a6a0f0..cba03a2 100644 --- a/tb320eva.csproj +++ b/tb320eva.csproj @@ -62,6 +62,7 @@ + diff --git a/wwwroot/BackendScript/images/evaluation.png b/wwwroot/BackendScript/images/evaluation.png new file mode 100644 index 0000000000000000000000000000000000000000..bc0b867f03077e6b59005ef33502de1a2e1ce158 GIT binary patch literal 716 zcmV;-0yF)IP)Px%hDk(0R5%fZQ%z_SK@@&(c9Pm38w*k@RPfNNdWhzrrj~k9&?;W)4^#xPX)Ycl zNuf9Vj2M>Y=4<1xdkXjoM8@%XA{6kPG)S|YDZMr+pH(Pf%NfifX=bP_+ z@6DU{W&x^4Z(@+DIe(A6sr2@MFqXx>@YdHGYv8SCD|f`cL^=vcO^VfWHm5k+ zBbH3tTr8&qEV6E7hXR`Sk07{<@JC-3L$c>}7Phj-;aGC;HsjL7=+J4_KH%28(LIRs z?9${~0*KQqxX-E$y2QUk{GtE1+p zN>_jP*C4TEW|&9~__9?b0Mio}hlZCG4>HZB!=k!6#6iImi0000·'+data.name+''; + tag += ''; + x += tag; + }); + return x; +} + +function GetMenu(module, mymenu, menu_url){ + var refresh_menu = function (result) { + $.each(result, function (i, data) { + var tmp = "'"; + var tag = ''; + if(typeof(data.submenu) === "undefined"){ + tag = '
  • ·'+data.name+''; + tag += '
  • '; + }else{ + tag = ''+data.name+''; + tag += GetSubMenu(data.submenu); + } + $(mymenu).append($(tag)); + }); + + endLoad(); + }; + + var menu_error = function (xhr, status, error) { + var errorMessage = xhr.responseText; + console.log("menu error = "+errorMessage); + endLoad(); + } + + startLoad(); + AjaxGetRequest(menu_url, refresh_menu, menu_error); +} diff --git a/wwwroot/json/eva.json b/wwwroot/json/eva.json new file mode 100644 index 0000000..2eb7af5 --- /dev/null +++ b/wwwroot/json/eva.json @@ -0,0 +1 @@ +[{"name":"\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e41\u0e1a\u0e1a\u0e1b\u0e23\u0e30\u0e40\u0e21\u0e34\u0e19","icon":"evaluation","url":"\/eva\/eva_create_evaluationView\/eva_create_evaluation"},{"name":"\u0e08\u0e31\u0e14\u0e17\u0e33\u0e02\u0e49\u0e2d\u0e15\u0e01\u0e25\u0e07\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e1b\u0e23\u0e30\u0e40\u0e21\u0e34\u0e19\u0e1c\u0e25\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e1b\u0e23\u0e31\u0e1a\u0e40\u0e25\u0e37\u0e48\u0e2d\u0e19\u0e40\u0e07\u0e34\u0e19\u0e40\u0e14\u0e37\u0e2d\u0e19","icon":"evaluation","url":"\/eva\/eva_create_evaluation_detail_agreementView\/eva_create_evaluation_detail_agreement"},{"name":"\u0e1b\u0e23\u0e30\u0e40\u0e21\u0e34\u0e19\u0e1c\u0e25\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e1b\u0e23\u0e31\u0e1a\u0e40\u0e25\u0e37\u0e48\u0e2d\u0e19\u0e40\u0e07\u0e34\u0e19\u0e40\u0e14\u0e37\u0e2d\u0e19","icon":"evaluation","url":"\/eva\/eva_create_evaluation_detail_processView\/eva_create_evaluation_detail_process"},{"name":"\u0e1b\u0e23\u0e31\u0e1a\u0e40\u0e25\u0e37\u0e48\u0e2d\u0e19\u0e04\u0e48\u0e32\u0e15\u0e2d\u0e1a\u0e41\u0e17\u0e19","icon":"evaluation","url":"\/eva\/eva_adjust_postponement_normalView\/eva_adjust_postponement_normal"},{"name":"\u0e40\u0e07\u0e34\u0e19\u0e42\u0e04\u0e27\u0e15\u0e49\u0e32\u0e1e\u0e34\u0e40\u0e28\u0e29","icon":"evaluation","url":"\/eva\/eva_adjust_postponement_quotaView\/eva_adjust_postponement_quota"},{"name":"\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32","icon":"evaluation","url":"-","submenu":[{"name":"\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e41\u0e1c\u0e19\u0e01\u0e32\u0e23\u0e1b\u0e23\u0e30\u0e40\u0e21\u0e34\u0e19\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e1b\u0e23\u0e31\u0e1a\u0e40\u0e25\u0e37\u0e48\u0e2d\u0e19\u0e40\u0e07\u0e34\u0e19\u0e40\u0e14\u0e37\u0e2d\u0e19","icon":"evaluation","url":"\/eva\/eva_performance_planView\/eva_performance_plan"},{"name":"\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e23\u0e30\u0e14\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e1b\u0e23\u0e30\u0e40\u0e21\u0e34\u0e19","icon":"evaluation","url":"\/eva\/eva_level_score_basicView\/eva_level_score_basic"},{"name":"\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e01\u0e25\u0e38\u0e48\u0e21\u0e01\u0e32\u0e23\u0e1b\u0e23\u0e30\u0e40\u0e21\u0e34\u0e19","icon":"evaluation","url":"\/eva\/eva_evaluation_groupView\/eva_evaluation_group"},{"name":"\u0e1a\u0e31\u0e0d\u0e0a\u0e35\u0e40\u0e07\u0e34\u0e19\u0e40\u0e14\u0e37\u0e2d\u0e19\u0e02\u0e31\u0e49\u0e19\u0e15\u0e48\u0e33\u0e02\u0e31\u0e49\u0e19\u0e2a\u0e39\u0e07\u0e02\u0e2d\u0e07\u0e1e\u0e19\u0e31\u0e01\u0e07\u0e32\u0e19\u0e40\u0e19\u0e15\u0e34\u0e1a\u0e31\u0e13\u0e11\u0e34\u0e15\u0e22\u0e2a\u0e20\u0e32","icon":"evaluation","url":"\/eva\/eva_salary_cylinderView\/eva_salary_cylinder"}]},{"name":"\u0e23\u0e32\u0e22\u0e07\u0e32\u0e19","icon":"evaluation","url":"\/eva\/home\/index","submenu":[{"name":"\u0e23\u0e32\u0e22\u0e07\u0e32\u0e19\u0e1a\u0e31\u0e0d\u0e0a\u0e35\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14\u0e02\u0e31\u0e49\u0e19\u0e40\u0e07\u0e34\u0e19\u0e40\u0e14\u0e37\u0e2d\u0e19\u0e41\u0e25\u0e30\u0e40\u0e07\u0e34\u0e19\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e01\u0e32\u0e23\u0e04\u0e23\u0e2d\u0e07\u0e0a\u0e35\u0e1e\u0e0a\u0e31\u0e48\u0e27\u0e04\u0e23\u0e32\u0e27\u0e02\u0e2d\u0e07\u0e1e\u0e19\u0e31\u0e01\u0e07\u0e32\u0e19","icon":"evaluation","url":"\/eva\/rep_eva01View\/rep_eva01_report"},{"name":"\u0e23\u0e32\u0e22\u0e07\u0e32\u0e19\u0e1b\u0e23\u0e30\u0e27\u0e31\u0e15\u0e34\u0e01\u0e32\u0e23\u0e40\u0e25\u0e37\u0e48\u0e2d\u0e19\u0e02\u0e31\u0e49\u0e19\u0e40\u0e07\u0e34\u0e19\u0e40\u0e14\u0e37\u0e2d\u0e19\u0e02\u0e2d\u0e07\u0e1e\u0e19\u0e31\u0e01\u0e07\u0e32\u0e19","icon":"evaluation","url":"\/eva\/rep_eva02View\/rep_eva02_report"},{"name":"\u0e23\u0e32\u0e22\u0e07\u0e32\u0e19\u0e42\u0e04\u0e23\u0e07\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e02\u0e2d\u0e07\u0e02\u0e31\u0e49\u0e19\u0e40\u0e07\u0e34\u0e19\u0e40\u0e14\u0e37\u0e2d\u0e19","icon":"evaluation","url":"\/eva\/rep_eva03View\/rep_eva03_report"}]}] \ No newline at end of file