Index.cshtml 23.7 KB
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@section header
{

    <style type="text/css">
        div, ul {
            box-sizing: content-box;
        }

        #modifyForm .layui-form-label, #modifyFormDesc .layui-form-label {
            width: 160px;
            text-align: right;
        }
        .btnPrint {
            border: 1px solid black;
          
        }
    </style>
}

<script type="text/html" id="barDemo">
    <a lay-event="BtnPrint"  class="layui-btn layui-btn-danger layui-btn-xs" >打印</a>
    @*<a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>*@
</script>

<div id="listForm" class="layui-tab-item layui-show">
    <div id="ImportData" style="padding: 60px; line-height: 22px; background-color: #393D49; color: #fff; font-weight: 300;display: none;">
        <div style="overflow:hidden">
            <a href="javascript:;" class="layui-btn layui-btn-sm layui-btn-normal" data-type="btnTemplate"><i class="layui-icon">&#xe663;</i>生成模板</a>
            <br />
            <br />
            <input type="file" name="excelfile" id="excelfile" accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet">
        </div>
    </div>
    <form class="layui-form layui-form-pane" action="" lay-filter="listForm">
        <div class="layui-form-item" id="panelSearch" hidden>
            <fieldset class="layui-elem-field">
                <div class="layui-field-box" id="qform">
                    <div class="layui-form-item layui-col-sm12">
                        <div class="layui-inline toolList">
                            <a href="javascript:;" class="layui-btn layui-btn-sm layui-btn-radius" data-type="btnQuery"><i class="layui-icon">&#xe615;</i>查询</a>
                            <a href="javascript:;" class="layui-btn layui-btn-sm layui-btn-radius layui-btn-warm" data-type="btnReset"><i class="layui-icon">&#xe66c;</i>重置</a>
                            <a href="javascript:;" class="layui-btn layui-btn-sm layui-btn-radius layui-btn-danger" data-type="btnClose"><i class="layui-icon">&#xe6a7;</i>关闭</a>
                        </div>
                    </div>
                    <div class="layui-row">
                        <div class="layui-col-sm3">
                            <label class="layui-form-label">母材</label>
                            <div class="layui-input-inline">
                                <input name="MaterialCode"  type="text"    class="layui-input">
                            </div>
                        </div>
                        <div class="layui-col-sm3">
                            <label class="layui-form-label">焊丝</label>
                            <div class="layui-input-inline">
                                <input name="WeldingWire" type="text" class="layui-input">
                            </div>
                        </div>
                    </div>
                </div>
            </fieldset>
        </div>
    </form>

    <div class="layui-col-xs12">
        <div class="layui-tab layui-tab-brief" lay-filter="tableTabBody">
            <ul class="layui-tab-title">
                <li class="layui-this" lay-id="1">焊接工艺</li>
                <li lay-id="2">明细</li>
            </ul>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    <table id="mainList" lay-filter="mainList"></table>
                </div>
                <div class="layui-tab-item">
                    <table id="mainListDesc" lay-filter="mainListDesc"></table>
                </div>
            </div>
        </div>

    </div>
</div>

