QiHaiFengProgram/WorkFlow/SendDocType_edit.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using SuLinClass;
using ProgramLib;
namespace QiHaiFengProgram.WorkFlow
{
public partial class SendDocType_edit : System.Web.UI.Page
{
Pub list = new Pub();
protected void Page_Load(object sender, EventArgs e)
{
lblMsg.Text = "";
txtSdt_Name.Focus();
if (!IsPostBack)
{
if (Request["action"] == "add")
{
btnEdit.Visible = false;
}
if (Request["action"] == "update")
{
Bind();
btnAdd.Visible = false;
}
}
}
private void Bind()//绑定拜访计划
{
string id = Request["id"];
SqlDataReader sdr = PublicFunctions.GetDataRows(" where Sdt_ID=" + id, "", "T_SendDocType");
if (sdr.Read())
{
txtSdt_Name.Text = sdr["Sdt_Name"].ToString();
}
sdr.Close();
sdr.Dispose();
}
protected void btnAdd_Click(object sender, EventArgs e)
{
if (txtSdt_Name.Text.Trim() == string.Empty)
{
ClientScript.RegisterStartupScript(typeof(Page), "aa", "javascript:alert('请填写审批类别名称');", true);
return;
}
SDT model = new SDT();
model.Sdt_Name = txtSdt_Name.Text;
SendDocTypeLib.Add(model);
//插入日志
list.InsertLog("添加审批类别(" + txtSdt_Name.Text + ")", "审批流转-审批类别", Server.UrlDecode(Request.Cookies["user"].Values["name"]), Page.Request.UserHostAddress, DateTime.Now.ToString());
//Response.Redirect("SendDocType.aspx?moduid=" + Request["moduid"] + "&pagemode=" + Request["pagemode"]);
this.Response.Write("<script language=javascript>alert('添加成功!');location.href='SendDocType.aspx?moduid=" + Request["moduid"] + "&pagemode=" + Request["pagemode"] + "';</script>");
后面还有 20 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
