Exemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPMianShi Model = new ZWL.BLL.ERPMianShi();
            Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblMSName.Text    = Model.MSName.ToString();
            this.lblMSDate.Text    = Model.MSDate.ToString();
            this.lblMSSex.Text     = Model.MSSex.ToString();
            this.lblMSAge.Text     = Model.MSAge.ToString();
            this.lblXueLi.Text     = Model.XueLi.ToString();
            this.lblZhuanYe.Text   = Model.ZhuanYe.ToString();
            this.lblMSZhiWei.Text  = Model.MSZhiWei.ToString();
            this.lblMSJieGuo.Text  = Model.MSJieGuo.ToString();
            this.lblBackInfo.Text  = Model.BackInfo.ToString();
            this.lblFuJianStr.Text = ZWL.Common.PublicMethod.GetWenJian(Model.FuJianStr.ToString(), "../UpLoadFile/");
            this.lblUserName.Text  = Model.UserName.ToString();
            this.lblTimeStr.Text   = Model.TimeStr.ToString();

            //写系统日志
            ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
            MyRiZhi.UserName    = ZWL.Common.PublicMethod.GetSessionValue("UserName");
            MyRiZhi.DoSomething = "用户查看面试数据信息(" + this.lblMSName.Text + ")";
            MyRiZhi.IpStr       = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
            MyRiZhi.Add();
        }
    }
Exemplo n.º 2
0
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        ZWL.BLL.ERPMianShi Model = new ZWL.BLL.ERPMianShi();

        Model.MSName=this.txtMSName.Text.ToString();
        Model.MSDate=this.txtMSDate.Text.ToString();
        Model.MSSex=this.txtMSSex.Text.ToString();
        Model.MSAge=this.txtMSAge.Text.ToString();
        Model.XueLi=this.txtXueLi.Text.ToString();
        Model.ZhuanYe=this.txtZhuanYe.Text.ToString();
        Model.MSZhiWei=this.txtMSZhiWei.Text.ToString();
        Model.MSJieGuo=this.txtMSJieGuo.Text.ToString();
        Model.BackInfo=this.txtBackInfo.Text.ToString();
        Model.FuJianStr=ZWL.Common.PublicMethod.GetSessionValue("WenJianList");
        Model.UserName=ZWL.Common.PublicMethod.GetSessionValue("UserName");
        Model.TimeStr=DateTime.Now;

        Model.Add();

        //дϵͳ��־
        ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
        MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName");
        MyRiZhi.DoSomething = "�û��������������Ϣ(" + this.txtMSName.Text + ")";
        MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
        MyRiZhi.Add();

        ZWL.Common.MessageBox.ShowAndRedirect(this, "����������Ϣ��ӳɹ���", "MianShi.aspx");
    }
Exemplo n.º 3
0
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        ZWL.BLL.ERPMianShi Model = new ZWL.BLL.ERPMianShi();

        Model.ID        = int.Parse(Request.QueryString["ID"].ToString());
        Model.MSName    = this.txtMSName.Text.ToString();
        Model.MSDate    = this.txtMSDate.Text.ToString();
        Model.MSSex     = this.txtMSSex.Text.ToString();
        Model.MSAge     = this.txtMSAge.Text.ToString();
        Model.XueLi     = this.txtXueLi.Text.ToString();
        Model.ZhuanYe   = this.txtZhuanYe.Text.ToString();
        Model.MSZhiWei  = this.txtMSZhiWei.Text.ToString();
        Model.MSJieGuo  = this.txtMSJieGuo.Text.ToString();
        Model.BackInfo  = this.txtBackInfo.Text.ToString();
        Model.FuJianStr = ZWL.Common.PublicMethod.GetSessionValue("WenJianList");
        Model.UserName  = this.txtUserName.Text.ToString();
        Model.TimeStr   = DateTime.Parse(this.txtTimeStr.Text);

        Model.Update();

        //写系统日志
        ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
        MyRiZhi.UserName    = ZWL.Common.PublicMethod.GetSessionValue("UserName");
        MyRiZhi.DoSomething = "用户修改面试数据信息(" + this.txtMSName.Text + ")";
        MyRiZhi.IpStr       = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
        MyRiZhi.Add();

        ZWL.Common.MessageBox.ShowAndRedirect(this, "面试数据信息修改成功!", "MianShi.aspx");
    }
Exemplo n.º 4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPMianShi Model = new ZWL.BLL.ERPMianShi();
            Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblMSName.Text=Model.MSName.ToString();
            this.lblMSDate.Text=Model.MSDate.ToString();
            this.lblMSSex.Text=Model.MSSex.ToString();
            this.lblMSAge.Text=Model.MSAge.ToString();
            this.lblXueLi.Text=Model.XueLi.ToString();
            this.lblZhuanYe.Text=Model.ZhuanYe.ToString();
            this.lblMSZhiWei.Text=Model.MSZhiWei.ToString();
            this.lblMSJieGuo.Text=Model.MSJieGuo.ToString();
            this.lblBackInfo.Text=Model.BackInfo.ToString();
            this.lblFuJianStr.Text=ZWL.Common.PublicMethod.GetWenJian(Model.FuJianStr.ToString(),"../UpLoadFile/");
            this.lblUserName.Text=Model.UserName.ToString();
            this.lblTimeStr.Text=Model.TimeStr.ToString();

            //дϵͳ��־
            ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
            MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName");
            MyRiZhi.DoSomething = "�û��鿴����������Ϣ(" + this.lblMSName.Text + ")";
            MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
            MyRiZhi.Add();

        }
    }