<div id="modifyForm" class="layui-tab-item">
    <form class="layui-form layui-form-pane" action="" lay-filter="modifyForm" onsubmit="return false;">
        <div class="layui-card">
            <div class="layui-row">
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">母材<label class="lable-required">*</label></label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="MaterialCode" type="text" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">焊丝<label class="lable-required">*</label></label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="WeldingWire" type="text" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">管径(mm)<label class="lable-required">*</label></label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="Diameter" type="number" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">壁厚(mm)δ <label class="lable-required">*</label></label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="Thickness" type="number" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">坡口角度α<label class="lable-required">*</label></label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="GrooveAngle" type="number" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">钝边(mm)p<label class="lable-required">*</label></label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="RootFace" type="number" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">间隙(mm)b <label class="lable-required">*</label></label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="Interval" type="number" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">错边量(mm)<label class="lable-required">*</label></label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="ErrorVariable" type="number" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">工件温度<label class="lable-required">*</label></label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="PreheatingTemperature" type="number" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">工件工件时间<label class="lable-required">*</label></label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="PreheatingTime" type="number" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">层间温度<label class="lable-required">*</label></label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="InterlaminarTemperature" type="number" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">焊后热处理温度<label class="lable-required">*</label></label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="TreatmentTemperature" type="text" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">焊后热处理时间<label class="lable-required">*</label></label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="ProcessingTime" type="number" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">工装系统<label class="lable-required">*</label></label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="ToolingSystem" type="text" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">工件外形及尺寸<label class="lable-required">*</label></label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="ToolingShapeAndSize" type="text" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">焊接电源<label class="lable-required">*</label></label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="WeldingPowerSource" type="text" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">焊接型号<label class="lable-required">*</label></label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="WeldingGunModel" type="text" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">焊丝型牌号<label class="lable-required">*</label></label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="WeldingBrand" type="text" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">焊丝规格<label class="lable-required">*</label></label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="WeldingSpecs" type="number" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">焊接气体<label class="lable-required">*</label></label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="WeldingGas" type="text" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">焊接位置<label class="lable-required">*</label></label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="WeldingPosition" type="text" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">焊接方向<label class="lable-required">*</label></label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="WeldingDirection" type="text" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">焊接行程<label class="lable-required">*</label></label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="WeldingStroke" type="number" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">电流形式<label class="lable-required">*</label></label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="ElectricCurrentForm" type="text" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">输出极性<label class="lable-required">*</label></label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="OutputPolarity" type="text" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">备注<label class="lable-required">*</label></label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="Remark" type="text" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">记录员<label class="lable-required">*</label></label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="Recorder" type="text" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">记录时间<label class="lable-required">*</label></label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="RecordingTime" type="text" autocomplete="off" value="@DateTime.Now.ToString("yyyy-MM-dd")" class="layui-input layui-date">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">校核<label class="lable-required">*</label></label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="AuditBy" type="text" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">校核时间<label class="lable-required">*</label></label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="AuditTime" type="text" autocomplete="off" value="@DateTime.Now.ToString("yyyy-MM-dd")" class="layui-input layui-date">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label  layui-col-sm3">图片</label>
                    <div class="ayui-input-inline layui-col-sm6">
                        @*<input type="file" id="image" name="image" required lay-verify="required" placeholder="请选择一张图片" autocomplete="off" class="layui-input">*@
                        <input type="file" id="weldTechFile" />
                    </div>
                </div>
                <div class="layui-col-sm6">
                    @*<img style="width:200px;height:200px;" src="~/UploadFile/images/1.png" />*@
                    <img  id="weldTechFileShow" class="showImg" alt="show-img" src="#" style="width:200px;height:200px;" />
                </div>
                <!--表单验证按钮-->
                <button class="layui-btn" style="display:none" name="fromAdd" lay-filter="fromAdd" lay-submit>fromAdd</button>
                <button class="layui-btn" style="display:none" name="fromUpdate" lay-filter="fromUpdate" lay-submit>fromUpdate</button>
            </div>
        </div>
        <div hidden>
            <input name="id" readonly type="text" class="layui-input">
            <input name="createBy" type="text" readonly class="layui-input">
            <input name="createTime" type="text" readonly class="layui-input">
            <input name="updateTime" type="text" readonly class="layui-input">
            <input name="updateBy" type="text" readonly class="layui-input">
        </div>
    </form>
</div>


<div id="modifyFormDesc" class="layui-tab-item">
    <form class="layui-form layui-form-pane" action="" lay-filter="modifyFormDesc">
        <div class="layui-card">
            <div class="layui-row">
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">主表ID<label class="lable-required">*</label></label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="TechnologyHeadId" readonly type="text" lay-verify="required" class="layui-input form-readonly-color">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">层道数<label class="lable-required">*</label></label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="Floor" type="number" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">电流I(A)<label class="lable-required">*</label></label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="ElectricCurrent" type="number" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">
                        送丝速度(mm/min)
                        <label class="lable-required">*</label>
                    </label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="WireFeederSpeed" type="number" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">电压U(V)<label class="lable-required">*</label></label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="Voltage" type="number" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">焊接速度(mm/min)<label class="lable-required">*</label></label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="WeldingSpeed" type="number" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">摆动速度(mm/min)<label class="lable-required">*</label></label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="SwingSpeed" type="number" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">摆动宽度(mm)<label class="lable-required">*</label></label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="SwingWidth" type="number" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <label class="layui-form-label layui-col-sm3">停留时间(s)<label class="lable-required">*</label></label>
                    <div class="layui-input-inline layui-col-sm6">
                        <input name="StopTime" type="number" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
                    </div>
                </div>
                <button class="layui-btn" style="display:none" name="fromAddDesc" lay-filter="fromAddDesc" lay-submit>fromAddDesc</button>
                <button class="layui-btn" style="display:none" name="fromUpdateDesc" lay-filter="fromUpdateDesc" lay-submit>fromUpdateDesc</button>
            </div>
        </div>
        <div hidden>
            <input name="id" readonly type="text" class="layui-input">
            <input name="createBy" type="text" readonly class="layui-input">
            <input name="createTime" type="text" readonly class="layui-input">
            <input name="updateTime" type="text" readonly class="layui-input">
            <input name="updateBy" type="text" readonly class="layui-input">
        </div>
    </form>
</div>

<script type="text/html" id="toolbarTable">
    <div class="layui-btn-container">
        <a href="javascript:;" class="layui-btn layui-btn-sm" lay-event="btnSelect"><i class="layui-icon">&#xe628;</i>检索</a>
        <a href="javascript:;" class="layui-btn layui-btn-sm" lay-event="btnRefresh"><i class="layui-icon">&#xe9aa;</i>刷新</a>
        {{ loadMenus("WeldTechnology", 1) }}
    </div>
</script>

<script type="text/html" id="toolbarTableDesc">
    <div class="layui-btn-container">
        <a href="javascript:;" class="layui-btn layui-btn-sm" lay-event="btnRefresh"><i class="layui-icon">&#xe9aa;</i>刷新</a>
        {{ loadMenus("WeldTechnology", 2) }}
    </div>
</script>

@section Scripts
{
    <script type="text/javascript" src="/productjs/configure/WeldTechnology.js" asp-append-version="true"></script>
}