在纸上福彩12选5走势图的JavaScript代码!!!

Dreal1

成员
加入
2017年4月27日
消息
10
编程经验
Beginner
问候我的同伴程序员,请我在一个项目上工作,我一直发现很难在我的MVC中用这个JavaScript代码福彩12选5走势图,因为它福彩12选5走势图所有整个页面而不是所选页面。
请帮助我使用福彩12选5走势图代码/ JavaScript代码进行福彩12选5走势图或解决此问题的解决方案{谢谢预期}

HTML:
@model IEnumerable<MVCPERSONNEL.Models.Staff>


@{
    ViewBag.Title = "STAFF INFORMATION";
}
<p>


    @Html.ActionLink("Add New Staff", "Create") | 
[U][B]// HERE IS THE JAVASCRIPT CODE FOR PRINTING AND I DECLARE A DIV ID T0 BE #DIV1  [/B][/U]
<a href="javascript:window.print('#div1')">Print</a>
</p>

[U][B]// STARTING DIV[/B][/U]
<div  id="div1" style="overflow:scroll; width:100%;">
    <table class="table">
        <caption class="caption"> All Staff Information</caption>
        <thead style=" text-align:center; background-color:#ffffff; border-left:thin; border-right:thin; border-bottom:thin;  border-color:aliceblue; border-width:thin; ">




            <tr style=" background-color: black; color: white; text-align: center; border-bottom: 1px dashed #999;">
                <th style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: white; border-top: 1px dashed #999; border-left: 1px dashed #999; border-width: thin; ">
                    Title
                </th>
                <th style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: white; border-top: 1px dashed #999; border-left: 1px dashed #999; border-width: thin; ">
                    SurName
                </th>
                <th style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: white; border-top: 1px dashed #999; border-left: 1px dashed #999; border-width: thin; ">
                    First Name
                </th>
                <th style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: white; border-top: 1px dashed #999; border-left: 1px dashed #999; border-width: thin; ">
                    Middle Name
                </th>
                <th style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: white; border-top: 1px dashed #999; border-left: 1px dashed #999; border-width: thin; ">
                    Other Name
                </th>
                <th style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: white; border-top: 1px dashed #999; border-left: 1px dashed #999; border-width: thin; ">
                    Gender
                </th>
                <th style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: white; border-top: 1px dashed #999; border-left: 1px dashed #999; border-width: thin; ">
                    Maiden Name
                </th>
                <th style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: white; border-top: 1px dashed #999; border-left: 1px dashed #999; border-width: thin; ">
                    Date of Birth
                </th>
                <th style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: white; border-top: 1px dashed #999; border-left: 1px dashed #999; border-width: thin; ">
                    Date of First Appointment
                </th>
                <th style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: white; border-top: 1px dashed #999; border-left: 1px dashed #999; border-width: thin; ">
                    Confirmation Date
                </th>
                <th style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: white; border-top: 1px dashed #999; border-left: 1px dashed #999; border-width: thin; ">
                    State of Origin
                </th>
                <th style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: white; border-top: 1px dashed #999; border-left: 1px dashed #999; border-width: thin; ">
                    Local Govt.
                </th>
                <th style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: white; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999; ">
                    Grade Level On Entry
                </th>
                <th style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: white; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999; ">
                    Designation On Entry
                </th>
                <th style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: white; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999; ">
                    IppisNo
                </th>
                <th style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: white; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999; ">
                    Date Of Present Appointment
                </th>
                <th style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: white; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999; ">
                    Conhess/Conmess
                </th>
                <th style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: white; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999; ">
                    Step
                </th>
                <th style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: white; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999; ">
                    Present Designation
                </th>
                <th style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: white; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999; ">
                    Mobile Number
                </th>
                <th style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: white; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999; ">
                    Email
                </th>
                <th style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: white; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999; ">
                    Staff Number
                </th>
                <th style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: white; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999; ">
                    CreatedBy
                </th>
                <th style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: white; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999; ">
                    ModifyBy
                </th>
                <th style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: white; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999; ">
                    Role
                </th>
                <th style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: white; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999;">
                    Department
                </th>
                <th style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: white; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999; ">
                    Grade Level
                </th>
                <th style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: white; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999; ">
                    Password
                </th>
                <th style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: white; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999; ">
                    Photo Upload
                </th>
            </tr>
        </thead>


        @foreach (var item in Model)
        {
            <tr style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: black; border-top: 1px dashed #999; border-width:thin; border-left: 1px dashed #999; ">


                <td style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: black; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999; ">
                    @Html.DisplayFor(modelItem => item.Title)
                </td>
                <td style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: black; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999; ">
                    @Html.DisplayFor(modelItem => item.Surname)
                </td>
                <td style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: black; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999; ">
                    @Html.DisplayFor(modelItem => item.Firstname)
                </td>
                <td style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: black; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999; ">
                    @Html.DisplayFor(modelItem => item.Middlename)
                </td>
                <td style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: black; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999; ">
                    @Html.DisplayFor(modelItem => item.Othername)
                </td>
                <td style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: black; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999;">
                    @Html.DisplayFor(modelItem => item.Gender)
                </td>
                <td style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: black; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999; ">
                    @Html.DisplayFor(modelItem => item.MaidenName)
                </td>
                <td style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: black; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999; ">
                    @Html.DisplayFor(modelItem => item.DOB)
                </td>
                <td style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: black; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999; ">
                    @Html.DisplayFor(modelItem => item.DOFA)
                </td>
                <td style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: black; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999;">
                    @Html.DisplayFor(modelItem => item.DOC)
                </td>
                <td style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: black; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999; ">
                    @Html.DisplayFor(modelItem => item.Origin)
                </td>
                <td style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: black; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999; ">
                    @Html.DisplayFor(modelItem => item.LG)
                </td>
                <td style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: black; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999; ">
                    @Html.DisplayFor(modelItem => item.GLOE)
                </td>
                <td style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: black; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999; ">
                    @Html.DisplayFor(modelItem => item.DOE)
                </td>
                <td style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: black; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999; ">
                    @Html.DisplayFor(modelItem => item.IppisNo)
                </td>
                <td style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: black; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999; ">
                    @Html.DisplayFor(modelItem => item.DOLA)
                </td>
                <td style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: black; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999; ">
                    @Html.DisplayFor(modelItem => item.Conhess_Conmess)
                </td>
                <td style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: black; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999; ">
                    @Html.DisplayFor(modelItem => item.Step)
                </td>
                <td style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: black; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999; ">
                    @Html.DisplayFor(modelItem => item.PD)
                </td>
                <td style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: black; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999; ">
                    @Html.DisplayFor(modelItem => item.Mobile)
                </td>
                <td style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: black; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999; ">
                    @Html.DisplayFor(modelItem => item.Email_Address)
                </td>
                <td style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: black; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999; ">
                    @Html.DisplayFor(modelItem => item.StaffNo)
                    </td>
                <td style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: black; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999; ">
                    @Html.DisplayFor(modelItem => item.CreatedBy)
                </td>
                <td style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: black; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999;">
                    @Html.DisplayFor(modelItem => item.Modifyby)
                </td>
                <td style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: black; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999;">
                    @Html.DisplayFor(modelItem => item.Roll.RoleDescription)
                </td>
                <td style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: black; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999; ">
                    @Html.DisplayFor(modelItem => item.Department.DeptName)
                </td>
                <td style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: black; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999; ">
                    @Html.DisplayFor(modelItem => item.Gl)
                </td>
                <td style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: black; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999; ">
                    @Html.DisplayFor(modelItem => item.Passwordx)
                </td>
                <td style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: black; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999; ">
                    @Html.DisplayFor(modelItem => item.PhotoURL)
                </td>
                <td style="text-align: center; border-bottom: 1px dashed #999; border-right: 1px dashed #999; border-color: black; border-top: 1px dashed #999; border-width: thin; border-left: 1px dashed #999;">
                    @Html.ActionLink("Edit", "Edit", new { id = item.StaffId })|@Html.ActionLink("Details", "Details", new { id = item.StaffId })|@Html.ActionLink("Delete", "Delete", new { id = item.StaffId })
                </td>
            </tr>
        }


    </table>
</div>
 

约翰

C#论坛主持人
工作人员
加入
2011年4月23日
消息
1,119
地点
挪威
编程经验
10+
最佳 底部