您好,登錄后才能下訂單哦!
<asp:TemplateField HeaderText="流程進度">
<ItemTemplate>
<asp:Label ID="lblFlow"runat="server"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
protected void gridList_RowDataBound(object sender, GridViewRowEventArgs e)
{
if(e.Row.RowType == DataControlRowType.DataRow)
{
DataRowView cutRow =(DataRowView)e.Row.DataItem;
//對應值
stringstrID = string.Empty;
stringstrProjStatenm = string.Empty;
try
{
strID = cutRow["id"].ToString();
strProjStatenm =cutRow["proj_statenm"].ToString();
Label xLabel =(Label)e.Row.FindControl("lblFlow");
if (xLabel != null)
{
if (strProjStatenm == "審批中")
{
string strSql = string.Format("select f_transidstepname({0}) from dual ",strID);
xLabel.Text= string.Format("審批中-{0}",OracleHelperImm.ExecuteScalar(strSql));
}
else
{
xLabel.Text= strProjStatenm;
}
}
}
catch(System.ArgumentException ex)
{
//忽略
}
}
}
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。