Exemplo n.º 1
0
 private void UltraCombo1_RowSelected(object sender, RowSelectedEventArgs e)
 {
     if (e.Row != null)
     {
         if (Operators.ConditionalCompareObjectEqual(e.Row.Cells["IDORGDIO"].Value, "-1", false))
         {
             this.UltraGrid2.DisplayLayout.Bands[0].ColumnFilters.ClearAllFilters();
             if (this.chkAktivni.Checked)
             {
                 this.Parametri_PrikaziSamoAktivne();
             }
             else
             {
                 this.Parametri_PrikaziSve();
             }
         }
         else if (this.chkAktivni.Checked)
         {
             this.Parametri_PrikaziSamoAktivne();
         }
         else
         {
             this.Parametri_PrikaziSve();
         }
     }
 }
 static void FormHandler_RowSelected(object sender, RowSelectedEventArgs e)
 {
     if (((UltraCombo)sender).ActiveRow != null)
     {
         ((TextBox)dsComboTextBox[sender]).Text = ((UltraCombo)sender).Value.ToString();
     }
 }
Exemplo n.º 3
0
 protected virtual void onRowSelected(object sender, RowSelectedEventArgs e)
 {
     if (RowSelected != null)
     {
         RowSelected(sender, e);
     }
 }
Exemplo n.º 4
0
        private void uddShift_RowSelected(object sender, RowSelectedEventArgs e)
        {
            if (uddShift.ActiveRow == null)
            {
                return;
            }

            gridList.ActiveRow.Cells["ShiftId"].Value = uddShift.ActiveRow.Cells["ShiftId"].Value.ToString();
        }
        //private void gridDetails_AfterCellActivate(object sender, EventArgs e)
        //{
        //    int rate, times;
        //    for (int i = 0; i < gridDetails.Rows.Count; i++)
        //    {
        //        if (int.TryParse(gridDetails.Rows[i].Cells[10].Value.ToString(), out rate) && int.TryParse(gridDetails.Rows[i].Cells[11].Value.ToString(), out times))
        //        {
        //            int TotalAmount = rate * times; gridDetails.Rows[i].Cells[12].Value = TotalAmount.ToString();
        //        }
        //    }
        //}

        private void uddBand_RowSelected(object sender, RowSelectedEventArgs e)
        {
            if (uddBand.ActiveRow == null)
            {
                return;
            }

            gridDetails.ActiveRow.Cells["Grade"].Value = uddBand.ActiveRow.Cells["Grade"].Value.ToString();
        }
        private void uddFinalId_RowSelected(object sender, RowSelectedEventArgs e)
        {
            if (uddFinalId.ActiveRow == null)
            {
                return;
            }

            gridList.ActiveRow.Cells["FinalAppId"].Value = uddFinalId.ActiveRow.Cells["FinalAppId"].Value.ToString();
        }
        private void uddComp_RowSelected(object sender, RowSelectedEventArgs e)
        {
            if (uddComp.ActiveRow == null)
            {
                return;
            }

            gridList.ActiveRow.Cells["ComName"].Value = uddComp.ActiveRow.Cells["ComName"].Value.ToString();
        }
Exemplo n.º 8
0
    protected void AppointmentGrid_SelectedIndexChanged(object sender, EventArgs e)
    {
        int ubrn = (int)AppointmentGrid.SelectedDataKey.Value;

        RowSelectedEventArgs args = new RowSelectedEventArgs(ubrn);

        // Fire the event handler giving the host page chance to handle
        // this event in its context.
        OnRowSelected(args);
    }
Exemplo n.º 9
0
    protected virtual void OnRowSelected(RowSelectedEventArgs e)
    {
        EventHandler <RowSelectedEventArgs> handler = (EventHandler <
                                                           RowSelectedEventArgs>)base.Events[EventRowSelected];

        if (null != handler)
        {
            handler(this, e);
        }
    }
Exemplo n.º 10
0
        private void uddFeeTp_RowSelected(object sender, RowSelectedEventArgs e)
        {
            if (uddFeeTp.ActiveRow == null)
            {
                return;
            }

            gridTemp.ActiveRow.Cells["SubjectCode"].Value = uddFeeTp.ActiveRow.Cells["SubjectCode"].Text.ToString();
            gridTemp.ActiveRow.Cells["marks"].Value       = uddFeeTp.ActiveRow.Cells["marks"].Text.ToString();
        }
