Пример #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPJianLi Model = new ZWL.BLL.ERPJianLi();
            Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblYPName.Text    = Model.YPName.ToString();
            this.lblYPDate.Text    = Model.YPDate.ToString();
            this.lblYPSex.Text     = Model.YPSex.ToString();
            this.lblYPAge.Text     = Model.YPAge.ToString();
            this.lblXueLi.Text     = Model.XueLi.ToString();
            this.lblZhuanYe.Text   = Model.ZhuanYe.ToString();
            this.lblYPZhiWei.Text  = Model.YPZhiWei.ToString();
            this.lblYPJieGuo.Text  = Model.YPJieGuo.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.lblYPName.Text + ")";
            MyRiZhi.IpStr       = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
            MyRiZhi.Add();
        }
    }
Пример #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPJianLi Model = new ZWL.BLL.ERPJianLi();
            Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblYPName.Text=Model.YPName.ToString();
            this.lblYPDate.Text=Model.YPDate.ToString();
            this.lblYPSex.Text=Model.YPSex.ToString();
            this.lblYPAge.Text=Model.YPAge.ToString();
            this.lblXueLi.Text=Model.XueLi.ToString();
            this.lblZhuanYe.Text=Model.ZhuanYe.ToString();
            this.lblYPZhiWei.Text=Model.YPZhiWei.ToString();
            this.lblYPJieGuo.Text=Model.YPJieGuo.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.lblYPName.Text + ")";
            MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
            MyRiZhi.Add();

        }
    }
Пример #3
0
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        ZWL.BLL.ERPJianLi Model = new ZWL.BLL.ERPJianLi();

        Model.YPName    = this.txtYPName.Text.ToString();
        Model.YPDate    = this.txtYPDate.Text.ToString();
        Model.YPSex     = this.txtYPSex.Text.ToString();
        Model.YPAge     = this.txtYPAge.Text.ToString();
        Model.XueLi     = this.txtXueLi.Text.ToString();
        Model.ZhuanYe   = this.txtZhuanYe.Text.ToString();
        Model.YPZhiWei  = this.txtYPZhiWei.Text.ToString();
        Model.YPJieGuo  = this.txtYPJieGuo.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.txtYPName.Text + ")";
        MyRiZhi.IpStr       = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
        MyRiZhi.Add();

        ZWL.Common.MessageBox.ShowAndRedirect(this, "人员简历信息添加成功!", "JianLi.aspx");
    }
Пример #4
0
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        ZWL.BLL.ERPJianLi Model = new ZWL.BLL.ERPJianLi();

        Model.ID = int.Parse(Request.QueryString["ID"].ToString());
        Model.YPName=this.txtYPName.Text.ToString();
        Model.YPDate=this.txtYPDate.Text.ToString();
        Model.YPSex=this.txtYPSex.Text.ToString();
        Model.YPAge=this.txtYPAge.Text.ToString();
        Model.XueLi=this.txtXueLi.Text.ToString();
        Model.ZhuanYe=this.txtZhuanYe.Text.ToString();
        Model.YPZhiWei=this.txtYPZhiWei.Text.ToString();
        Model.YPJieGuo=this.txtYPJieGuo.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.txtYPName.Text + ")";
        MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
        MyRiZhi.Add();

        ZWL.Common.MessageBox.ShowAndRedirect(this, "��Ա������Ϣ�޸ijɹ���", "JianLi.aspx");
    }
Пример #5
0
 public void DataBindToGridview(string IDList)
 {
     ZWL.BLL.ERPJianLi MyModel = new ZWL.BLL.ERPJianLi();
     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();
 }
Пример #6
0
 public void DataBindToGridview(string IDList)
 {
     ZWL.BLL.ERPJianLi MyModel = new ZWL.BLL.ERPJianLi();
     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();
 }
Пример #7
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ZWL.Common.PublicMethod.CheckSession();
         ZWL.BLL.ERPJianLi Model = new ZWL.BLL.ERPJianLi();
         Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
         this.txtYPName.Text   = Model.YPName.ToString();
         this.txtYPDate.Text   = Model.YPDate.ToString();
         this.txtYPSex.Text    = Model.YPSex.ToString();
         this.txtYPAge.Text    = Model.YPAge.ToString();
         this.txtXueLi.Text    = Model.XueLi.ToString();
         this.txtZhuanYe.Text  = Model.ZhuanYe.ToString();
         this.txtYPZhiWei.Text = Model.YPZhiWei.ToString();
         this.txtYPJieGuo.Text = Model.YPJieGuo.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();
     }
 }
Пример #8
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ZWL.Common.PublicMethod.CheckSession();
         ZWL.BLL.ERPJianLi Model = new ZWL.BLL.ERPJianLi();
         Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
         this.txtYPName.Text=Model.YPName.ToString();
         this.txtYPDate.Text=Model.YPDate.ToString();
         this.txtYPSex.Text=Model.YPSex.ToString();
         this.txtYPAge.Text=Model.YPAge.ToString();
         this.txtXueLi.Text=Model.XueLi.ToString();
         this.txtZhuanYe.Text=Model.ZhuanYe.ToString();
         this.txtYPZhiWei.Text=Model.YPZhiWei.ToString();
         this.txtYPJieGuo.Text=Model.YPJieGuo.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();
     }
 }