Quellcode durchsuchen

资产验收审批同意后生成的资产明细编号改为默认不生成

金隅分支
zhangli vor 3 Jahren
Ursprung
Commit
f9647664f1
9 geänderte Dateien mit 35 neuen und 18 gelöschten Zeilen
  1. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Controllers/Ass_AssetsInfoItemApplyController.cs
  2. +4
    -4
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Acceptance/FormItem.cshtml
  3. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Acceptance/FormItem.js
  4. +4
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoApply/FormJY.js
  5. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoApply/FormViewJY.cshtml
  6. +12
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoApply/FormViewJY.js
  7. +5
    -5
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItemApply/FormJY.cshtml
  8. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItemApply/FormJY.js
  9. +3
    -3
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_AcceptanceMain/Ass_AcceptanceMainService.cs

+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Controllers/Ass_AssetsInfoItemApplyController.cs Datei anzeigen

@@ -55,6 +55,7 @@ namespace Learun.Application.Web.Areas.AssetManagementSystem.Controllers
[HttpGet] [HttpGet]
public ActionResult FormJY() public ActionResult FormJY()
{ {
ViewBag.AAICode = CommonHelper.CreateNo();
return View(); return View();
} }


+ 4
- 4
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Acceptance/FormItem.cshtml Datei anzeigen

@@ -4,8 +4,8 @@
} }
<div class="lr-form-wrap" id="form"> <div class="lr-form-wrap" id="form">
<div class="col-xs-6 lr-form-item" data-table="Ass_Acceptance"> <div class="col-xs-6 lr-form-item" data-table="Ass_Acceptance">
<div class="lr-form-item-title">资产编号<font face="宋体">*</font></div>
<input id="AAICode" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
<div class="lr-form-item-title">资产编号</div>
<input id="AAICode" type="text" class="form-control"/>
</div> </div>
<div class="col-xs-6 lr-form-item" data-table="Ass_Acceptance"> <div class="col-xs-6 lr-form-item" data-table="Ass_Acceptance">
<div class="lr-form-item-title">资产名称<font face="宋体">*</font></div> <div class="lr-form-item-title">资产名称<font face="宋体">*</font></div>
@@ -36,8 +36,8 @@
<div id="AAIHasDetail"></div> <div id="AAIHasDetail"></div>
</div> </div>
<div class="col-xs-6 lr-form-item" data-table="Ass_Acceptance"> <div class="col-xs-6 lr-form-item" data-table="Ass_Acceptance">
<div class="lr-form-item-title">库房</div>
<div id="AAIStorageId"></div>
<div class="lr-form-item-title">库房<font face="宋体">*</font></div>
<div id="AAIStorageId" isvalid="yes" checkexpession="NotNull" ></div>
</div> </div>
<div class="col-xs-6 lr-form-item" data-table="Ass_Acceptance"> <div class="col-xs-6 lr-form-item" data-table="Ass_Acceptance">
<div class="lr-form-item-title">库位</div> <div class="lr-form-item-title">库位</div>


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Acceptance/FormItem.js Datei anzeigen

