| | |
| | | //连接SQL Server数据库的连接串,应该修改为与实际一致。如果是运行Grid++Report本身的例子,应该首先附加例子数据库到 |
| | | //SQL Server2000/2005数据库上。 |
| | | //public const string SqlConnStr = "Data Source=(local);Initial Catalog=gridreport;Persist Security Info=True;User ID=sa;Password=;"; |
| | | |
| | | //public const string SqlConnStr = "Data Source=47.96.97.237,15127;Initial Catalog=HX_LMESsys;Persist Security Info=True;User ID=HX_USER;Password=lc@841022;"; |
| | | public const string SqlConnStr = "Data Source=.;Initial Catalog=HX_LimsSys;Persist Security Info=True;User ID=HX_USER;Password=lc@841022;"; |
| | | public const string SqlConnStr = "Data Source=47.96.97.237,15127;Initial Catalog=HX_LMESsys;Persist Security Info=True;User ID=HX_USER;Password=lc@841022;"; |
| | | //夏宝 |
| | | //public const string SqlConnStr = "Data Source=192.168.1.239;Initial Catalog=HX_LimsSys;Persist Security Info=True;User ID=HX_USER;Password=lc@841022;"; |
| | | |
| | | //public string sServer; |
| | | //public string sDataBase; |
| | |
| | | , { field: 'HItemID', title: '主键', width: 100, hide: true } |
| | | , { field: '状态', title: '状态', width: 100, sort: true/*, fixed: true*/ } |
| | | , { field: '条码编号', title: '条码编号', width: 180, sort: true/*, fixed: true*/ } |
| | | , { field: '物料代码', title: '物料代码', width: 180, sort: true/*, fixed: true*/ } |
| | | , { field: '物料名称', title: '物料名称', width: 180, sort: true } |
| | | , { field: '规格型号', title: '规格型号', width: 180, sort: true } |
| | | , { field: '物料编码', title: '物料编码', width: 120, sort: true/*, fixed: true*/ } |
| | | , { field: '物料代码', title: '物料代码', width: 120, sort: true/*, fixed: true*/ } |
| | | , { field: '物料名称', title: '物料名称', width: 120, sort: true } |
| | | , { field: '规格型号', title: '规格型号', width: 120, sort: true } |
| | | , { field: '计量单位', title: '计量单位', width: 80, sort: true } |
| | | , { field: '数量', title: '数量', width: 100, sort: true } |
| | | , { field: '批次', title: '批次', width: 100 } |
| | |
| | | } |
| | | rows = rows.substring(rows.length - 1, 0); |
| | | rows2 = rows2.substring(rows2.length - 1, 0); |
| | | if(rows=="") |
| | | { |
| | | if (rows == "") { |
| | | layer.msg("至少选择一行记录!") |
| | | } |
| | | else{ |
| | |
| | | , { field: '日期', title: '日期', width: 180, sort: true/*, fixed: 'left' */ } |
| | | , { field: '供应商', title: '供应商', width: 180, sort: true/*, fixed: 'left' */ } |
| | | , { field: '计划跟踪单号', title: '计划跟踪单号', sort: true, hide: true } |
| | | , { field: '物料代码', title: '物料代码', width: 180, sort: true } |
| | | , { field: '物料名称', title: '物料名称', width: 180, sort: true } |
| | | , { field: '规格型号', title: '规格型号', width: 180, sort: true } |
| | | , { field: '物料编码', title: '物料编码', width: 120, sort: true } |
| | | , { field: '物料代码', title: '物料代码', width: 120, sort: true } |
| | | , { field: '物料名称', title: '物料名称', width: 120, sort: true } |
| | | , { field: '规格型号', title: '规格型号', width: 120, sort: true } |
| | | , { field: '计量单位', title: '计量单位', width: 80, sort: true } |
| | | , { field: '数量', title: '订货数量', sort: true } |
| | | , { field: '交货地点', title: '交货地点', sort: true } |
| | |
| | | <div class="layui-btn-container"> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-getCheckData"><i class="layui-icon layui-icon-tips"></i>预览</button>--> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-reload"><i class="layui-icon layui-icon-refresh"></i>刷新</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Audit"><i class="layui-icon layui-icon-radio"></i>审核</button> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Audit"><i class="layui-icon layui-icon-radio"></i>审核</button>--> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-confirm"><i class="layui-icon layui-icon-ok-circle"></i>确认</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-back"><i class="layui-icon layui-icon-close-fill"></i>驳回</button>--> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-details"><i class="layui-icon layui-icon-form"></i>详情</button> |
| | |
| | | , { field: 'hsubid', title: 'hsubid', sort: true/*, fixed: true*/, hide: true } |
| | | , { field: '状态', title: '状态', width: 100, sort: true/*, fixed: true*/ } |
| | | , { field: '单据状态', title: '单据状态', sort: true/*, fixed: true*/ } |
| | | , { field: '单据号', title: '单据号', width: 180, sort: true/*, fixed: true*/ } |
| | | , { field: '送货单号', title: '送货单号', width: 180, sort: true/*, fixed: true*/ } |
| | | , { field: '物流单号', title: '物流单号', width: 180, sort: true/*, fixed: true*/ } |
| | | , { field: '物料代码', title: '物料代码', width: 180, sort: true } |
| | | , { field: '物料名称', title: '物料名称', width: 180, sort: true } |
| | | , { field: '规格型号', title: '规格型号', width: 180, sort: true } |
| | | , { field: '单据号', title: '单据号', width: 150, sort: true/*, fixed: true*/ } |
| | | , { field: '送货单号', title: '送货单号', width: 150, sort: true/*, fixed: true*/ } |
| | | , { field: '物流单号', title: '物流单号', width: 150, sort: true/*, fixed: true*/ } |
| | | , { field: '物料编码', title: '物料编码', width: 120, sort: true } |
| | | , { field: '物料代码', title: '物料代码', width: 120, sort: true } |
| | | , { field: '物料名称', title: '物料名称', width: 120, sort: true } |
| | | , { field: '规格型号', title: '规格型号', width: 120, sort: true } |
| | | , { field: '计量单位', title: '计量单位', width: 80, sort: true } |
| | | , { field: '数量', title: '订货数量', width: 100, sort: true } |
| | | , { field: '未生成条码数量', title: '未生成条码数量', width: 100, sort: true } |
| | | , { field: '合格数量', title: '合格数量', width: 100, sort: true } |
| | | , { field: '不合格数量', title: '不合格数量', width: 100, sort: true } |
| | | , { field: '含税单价', title: '含税单价', width: 100, sort: true } |
| | | , { field: '金额', title: '金额', width: 100, sort: true } |
| | | , { field: '含税单价', title: '含税单价', width: 100, sort: true, hide: true } |
| | | , { field: '金额', title: '金额', width: 100, sort: true, hide: true } |
| | | , { field: '日期', title: '日期', width: 150, sort: true } |
| | | , { field: '批次', title: '批次', width: 150, sort: true } |
| | | , { field: '生产日期', title: '生产日期', width: 150, sort: true } |
| | |
| | | layer.msg("请选择数据", { icon: 5 }); |
| | | return; |
| | | } |
| | | for (var i = 0; i < data.length; i++) { |
| | | if (data[i].单据状态 != "审核") { |
| | | layer.msg("选中行未审核", { icon: 5 }); |
| | | return; |
| | | } |
| | | } |
| | | //for (var i = 0; i < data.length; i++) { |
| | | // if (data[i].单据状态 != "审核") { |
| | | // layer.msg("选中行未审核", { icon: 5 }); |
| | | // return; |
| | | // } |
| | | //} |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['50%', '50%'] |
| | |
| | | , { field: 'HKFDate', title: '生产日期', align: 'center', width: 150, data_field: 'HKFDate', event: "chooseHKFDate" } |
| | | , { field: 'HKFPeriod', title: '保质期', width: 100 } |
| | | , { field: 'HDate', title: '预计到货日期', align: 'center', width: 150, data_field: 'HDate', event: "chooseHDate", hide: true } |
| | | , { field: 'HPrice', title: '单价', width: 100 } |
| | | , { field: 'HMoney', title: '金额', width: 100 } |
| | | , { field: 'HPrice', title: '单价', width: 100, hide: true } |
| | | , { field: 'HMoney', title: '金额', width: 100, hide: true} |
| | | //, { field: 'HRemark', title: '备注', width: 100 } |
| | | , { field: 'HPOOrderInterID', title: '采购订单主内码', width: 150, hide: true } |
| | | , { field: 'HPOOrderEntryID', title: '采购订单子内码', width: 150, hide: true } |
| | |
| | | , { field: 'HSupID', title: 'HSupID', width: 180, hide: true } |
| | | , { field: '供应商', title: '供应商', width: 180, sort: true/*, fixed: 'left' */} |
| | | , { field: '计划跟踪单号', title: '计划跟踪单号', sort: true, hide: true } |
| | | , { field: '物料代码', title: '物料代码', width: 180, sort: true } |
| | | , { field: '物料名称', title: '物料名称', width: 180, sort: true } |
| | | , { field: '规格型号', title: '规格型号', width: 180, sort: true } |
| | | , { field: '物料编码', title: '物料编码', width: 120, sort: true } |
| | | , { field: '物料代码', title: '物料代码', width: 120, sort: true } |
| | | , { field: '物料名称', title: '物料名称', width: 120, sort: true } |
| | | , { field: '规格型号', title: '规格型号', width: 120, sort: true } |
| | | , { field: '计量单位', title: '计量单位', width: 80, sort: true } |
| | | , { field: '数量', title: '订货数量', sort: true } |
| | | , { field: '交货地点', title: '交货地点', sort: true } |