public FormPayrollItemFomula(string id, string exp, FomulaConverter fcon)
 {
     InitializeComponent();
     this.itemid = id;
     this.exp = exp;
     this.expBk = this.exp;
     fconv = fcon;
     Initialize();
 }
Esempio n. 2
0
 private void InitFomulaConverter()
 {
     try
     {
         List<CalcFlag> cfs = ipayroll.getAllCalcFlag();
         List<PayrollItem> prs = ipayroll.getAllPayrollItem();
         fomulaConverter = new FomulaConverter(prs, cfs);
     }
     catch (BIZException be)
     {
         ShowErrorInfo("计算式相关数据读取失败, 无法正常显示计算表达式: " + be.Message);
         fomulaConverter = null;
         return;
     }
     catch (DAOException de)
     {
         ShowErrorInfo("计算式相关数据读取失败, 无法正常显示计算表达式: " + de.Message);
         fomulaConverter = null;
         return;
     }
 }