Esempio n. 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPPeiXun Model = new ZWL.BLL.ERPPeiXun();
            Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblPeiXunName.Text = Model.PeiXunName.ToString();
            PeiXunName = Model.PeiXunName.ToString();
            this.lblPeiXunUser.Text    = Model.PeiXunUser.ToString();
            this.lblCanYuUser.Text     = Model.CanYuUser.ToString();
            this.lblStartDate.Text     = Model.StartDate.ToString();
            this.lblEndDate.Text       = Model.EndDate.ToString();
            this.lblPeiXunMuDi.Text    = Model.PeiXunMuDi.ToString();
            this.lblPeiXunNeiRong.Text = Model.PeiXunNeiRong.ToString();
            this.lblXiaoGuo.Text       = Model.XiaoGuo.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.lblPeiXunName.Text + ")";
            MyRiZhi.IpStr       = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
            MyRiZhi.Add();
        }
    }
Esempio n. 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPPeiXun Model = new ZWL.BLL.ERPPeiXun();
            Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblPeiXunName.Text=Model.PeiXunName.ToString();
            PeiXunName = Model.PeiXunName.ToString();
            this.lblPeiXunUser.Text=Model.PeiXunUser.ToString();
            this.lblCanYuUser.Text=Model.CanYuUser.ToString();
            this.lblStartDate.Text=Model.StartDate.ToString();
            this.lblEndDate.Text=Model.EndDate.ToString();
            this.lblPeiXunMuDi.Text=Model.PeiXunMuDi.ToString();
            this.lblPeiXunNeiRong.Text=Model.PeiXunNeiRong.ToString();
            this.lblXiaoGuo.Text=Model.XiaoGuo.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.lblPeiXunName.Text + ")";
            MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
            MyRiZhi.Add();

        }
    }
Esempio n. 3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ZWL.Common.PublicMethod.CheckSession();
         ZWL.BLL.ERPPeiXun Model = new ZWL.BLL.ERPPeiXun();
         Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
         this.txtPeiXunName.Text=Model.PeiXunName.ToString();
         this.txtPeiXunUser.Text=Model.PeiXunUser.ToString();
         this.txtCanYuUser.Text=Model.CanYuUser.ToString();
         this.txtStartDate.Text=Model.StartDate.ToString();
         this.txtEndDate.Text=Model.EndDate.ToString();
         this.txtPeiXunMuDi.Text=Model.PeiXunMuDi.ToString();
         this.txtPeiXunNeiRong.Text=Model.PeiXunNeiRong.ToString();
         this.txtXiaoGuo.Text=Model.XiaoGuo.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();
     }
 }
Esempio n. 4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ZWL.Common.PublicMethod.CheckSession();
         ZWL.BLL.ERPPeiXun Model = new ZWL.BLL.ERPPeiXun();
         Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
         this.txtPeiXunName.Text    = Model.PeiXunName.ToString();
         this.txtPeiXunUser.Text    = Model.PeiXunUser.ToString();
         this.txtCanYuUser.Text     = Model.CanYuUser.ToString();
         this.txtStartDate.Text     = Model.StartDate.ToString();
         this.txtEndDate.Text       = Model.EndDate.ToString();
         this.txtPeiXunMuDi.Text    = Model.PeiXunMuDi.ToString();
         this.txtPeiXunNeiRong.Text = Model.PeiXunNeiRong.ToString();
         this.txtXiaoGuo.Text       = Model.XiaoGuo.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();
     }
 }