コード例 #1
0
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        ZWL.BLL.ERPBaoJia model = new ZWL.BLL.ERPBaoJia();
        model.CustomName    = this.txtCustomName.Text;
        model.BaoJiaTitle   = this.txtBaoJiaTitle.Text;
        model.BaoJiaType    = this.txtBaoJiaType.Text;
        model.BaoJiaJinE    = this.txtBaoJiaJinE.Text;
        model.BaoJiaContent = this.txtBaoJiaContent.Text;
        model.BaoJiaResult  = this.txtBaoJiaResult.Text;
        model.BaoJiaTime    = this.txtBaoJiaTime.Text;
        model.BackInfo      = this.txtBackInfo.Text;
        model.UserName      = ZWL.Common.PublicMethod.GetSessionValue("UserName");
        model.TimeStr       = DateTime.Now;
        model.IFShare       = this.txtIFShare.Text;
        model.CusBakA       = this.txtCusBakA.Text;
        model.CusBakB       = this.txtCusBakB.Text;
        model.CusBakC       = this.txtCusBakC.Text;
        model.CusBakD       = this.txtCusBakD.Text;
        model.CusBakE       = this.txtCusBakE.Text;

        model.Add();

        //写系统日志
        ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
        MyRiZhi.UserName    = ZWL.Common.PublicMethod.GetSessionValue("UserName");
        MyRiZhi.DoSomething = "用户添加报价记录(" + this.txtCustomName.Text + ")";
        MyRiZhi.IpStr       = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
        MyRiZhi.Add();

        ZWL.Common.MessageBox.ShowAndRedirect(this, "报价信息添加成功!", "MyCustomPrice.aspx?CustomName=" + Request.QueryString["CustomName"].ToString());
    }
コード例 #2
0
ファイル: BaoJiaModify.aspx.cs プロジェクト: YJGGIT422/OAweb
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ZWL.Common.PublicMethod.CheckSession();
         ZWL.BLL.ERPBaoJia model = new ZWL.BLL.ERPBaoJia();
         model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
         this.txtCustomName.Text    = model.CustomName;
         this.txtBaoJiaTitle.Text   = model.BaoJiaTitle;
         this.txtBaoJiaType.Text    = model.BaoJiaType;
         this.txtBaoJiaJinE.Text    = model.BaoJiaJinE;
         this.txtBaoJiaContent.Text = model.BaoJiaContent;
         this.txtBaoJiaResult.Text  = model.BaoJiaResult;
         this.txtBaoJiaTime.Text    = model.BaoJiaTime;
         this.txtBackInfo.Text      = model.BackInfo;
         this.Label1.Text           = model.UserName;
         this.Label2.Text           = model.TimeStr.ToString();
         this.txtIFShare.Text       = model.IFShare;
         this.txtCusBakA.Text       = model.CusBakA;
         this.txtCusBakB.Text       = model.CusBakB;
         this.txtCusBakC.Text       = model.CusBakC;
         this.txtCusBakD.Text       = model.CusBakD;
         this.txtCusBakE.Text       = model.CusBakE;
     }
 }
コード例 #3
0
ファイル: BaoJiaView.aspx.cs プロジェクト: YJGGIT422/OAweb
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPBaoJia model = new ZWL.BLL.ERPBaoJia();
            model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblCustomName.Text    = model.CustomName;
            this.lblBaoJiaTitle.Text   = model.BaoJiaTitle;
            this.lblBaoJiaType.Text    = model.BaoJiaType;
            this.lblBaoJiaJinE.Text    = model.BaoJiaJinE;
            this.lblBaoJiaContent.Text = model.BaoJiaContent;
            this.lblBaoJiaResult.Text  = model.BaoJiaResult;
            this.lblBaoJiaTime.Text    = model.BaoJiaTime;
            this.lblBackInfo.Text      = model.BackInfo;
            this.lblUserName.Text      = model.UserName;
            this.lblTimeStr.Text       = model.TimeStr.ToString();
            this.lblIFShare.Text       = model.IFShare;
            this.lblCusBakA.Text       = model.CusBakA;
            this.lblCusBakB.Text       = model.CusBakB;
            this.lblCusBakC.Text       = model.CusBakC;
            this.lblCusBakD.Text       = model.CusBakD;
            this.lblCusBakE.Text       = model.CusBakE;

            //写系统日志
            ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
            MyRiZhi.UserName    = ZWL.Common.PublicMethod.GetSessionValue("UserName");
            MyRiZhi.DoSomething = "用户查看报价信息(" + this.lblCustomName.Text + ")";
            MyRiZhi.IpStr       = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
            MyRiZhi.Add();
        }
    }
コード例 #4
0
 public void DataBindToGridview()
 {
     ZWL.BLL.ERPBaoJia MyModel = new ZWL.BLL.ERPBaoJia();
     GVData.DataSource = MyModel.GetList(" " + this.DropDownList1.SelectedItem.Value.ToString() + " Like '%" + this.TextBox1.Text + "%' and UserName='******' 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();
 }
コード例 #5
0
 public void DataBindToGridview()
 {
     ZWL.BLL.ERPBaoJia MyModel = new ZWL.BLL.ERPBaoJia();
     GVData.DataSource = MyModel.GetList(" " + this.DropDownList1.SelectedItem.Value.ToString() + " Like '%" + this.TextBox1.Text + "%' " + SetIfShare() + " 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();
 }