Built files from Bizgaze WebServer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

itembomselection.min.js 2.0KB

1
  1. var Bizgaze;(function(n){let t;(function(t){let i;(function(t){let i;(function(t){let i;(function(t){class i extends Unibase.Platform.Core.BaseComponent{jsFiles(){return["platform/core/helpers/numberhelper/numberhelper.js","apps/transact/managers/ordermanager.js"]}cssFiles(){return[]}html(){return'<form id="frm_Bizgazetransact_ItemBOMSelection" method="post" data-validate="parsley"><div class="b-b bg-white modal-header"><strong class="text-dark titlename"> BOM of <strong id="sg_item"><\/strong><\/strong><\/div><div data-simplebar class="bg-light simple-scroll-bar control-sorting modal-body"><div class="card"><div class="card-body"><ul><li class="hidden list-group-item BOM_row" id ="li_BOMItem"> <\/li><\/ul > <\/div><\/div><\/div><div class="bg-white modal-footer"><a href="javascript:;" class="btn btn-light btn-sm mr-auto btn_close">Close<\/a><span class="mr-auto" id="spn_Quantity"><\/span> <\/div ><\/form>'}load(){var n=this;$(".btn_close").click(function(){n.navigationHelper.closePopUp()})}LoadBOMItems(n,t){var i=this;$("#sg_item").text(t);i.GetBOMItems(n)}GetBOMItems(t){var i=this;n.Apps.Transact.Managers.ItemManager.Instance().getItemBOMs(t).then(function(n){for(var r=0;r<n.result.length;r++)i.ShowBOMItems(n.result[r],t)})}ShowBOMItems(n){var r=this,t=$(".BOM_row").length,i='<li class="list-group-item BOM_row" id="li_BOM'+t+'" style="margin-bottom:0px"><a href="javascript:;"><div class="row" id="div_BOM_'+t+'"><div class="col-sm-10"><strong>'+n.ChildItemName+"<\/strong> <strong> - "+n.ChildSKU+'<\/strong> <\/div><div class="col-sm-2"><span class="badge badge-outline pull-right" id="spn_BOMQty"> Qty - '+n.Quantity+"<\/span><\/div><\/div><\/a><\/li>";$("#li_BOMItem").after(i)}static Instance(){return this.instance===undefined&&(this.instance=new n.Apps.Transact.Components.Orders.ItemBOMSelection),this.instance}}t.ItemBOMSelection=i})(i=t.Orders||(t.Orders={}))})(i=t.Components||(t.Components={}))})(i=t.Transact||(t.Transact={}))})(t=n.Apps||(n.Apps={}))})(Bizgaze||(Bizgaze={}));