Esempio n. 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (!String.IsNullOrEmpty(Request.QueryString["Type"]))
            {
                if (Request.QueryString["Type"].Equals("Add"))
                {
                    this.MeetFormView.ChangeMode(FormViewMode.Insert);
                }
            }

            //如果单据不是申请状态,则控制修改/删除/提交/作废等按钮
            RmsOA.BFL.GK_OA_MeetSummaryBFL     bfl   = new RmsOA.BFL.GK_OA_MeetSummaryBFL();
            RmsOA.MODEL.GK_OA_MeetSummaryModel model = new RmsOA.MODEL.GK_OA_MeetSummaryModel();
            model = bfl.GetGK_OA_MeetSummary(Convert.ToInt32(Request["Code"]));
            if (model.Status != "0")
            {
                if (this.MeetFormView.CurrentMode == FormViewMode.ReadOnly)
                {
                    HtmlInputButton btnRequisition = ((HtmlInputButton)this.MeetFormView.Row.FindControl("btnRequisition"));
                    btnRequisition.Visible = false;

                    this.MeetFormView.Row.FindControl("EditButton").Visible   = false;
                    this.MeetFormView.Row.FindControl("DeleteButton").Visible = false;
                    this.MeetFormView.Row.FindControl("btnBankOut").Visible   = false;
                }
            }
        }
    }
Esempio n. 2
0
 protected void btnBankOut_Click(object sender, EventArgs e)
 {
     try
     {
         RmsOA.BFL.GK_OA_MeetSummaryBFL bfl = new RmsOA.BFL.GK_OA_MeetSummaryBFL();
         bfl.ModifyBankOutAuditing(int.Parse(this.MeetFormView.DataKey.Value.ToString()));
     }
     catch (Exception ex)
     {
         ApplicationLog.WriteLog(this.ToString(), ex, "");
         Response.Write(Rms.Web.JavaScript.Alert(true, "作废出错:" + ex.Message));
         throw ex;
     }
 }