@@ -29,6 +29,7 @@ var bootstrap = function ($, learun) {
$('#AAISupplierId').lrDataSourceSelect({ code: 'Ass_SupplierData', value: 'sid', text: 'sname' }); $('#AAISupplierId').lrDataSourceSelect({ code: 'Ass_SupplierData', value: 'sid', text: 'sname' });
$('#AAISource').lrDataItemSelect({ code: 'zcly' }); $('#AAISource').lrDataItemSelect({ code: 'zcly' });
$('#AAIHasDetail').lrDataItemSelect({ code: 'YesOrNoBit' }); $('#AAIHasDetail').lrDataItemSelect({ code: 'YesOrNoBit' });
$('#AAIHasDetail').lrselectSet('true');
$('#AAIUnit').lrDataItemSelect({ code: 'sldw' }); $('#AAIUnit').lrDataItemSelect({ code: 'sldw' });


$('#AAIStorageId').lrselect({ $('#AAIStorageId').lrselect({


+ 4
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoApply/FormJY.js Datei anzeigen

@@ -91,11 +91,12 @@ var bootstrap = function ($, learun) {
// 访问数据接口地址 // 访问数据接口地址
url: top.$.rootUrl + '/LR_OrganizationModule/Department/GetTree' url: top.$.rootUrl + '/LR_OrganizationModule/Department/GetTree'
}); });
$('#AACreateDeptId').lrselectSet(learun.clientdata.get(['userinfo']).departmentId);
$('#Ass_AssetsInfoItemApply').jfGrid({ $('#Ass_AssetsInfoItemApply').jfGrid({
headData: [ headData: [
{
label: '采购临时编号', name: 'AAICode', width: 150, align: 'left'
},
//{
// label: '采购临时编号', name: 'AAICode', width: 150, align: 'left'
//},
{ {
label: '资产名称', name: 'AAIName', width: 150, align: 'left' label: '资产名称', name: 'AAIName', width: 150, align: 'left'
}, },


+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoApply/FormViewJY.cshtml Datei anzeigen

@@ -26,6 +26,10 @@
<div class="lr-form-item-title">申请人</div> <div class="lr-form-item-title">申请人</div>
<input id="AACreateUserId" type="text" readonly class="form-control currentInfo lr-currentInfo-user" /> <input id="AACreateUserId" type="text" readonly class="form-control currentInfo lr-currentInfo-user" />
</div> </div>
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoApply">
<div class="lr-form-item-title">申请部门</div>
<div id="AACreateDeptId"></div>
</div>
<div class="col-xs-12 lr-form-item lr-form-item-grid"> <div class="col-xs-12 lr-form-item lr-form-item-grid">
<div id="Ass_AssetsInfoItemApply"></div> <div id="Ass_AssetsInfoItemApply"></div>
</div> </div>


+ 12
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoApply/FormViewJY.js Datei anzeigen

@@ -82,11 +82,20 @@ var bootstrap = function ($, learun) {
$('#AACreateUserId')[0].lrvalue = learun.clientdata.get(['userinfo']).userId; $('#AACreateUserId')[0].lrvalue = learun.clientdata.get(['userinfo']).userId;
$('#AAAssType').lrDataItemSelect({ code: 'AssType' }); $('#AAAssType').lrDataItemSelect({ code: 'AssType' });
$('#AACreateUserId').val(learun.clientdata.get(['userinfo']).realName); $('#AACreateUserId').val(learun.clientdata.get(['userinfo']).realName);
$('#AACreateDeptId').lrselect({
type: 'tree',
// 展开最大高度
maxHeight: 200,
// 是否允许搜索
allowSearch: true,
// 访问数据接口地址
url: top.$.rootUrl + '/LR_OrganizationModule/Department/GetTree'
});
$('#Ass_AssetsInfoItemApply').jfGrid({ $('#Ass_AssetsInfoItemApply').jfGrid({
headData: [ headData: [
{
label: '资产编号', name: 'AAICode', width: 150, align: 'left'
},
//{
// label: '资产编号', name: 'AAICode', width: 150, align: 'left'
//},
{ {
label: '资产名称', name: 'AAIName', width: 150, align: 'left' label: '资产名称', name: 'AAIName', width: 150, align: 'left'
}, },


+ 5
- 5
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItemApply/FormJY.cshtml Datei anzeigen

@@ -6,16 +6,16 @@
@Html.AppendJsFile("/Views/LR_Content/plugin/layerselect/lr-layerselect.js") @Html.AppendJsFile("/Views/LR_Content/plugin/layerselect/lr-layerselect.js")
<div class="lr-form-wrap" id="form"> <div class="lr-form-wrap" id="form">
<div class="col-xs-12 lr-form-item" data-table="Ass_AssetsInfoItemApply"> <div class="col-xs-12 lr-form-item" data-table="Ass_AssetsInfoItemApply">
<div class="lr-form-item-title">选择已登记资产<font face="宋体">*</font></div>
<div class="lr-form-item-title">选择已登记资产</div>
<div id="AAOldCode"></div> <div id="AAOldCode"></div>
</div> </div>
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItemApply"> <div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItemApply">
<div class="lr-form-item-title">资产类别<font face="宋体">*</font></div> <div class="lr-form-item-title">资产类别<font face="宋体">*</font></div>
<div id="AAITId" isvalid="yes" checkexpession="NotNull"></div> <div id="AAITId" isvalid="yes" checkexpession="NotNull"></div>
</div> </div>
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItemApply">
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItemApply" style="display: none;">
<div class="lr-form-item-title">采购临时编号<font face="宋体">*</font></div> <div class="lr-form-item-title">采购临时编号<font face="宋体">*</font></div>
<input id="AAICode" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
<input id="AAICode" type="text" class="form-control" value="@ViewBag.AAICode" />
</div> </div>
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItemApply"> <div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItemApply">
<div class="lr-form-item-title">资产名称<font face="宋体">*</font></div> <div class="lr-form-item-title">资产名称<font face="宋体">*</font></div>
@@ -29,7 +29,7 @@
<div class="lr-form-item-title">资产型号</div> <div class="lr-form-item-title">资产型号</div>
<input id="AAIModel" type="text" class="form-control" /> <input id="AAIModel" type="text" class="form-control" />
</div> </div>
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItemApply">
<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="AAIManufacturer" type="text" class="form-control" /> <input id="AAIManufacturer" type="text" class="form-control" />
</div> </div>
@@ -59,7 +59,7 @@
</div> </div>
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItemApply"> <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>
<div id="AAIUnit" ></div>
<div id="AAIUnit"></div>
</div> </div>
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItemApply"> <div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItemApply">
<div class="lr-form-item-title">排序<font face="宋体">*</font></div> <div class="lr-form-item-title">排序<font face="宋体">*</font></div>


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItemApply/FormJY.js Datei anzeigen

@@ -131,6 +131,7 @@ var bootstrap = function ($, learun) {
} }
} }
}); });
$('#AAIHasDetail').lrselectSet('true');
$('#AAIPhoto').lrUploader(); $('#AAIPhoto').lrUploader();
}, },
initData: function () { initData: function () {


+ 3
- 3
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_AcceptanceMain/Ass_AcceptanceMainService.cs Datei anzeigen

@@ -247,7 +247,7 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem
insertassinfoitem.AId = assinfoitem.AId; insertassinfoitem.AId = assinfoitem.AId;
insertassinfoitem.AICodeNum = Ass_AssetsInfoItemMaxNum + 1 + i; insertassinfoitem.AICodeNum = Ass_AssetsInfoItemMaxNum + 1 + i;
insertassinfoitem.AICode = assinfoitem.ACode + "_" + insertassinfoitem.AICodeNum.ToString(); insertassinfoitem.AICode = assinfoitem.ACode + "_" + insertassinfoitem.AICodeNum.ToString();
insertassinfoitem.AICodeNumJY = assinfoitem.ACode + "_" + insertassinfoitem.AICodeNum.ToString();//金隅编号
insertassinfoitem.AICodeNumJY = "";//assinfoitem.ACode + "_" + insertassinfoitem.AICodeNum.ToString();//金隅编号
insertassinfoitem.AIAssValue = assinfoitem.APrice;//价值 insertassinfoitem.AIAssValue = assinfoitem.APrice;//价值
insertassinfoitem.AIUnits = assinfoitem.AUnit;//单位 insertassinfoitem.AIUnits = assinfoitem.AUnit;//单位
insertassinfoitem.AISpecificationtype = assinfoitem.AModel;//型号 insertassinfoitem.AISpecificationtype = assinfoitem.AModel;//型号
@@ -353,7 +353,7 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem
insertassinfoitem.AId = insertAss_AssetsInfo.AId; insertassinfoitem.AId = insertAss_AssetsInfo.AId;
insertassinfoitem.AICodeNum = i + 1; insertassinfoitem.AICodeNum = i + 1;
insertassinfoitem.AICode = insertAss_AssetsInfo.ACode + "_" + insertassinfoitem.AICodeNum.ToString(); insertassinfoitem.AICode = insertAss_AssetsInfo.ACode + "_" + insertassinfoitem.AICodeNum.ToString();
insertassinfoitem.AICodeNumJY = insertAss_AssetsInfo.ACode + "_" + insertassinfoitem.AICodeNum.ToString();
insertassinfoitem.AICodeNumJY = "";//insertAss_AssetsInfo.ACode + "_" + insertassinfoitem.AICodeNum.ToString();
insertassinfoitem.AIAssValue = assitemapp.AAIPrice;//价值 insertassinfoitem.AIAssValue = assitemapp.AAIPrice;//价值
insertassinfoitem.AIUnits = assitemapp.AAIUnit;//单位 insertassinfoitem.AIUnits = assitemapp.AAIUnit;//单位
insertassinfoitem.AISpecificationtype = assitemapp.AAIModel;//型号 insertassinfoitem.AISpecificationtype = assitemapp.AAIModel;//型号
@@ -416,7 +416,7 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem
insertassinfoitem.AId = insertAss_AssetsInfo.AId; insertassinfoitem.AId = insertAss_AssetsInfo.AId;
insertassinfoitem.AICodeNum = 1; insertassinfoitem.AICodeNum = 1;
insertassinfoitem.AICode = insertAss_AssetsInfo.ACode + "_" + insertassinfoitem.AICodeNum.ToString(); insertassinfoitem.AICode = insertAss_AssetsInfo.ACode + "_" + insertassinfoitem.AICodeNum.ToString();
insertassinfoitem.AICodeNumJY = insertAss_AssetsInfo.ACode + "_" + insertassinfoitem.AICodeNum.ToString();
insertassinfoitem.AICodeNumJY = "";// insertAss_AssetsInfo.ACode + "_" + insertassinfoitem.AICodeNum.ToString();
insertassinfoitem.AIAssValue = assitemapp.AAIPrice;//价值 insertassinfoitem.AIAssValue = assitemapp.AAIPrice;//价值
insertassinfoitem.AIUnits = assitemapp.AAIUnit;//单位 insertassinfoitem.AIUnits = assitemapp.AAIUnit;//单位
insertassinfoitem.AISpecificationtype = assitemapp.AAIModel;//型号 insertassinfoitem.AISpecificationtype = assitemapp.AAIModel;//型号


Laden…
Abbrechen
Speichern