Exemplo n.º 5
0
 public void DataBindToGridview(string IDList)
 {
     ZWL.BLL.ERPMianShi MyModel = new ZWL.BLL.ERPMianShi();
     if (IDList.Trim().Length > 0)
     {
         GVData.DataSource = MyModel.GetList(" " + DropDownList2.SelectedItem.Value.ToString() + " like '%" + this.TextBox3.Text.Trim() + "%' and ID in(" + IDList + ") order by ID desc");
     }
     else
     {
         GVData.DataSource = MyModel.GetList(" " + DropDownList2.SelectedItem.Value.ToString() + " like '%" + this.TextBox3.Text.Trim() + "%' order by ID desc");
     }
     GVData.DataBind();
     LabPageSum.Text     = Convert.ToString(GVData.PageCount);
     LabCurrentPage.Text = Convert.ToString(((int)GVData.PageIndex + 1));
     this.GoPage.Text    = LabCurrentPage.Text.ToString();
 }
Exemplo n.º 6
0
 public void DataBindToGridview(string IDList)
 {
     ZWL.BLL.ERPMianShi MyModel = new ZWL.BLL.ERPMianShi();
     if (IDList.Trim().Length > 0)
     {
         GVData.DataSource = MyModel.GetList(" " + DropDownList2.SelectedItem.Value.ToString() + " like '%" + this.TextBox3.Text.Trim() + "%' and ID in(" + IDList + ") order by ID desc");
     }
     else
     {
         GVData.DataSource = MyModel.GetList(" " + DropDownList2.SelectedItem.Value.ToString() + " like '%" + this.TextBox3.Text.Trim() + "%' order by ID desc");
     }
     GVData.DataBind();
     LabPageSum.Text = Convert.ToString(GVData.PageCount);
     LabCurrentPage.Text = Convert.ToString(((int)GVData.PageIndex + 1));
     this.GoPage.Text = LabCurrentPage.Text.ToString();
 }
Exemplo n.º 7
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ZWL.Common.PublicMethod.CheckSession();
         ZWL.BLL.ERPMianShi Model = new ZWL.BLL.ERPMianShi();
         Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
         this.txtMSName.Text   = Model.MSName.ToString();
         this.txtMSDate.Text   = Model.MSDate.ToString();
         this.txtMSSex.Text    = Model.MSSex.ToString();
         this.txtMSAge.Text    = Model.MSAge.ToString();
         this.txtXueLi.Text    = Model.XueLi.ToString();
         this.txtZhuanYe.Text  = Model.ZhuanYe.ToString();
         this.txtMSZhiWei.Text = Model.MSZhiWei.ToString();
         this.txtMSJieGuo.Text = Model.MSJieGuo.ToString();
         this.txtBackInfo.Text = Model.BackInfo.ToString();
         ZWL.Common.PublicMethod.SetSessionValue("WenJianList", Model.FuJianStr);
         ZWL.Common.PublicMethod.BindDDL(this.CheckBoxList1, ZWL.Common.PublicMethod.GetSessionValue("WenJianList"));
         this.txtUserName.Text = Model.UserName.ToString();
         this.txtTimeStr.Text  = Model.TimeStr.ToString();
     }
 }
Exemplo n.º 8
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ZWL.Common.PublicMethod.CheckSession();
         ZWL.BLL.ERPMianShi Model = new ZWL.BLL.ERPMianShi();
         Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
         this.txtMSName.Text=Model.MSName.ToString();
         this.txtMSDate.Text=Model.MSDate.ToString();
         this.txtMSSex.Text=Model.MSSex.ToString();
         this.txtMSAge.Text=Model.MSAge.ToString();
         this.txtXueLi.Text=Model.XueLi.ToString();
         this.txtZhuanYe.Text=Model.ZhuanYe.ToString();
         this.txtMSZhiWei.Text=Model.MSZhiWei.ToString();
         this.txtMSJieGuo.Text=Model.MSJieGuo.ToString();
         this.txtBackInfo.Text=Model.BackInfo.ToString();
     ZWL.Common.PublicMethod.SetSessionValue("WenJianList", Model.FuJianStr);
     ZWL.Common.PublicMethod.BindDDL(this.CheckBoxList1, ZWL.Common.PublicMethod.GetSessionValue("WenJianList"));
         this.txtUserName.Text=Model.UserName.ToString();
         this.txtTimeStr.Text=Model.TimeStr.ToString();
     }
 }