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

            CBFFamily = db.GetAllFamily(CBFEntity);

            CBDKXXDatabaseServices dk = new CBDKXXDatabaseServices();

            CBFDK = dk.GetDkByCBF(CBFEntity);
        }
Example #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;
        }
Example #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;
        }