Package realcix20.classes

Source Code of realcix20.classes.BudgetSettingClass

package realcix20.classes;

import realcix20.classes.basic.BaseClass;
import realcix20.classes.basic.Cell;
import realcix20.classes.basic.Row;
import realcix20.utils.DAO;
import realcix20.utils.ObjectUtil;
import realcix20.utils.Resources;

public class BudgetSettingClass extends BaseClass {
   
    public BudgetSettingClass(int clsId) {
            super(clsId);
    }
   
    public void deleteAllRelateItems(Row row) {       
        String b = null;
        Cell cell = ObjectUtil.findNewCell(row, "B", "B");
        b = (String)cell.getColumnValue();
        String ruser = null;
        cell = ObjectUtil.findNewCell(row, "B", "RUSER");
        ruser = (String)cell.getColumnValue();
        String rmonth = null;
        cell = ObjectUtil.findNewCell(row, "B", "RMONTH");
        rmonth = (String)cell.getColumnValue();
        DAO dao = DAO.getInstance();
        dao.update(Resources.DELETE_ALL_BI_SQL);
        dao.setObject(1, b);
        dao.setObject(2, ruser);
        dao.setObject(3, rmonth);
        dao.executeUpdate();       
    }
   
}
TOP

Related Classes of realcix20.classes.BudgetSettingClass

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.