Exemplo n.º 11
0
    void apptImage_Click(object sender, ImageClickEventArgs e)
    {
        ImageButton apptImage = (ImageButton)sender;
        int         ubrn      = Int32.Parse(apptImage.Attributes["UBRN"]);

        RowSelectedEventArgs args = new RowSelectedEventArgs(ubrn);

        // Fire the event handler giving the host page chance to handle
        // this event in its context.
        OnRowSelected(args);
    }
Exemplo n.º 12
0
            public override void Selected(UIPickerView pickerView, nint row, nint component)
            {
                EventHandler <RowSelectedEventArgs> handle = RowSelected;

                if (null != handle)
                {
                    var args = new RowSelectedEventArgs {
                        SelectedIndex = (int)row, SelectedTitle = Urls [(int)row]
                    };
                    handle(this, args);
                }
            }
        //private void ultraDropDown1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
        //{
        //    //UltraGridLayout layout = e.Layout;
        //    //UltraGridBand band = layout.Bands[0];

        //    //band.Columns["ComponentFieldName"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList;
        //    // Set the scroll style to immediate so when the user scrolls the drop down
        //    // using scroll thumb, rows get scrolled imediately.
        //    e.Layout.ScrollStyle = ScrollStyle.Immediate;

        //    // Change the order in which columns get displayed in the UltraDropDown.
        //    e.Layout.Bands[0].Columns["i_Order"].Header.VisiblePosition = 0;
        //    e.Layout.Bands[0].Columns["ComponentFieldName"].Header.VisiblePosition = 1;

        //    // Hide columns you don't want shown.
        //    //e.Layout.Bands[0].Columns["UnitsOnOrder"].Hidden = true;

        //    // Sort the items in the drop down by ProductName column.
        //    e.Layout.Bands[0].SortedColumns.Clear();
        //    e.Layout.Bands[0].SortedColumns.Add("ComponentFieldName", false);

        //    // Set the border style of the drop down.
        //    e.Layout.BorderStyle = UIElementBorderStyle.Solid;

        //}

        private void txtLabel_RowSelected(object sender, RowSelectedEventArgs e)
        {
            //if (e.Row == null) return;

            //var ultraCombo = (UltraCombo)sender;

            //var joinedfields = string.Format("{0} / {1} / {2}",
            //                        e.Row.Cells["Nombre"].Value.ToString(),
            //                        e.Row.Cells["Grupo"].Value.ToString(),
            //                        e.Row.Cells["Componente"].Value.ToString());

            //ultraCombo.Text = joinedfields;
        }
Exemplo n.º 14
0
    protected void OnAppointmentRowSelected(object sender, RowSelectedEventArgs e)
    {
        int ubrn = (int)e.SelectedRowDataItem;

        _presenter.OnAppointmentRowSelected(ubrn);
        patientDetails.PatientId = _selectedAppointment.Patient.Id;
        patientDetails.BindData();
        appointmentDetails.Ubrn = _selectedAppointment.UBRN;
        appointmentDetails.BindData();
        ActionAccordionPane.Visible = true;
        SetActionButtonsVisibility();
        pnlDetails.Update();
    }
Exemplo n.º 15
0
 private void ultraComboBandSelector_RowSelected(object sender, RowSelectedEventArgs e)
 {
     if (this.Grid != null && !this.Grid.IsDisposed)
     {
         UltraGridBand ultraGridBand = this.ultraComboBandSelector.Value as UltraGridBand;
         if (ultraGridBand == null)
         {
             ultraGridBand = this.Grid.DisplayLayout.Bands[0];
             this.ultraComboBandSelector.Value = (ultraGridBand);
         }
         this.ultraGridColumnChooser1.CurrentBand = (ultraGridBand);
     }
 }
