Exemplo n.º 1
0
 public FrmTnOpenParams()
 {
     InitializeComponent();
     this._currentConfig = CurrentConfig.CallMe();
     //this.spnNam.EditValue = int.Parse(_currentYear);
     //this.txtPath.Text = TnSystemFileName.PARAMS;
 }
Exemplo n.º 2
0
 public FindPositionAndCalc(Calculator caller)
 {
     _caller = caller;
     _currentConfig = CurrentConfig.CallMe();
     _methodBuilder = new CalculationMethodBuilder();
     _methodBuilder.Config = _currentConfig;
 }
Exemplo n.º 3
0
 public FrmGiaDatNn()
 {
     InitializeComponent();
     _curConfig = CurrentConfig.CallMe();
     _edit = (IEditTableView)this.gTableViewAllowCopy1;
     this.Load += new EventHandler(Frm_Load);
 }
Exemplo n.º 4
0
 public ConfigController(IConfigView view, ICurrentConfig config, ISaveConfigView saveView)
 {
     this._config = config;
     this._view = view;
     this._saveView = saveView;
     this._reader = new ConfigReader(this._config);
 }
Exemplo n.º 5
0
 public ConfigController(IConfigView view, ICurrentConfig config,IOpenConfigView openView)
 {
     this._config = config;
     this._view = view;
     this._openView = openView;
     this._reader = new ConfigReader(this._config);
 }
Exemplo n.º 6
0
 public CalcLandprice(Calculator caller)
 {
     _caller = caller;
     _currentConfig = CurrentConfig.CallMe();
     _methodBuilder = new CalculationMethodBuilder();
     _methodBuilder.Config = _currentConfig;
 }
Exemplo n.º 7
0
 public QueryThua(IQueryThuaView view)
 {
     _views = new List<IQueryThuaView>();
     _views.Add(view);
     _sqlTable = SQLTable.CallMe;
     this._bwk = new BackgroundWorker();
     this._bwk.DoWork += new DoWorkEventHandler(_bwk_DoWork);
     this._config = CurrentConfig.CallMe();
 }
Exemplo n.º 8
0
 public Evaluation(string expr)
 {
     this._expr = expr;
     _conn = new SdeConnection();
     _sdeConn = (ISdeConnectionInfo)_conn;
     _conf = CurrentConfig.CallMe();
     _fcName = new TnFeatureClassName(_sdeConn.Workspace);
     _tblName = new TnTableName(_sdeConn.Workspace);
     _dicParams = new Dictionary<string, object>();
 }
Exemplo n.º 9
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());
        }
Exemplo n.º 10
0
 public ConfigReader(ICurrentConfig config)
 {
     this._config = config;
 }
Exemplo n.º 11
0
 private void initFiles()
 {
     //khoi tao file cac thong so tinh gia
     try
     {
         _curConfig = CurrentConfig.CallMe();
         IConfigReader confReader = new ConfigReader(_curConfig);
         confReader.CreateDefaultConfig();
     }
     catch (Exception ex)
     {
         MessageBox.Show("line 219 Main: ex="+ex.ToString());
     }
 }
Exemplo n.º 12
0
 public void SetConfig(ICurrentConfig conf)
 {
     this._curConfig = conf;
 }
Exemplo n.º 13
0
 public GLandprice(ICurrentConfig conf)
 {
     _conf = conf;
     _tableName = DataNameTemplate.Thua_Gia_Dat_Draft;
 }
Exemplo n.º 14
0
 private InputParams()
 {
     conf = CurrentConfig.CallMe() as ICurrentConfig;
 }
Exemplo n.º 15
0
 public void SetConfig(ICurrentConfig conf)
 {
     _view.Config = conf;
 }