Browse Source

提交

master
学 赵 4 years ago
parent
commit
575abcd709
  1. 1
      SCP/Handlers/ReceiveHandler.ashx
  2. 73
      SCP/Handlers/ReceiveHandler.ashx.cs
  3. 40
      SCP/SCP.csproj

1
SCP/Handlers/ReceiveHandler.ashx

@ -1 +0,0 @@
<%@ WebHandler Language="C#" CodeBehind="ReceiveHandler.ashx.cs" Class="SCP.Handlers.ReceiveHandler" %>

73
SCP/Handlers/ReceiveHandler.ashx.cs

@ -1,73 +0,0 @@
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace SCP.Handlers
{
/// <summary>
/// ReceiveHandler 的摘要说明
/// </summary>
public class ReceiveHandler : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
string rowId = context.Request.QueryString["id"];
int rowIdInt = Convert.ToInt32(rowId);
JObject jo = new JObject();
JArray ja = new JArray();
Random rd = new Random();
for (int i = 0; i < 3; i++)
{
JObject joItem = new JObject();
if (i == 0)
{
joItem.Add("type", "入学");
}
else if (i == 1)
{
joItem.Add("type", "期中");
}
else if (i == 2)
{
joItem.Add("type", "期末");
}
int randomMinValue = 80;
int randomMaxValue = 100;
if (rowIdInt % 2 == 0)
{
randomMinValue = 40;
randomMaxValue = 80;
}
joItem.Add("yuwen", rd.Next(randomMinValue, randomMaxValue));
joItem.Add("shuxue", rd.Next(randomMinValue, randomMaxValue));
joItem.Add("yingwen", rd.Next(randomMinValue, randomMaxValue));
joItem.Add("wuli", rd.Next(randomMinValue, randomMaxValue));
joItem.Add("huaxue", rd.Next(randomMinValue, randomMaxValue));
ja.Add(joItem);
}
jo.Add("data", ja);
jo.Add("total", ja.Count);
context.Response.ContentType = "text/plain";
context.Response.Write(jo.ToString(Newtonsoft.Json.Formatting.None));
}
public bool IsReusable
{
get
{
return false;
}
}
}
}

40
SCP/SCP.csproj

