Laserfiche WebLink
<br />poinCflow_record <br /> <br />Point Flow OMI <br />Routines <br /> <br />Rows of type carryover are loaded by the two functions SQLLoadCsCarry- <br />overRow () and SQLLoadLastMonthsCsCarryoverRow () . Carryover <br />rows have a value carried over from the last day of the previous month; fetching this <br />value is the function SQLLoadLastMonthsCsCarryoverRow (). Rows of <br />types other than flow and carryover not retrieved from the database-they are either <br />calculated before display or left blank, depending on the row type. Loading the data <br />from the database completes the process of constructing the Checksheet, which can <br />then be displayed. <br /> <br />SaveChecksheet () archives the sheet by deleting old rows by calling <br />SQLDeleteCsRow () and inserting new rows by calling SQLlnsertC- <br />sRow() . <br /> <br />Point Flow File Generation <br /> <br />The point flow file construction for the UNIX version of SPWRMS works by creating <br />an internal representation of the point flow configuration file (as a poincflow_record) <br />and then processing this record to create the file. <br /> <br />The point flow record has a header portion and a pointcr to an array of rows. The rows <br />are stored as ifs_structs (the same data structure representing a row in an information <br />sheet). <br /> <br />j* re-use the info sheet row record! *j <br />typedef struct ifs_struct point_flaw_row; <br />typedef struct { <br />int <br /> <br />char <br />int <br /> <br />point_flaw_row * <br />point_flaw_record; <br /> <br />tag; <br />show_column[NUM_CONTROL_COLS+l]; <br /> <br />number_of-pf_rows; <br />data /* array of rows */ <br /> <br />Where: <br /> <br />tag: The ID of the reach this record represents. <br /> <br />show_column: A string defining the columns requested by the user in the point <br />flow configuration file. <br /> <br />number_of_pf_rows: The number of rows in this point flow record. <br /> <br />da ta: An array of rows (1 for each item requested in the point flow configuration <br />file). <br /> <br />The following routines are provided to create and manipulate a poincflow record. <br /> <br />Crea teEmptyPointFlowTable () creates and initializes a point flow record <br />for the specified tag. The function opens the file tag_N. pf in the point flow <br />configuration file subdirectory (where N is the supplied tag) and parses the file to <br />create the point flow record returned. This function will allocate the data portion of <br />the record (the array to hold the rows) and initialize the rows correctly. <br /> <br />38 <br />