private string call_Code_New() { Class.Danhmuc_Chucvu dmcv = new Class.Danhmuc_Chucvu(); return(dmcv.GetNewCode()); }
private string Call_Code_New(string Form_Name) { string code = ""; switch (Form_Name) { case "TT": Class.CT_Provice dmtt = new Class.CT_Provice(); code = dmtt.GetNewCode(); break; case "HV": Class.Danhmuc_Hocvan dmhv = new Class.Danhmuc_Hocvan(); code = dmhv.GetNewCode(); break; case "BC": Class.Danhmuc_Hocvan dmbc = new Class.Danhmuc_Hocvan(); code = dmbc.GetNewCode(); break; case "CV": Class.Danhmuc_Chucvu dmcv = new Class.Danhmuc_Chucvu(); code = dmcv.GetNewCode(); break; case "CM": Class.DanhMuc_ChuyenMon dmcm = new Class.DanhMuc_ChuyenMon(); code = dmcm.GetNewCode(); break; case "QG": Class.DanhMuc_QuocGia dmqg = new Class.DanhMuc_QuocGia(); code = dmqg.GetNewCode(); break; case "DT": Class.DanhMuc_DanToc dmdt = new Class.DanhMuc_DanToc(); code = dmdt.GetNewCode(); break; case "TG": Class.DanhMuc_TonGiao dmtg = new Class.DanhMuc_TonGiao(); code = dmtg.GetNewCode(); break; case "QHGD": Class.DanhMuc_GiaDinh dmgd = new Class.DanhMuc_GiaDinh(); code = dmgd.GetNewCode(); break; case "TH": Class.DanhMuc_TinHoc dmth = new Class.DanhMuc_TinHoc(); code = dmth.GetNewCode(); break; case "NN": Class.DanhMuc_NgoaiNgu dmnn = new Class.DanhMuc_NgoaiNgu(); code = dmnn.GetNewCode(); break; case "KN": Class.DanhMuc_KyNang dmkn = new Class.DanhMuc_KyNang(); code = dmkn.GetNewCode(); break; } return(code); }