QiHaiFengProgram/WorkFlow/WorkFlowName_edit.aspx.cs

(开头部分) 6KB

这里只显示每个文件的开头 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 WorkFlowName_edit : System.Web.UI.Page
    {
        Pub list = new Pub();
        protected void Page_Load(object sender, EventArgs e)
        {            
            if (!IsPostBack)
            {
                if (Request["action"] == "add")
                {
                    Random g = new Random();
                    string rad = g.Next(10000).ToString();
                    hidWFN_FlowID.Value = "" + System.DateTime.Now.Year.ToString() + "" + System.DateTime.Now.Month.ToString() + "" + System.DateTime.Now.Day.ToString() + "" + System.DateTime.Now.Hour.ToString() + "" + System.DateTime.Now.Minute.ToString() + "" + System.DateTime.Now.Second.ToString() + "" + System.DateTime.Now.Millisecond.ToString() + "" + rad + "";
                    btnEdit.Visible = false;
                }
                if (Request["action"] == "update")
                {
                    Bind();
                    btnAdd.Visible = false;
                }
                txtWFN_FlowName.Focus();
            }
        }

        private void Bind()//绑定拜访计划
        {
            string id = Request["wfnid"];
            SqlDataReader sdr = PublicFunctions.GetDataRows(" where WFN_ID=" + id, "", "T_WorkFlowName");
            if (sdr.Read())
            {
                txtWFN_FlowName.Text = sdr["WFN_FlowName"].ToString();
                hidWFN_FlowID.Value = sdr["WFN_FlowID"].ToString();
                txtWFN_Memo.Text = sdr["WFN_Memo"].ToString();
                txtWFN_DocNum.Text = sdr["WFN_DocNum"].ToString();
                txtWFN_DocNumLen.Text = sdr["WFN_DocNumLen"].ToString();
                txtWFN_DocLength.Text = sdr["WFN_DocLength"].ToString();
                cbxWFN_IfEdit.Checked = Convert.ToBoolean(sdr["WFN_IfEdit"].ToString());
            }
            sdr.Close();
            sdr.Dispose();
        }

        protected void btnAdd_Click(object sender, EventArgs e)
        {
            if (txtWFN_FlowName.Text.Trim() == string.Empty)
            {
                ClientScript.RegisterStartupScript(typeof(Page), "aa", "javascript:alert('请填写流程名称');", true);
                return;
后面还有 79 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。