@@ -175,7 +175,7 @@ var bootstrap = function ($, learun) { | |||
keyId: 'rid', | |||
callback: function (_data) { | |||
if (_data['rname'] && _data['rname'] != 'undefined') { | |||
content += _data['rname']; | |||
content += _data['rcode'] + '(' + _data['rname'] + ')'; | |||
} | |||
} | |||
}); | |||
@@ -160,7 +160,7 @@ var bootstrap = function ($, learun) { | |||
keyId: 'rid', | |||
callback: function (_data) { | |||
if (_data['rname'] && _data['rname'] != 'undefined') { | |||
content += _data['rname']; | |||
content += _data['rcode'] + '(' + _data['rname'] + ')'; | |||
} | |||
} | |||
}); | |||
@@ -159,7 +159,7 @@ var bootstrap = function ($, learun) { | |||
return (cellvalue === true || cellvalue === "true") ? "<i class=\"fa fa-toggle-on\"></i>" : "<i class=\"fa fa-toggle-off\"></i>"; | |||
} | |||
}, | |||
{ label: "资产型号", name: "AModel", width: 150, align: "left" }, | |||
{ label: "规格型号", name: "AModel", width: 150, align: "left" }, | |||
{ label: "生产厂家", name: "AManufacturer", width: 150, align: "left" }, | |||
{ | |||
label: "资产来源", name: "ASource", width: 100, align: "left", | |||
@@ -186,7 +186,7 @@ var bootstrap = function ($, learun) { | |||
} | |||
}, | |||
{ label: "资产排序", name: "AOrder", width: 100, align: "left" }, | |||
{ label: "资产规格", name: "ASpecification", width: 100, align: "left" }, | |||
{ label: "资产品牌", name: "ASpecification", width: 100, align: "left" }, | |||
{ label: "用途", name: "AUse", width: 100, align: "left" }, | |||
], | |||
mainId: 'AId', | |||
@@ -155,7 +155,7 @@ var bootstrap = function ($, learun) { | |||
key: value, | |||
keyId: 'rid', | |||
callback: function (_data) { | |||
callback(_data['rname']); | |||
callback(_data['rcode'] + '(' + _data['rname'] + ')'); | |||
} | |||
}); | |||
} | |||
@@ -165,7 +165,7 @@ var bootstrap = function ($, learun) { | |||
key: value, | |||
keyId: 'rid', | |||
callback: function (_data) { | |||
callback(_data['rname']); | |||
callback(_data['rcode'] + '(' + _data['rname'] + ')'); | |||
} | |||
}); | |||
} | |||
@@ -14,7 +14,7 @@ | |||
<div class="lr-form-item-title">采购总价</div> | |||
<input id="AAPrice" type="text" class="form-control" readonly="readonly" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="Ass_AssetsInfoApply"> | |||
<div class="col-xs-12 lr-form-item" data-table="Ass_AssetsInfoApply" style="display: none"> | |||
<div class="lr-form-item-title">资产属性<font face="宋体">*</font></div> | |||
<div id="AAAssType" isvalid="yes" checkexpession="NotNull"></div> | |||
</div> | |||
@@ -158,14 +158,14 @@ var bootstrap = function ($, learun) { | |||
} | |||
}, | |||
{ | |||
label: '房间号', name: 'AAIStoragePosition', width: 100, align: 'left', | |||
label: '房间号', name: 'AAIStoragePosition', width: 150, align: 'left', | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ass_Storage_Room', | |||
key: value, | |||
keyId: 'rid', | |||
callback: function (_data) { | |||
callback(_data['rname']); | |||
callback(_data['rcode'] + '(' + _data['rname'] + ')'); | |||
} | |||
}); | |||
} | |||
@@ -105,7 +105,7 @@ var bootstrap = function ($, learun) { | |||
} | |||
}, | |||
{ | |||
label: '库房', name: 'AAIStorageId', width: 100, align: 'left', formatterAsync: function (callback, value, row, op, $cell) { | |||
label: '楼宇名称', name: 'AAIStorageId', width: 100, align: 'left', formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ass_StorageData', | |||
key: value, | |||
@@ -117,33 +117,33 @@ var bootstrap = function ($, learun) { | |||
} | |||
}, | |||
{ | |||
label: '库位', name: 'AAIStoragePosition', width: 100, align: 'left', | |||
label: '房间号', name: 'AAIStoragePosition', width: 100, align: 'left', | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ass_Storage_Room', | |||
key: value, | |||
keyId: 'rid', | |||
callback: function (_data) { | |||
callback(_data['rname']); | |||
callback(_data['rcode'] + '(' + _data['rname'] + ')'); | |||
} | |||
}); | |||
} | |||
}, | |||
//{ | |||
// label: '英文名称', name: 'AAIEName', width: 100, align: 'left' | |||
//}, | |||
{ | |||
label: '英文名称', name: 'AAIEName', width: 100, align: 'left' | |||
label: '规格型号', name: 'AAIModel', width: 100, align: 'left' | |||
}, | |||
//{ | |||
// label: '生产厂家', name: 'AAIManufacturer', width: 100, align: 'left' | |||
//}, | |||
{ | |||
label: '资产型号', name: 'AAIModel', width: 100, align: 'left' | |||
}, | |||
{ | |||
label: '生产厂家', name: 'AAIManufacturer', width: 100, align: 'left' | |||
}, | |||
{ | |||
label: '资产规格', name: 'AAISpecification', width: 100, align: 'left' | |||
}, | |||
{ | |||
label: '用途', name: 'AAIUse', width: 100, align: 'left' | |||
label: '资产品牌', name: 'AAISpecification', width: 100, align: 'left' | |||
}, | |||
//{ | |||
// label: '用途', name: 'AAIUse', width: 100, align: 'left' | |||
//}, | |||
{ | |||
label: '供应商', name: 'AAISupplierId', width: 100, align: 'left', formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
@@ -71,17 +71,17 @@ var bootstrap = function ($, learun) { | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '资产来源', name: 'AAISource', width: 100, align: 'left', formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'zcly', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
//{ | |||
// label: '资产来源', name: 'AAISource', width: 100, align: 'left', formatterAsync: function (callback, value, row, op, $cell) { | |||
// learun.clientdata.getAsync('dataItem', { | |||
// key: value, | |||
// code: 'zcly', | |||
// callback: function (_data) { | |||
// callback(_data.text); | |||
// } | |||
// }); | |||
// } | |||
//}, | |||
{ | |||
label: '单价', name: 'AAIPrice', width: 100, align: 'left' | |||
}, | |||
@@ -99,13 +99,13 @@ var bootstrap = function ($, learun) { | |||
}); | |||
} | |||
}, | |||
//{ | |||
// label: '生成资产明细', name: 'AAIHasDetail', width: 80, align: 'left', formatter: function (cellvalue) { | |||
// return (cellvalue === true || cellvalue === "true") ? "<i class=\"fa fa-toggle-on\"></i>" : "<i class=\"fa fa-toggle-off\"></i>"; | |||
// } | |||
//}, | |||
{ | |||
label: '生成资产明细', name: 'AAIHasDetail', width: 80, align: 'left', formatter: function (cellvalue) { | |||
return (cellvalue === true || cellvalue === "true") ? "<i class=\"fa fa-toggle-on\"></i>" : "<i class=\"fa fa-toggle-off\"></i>"; | |||
} | |||
}, | |||
{ | |||
label: '库房', name: 'AAIStorageId', width: 100, align: 'left', formatterAsync: function (callback, value, row, op, $cell) { | |||
label: '楼宇名称', name: 'AAIStorageId', width: 100, align: 'left', formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ass_StorageData', | |||
key: value, | |||
@@ -117,33 +117,33 @@ var bootstrap = function ($, learun) { | |||
} | |||
}, | |||
{ | |||
label: '库位', name: 'AAIStoragePosition', width: 100, align: 'left', | |||
label: '房间号', name: 'AAIStoragePosition', width: 100, align: 'left', | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ass_Storage_Room', | |||
key: value, | |||
keyId: 'rid', | |||
callback: function (_data) { | |||
callback(_data['rname']); | |||
callback(_data['rcode'] + '(' + _data['rname'] + ')'); | |||
} | |||
}); | |||
} | |||
}, | |||
//{ | |||
// label: '英文名称', name: 'AAIEName', width: 100, align: 'left' | |||
//}, | |||
{ | |||
label: '英文名称', name: 'AAIEName', width: 100, align: 'left' | |||
}, | |||
{ | |||
label: '资产型号', name: 'AAIModel', width: 100, align: 'left' | |||
}, | |||
{ | |||
label: '生产厂家', name: 'AAIManufacturer', width: 100, align: 'left' | |||
}, | |||
{ | |||
label: '资产规格', name: 'AAISpecification', width: 100, align: 'left' | |||
label: '规格型号', name: 'AAIModel', width: 100, align: 'left' | |||
}, | |||
//{ | |||
// label: '生产厂家', name: 'AAIManufacturer', width: 100, align: 'left' | |||
//}, | |||
{ | |||
label: '用途', name: 'AAIUse', width: 100, align: 'left' | |||
label: '资产品牌', name: 'AAISpecification', width: 100, align: 'left' | |||
}, | |||
//{ | |||
// label: '用途', name: 'AAIUse', width: 100, align: 'left' | |||
//}, | |||
{ | |||
label: '供应商', name: 'AAISupplierId', width: 100, align: 'left', formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
@@ -136,7 +136,7 @@ var bootstrap = function ($, learun) { | |||
} | |||
}, | |||
{ | |||
label: '库房', name: 'AAIStorageId', width: 100, align: 'left', formatterAsync: function (callback, value, row, op, $cell) { | |||
label: '楼宇名称', name: 'AAIStorageId', width: 100, align: 'left', formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ass_StorageData', | |||
key: value, | |||
@@ -148,33 +148,33 @@ var bootstrap = function ($, learun) { | |||
} | |||
}, | |||
{ | |||
label: '库位', name: 'AAIStoragePosition', width: 100, align: 'left', | |||
label: '房间号', name: 'AAIStoragePosition', width: 100, align: 'left', | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ass_Storage_Room', | |||
key: value, | |||
keyId: 'rid', | |||
callback: function (_data) { | |||
callback(_data['rname']); | |||
callback(_data['rcode'] + '(' + _data['rname'] + ')'); | |||
} | |||
}); | |||
} | |||
}, | |||
//{ | |||
// label: '英文名称', name: 'AAIEName', width: 100, align: 'left' | |||
//}, | |||
{ | |||
label: '英文名称', name: 'AAIEName', width: 100, align: 'left' | |||
label: '规格型号', name: 'AAIModel', width: 100, align: 'left' | |||
}, | |||
//{ | |||
// label: '生产厂家', name: 'AAIManufacturer', width: 100, align: 'left' | |||
//}, | |||
{ | |||
label: '资产型号', name: 'AAIModel', width: 100, align: 'left' | |||
}, | |||
{ | |||
label: '生产厂家', name: 'AAIManufacturer', width: 100, align: 'left' | |||
}, | |||
{ | |||
label: '资产规格', name: 'AAISpecification', width: 100, align: 'left' | |||
}, | |||
{ | |||
label: '用途', name: 'AAIUse', width: 100, align: 'left' | |||
label: '资产品牌', name: 'AAISpecification', width: 100, align: 'left' | |||
}, | |||
//{ | |||
// label: '用途', name: 'AAIUse', width: 100, align: 'left' | |||
//}, | |||
{ | |||
label: '供应商', name: 'AAISupplierId', width: 100, align: 'left', formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
@@ -164,7 +164,7 @@ var bootstrap = function ($, learun) { | |||
key: value, | |||
keyId: 'rid', | |||
callback: function (_data) { | |||
callback(_data['rname']); | |||
callback(_data['rcode'] + '(' + _data['rname'] + ')'); | |||
} | |||
}); | |||
} | |||
@@ -155,7 +155,7 @@ var bootstrap = function ($, learun) { | |||
key: value, | |||
keyId: 'rid', | |||
callback: function (_data) { | |||
callback(_data['rname']); | |||
callback(_data['rcode'] + '(' + _data['rname'] + ')'); | |||
} | |||
}); | |||
} | |||
@@ -33,11 +33,11 @@ | |||
<div id="AIASSClass"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItem"> | |||
<div class="lr-form-item-title">资产规格</div> | |||
<div class="lr-form-item-title">资产品牌</div> | |||
<input id="AISpecification" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItem"> | |||
<div class="lr-form-item-title">资产型号</div> | |||
<div class="lr-form-item-title">规格型号</div> | |||
<input id="AISpecificationtype" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItem"> | |||
@@ -54,11 +54,11 @@ | |||
<div id="AIASSClass"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItem"> | |||
<div class="lr-form-item-title">资产规格</div> | |||
<div class="lr-form-item-title">资产品牌</div> | |||
<input id="AISpecification" readonly="readonly" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItem"> | |||
<div class="lr-form-item-title">资产型号</div> | |||
<div class="lr-form-item-title">规格型号</div> | |||
<input id="AISpecificationtype" readonly="readonly" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItem"> | |||
@@ -270,9 +270,9 @@ var bootstrap = function ($, learun) { | |||
} | |||
}, | |||
{ label: "资产名称", name: "AIASSName", width: 200, align: "left" }, | |||
{ label: "资产规格", name: "AISpecification", width: 100, align: "left" }, | |||
{ label: "资产品牌", name: "AISpecification", width: 100, align: "left" }, | |||
{ | |||
label: "资产型号", name: "AISpecificationtype", width: 100, align: "left" | |||
label: "规格型号", name: "AISpecificationtype", width: 100, align: "left" | |||
}, | |||
//***************数量 | |||
{ | |||
@@ -244,14 +244,14 @@ var bootstrap = function ($, learun) { | |||
} | |||
}, | |||
{ | |||
label: "房间号", name: "AIIStoragePosition", width: 100, align: "left", | |||
label: "房间号", name: "AIIStoragePosition", width: 150, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ass_Storage_Room', | |||
key: value, | |||
keyId: 'rid', | |||
callback: function (_data) { | |||
callback(_data['rcode']); | |||
callback(_data['rcode'] + '(' + _data['rname'] + ')'); | |||
} | |||
}); | |||
} | |||
@@ -305,7 +305,7 @@ var bootstrap = function ($, learun) { | |||
// } | |||
//}, | |||
{ | |||
label: "资产型号", name: "AISpecificationtype", width: 100, align: "left" | |||
label: "规格型号", name: "AISpecificationtype", width: 100, align: "left" | |||
}, | |||
{ | |||
label: "资产属性", name: "AIAssType", width: 100, align: "left", | |||
@@ -372,7 +372,7 @@ var bootstrap = function ($, learun) { | |||
} | |||
}, | |||
{ label: "生产厂家", name: "AIManufacturer", width: 100, align: "left" }, | |||
{ label: "资产规格", name: "AISpecification", width: 100, align: "left" }, | |||
{ label: "资产品牌", name: "AISpecification", width: 100, align: "left" }, | |||
{ label: "用途", name: "AIUse", width: 100, align: "left" }, | |||
], | |||
mainId: 'AIId', | |||
@@ -209,14 +209,14 @@ var bootstrap = function ($, learun) { | |||
} | |||
}, | |||
{ | |||
label: "房间号", name: "AIIStoragePosition", width: 100, align: "left", | |||
label: "房间号", name: "AIIStoragePosition", width: 150, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ass_Storage_Room', | |||
key: value, | |||
keyId: 'rid', | |||
callback: function (_data) { | |||
callback(_data['rcode']); | |||
callback(_data['rcode'] + '(' + _data['rname'] + ')'); | |||
} | |||
}); | |||
} | |||
@@ -270,7 +270,7 @@ var bootstrap = function ($, learun) { | |||
// } | |||
//}, | |||
{ | |||
label: "资产型号", name: "AISpecificationtype", width: 100, align: "left" | |||
label: "规格型号", name: "AISpecificationtype", width: 100, align: "left" | |||
}, | |||
{ | |||
label: "资产属性", name: "AIAssType", width: 100, align: "left", | |||
@@ -337,7 +337,7 @@ var bootstrap = function ($, learun) { | |||
} | |||
}, | |||
{ label: "生产厂家", name: "AIManufacturer", width: 100, align: "left" }, | |||
{ label: "资产规格", name: "AISpecification", width: 100, align: "left" }, | |||
{ label: "资产品牌", name: "AISpecification", width: 100, align: "left" }, | |||
{ label: "用途", name: "AIUse", width: 100, align: "left" }, | |||
], | |||
mainId: 'AIId', | |||
@@ -116,9 +116,9 @@ var bootstrap = function ($, learun) { | |||
} | |||
}, | |||
{ label: "资产名称", name: "AIASSName", width: 200, align: "left" }, | |||
{ label: "资产规格", name: "AISpecification", width: 100, align: "left" }, | |||
{ label: "资产品牌", name: "AISpecification", width: 100, align: "left" }, | |||
{ | |||
label: "资产型号", name: "AISpecificationtype", width: 100, align: "left" | |||
label: "规格型号", name: "AISpecificationtype", width: 100, align: "left" | |||
}, | |||
{ | |||
label: "计量单位", name: "AIUnits", width: 100, align: "left", | |||
@@ -26,7 +26,7 @@ | |||
<input id="AAIEName" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItemApply"> | |||
<div class="lr-form-item-title">资产型号</div> | |||
<div class="lr-form-item-title">规格型号</div> | |||
<input id="AAIModel" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItemApply"> | |||
@@ -34,7 +34,7 @@ | |||
<input id="AAIManufacturer" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItemApply"> | |||
<div class="lr-form-item-title">资产规格</div> | |||
<div class="lr-form-item-title">资产品牌</div> | |||
<input id="AAISpecification" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItemApply"> | |||
@@ -27,7 +27,7 @@ | |||
<input id="AAIEName" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItemApply"> | |||
<div class="lr-form-item-title">资产型号</div> | |||
<div class="lr-form-item-title">规格型号</div> | |||
<input id="AAIModel" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItemApply"> | |||
@@ -35,7 +35,7 @@ | |||
<input id="AAIManufacturer" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItemApply"> | |||
<div class="lr-form-item-title">资产规格</div> | |||
<div class="lr-form-item-title">资产品牌</div> | |||
<input id="AAISpecification" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItemApply"> | |||
@@ -79,7 +79,7 @@ var bootstrap = function ($, learun) { | |||
} | |||
}); | |||
}}, | |||
{ label: "资产型号", name: "AAIModel", width: 100, align: "left"}, | |||
{ label: "规格型号", name: "AAIModel", width: 100, align: "left"}, | |||
{ label: "生产厂家", name: "AAIManufacturer", width: 100, align: "left"}, | |||
{ label: "资产来源", name: "AAISource", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op,$cell) { | |||
@@ -117,7 +117,7 @@ var bootstrap = function ($, learun) { | |||
{ label: "排序", name: "AAIOrder", width: 100, align: "left"}, | |||
{ label: "资产图片", name: "AAIPhoto", width: 100, align: "left"}, | |||
{ label: "资产描述", name: "AAIContent", width: 100, align: "left"}, | |||
{ label: "资产规格", name: "AAISpecification", width: 100, align: "left"}, | |||
{ label: "资产品牌", name: "AAISpecification", width: 100, align: "left"}, | |||
{ label: "用途", name: "AAIUse", width: 100, align: "left"}, | |||
], | |||
mainId:'AAIId', | |||
@@ -115,9 +115,9 @@ var bootstrap = function ($, learun) { | |||
} | |||
}, | |||
{ label: "资产名称", name: "AIASSName", width: 200, align: "left" }, | |||
{ label: "资产规格", name: "AISpecification", width: 100, align: "left" }, | |||
{ label: "资产品牌", name: "AISpecification", width: 100, align: "left" }, | |||
{ | |||
label: "资产型号", name: "AISpecificationtype", width: 100, align: "left" | |||
label: "规格型号", name: "AISpecificationtype", width: 100, align: "left" | |||
}, | |||
{ | |||
label: "计量单位", name: "AIUnits", width: 100, align: "left", | |||
@@ -234,6 +234,7 @@ var bootstrap = function ($, learun) { | |||
$('#AOIOldDepartment').lrselectSet(data.AIDepartment); | |||
$('#AOIUsePeople').lrselectSet(data.AIUsePeople); | |||
$('#AOIStorageId').lrselectSet(data.AIIStorageId); | |||
$('#AOIRoomId').lrselectSet(data.AIIStoragePosition); | |||
//$('#Ass_ReceiveItem').jfGridSet('refreshdata', tempdatra.sort(sortNumber)); | |||
}; | |||
@@ -83,7 +83,7 @@ var bootstrap = function ($, learun) { | |||
}); | |||
}}, | |||
{ label: "英文名称", name: "AOIEName", width: 100, align: "left"}, | |||
{ label: "资产型号", name: "AOIModel", width: 100, align: "left"}, | |||
{ label: "规格型号", name: "AOIModel", width: 100, align: "left"}, | |||
{ label: "生产厂家", name: "AOIManufacturer", width: 100, align: "left"}, | |||
{ label: "单价", name: "AOIPrice", width: 100, align: "left"}, | |||
{ label: "数量", name: "AOIStock", width: 100, align: "left"}, | |||
@@ -99,7 +99,7 @@ var bootstrap = function ($, learun) { | |||
}}, | |||
{ label: "出库照片", name: "AOIPhoto", width: 100, align: "left"}, | |||
{ label: "资产描述", name: "AOIContent", width: 100, align: "left"}, | |||
{ label: "资产规格", name: "AOISpecification", width: 100, align: "left"}, | |||
{ label: "资产品牌", name: "AOISpecification", width: 100, align: "left"}, | |||
{ label: "用途", name: "AOIUse", width: 100, align: "left"}, | |||
{ | |||
label: "使用人", name: "AOIUsePeople", width: 100, align: "left", | |||
@@ -251,6 +251,19 @@ namespace Learun.Application.Web.Areas.LR_NewWorkFlow.Controllers | |||
{ | |||
item.imgUrl = null; | |||
} | |||
if (item.F_Id == "3a9e9db8-a928-435b-a9d2-4a4660b4cdeb") | |||
{ | |||
item.F_Name = "采购申请(普通)"; | |||
item.F_CodeUrl = "/AssetManagementSystem/Ass_AssetsInfoApply/IndexJY"; | |||
item.F_Code = "caigoupt"; | |||
} | |||
else if (item.F_Id == "307b2c75-174f-424d-84d8-e0f8374ec6d1") | |||
{ | |||
item.F_Name = "采购申请(耗材)"; | |||
item.F_CodeUrl = "/AssetManagementSystem/Ass_AssetsInfoApply/IndexJYHC"; | |||
item.F_Code = "caigouhc"; | |||
} | |||
} | |||
return Success(data); | |||
} | |||
@@ -99,10 +99,12 @@ var bootstrap = function ($, learun) { | |||
bind: function () { | |||
// 加载自定义流程列表 | |||
learun.httpAsync('GET', top.$.rootUrl + '/LR_NewWorkFlow/NWFScheme/GetMyInfoListHasImg', {}, function (data) { | |||
console.log(data); | |||
schemeList = data; | |||
//增加资产申请项目 | |||
schemeList.push({ F_Id:'f1414358-cb9b-4eaf-927f-66f6d60e9280', F_Name: '采购申请(普通)', F_Code: 'caigoupt', F_Category: '资产类', F_CodeUrl: '/AssetManagementSystem/Ass_AssetsInfoApply/IndexJY' }); | |||
schemeList.push({ F_Id: '74701b0e-ad01-4836-9304-bb39222d3bcd', F_Name: '采购申请(耗材)', F_Code: 'caigouhc', F_Category: '资产类', F_CodeUrl: '/AssetManagementSystem/Ass_AssetsInfoApply/IndexJYHC' }); | |||
//增加资产申请项目--20210809 资产改到后台 | |||
//schemeList.push({ F_Id:'f1414358-cb9b-4eaf-927f-66f6d60e9280', F_Name: '采购申请(普通)', F_Code: 'caigoupt', F_Category: '资产类', F_CodeUrl: '/AssetManagementSystem/Ass_AssetsInfoApply/IndexJY' }); | |||
//schemeList.push({ F_Id: '74701b0e-ad01-4836-9304-bb39222d3bcd', F_Name: '采购申请(耗材)', F_Code: 'caigouhc', F_Category: '资产类', F_CodeUrl: '/AssetManagementSystem/Ass_AssetsInfoApply/IndexJYHC' }); | |||
console.log(schemeList); | |||
render(); | |||
}); | |||
@@ -130,6 +130,14 @@ namespace Learun.Application.WorkFlow | |||
/// <returns></returns> | |||
[NotMapped] | |||
public string F_ProcessId { get; set; } | |||
/// <summary> | |||
/// 地址 | |||
/// </summary> | |||
/// <returns></returns> | |||
[NotMapped] | |||
public string F_CodeUrl { get; set; } | |||
#endregion | |||
} | |||
} |
@@ -15,7 +15,7 @@ namespace Learun.Application.WorkFlow | |||
/// 日 期:2018.12.06 | |||
/// 描 述:工作流模板(新) | |||
/// </summary> | |||
public class NWFSchemeService: RepositoryFactory | |||
public class NWFSchemeService : RepositoryFactory | |||
{ | |||
#region 获取数据 | |||
/// <summary> | |||
@@ -34,7 +34,8 @@ namespace Learun.Application.WorkFlow | |||
strSql.Append(" FROM LR_NWF_SchemeInfo t LEFT JOIN LR_NWF_Scheme t1 ON t.F_SchemeId = t1.F_Id WHERE 1=1 "); | |||
var dp = new DynamicParameters(); | |||
if (!string.IsNullOrEmpty(queryJson)) { | |||
if (!string.IsNullOrEmpty(queryJson)) | |||
{ | |||
var queryParam = queryJson.ToJObject(); | |||
if (!queryParam["keyword"].IsEmpty()) | |||
{ | |||
@@ -87,7 +88,8 @@ namespace Learun.Application.WorkFlow | |||
var strSql = new StringBuilder(); | |||
strSql.Append("SELECT * "); | |||
strSql.Append(" FROM LR_NWF_SchemeInfo t WHERE t.F_EnabledMark = 1 AND t.F_Mark = 1 AND t.F_Kind = 1 AND t.F_Id in " + schemeinfoIds); | |||
strSql.Append(" FROM LR_NWF_SchemeInfo t WHERE (t.F_EnabledMark = 1 AND t.F_Mark = 1 AND t.F_Kind = 1 AND t.F_Id in " + schemeinfoIds + ")"); | |||
strSql.Append(" or t.F_Id in('3a9e9db8-a928-435b-a9d2-4a4660b4cdeb','307b2c75-174f-424d-84d8-e0f8374ec6d1')"); | |||
return this.BaseRepository().FindList<NWFSchemeInfoEntity>(strSql.ToString()); | |||
} | |||
@@ -180,7 +182,7 @@ namespace Learun.Application.WorkFlow | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 获取模板基础信息的实体 | |||
/// </summary> | |||
@@ -303,7 +305,7 @@ namespace Learun.Application.WorkFlow | |||
} | |||
} | |||
} | |||
#endregion | |||
@@ -492,7 +494,7 @@ namespace Learun.Application.WorkFlow | |||
strSql.Append(" and DATEPART(yyyy,p.F_CreateDate) = @year "); | |||
} | |||
strSql.Append(" where si.F_EnabledMark=1 "); | |||
return this.BaseRepository().FindList<NWFSchemeInfoEntity>(strSql.ToString(), dp); | |||
} | |||
catch (Exception ex) | |||