예제 #1
0
        public override void setUsedCurrency(ConstUsedCur pCur)
        {
            base.setUsedCurrency(pCur);



            blocksListBlock(bpArrPriceXToLoc);
            blocksListBlock(bpArrTotalXToLoc);

            blocksListBlock(bpArrPriceXFromLoc);
            blocksListBlock(bpArrTotalXFromLoc);



            //
            int curType  = (int)pCur;
            int curIndex = listCurIndx.IndexOf(curType);

            //
            if (pCur == ConstUsedCur.national)
            {
                bpArrMain[curIndex].unblock();
                //
                blocksListUnblock(bpArrPriceXFromLoc);
                blocksListUnblock(bpArrTotalXFromLoc);
            }
            else if (pCur == ConstUsedCur.trans || pCur == ConstUsedCur.report || pCur == ConstUsedCur.other || pCur == ConstUsedCur.euro)
            {
                bpArrMain[curIndex].unblock();
                //
                bpArrPriceXToLoc[curIndex].unblock();
                bpArrTotalXToLoc[curIndex].unblock();
                //
                blocksListUnblock(bpArrPriceXFromLoc);
                blocksListUnblock(bpArrTotalXFromLoc);
                bpArrPriceXFromLoc[curIndex].block();
                bpArrTotalXFromLoc[curIndex].block();
                //
            }
            //
        }
예제 #2
0
 public virtual void setUsedCurrency(ConstUsedCur pCur)
 {
     innerVarUsedCurrency = pCur;
 }