예제 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (this.Request.QueryString["op"] != null)
     {
         this.txtOp.Value = this.Request.QueryString["op"].ToString();
     }
     if (this.Request.QueryString["id"] != null)
     {
         this.txtDocid.Value = this.Request.QueryString["id"].ToString();
     }
     if (!this.IsPostBack)
     {
         if (this.txtOp.Value == "order")
         {
             demand demand = new demand();
             demand.GetModel(this.txtDocid.Value);
             this.lb_name.Text = demand.name;
             this.lb_ammount.Text = demand.amount.ToString();
             this.lb_day.Text = demand.days;
             this.lb_detail.Text = demand.detail;
             this.lb_project.Text = demand.projectName;
             this.lb_thirdClass.Text = demand.thirdClass;
             this.txtphone.Value = demand.phone;
             this.txtSummary.Value = demand.summary;
         }
     }
 }
예제 #2
0
 protected void btn_save_Click(object sender, EventArgs e)
 {
     demand demand = new demand();
     demand.GetModel(this.txtDocid.Value);
     demand.ifPay = "1";
     demand.Update();
     ClientScript.RegisterStartupScript(ClientScript.GetType(), "myscript", "<script>success();</script>");
 }
예제 #3
0
 protected void btn_save_Click(object sender, EventArgs e)
 {
     demand demand = new demand();
     demand.GetModel(this.txtDocid.Value);
     demand.phone = this.txtphone.Value;
     demand.summary = this.txtSummary.Value;
     demand.id = this.txtDocid.Value;
     demand.ifPublish = "1";
     demand.Update();
     Response.Redirect("getBountry.aspx?id=" + this.txtDocid.Value + "&rend=" + System.Guid.NewGuid().ToString() + "");
 }
예제 #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (this.Request.QueryString["id"] != null)
     {
         this.txtDocid.Value = this.Request.QueryString["id"].ToString();
     }
     if (!this.IsPostBack)
     {
         demand demand = new demand();
         demand.GetModel(this.txtDocid.Value);
         this.lb_amount.Text = demand.amount.ToString();
         this.lb_orderid.Text = demand.orderid;
         this.lb_title.Text = demand.name;
     }
 }