Exemplo n.º 1
0
        private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e)
        {
            FormFeeSchedEdit FormF = new FormFeeSchedEdit();

            FormF.FeeSchedCur = FeeSchedC.ListLong[e.Row];
            FormF.ShowDialog();
            FillGrid();
            changed = true;
            for (int i = 0; i < FeeSchedsForType.Count; i++)
            {
                if (FormF.FeeSchedCur.FeeSchedNum == FeeSchedsForType[i].FeeSchedNum)
                {
                    gridMain.SetSelected(i, true);
                }
            }
        }
Exemplo n.º 2
0
        private void butAdd_Click(object sender, System.EventArgs e)
        {
            FormFeeSchedEdit FormF = new FormFeeSchedEdit();

            FormF.FeeSchedCur           = new FeeSched();
            FormF.FeeSchedCur.IsNew     = true;
            FormF.FeeSchedCur.ItemOrder = FeeSchedC.ListLong.Count;
            if (listType.SelectedIndex > 0)
            {
                FormF.FeeSchedCur.FeeSchedType = (FeeScheduleType)(listType.SelectedIndex - 1);
            }
            FormF.ShowDialog();
            FillGrid();
            changed = true;
            for (int i = 0; i < FeeSchedsForType.Count; i++)
            {
                if (FormF.FeeSchedCur.FeeSchedNum == FeeSchedsForType[i].FeeSchedNum)
                {
                    gridMain.SetSelected(i, true);
                }
            }
        }
Exemplo n.º 3
0
        private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e)
        {
            if (_isSelectionMode)
            {
                SelectedFeeSchedNum = ((FeeSched)gridMain.ListGridRows[e.Row].Tag).FeeSchedNum;
                DialogResult        = DialogResult.OK;
                Close();
                return;
            }
            FormFeeSchedEdit FormF = new FormFeeSchedEdit();

            FormF.FeeSchedCur   = _listFeeSchedsForType[e.Row];
            FormF.ListFeeScheds = _listFeeScheds;
            FormF.ShowDialog();
            FillGrid();
            for (int i = 0; i < _listFeeSchedsForType.Count; i++)
            {
                if (FormF.FeeSchedCur.FeeSchedNum == _listFeeSchedsForType[i].FeeSchedNum)
                {
                    gridMain.SetSelected(i, true);
                }
            }
        }
Exemplo n.º 4
0
		private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) {
			FormFeeSchedEdit FormF=new FormFeeSchedEdit();
			FormF.FeeSchedCur=FeeSchedC.ListLong[e.Row];
			FormF.ShowDialog();
			FillGrid();
			changed=true;
			for(int i=0;i<FeeSchedsForType.Count;i++){
				if(FormF.FeeSchedCur.FeeSchedNum==FeeSchedsForType[i].FeeSchedNum){
					gridMain.SetSelected(i,true);
				}
			}
		}
Exemplo n.º 5
0
		private void butAdd_Click(object sender, System.EventArgs e) {
			FormFeeSchedEdit FormF=new FormFeeSchedEdit();
			FormF.FeeSchedCur=new FeeSched();
			FormF.FeeSchedCur.IsNew=true;
			FormF.FeeSchedCur.ItemOrder=FeeSchedC.ListLong.Count;
			if(listType.SelectedIndex>0){
				FormF.FeeSchedCur.FeeSchedType=(FeeScheduleType)(listType.SelectedIndex-1);
			}
			FormF.ShowDialog();
			FillGrid();
			changed=true;
			for(int i=0;i<FeeSchedsForType.Count;i++){
				if(FormF.FeeSchedCur.FeeSchedNum==FeeSchedsForType[i].FeeSchedNum){
					gridMain.SetSelected(i,true);
				}
			}
		}