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.

138 lines
5.2 KiB

4 years ago
define(function (require, exports, module) {
let Service = require('apps/rht/base/rhtService');
let prefix = 'cn.qdhezheng.rht.app.sku.sku080202.';
let prefixpubsys = 'cn.qdhezheng.rht.app.comm.pub.sys.';
let prefixpubutil = 'cn.qdhezheng.rht.app.comm.pub.util.';
let prefixpubsysBaseBL = 'cn.qdhezheng.rht.app.comm.plugins.sys.';
return {
USkuSetPluStatus:function (psPluID, psPluCode, psOldStatus, psNewStatus,CurUserId, CurUserCode, CurUserName, CurOrgCode, CurOrgName) {
return Service.doPlugin(prefix + 'USkuSetPluStatus',{
psPluID:psPluID,
psPluCode:psPluCode,
psOldStatus:psOldStatus,
psNewStatus:psNewStatus,
CurUserId:CurUserId,
CurUserCode:CurUserCode,
CurUserName:CurUserName,
CurOrgCode:CurOrgCode,
CurOrgName:CurOrgName
})
},
getSlideMenuData: function (ps_FunName,ps_Type,ps_Field1,ps_Field2,ps_Field3,ps_Field4,ps_Field5) {
if (ps_FunName == "CheckBarCode") {
return Service.doPlugin(prefix + ps_FunName, {
ps_Type:ps_Type,
BarCode: ps_Field1
});
}
if (ps_FunName == "ImportExecute") {
return Service.doPlugin(prefix + ps_FunName, {
ps_Type:ps_Type,
data: ps_Field1,
YhType:ps_Field2,
OrgCode:ps_Field3,
EtpCode:ps_Field4
});
}
if (ps_FunName == "GetDateAddOrSubDays") {
return Service.doPlugin(prefixpubutil + ps_FunName, {
GetDate: ps_Field1,
CalDays:ps_Field2
});
}
if (ps_FunName == "pubsysBaseBL") {
return Service.doPlugin(prefixpubsysBaseBL + ps_FunName, {
ps_FunName: ps_FunName,
ps_OpType:ps_Type,
ps_InPutJson:ps_Field1
});
}
if (ps_FunName == "OnDetailBeforePost")
{
return Service.doPlugin(prefix + ps_FunName, {
ps_FunName:ps_FunName,
ps_Type:ps_Type,
ps_Field1:ps_Field1,
ps_Field2:ps_Field2,
ps_Field3:ps_Field3,
ps_Field4:ps_Field4,
ps_Field5:ps_Field5
});
}
if (ps_FunName == "DoOnMasterCalcRule") {
return Service.doPlugin(prefix + ps_FunName, {
ps_FunName: ps_FunName,
ps_Type:ps_Type,
ps_Field1:ps_Field1,
ps_Field2:ps_Field2,
ps_Field3:ps_Field3,
ps_Field4:ps_Field4,
ps_Field5:ps_Field5
});
}
if (ps_FunName == "DoOnDetailRule") {
return Service.doPlugin(prefix + ps_FunName, {
ps_FunName: ps_FunName,
ps_Type:ps_Type,
ps_Field1:ps_Field1,
ps_Field2:ps_Field2,
ps_Field3:ps_Field3,
ps_Field4:ps_Field4,
ps_Field5:ps_Field5
});
}
if (ps_FunName == "DoOnDetailCalcRule") {
return Service.doPlugin(prefix + ps_FunName, {
ps_FunName: ps_FunName,
ps_Type:ps_Type,
ps_Field1:ps_Field1,
ps_Field2:ps_Field2,
ps_Field3:ps_Field3,
ps_Field4:ps_Field4,
ps_Field5:ps_Field5
});
}
if (ps_FunName == "OnAfterAdd") {
return Service.doPlugin(prefix + ps_FunName, {
ps_Field1: ps_Field1
});
}
if (ps_FunName == "DoDelete") {
return Service.doPlugin(prefix + ps_FunName, {
ps_Type:ps_Type,
ps_Field1: ps_Field1,
ps_Field2:ps_Field2,
ps_Field3:ps_Field3,
ps_Field4:ps_Field4,
});
}
if (ps_FunName == "beforeDelete") {
return Service.doPlugin(prefix + ps_FunName, {
ps_Type:ps_Type,
ps_Field1: ps_Field1
});
}
if (ps_FunName == "OnBeforeSave") {
return Service.doPlugin(prefix + ps_FunName, {
ps_Type:ps_Type,
ps_Field1: ps_Field1,
ps_Field2:ps_Field2,
ps_Field3:ps_Field3,
ps_Field4:ps_Field4,
});
}
if (ps_FunName == "doOpBtnExecute") {
return Service.doPlugin(prefix + ps_FunName, {
ps_Type:ps_Type,
ps_Field1: ps_Field1,
ps_Field2:ps_Field2,
ps_Field3:ps_Field3,
ps_Field4:ps_Field4,
});
}
}
};
})