@{
    ViewBag.Title = "SeachInventory";
    Layout = "~/Views/Shared/_Index.cshtml";
}
<link href="~/Content/js/select2/select2.min.css" rel="stylesheet" />
<link href="~/Content/js/dialog/dialog.css" rel="stylesheet" />
<script src="~/Content/js/datepicker/WdatePicker.js"></script>
<script src="~/Content/js/select2/select2.min.js"></script>
<style>
    .divbox{
        margin-left:20px;
        margin-top:10px;
        display:inline-block;
        float:left;
    }
    .divformValue{
        display:inline-block;
          float:left;
    }
    .divformTitle{
          display:inline-block;
           float:left;
    }
    /*.divformValue{
          display:inline-block;
    }*/

</style>
<script>
    var Type = '';
    debugger;
    $(function () {
        Extension();
        Init();
    });

    function Extension() {
        $.ajax({
            url: "/WMS/WMSCreateItemLot/SelectICSExtensionEnable" + "?" + Math.random(),
            dataType: "json",
            async: false,
            success: function (data) {
                debugger;
                if (data != null && data.length > 0) {
                    for (var i = 0; i < data.length; i++) {
                        if (data[i].ColCode == 'ProjectCode') { $("#ProjectCode").css('display', 'none'); }
                        if (data[i].ColCode == 'BatchCode') { $("#BatchCode").css('display', 'none'); }
                        if (data[i].ColCode == 'Version') { $("#Version").css('display', 'none'); }
                        if (data[i].ColCode == 'Brand') { $("#Brand").css('display', 'none'); }
                        if (data[i].ColCode == 'cFree1') { $("#cFree1").css('display', 'none'); }
                        if (data[i].ColCode == 'cFree2') { $("#cFree2").css('display', 'none'); }
                        if (data[i].ColCode == 'cFree3') { $("#cFree3").css('display', 'none'); }
                        if (data[i].ColCode == 'cFree4') { $("#cFree4").css('display', 'none'); }
                        if (data[i].ColCode == 'cFree5') { $("#cFree5").css('display', 'none'); }
                        if (data[i].ColCode == 'cFree6') { $("#cFree6").css('display', 'none'); }
                        if (data[i].ColCode == 'cFree7') { $("#cFree7").css('display', 'none'); }
                        if (data[i].ColCode == 'cFree8') { $("#cFree8").css('display', 'none'); }
                        if (data[i].ColCode == 'cFree9') { $("#cFree9").css('display', 'none'); }
                        if (data[i].ColCode == 'cFree10') { $("#cFree10").css('display', 'none'); }
                    }
                }
            }
        });


    }



    function Init() {
        document.getElementById("gridPanel").innerHTML = ' <span><strong>详细信息</strong></span>  <table id="gridList"></table>   ';//重置grid
        var LotNo = $("#txt_LotNo").val();
        $("#gridList").dataGrid({
            url: "/WMS/ICSMTDOC/GetRepertory" + "?LotNo=" + LotNo + "&" + Math.random(),
            height: $(window).height() - 20,
            width: $(window).width() - 300,
            colModel: [
        { label: '主键', name: 'ID', hidden: true, key: true },
        { label: '仓库', name: 'WarehouseCode', width: 100, align: 'left' },
        { label: '条码', name: 'LotNo', width: 100, align: 'left' },
        { label: '料品编码', name: 'InvCode', width: 100, align: 'left' },
        { label: '物料描述', name: 'InvName', width: 100, align: 'left' },
        { label: '辅助描述', name: 'InvDesc', width: 100, align: 'left' },
        { label: '规格型号', name: 'InvStd', width: 100, align: 'left' },
        { label: '单位', name: 'InvUnit', width: 100, align: 'left' },
        { label: '总数量', name: 'Quantity', width: 100, align: 'left' },
        { label: '辅计量数量', name: 'Amount', width: 100, align: 'left' },
       
            ],
      shrinkToFit: false,//宽度自适应
        autowidth: true,
        gridComplete: function () {
        },
      
        rowNum: 10000,
        autoScroll: true,
        sortname: 'LotNO',
        sortorder: "desc",
        viewrecords: true,
        multiselect: true, 
        })
    };



    function submitForm() {
        var rows = $("#gridList").jqGrid('getGridParam', 'selarrrow');
        if (rows.length <= 0) {
            $.modalAlertNew("WMS00080");
            return;
        }
        var InvCode = $("#txtInvCode").val();
        var Memo = $("#txtMemo").val();
        var ICSMTDOC = [];
        for (var i = 0; i < rows.length; i++) {
            var rowData = $("#gridList").jqGrid('getRowData', rows[i]);
            if (rowData.Amount=='') {
                var Amounts = 0;
            } else {
                var Amounts = rowData.Amount;
            }
            var FlagProjectCode = '';
            var FlagBatchCode = '';
            var FlagVersion = '';
            var FlagBrand = '';
            var FlagcFree1 = '';
            var FlagcFree2 = '';
            var FlagcFree3 = '';
            var FlagcFree4 = '';
            var FlagcFree5 = '';
            var FlagcFree6 = '';
            var FlagcFree7 = '';
            var FlagcFree8 = '';
            var FlagcFree9 = '';
            var FlagcFree10 = '';
            var FlagInvCode = '';
            if ($("#BatchCodebox").is(':checked')) {
                FlagBatchCode = '1';
            }
            if ($("#ProjectCodebox").is(':checked')) {
                FlagProjectCode = '1';
            }
            if ($("#Versionbox").is(':checked')) {
                FlagVersion = '1';
            }
            if ($("#Brandbox").is(':checked')) {
                FlagBrand = '1';
            }
            if ($("#cFree1box").is(':checked')) {
                FlagcFree1 = '1';
            }
            if ($("#cFree2box").is(':checked')) {
                FlagcFree2 = '1';
            }
            if ($("#cFree3box").is(':checked')) {
                FlagcFree3 = '1';
            }
            if ($("#cFree4box").is(':checked')) {
                FlagcFree4 = '1';
            }
            if ($("#cFree5box").is(':checked')) {
                FlagcFree5 = '1';
            }
            if ($("#cFree6box").is(':checked')) {
                FlagcFree6 = '1';
            }
           if ($("#cFree7box").is(':checked')) {
                FlagcFree7 = '1';
           }
           if ($("#cFree8box").is(':checked')) {
               FlagcFree8 = '1';
           }
           if ($("#cFree9box").is(':checked')) {
               FlagcFree9 = '1';
           }
           if ($("#cFree10box").is(':checked')) {
               FlagcFree10 = '1';
           }
           if ($("#InvCodebox").is(':checked')) {
               FlagInvCode = '1';
           }
            var obj = {
                WHCode: rowData.WarehouseCode,//仓库
                LotNo: rowData.LotNo,//条码
                Quantity: rowData.Quantity,//数量
                Amount: Amounts,//辅计量数量
                MTDOCQuantity: rowData.Quantity,//已转换数量
                ProjectCode: $("#txtProjectCode").val(),
                BatchCode: $("#txtBatchCode").val(),
                Version: $("#txtVersion").val(),
                Brand: $("#txtBrand").val(),
                cFree1: $("#txtcFree1").val(),
                cFree2: $("#txtcFree2").val(),
                cFree3: $("#txtcFree3").val(),
                cFree4: $("#txtcFree4").val(),
                cFree5: $("#txtcFree5").val(),
                cFree6: $("#txtcFree6").val(),
                cFree7: $("#txtcFree7").val(),
                cFree8: $("#txtcFree8").val(),
                cFree9: $("#txtcFree9").val(),
                cFree10: $("#txtcFree10").val(),
                FlagProjectCode: FlagProjectCode,
                FlagBatchCode: FlagBatchCode,
                FlagVersion: FlagVersion,
                FlagBrand: FlagBrand,
                FlagcFree1: FlagcFree1,
                FlagcFree2: FlagcFree2,
                FlagcFree3: FlagcFree3,
                FlagcFree4: FlagcFree4,
                FlagcFree5: FlagcFree5,
                FlagcFree6: FlagcFree6,
                FlagcFree7: FlagcFree7,
                FlagcFree8: FlagcFree8,
                FlagcFree9: FlagcFree9,
                FlagcFree10: FlagcFree10,
                FlagInvCode: FlagInvCode,
            }
            ICSMTDOC.push(obj);
        }

        $.modalConfirm("确定保存吗?", function (r) {
            if (r) {
                $.submitForm({
                    url: "/WMS/ICSMTDOC/CreateICSMTDOC?InvCode=" + InvCode  + "&Memo=" + Memo + "&" + Math.random(),
                    param: { ICSMTDOC: JSON.stringify(ICSMTDOC) },
                    success: function () {
                        $.currentWindow().$("#gridList").trigger("reloadGrid");
                    }
                })
            }
        });
    };





    
    //监听Check事件
    function OncheckBox1() {
        if ($("#InvCodebox").is(':checked')) {
            $('#txtInvCode').attr("disabled", false);
        } else {
            $("#txtInvCode").attr("disabled", "disabled");
        }
    }
    function OncheckBox2() {
        if ($("#BatchCodebox").is(':checked')) {
          
            $('#txtBatchCode').attr("disabled", false);
        } else {
            $("#txtBatchCode").attr("disabled", "disabled");
        }
    }
    function OncheckBoxProjectCode() {
        if ($("#ProjectCodebox").is(':checked')) {

            $('#txtProjectCode').attr("disabled", false);
        } else {
            $("#txtProjectCode").attr("disabled", "disabled");
        }
    }
    function OncheckBoxVersion() {
        if ($("#Versionbox").is(':checked')) {

            $('#txtVersion').attr("disabled", false);
        } else {
            $("#txtVersion").attr("disabled", "disabled");
        }
    }
    function OncheckBoxBrand() {
        if ($("#Brandbox").is(':checked')) {

            $('#txtBrand').attr("disabled", false);
        } else {
            $("#txtBrand").attr("disabled", "disabled");
        }
    }
    function OncheckBoxcFree1() {
        if ($("#cFree1box").is(':checked')) {

            $('#txtcFree1').attr("disabled", false);
        } else {
            $("#txtcFree1").attr("disabled", "disabled");
        }
    }
    function OncheckBoxcFree2() {
        if ($("#cFree2box").is(':checked')) {

            $('#txtcFree2').attr("disabled", false);
        } else {
            $("#txtcFree2").attr("disabled", "disabled");
        }
    }
    function OncheckBoxcFree3() {
        if ($("#cFree3box").is(':checked')) {

            $('#txtcFree3').attr("disabled", false);
        } else {
            $("#txtcFree3").attr("disabled", "disabled");
        }
    }
    function OncheckBoxcFree4() {
        if ($("#cFree4box").is(':checked')) {

            $('#txtcFree4').attr("disabled", false);
        } else {
            $("#txtcFree4").attr("disabled", "disabled");
        }
    }
    function OncheckBoxcFree5() {
        if ($("#cFree5box").is(':checked')) {

            $('#txtcFree5').attr("disabled", false);
        } else {
            $("#txtcFree5").attr("disabled", "disabled");
        }
    }
    function OncheckBoxcFree6() {
        if ($("#cFree6box").is(':checked')) {

            $('#txtcFree6').attr("disabled", false);
        } else {
            $("#txtcFree6").attr("disabled", "disabled");
        }
    }
    function OncheckBoxcFree7() {
        if ($("#cFree7box").is(':checked')) {

            $('#txtcFree7').attr("disabled", false);
        } else {
            $("#txtcFree7").attr("disabled", "disabled");
        }
    }
    function OncheckBoxcFree8() {
        if ($("#cFree8box").is(':checked')) {

            $('#txtcFree8').attr("disabled", false);
        } else {
            $("#txtcFree8").attr("disabled", "disabled");
        }
    }
    function OncheckBoxcFree9() {
        if ($("#cFree9box").is(':checked')) {

            $('#txtcFree9').attr("disabled", false);
        } else {
            $("#txtcFree9").attr("disabled", "disabled");
        }
    }
    function OncheckBoxcFree10() {
        if ($("#cFree10box").is(':checked')) {

            $('#txtcFree10').attr("disabled", false);
        } else {
            $("#txtcFree10").attr("disabled", "disabled");
        }
    }

    //物料
    function GetInventory() {
        $.modalOpen({
            id: "GetICSInventory",
            title: "形态转换",
            url: "/WMS/ICSMTDOC/GetICSInventory?"+ Math.random(),
            width: "1000px",
            height: "1000px",
            callBack: function (iframeId) {
                var obj = top.frames[iframeId].submitForm();
                $("#txtInvCode").val(obj.InvCode);
                top.frames[iframeId].Close();
            }
        })
    }
    //批次
    function GetBatchCode() {
        $.modalOpen({
            id: "GetBatchCode",
            title: "批次",
            url: "/WMS/ICSMTDOC/GetBatchCode?Type=" + 2 + "&" + Math.random(),
            width: "1000px",
            height: "1000px",
            callBack: function (iframeId) {
                var obj = top.frames[iframeId].submitForm();
                $("#txtBatchCode").val(obj.Code);
                top.frames[iframeId].Close();
            }
        })
    }
    //项目号
    function GetProjectCode() {
        debugger;
        $.modalOpen({
            id: "GetProjectCode",
            title: "项目号",
            url: "/WMS/ICSMTDOC/GetBatchCode?Type=" + 1 + "&" + Math.random(),
            width: "1000px",
            height: "1000px",
            callBack: function (iframeId) {
                var obj = top.frames[iframeId].submitForm();
                $("#txtProjectCode").val(obj.Code);
                top.frames[iframeId].Close();
            }
        })
    }
    //版本
    function GetVersion() {
        $.modalOpen({
            id: "GetVersion",
            title: "版本",
            url: "/WMS/ICSMTDOC/GetBatchCode?Type=" + 3 + "&" + Math.random(),
            width: "1000px",
            height: "1000px",
            callBack: function (iframeId) {
                var obj = top.frames[iframeId].submitForm();
                $("#txtVersion").val(obj.Code);
                top.frames[iframeId].Close();
            }
        })
    }
    //厂牌
    function GetBrand() {
        $.modalOpen({
            id: "GetBrand",
            title: "版本",
            url: "/WMS/ICSMTDOC/GetBatchCode?Type=" + 4 + "&" + Math.random(),
            width: "1000px",
            height: "1000px",
            callBack: function (iframeId) {
                var obj = top.frames[iframeId].submitForm();
                $("#txtBrand").val(obj.Code);
                top.frames[iframeId].Close();
            }
        })
    }
    //自由项1
    function GetcFree1() {
        $.modalOpen({
            id: "GetcFree1",
            title: "自由项1",
            url: "/WMS/ICSMTDOC/GetBatchCode?Type=" + 5 + "&" + Math.random(),
            width: "1000px",
            height: "1000px",
            callBack: function (iframeId) {
                var obj = top.frames[iframeId].submitForm();
                $("#txtcFree1").val(obj.Code);
                top.frames[iframeId].Close();
            }
        })
    }

    //自由项2
    function GetcFree2() {
        $.modalOpen({
            id: "GetcFree2",
            title: "自由项2",
            url: "/WMS/ICSMTDOC/GetBatchCode?Type=" + 6 + "&" + Math.random(),
            width: "1000px",
            height: "1000px",
            callBack: function (iframeId) {
                var obj = top.frames[iframeId].submitForm();
                $("#txtcFree2").val(obj.Code);
                top.frames[iframeId].Close();
            }
        })
    }
    //自由项3
    function GetcFree3() {
        $.modalOpen({
            id: "GetcFree3",
            title: "自由项3",
            url: "/WMS/ICSMTDOC/GetBatchCode?Type=" + 7 + "&" + Math.random(),
            width: "1000px",
            height: "1000px",
            callBack: function (iframeId) {
                var obj = top.frames[iframeId].submitForm();
                $("#txtcFree3").val(obj.Code);
                top.frames[iframeId].Close();
            }
        })
    }
    //自由项4
    function GetcFree4() {
        $.modalOpen({
            id: "GetcFree4",
            title: "自由项4",
            url: "/WMS/ICSMTDOC/GetBatchCode?Type=" + 8 + "&" + Math.random(),
            width: "1000px",
            height: "1000px",
            callBack: function (iframeId) {
                var obj = top.frames[iframeId].submitForm();
                $("#txtcFree4").val(obj.Code);
                top.frames[iframeId].Close();
            }
        })
    }
    //自由项5
    function GetcFree5() {
        $.modalOpen({
            id: "GetcFree5",
            title: "自由项5",
            url: "/WMS/ICSMTDOC/GetBatchCode?Type=" + 9 + "&" + Math.random(),
            width: "1000px",
            height: "1000px",
            callBack: function (iframeId) {
                var obj = top.frames[iframeId].submitForm();
                $("#txtcFree5").val(obj.Code);
                top.frames[iframeId].Close();
            }
        })
    }
    //自由项6
    function GetcFree6() {
        $.modalOpen({
            id: "GetcFree6",
            title: "自由项6",
            url: "/WMS/ICSMTDOC/GetBatchCode?Type=" + 10 + "&" + Math.random(),
            width: "1000px",
            height: "1000px",
            callBack: function (iframeId) {
                var obj = top.frames[iframeId].submitForm();
                $("#txtcFree6").val(obj.Code);
                top.frames[iframeId].Close();
            }
        })
    }
    //自由项7
    function GetcFree7() {
        $.modalOpen({
            id: "GetcFree7",
            title: "自由项7",
            url: "/WMS/ICSMTDOC/GetBatchCode?Type=" + 11 + "&" + Math.random(),
            width: "1000px",
            height: "1000px",
            callBack: function (iframeId) {
                var obj = top.frames[iframeId].submitForm();
                $("#txtcFree7").val(obj.Code);
                top.frames[iframeId].Close();
            }
        })
    }
    //自由项8
    function GetcFree8() {
        $.modalOpen({
            id: "GetcFree8",
            title: "自由项8",
            url: "/WMS/ICSMTDOC/GetBatchCode?Type=" + 12 + "&" + Math.random(),
            width: "1000px",
            height: "1000px",
            callBack: function (iframeId) {
                var obj = top.frames[iframeId].submitForm();
                $("#txtcFree8").val(obj.Code);
                top.frames[iframeId].Close();
            }
        })
    }
    //自由项9
    function GetcFree9() {
        $.modalOpen({
            id: "GetcFree9",
            title: "自由项9",
            url: "/WMS/ICSMTDOC/GetBatchCode?Type=" + 13 + "&" + Math.random(),
            width: "1000px",
            height: "1000px",
            callBack: function (iframeId) {
                var obj = top.frames[iframeId].submitForm();
                $("#txtcFree9").val(obj.Code);
                top.frames[iframeId].Close();
            }
        })
    }
    //自由项10
    function GetcFree10() {
        $.modalOpen({
            id: "GetcFree10",
            title: "自由项10",
            url: "/WMS/ICSMTDOC/GetBatchCode?Type=" + 14 + "&" + Math.random(),
            width: "1000px",
            height: "1000px",
            callBack: function (iframeId) {
                var obj = top.frames[iframeId].submitForm();
                $("#txtcFree10").val(obj.Code);
                top.frames[iframeId].Close();
            }
        })
    }

    function Close() {
        $.modalClose();
    }
    function reloadData() {

    }




