Beispiel #1
0
        private void ugdObracunUstanoveRazrediUcenik_ClickCell(object sender, Infragistics.Win.UltraWinGrid.ClickCellEventArgs e)
        {
            BusinessLogic.Obracuni Obracuni = new BusinessLogic.Obracuni();

            if (ugdObracunUstanoveRazrediUcenik.DisplayLayout.Bands.Count > 0)
            {
                if (ugdObracunUstanoveRazrediUcenik.DisplayLayout.Bands[0].Columns.Count > 0)
                {
                    if (ugdObracunUstanoveRazrediUcenik.ActiveRow.Band.ToString() == "Ustanove")
                    {
                        NapuniObracunStavke((int)ugdObracunUstanoveRazrediUcenik.ActiveRow.Cells["ID"].Value, 0, 0, ugdObracunUstanoveRazrediUcenik.ActiveRow.Band.ToString());
                    }
                    if (ugdObracunUstanoveRazrediUcenik.ActiveRow.Band.ToString() == "Razredi")
                    {
                        NapuniObracunStavke((int)ugdObracunUstanoveRazrediUcenik.ActiveRow.Cells["ID"].Value, (int)ugdObracunUstanoveRazrediUcenik.ActiveRow.Cells["IDUstanovaSkolskaGodina"].Value,
                                            0, ugdObracunUstanoveRazrediUcenik.ActiveRow.Band.ToString());
                    }
                    if (ugdObracunUstanoveRazrediUcenik.ActiveRow.Band.ToString() == "Ucenici")
                    {
                        Obracuni.pIDRazrednoOdjeljenje    = (int)ugdObracunUstanoveRazrediUcenik.ActiveRow.Cells["IDRazrednoOdjeljenje"].Value;
                        Obracuni.pIDUcenik                = (int)ugdObracunUstanoveRazrediUcenik.ActiveRow.Cells["ID"].Value;
                        Obracuni.pIDUstanovaSkolskaGodina = (int)ugdObracunUstanoveRazrediUcenik.ActiveRow.Cells["IDUstanovaSkolskaGodina"].Value;
                        if (!Obracuni.NadiStavku())
                        {
                            NapuniObracunStavke(Obracuni.pIDUcenik, Obracuni.pIDUstanovaSkolskaGodina, Obracuni.pIDRazrednoOdjeljenje, ugdObracunUstanoveRazrediUcenik.ActiveRow.Band.ToString());
                        }
                        else
                        {
                            NapuniObracunStavkePostojeci(Obracuni.pIDRazrednoOdjeljenje, Obracuni.pIDUcenik);
                        }
                    }
                }
            }
        }
    private void ugdVehicle_ClickCell(object sender, Infragistics.Win.UltraWinGrid.ClickCellEventArgs args)
    {
        // ** Place Event Handling Code Here **
        switch (args.Cell.Column.Header.Caption)
        {
        case "Check":
            if (ugdVehicle.ActiveRow != null && ugdVehicle.ActiveRow.IsDataRow)
            {
                UltraGridRow activeRow = this.ugdVehicle.ActiveRow;
                if (!ugdVehicle.ActiveRow.IsDataRow)
                {
                    return;
                }

                if (!Convert.ToBoolean(activeRow.Cells["Calculated_Check"].Value))
                {
                    CreateChild(activeRow.Cells["UD100_Key1"].Value.ToString(), activeRow.Cells["UD100_Key2"].Value.ToString(), activeRow.Cells["UD100_Key3"].Value.ToString(), activeRow.Cells["UD100_Key4"].Value.ToString(), activeRow.Cells["UD100_Key5"].Value.ToString());
                }
                else
                {
                    DeleteChild(activeRow.Cells["UD100_Key1"].Value.ToString(), activeRow.Cells["UD100_Key2"].Value.ToString(), activeRow.Cells["UD100_Key3"].Value.ToString(), activeRow.Cells["UD100_Key4"].Value.ToString(), activeRow.Cells["UD100_Key5"].Value.ToString());
                }
            }
            break;
        }         //switch (args.Cell.Column.Header.Caption)
    }
 private void uGridBomDetail_ClickCell(object sender, Infragistics.Win.UltraWinGrid.ClickCellEventArgs e)
 {
     if (e.Cell.Row.Index < 0)
     {
         return;
     }
     uGridCurrentStock.DisplayLayout.Bands[0].ColumnFilters["FNumber"].FilterConditions.Clear();
     uGridCurrentStock.DisplayLayout.Bands[0].ColumnFilters["FNumber"].FilterConditions.Add(
         FilterComparisionOperator.Contains, e.Cell.Row.Cells["cInvCode"].Value.ToString());
 }
Beispiel #4
0
 private void grdData_ClickCell(object sender, Infragistics.Win.UltraWinGrid.ClickCellEventArgs e)
 {
     if ((e.Cell.Column.Key == "b_Seleccionar"))
     {
         if ((e.Cell.Value.ToString() == "False"))
         {
             e.Cell.Value = true;
         }
         else
         {
             e.Cell.Value = false;
         }
     }
 }
 private void gridSamples_ClickCell(object sender, Infragistics.Win.UltraWinGrid.ClickCellEventArgs e)
 {
     Sound.PlayWaveResource("StateError.wav");
 }
Beispiel #6
0
 private void Model_uGrid1_ClickCell(object sender, Infragistics.Win.UltraWinGrid.ClickCellEventArgs e)
 {
     Model_uGrid1_NowRowDisplay();
 }
Beispiel #7
0
 private void grPartos_ClickCell(object sender, Infragistics.Win.UltraWinGrid.ClickCellEventArgs e)
 {
     btnEditar.Enabled   = true;
     btnEliminar.Enabled = true;
 }
Beispiel #8
0
 private void grService_ClickCell(object sender, Infragistics.Win.UltraWinGrid.ClickCellEventArgs e)
 {
     btnAgregar.Enabled = true;
 }