您的位置:365bet手机在线 > Web前端 > Web前端之家

Web前端之家

发布时间:2019-11-22 18:38编辑:Web前端浏览(123)

    一、载入复制代码 代码如下:

    二、Html 复制代码 代码如下:

    三、在Add中添加事件复制代码 代码如下: //工具条事件 function toolbarBtnItemClick { switch { case "add": addbill({}, true, '添加记录', false); break; case "view": var selected = grid.getSelected { LG.tip; return } addbill(selected, false, '查看记录', true); break; case "modify": var selected = grid.getSelected { LG.tip; return } addbill(selected, false, '修改记录', false); break; case "delete": jQuery.ligerDialog.confirm('确定删除吗?', function { if ; }); break; } }四、在函数下面,添加弹出框样式代码复制代码 代码如下: var detailWin = null, currentData = null, currentIsAddNew, currentIsView; function addbill(data, isAddNew, t, isview) { currentData = data; currentIsAddNew = isAddNew; currentIsView = isview; if { detailWin.set; detailWin.show(); } else { // 放入弹出窗口样式内容 } if { // public int LrId { get; set; } $.val(currentData.ProductName); $.val(currentData.ProductId); $.val(currentData.FormatName); $.val; $.val(currentData.DegreeName); $.val; $.val(currentData.AppendBill); $.val; $.val; $.val(currentData.BottleNum); $.val(currentData.BuyCompanyName); $.val(currentData.BuyCompanyId); $.val(currentData.VarietyName); $.val(currentData.VarietyId); $.val; $.val(currentData.FactoryName); $.val(currentData.FactoryId); $.val(currentData.FromPlaceName); $.val(currentData.FromPlaceId); } }五、弹出窗口样式中的内容复制代码 代码如下: var mainform = $; mainform.ligerForm({ inputWidth: 150, fields: [ { name: "ProId1", type: "hidden" }, // 隐藏字段,为弹出选择编号保存值 { display: "仓库", name: "Daihao1", newline: true, labelWidth: 100, width: 150, space: 30, type: "text", validate: { required: true, digits: true} }, { display: "商品名称", name: "ProId", comboboxName: "ProId2", newline: false, labelWidth: 100, width: 150, space: 30, type: "select", option: {} }, // 弹出选择框 { display: "单位", name: "DegreeId", comboboxName: "DegreeId2", newline: false, labelWidth: 100, width: 150, space: 30, type: "select", options: { valueFieldID: "DegreeId1", treeLeafOnly: false, tree: { url: "../handle/se1.ashx?ajaxaction=Getgree", checkbox: false}} }, { display: "生产日期", name: "MadeDate1", newline: true, labelWidth: 100, width: 150, space: 30, type: "date", validate: { required: true} }, { display: "备注", name: "mark", newline: false, labelWidth: 100, width: 150, space: 30, type: "text", validate: { required: true, digits: true} } ], toJSON: JSON2.stringify }); $.metadata.setType; LG.validate(mainform, { debug: true }); $.val; $; $.ligerui.get.set('onBeforeOpen', f_selectCoct) $.ligerui.get.set('onBeforeOpen', f_selectFary_1) $.ligerui.get.set('onBeforeOpen', f_selectFary_2) $.ligerui.get.set('onBeforeOpen', f_selectFroace) detailWin = $.ligerDialog.open({ target: $, width: 595, height: 460, top: 80, title: "添加保存修改窗口", //240 buttons: [ { text: '保存', onclick: function ; } }, { text: '取消', onclick: function ; } } ] });六、保存事件

    本文由365bet手机在线发布于Web前端,转载请注明出处:Web前端之家

    关键词: