approvel_flow1.aspx.cs
上传用户:xrffrp
上传日期:2022-03-25
资源大小:22155k
文件大小:1k
源码类别:

OA系统

开发平台:

ASP/ASPX

  1. using System;
  2. using System.Data;
  3. using System.Configuration;
  4. using System.Collections;
  5. using System.Web;
  6. using System.Web.Security;
  7. using System.Web.UI;
  8. using System.Web.UI.WebControls;
  9. using System.Web.UI.WebControls.WebParts;
  10. using System.Web.UI.HtmlControls;
  11. using System.Data.SqlClient;
  12. public partial class web_personnel_curricula_vitae_approvel_flow1 : System.Web.UI.Page
  13. {
  14.     protected void Page_Load(object sender, EventArgs e)
  15.     {
  16.     }
  17.     protected void Button1_Click(object sender, EventArgs e)
  18.     {
  19.         if (tw_name.SelectedValue.Equals("1")) {
  20.             if (flow_type.SelectedValue.Equals("1"))
  21.             {
  22.                 SqlConnection conn = dbConnection.getConnection();
  23.                 conn.Open();
  24.                  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);
  25.                  cmd.ExecuteNonQuery();           
  26.            
  27.                 // tw_name.DataBind;
  28.                 //  flow_type.DataBind;
  29.                 //flow_s.DataBind;
  30.                 //flow_e.DataBind;
  31.             }
  32.             else {
  33.                 Response.Write("插入失败");
  34.             }
  35.         }
  36.         else
  37.         {
  38.             Response.Write("插入失败");
  39.         }
  40.     }
  41. }