ActionLabel/Products.cs

(开头部分) 89KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Text;
using System.Data;
using Common;
using System.Web;
namespace ActionLabel
{
    public class Products
    {
        /// <summary>
        /// 地址列表
        /// </summary>
        /// <param name="top">显示条数</param>
        /// <param name="txtNum">显示字符,注意一个汉字等于二个字节</param>
        /// <param name="imgW">预览图宽度</param>
        /// <param name="imgH">预览图高度</param>
        /// <param name="strWhere">查询条件</param>
        /// <param name="orderby">排序条件</param>
        /// <returns></returns>
        public static string ViewAddressList(int top, int txtNum, string strWhere, string orderby)
        {
            BLL.Address bll = new BLL.Address();
            StringBuilder strTxt = new StringBuilder();
            DataSet ds = bll.GetList(top, strWhere, orderby);
            //如果记录存在
            if (ds.Tables[0].Rows.Count > 0)
            {
                for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
                {
                    DataRow dr = ds.Tables[0].Rows[i];
                    strTxt.Append("<TR><TD class=lc_thre colSpan=3><SPAN><A onclick=EditAddress(" + dr["Id"].ToString() + ") href=\"javascript:\">[修改]</A></SPAN><EM>&nbsp;&nbsp;&nbsp;&nbsp;");
                    strTxt.Append("<INPUT id=chk-" + dr["Id"].ToString() + " onclick=OnChanage(1); value=" + dr["Id"].ToString() + " type=radio name=adr> <LABEL for=chk-" + dr["Id"].ToString() + ">");
                    strTxt.Append("" + dr["Name"] + " | " + dr["UbuyAddress"] + " | " + dr["Phono"] + "");
                    strTxt.Append("</LABEL></EM></TD></TR>");
                }
            }
            return strTxt.ToString();
        }
        /// <summary>
        /// 显示地址信息
        /// </summary>
        /// <param name="top"></param>
        /// <param name="txtNum"></param>
        /// <param name="strWhere"></param>
        /// <param name="orderby"></param>
        /// <returns></returns>
        public static string ViewAddressList2(int top, int txtNum, string strWhere, string orderby)
        {
            BLL.Address bll = new BLL.Address();
            StringBuilder strTxt = new StringBuilder();
            DataSet ds = bll.GetList(top, strWhere, orderby);
            //如果记录存在
            if (ds.Tables[0].Rows.Count > 0)
            {
                for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
                {
                    DataRow dr = ds.Tables[0].Rows[i];
                    //strTxt.Append("<TR><TD class=lc_thre colSpan=3><SPAN><A onclick=EditAddress(" + dr["Id"].ToString() + ") href=\"javascript:\">[修改]</A></SPAN><EM>&nbsp;&nbsp;&nbsp;&nbsp;");
                    //strTxt.Append("<INPUT id=chk-" + dr["Id"].ToString() + " onclick=OnChanage(1); value=" + dr["Id"].ToString() + " type=radio name=adr> <LABEL for=chk-" + dr["Id"].ToString() + ">");
                    //strTxt.Append("" + dr["Name"] + " | " + dr["UbuyAddress"] + " | " + dr["Phono"] + "");
后面还有 1869 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。