Esempio n. 1
0
        public GLandPriceView()
        {
            InitializeComponent();
            _engine = new GLandprice();
            _engine.SetView(this);
            _controller = new GLandpriceController(_engine,this);

            _mapView = this.gMapView1;
            //this._mapView.SetLandpriceView(this);
            _landpriceName = DataNameTemplate.Thua_Gia_Dat_Draft;
            this._inputParams = InputParams.CallMe();
        }
Esempio n. 2
0
        private void setValue4InputParams()
        {
            this._inputParams = InputParams.CallMe();
            this._currentConfig = CurrentConfig.CallMe();
            _inputParams.TINH_THUA_RIENG_LE = 0;
            if (cbxXa.Text == ".Tất cả.")
            {
                _inputParams.MA_XA = "*";
            }
            else
            {
                _inputParams.MA_XA = _lstXa.FindId(cbxXa.Text).ToString();
            }
            if (cbxDuong.Text == ".Tất cả.")
            {
                _inputParams.TEN_DUONG = "*";
            }
            else
            {
                _inputParams.TEN_DUONG = cbxDuong.Text;
            }
            if (cbxDoanDuong.Text == ".Tất cả.")
            {
                _inputParams.MA_DUONG = "-1";
            }
            else
            {
                _inputParams.MA_DUONG = _lstDoanDuong.FindId(cbxDoanDuong.SelectedIndex - 1).ToString();
            }
            //_currentConfig.NamApDung = spnNam.EditValue.ToString();
            //_inputParams.CURRENT_CONFIG.NamApDung = spnNam.EditValue.ToString();
            //MessageBox.Show(string.Format("maxa={0}, tenduong={1},maduong={2}", _inputParams.MA_XA, _inputParams.TEN_DUONG, _inputParams.MA_DUONG));
            if (chkOverWrite.CheckState == CheckState.Checked)
            {
                _inputParams.OVER_WRITE_ATT = true;
            }
            else if (chkOverWrite.CheckState == CheckState.Unchecked)
            {
                _inputParams.OVER_WRITE_ATT = false;
            }

            //lay curentconfig
            //IConfigReader configReader = new ConfigReader(_currentConfig);
            //configReader.Read(TnSystemFileName.PARAMS, spnNam.EditValue.ToString());
            //MessageBox.Show(_currentConfig.DBufferMattien.ToString());
            //MessageBox.Show(_inputParams.CURRENT_CONFIG.DBufferMattien.ToString());
        }
Esempio n. 3
0
 void ICalculationView.SetInputParams(IInputParams input)
 {
     this._inputParams = input;
 }