示例#1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPRenShiHeTong Model = new ZWL.BLL.ERPRenShiHeTong();
            Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblHeTongUser.Text      = Model.HeTongUser.ToString();
            this.lblNowState.Text        = Model.NowState.ToString();
            this.lblSerils.Text          = Model.Serils.ToString();
            this.lblTypeStr.Text         = Model.TypeStr.ToString();
            this.lblJingYe.Text          = Model.JingYe.ToString();
            this.lblBaoMiXieYi.Text      = Model.BaoMiXieYi.ToString();
            this.lblQianYueDate.Text     = Model.QianYueDate.ToString();
            this.lblManYueDate.Text      = Model.ManYueDate.ToString();
            this.lblJianZhengJiGuan.Text = Model.JianZhengJiGuan.ToString();
            this.lblJianZhengDate.Text   = Model.JianZhengDate.ToString();
            this.lblWeiYueZeRen.Text     = Model.WeiYueZeRen.ToString();
            this.lblBackInfo.Text        = Model.BackInfo.ToString();
            this.lblFuJianList.Text      = ZWL.Common.PublicMethod.GetWenJian(Model.FuJianList.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.lblHeTongUser.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.ERPRenShiHeTong Model = new ZWL.BLL.ERPRenShiHeTong();
            Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblHeTongUser.Text=Model.HeTongUser.ToString();
            this.lblNowState.Text=Model.NowState.ToString();
            this.lblSerils.Text=Model.Serils.ToString();
            this.lblTypeStr.Text=Model.TypeStr.ToString();
            this.lblJingYe.Text=Model.JingYe.ToString();
            this.lblBaoMiXieYi.Text=Model.BaoMiXieYi.ToString();
            this.lblQianYueDate.Text=Model.QianYueDate.ToString();
            this.lblManYueDate.Text=Model.ManYueDate.ToString();
            this.lblJianZhengJiGuan.Text=Model.JianZhengJiGuan.ToString();
            this.lblJianZhengDate.Text=Model.JianZhengDate.ToString();
            this.lblWeiYueZeRen.Text=Model.WeiYueZeRen.ToString();
            this.lblBackInfo.Text=Model.BackInfo.ToString();
            this.lblFuJianList.Text=ZWL.Common.PublicMethod.GetWenJian(Model.FuJianList.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.lblHeTongUser.Text + ")";
            MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
            MyRiZhi.Add();

        }
    }
示例#3
0
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        ZWL.BLL.ERPRenShiHeTong Model = new ZWL.BLL.ERPRenShiHeTong();

        Model.ID              = int.Parse(Request.QueryString["ID"].ToString());
        Model.HeTongUser      = this.txtHeTongUser.Text.ToString();
        Model.NowState        = this.txtNowState.Text.ToString();
        Model.Serils          = this.txtSerils.Text.ToString();
        Model.TypeStr         = this.txtTypeStr.Text.ToString();
        Model.JingYe          = this.txtJingYe.Text.ToString();
        Model.BaoMiXieYi      = this.txtBaoMiXieYi.Text.ToString();
        Model.QianYueDate     = this.txtQianYueDate.Text.ToString();
        Model.ManYueDate      = this.txtManYueDate.Text.ToString();
        Model.JianZhengJiGuan = this.txtJianZhengJiGuan.Text.ToString();
        Model.JianZhengDate   = this.txtJianZhengDate.Text.ToString();
        Model.WeiYueZeRen     = this.txtWeiYueZeRen.Text.ToString();
        Model.BackInfo        = this.txtBackInfo.Text.ToString();
        Model.FuJianList      = 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.txtHeTongUser.Text + ")";
        MyRiZhi.IpStr       = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
        MyRiZhi.Add();

        ZWL.Common.MessageBox.ShowAndRedirect(this, "人事合同信息修改成功!", "RenShiHeTong.aspx");
    }
示例#4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ZWL.Common.PublicMethod.CheckSession();
         ZWL.BLL.ERPRenShiHeTong Model = new ZWL.BLL.ERPRenShiHeTong();
         Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
         this.txtHeTongUser.Text      = Model.HeTongUser.ToString();
         this.txtNowState.Text        = Model.NowState.ToString();
         this.txtSerils.Text          = Model.Serils.ToString();
         this.txtTypeStr.Text         = Model.TypeStr.ToString();
         this.txtJingYe.Text          = Model.JingYe.ToString();
         this.txtBaoMiXieYi.Text      = Model.BaoMiXieYi.ToString();
         this.txtQianYueDate.Text     = Model.QianYueDate.ToString();
         this.txtManYueDate.Text      = Model.ManYueDate.ToString();
         this.txtJianZhengJiGuan.Text = Model.JianZhengJiGuan.ToString();
         this.txtJianZhengDate.Text   = Model.JianZhengDate.ToString();
         this.txtWeiYueZeRen.Text     = Model.WeiYueZeRen.ToString();
         this.txtBackInfo.Text        = Model.BackInfo.ToString();
         ZWL.Common.PublicMethod.SetSessionValue("WenJianList", Model.FuJianList);
         ZWL.Common.PublicMethod.BindDDL(this.CheckBoxList1, ZWL.Common.PublicMethod.GetSessionValue("WenJianList"));
         this.txtUserName.Text = Model.UserName.ToString();
         this.txtTimeStr.Text  = Model.TimeStr.ToString();
     }
 }
