Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
85b6460
Closing water orders and breeding encounters when animal mark as dead
dnicolalde Feb 5, 2024
6b914da
Fixing problem with the watertotal info panel
dnicolalde Feb 7, 2024
bbe2807
Fix problem with event label in calendar.
dnicolalde Feb 10, 2024
94d9938
Implemented accordion for the Info Panels in the calendar.
dnicolalde Feb 10, 2024
a43ec0c
Removing unnecesary debugger.
dnicolalde Feb 19, 2024
5171b83
Fixed the asymchronos problem with fetching waterSchedule first and w…
dnicolalde Feb 21, 2024
cce2b30
Improving performance for render calendar, limiting to only dates sho…
dnicolalde Feb 22, 2024
57b5e28
Working for entery colony need to troubleshoot for single animal or m…
dnicolalde Feb 23, 2024
6f57d92
Fixing error with new waterTotalWithParameters when using the notific…
dnicolalde Apr 12, 2024
0a2763c
Improving comments regarding the parameters used in water monitoring …
dnicolalde Apr 12, 2024
2a127c2
Removing death animals from water notification.
dnicolalde Apr 12, 2024
702946f
adding stringify to Json array to solve problem with saving water ord…
dnicolalde Apr 22, 2024
3f2fe79
Remving JSON.parse
dnicolalde May 10, 2024
3df31ec
Linking chairing date to the single animal encounter form.
dnicolalde May 10, 2024
c9f1399
Requiring location on chairing dataset.
dnicolalde May 10, 2024
b1406e5
Adding validation to check Daily-PM.
dnicolalde May 10, 2024
f7b54e9
Improving frequency checks for water orders. Using if statements inst…
dnicolalde May 14, 2024
85bfb0b
Adding map to remove no water orders by each date on calendar.
dnicolalde May 15, 2024
590686a
Merge branch 'refs/heads/release23.11-SNAPSHOT' into 23.11_fb_waterSy…
dnicolalde May 20, 2024
222cad3
Adding popup window for animal changing to Lixit.
dnicolalde May 22, 2024
67bbac3
Adding parameter for the full history report. Bug introduce with wate…
dnicolalde Jun 10, 2024
7f778b9
Defaulting StartTarget to 1947 birthdate of the oldest animal.
dnicolalde Jun 11, 2024
eb930a3
Merge branch 'refs/heads/release23.11-SNAPSHOT' into 23.11_fb_waterSy…
dnicolalde Jun 11, 2024
5cfbb93
Fixing tab space for WNPRC_EHRModule
dnicolalde Jun 11, 2024
51630ed
Merge branch 'refs/heads/release23.11-SNAPSHOT' into 23.11_fb_waterSy…
dnicolalde Jun 11, 2024
b525a88
Temporary commit to add a new water button
dnicolalde Jul 18, 2024
d145ad5
23.11 fb notifications quick fix (#621)
aschmidt34 Jul 22, 2024
bbf02a0
Merge branch 'refs/heads/release23.11-SNAPSHOT' into 23.11_fb_waterSy…
dnicolalde Jul 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -250,4 +250,28 @@ Ext4.define('EHR.window.SubmitForReviewWindowHusbandry', {

this.callParent(arguments);
},
});
});


EHR.DataEntryUtils.registerDataEntryFormButton('SUBMIT_WATER', {
text: 'Submit Water',
name: 'submit_water',
requiredQC: 'Completed',
targetQC: 'Scheduled',
errorThreshold: 'WARN',
successURL: LABKEY.ActionURL.getParameter('srcURL') || LABKEY.ActionURL.buildURL('wnprc_ehr', 'dataEntry.view'),
disabled: true,
itemId: 'submitWtr',
disableOn: 'ERROR',
handler: function(btn){
let waterGiven = btn.up('gridpanel').store;
if (store.getFields().get('waterSource')){


}
//var panel = btn.up('ehr-dataentrypanel');


}

});
Original file line number Diff line number Diff line change
@@ -1,6 +1,28 @@
Ext4.define('WNPRC.ext.data.WaterStoreCollection', {
extend: 'WNPRC.ext.data.TaskStoreCollection',

/*constructor: function(){
this.callParent(arguments);
this.on('update', this.onRecordUpdate, this);
},
getWaterRecordStore: function (){
if (this.waterRecordStore){
return this.waterRecordStore;
}
this.waterRecordStore = this.getClientStoreByName('waterGiven');
LDK.Assert.assertNotEmpty('Unbale to find water given store');
return this.waterRecordStore;

},
getWaterRecords: function(){
console.log("call water records");
var waterStore = this.getWaterRecordStore();
if (waterStore){
return waterStore;
}

},*/

//Set a custom type (wnprc-waterserverstore) for the storeConfig
addServerStoreFromConfig: function(config){
var storeConfig = Ext4.apply({}, config);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
tooltip: "Set the status of this record to Complete, save the record, and leave this page."
}));

var SubmitWaterButtonName = 'WNPRC_SUBMIT_WATER';
/*var SubmitWaterButtonName = 'WNPRC_SUBMIT_WATER';
registerBtn(SubmitWaterButtonName, _.extend(getBtn("SUBMIT"), {
text: "Submit Water",
name: "submit_water",
Expand Down Expand Up @@ -153,6 +153,7 @@
width: '300',
buttons: Ext4.MessageBox.YESNO,
icon: Ext4.MessageBox.QUESTION,
scope: this,
fn: function proceed(resp){
if (resp == 'yes'){
this.onSubmit(btn);
Expand All @@ -164,7 +165,7 @@
}
}
}
}));
}));*/

/*
* Prompt the user for a yes or no answer. Resolves on "yes" and rejects with an error with a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ public EnterMultipleWater(DataEntryFormContext ctx, Module owner)
this.addClientDependency(ClientDependency.supplierFromPath("wnprc_ehr/model/sources/Encounter.js"));
this.addClientDependency(ClientDependency.supplierFromPath("wnprc_ehr/ext4/data/SingleAnimal/WaterServerStore.js"));
this.addClientDependency(ClientDependency.supplierFromPath("wnprc_ehr/ext4/data/SingleAnimal/WaterStoreCollection.js"));
this.addClientDependency(ClientDependency.supplierFromPath("wnprc_ehr/ext4/components/buttons/husbandryButtons.js"));


for (FormSection section : this.getFormSections()){
// section.addConfigSource("Husbandry");
Expand All @@ -41,6 +43,8 @@ public EnterMultipleWater(DataEntryFormContext ctx, Module owner)
@Override
protected List<String> getButtonConfigs(){
List<String> buttons = super.getButtonConfigs();
//buttons.add("WNPRC_SUBMIT_WATER");
buttons.add("SUBMIT_WATER");
buttons.add("WNPRC_SUBMIT_FINAL");
buttons.remove("WNPRC_SAVE");
buttons.remove("WNPRC_SAVE_AND_EXIT");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@ public static class BloodDrawsTodayObject {
// Creates filter.
Date todayDate = dateToolkit.getDateToday();
SimpleFilter myFilter = new SimpleFilter("Id/DataSet/Demographics/calculated_status", "Alive", CompareType.EQUAL);
// myFilter.addCondition("date", todayDate, CompareType.DATE_EQUAL); //TODO: Uncomment this after testing.
myFilter.addCondition("date", dateToolkit.getDateXDaysFromNow(-800), CompareType.DATE_GTE); //TODO: Delete this after testing.
myFilter.addCondition("date", todayDate, CompareType.DATE_EQUAL);

// Creates sort.
Sort mySort = new Sort("date");
Expand Down