Exemplo n.º 16
0
 private void txtcLotNo_RowSelected(object sender, RowSelectedEventArgs e)
 {
     if (e.Row != null && e.Row.Index > -1)
     {
         var     cQuantity = e.Row.Cells["FQty"].Value.ToString();
         decimal iQuantity;
         if (decimal.TryParse(cQuantity, out iQuantity))
         {
             uneiQuantity.Value = iQuantity;
         }
         SetRecentVendor();
     }
 }
Exemplo n.º 17
0
 private void ResCombo_RowSelected(object sender, RowSelectedEventArgs e)
 {
     this.m_dropdownRow = e.Row;
     if ((((this.m_dropdownRow != null) && !ResFunc.IsOnlineOutRes(this.classOid)) && (constResource.Label_OID != "")) && ((this.m_dropdownRow.Cells[constResource.Label_OID] != null) && (this.m_dropdownRow.Cells[constResource.Label_OID].Value.ToString() != "")))
     {
         if (this.m_dropdownRow.Cells[constResource.Label_OID].Value.GetType() == typeof(Guid))
         {
             this.resOid = (Guid)this.m_dropdownRow.Cells[constResource.Label_OID].Value;
         }
         else
         {
             this.resOid = new Guid((byte[])this.m_dropdownRow.Cells[constResource.Label_OID].Value);
         }
     }
 }
Exemplo n.º 18
0
 private void cbExamen_RowSelected(object sender, RowSelectedEventArgs e)
 {
     #region Conexion SIGESOFT obtener idcomponent
     ConexionSigesoft conectasam = new ConexionSigesoft();
     conectasam.opensigesoft();
     var           cadena  = "select CP.v_componentId from component CP where CP.v_Name='" + cbExamen.Text + "'";
     SqlCommand    comando = new SqlCommand(cadena, connection: conectasam.conectarsigesoft);
     SqlDataReader lector  = comando.ExecuteReader();
     while (lector.Read())
     {
         txtComponentId.Text = lector.GetValue(0).ToString();
     }
     lector.Close();
     conectasam.closesigesoft();
     #endregion
 }
Exemplo n.º 19
0
        private void grdQuarterCombo_RowSelected(object sender, RowSelectedEventArgs e)
        {
            if (grdQuarterCombo.Text != "")
            {
                string constr = ConfigurationManager.ConnectionStrings["epicorConnectionString"].ConnectionString;

                string strqry = " select * from v_vendor_splt_display where   [Part Number]='" + cmbPartNum.Text + "' and  QUARTER>=(SELECT     cast(YEAR(getdate()) AS varchar) + 'Q' + replicate('0', (2 - len(DATENAME(Quarter, GETDATE())))) + DATENAME(Quarter, GETDATE()) )  ";
                if (grdQuarterCombo.Text != "ALL")
                {
                    strqry = strqry + "  and     quarter='" + grdQuarterCombo.Text + "'";
                }

                DataSet ds = getDataSet(strqry, constr);
                grdVendorSplit.DataSource = ds.Tables[0];
            }
        }
Exemplo n.º 20
0
        private static void combo_RowSelected(object sender, RowSelectedEventArgs e)
        {
            Label label = (Label)FindControl(((UltraCombo)sender).FindForm(), "lbldynamic" + ((UltraCombo)sender).FindForm().Name + ((UltraCombo)sender).Name);

            if ((label != null) && (((UltraCombo)sender).SelectedRow != null))
            {
                if (((UltraCombo)sender).ValueMember == ((UltraCombo)sender).DisplayMember)
                {
                    label.Text = Conversions.ToString(((UltraCombo)sender).SelectedRow.Cells[1].Value);
                }
                else
                {
                    label.Text = Conversions.ToString(((UltraCombo)sender).SelectedRow.Cells[((UltraCombo)sender).ValueMemberResolved].Value);
                }
            }
        }