示例#5
0
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        ZWL.BLL.ERPRenShiHeTong Model = new ZWL.BLL.ERPRenShiHeTong();

        Model.HeTongUser=this.txtHeTongUser.Text.ToString();
        Model.NowState=this.txtNowState.Text.ToString();
        Model.Serils=this.txtSerils.Text.ToString();
        Model.TypeStr=this.txtTypeStr.Text.ToString();
        Model.JingYe=this.txtJingYe.Text.ToString();
        Model.BaoMiXieYi=this.txtBaoMiXieYi.Text.ToString();
        Model.QianYueDate=this.txtQianYueDate.Text.ToString();
        Model.ManYueDate=this.txtManYueDate.Text.ToString();
        Model.JianZhengJiGuan=this.txtJianZhengJiGuan.Text.ToString();
        Model.JianZhengDate=this.txtJianZhengDate.Text.ToString();
        Model.WeiYueZeRen=this.txtWeiYueZeRen.Text.ToString();
        Model.BackInfo=this.txtBackInfo.Text.ToString();
        Model.FuJianList=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.txtHeTongUser.Text + ")";
        MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
        MyRiZhi.Add();

        ZWL.Common.MessageBox.ShowAndRedirect(this, "���º�ͬ��Ϣ��ӳɹ���", "RenShiHeTong.aspx");
    }
示例#6
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ZWL.Common.PublicMethod.CheckSession();
         ZWL.BLL.ERPRenShiHeTong Model = new ZWL.BLL.ERPRenShiHeTong();
         Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
         this.txtHeTongUser.Text=Model.HeTongUser.ToString();
         this.txtNowState.Text=Model.NowState.ToString();
         this.txtSerils.Text=Model.Serils.ToString();
         this.txtTypeStr.Text=Model.TypeStr.ToString();
         this.txtJingYe.Text=Model.JingYe.ToString();
         this.txtBaoMiXieYi.Text=Model.BaoMiXieYi.ToString();
         this.txtQianYueDate.Text=Model.QianYueDate.ToString();
         this.txtManYueDate.Text=Model.ManYueDate.ToString();
         this.txtJianZhengJiGuan.Text=Model.JianZhengJiGuan.ToString();
         this.txtJianZhengDate.Text=Model.JianZhengDate.ToString();
         this.txtWeiYueZeRen.Text=Model.WeiYueZeRen.ToString();
         this.txtBackInfo.Text=Model.BackInfo.ToString();
         ZWL.Common.PublicMethod.SetSessionValue("WenJianList", Model.FuJianList);
         ZWL.Common.PublicMethod.BindDDL(this.CheckBoxList1, ZWL.Common.PublicMethod.GetSessionValue("WenJianList"));
         this.txtUserName.Text=Model.UserName.ToString();
         this.txtTimeStr.Text=Model.TimeStr.ToString();
     }
 }
示例#7
0
	public void DataBindToGridview()
	{
		ZWL.BLL.ERPRenShiHeTong MyModel = new ZWL.BLL.ERPRenShiHeTong();
		GVData.DataSource = MyModel.GetList("HeTongUser Like '%" + this.TextBox1.Text + "%' 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();
	}
示例#8
0
 public void DataBindToGridview()
 {
     ZWL.BLL.ERPRenShiHeTong MyModel = new ZWL.BLL.ERPRenShiHeTong();
     GVData.DataSource = MyModel.GetList("HeTongUser Like '%" + this.TextBox1.Text + "%' 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();
 }
示例#9
0
    public void DataBindToGridview()
    {
        GVData.PageSize  = AspNetPager1.PageSize;
        GVData.PageIndex = AspNetPager1.CurrentPageIndex - 1;
        ZWL.BLL.ERPRenShiHeTong MyModel = new ZWL.BLL.ERPRenShiHeTong();
        DataSet ds = MyModel.GetList("HeTongUser Like '%" + this.TextBox1.Text + "%' order by ID desc");

        GVData.DataSource = ds;
        GVData.DataBind();
        AspNetPager1.RecordCount = ds.Tables[0].Rows.Count;
    }