add: Maintenance resources

This commit is contained in:
zakaria.hachem
2024-11-16 21:48:05 +01:00
parent 8d8a94b65f
commit bfcb3db03d
31 changed files with 7366 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<domain-models xmlns="http://axelor.com/xml/ns/domain-models"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://axelor.com/xml/ns/domain-models http://axelor.com/xml/ns/domain-models/domain-models_6.1.xsd">
<module name="production" package="com.axelor.apps.production.db"/>
<entity name="BillOfMaterial">
<integer name="typeSelect" default="1" title="Type" selection="manuf.order.type.select"/>
<many-to-one name="machineType" ref="com.axelor.apps.production.db.MachineType"
title="Machine type"/>
<many-to-one name="product" ref="com.axelor.apps.base.db.Product" title="Product"
required="false"/>
</entity>
</domain-models>

View File

@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<domain-models xmlns="http://axelor.com/xml/ns/domain-models"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://axelor.com/xml/ns/domain-models http://axelor.com/xml/ns/domain-models/domain-models_6.1.xsd">
<module name="maintenance" package="com.axelor.apps.maintenance.db"/>
<entity name="EquipementMaintenance">
<string name="code" title="Maintenance Code" namecolumn="true" readonly="true"/>
<string name="name" title="Maintenance Name" required="true"/>
<many-to-one name="maintenanceCategory" ref="MaintenanceCategory"
title="Maintenance Category"/>
<many-to-one name="machine" ref="com.axelor.apps.production.db.Machine"
title="Machine"/>
<integer name="mtnEachDay" title="Generate request each"/>
<integer name="mtnEachCycle" title="Generate request each"/>
<integer name="mtnEachDuration" title="Generate request each"/>
<integer name="createMtnRequestSelect" title="Create maintenance request"
selection="maintenance.maintenance.create.mtn.select"/>
<date name="nextMtnDate" title="Next maintenance date"/>
<string name="mtnProcedure" title="Maintenance Procedure"/>
<many-to-one name="mtnFile" title="Maintenance File"
ref="com.axelor.meta.db.MetaFile"/>
<many-to-one name="image" title="equipement.maintenance.image"
ref="com.axelor.meta.db.MetaFile"/>
<one-to-many name="maintenanceRequestList" ref="MaintenanceRequest"
title="Maintenance Requests" mappedBy="equipementMaintenance"/>
</entity>
</domain-models>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<domain-models xmlns="http://axelor.com/xml/ns/domain-models"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://axelor.com/xml/ns/domain-models http://axelor.com/xml/ns/domain-models/domain-models_6.1.xsd">
<module name="maintenance" package="com.axelor.apps.maintenance.db"/>
<entity name="MaintenanceCategory">
<string name="name" title="Name" required="true"/>
</entity>
</domain-models>

View File

@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<domain-models xmlns="http://axelor.com/xml/ns/domain-models"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://axelor.com/xml/ns/domain-models http://axelor.com/xml/ns/domain-models/domain-models_6.1.xsd">
<module name="maintenance" package="com.axelor.apps.maintenance.db"/>
<entity name="MaintenanceRequest">
<many-to-one name="equipementMaintenance" ref="EquipementMaintenance"/>
<integer name="statusSelect" title="State" selection="maintenance.request.nav.select.maint"/>
<date name="requestDate" title="Request date" required="true"/>
<many-to-one name="requestBy" ref="com.axelor.auth.db.User" title="Request By"/>
<date name="expectedDate" title="Expected date" required="true"/>
<integer name="durationHours" title="Duration (Hours)"/>
<many-to-one name="assignedTo" ref="com.axelor.auth.db.User" title="Assigned to"/>
<string name="mtnTask" title="Maintenance task" large="true"/>
<integer name="actionSelect" title="Action"
selection="maintenance.maintenance.request.action.select"/>
<many-to-one name="manufOrder" ref="com.axelor.apps.production.db.ManufOrder"
title="Manufacturing Order"/>
<date name="doneOn" title="Done on"/>
<string name="mtnComments" title="Maintenance comments"/>
<date name="startDate" title="Event start date"/>
<date name="endDate" title="Event end date"/>
<integer name="sequence"/>
<many-to-one name="machine" title="Machine"
ref="com.axelor.apps.production.db.Machine"/>
<extra-code>
<![CDATA[
public static final int STATUS_PLANNED = 0;
public static final int STATUS_IN_PROGRESS = 1;
public static final int STATUS_COMPLETED = 2;
public static final int STATUS_CANCELED = 3;
public static final int ACTION_CORRECTIVE = 0;
public static final int ACTION_PREVENTIVE = 1;
]]>
</extra-code>
</entity>
</domain-models>

View File

@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<domain-models xmlns="http://axelor.com/xml/ns/domain-models"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://axelor.com/xml/ns/domain-models http://axelor.com/xml/ns/domain-models/domain-models_6.1.xsd">
<module name="production" package="com.axelor.apps.production.db"/>
<entity name="ManufOrder">
<many-to-one name="machineType" ref="com.axelor.apps.production.db.MachineType"
title="Machine type"/>
<many-to-one name="machine" ref="com.axelor.apps.production.db.Machine"
title="Machine"/>
<extra-code><![CDATA[
//TYPE SELECT
public static final int TYPE_MAINTENANCE = 3;
]]></extra-code>
</entity>
</domain-models>

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<domain-models xmlns="http://axelor.com/xml/ns/domain-models"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://axelor.com/xml/ns/domain-models http://axelor.com/xml/ns/domain-models/domain-models_6.1.xsd">
<module name="production" package="com.axelor.apps.production.db"/>
<entity name="ProdProcess">
<integer name="typeSelect" default = "1" title="Type" selection="manuf.order.type.select"/>
<many-to-one name="machineType" ref="com.axelor.apps.production.db.MachineType"
title="Machine type"/>
</entity>
</domain-models>