</script>
<div class="topPanel" style="height:50px">
    <div class="search">
        <table>
            <tr>
                <td>
                    <label>条码:</label>
                </td>
                <td>
                    <div class="input-group">
                        <input id="txt_LotNo" type="text" class="form-control" placeholder="条码" style="width: 120px;">
                    </div>
                </td>
                <td>
                    <a id="Search" authorize="yes" style="margin-left:3px;" class="btn btn-primary" onclick="Init()"><i class="fa fa-pencil-square-o"></i>查询</a>
                </td>
            </tr>
            <tr></tr>
        </table>
    </div>
</div>


<div style="margin-right: 20px;">
    <table class="form">
        <thead>选择转换料品</thead>
        <tr>
            <th class="formTitle"><input id="InvCodebox" type="checkbox" onclick="OncheckBox1(this)"> 料品编码:</th>
            <td class="formValue">
                <input id="txtInvCode" type="text" disabled="disabled" class="form-control" onclick="GetInventory()"  autocomplete="off" />
            </td>
            <th class="formTitle">转换原因:</th>
            <td class="formValue">
                <input id="txtMemo" type="text"  class="form-control" />
            </td>
        </tr>
    </table>
</div>

<div  style="height:135px" >
    <div style="width:260px" class="divbox" id="ProjectCode">
        <div class="formTitle divformTitle" style="width:75px"><input id="ProjectCodebox" type="checkbox" onclick="OncheckBoxProjectCode(this)"> 项目号:</div>
        <div class="input-group divformValue" >
            <input id="txtProjectCode" type="text" disabled="disabled"  onclick="GetProjectCode()" autocomplete="off" />
        </div>
    </div>
    <div style="width:260px" class="divbox" id="BatchCode">
        <div class="formTitle divformTitle" style="width:75px"><input id="BatchCodebox" type="checkbox" onclick="OncheckBox2(this)"> 批次:</div>
        <div class="input-group divformValue">
            <input id="txtBatchCode" type="text" disabled="disabled"  onclick="GetBatchCode()" autocomplete="off" />
        </div>
    </div >  
    <div style="width:260px" class="divbox" id="Version">
        <div class="formTitle divformTitle" style="width:75px"><input id="Versionbox" type="checkbox" onclick="OncheckBoxVersion(this)"> 版本:</div>
        <div class="input-group divformValue">
            <input id="txtVersion" type="text" disabled="disabled"  onclick="GetVersion()" autocomplete="off" />
        </div>
    </div>

    <div style="width:260px" class="divbox" id="Brand">
        <div class="formTitle divformTitle" style="width:75px"><input id="Brandbox" type="checkbox" onclick="OncheckBoxBrand(this)"> 厂牌:</div>
        <div class="input-group divformValue">
            <input id="txtBrand" type="text" disabled="disabled" onclick="GetBrand()" autocomplete="off" />
        </div>
    </div>

    <div style="width:260px" class="divbox" id="cFree1">
        <div class="formTitle divformTitle" style="width:75px"><input id="cFree1box" type="checkbox" onclick="OncheckBoxcFree1(this)"> 自由项1:</div>
        <div class="input-group divformValue">
            <input id="txtcFree1" type="text" disabled="disabled" onclick="GetcFree1()" autocomplete="off" />
        </div>
    </div>

    <div style="width:260px" class="divbox" id="cFree2">

        <div class="formTitle divformTitle" style="width:75px"><input id="cFree2box" type="checkbox" onclick="OncheckBoxcFree2(this)"> 自由项2:</div>
        <div class="input-group divformValue">
            <input id="txtcFree2" type="text" disabled="disabled"  onclick="GetcFree2()" autocomplete="off" />
        </div>
    </div>


    <div style="width:260px" class="divbox" id="cFree3">
        <div class="formTitle divformTitle" style="width:75px"><input id="cFree3box" type="checkbox" onclick="OncheckBoxcFree2(this)"> 自由项3:</div>
        <div class="input-group divformValue">
            <input id="txtcFree3" type="text" disabled="disabled" onclick="GetcFree3()" autocomplete="off" />
        </div>
    </div>

    <div style="width:260px" class="divbox" id="cFree4">
        <div class="formTitle divformTitle" style="width:75px"><input id="cFree4box" type="checkbox" onclick="OncheckBoxcFree4(this)"> 自由项4:</div>
        <div class="input-group divformValue">
            <input id="txtcFree4" type="text" disabled="disabled"  onclick="GetcFree4()" autocomplete="off" />
        </div>
    </div>
    <div style="width:260px" class="divbox" id="cFree5">

        <div class="formTitle divformTitle" style="width:75px"><input id="cFree5box" type="checkbox" onclick="OncheckBoxcFree5(this)"> 自由项5:</div>
        <div class="input-group divformValue">
            <input id="txtcFree5" type="text" disabled="disabled"  onclick="GetcFree5()" autocomplete="off" />
        </div>
    </div>
    <div style="width:260px" class="divbox" id="cFree6">
        <div class="formTitle divformTitle" style="width:75px"><input id="cFree6box" type="checkbox" onclick="OncheckBoxcFree6(this)"> 自由项6:</div>
        <div class="input-group divformValue">
            <input id="txtcFree6" type="text" disabled="disabled" onclick="GetcFree6()" autocomplete="off" />
        </div>
    </div>


    <div style="width:260px" class="divbox" id="cFree7">
        <div class="formTitle divformTitle" style="width:75px"><input id="cFree7box" type="checkbox" onclick="OncheckBoxcFree7(this)"> 自由项7:</div>
        <div class="input-group divformValue">
            <input id="txtcFree7" type="text" disabled="disabled"  onclick="GetcFree7()" autocomplete="off" />
        </div>
    </div>

    <div style="width:260px" class="divbox" id="cFree8">
        <div class="formTitle divformTitle" style="width:75px"><input id="cFree8box" type="checkbox" onclick="OncheckBoxcFree8(this)"> 自由项8:</div>
        <div class="input-group divformValue">
            <input id="txtcFree8" type="text" disabled="disabled"  onclick="GetcFree8()" autocomplete="off" />
        </div>
    </div>

    <div style="width:260px" class="divbox" id="cFree9">
        <div class="formTitle divformTitle" style="width:75px"><input id="cFree9box" type="checkbox" onclick="OncheckBoxcFree9(this)"> 自由项9:</div>
        <div class="input-group divformValue">
            <input id="txtcFree9" type="text" disabled="disabled"  onclick="GetcFree9()" autocomplete="off" />
        </div>
    </div>

    <div style="width:260px" class="divbox" id="cFree10">
        <div class="formTitle divformTitle" style="width:75px"><input id="cFree10box" type="checkbox" onclick="OncheckBoxcFree10(this)"> 自由项10:</div>
        <div class="input-group divformValue">
            <input id="txtcFree10" type="text" disabled="disabled" onclick="GetcFree10()" autocomplete="off" />
        </div>
    </div>


</div>


<div class="gridPanel" id="gridPanel" style="margin-top:10px">
    <table id="gridList"></table>
    <div id="gridPager"></div>
</div>