Exemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPGuDing Model = new ZWL.BLL.ERPGuDing();
            Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblGDName.Text = Model.GDName.ToString();
            GDName = Model.GDName.ToString();
            this.lblGDSerils.Text    = Model.GDSerils.ToString();
            this.lblGDType.Text      = Model.GDType.ToString();
            this.lblSuoShuBuMen.Text = Model.SuoShuBuMen.ToString();
            this.lblGDAllCount.Text  = Model.GDAllCount.ToString();
            this.lblNowCount.Text    = Model.NowCount.ToString();
            this.lblNianXian.Text    = Model.NianXian.ToString();
            this.lblGDXingZhi.Text   = Model.GDXingZhi.ToString();
            this.lblQiYongDate.Text  = Model.QiYongDate.ToString();
            this.lblBaoGuanUser.Text = Model.BaoGuanUser.ToString();
            this.lblUserName.Text    = Model.UserName.ToString();
            this.lblTimeStr.Text     = Model.TimeStr.ToString();
            this.lblBackInfo.Text    = Model.BackInfo.ToString();

            //写系统日志
            ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
            MyRiZhi.UserName    = ZWL.Common.PublicMethod.GetSessionValue("UserName");
            MyRiZhi.DoSomething = "用户查看资产信息(" + this.lblGDName.Text + ")";
            MyRiZhi.IpStr       = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
            MyRiZhi.Add();
        }
    }
Exemplo n.º 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPGuDing Model = new ZWL.BLL.ERPGuDing();
            Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblGDName.Text=Model.GDName.ToString();
            GDName = Model.GDName.ToString();
            this.lblGDSerils.Text=Model.GDSerils.ToString();
            this.lblGDType.Text=Model.GDType.ToString();
            this.lblSuoShuBuMen.Text=Model.SuoShuBuMen.ToString();
            this.lblGDAllCount.Text=Model.GDAllCount.ToString();
            this.lblNowCount.Text=Model.NowCount.ToString();
            this.lblNianXian.Text=Model.NianXian.ToString();
            this.lblGDXingZhi.Text=Model.GDXingZhi.ToString();
            this.lblQiYongDate.Text=Model.QiYongDate.ToString();
            this.lblBaoGuanUser.Text=Model.BaoGuanUser.ToString();
            this.lblUserName.Text=Model.UserName.ToString();
            this.lblTimeStr.Text=Model.TimeStr.ToString();
            this.lblBackInfo.Text=Model.BackInfo.ToString();

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

        }
    }
Exemplo n.º 3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ZWL.Common.PublicMethod.CheckSession();
         ZWL.BLL.ERPGuDing Model = new ZWL.BLL.ERPGuDing();
         Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
         this.txtGDName.Text      = Model.GDName.ToString();
         this.txtGDSerils.Text    = Model.GDSerils.ToString();
         this.txtGDType.Text      = Model.GDType.ToString();
         this.txtSuoShuBuMen.Text = Model.SuoShuBuMen.ToString();
         this.txtGDAllCount.Text  = Model.GDAllCount.ToString();
         this.txtNowCount.Text    = Model.NowCount.ToString();
         this.txtNianXian.Text    = Model.NianXian.ToString();
         this.txtGDXingZhi.Text   = Model.GDXingZhi.ToString();
         this.txtQiYongDate.Text  = Model.QiYongDate.ToString();
         this.txtBaoGuanUser.Text = Model.BaoGuanUser.ToString();
         this.txtUserName.Text    = Model.UserName.ToString();
         this.txtTimeStr.Text     = Model.TimeStr.ToString();
         this.txtBackInfo.Text    = Model.BackInfo.ToString();
     }
 }
Exemplo n.º 4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ZWL.Common.PublicMethod.CheckSession();
         ZWL.BLL.ERPGuDing Model = new ZWL.BLL.ERPGuDing();
         Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
         this.txtGDName.Text=Model.GDName.ToString();
         this.txtGDSerils.Text=Model.GDSerils.ToString();
         this.txtGDType.Text=Model.GDType.ToString();
         this.txtSuoShuBuMen.Text=Model.SuoShuBuMen.ToString();
         this.txtGDAllCount.Text=Model.GDAllCount.ToString();
         this.txtNowCount.Text=Model.NowCount.ToString();
         this.txtNianXian.Text=Model.NianXian.ToString();
         this.txtGDXingZhi.Text=Model.GDXingZhi.ToString();
         this.txtQiYongDate.Text=Model.QiYongDate.ToString();
         this.txtBaoGuanUser.Text=Model.BaoGuanUser.ToString();
         this.txtUserName.Text=Model.UserName.ToString();
         this.txtTimeStr.Text=Model.TimeStr.ToString();
         this.txtBackInfo.Text=Model.BackInfo.ToString();
     }
 }