本文整理汇总了C#中DevExpress.GetValue方法的典型用法代码示例。如果您正苦于以下问题:C# DevExpress.GetValue方法的具体用法?C# DevExpress.GetValue怎么用?C# DevExpress.GetValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DevExpress
的用法示例。
在下文中一共展示了DevExpress.GetValue方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: dxgvSerial_HtmlRowCreated
protected void dxgvSerial_HtmlRowCreated(object sender, DevExpress.Web.ASPxGridViewTableRowEventArgs e)
{
if (e.RowType == DevExpress.Web.GridViewRowType.Data)
{
Label lbl = dxgvSerial.FindRowCellTemplateControl(e.VisibleIndex, null, "lblBranchName") as Label;
string strCoCode = e.GetValue("CO_CODE").ToString();
if (lbl != null && strCoCode != string.Empty)
{
using (DataModel.COMPANY_BO objT24_COMPANY_BO = new DataModel.COMPANY_BO())
{
DataModel.COMPANY objT24_COMPANY = objT24_COMPANY_BO.GetByCOMPANY_CODE(strCoCode);
if (objT24_COMPANY != null)
{
lbl.Text = objT24_COMPANY.COMPANY_NAME;
}
}
}
Label lbl2 = dxgvSerial.FindRowCellTemplateControl(e.VisibleIndex, null, "lblStatus") as Label;
if (lbl2 != null)
{
if (e.GetValue("IsUsed") != null)
{
bool strStatus = Convert.ToBoolean(e.GetValue("IsUsed"));
if (strStatus)
{
lbl2.Text = "Đã cấp mã";
}
else
{
lbl2.Text = "Đã xóa";
}
}
else
{
lbl2.Text = "Đã cấp mã";
}
}
Label lbl3 = dxgvSerial.FindRowCellTemplateControl(e.VisibleIndex, null, "lblMaDuThuong") as Label;
if (lbl3 != null)
{
if (e.GetValue("Serials") != null)
{
string strSerials = e.GetValue("Serials").ToString();
if (!string.IsNullOrEmpty(strSerials))
{
strSerials = Commons.Common.FormatSerial(strSerials.Split(new string[] { "|" }, StringSplitOptions.RemoveEmptyEntries).ToList());
}
lbl3.Text = strSerials;
}
else
{
lbl3.Text = string.Empty;
}
}
}
}
示例2: gdvCarteiras_HtmlRowPrepared
protected void gdvCarteiras_HtmlRowPrepared(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewTableRowEventArgs e)
{
if (Convert.ToDateTime(e.GetValue("DteDataPagamento")) <= DateTime.Now)
{
e.Row.ForeColor = Color.Red;
}
}
示例3: gvInvoiceSearch_HtmlRowPrepared
protected void gvInvoiceSearch_HtmlRowPrepared(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewTableRowEventArgs e)
{
string status = (string)e.GetValue("status");
if (status == "DG")
{
e.Row.BackColor = System.Drawing.Color.Salmon;
}
}
示例4: ASPxGridView2_HtmlRowPrepared
protected void ASPxGridView2_HtmlRowPrepared(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewTableRowEventArgs e)
{
int ConLai = Convert.ToInt32(e.GetValue("ConLai"));
if (ConLai > 0)
{
e.Row.ForeColor = System.Drawing.Color.Red;
}
}
示例5: detailYgzmx_HtmlDataCellPrepared
//改变当前处理列的颜色
protected void detailYgzmx_HtmlDataCellPrepared(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewTableDataCellEventArgs e)
{
//根据工序ID 显示工序名称
if (e.DataColumn.FieldName == "GXID")
{
string strgxid = e.GetValue("GXID").ToString();
e.Cell.Text=helper.GetGxName(strgxid);
}
}
示例6: gridLogRecords_HtmlRowPrepared
protected void gridLogRecords_HtmlRowPrepared(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewTableRowEventArgs e)
{
if (this.LogType != LogTypesEnum.ChannelMonitoringHistory) return;
if (e.RowType != DevExpress.Web.ASPxGridView.GridViewRowType.Data) return;
ChannelLogEnum value = (ChannelLogEnum)e.GetValue("LogType");
if (value == ChannelLogEnum.ChannelError)
e.Row.BackColor = System.Drawing.Color.Red;
else if (value == ChannelLogEnum.ProductError)
e.Row.BackColor = System.Drawing.Color.Orange;
}
示例7: dxgvLiXi_HtmlRowCreated
protected void dxgvLiXi_HtmlRowCreated(object sender, DevExpress.Web.ASPxGridViewTableRowEventArgs e)
{
if (e.RowType == DevExpress.Web.GridViewRowType.Data)
{
Label lbl = dxgvLiXi.FindRowCellTemplateControl(e.VisibleIndex, null, "lblBranchName") as Label;
string strCoCode = e.GetValue("CoCode").ToString();
if (lbl != null && strCoCode != string.Empty)
{
using (COMPANY_BO objT24_COMPANY_BO = new COMPANY_BO())
{
COMPANY objT24_COMPANY = objT24_COMPANY_BO.GetByCOMPANY_CODE(strCoCode);
if (objT24_COMPANY != null)
{
lbl.Text = objT24_COMPANY.COMPANY_NAME;
}
}
}
Label lbl2 = dxgvLiXi.FindRowCellTemplateControl(e.VisibleIndex, null, "lblStatus") as Label;
if (lbl2 != null)
{
if (e.GetValue("IsUsed") != null)
{
bool strStatus = Convert.ToBoolean(e.GetValue("IsUsed"));
if (strStatus)
{
lbl2.Text = "Đã cấp";
}
else
{
lbl2.Text = "Đã xóa";
}
}
else
{
lbl2.Text = "Đã cấp";
}
}
}
}
示例8: ASPxGridView1_HtmlRowPrepared
protected void ASPxGridView1_HtmlRowPrepared(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewTableRowEventArgs e)
{
if (e.RowType == DevExpress.Web.ASPxGridView.GridViewRowType.Data)
{
string n_IdPedido = e.GetValue("n_IdPedido").ToString();
int i_IdMenu = int.Parse(Request.QueryString["IdMenu"]);
LinkButton LinkButton1 = new LinkButton();
LinkButton1 = (LinkButton)ASPxGridView1.FindRowCellTemplateControl(e.VisibleIndex, (GridViewDataColumn)(ASPxGridView1.Columns[0]), "LinkButton1");
LinkButton1.PostBackUrl = "CrearPedido.aspx?n_IdPedido=" + n_IdPedido + "&td=1&IdMenu=" + i_IdMenu;
}
}
示例9: ASPxGridView1_HtmlRowPrepared
protected void ASPxGridView1_HtmlRowPrepared(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewTableRowEventArgs e)
{
if (e.RowType == DevExpress.Web.ASPxGridView.GridViewRowType.Data)
{
string n_IdProducto = e.GetValue("n_IdProducto").ToString();
int i_IdMenu = int.Parse(Request.QueryString["IdMenu"]);
LinkButton lbProducto = new LinkButton();
lbProducto = (LinkButton)ASPxGridView1.FindRowCellTemplateControl(e.VisibleIndex, (GridViewDataColumn)(ASPxGridView1.Columns[2]), "lbProducto");
lbProducto.PostBackUrl = "CrearProducto.aspx?n_IdProducto=" + n_IdProducto + "&IdMenu=" + i_IdMenu;
lbProducto.Enabled = chkEditar.Checked;
}
}
示例10: gridRGZ_HtmlDataCellPrepared
//改变当前处理列的颜色
protected void gridRGZ_HtmlDataCellPrepared(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewTableDataCellEventArgs e)
{
//if (e.DataColumn.FieldName == "JE" || e.DataColumn.FieldName == "DJ")
//{
// e.Cell.ForeColor = System.Drawing.Color.Red;
//}
//string jjyxz = e.GetValue("JJYXZ").ToString();
//for (int n = 0; n < gridRGZ.Columns.Count; n++)
//{
// if (e.DataColumn.FieldName == jjyxz)
// {
// e.Cell.ForeColor = System.Drawing.Color.Blue;
// }
//}
if (e.DataColumn.FieldName == "SJLY" )
{
int intsjly = int.Parse(e.GetValue("SJLY").ToString());
switch (intsjly)
{
case 0:
e.Cell.Text= "系统";
break;
case 1:
e.Cell.Text = "导入";
break;
}
}
if (e.DataColumn.FieldName == "SPZT")
{
int intspzt = int.Parse(e.GetValue("SPZT").ToString());
switch (intspzt)
{
case 0:
e.Cell.Text = "未审批";
break;
case 1:
e.Cell.Text = "已审批";
break;
}
}
}
示例11: gvPolicyCustomer_HtmlDataCellPrepared
protected void gvPolicyCustomer_HtmlDataCellPrepared(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewTableDataCellEventArgs e)
{
double target = 0,payment = -1;
ListEditItem selectedItem = cmbPolicy.SelectedItem;
Double.TryParse(selectedItem.GetValue("target").ToString(),out target);
if (e.DataColumn.FieldName == "payment" && int.Parse(cmbPolicy.Value.ToString())!= -1)
{
Double.TryParse(e.GetValue("payment").ToString(), out payment);
if (payment >= target)
{
e.Cell.BackColor = System.Drawing.Color.Blue;
e.Cell.ForeColor = System.Drawing.Color.White;
}
else
{
e.Cell.ForeColor = System.Drawing.Color.Blue;
}
}
}
示例12: gridRGZ_HtmlDataCellPrepared
//改变当前处理列的颜色
protected void gridRGZ_HtmlDataCellPrepared(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewTableDataCellEventArgs e)
{
if (e.DataColumn.FieldName == "CQBZCL" )
{
e.Cell.ForeColor = System.Drawing.Color.Red;
}
if (e.DataColumn.FieldName == "SPZT")
{
int intspzt = int.Parse(e.GetValue("SPZT").ToString());
switch (intspzt)
{
case 0:
e.Cell.Text = "未审批";
break;
case 1:
e.Cell.Text = "已审批";
break;
}
}
}
示例13: dxgridDeliveries_HtmlRowPrepared
protected void dxgridDeliveries_HtmlRowPrepared(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewTableRowEventArgs e)
{
try
{
string _s = "";
int _id = 0;
if (e.RowType == DevExpress.Web.ASPxGridView.GridViewRowType.Data)
{
_id = wwi_func.vint(e.GetValue("DeliveryID").ToString());
if (_id > 0)
{
_s = wwi_func.lookup_multi_values("CompanyName,Address1,Address2,Address3,CountryName,TelNo,PalletDims,MaxPalletWeight,MaxPalletHeight,SpecialDeliveryInstructions", "view_delivery_instruction", "DeliveryID", _id, "|");
if (!string.IsNullOrEmpty(_s))
{
string[] _labels = { "DeliveryName", "DeliveryAddress", "DeliveryAddress", "DeliveryAddress", "DeliveryAddress", "DeliveryAddress", "PalletSpec", "PalletWeight", "PalletHeight", "Instructions" };
string[] _elements = _s.Split("|".ToCharArray());
for (int _ix = 0; _ix < _labels.Length; _ix++)
{
ASPxLabel _lbl = (ASPxLabel)this.dxgridDeliveries.FindRowTemplateControl(e.VisibleIndex, "dxlbl" + _labels[_ix]);
if (_lbl != null)
{
_lbl.Text += _elements[_ix] + Environment.NewLine;
}
}//end loop
}//end if
}
//current status
_id = e.GetValue("CurrentStatusID") != null ? wwi_func.vint(e.GetValue("CurrentStatusID").ToString()) : 0;
string _f = "";
if (_id > 0)
{
_f = wwi_func.lookup_value("Field1", "CurrentStatus", "ID", _id);
ASPxLabel _lbl = (ASPxLabel)this.dxgridDeliveries.FindRowTemplateControl(e.VisibleIndex, "dxlblCurrentStatusID");
if (_lbl != null) { _lbl.Text = _f; }
}
//modify javascript on button click so we can drop dll sub decks into hidden field to pass onto edit form
//will save making a callback to the server
ASPxButton _btn = (ASPxButton)this.dxgridDeliveries.FindRowTemplateControl(e.VisibleIndex, "dxbtnEdit");
if (_btn != null)
{
_s += "|" + _f;
_btn.ClientSideEvents.Click = "function(s, e) { hfOrder.Set(\"subdecks\",\"" + _s + "\"); gridDeliveries.StartEditRow(" + e.VisibleIndex.ToString() + "); }"; //gridDeliveries.StartEditRow(' + Container.VisibleIndex + ')
}
}//end data template
}
catch (Exception ex)
{
this.dxlblErr.Text = ex.Message.ToString();
this.dxpnlErr.ClientVisible = true;
}
}//end html row prepared
示例14: gvSenaraiStok_HtmlDataCellPrepared
protected void gvSenaraiStok_HtmlDataCellPrepared(object sender, DevExpress.Web.ASPxGridViewTableDataCellEventArgs e)
{
switch (e.DataColumn.FieldName)
{
//case "LPD_EmpId": FormDeleteLink(e.DataColumn.FieldName, e.VisibleIndex, e.CellValue); break;
case "PhysicalBalance": FormPerananCombo(e.DataColumn.FieldName, e.VisibleIndex, e.CellValue, e.GetValue("StockId").ToString()); break;
}
}
示例15: getFullNodePathHyphen
private string getFullNodePathHyphen(DevExpress.XtraTreeList.Nodes.TreeListNode theNode)
{
string theName = "";
if (theNode.Level != 0)
{
theName = getFullNodePathHyphen(theNode.ParentNode) + "-";
}
theName = theName + (string)theNode.GetValue(0);
return theName;
}