ZSJ_BCY_Web/Admin-Update.aspx.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZSJ_BCY_Web_BLL;
using ZSJ_BCY_Web_Model;

namespace ZSJ_BCY_Web
{
    public partial class Admin_Add : System.Web.UI.Page
    {

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {

                DropDownList1.DataSource = PositionManage.Select();
                DropDownList1.DataTextField = "PositionName";
                DropDownList1.DataValueField = "PositionId";
                DropDownList1.DataBind();
                //   DropDownList1.Items.Insert(0,new ListItem("全部","0"));


                int id = Convert.ToInt32(Request.QueryString["id"]);


                Staff staffs = StaffManage.SelectIId(id);
                if (staffs != null)
                {
                    txtstaffName.Value = staffs.StaffName;
                    txtStaffSalary.Value = Convert.ToString(staffs.StaffSalary);
                    txtStaffIdcard.Value = staffs.StaffIdcard;
                    txtStaffTelePhone.Value = staffs.StaffTelePhone;
                    RadioButtonList1.SelectedValue = Convert.ToString(staffs.StaffSex);
                    DropDownList1.SelectedValue = Convert.ToString(staffs.StaffPosition);
                    txtStaffEducation.Value = staffs.StaffEducation;
                    bool state;
                    if (staffs.StaffStatus == 0)
                    {
                        state = false;
                    }
                    else
                    {
                        state = true;
                    }

                    CheckBox1.Checked = state;
                }

               
                



            }
        }

后面还有 40 行代码,解锁后查看完整代码

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

AI 解读

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

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