public static string LoadMeasureImgList(string sid) { string r = ""; StringBuilder ht = new StringBuilder(); SessionUserValidate iv = SysValidateBll.ValidateSession(); if (iv.f) { ht.Append("<table style='width:100%'>"); List <B_MeasureImg> bmi = bmib.QueryList(" and (csid='" + sid + "' or csid =(select csid from dbo.B_SaleOrder where sid='" + sid + "'))"); if (bmi != null) { foreach (B_MeasureImg b in bmi) { ht.AppendFormat("<tr><td><img src='{0}' alt='{1}' id='{2}' style='cursor:pointer;' onclick='nck(this.id)'/></td></tr>", b.url, b.imgname, b.id); } } ht.Append("</table>"); r = ht.ToString(); } else { r = iv.badstr; } return(r); }
public static string QueryMeasureImgHtm(string sid) { string r = ""; StringBuilder htxt = new StringBuilder(); SessionUserValidate iv = SysValidateBll.ValidateSession(); if (iv.f) { htxt.Append("<div class='cimg' style='width:100%; height:100px;'><ul>"); List <B_MeasureImg> lbsp = bmib.QueryList(" and csid='" + sid + "'"); if (lbsp != null) { foreach (B_MeasureImg b in lbsp) { htxt.Append("<li style='width:80px; height:100px;float:left;border:1px solid #cccccc; margin-left:10px'><ul style='margin-left:-40px'>"); htxt.AppendFormat("<li style='width:80px; height:18px;background:#91baf2'><img src='../../../Image/opeimage/dele.png' alt='' id='{0}' style='cursor:pointer;float:right' onclick='DelImg(this.id)'/></li>", b.id); htxt.AppendFormat(" <li style='width:80px; height:80px;'><img src='{0}' alt=''style='width:80px; height:80px;'/></li>", b.url); htxt.Append("</ul></li>"); } } htxt.Append("</ul></div>"); r = htxt.ToString(); } else { r = iv.badstr; } return(r); }