예제 #1
0
파일: HNTKY.aspx.cs 프로젝트: scaperow/-Web
    protected void Page_Load(object sender, EventArgs e)
    {
        if ("Act".IsRequest())
        {
            switch ("Act".RequestStr().ToUpper())
            {
            case "ATTR":
                //
                ItemCollection Items = BLOB.Attr("ItemID".RequestStr());

                try
                {
                    Items.Remove("安定性");
                    Items.Remove("烧失量");
                    Items.Remove("胶砂流动度");
                    Items.Remove("三氧化硫含量");
                    Items.Remove("氯离子含量");
                    Items.Remove("碱含量");
                    Items.Remove("游离氧化钙含量");
                    Items.Add(new Item()
                    {
                        ItemName = "用量", BindField = "YLL", StandardBindField = ""
                    });
                }
                catch { }
                Response.Write(JsonConvert.SerializeObject(Items));
                Response.End();
                break;

            case "CHART":
                Chart();
                break;
            }
        }
    }
예제 #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if ("Act".IsRequest())
        {
            switch ("Act".RequestStr().ToUpper())
            {
            case "ATTR":
                Response.Write(JsonConvert.SerializeObject(BLOB.Attr("ItemID".RequestStr())));
                Response.End();
                break;

            case "CHART":
                Chart();
                break;
            }
        }
    }
예제 #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if ("Act".IsRequest())
        {
            switch ("Act".RequestStr().ToUpper())
            {
            case "ITEM":
                Response.Write(JsonConvert.SerializeObject(BLOB.Items("1")));
                Response.End();
                break;

            case "FACTORY":
                Response.Write(JsonConvert.SerializeObject(BLOB.Factory("ItemID".RequestStr())));
                Response.End();
                break;

            case "MODEL":
                Response.Write(JsonConvert.SerializeObject(BLOB.Model("ItemID".RequestStr())));
                Response.End();
                break;

            case "ATTR":
                Response.Write(JsonConvert.SerializeObject(BLOB.Attr("ItemID".RequestStr())));
                Response.End();
                break;

            case "CHART":
                Chart();
                break;

            case "LIST":
                List();
                break;
            }
        }
    }