approvel_flow1.aspx.cs
资源名称:web.rar [点击查看]
上传用户:xrffrp
上传日期:2022-03-25
资源大小:22155k
文件大小:1k
源码类别:
OA系统
开发平台:
ASP/ASPX
- 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 System.Data.SqlClient;
- public partial class web_personnel_curricula_vitae_approvel_flow1 : System.Web.UI.Page
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- }
- protected void Button1_Click(object sender, EventArgs e)
- {
- if (tw_name.SelectedValue.Equals("1")) {
- if (flow_type.SelectedValue.Equals("1"))
- {
- SqlConnection conn = dbConnection.getConnection();
- conn.Open();
- SqlCommand cmd = new SqlCommand("insert into oa_flow_position1(tw_type,position_s,position_e)values('" + tw_name.SelectedValue.ToString() + "','" + flow_s.SelectedValue.ToString() + "','" + flow_e.SelectedValue.ToString() + "')", conn);
- cmd.ExecuteNonQuery();
- // tw_name.DataBind;
- // flow_type.DataBind;
- //flow_s.DataBind;
- //flow_e.DataBind;
- }
- else {
- Response.Write("插入失败");
- }
- }
- else
- {
- Response.Write("插入失败");
- }
- }
- }