public static string GetMarkedCardInfoByCode(string strMarkedCardCode) { TDTK.IndustryPlatform.CoalTraffic.BLL.TT_MarkedCard mark = new TDTK.IndustryPlatform.CoalTraffic.BLL.TT_MarkedCard(); TDTK.IndustryPlatform.CoalTraffic.Model.TT_MarkedCard m = mark.GetModel(strMarkedCardCode); if (m != null) { strCollCode = m.CollCode; strKindCode = m.CoalKindCode; DataTable dt = DbHelperSQL.TQuery("Select CollState,IsForbid from Sys_Colliery where CollCode='" + strCollCode + "'"); return m.CollName + "|" + m.CoalKindName + "|" + m.MarkedCardState + "|" + dt.Rows[0]["IsForbid"].ToString() + "|" + dt.Rows[0]["CollState"].ToString(); } else return ""; }
public static string GetMarkedCardInfoByCode(string strMarkedCardCode) { TDTK.IndustryPlatform.CoalTraffic.BLL.TT_MarkedCard mark = new TDTK.IndustryPlatform.CoalTraffic.BLL.TT_MarkedCard(); TDTK.IndustryPlatform.CoalTraffic.Model.TT_MarkedCard m = mark.GetModel(strMarkedCardCode); if (m != null) { strCollCode = m.CollCode; strKindCode = m.CoalKindCode; return m.CollName + "|" + m.CoalKindName + "|" + m.MarkedCardState; } else return ""; }