Iniit
Bu işleme şunda yer alıyor:
@@ -0,0 +1,172 @@
|
||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
var Bizgaze;
|
||||
(function (Bizgaze) {
|
||||
let Apps;
|
||||
(function (Apps) {
|
||||
let Transact;
|
||||
(function (Transact) {
|
||||
let Managers;
|
||||
(function (Managers) {
|
||||
class PriceListManager extends Unibase.Platform.Core.BaseManager {
|
||||
saveMrp(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/pricelists/savemrp';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getItem(itemid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/transact/items/getitem/itemid/' + itemid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
editMrp(MrpId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/pricelists/getmrp/mrpid/' + MrpId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
exportList(PriceListId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/pricelist/export/pricelistid/' + PriceListId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
saveBatch(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/pricelists/savebatch';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getbatch(batchid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/pricelist/getbatch/batchid/' + batchid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result !== '')
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getpricecodes(lobid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/pricelists/pricecode/' + lobid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getPriceCodeByContact(ContactId, LobId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/pricelist/getpricecodebycontact/contactid/' + ContactId + '/lobid/' + LobId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getpricelists(pricelistid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/pricelists/pricelist/' + pricelistid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
postdatafilter(request) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/pricelists/savepricelist';
|
||||
return yield this.dataHelper().postAsync(url, request).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
pricelistvalues(request) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/pricelists/savepricevalues';
|
||||
return yield this.dataHelper().postAsync(url, request).then(function (response) {
|
||||
Unibase.Apps.Transact.Controls.CreatePriceList.Instance().editPriceList(Number($("#gridPager2").find('.pagination').find(".active").text()) - 1, 2, "");
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
CreatePriceListItems(voucherid, contactid, page, searchtext) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/pricelists/getpricelistitems/id/' + voucherid + '/page/' + page + '/rows/10/query/' + searchtext;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
EditPriceListItems(voucherid, contactid, page, searchtext) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/pricelists/pricelistitems/id/' + voucherid + '/page/' + page + '/rows/10/query/' + searchtext;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getlobs(ContactId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/automationrules/getruleautotaggroups/' + ContactId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
return JSON.parse(response.result);
|
||||
});
|
||||
});
|
||||
}
|
||||
saveContactDefault(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/pricelists/contactdefault';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getPriceValue(itemid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/pricelist/getlatestpricevalue/itemid/' + itemid + '/mrpid/0/lobid/0';
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result !== '')
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
static Instance() {
|
||||
if (this._instance === undefined)
|
||||
this._instance = new Bizgaze.Apps.Transact.Managers.PriceListManager();
|
||||
return this._instance;
|
||||
}
|
||||
}
|
||||
Managers.PriceListManager = PriceListManager;
|
||||
})(Managers = Transact.Managers || (Transact.Managers = {}));
|
||||
})(Transact = Apps.Transact || (Apps.Transact = {}));
|
||||
})(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
|
||||
})(Bizgaze || (Bizgaze = {}));
|
||||
Çalıştırılabilir dosya
Dosya farkları bir veya daha fazla satır çok uzun olduğundan bastırıldı
Sağlanmış
Çalıştırılabilir dosya
@@ -0,0 +1 @@
|
||||
var __awaiter=this&&this.__awaiter||function(n,t,i,r){function u(n){return n instanceof i?n:new i(function(t){t(n)})}return new(i||(i=Promise))(function(i,f){function o(n){try{e(r.next(n))}catch(t){f(t)}}function s(n){try{e(r["throw"](n))}catch(t){f(t)}}function e(n){n.done?i(n.value):u(n.value).then(o,s)}e((r=r.apply(n,t||[])).next())})},Bizgaze;(function(n){let t;(function(t){let i;(function(t){let i;(function(t){class i extends Unibase.Platform.Core.BaseManager{saveMrp(n){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/bizgaze/transact/pricelists/savemrp",n).then(function(n){return n})})}getItem(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/unibase/transact/items/getitem/itemid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}editMrp(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/pricelists/getmrp/mrpid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}exportList(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/pricelist/export/pricelistid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}saveBatch(n){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/bizgaze/transact/pricelists/savebatch",n).then(function(n){return n})})}getbatch(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/pricelist/getbatch/batchid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&n.result!==""&&(n.result=JSON.parse(n.result)),n})})}getpricecodes(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/pricelists/pricecode/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n})})}getPriceCodeByContact(n,t){return __awaiter(this,void 0,void 0,function*(){const i="apis/v4/bizgaze/transact/pricelist/getpricecodebycontact/contactid/"+n+"/lobid/"+t;return yield this.dataHelper().getAsync(i).then(function(n){return n.result!==null&&n.result!=""&&(n.result=JSON.parse(n.result)),n})})}getpricelists(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/pricelists/pricelist/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n})})}postdatafilter(n){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/bizgaze/transact/pricelists/savepricelist",n).then(function(n){return n})})}pricelistvalues(n){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/bizgaze/transact/pricelists/savepricevalues",n).then(function(n){return Unibase.Apps.Transact.Controls.CreatePriceList.Instance().editPriceList(Number($("#gridPager2").find(".pagination").find(".active").text())-1,2,""),n})})}CreatePriceListItems(n,t,i,r){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/pricelists/getpricelistitems/id/"+n+"/page/"+i+"/rows/10/query/"+r;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&n.result!=""&&(n.result=JSON.parse(n.result)),n})})}EditPriceListItems(n,t,i,r){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/pricelists/pricelistitems/id/"+n+"/page/"+i+"/rows/10/query/"+r;return yield this.dataHelper().getAsync(t).then(function(n){return n})})}getlobs(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/automationrules/getruleautotaggroups/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return JSON.parse(n.result)})})}saveContactDefault(n){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/bizgaze/transact/pricelists/contactdefault",n).then(function(n){return n})})}getPriceValue(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/pricelist/getlatestpricevalue/itemid/"+n+"/mrpid/0/lobid/0";return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&n.result!==""&&(n.result=JSON.parse(n.result)),n})})}static Instance(){return this._instance===undefined&&(this._instance=new n.Apps.Transact.Managers.PriceListManager),this._instance}}t.PriceListManager=i})(i=t.Managers||(t.Managers={}))})(i=t.Transact||(t.Transact={}))})(t=n.Apps||(n.Apps={}))})(Bizgaze||(Bizgaze={}));
|
||||
Yeni konuda referans
Bir kullanıcı engelle