@ -177,7 +177,6 @@
<Content Include="Admin\help\wannianli.htm" /> <Content Include="Admin\help\wannianli.htm" />
<Content Include="Admin\log.aspx" /> <Content Include="Admin\log.aspx" />
<Content Include="Admin\log_view.aspx" /> <Content Include="Admin\log_view.aspx" />
<Content Include="Admin\MakeInitUser.aspx" />
<Content Include="Admin\menu.aspx" /> <Content Include="Admin\menu.aspx" />
<Content Include="Admin\menu_edit.aspx" /> <Content Include="Admin\menu_edit.aspx" />
<Content Include="Admin\menu_new.aspx" /> <Content Include="Admin\menu_new.aspx" />
@ -2906,12 +2905,10 @@
<Content Include="Handlers\FileUpload.ashx" /> <Content Include="Handlers\FileUpload.ashx" />
<Content Include="grf\Material.grf" /> <Content Include="grf\Material.grf" />
<Content Include="Handlers\MakeVerifyCode.ashx" /> <Content Include="Handlers\MakeVerifyCode.ashx" />
<Content Include="Handlers\ReceiveHandler.ashx" />
<Content Include="grf\SendBill.grf" /> <Content Include="grf\SendBill.grf" />
<Content Include="Handlers\GenerateReport.ashx" /> <Content Include="Handlers\GenerateReport.ashx" />
<Content Include="grf\SmallBarCode.grf" /> <Content Include="grf\SmallBarCode.grf" />
<Content Include="grf\InvRecBill.grf" /> <Content Include="grf\InvRecBill.grf" />
<Content Include="Handlers\ServiceHandler.ashx" />
<None Include="Properties\PublishProfiles\COM.pubxml" /> <None Include="Properties\PublishProfiles\COM.pubxml" />
<None Include="Scripts\jquery-1.10.2.intellisense.js" /> <None Include="Scripts\jquery-1.10.2.intellisense.js" />
<Content Include="main.aspx" /> <Content Include="main.aspx" />
@ -4496,7 +4493,6 @@
<Content Include="Views\SupplierData\SCP_TS_BARCODE.aspx" /> <Content Include="Views\SupplierData\SCP_TS_BARCODE.aspx" />
<Content Include="Views\SupplierData\SCP_SHIP_DETAIL_BARCODE.aspx" /> <Content Include="Views\SupplierData\SCP_SHIP_DETAIL_BARCODE.aspx" />
<Content Include="ViewSwitcher.ascx" /> <Content Include="ViewSwitcher.ascx" />
<Content Include="Views\WarehouseData\SCP_COMPARE.aspx" />
<Content Include="Views\WarehouseData\SCP_INVOICE_VIEW.aspx" /> <Content Include="Views\WarehouseData\SCP_INVOICE_VIEW.aspx" />
<Content Include="Views\WarehouseData\SCP_INVOICE_RECVICE.aspx" /> <Content Include="Views\WarehouseData\SCP_INVOICE_RECVICE.aspx" />
<Content Include="Views\WarehouseData\SCP_INVOICE_VIEW_DETAIL.aspx" /> <Content Include="Views\WarehouseData\SCP_INVOICE_VIEW_DETAIL.aspx" />
@ -4508,9 +4504,7 @@
<Content Include="Views\WarehouseData\SCP_RECEIVE_LIST.aspx" /> <Content Include="Views\WarehouseData\SCP_RECEIVE_LIST.aspx" />
<Content Include="Views\WarehouseData\SCP_RECEIVE_VIEW.aspx" /> <Content Include="Views\WarehouseData\SCP_RECEIVE_VIEW.aspx" />
<Content Include="Views\WarehouseData\SCP_RECEIVE_DETAIL_VIEW.aspx" /> <Content Include="Views\WarehouseData\SCP_RECEIVE_DETAIL_VIEW.aspx" />
<Content Include="Views\WarehouseData\SCP_REJECT.aspx" />
<Content Include="Views\WarehouseData\SCP_RECEIVE.aspx" /> <Content Include="Views\WarehouseData\SCP_RECEIVE.aspx" />
<Content Include="Views\WarehouseData\SCP_REJECT_DETAIL.aspx" />
<Content Include="Views\WarehouseData\SCP_RECEIVE_DETAIL.aspx" /> <Content Include="Views\WarehouseData\SCP_RECEIVE_DETAIL.aspx" />
<Content Include="Views\沈阳金杯\PlanData\SCP_ASK.aspx" /> <Content Include="Views\沈阳金杯\PlanData\SCP_ASK.aspx" />
<Content Include="Views\沈阳金杯\PlanData\SCP_ASK_DETAIL.aspx" /> <Content Include="Views\沈阳金杯\PlanData\SCP_ASK_DETAIL.aspx" />
@ -4647,13 +4641,6 @@
<Compile Include="Admin\log_view.aspx.designer.cs"> <Compile Include="Admin\log_view.aspx.designer.cs">
<DependentUpon>log_view.aspx</DependentUpon> <DependentUpon>log_view.aspx</DependentUpon>
</Compile> </Compile>
<Compile Include="Admin\MakeInitUser.aspx.cs">
<DependentUpon>MakeInitUser.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="Admin\MakeInitUser.aspx.designer.cs">
<DependentUpon>MakeInitUser.aspx</DependentUpon>
</Compile>
<Compile Include="Admin\menu.aspx.cs"> <Compile Include="Admin\menu.aspx.cs">
<DependentUpon>menu.aspx</DependentUpon> <DependentUpon>menu.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType> <SubType>ASPXCodeBehind</SubType>
@ -4893,12 +4880,6 @@
<Compile Include="Handlers\MakeVerifyCode.ashx.cs"> <Compile Include="Handlers\MakeVerifyCode.ashx.cs">
<DependentUpon>MakeVerifyCode.ashx</DependentUpon> <DependentUpon>MakeVerifyCode.ashx</DependentUpon>
</Compile> </Compile>
<Compile Include="Handlers\ReceiveHandler.ashx.cs">
<DependentUpon>ReceiveHandler.ashx</DependentUpon>
</Compile>
<Compile Include="Handlers\ServiceHandler.ashx.cs">
<DependentUpon>ServiceHandler.ashx</DependentUpon>
</Compile>
<Compile Include="Views\BasicData\Price.aspx.cs"> <Compile Include="Views\BasicData\Price.aspx.cs">
<DependentUpon>Price.aspx</DependentUpon> <DependentUpon>Price.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType> <SubType>ASPXCodeBehind</SubType>
@ -5524,13 +5505,6 @@
<Compile Include="ViewSwitcher.ascx.designer.cs"> <Compile Include="ViewSwitcher.ascx.designer.cs">
<DependentUpon>ViewSwitcher.ascx</DependentUpon> <DependentUpon>ViewSwitcher.ascx</DependentUpon>
</Compile> </Compile>
<Compile Include="Views\WarehouseData\SCP_COMPARE.aspx.cs">
<DependentUpon>SCP_COMPARE.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="Views\WarehouseData\SCP_COMPARE.aspx.designer.cs">
<DependentUpon>SCP_COMPARE.aspx</DependentUpon>
</Compile>
<Compile Include="Views\WarehouseData\SCP_INVOICE_VIEW.aspx.cs"> <Compile Include="Views\WarehouseData\SCP_INVOICE_VIEW.aspx.cs">
<DependentUpon>SCP_INVOICE_VIEW.aspx</DependentUpon> <DependentUpon>SCP_INVOICE_VIEW.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType> <SubType>ASPXCodeBehind</SubType>
@ -5608,13 +5582,6 @@
<Compile Include="Views\WarehouseData\SCP_RECEIVE_DETAIL_VIEW.aspx.designer.cs"> <Compile Include="Views\WarehouseData\SCP_RECEIVE_DETAIL_VIEW.aspx.designer.cs">
<DependentUpon>SCP_RECEIVE_DETAIL_VIEW.aspx</DependentUpon> <DependentUpon>SCP_RECEIVE_DETAIL_VIEW.aspx</DependentUpon>
</Compile> </Compile>
<Compile Include="Views\WarehouseData\SCP_REJECT.aspx.cs">
<DependentUpon>SCP_REJECT.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="Views\WarehouseData\SCP_REJECT.aspx.designer.cs">
<DependentUpon>SCP_REJECT.aspx</DependentUpon>
</Compile>
<Compile Include="Views\WarehouseData\SCP_RECEIVE.aspx.cs"> <Compile Include="Views\WarehouseData\SCP_RECEIVE.aspx.cs">
<DependentUpon>SCP_RECEIVE.aspx</DependentUpon> <DependentUpon>SCP_RECEIVE.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType> <SubType>ASPXCodeBehind</SubType>
@ -5622,13 +5589,6 @@
<Compile Include="Views\WarehouseData\SCP_RECEIVE.aspx.designer.cs"> <Compile Include="Views\WarehouseData\SCP_RECEIVE.aspx.designer.cs">
<DependentUpon>SCP_RECEIVE.aspx</DependentUpon> <DependentUpon>SCP_RECEIVE.aspx</DependentUpon>
</Compile> </Compile>
<Compile Include="Views\WarehouseData\SCP_REJECT_DETAIL.aspx.cs">
<DependentUpon>SCP_REJECT_DETAIL.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="Views\WarehouseData\SCP_REJECT_DETAIL.aspx.designer.cs">
<DependentUpon>SCP_REJECT_DETAIL.aspx</DependentUpon>
</Compile>
<Compile Include="Views\WarehouseData\SCP_RECEIVE_DETAIL.aspx.cs"> <Compile Include="Views\WarehouseData\SCP_RECEIVE_DETAIL.aspx.cs">
<DependentUpon>SCP_RECEIVE_DETAIL.aspx</DependentUpon> <DependentUpon>SCP_RECEIVE_DETAIL.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType> <SubType>ASPXCodeBehind</SubType>

Loading…
Cancel
Save