Exemplo n.º 1
0
 protected void btnDelete_Click(object sender, EventArgs e)
 {
     logmodel.ProcessFlag = "delete";
     FormModel model = new FormModel();
     model.FormSeq = Convert.ToInt32(hidFormSeq.Value);
     lblMessage.Text = formManageBll.DeleteNotice(model, logmodel) ? Message.DeleteSuccess : Message.DeleteFailed;
     PageHelper.CleanControlsValue(pnlFormInfo.Controls);
     chkActiveFlag.Checked = true;
     DataBind();
       ProcessFlag.Value = "N";
 }
Exemplo n.º 2
0
 /// <summary>
 /// 綁定表單
 /// </summary>
 private void FormBind()
 {
     int totalCount = 0;
     FormModel model = new FormModel();
     model.FormName = txtFormName.Text;
     if (!string.IsNullOrEmpty(ddlTypeId.SelectedValue))
     {
         model.TypeId = Convert.ToInt32(ddlTypeId.SelectedValue);
     }
     model.ActiveFlag = "Y";
     DataTable dt = formManageBll.GetOrderForm(model, pager.CurrentPageIndex, pager.PageSize, out totalCount);
     pager.RecordCount = totalCount;
     UltraWebGridInfoForm.DataSource = dt;
     UltraWebGridInfoForm.DataBind();
 }