Web/WorkFlow/WorkToDo.aspx.cs
(开头部分) 12KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class WorkFlow_WorkToDo : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
ZWL.Common.PublicMethod.CheckSession();
ZWL.BLL.ERPWorkToDo MyModel = new ZWL.BLL.ERPWorkToDo();
MyModel.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
this.Label1.Text = MyModel.WorkName;
this.Label2.Text = MyModel.JieDianName;
this.Label3.Text = MyModel.FormContent;
ZWL.Common.PublicMethod.SetSessionValue("WenJianList", MyModel.FuJianList);
ZWL.Common.PublicMethod.BindDDL(this.CheckBoxList1, ZWL.Common.PublicMethod.GetSessionValue("WenJianList"));
this.Label5.Text = MyModel.ShenPiYiJian;
this.HyperLink1.NavigateUrl = "JustShowWorkFlow.aspx?ID=" + MyModel.WorkFlowID.ToString();
//绑定常用审批
ZWL.DBUtility.DbHelperSQL.BindDropDownList2("select ContentStr from ERPShenPi where UserName='"+ZWL.Common.PublicMethod.GetSessionValue("UserName")+"'", this.DropDownList1, "ContentStr", "ContentStr");
//根据节点属性判断是否可以编辑附件、删除附件
if (ZWL.DBUtility.DbHelperSQL.GetSHSL("select IFEditFile from ERPWorkFlowJieDian where ID=" + MyModel.JieDianID.ToString()) == "否")
{
this.ImageButton5.Visible = false;
}
if (ZWL.DBUtility.DbHelperSQL.GetSHSL("select IFDelFile from ERPWorkFlowJieDian where ID=" + MyModel.JieDianID.ToString()) == "否")
{
this.ImageButton3.Visible = false;
}
}
}
protected void Button1_Click(object sender, EventArgs e)
{
//找到下一节点
string FileNameStr = ZWL.Common.PublicMethod.UploadFileIntoDir(this.FileUpload1, DateTime.Now.Ticks.ToString() + System.IO.Path.GetExtension(FileUpload1.PostedFile.FileName));
if (FileNameStr.Trim().Length > 0)
{
string PiShiStr = "<font color=#0000FF>" + ZWL.Common.PublicMethod.GetSessionValue("UserName") + " " + DateTime.Now.ToString() + " </font><BR>" + this.TextBox1.Text.ToString() + "<br>审批附件:<a href=../UploadFile/" + FileNameStr + ">[右键下载]</a><hr>" + this.Label5.Text;
ZWL.DBUtility.DbHelperSQL.ExecuteSQL("update ERPWorkToDo set FuJianList='" + ZWL.Common.PublicMethod.GetSessionValue("WenJianList") + "',TongGuoRenList=TongGuoRenList+'," + ZWL.Common.PublicMethod.GetSessionValue("UserName") + "',ShenPiYiJian='" + PiShiStr + "' where ID=" + Request.QueryString["ID"].ToString());
ZWL.BLL.ERPWorkToDo Mymodel = new ZWL.BLL.ERPWorkToDo();
Mymodel.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
Mymodel.ID = int.Parse(Request.QueryString["ID"].ToString());
Mymodel.FormContent = this.TextBox3.Text;
Mymodel.UpdateBD();
后面还有 161 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。