Example #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPProject model = new ZWL.BLL.ERPProject();
            model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblProjectName.Text       = model.ProjectName;
            CustomNameStr                  = model.ProjectName;
            this.HyperLink1.NavigateUrl    = "TuXingJinDu.aspx?ProjectName=" + model.ProjectName;
            this.lblProjectSerils.Text     = model.ProjectSerils;
            this.lblSuoShuKeHu.Text        = model.SuoShuKeHu;
            this.lblYuJiChengJiaoRiQi.Text = model.YuJiChengJiaoRiQi;
            this.lblTiXingDate.Text        = model.TiXingDate;
            this.lblFuZeRen.Text           = model.FuZeRen;
            this.lblXiangMuJinE.Text       = model.XiangMuJinE;
            this.lblXiangMuYuSuan.Text     = model.XiangMuYuSuan;
            this.lblXiangMuDaXiao.Text     = model.XiangMuDaXiao;
            this.lblPeiHeRenList.Text      = model.PeiHeRenList;
            this.lblUserName.Text          = model.UserName;
            this.lblTimeStr.Text           = model.TimeStr.ToString();
            this.lblHeTongAndFuJian.Text   = ZWL.Common.PublicMethod.GetWenJian(model.HeTongAndFuJian, "../UploadFile/");
            this.lblBackInfo.Text          = model.BackInfo;

            //写系统日志
            ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
            MyRiZhi.UserName    = ZWL.Common.PublicMethod.GetSessionValue("UserName");
            MyRiZhi.DoSomething = "查看项目信息(" + this.lblProjectName.Text + ")";
            MyRiZhi.IpStr       = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
            MyRiZhi.Add();
        }
    }
Example #2
0
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        ZWL.BLL.ERPProject model = new ZWL.BLL.ERPProject();
        model.ProjectName       = this.txtProjectName.Text;
        model.ProjectSerils     = this.txtProjectSerils.Text;
        model.SuoShuKeHu        = this.txtSuoShuKeHu.Text;
        model.YuJiChengJiaoRiQi = this.txtYuJiChengJiaoRiQi.Text;
        model.TiXingDate        = this.txtTiXingDate.Text;
        model.FuZeRen           = this.txtFuZeRen.Text;
        model.XiangMuJinE       = this.txtXiangMuJinE.Text;
        model.XiangMuYuSuan     = this.txtXiangMuYuSuan.Text;
        model.XiangMuDaXiao     = this.txtXiangMuDaXiao.Text;
        model.PeiHeRenList      = this.txtPeiHeRenList.Text;
        model.UserName          = ZWL.Common.PublicMethod.GetSessionValue("UserName");
        model.TimeStr           = DateTime.Now;
        model.HeTongAndFuJian   = ZWL.Common.PublicMethod.GetSessionValue("WenJianList");
        model.BackInfo          = this.txtBackInfo.Text;
        model.Add();

        //写系统日志
        ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
        MyRiZhi.UserName    = ZWL.Common.PublicMethod.GetSessionValue("UserName");
        MyRiZhi.DoSomething = "用户添加项目信息(" + this.txtProjectName.Text + ")";
        MyRiZhi.IpStr       = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
        MyRiZhi.Add();

        ZWL.Common.MessageBox.ShowAndRedirect(this, "项目信息添加成功!", "ProjectManage.aspx?ProjectName=");
    }
Example #3
0
 public void DataBindToGridview()
 {
     ZWL.BLL.ERPProject MyModel = new ZWL.BLL.ERPProject();
     GVData.DataSource = MyModel.GetList("ProjectName 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();
 }
Example #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ZWL.Common.PublicMethod.CheckSession();
         ZWL.BLL.ERPProject model = new ZWL.BLL.ERPProject();
         model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
         this.txtProjectName.Text       = model.ProjectName;
         this.txtProjectSerils.Text     = model.ProjectSerils;
         this.txtSuoShuKeHu.Text        = model.SuoShuKeHu;
         this.txtYuJiChengJiaoRiQi.Text = model.YuJiChengJiaoRiQi;
         this.txtTiXingDate.Text        = model.TiXingDate;
         this.txtFuZeRen.Text           = model.FuZeRen;
         this.txtXiangMuJinE.Text       = model.XiangMuJinE;
         this.txtXiangMuYuSuan.Text     = model.XiangMuYuSuan;
         this.txtXiangMuDaXiao.Text     = model.XiangMuDaXiao;
         this.txtPeiHeRenList.Text      = model.PeiHeRenList;
         this.txtBackInfo.Text          = model.BackInfo;
         ZWL.Common.PublicMethod.SetSessionValue("WenJianList", model.HeTongAndFuJian);
         ZWL.Common.PublicMethod.BindDDL(this.CheckBoxList1, ZWL.Common.PublicMethod.GetSessionValue("WenJianList"));
     }
 }