/// <summary>
    /// 数据保存
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void btnSave_Click(object sender, EventArgs e)
    {
        LTallyNoPassReasonData model = new LTallyNoPassReasonData();
        LTallyNoPassReasonBB tallyNoPassReasonBB = new LTallyNoPassReasonBB();
        try
        {
            if (this.State == "1")
            {
                this.SetModel(ref model);
                model.isrtDt = DateTime.Now.ToString();
                model.isrtEmpId = this.currentUser.empId;
                this.IdValue = tallyNoPassReasonBB.AddRecord(model);
            }
            else if (this.State == "2")
            {
                model = tallyNoPassReasonBB.GetModel(this.IdValue);
                this.SetModel(ref model);
                model.updtDt = DateTime.Now.ToString();
                model.updtEmpId = this.currentUser.empId;
                tallyNoPassReasonBB.ModifyRecord(model);
            }
        }
        catch (Exception ex)
        {
            this.ClientScript.RegisterStartupScript(this.GetType(), "ShowErr", "ShowErr(\"" + Server.UrlEncode(ex.Message) + "\",3);", true);
            return;
        }
        finally
        {
            tallyNoPassReasonBB.Dispose();
        }

        Response.Redirect("LTallyNoPassReasonList.aspx?&itemno=" + this.itemNo + "&pTypeNo=main", false);
    }