Laserfiche WebLink
<br />Time interval <br /> <br />Water districts <br /> <br />Map layers <br /> <br />requires DMI functions to handle the database operations. For that reason, there is one <br />section here for each of the GUloperations. <br /> <br />User Preference Configuration <br /> <br />Users can set preferences which detennine the time interval and water district for <br />which data is displayed. The displayed map layers (UNIX application only) may also <br />be set as preferences.The Preference dialog calls several DMI routines to set and <br />retrieve user preferences. These are described below. <br /> <br />The time interval preferences are set by a call to the function GetTimeSpan () to <br />set global variables to the start and end times of the interval. GetTimeSpan () <br />performs the following operations: <br /> <br />I. Sets the global variable (int) time_span_flag to either <br />CURRENT_TIME (if the user indicated the interval as some number of hours up <br />to the present) or INTERVAL_TIME (if the user indicated a time interval in the <br />past). <br /> <br />2. Sets the global variables (char *) start_date and (char *) <br />end_da te to the start and e-nd times of the- interval, based on information <br />entered by the user. <br /> <br />The following input is invalid for the text widget where the user sets Past XX Hours: <br /> <br />1. Negative number or zero present. <br />2. Non-numerical characters used in entry. <br /> <br />The following input is invalid for the text widgets where the user sets start and end <br />dates for the interval: <br /> <br />I. Date not of form MM/DDIYYYY HH:MM. <br />2. End-date is after start.date in time. <br /> <br />Water district preferences are set by a caB to the function SetAllowedDis- <br />tricts(int argc, int argv) to set the selected member of the global <br />arrnydistrict_records[].SetAllowedDistricts(int argc, <br />int argv) performs the following steps: <br /> <br />I. Resets all district_records (] . selected to False. <br /> <br />2. For each district selected in the Preferences dialog, sets <br />district_records [] . selected to True. <br /> <br />The map layer preferences are set by a call to the function GetCurrentlySe- <br />lectedMapLayers ( ) to set the selected member of the global array <br />map_layer_records [].GetCurrentlySelectedMapLayers () <br />performs the following steps: <br /> <br />I. Resets all map_layer_records (] . selected to False. <br /> <br />2. For each map layer selected in the Preferences dialog, sets <br />map_layer_records [] . selected to True. <br /> <br />24 <br />