Web/test.aspx.cs

(开头部分) 2KB

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

#region license
/**********************************************
* CopyRight (c) 2009-2010 HangJing Teconology. All Rights Re* Function :
*  at 2011-6-22 16:34:17.
* E-Mail: jijunjian@iWMPT.com
*********************************************** */
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using WMPT.SQLServerDAL;
using WMPT.Common;
using WMPT.Model;
using WMPT.DBUtility;
using System.Text.RegularExpressions;
using WMPT.Cache;
using System.Threading;
using System.Data;
using WMPT.Config;
using Newtonsoft.Json;


public partial class test : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

        WMPT.AppLog.AppLog.Info("test log....测试log...");

        if (!Page.IsPostBack)
        {
            CustorderInfo model = new Custorder().GetModel(1);
            Response.Write(JsonConvert.SerializeObject(model));


            Response.Write("<br>fee=" + GetFee(1000, 8.5));

        }

    }

    public string GetBarCode(string str)
    {
        string barcode = "";
        string templast = str;

        //检查码之计算步骤如下:
        // N1+ N3+N5+N7+N9+N11C2 
        int c1 = 0, c2 = 0, cc = 0, c = 0;
        c2 = (Convert.ToInt32(templast[1]) + Convert.ToInt32(templast[3]) + Convert.ToInt32(templast[5]) + Convert.ToInt32(templast[7]) + Convert.ToInt32(templast[9]) + Convert.ToInt32(templast[11])) * 3;
        c1 = Convert.ToInt32(templast[0]) + Convert.ToInt32(templast[2]) + Convert.ToInt32(templast[4]) + Convert.ToInt32(templast[6]) + Convert.ToInt32(templast[8]) + Convert.ToInt32(templast[10]);
        cc = (c1 + c2) % 10;
        c = 10 - cc;
        c = c == 10 ? 0 : c;
        barcode = templast + c;

后面还有 29 行代码,购买后查看完整代码

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

AI 解读 AI

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

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