2021-07-03 05:07:57 +01:00
<!DOCTYPE HTML>
< html >
< head >
< meta http-equiv = "Content-Type" content = "text/html;charset=US-ASCII" >
2021-08-02 07:26:59 +01:00
< meta name = "generator" content = "ZealOS V0.12" >
2021-07-03 05:07:57 +01:00
< style type = "text/css" >
2021-07-29 03:20:15 +01:00
body {background-color:#fef1f0;}
.cF0{color:#000000;background-color:#fef1f0;}
.cF1{color:#0148a4;background-color:#fef1f0;}
.cF2{color:#3b7901;background-color:#fef1f0;}
.cF3{color:#057c7e;background-color:#fef1f0;}
.cF4{color:#bb2020;background-color:#fef1f0;}
.cF5{color:#9e42ae;background-color:#fef1f0;}
.cF6{color:#b57901;background-color:#fef1f0;}
.cF7{color:#b2b6af;background-color:#fef1f0;}
.cF8{color:#555753;background-color:#fef1f0;}
.cF9{color:#678fbb;background-color:#fef1f0;}
.cFA{color:#82bc49;background-color:#fef1f0;}
.cFB{color:#0097a2;background-color:#fef1f0;}
.cFC{color:#e26a6a;background-color:#fef1f0;}
.cFD{color:#c671bc;background-color:#fef1f0;}
.cFE{color:#c7ab00;background-color:#fef1f0;}
.cFF{color:#fef1f0;background-color:#fef1f0;}
2021-07-03 05:07:57 +01:00
< / style >
< / head >
< body >
2021-07-05 01:12:38 +01:00
< pre style = "font-family:monospace;font-size:12pt" >
2021-07-03 05:07:57 +01:00
< a name = "l1" > < / a > < span class = cF1 > U0< / span > < span class = cF0 > BgtAcctsUpdate()
< a name = "l2" > < / a > {
2021-07-04 23:11:34 +01:00
< a name = "l3" > < / a > CBgtEntry *tmpb;
< a name = "l4" > < / a > CBgtTemplate *tmpt;
2021-07-03 05:07:57 +01:00
< a name = "l5" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l6" > < / a > tmpb=b_head.next;
< a name = "l7" > < / a > < / span > < span class = cF1 > while< / span > < span class = cF0 > (tmpb != & b_head)
< a name = "l8" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l9" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (tmpb-> type != BE_TEMPLATE_COPY)
< a name = "l10" > < / a > {
< a name = "l11" > < / a > tmpb-> credit_idx = StrFileAdd(tmpb-> credit, & accts_table_strs, accts_table);
< a name = "l12" > < / a > tmpb-> debit_idx = StrFileAdd(tmpb-> debit, & accts_table_strs, accts_table);
< a name = "l13" > < / a > }
< a name = "l14" > < / a > tmpb=tmpb-> next;
< a name = "l15" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l16" > < / a > tmpt=t_head.next;
< a name = "l17" > < / a > < / span > < span class = cF1 > while< / span > < span class = cF0 > (tmpt != & t_head)
< a name = "l18" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l19" > < / a > tmpt-> b.credit_idx = StrFileAdd(tmpt-> b.credit, & accts_table_strs, accts_table);
< a name = "l20" > < / a > tmpt-> b.debit_idx = StrFileAdd(tmpt-> b.debit, & accts_table_strs, accts_table);
< a name = "l21" > < / a > tmpt=tmpt-> next;
< a name = "l22" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = "l23" > < / a > }
< a name = "l24" > < / a >
< a name = "l25" > < / a > < / span > < span class = cF1 > U0< / span > < span class = cF0 > BgtAcctsWrite()
< a name = "l26" > < / a > {
2021-07-04 23:11:34 +01:00
< a name = "l27" > < / a > BgtAcctsUpdate;
< a name = "l28" > < / a > StrFileWrite(bgt_accts_file, accts_table, < / span > < span class = cF3 > TRUE< / span > < span class = cF0 > );
2021-07-03 05:07:57 +01:00
< a name = "l29" > < / a > }
< a name = "l30" > < / a >
< a name = "l31" > < / a > < / span > < span class = cF1 > U0< / span > < span class = cF0 > BgtAcctsRead()
< a name = "l32" > < / a > {
2021-07-04 23:11:34 +01:00
< a name = "l33" > < / a > < / span > < span class = cF9 > I64< / span > < span class = cF0 > i, max_num;
< a name = "l34" > < / a > < / span > < span class = cF1 > U8< / span > < span class = cF0 > *colors, **s = StrFileRead(bgt_accts_file, & max_num, & colors, < / span > < span class = cF3 > TRUE< / span > < span class = cF0 > );
2021-07-03 05:07:57 +01:00
< a name = "l35" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l36" > < / a > StrFileDel(accts_table);
< a name = "l37" > < / a > accts_table = < / span > < span class = cF5 > HashTableNew< / span > < span class = cF0 > (< / span > < span class = cFE > 512< / span > < span class = cF0 > );
< a name = "l38" > < / a > accts_table_strs = < / span > < span class = cFE > 0< / span > < span class = cF0 > ;
< a name = "l39" > < / a > < / span > < span class = cF1 > for< / span > < span class = cF0 > (i = < / span > < span class = cFE > 0< / span > < span class = cF0 > ; i < = max_num; i++)
< a name = "l40" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (s[i])
< a name = "l41" > < / a > StrFileAdd(s[i], & accts_table_strs, accts_table, colors[i]);
< a name = "l42" > < / a > StrFileArrDel(s, max_num);
< a name = "l43" > < / a > < / span > < span class = cF5 > Free< / span > < span class = cF0 > (colors);
2021-07-03 05:07:57 +01:00
< a name = "l44" > < / a > }
< a name = "l45" > < / a >
< a name = "l46" > < / a > < / span > < span class = cF9 > I64< / span > < span class = cF0 > BgtAcctColor(< / span > < span class = cF1 > U8< / span > < span class = cF0 > *st)
< a name = "l47" > < / a > {
2021-07-04 23:11:34 +01:00
< a name = "l48" > < / a > < / span > < span class = cF9 > CHashGeneric< / span > < span class = cF0 > *tmph;
2021-07-03 05:07:57 +01:00
< a name = "l49" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l50" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (tmph = < / span > < span class = cF5 > HashFind< / span > < span class = cF7 > (< / span > < span class = cF0 > st, accts_table, SFT_GENERIC< / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l51" > < / a > < / span > < span class = cF1 > return< / span > < span class = cF0 > tmph-> user_data1;
< a name = "l52" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l53" > < / a > < / span > < span class = cF1 > return< / span > < span class = cF0 > < / span > < span class = cF3 > BLACK< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l54" > < / a > }
< a name = "l55" > < / a >
< a name = "l56" > < / a > < / span > < span class = cF1 > U8< / span > < span class = cF0 > *BgtPopUpAcct(< / span > < span class = cF1 > U8< / span > < span class = cF0 > *header=< / span > < span class = cF3 > NULL< / span > < span class = cF0 > , < / span > < span class = cF1 > U8< / span > < span class = cF0 > *< / span > < span class = cF1 > default< / span > < span class = cF0 > =< / span > < span class = cF3 > NULL< / span > < span class = cF0 > )
< a name = "l57" > < / a > {
2021-07-04 23:11:34 +01:00
< a name = "l58" > < / a > < / span > < span class = cF9 > I64< / span > < span class = cF0 > i;
< a name = "l59" > < / a > < / span > < span class = cF1 > U8< / span > < span class = cF0 > *res;
< a name = "l60" > < / a > < / span > < span class = cF9 > CDoc< / span > < span class = cF0 > *doc = < / span > < span class = cF5 > DocNew< / span > < span class = cF0 > ;
< a name = "l61" > < / a > < / span > < span class = cF9 > CDocEntry< / span > < span class = cF0 > *doc_e, *doc_default = < / span > < span class = cF3 > NULL< / span > < span class = cF0 > ;
< a name = "l62" > < / a > < / span > < span class = cF9 > CHashGeneric< / span > < span class = cF0 > *tmph;
2021-07-03 05:07:57 +01:00
< a name = "l63" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l64" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (header)
< a name = "l65" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " %s" < / span > < span class = cF0 > , header);
2021-07-03 05:07:57 +01:00
< a name = "l66" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l67" > < / a > < / span > < span class = cF1 > for< / span > < span class = cF0 > (i = < / span > < span class = cFE > 0< / span > < span class = cF0 > ; i < = accts_table-> mask; i++)
< a name = "l68" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l69" > < / a > tmph = accts_table-> body[i];
< a name = "l70" > < / a > < / span > < span class = cF1 > while< / span > < span class = cF0 > (tmph)
< a name = "l71" > < / a > {
< a name = "l72" > < / a > doc_e = < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " $FG,%d$$MU-UL,\" %s\" ,LE=0x%X$\n" < / span > < span class = cF0 > , tmph-> user_data1, tmph-> str, tmph-> str);
< a name = "l73" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cF1 > default< / span > < span class = cF0 > & & !< / span > < span class = cF5 > StrCompare< / span > < span class = cF7 > (< / span > < span class = cF1 > default< / span > < span class = cF0 > , tmph-> str< / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l74" > < / a > doc_default = doc_e;
< a name = "l75" > < / a > tmph = tmph-> next;
< a name = "l76" > < / a > }
< a name = "l77" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = "l78" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l79" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (doc_default)
< a name = "l80" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l81" > < / a > doc-> cur_entry = doc_default;
< a name = "l82" > < / a > doc-> cur_col = < / span > < span class = cFE > 0< / span > < span class = cF0 > ;
< a name = "l83" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l84" > < / a > res = < / span > < span class = cF5 > PopUpMenu< / span > < span class = cF0 > (doc, < / span > < span class = cF3 > DOF_DONT_HOME< / span > < span class = cF0 > );
< a name = "l85" > < / a > < / span > < span class = cF5 > DocDel< / span > < span class = cF0 > (doc);
2021-07-03 05:07:57 +01:00
< a name = "l86" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l87" > < / a > < / span > < span class = cF1 > return< / span > < span class = cF0 > res;
2021-07-03 05:07:57 +01:00
< a name = "l88" > < / a > }
< / span > < / pre > < / body >
< / html >