在DataGrid控件和repeader更换标识值的方法

在DataGrid控件和repeader更换标识值的方法
在更换标识值在DataGrid控件的使用:


直接调用后台方法:
公共字符串GetTransType(对象)
{
字符串type_flag = convert.tostring(obj);
字符串strreturn = ;
开关(type_flag)
{
例1:strreturn =工厂的产品;打破;
例2:strreturn =在厂半成品;打破;
例3:strreturn =已出库未申报成品;打破;
案例我:strreturn =数量的原材料在工厂;打破;
Case Y: strReturn = the number of items that have not been sent to the library; break;
案例W:strreturn = 尚未提交的报关项目数;打破;
默认值;中断;
}
返回strreturn;
}
在repeader控制更换标识值的方法:

id=hl_guid
runat=server>
'
runat=server/ >



C #背景的方法:
公共字符串getlink(对象objstatus,对象objguid)
{
如果(objstatus = null)
{
返回# ;
}
如果(objstatus = =+无单)
{
返回gjmyordersave。aspxguid =+ objguid;
}
其他的
{
返回gjmyorderdetail。aspxguid =+ objguid;
}
}
GetExistService(objhaswmsservice字符串对象,对象objhasfreightagent,对象objhascustomsclearance)
{
字符串servicehtml = ;
如果(objhaswmsservice!= DBNull。值)
{
如果(convert.toboolean(objhaswmsservice)= true)
{
servicehtml =仓库;
}
}

如果(objhasfreightagent!= DBNull。值)
{
如果(convert.toboolean(objhasfreightagent)= true)
{
servicehtml =运费;
}
}

如果(objhascustomsclearance!= DBNull。值)
{
如果(convert.toboolean(objhascustomsclearance)= true)
{
servicehtml =通关;
}
}
返回servicehtml;
}

tag:标识方法控件电脑软件DataGrid

相关内容