Support #2032
ERP Document Lock
Description
Mang Wanto,
Mohon dibantu buatkan fungsi untuk lock document ERP.
Tabel: PCMWFRUNINBOXLOCK
Ketentuan:
1. Document akan terlock ketika user klik tombol "edit" dan proses editing sedang berlangsung.
2. Document akan tercatat sebagai release ketika
- document sudah di save
- layar di close
- layar di refresh
- session expired
document akan ter-release ketika URL sudah berubah.
3. Date tercatat yyyymmdd
4. Time tercatat jam, menit, detik (seperti create date namun tanggal dipisah)
- ModuleType = trans type
- ModuleItem = doc type
Terima kasih.
Files
Updated by Fiona Avangeline Jonathan almost 2 years ago
List dokumen ERP yang mau di lock
- Sales Inquiry
- Sales Quotation
- Sales Order
- Purchase Requisition
- Request for Quotation
- Vendor Quotation
- Purchase Order
- BAST
- Goods Issue to Customer
- Material Production
- Consumption
- Goods Receipt
- Stock Transfer
- Production Template
- Production Plan
- Production Order
- Project Document
Updated by Saswanto Tampan almost 2 years ago
- Assignee changed from Saswanto Tampan to M Azid Wahyudi
Updated by Fiona Avangeline Jonathan almost 2 years ago
- Project changed from MINOVAES - PRODUCT to MINOVA DEMO
Updated by M Azid Wahyudi almost 2 years ago
- Status changed from Assigned to QA Test
- Assignee changed from M Azid Wahyudi to Fiona Avangeline Jonathan
dear fio , udah bisa di test yaa
package :
C:\MinovaES\WebServer\MinovaES_Demo\UI\app\controller\filo\document.js
//================CEK DATANYA ADA YANG PAKAI APA ENGGA..!!================
var status = MinovaUtil.LockData(RegID,MyObjectType,2,0,EmpLogin,MymenuID);
if(status != null && (status0.ObjectID !=null && status0.emp_lock != EmpLogin )){
MinovaMessageError("Warning", "DATAINUSE", " By "+ status0.EmployeeName " Employee ID " status0.emp_lock +"");
}else{
//================REALEASE DOKUMEN YANG LAIN..!!================
var release = MinovaUtil.LockData(RegID,MyObjectType,3,0,EmpLogin,MymenuID,);
if(release != null){
//================LOCK DOKUMEN OPEN..!!================
MinovaUtil.LockData(RegID,MyObjectType,0,0,EmpLogin,MymenuID);
panelHead.setHidden(false);
panelDisplayHead.setHidden(true);
btnSaveCreate.setDisabled(false);
btnCreate.setDisabled(false);
btnSave.setDisabled(false);
me.afterrenderTab();
}
}
note : permasalahan cache
makasih
Updated by Fiona Avangeline Jonathan almost 2 years ago
- Status changed from QA Test to Closed
Done, terima kasih.