示例#1
0
 public void FillData()
 {
     dt          = new DataTable();
     Businessobj = new BusinessAddDepartment();
     dt          = Businessobj.BusinessFillLocation();
     cmbxLocation.DisplayMember = dt.Columns[1].ToString();
     cmbxLocation.DataSource    = dt;
     cmbxLocation.DropDownStyle = ComboBoxStyle.DropDownList;
     txtDeptId.Text             = (Businessobj.BusinessGetLastDeptId() + 1).ToString();
 }
示例#2
0
 public AddDeptDtls()
 {
     InitializeComponent();
     objEntityAddDept = new EntityAddDepartment();
     Businessobj      = new BusinessAddDepartment();
 }
 public void Init()
 {
     objBusinessAddDept = new BusinessAddDepartment();
     objEntityAddDept   = new EntityAddDepartment();
 }