Exemplo n.º 21
0
 private void cboEmpID_RowSelected(object sender, RowSelectedEventArgs e)
 {
     try
     {
         if (cboEmpID.Value != null)
         {
             //
             txtName.Text     = cboEmpID.ActiveRow.Cells["empName"].Value.ToString();
             dtJoinDate.Value = cboEmpID.ActiveRow.Cells["dtJoin"].Value.ToString();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
         //   throw;
     }
 }
Exemplo n.º 22
0
        private void cbLine_RowSelected(object sender, RowSelectedEventArgs e)
        {
            #region Conexion SAM obtener id de linea
            ConexionSambhs conectasam = new ConexionSambhs();
            conectasam.openSambhs();
            var           cadena   = "select v_IdLinea from [dbo].[linea] where v_Nombre='" + cbLine.Text + "' and i_Eliminado=0";
            SqlCommand    comandou = new SqlCommand(cadena, connection: conectasam.conectarSambhs);
            SqlDataReader lectoru  = comandou.ExecuteReader();
            lineId = "";
            while (lectoru.Read())
            {
                lineId = lectoru.GetValue(0).ToString();
            }
            lectoru.Close();
            conectasam.closeSambhs();
            #endregion

            txtUnidProdId.Text = lineId;
            txtUnPdId.Text     = lineId;
        }
Exemplo n.º 23
0
        private void cboEmpID_RowSelected(object sender, RowSelectedEventArgs e)
        {
            try
            {
                if (cboEmpID.Value != null)
                {
                    //

                    txtName.Text  = cboEmpID.ActiveRow.Cells["empName"].Value.ToString();
                    txtDesig.Text = cboEmpID.ActiveRow.Cells["DesigName"].Value.ToString();
                    txtSec.Text   = cboEmpID.ActiveRow.Cells["sectName"].Value.ToString();
                    //cboEmpID.Tag = cboEmpID.ActiveRow.Cells["id"].Value.ToString();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                //   throw;
            }
        }
Exemplo n.º 24
0
        private void cboEmpID_RowSelected(object sender, RowSelectedEventArgs e)
        {
            try
            {
                if (cboEmpID.Value != null)
                {
                    txtName.Text         = cboEmpID.ActiveRow.Cells["empName"].Value.ToString();
                    dtJoinDate.Value     = cboEmpID.ActiveRow.Cells["dtJoin"].Value.ToString();
                    dtReleasedDate.Value = cboEmpID.ActiveRow.Cells["dtReleased"].Value.ToString();
                    txtRemarks.Value     = cboEmpID.ActiveRow.Cells["remarks"].Value.ToString();

                    this.btnSave.Text = "&Save";
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                //   throw;
            }
        }
Exemplo n.º 25
0
        private void cboEmpID_RowSelected(object sender, RowSelectedEventArgs e)
        {
            try
            {
                if (this.cboEmpID.IsItemInList() == false)
                {
                    //MessageBox.Show("Please Provide valid data [or, select from list].");
                    //cboEmpID.Focus();
                    return;
                }

                if (cboEmpID.Value != null)
                {
                    //
                    txtName.Text = cboEmpID.ActiveRow.Cells["empName"].Value.ToString();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                //   throw;
            }
        }
Exemplo n.º 26
0
 private void txtcLotNo_RowSelected(object sender, RowSelectedEventArgs e)
 {
     if(e.Row!=null&&e.Row.Index>-1)
     {
         var cQuantity = e.Row.Cells["FQty"].Value.ToString();
         decimal iQuantity;
         if(decimal.TryParse(cQuantity,out iQuantity))
         {
             uneiQuantity.Value = iQuantity;
         }
         SetRecentVendor();
     }
 }
Exemplo n.º 27
0
 private void cmpCompPart_RowSelected(object sender, RowSelectedEventArgs e)
 {
 }
Exemplo n.º 28
0
 private void tbIdx_RowSelectedEvent(object sender, RowSelectedEventArgs e)
 {
     SetSelectedValue(e.Value);
 }
Exemplo n.º 29
0
 private void cboModule_RowSelected(object sender, RowSelectedEventArgs e)
 {
     prcLoadGroup();
 }
Exemplo n.º 30
0
 private void cboGroup_RowSelected(object sender, RowSelectedEventArgs e)
 {
     prcLoadDropdownPerent();
 }
Exemplo n.º 31
0
        private void txtcInvCode_RowSelected(object sender, RowSelectedEventArgs e)
        {
            var uRow = e.Row;

            SetDefaultValue(uRow);
        }
Exemplo n.º 32
0
        private void txtcInvCode_RowSelected(object sender, RowSelectedEventArgs e)
        {
            var uRow = e.Row;

            SetDefaultValue(uRow);
        }