Exemple #1
0
        private void print()
        {
            StringBuilder  strb           = new StringBuilder();
            WarehousingBll warehousingBll = new WarehousingBll();
            DataSet        ds             = warehousingBll.customerRs(customerId);
            CustomerBll    customerBll    = new CustomerBll();

            Customer cus = customerBll.getCustomer(customerId);

            customer = cus.CustomerName;
            kinds    = repBll.getMonkinds(customerId, 1);
            counts   = repBll.getTotalMon(customerId, 1);
            strb.Append("<tbody>");
            for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
            {
                strb.Append("<tr><td>" + (i + 1) + "</td>");
                strb.Append("<td>" + ds.Tables[0].Rows[i]["ISBN"].ToString() + "</td>");
                strb.Append("<td>" + ds.Tables[0].Rows[i]["bookNum"].ToString() + "</td>");
                strb.Append("<td><nobr>" + ds.Tables[0].Rows[i]["bookName"].ToString() + "</nobr></td>");
                strb.Append("<td>" + ds.Tables[0].Rows[i]["count"].ToString() + "</td>");
                strb.Append("<td>" + ds.Tables[0].Rows[i]["customerName"].ToString() + "</td>");
                strb.Append("<td>" + ds.Tables[0].Rows[i]["regionName"].ToString() + "</td>");
                strb.Append("<td><nobr>" + ds.Tables[0].Rows[i]["dateTime"].ToString() + "</nobr></td></tr>");
            }
            strb.Append("</tbody>");
            Response.Write(strb.ToString() + ":|" + kinds + ":|" + counts + ":|" + customer);
            Response.End();
        }
Exemple #2
0
        //打印
        private void print()
        {
            WarehousingBll warehousingBll = new WarehousingBll();
            DataSet        ds             = warehousingBll.regionRs(regionId);
            StringBuilder  strb           = new StringBuilder();

            region = regionBll.selectById(regionId);
            kinds  = repBll.getMonkinds(regionId, 0);
            counts = repBll.getTotalMon(regionId, 0);
            strb.Append("<tbody>");
            for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
            {
                strb.Append("<tr><td>" + (i + 1) + "</td>");
                strb.Append("<td>" + ds.Tables[0].Rows[i]["ISBN"].ToString() + "</td>");
                strb.Append("<td>" + ds.Tables[0].Rows[i]["bookNum"].ToString() + "</td>");
                strb.Append("<td><nobr>" + ds.Tables[0].Rows[i]["bookName"].ToString() + "</nobr></td>");
                strb.Append("<td>" + ds.Tables[0].Rows[i]["count"].ToString() + "</td>");
                strb.Append("<td>" + ds.Tables[0].Rows[i]["customerName"].ToString() + "</td>");
                strb.Append("<td>" + ds.Tables[0].Rows[i]["regionName"].ToString() + "</td>");
                strb.Append("<td><nobr>" + Convert.ToDateTime(ds.Tables[0].Rows[i]["dateTime"].ToString()).ToString("yyyy/MM/dd") + "</nobr></td></tr>");
            }
            strb.Append("</tbody>");
            Response.Write(strb.ToString() + ":|" + kinds + ":|" + counts + ":|" + region);
            Response.End();
        }
Exemple #3
0
        //打印
        private void print()
        {
            WarehousingBll warehousingBll = new WarehousingBll();
            DataSet        dataSet        = warehousingBll.checkRs(Session["rsHeadId"].ToString());
            StringBuilder  strb           = new StringBuilder();

            for (int i = 0; i < dataSet.Tables[0].Rows.Count; i++)
            {
                strb.Append("<tr><td>" + (i + 1) + "</td>");
                strb.Append("<td>" + dataSet.Tables[0].Rows[i]["bookNum"].ToString() + "</td>");
                strb.Append("<td><nobr>" + dataSet.Tables[0].Rows[i]["bookName"].ToString() + "</nobr></td>");
                strb.Append("<td>" + dataSet.Tables[0].Rows[i]["allnumber"].ToString() + "</td>");
                strb.Append("<td><nobr>" + dataSet.Tables[0].Rows[i]["dateTime"].ToString() + "</nobr></td></tr>");
            }
            Response.Write(strb.ToString());
            Response.End();
        }