Example #1
0
        public override void Execute()
        {
            #line 5 "..\..\Views\HeSoLuong\Edit.cshtml"

            var action = "HeSoLuong";
            var NV_id  = ViewBag.NV_id as int?;
            var db     = ViewBag.db as HRMDBEntities;
            var dt     = db.SqlQuery("select * from nvHeSoLuong where id=@p0", Model.HasValue ? Model.Value : 0);
            var dr     = dt.Rows.Count > 0 ? dt.Rows[0] : null;

            var NhomNgach    = "NhomNgach_id";
            var NhomNgach_id = dr != null ? dr[NhomNgach] as int? : null;
            var Ngach        = "Ngach_id";
            var Ngach_id     = dr != null ? dr[Ngach] as int? : null;

            var rand = new Random().Next();
            var uc   = new HRM.Accounts.Models.UsersContext();



            #line default
            #line hidden
            WriteLiteral("\r\n");



            #line 21 "..\..\Views\HeSoLuong\Edit.cshtml"
            using (Html.BeginForm(Model.HasValue ? "UpdateS" : "CreateS", action))
            {
            #line default
            #line hidden

            #line 23 "..\..\Views\HeSoLuong\Edit.cshtml"
                Write(Html.Hidden("id", Model));


            #line default
            #line hidden

            #line 23 "..\..\Views\HeSoLuong\Edit.cshtml"



            #line default
            #line hidden

            #line 24 "..\..\Views\HeSoLuong\Edit.cshtml"
                Write(Html.Hidden("NV_id", NV_id.HasValue ? NV_id.Value : dr["NV_id"]));


            #line default
            #line hidden

            #line 24 "..\..\Views\HeSoLuong\Edit.cshtml"



            #line default
            #line hidden
                WriteLiteral("<dl id=\"");



            #line 25 "..\..\Views\HeSoLuong\Edit.cshtml"
                Write(rand);


            #line default
            #line hidden
                WriteLiteral("\" class=\"dl-horizontal\">\r\n    <dt>Thời gian</dt>\r\n    <dd>\r\n        ");



            #line 28 "..\..\Views\HeSoLuong\Edit.cshtml"
                Write(Html.Editor(dr, dt.Columns["NgayBatDau"]));


            #line default
            #line hidden
                WriteLiteral("-\r\n        ");



            #line 29 "..\..\Views\HeSoLuong\Edit.cshtml"
                Write(Html.Editor(dr, dt.Columns["NgayKetThuc"]));


            #line default
            #line hidden
                WriteLiteral("\r\n    </dd>\r\n");



            #line 31 "..\..\Views\HeSoLuong\Edit.cshtml"

                ViewBag.NhomNgach = dt.Columns["NhomNgach_id"].ColumnName;
                ViewBag.Ngach     = dt.Columns["Ngach_id"].ColumnName;
                ViewBag.BacLuong  = dt.Columns["BacLuong"].ColumnName;
                ViewBag.HeSoLuong = dt.Columns["HeSoLuong"].ColumnName;
                ViewBag.PhuCap    = dt.Columns["PhuCap"].ColumnName;
                ViewBag.SoThang   = dt.Columns["ThoiGianGiuBac"].ColumnName;



            #line default
            #line hidden
                WriteLiteral("    ");



            #line 39 "..\..\Views\HeSoLuong\Edit.cshtml"
                Write(Html.Partial("BangLuong", dt));


            #line default
            #line hidden
                WriteLiteral("\r\n    <dt>Lý do thay đổi</dt>\r\n    <dd>");



            #line 41 "..\..\Views\HeSoLuong\Edit.cshtml"
                Write(Html.Editor(dr, dt.Columns["LyDoThayDoi"]));


            #line default
            #line hidden
                WriteLiteral("</dd>\r\n    <dt>Ghi chú</dt>\r\n    <dd>");



            #line 43 "..\..\Views\HeSoLuong\Edit.cshtml"
                Write(Html.Editor(dr, dt.Columns["GhiChu"]));


            #line default
            #line hidden
                WriteLiteral("</dd>\r\n    <dt>");



            #line 44 "..\..\Views\HeSoLuong\Edit.cshtml"
                Write(Html.Hidden("User_id", uc.UserProfiles.Single(u => u.UserName == User.Identity.Name).UserId));


            #line default
            #line hidden
                WriteLiteral("</dt>\r\n    <dd>\r\n        <input type=\"submit\" value=\"Save\" />\r\n        <a title=\"" +
                             "Close\" class=\"close\" href=\"\">X</a>\r\n    </dd>\r\n</dl>\r\n");



            #line 50 "..\..\Views\HeSoLuong\Edit.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("\r\n<script>\r\n    var form = $(\"#");



            #line 53 "..\..\Views\HeSoLuong\Edit.cshtml"
            Write(rand);


            #line default
            #line hidden
            WriteLiteral("\");\r\n    form.find(\"[type=date]\").datepicker({\r\n        changeMonth: true,\r\n     " +
                         "   changeYear: true,\r\n        dateFormat: \"dd/mm/yy\"\r\n    }).prop(\"type\", \"text\"" +
                         ").css(\"width\", \"90px\");\r\n</script>\r\n");
        }
Example #2
0
        public override void Execute()
        {
            #line 3 "..\..\Areas\Account\Views\Permission\EditActions.cshtml"

            ViewBag.Title = "EditActions";
            var controller = Model.Controller.Split(':').Last();


            #line default
            #line hidden
            WriteLiteral("\r\n\r\n");


            #line 8 "..\..\Areas\Account\Views\Permission\EditActions.cshtml"
            using (var db = new HRM.Accounts.Models.UsersContext())
            {
                foreach (var role in db.RoleProfiles)
                {
            #line default
            #line hidden

            #line 12 "..\..\Areas\Account\Views\Permission\EditActions.cshtml"
                    Write(role.RoleName);


            #line default
            #line hidden

            #line 12 "..\..\Areas\Account\Views\Permission\EditActions.cshtml"
                }
            }


            #line default
            #line hidden
            WriteLiteral("\r\n<h2>Edit Actions</h2>\r\n\r\n");


            #line 18 "..\..\Areas\Account\Views\Permission\EditActions.cshtml"
            Write(Html.ValidationSummary(true));


            #line default
            #line hidden
            WriteLiteral("\r\n");


            #line 19 "..\..\Areas\Account\Views\Permission\EditActions.cshtml"
            using (Html.BeginForm())
            {
            #line default
            #line hidden

            #line 21 "..\..\Areas\Account\Views\Permission\EditActions.cshtml"
                Write(Html.HiddenFor(model => model.Id));


            #line default
            #line hidden

            #line 21 "..\..\Areas\Account\Views\Permission\EditActions.cshtml"



            #line default
            #line hidden

            #line 22 "..\..\Areas\Account\Views\Permission\EditActions.cshtml"
                Write(Html.HiddenFor(model => model.Controller));


            #line default
            #line hidden

            #line 22 "..\..\Areas\Account\Views\Permission\EditActions.cshtml"



            #line default
            #line hidden
                WriteLiteral("    <h3>\r\n");

                WriteLiteral("        ");


            #line 25 "..\..\Areas\Account\Views\Permission\EditActions.cshtml"
                Write(Html.DisplayFor(model => model.Controller));


            #line default
            #line hidden
                WriteLiteral("\r\n    </h3>\r\n");


            #line 27 "..\..\Areas\Account\Views\Permission\EditActions.cshtml"


            #line default
            #line hidden

            #line 27 "..\..\Areas\Account\Views\Permission\EditActions.cshtml"
                Write(Html.LabelFor(model => model.Action));


            #line default
            #line hidden

            #line 27 "..\..\Areas\Account\Views\Permission\EditActions.cshtml"



            #line default
            #line hidden

            #line 28 "..\..\Areas\Account\Views\Permission\EditActions.cshtml"
                Write(Html.EditorFor(model => model.Action));


            #line default
            #line hidden

            #line 28 "..\..\Areas\Account\Views\Permission\EditActions.cshtml"



            #line default
            #line hidden

            #line 29 "..\..\Areas\Account\Views\Permission\EditActions.cshtml"
                Write(Html.ValidationMessageFor(model => model.Action));


            #line default
            #line hidden

            #line 29 "..\..\Areas\Account\Views\Permission\EditActions.cshtml"



            #line default
            #line hidden
                WriteLiteral("    <input");

                WriteLiteral(" type=\"submit\"");

                WriteLiteral(" value=\"Update\"");

                WriteLiteral(" />\r\n");


            #line 31 "..\..\Areas\Account\Views\Permission\EditActions.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("\r\n");


            #line 33 "..\..\Areas\Account\Views\Permission\EditActions.cshtml"
            foreach (var file in new DirectoryInfo(Server.MapPath("~/bin")).EnumerateFiles("HRM.*.dll"))
            {
                foreach (var type in Assembly.LoadFile(file.FullName).GetTypes())
                {
                    if (!String.IsNullOrEmpty(type.Namespace) && type.Namespace.EndsWith(".Controllers") &&
                        !type.Name.StartsWith("<") && type.Name.Equals(controller))
                    {
                        foreach (var action in type.GetMethods())
                        {
                            if (!action.Name.StartsWith("get_") && !action.Name.StartsWith("set_"))
                            {
            #line default
            #line hidden

            #line 44 "..\..\Areas\Account\Views\Permission\EditActions.cshtml"
                                Write(action.Name);


            #line default
            #line hidden
                                WriteLiteral(" <br />\r\n");


            #line 45 "..\..\Areas\Account\Views\Permission\EditActions.cshtml"
                            }
                        }
                    }
                }
            }


            #line default
            #line hidden
        }
        public override void Execute()
        {
            #line 4 "..\..\Views\QLHoSoHSL\Index.cshtml"

            ViewBag.Title = "Index";
            var name   = "dsQLHoSoHSL";
            var table  = "nvQLHoSoHSL";
            var action = "QLHoSoHSL";
            var db     = ViewBag.db as HRMDBEntities;
            var dt     = db.SqlQuery("select * from " + name + " where HoanThanh=0");

            var rand = new Random().Next();
            var uc   = new HRM.Accounts.Models.UsersContext();



            #line default
            #line hidden
            WriteLiteral("\r\n<p class=\"ui-state-highlight\">Quản lý hồ sơ điều chỉnh hệ số lương</p>\r\n\r\n");



            #line 18 "..\..\Views\QLHoSoHSL\Index.cshtml"
            using (Html.BeginForm("Upgrade", action))
            {
            #line default
            #line hidden
                WriteLiteral("<table id=\"");



            #line 20 "..\..\Views\QLHoSoHSL\Index.cshtml"
                Write(rand);


            #line default
            #line hidden
                WriteLiteral(@""" class=""table table-bordered table-hover table-condensed"">
<thead class=""ui-widget-header"">
    <tr>
        <th></th>
        <th>Họ tên</th>
        <th>Đến hạn</th>
        <th>Bậc</th>
        <th>HSL</th>
        <th><mark data-tip=""Vượt khung"">VK</mark></th>
        <th><mark data-tip=""Số tháng giữ bậc"">TG</mark></th>
        <th><mark data-tip=""Bản tự nhận xét"">BTNX</mark></th>
        <th><mark data-tip=""Biên bản dự giờ/họp đơn vị"">BBDG</mark></th>
        <th><mark data-tip=""Nhận xét của trưởng đơn vị"">NX_TDV</mark></th>
    </tr>
</thead>
<tbody class=""ui-widget-content"">
");



            #line 36 "..\..\Views\QLHoSoHSL\Index.cshtml"
                foreach (DataRow dr in dt.Rows)
                {
            #line default
            #line hidden
                    WriteLiteral("    <tr>\r\n        <td>\r\n            <button class=\"select\" style=\"width:16px\"></b" +
                                 "utton>\r\n            <ul style=\"z-index:1000\">\r\n                <li>");



            #line 42 "..\..\Views\QLHoSoHSL\Index.cshtml"
                    Write(Html.Link4U("~/QLTinhLuong/QLHoSoHSL/EditP?id=" + dr["id"], "Edit"));


            #line default
            #line hidden
                    WriteLiteral("</li>\r\n                <li>");



            #line 43 "..\..\Views\QLHoSoHSL\Index.cshtml"
                    Write(Html.Link4D("~/QLTinhLuong/QLHoSoHSL/DeleteS?name=" + table + "&id=" + dr["id"], "Delete"));


            #line default
            #line hidden
                    WriteLiteral("</li>\r\n                <li>");



            #line 44 "..\..\Views\QLHoSoHSL\Index.cshtml"
                    Write(Html.Link4U("~/QLTinhLuong/QLHoSoHSL/BaoLuuP?HSL_id=" + dr["HSL_id"], "Bảo lưu"));


            #line default
            #line hidden
                    WriteLiteral("</li>\r\n            </ul><br />\r\n            ");



            #line 46 "..\..\Views\QLHoSoHSL\Index.cshtml"
                    Write(Html.Hidden("HoSo_id", dr["id"]));


            #line default
            #line hidden
                    WriteLiteral("\r\n            ");



            #line 47 "..\..\Views\QLHoSoHSL\Index.cshtml"
                    Write(Html.Hidden("HeSo_id", dr["HSL_id"]));


            #line default
            #line hidden
                    WriteLiteral("\r\n            ");



            #line 48 "..\..\Views\QLHoSoHSL\Index.cshtml"
                    Write(Html.CheckBox("SEL", true, new { HoSo_id = dr["id"], HeSo_id = dr["HSL_id"] }));


            #line default
            #line hidden
                    WriteLiteral("\r\n        </td>\r\n        <td>\r\n            <u>");



            #line 51 "..\..\Views\QLHoSoHSL\Index.cshtml"
                    Write(Html.Display(dr, dt.Columns["HoVaTen"]));


            #line default
            #line hidden
                    WriteLiteral("</u>\r\n        </td>\r\n        <td>\r\n            <b>");



            #line 54 "..\..\Views\QLHoSoHSL\Index.cshtml"
                    Write(Html.Display(dr, dt.Columns["HSL_ThoiGianDenHan"]));


            #line default
            #line hidden
                    WriteLiteral("</b>\r\n        </td>\r\n        <td>\r\n            ");



            #line 57 "..\..\Views\QLHoSoHSL\Index.cshtml"
                    Write(Html.Display(dr, dt.Columns["HSL_BacLuong"]));


            #line default
            #line hidden
                    WriteLiteral("<br />\r\n            <span class=\"ui-icon ui-icon-arrow-1-e\" style=\"display:inline" +
                                 "-block\"></span>\r\n            <i><u>");



            #line 59 "..\..\Views\QLHoSoHSL\Index.cshtml"
                    Write(Html.Display(dr, dt.Columns["BacLuong"]));


            #line default
            #line hidden
                    WriteLiteral("</u></i>\r\n        </td>\r\n        <td>\r\n            ");



            #line 62 "..\..\Views\QLHoSoHSL\Index.cshtml"
                    Write(Html.Display(dr, dt.Columns["HSL_HeSoLuong"]));


            #line default
            #line hidden
                    WriteLiteral("<br />\r\n            <span class=\"ui-icon ui-icon-arrow-1-e\" style=\"display:inline" +
                                 "-block\"></span>\r\n            <i><u>");



            #line 64 "..\..\Views\QLHoSoHSL\Index.cshtml"
                    Write(Html.Display(dr, dt.Columns["HeSoLuong"]));


            #line default
            #line hidden
                    WriteLiteral("</u></i>\r\n        </td>\r\n        <td>\r\n            ");



            #line 67 "..\..\Views\QLHoSoHSL\Index.cshtml"
                    Write(Html.Display(dr, dt.Columns["HSL_PhuCap"]));


            #line default
            #line hidden
                    WriteLiteral("<br />\r\n            <span class=\"ui-icon ui-icon-arrow-1-e\" style=\"display:inline" +
                                 "-block\"></span>\r\n            <i><u>");



            #line 69 "..\..\Views\QLHoSoHSL\Index.cshtml"
                    Write(Html.Display(dr, dt.Columns["PhuCap"]));


            #line default
            #line hidden
                    WriteLiteral("</u></i>\r\n        </td>\r\n        <td>\r\n            <mark data-tip=\"(tháng)\">");



            #line 72 "..\..\Views\QLHoSoHSL\Index.cshtml"
                    Write(Html.Display(dr, dt.Columns["ThoiGianGiuBac"]));


            #line default
            #line hidden
                    WriteLiteral("</mark>\r\n        </td>\r\n        <td>\r\n            ");



            #line 75 "..\..\Views\QLHoSoHSL\Index.cshtml"
                    Write(Html.Display(dr, dt.Columns["BanTuNhanXet"]));


            #line default
            #line hidden
                    WriteLiteral("\r\n        </td>\r\n        <td>\r\n            ");



            #line 78 "..\..\Views\QLHoSoHSL\Index.cshtml"
                    Write(Html.Display(dr, dt.Columns["BienBanHopDonVi"]));


            #line default
            #line hidden
                    WriteLiteral("\r\n        </td>\r\n        <td>\r\n            ");



            #line 81 "..\..\Views\QLHoSoHSL\Index.cshtml"
                    Write(Html.Display(dr, dt.Columns["DeXuatTruongDonVi"]));


            #line default
            #line hidden
                    WriteLiteral("\r\n        </td>\r\n    </tr>\r\n");



            #line 84 "..\..\Views\QLHoSoHSL\Index.cshtml"
                }


            #line default
            #line hidden
                WriteLiteral("</tbody>\r\n</table>\r\n");



            #line 87 "..\..\Views\QLHoSoHSL\Index.cshtml"


            #line default
            #line hidden

            #line 87 "..\..\Views\QLHoSoHSL\Index.cshtml"
                Write(Html.BeginDiv());


            #line default
            #line hidden

            #line 87 "..\..\Views\QLHoSoHSL\Index.cshtml"



            #line default
            #line hidden

            #line 88 "..\..\Views\QLHoSoHSL\Index.cshtml"
                Write(Html.Label("SoQuyetDinh", "Số quyết định"));


            #line default
            #line hidden

            #line 88 "..\..\Views\QLHoSoHSL\Index.cshtml"



            #line default
            #line hidden

            #line 89 "..\..\Views\QLHoSoHSL\Index.cshtml"
                Write(Html.TextBox("SoQuyetDinh"));


            #line default
            #line hidden

            #line 89 "..\..\Views\QLHoSoHSL\Index.cshtml"



            #line default
            #line hidden

            #line 90 "..\..\Views\QLHoSoHSL\Index.cshtml"
                Write(Html.Label("LyDo", "Lý do điều chỉnh hệ số lương"));


            #line default
            #line hidden

            #line 90 "..\..\Views\QLHoSoHSL\Index.cshtml"



            #line default
            #line hidden

            #line 91 "..\..\Views\QLHoSoHSL\Index.cshtml"
                Write(Html.TextBox("LyDoThayDoi"));


            #line default
            #line hidden

            #line 91 "..\..\Views\QLHoSoHSL\Index.cshtml"



            #line default
            #line hidden

            #line 92 "..\..\Views\QLHoSoHSL\Index.cshtml"
                Write(Html.Label("GhiChu", "Ghi chú"));


            #line default
            #line hidden

            #line 92 "..\..\Views\QLHoSoHSL\Index.cshtml"



            #line default
            #line hidden

            #line 93 "..\..\Views\QLHoSoHSL\Index.cshtml"
                Write(Html.TextBox("GhiChu"));


            #line default
            #line hidden

            #line 93 "..\..\Views\QLHoSoHSL\Index.cshtml"



            #line default
            #line hidden

            #line 94 "..\..\Views\QLHoSoHSL\Index.cshtml"
                Write(Html.Hidden("User_id", uc.UserProfiles.Single(u => u.UserName == User.Identity.Name).UserId));


            #line default
            #line hidden

            #line 94 "..\..\Views\QLHoSoHSL\Index.cshtml"



            #line default
            #line hidden
                WriteLiteral("    <input type=\"submit\" value=\"Điều chỉnh HSL\" />\r\n");



            #line 96 "..\..\Views\QLHoSoHSL\Index.cshtml"


            #line default
            #line hidden

            #line 96 "..\..\Views\QLHoSoHSL\Index.cshtml"
                Write(Html.EndDiv());


            #line default
            #line hidden

            #line 96 "..\..\Views\QLHoSoHSL\Index.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("\r\n<script>\r\n    $(function () {\r\n        $(\"#");



            #line 101 "..\..\Views\QLHoSoHSL\Index.cshtml"
            Write(rand);


            #line default
            #line hidden
            WriteLiteral("\").find(\"th\").attr(\"nowrap\", true);\r\n        $(\"#");



            #line 102 "..\..\Views\QLHoSoHSL\Index.cshtml"
            Write(rand);


            #line default
            #line hidden
            WriteLiteral(@""").find("".select"").button({
            text: false,
            icons: { primary: ""ui-icon-circle-triangle-s"" }
        }).click(function () {
            var menu = $(this).next().show().position({
                my: ""left top"",
                at: ""left bottom"",
                of: this
            });
            $(document).one(""click"", function () { menu.hide(); });
            return false;
        }).next().hide().menu();
        $(""#");



            #line 114 "..\..\Views\QLHoSoHSL\Index.cshtml"
            Write(rand);


            #line default
            #line hidden
            WriteLiteral(@""").find(""[id=SEL]"").change(function () {
            if (this.checked) {
                $(this).parent().find(""#HeSo_id"").val($(this).attr(""HeSo-id""));
                $(this).parent().find(""#HoSo_id"").val($(this).attr(""HoSo-id""));
            } else $(this).parent().find(""[type=hidden]"").val("""");
        }).css(""margin-left"", ""2px"");
        $(""[type=date]"").datepicker({
            changeMonth: true,
            changeYear: true,
            dateFormat: ""dd/mm/yy""
        }).prop(""type"", ""text"");
    });
</script>
");
        }