/// <summary> /// 承包方变化时候,及时获取其家庭信息以及地块信息 /// </summary> protected void OnCBFEntityChanged() { CBFDatabaseServices db = new CBFDatabaseServices(); CBFFamily = db.GetAllFamily(CBFEntity); CBDKXXDatabaseServices dk = new CBDKXXDatabaseServices(); CBFDK = dk.GetDkByCBF(CBFEntity); }
protected override void OnInitializeInRuntime() { base.OnInitializeInRuntime(); CBFDatabaseServices db = new CBFDatabaseServices(); IEnumerable <CBFModels> CBF = db.GetAllCBF(); foreach (var i in CBF) { i.Family = db.GetAllFamily(i); } CBFModel = CBF; }
private void GetData() { CBFDatabaseServices db = new CBFDatabaseServices(); ObservableCollection <CBFModels> CBF = db.GetAllCBF(); foreach (var i in CBF) { i.Family = db.GetAllFamily(i); } CBFModel = CBF; InsertDbTest insert = new InsertDbTest(); insert.CountNum(); count = insert.Count; }