• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# UltraGridRow类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中UltraGridRow的典型用法代码示例。如果您正苦于以下问题:C# UltraGridRow类的具体用法?C# UltraGridRow怎么用?C# UltraGridRow使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



UltraGridRow类属于命名空间,在下文中一共展示了UltraGridRow类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: colourRow

    private void colourRow(UltraGridRow row_)
    {
      CurrentRollLine line;

      if (row_ == null || (line = row_.ListObject as CurrentRollLine) == null)
        return;

      {
        var cells = new[]
        {
          row_.Cells[CurrentRollLineHelper.Mappings.GetValueFromKey(CurrentRollLineField.LastCloseOI_Current_Back)],
          row_.Cells[CurrentRollLineHelper.Mappings.GetValueFromKey(CurrentRollLineField.LastCloseOI_Current_Front)]
        };

        Array.ForEach(cells,
          cell => cell.Appearance = line.OI_Status() == Model.Enums.OIStatus.Estimate ? getItalicAppearance() : null);
      }

      // daily front
      {
        var currentVal = line.GetValue(CurrentRollLineField.LastCloseOI_Current_FrontP);
        var avgPrior = line.GetValue(CurrentRollLineField.LastCloseOI_AvgPrior_FrontP);

        var diff = currentVal - avgPrior;
        var cell = row_.Cells[CurrentRollLineHelper.Mappings.GetValueFromKey(CurrentRollLineField.LastCloseOI_Current_FrontP)];

        Infragistics.Win.Appearance app = null;

        if (diff > m_dispOptions.DailyHighlighThreshold)
        {
          app = getSlowAppearance();
        }
        else if (Math.Abs(diff) > m_dispOptions.DailyHighlighThreshold)
        {
          app = getFastAppearance();
        }

        cell.Appearance = app;
        cell.SelectedAppearance = app;
      }

      // daily back
      {
        var currentVal = line.GetValue(CurrentRollLineField.LastCloseOI_Current_BackP);
        var avgPrior = line.GetValue(CurrentRollLineField.LastCloseOI_AvgPrior_BackP);

        var diff = currentVal - avgPrior;

        var cell = row_.Cells[CurrentRollLineHelper.Mappings.GetValueFromKey(CurrentRollLineField.LastCloseOI_Current_BackP)];

        Infragistics.Win.Appearance app = null;

        if (diff > m_dispOptions.DailyHighlighThreshold)
        {
          app = getFastAppearance();
        }
        else if (Math.Abs(diff) > m_dispOptions.DailyHighlighThreshold)
        {
          app = getSlowAppearance();
        }

        cell.Appearance = app;
        cell.SelectedAppearance = app;
      }

      // intraday
      {
        var currentVal = line.GetValue(CurrentRollLineField.SpreadVolumeOnDay_CurrentLiveP);
        var avgPrior = line.GetValue(CurrentRollLineField.SpreadVolumeOnDay_AvgPriorLiveP);

        var diff = currentVal - avgPrior;

        var cell = row_.Cells[CurrentRollLineHelper.Mappings.GetValueFromKey(CurrentRollLineField.SpreadVolumeOnDay_CurrentLiveP)];

        Infragistics.Win.Appearance app = null;

        if (diff > m_dispOptions.DailyHighlighThreshold)
        {
          app = getFastAppearance();
        }
        else if (Math.Abs(diff) > m_dispOptions.DailyHighlighThreshold)
        {
          app = getSlowAppearance();
        }

        cell.Appearance = app;
        cell.SelectedAppearance = app;
      }

      // change on day
      {
        var diff = line.GetValue(CurrentRollLineField.RollLevelChange);

        var cell = row_.Cells[CurrentRollLineHelper.Mappings.GetValueFromKey(CurrentRollLineField.RollLevelChange)];

        Infragistics.Win.Appearance app = null;

        if (diff > 0d)
        {
          app = getFastAppearance();
//.........这里部分代码省略.........
开发者ID:heimanhon,项目名称:researchwork,代码行数:101,代码来源:RollMonitorGrid.cs


示例2: MostrarItem

 public void MostrarItem(UltraGridRow Row)
 {
     ItemClasificacionExistencia Item = (ItemClasificacionExistencia)Row.Tag;
     Row.Cells[colCodigo].Value = Item.Codigo;
     Row.Cells[colNombre].Value = Item.Nombre;
     Row.Cells[colActivo].Value = Item.Activo;
 }
开发者ID:eldersontc,项目名称:soft-erp,代码行数:7,代码来源:FrmClasificacionExistencia.cs


示例3: MostrarItem

 public void MostrarItem(UltraGridRow Row)
 {
     Auditoria Auditoria = (Auditoria)Row.Tag;
     Row.Cells[colFecha].Value = Auditoria.Fecha;
     Row.Cells[colHora].Value = Auditoria.Hora;
     Row.Cells[colUsuario].Value = Auditoria.Usuario;
     Row.Cells[colAccion].Value = Auditoria.Accion;
 }
开发者ID:eldersontc,项目名称:soft-erp,代码行数:8,代码来源:FrmAuditoria.cs


示例4: SetButtonText

        public static void SetButtonText(UltraGridRow row, GridButton button)
        {
            var colName = button.ToString();
             var label = button.ToString();
             if (row.Cells.IndexOf(colName) == -1) return;

             var buttonLabel = !string.IsNullOrEmpty(label) ? string.Format("[{0}]", label.ToLower()) : string.Empty;
             row.Cells[colName].Value = buttonLabel;
        }
开发者ID:bsimser,项目名称:xeva,代码行数:9,代码来源:EditableGridHelper.cs


示例5: changeCustOrder

 private void changeCustOrder(string value,UltraGridRow row)
 {
     var q = from p in custordernoDt.AsEnumerable()
             where p["custorderno"].ToString() == value && p["customerid"].ToString() == ((ValueInfo)this.cmbCustomer.SelectedItem).ValueField
             select p;
     if (q.Count()>0){
         row.Cells["customername"].Value = q.ToList<DataRow>()[0]["customername"];
         row.Cells["factory"].Value = q.ToList<DataRow>()[0]["factory"];
         row.Cells["cartonqty"].Value = q.ToList<DataRow>()[0]["cartonqty"];
     }
 }
开发者ID:jimidzj,项目名称:Inspect,代码行数:11,代码来源:frmShipPlan.cs


示例6: BandSteelTypeAndSpec

 public void BandSteelTypeAndSpec(UltraGridRow row)
 {
     if (row.Cells["FS_COMMUTEDSTEELTYPE"].Value.ToString() == string.Empty)
     {
         row.Cells["FS_COMMUTEDSTEELTYPE"].Value = row.Cells["FS_STEELTYPE"].Value;
     }
     if (row.Cells["FS_COMMUTEDSPEC"].Value.ToString() == string.Empty)
     {
         row.Cells["FS_COMMUTEDSPEC"].Value = row.Cells["FS_SPEC"].Value;
     }
 }
开发者ID:Strongc,项目名称:sencond,代码行数:11,代码来源:SurfaceInspectionRecord.cs


示例7: CalculateRowList

 public static List<string> CalculateRowList(UltraGridRow aUltraGridRow)
 {
     foreach (
         string aString in
             from UltraGridCell cell in aUltraGridRow.Cells
             select cell.Value.ToString()
             into aString
             select aString + "\r\n")
     {
         ARowList.Add(aString);
     }
     return ARowList;
 }
开发者ID:Brett1981,项目名称:ReuseableClasses,代码行数:13,代码来源:UltraGridRowValuesToListOfString.cs


示例8: ShouldCellsBeMerged

 public bool ShouldCellsBeMerged(UltraGridRow row1,UltraGridRow row2, UltraGridColumn column)
 {
     // Test to make sure the Type is not DBNull since we allow the ShippedDate to be null
     if (row1.GetCellValue(column).GetType().ToString() != "System.DBNull" && row2.GetCellValue(column).GetType().ToString() != "System.DBNull")
     {
         string value1 = row1.GetCellValue(column).ToString();
         string value2 = row2.GetCellValue(column).ToString();
         // Merge cells according to the date portions of the underlying DateTime cell
         // values, ignoring any time portion. For example, "1/1/2004 10:30 AM" will be
         //  merged with "1/1/2004 1:15 AM" since the dates are the same.
         return value1.Equals(value2);
     }
     else
         return false;
 }
开发者ID:jimidzj,项目名称:Inspect,代码行数:15,代码来源:CustomMergedCellEvaluator.cs


示例9: setColors

    private void setColors(UltraGridRow row_, double maxValue_)
    {
      foreach (UltraGridCell cell in row_.Cells)
      {
        if (cell.Appearance == null)
          return;

        cell.Appearance.Reset();

        if (cell.Value is double)
        {
          cell.Appearance.BackColor =
            Singleton<SI.Controls.SpectrumColoursPositiveNegative>.Instance.GetColor((double)cell.Value, maxValue_);
        }
      }
    }
开发者ID:heimanhon,项目名称:researchwork,代码行数:16,代码来源:CMTSpreadsHeatMap.cs


示例10: OnPreRender

        protected override void OnPreRender(EventArgs e)
        {
            foreach (Row row in _rows)
            {
                UltraGridRow ultraRow = new UltraGridRow();

                foreach (Cell cell in row.Cells)
                {
                    UltraGridCell ultraCell = new UltraGridCell();
                    ultraCell.Value = cell.Value;
                    ultraRow.Cells.Add(ultraCell);
                }

                _grid.Rows.Add(ultraRow);
            }

            base.OnPreRender(e);
        }
开发者ID:charlest704,项目名称:Lad-Solution,代码行数:18,代码来源:Table.cs


示例11: UltraGrid

 /// <summary>
 /// Highight ô có dữ liệu không hợp lệ
 /// </summary>
 /// <param name="row">Dòng cần kiểm tra</param>
 /// <param name="inputTypes">Danh sách kiểu tương ứng với từng cột</param>
 /// <returns>True nếu có lỗi</returns>
 public static bool UltraGrid(UltraGridRow row, IList<InputType> inputTypes)
 {
     var result = false;
     HighlightGridCellClear(row);
     var listInputParam = new List<InputParam>();
     for (var i = 0; i < row.Cells.Count; i++)
     {
         if (inputTypes[i] == InputType.NgayThang)
         {
             var ngaythang = DateTime.Parse(row.Cells[i].Value.ToString()).ToString("dd/MM/yyyy");
             listInputParam.Add(new InputParam
             {
                 Input = ngaythang,
                 InputType = inputTypes[i]
             });
         }
         else
         {
             listInputParam.Add(new InputParam
             {
                 Input = row.Cells[i].Value.ToString(),
                 InputType = inputTypes[i]
             });
         }
     }
     var validate = new ValidateData();
     validate.ValDataList(listInputParam);
     if (validate.Errors.Count > 0)
     {
         for (var i = 0; i < row.Cells.Count; i++)
         {
             if (!validate.Output[i].Result)
             {
                 HighlightGridCellSet(row.Cells[i], validate.Output[i].MsgError);
             }
         }
         result = true;
     }
     return result;
 }
开发者ID:tungph80,项目名称:TTMWeb,代码行数:46,代码来源:ValidateHighlight.cs


示例12: annullaPagamento

        private void annullaPagamento(UltraGridRow row)
        {
            var pagamento = getPagamentoFatturaService().GetById(_ritenutaClick.IdPagamento.GetValueOrDefault());
            if (CommonMessages.DisplayConfirm("Sei sicuro di volere eliminare il pagamento della fattura: " + pagamento.IdentificativoArchiviazione + " ?") == DialogResult.Yes)
            {
                var authMessage = getPagamentoFatturaService().IsAllowDeletePagamento(pagamento);
                if (string.IsNullOrEmpty(authMessage.FatalMessage))
                {
                    var result = DialogResult.Yes;
                    if (!string.IsNullOrEmpty(authMessage.WarnMessage))
                        result = CommonMessages.DisplayConfirm("Attenzione:" + authMessage.WarnMessage + Environment.NewLine + "Vuoi confermare la eliminazione?");

                    if (result == DialogResult.Yes)
                    {
                        string message = getPagamentoFatturaService().DeletePagamento(pagamento);
                        if (string.IsNullOrEmpty(message))
                        {
                            row.Delete(false);
                            CommonMessages.DisplayComplete("Il pagamento è stato correttamente eliminato");
                        }
                        else
                            CommonMessages.DisplayWarning("Si sono verificati i seguenti errori durante l'eliminazione del pagamento" + Environment.NewLine + Environment.NewLine + message);
                    }
                }
                else
                    CommonMessages.DisplayWarning("Non è ammessa la cancellazione del pagamento:" + Environment.NewLine + authMessage.FatalMessage);
            }
        }
开发者ID:gipasoft,项目名称:Sfera,代码行数:28,代码来源:RitenuteAccontoUI.cs


示例13: HighlightGridCellClear

 private static void HighlightGridCellClear(UltraGridRow row)
 {
     foreach (var cell in row.Cells)
     {
         HighlightGridCellClear(cell);
     }
 }
开发者ID:tungph80,项目名称:TTMWeb,代码行数:7,代码来源:ValidateHighlight.cs


示例14: setImportoConto

        private void setImportoConto(UltraGridRow row)
        {
            try
            {
                if (row != null)
                {
                    decimal importo = 0;
                    foreach (var childRow in row.ChildBands[0].Rows)
                    {
                        if (childRow.Cells["ImportoPreventivo"].Value != null && childRow.Cells["ImportoPreventivo"].Value != DBNull.Value)
                            importo += (decimal)childRow.Cells["ImportoPreventivo"].Value;
                    }

                    row.Cells["ImportoPreventivo"].Value = importo;
                }
            }
            catch (Exception ex)
            {
                _log.ErrorFormat("Errore nell'impostazione dell'importo - {0} - row:{1} - azienda:{2}", ex, Utility.GetMethodDescription(), row != null ? row.ToString() : "<NULL>", Security.Login.Instance.CurrentLogin().Azienda);
                throw;
            }
        }
开发者ID:gipasoft,项目名称:Sfera,代码行数:22,代码来源:AperturaBilancioPreventivoUC.cs


示例15: setRowLayout

        private void setRowLayout(UltraGridRow row)
        {
            var scadenza = row.ListObject as ScadenzaSpesaFiscaleDTO;
            if (scadenza != null)
            {
                if (!scadenza.RitenutaNONPagata)
                {
                    row.Cells["DataPagamentoRitenuta"].Hidden = false;
                    row.Cells["ImportoInteressi"].Hidden = false;
                    row.Cells["ImportoSanzioni"].Hidden = false;
                }
                else
                {
                    row.Cells["DataPagamentoRitenuta"].Hidden = true;
                    row.Cells["ImportoInteressi"].Hidden = true;
                    row.Cells["ImportoSanzioni"].Hidden = true;
                    row.Cells["DataPagamentoRitenuta"].Value = null;
                }

            }
        }
开发者ID:gipasoft,项目名称:Sfera,代码行数:21,代码来源:RegistrazioneSpeseFiscaleUC.cs


示例16: setSottoContoValueList

        private void setSottoContoValueList(UltraGridRow row)
        {
            if (row.Band.Index == 0)
            {
                if (row.Cells["IdConto"].Value != null && ((int)row.Cells["IdConto"].Value) > 0)
                {
                    var conto = getPianoContiService().GetById((int)row.Cells["IdConto"].Value, _esercizio.ID);
                    if (conto != null)
					{
						var listUniqueKey = "SottoConti_" + conto.ID;

                        if (listaConti.DisplayLayout.ValueLists.Exists(listUniqueKey))
                            listaConti.DisplayLayout.ValueLists.Remove(listUniqueKey);

                        var sottoConti = conto.Codice == getPianoContiService().GetCodiceContoVersamentiCondomini() && conto.IdEsercizio != null ? getSottoContoCondomini() : getPianoContiService().GetSottoContiDataSource(conto, null);
                        var valueList = DataSourceHelper.GetValueList(sottoConti, "ID", "DescrizioneCompleta", listUniqueKey);
                        valueList.Key = listUniqueKey;
                        listaConti.DisplayLayout.ValueLists.Add(valueList);
                        row.Cells["IdSottoConto"].ValueList = listaConti.DisplayLayout.ValueLists[listUniqueKey];

                        if (sottoConti.Count == 1)
                            row.Cells["IdSottoConto"].Value = sottoConti[0].ID;

                        if (conto.Codice == getPianoContiService().GetCodiceContoFornitori() || conto.Codice == getPianoContiService().GetCodiceContoRitenuta())
                        {
                            row.Cells["IdFornitore"].Hidden = false;
                            row.Cells["IdFornitore"].ValueList = fornitoriDropDown;

                            row.Cells["NumeroDocumento"].Hidden = !_isRequiredDatiFatturaBilancioApertura;
                            row.Cells["DataDocumento"].Hidden = !_isRequiredDatiFatturaBilancioApertura;

                            row.Cells["AliquotaRitenuta"].Hidden = !_isRequiredDatiFatturaBilancioApertura;
                            row.Cells["ImportoIva"].Hidden = !_isRequiredDatiFatturaBilancioApertura;
                            row.Cells["ImportoRitenuta"].Hidden = !_isRequiredDatiFatturaBilancioApertura;
                            row.Cells["InteressiRitenuta"].Hidden = !_isRequiredDatiFatturaBilancioApertura;
                            row.Cells["SanzioniRitenuta"].Hidden = !_isRequiredDatiFatturaBilancioApertura;
                            row.Cells["ImportoFattura"].Hidden = !_isRequiredDatiFatturaBilancioApertura;
                            row.Cells["AltreSpese"].Hidden = !_isRequiredDatiFatturaBilancioApertura;
                            row.Cells["AltreSpeseEsenti"].Hidden = !_isRequiredDatiFatturaBilancioApertura;
                            row.Cells["DataPagamento"].Hidden = !_isRequiredDatiFatturaBilancioApertura;

                            row.Cells["DataVersamentoRitenuta"].Hidden = conto.Codice != getPianoContiService().GetCodiceContoRitenuta();

                            // Se nota di accredito non è ammesso inserire i dati relativi alla data di pagamento o interessi sanzioni ritenuta
                            if(row.Cells["ImportoDare"].Value != null && row.Cells["ImportoDare"].Value != DBNull.Value && (decimal)row.Cells["ImportoDare"].Value > 0)
                            {
                                row.Cells["InteressiRitenuta"].Hidden = true;
                                row.Cells["SanzioniRitenuta"].Hidden = true;
                                row.Cells["DataPagamento"].Hidden = true;
                                row.Cells["DataVersamentoRitenuta"].Hidden = true;
                            }

                        }
                        else
                            setHiddenDatiFattura(row);

                    }
                }
            }
        }
开发者ID:gipasoft,项目名称:Sfera,代码行数:60,代码来源:BilancioAperturaUC.cs


示例17: setHiddenDatiFattura

 private void setHiddenDatiFattura(UltraGridRow row)
 {
     row.Cells["DataVersamentoRitenuta"].Hidden = true;
     row.Cells["IdFornitore"].Hidden = true;
     row.Cells["NumeroDocumento"].Hidden = true;
     row.Cells["DataDocumento"].Hidden = true;
     row.Cells["ImportoRitenuta"].Hidden = true;
     row.Cells["InteressiRitenuta"].Hidden = true;
     row.Cells["SanzioniRitenuta"].Hidden = true;
     row.Cells["AliquotaRitenuta"].Hidden = true;
     row.Cells["ImportoIva"].Hidden = true;
     row.Cells["DataPagamento"].Hidden = true;
     row.Cells["ImportoFattura"].Hidden = true;
     row.Cells["AltreSpese"].Hidden = true;
     row.Cells["AltreSpeseEsenti"].Hidden = true;
 }
开发者ID:gipasoft,项目名称:Sfera,代码行数:16,代码来源:BilancioAperturaUC.cs


示例18: SetEditAreaFromRowInfo

        private void SetEditAreaFromRowInfo(UltraGridRow Row)
        {
            try
            {
                if (Row == null)
                {
                    return;
                }

                bool bPoint1 = false, bPoint2 = false;
                string strBatchNo = "", strSteel = "", strSpec = "", strLength = "", strOrderNo = "", strStandardNo = "";
                string strSingleNum = "", strWeightLL = "", strNum1 = "", strFcFlag1 = "", strNum2 = "", strFcFlag2 = "";
                string strWeightType = "", strCardType = "", strDouble = "", strPrintAddr = "", strPrintStdNo = "", strPrintSteel = "";

                strBatchNo = Convert.ToString(Row.Cells["FS_BATCHNO"].Value).Trim();
                strSteel = Convert.ToString(Row.Cells["FS_STEELTYPE"].Value).Trim();
                strSpec = Convert.ToString(Row.Cells["FS_SPEC"].Value).Trim();
                strLength = Convert.ToString(Row.Cells["FN_LENGTH"].Value).Trim();
                strOrderNo = Convert.ToString(Row.Cells["FS_PRODUCTNO"].Value).Trim();
                strStandardNo = Convert.ToString(Row.Cells["FS_STANDNO"].Value).Trim();

                strSingleNum = Convert.ToString(Row.Cells["FN_SINGLENUM"].Value).Trim();
                strWeightLL = Convert.ToString(Row.Cells["FN_SINGLEWEIGHT"].Value).Trim();

                strWeightType = Convert.ToString(Row.Cells["FS_PRINTWEIGHTTYPE"].Value).Trim();
                strCardType = Convert.ToString(Row.Cells["FS_PRINTTYPE"].Value).Trim();
                strDouble = Convert.ToString(Row.Cells["FS_TWINSTYPE"].Value).Trim();
                strPrintAddr = Convert.ToString(Row.Cells["FS_ADDRESSCHECK"].Value).Trim();
                strPrintStdNo = Convert.ToString(Row.Cells["FS_STANDARDCHECK"].Value).Trim();
                strPrintSteel = Convert.ToString(Row.Cells["FS_STEELTYPECHECK"].Value).Trim();

                if (Convert.ToString(Row.Cells["FS_POINTID"].Value).Equals(CNST_BC_STATION_A))
                {
                    strNum1 = Convert.ToString(Row.Cells["FN_POINT_PLAN"].Value).Trim();
                    strFcFlag1 = Convert.ToString(Row.Cells["FS_FCLFLAG"].Value).Trim();
                    bPoint1 = true;
                }
                else if (Convert.ToString(Row.Cells["FS_POINTID"].Value).Equals(CNST_BC_STATION_B))
                {
                    strNum2 = Convert.ToString(Row.Cells["FN_POINT_PLAN"].Value).Trim();
                    strFcFlag2 = Convert.ToString(Row.Cells["FS_FCLFLAG"].Value).Trim();
                    bPoint2 = true;
                }

                Edt_BatchNo.Text = strBatchNo;
                cbEdt_Steel.Text = strSteel;
                cbEdt_Spec.Text = strSpec;
                cbEdt_Length.Text = strLength;
                Edt_OrderNo.Text = strOrderNo;
                cbEdt_StandardNo.Text = strStandardNo;
                cbEdt_CardType.Text = strCardType;

                try
                {
                    if (!string.IsNullOrEmpty(strSingleNum))
                        Edt_SingleNum.Value = Convert.ToDecimal(strSingleNum);
                    else
                        Edt_SingleNum.Value = null;
                }
                catch { }

                try
                {
                    if (!string.IsNullOrEmpty(strWeightLL))
                        Edt_WgtLL.Value = Convert.ToDecimal(strWeightLL);
                    else
                        Edt_WgtLL.Value = null;
                }
                catch { }

                string strValue = "";

                try
                {
                    strValue = (strFcFlag1.Equals("�dz�") ? "1" : "");
                    this.SetFC1(strValue);
                }
                catch { }

                try
                {
                    if (!string.IsNullOrEmpty(strNum1))
                        Edt_Num1.Value = Convert.ToDecimal(strNum1);
                    else
                        Edt_Num1.Value = null;
                }
                catch { }
                finally
                {
                    cbx_Point1.Checked = bPoint1;
                }

                try
                {
                    strValue = (strFcFlag2.Equals("�dz�") ? "1" : "");
                    this.SetFC2(strValue);
                }
                catch { }

                try
//.........这里部分代码省略.........
开发者ID:Strongc,项目名称:sencond,代码行数:101,代码来源:frmWeightPlanBC.cs


示例19: AgregarUnidades

        public void AgregarUnidades(UltraGridRow Row)
        {
            ItemPlantillaServicio Item = (ItemPlantillaServicio)Row.Tag;
            ValueList List = new ValueList();
            if (Item.Servicio != null) { 
            Item.Unidad = Item.Servicio.UnidadBase;
            }

            foreach (ExistenciaUnidad Unidad in Item.Servicio.Unidades)
            {
                if (Item.Unidad == null & Unidad.EsUnidadBase) { 
                    Item.Unidad = Unidad; 
                }
                List.ValueListItems.Add(Unidad, Unidad.Unidad.Codigo);
            }

            Row.Cells[colUnidad].ValueList = List;
        }
开发者ID:eldersontc,项目名称:soft-erp,代码行数:18,代码来源:FrmPlantilla.cs


示例20: MostrarItem

 public void MostrarItem(UltraGridRow Row)
 {
     ItemAccion Item = (ItemAccion)Row.Tag;
     Item.Orden = Row.Index + 1;
     if (Item.Ensamblado != null) { Row.Cells[colEnsamblado].Value = Item.Ensamblado.Nombre; }
     Row.Cells[colNombre].Value = Item.Nombre;
     Row.Cells[colClase].Value = Item.Clase;
     Row.Cells[colParametro].Value = Item.Parametro;
     Row.Cells[colExito].Value = Item.Exito;
     Row.Cells[colError].Value = Item.Error;
     Row.Cells[colOrden].Value = Item.Orden;
 }
开发者ID:eldersontc,项目名称:soft-erp,代码行数:12,代码来源:FrmAccion.cs



注:本文中的UltraGridRow类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# UltravioletContext类代码示例发布时间:2022-05-24
下一篇:
C# UltimateModeType类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap