예제 #1
0
    public void updateSource(string previousName, string name, string address, string EmployeeName1, string EmployeeName2, string phone1, string phone2, string phone3)
    {
        source   = new Source();
        sourceDB = new SourceDB();
        int ID = this.selectID(previousName);

        source.setID(ID);
        source.setName(name);
        source.setEmployeeName1(EmployeeName1);
        source.setEmployeeName2(EmployeeName2);
        source.setAddress(address);
        source.setPhone1(phone1);
        source.setPhone2(phone2);
        source.setPhone3(phone3);
        sourceDB.update(source);
    }