⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 yuezongjie.aspx.cs

📁 OA自动化办公系统,就是OA自动化办公系统
💻 CS
字号:
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;
using COM.OA.BLL;
using COM.OA.Entity;

public partial class wx_zongjie_yuezongjie : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Submit1_ServerClick(object sender, EventArgs e)
    {
        //取要插入的数据值
        string changgui=this.Request.Form["fchanggui"].Trim();
        string jobjihua = this.Request.Form["txt_jobjihua"].Trim();
        string chuangxin = this.Request.Form["txt_chuangxin"].Trim();
        string year = this.Request.Form["yearvalue"].Trim();
        string month = this.Request.Form["monthvalue"].Trim();

        if (changgui == null || changgui=="")
        {
            this.Response.Write(string.Format(GetRedirect.WINALERT, "常规不能为空"));
            return;
        }
        else if (jobjihua == null || jobjihua == "")
        {
            this.Response.Write(string.Format(GetRedirect.WINALERT, "工作计划不能为空"));
            return;
        }
        else if (chuangxin == null || chuangxin == "")
        {
            this.Response.Write(string.Format(GetRedirect.WINALERT, "创新不能为空"));
            return;
        }
        else
        {
            users loginuser = Session["loginuser"] as users;
            //实力化实体
            worksumup ws = new worksumup();
            ws.ws_st_id = 2;
            ws.ws_year = year;
            ws.ws_month = month;
            ws.ws_time = DateTime.Now;
            ws.ws_generalwork = changgui;
            ws.ws_nextplan = jobjihua;
            ws.ws_advice = chuangxin;
            ws.ws_u_id = loginuser.u_id;
            //插入
            worksumupBLL.Insert(ws);

            this.Response.Write(string.Format(GetRedirect.WINALERT, "插入成功"));
            this.Response.Write(string.Format(GetRedirect.REDIRECT, "yuezongjie.aspx"));
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -