private void ShowInfo(string strid)
        {
            Maticsoft.BLL.NewPort.Table_monthlyFeedback   bll   = new Maticsoft.BLL.NewPort.Table_monthlyFeedback();
            Maticsoft.Model.NewPort.Table_monthlyFeedback model = bll.GetModel(strid);

            this.lbl_number.Text    = model.project_id.ToString();
            this.lbl_time.Text      = model.monthlyFeedback_yyyyMM.ToString();
            this.lbl_completed.Text = model.monthlyFeedback_fulfilment.ToString();
            this.lbl_process.Text   = model.monthlyFeedback_fulfilmentDescription.ToString();
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["isLogin"] != "ok")
     {
         Response.Redirect("../Login.aspx");
     }
     if (Request.QueryString["id"] != null)
     {
         strid = Request.QueryString["id"].ToString();
         Maticsoft.BLL.NewPort.Table_monthlyFeedback bll = new Maticsoft.BLL.NewPort.Table_monthlyFeedback();
         bll.Delete(strid);
     }
 }
Esempio n. 3
0
        protected void btnmBack_Click(object sender, EventArgs e)
        {
            Maticsoft.Model.NewPort.Table_monthlyFeedback model = new Maticsoft.Model.NewPort.Table_monthlyFeedback();
            model.monthlyFeedback_sn     = monid;
            model.project_id             = DropDownList1.SelectedValue.ToString().Trim();
            model.monthlyFeedback_yyyyMM = DateTime.Now.ToUniversalTime();
            model.monthlyFeedback_fulfilmentDescription = this.txta.Value;
            model.monthlyFeedback_fulfilment            = Decimal.Parse(this.txtInvestment.Text.Trim());
            model.monthlyFeedback_writer = Session["UserName"].ToString();

            Maticsoft.BLL.NewPort.Table_monthlyFeedback bll = new Maticsoft.BLL.NewPort.Table_monthlyFeedback();
            bll.Add(model);
            Maticsoft.Common.MessageBox.ShowAndRedirect(this, "保存成功!", "monthlyFeedbackCheck.aspx");
        }