예제 #1
0
        /// <summary>
        /// 承包方变化时候,及时获取其家庭信息以及地块信息
        /// </summary>
        protected void OnCBFEntityChanged()
        {
            CBFDatabaseServices db = new CBFDatabaseServices();

            CBFFamily = db.GetAllFamily(CBFEntity);

            CBDKXXDatabaseServices dk = new CBDKXXDatabaseServices();

            CBFDK = dk.GetDkByCBF(CBFEntity);
        }
예제 #2
0
        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;
        }
예제 #3
0
        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;
        }