Medical/Html/ajax/addorder.ashx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace WebApplication.Html.ajax
{
/// <summary>
/// addorder 的摘要说明
/// </summary>
public class addorder : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
//context.Response.Write("Hello World");
if (context.Request["channelid"] != null && context.Request["classid"] != null)
{
int channelid = int.Parse(context.Request["channelid"].ToString());
Model.Models.GZXX_Model model = new Model.Models.GZXX_Model();
BLL.Models.GZXX_Model bll = new BLL.Models.GZXX_Model();
model = bll.GetModelInfo(channelid);
if (model == null)
{
context.Response.Write("参数错误!");
}
else
{
Hashtable ht = new Hashtable();
ht.Add("Inputer", context.Request["name"]);
ht.Add("DepartID", 1);
if (context.Request["channelid"] == "1000059")
{
ht.Add("Title", DateTime.Now.ToString("yyyyMMddHHmmssfff") + DBUtility.Tools.GetRandomNumber(6));
}
for (int i = 0; i < context.Request.Form.Count; i++)
{
ht.Add(context.Request.Form.Keys[i].ToString(), context.Request.Form[i].ToString());
}
int infoid = bll.AddContent(model.modeltable, ht);
if (infoid > 0)
{
context.Response.Write("Success|" + infoid);
}
else
{
context.Response.Write("系统错误!");
}
}
}
else
{
context.Response.Write("参数错误!");
}
}
后面还有 9 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
