コード例 #1
0
        public void Bind()
        {
            int ID = Convert.ToInt32(Request.QueryString["id"]);

            WebModels.Tbl_ProjectBid bid = WebBLL.Tbl_ProjectBidManager.GetTbl_ProjectBidById(ID);
            this.PB_Name.Text  = bid.PB_Name;
            this.PB_Info.Value = bid.PB_Info;
            this.Status.Text   = bid.Status.Trim();
            this.Remark.Value  = bid.Remark;
        }
コード例 #2
0
        protected void btn_submit_Click(object sender, EventArgs e)
        {
            WebModels.Tbl_ProjectBid bid = new WebModels.Tbl_ProjectBid();
            bid.PB_Name  = this.PB_Name.Text;
            bid.PB_Info  = this.PB_Info.Value;
            bid.Remark   = this.Remark.Value;
            bid.Status   = this.Stauts.SelectedValue;
            bid.DealUser = WebCommon.Public.GetUserName();
            int count = WebBLL.Tbl_ProjectBidManager.AddTbl_ProjectBid(bid);

            if (count > 0)
            {
                ScriptManager.RegisterStartupScript(this, this.GetType(), "message", "alert('添加成功!');window.external.reload();window.external.close();", true);
            }
            else
            {
                ScriptManager.RegisterStartupScript(this, this.GetType(), "message", "alert('添加失败!');", true);
            }
        }
コード例 #3
0
        protected void btn_submit_Click(object sender, EventArgs e)
        {
            int ID = Convert.ToInt32(Request.QueryString["id"]);

            WebModels.Tbl_ProjectBid bid = WebBLL.Tbl_ProjectBidManager.GetTbl_ProjectBidById(ID);
            bid.PB_Info  = this.PB_Info.Value;
            bid.Remark   = this.Remark.Value;
            bid.Status   = this.Status.SelectedValue;
            bid.DealUser = WebCommon.Public.GetUserName();
            int count = WebBLL.Tbl_ProjectBidManager.UpdateTbl_ProjectBid(bid);

            if (count > 0)
            {
                ScriptManager.RegisterStartupScript(this, this.GetType(), "message", "alert('修改成功!');window.external.reload();window.external.close();", true);
            }
            else
            {
                ScriptManager.RegisterStartupScript(this, this.GetType(), "message", "alert('修改失败!');", true);
            }
        }