protected void HAZA_Edit_Click(object sender, System.EventArgs e)
        {
            var haza = new TH_THAZA01("edit", this.HAZA_ID.Text);

            haza.HAZA_NAME = this.HAZA_NAME.Text;
            haza.HAZA_LOCA = this.hazaloca_tbxMyBox1.Text.Substring(0, this.hazaloca_tbxMyBox1.Text.LastIndexOf('_'));;
            haza.HAZA_LVL  = this.HAZALVL_DList.SelectedValue;
            haza.HAZA_D    = decimal.Parse(this.HAZA_D_TEXT.Text);
            haza.SetStats("审核");
            var advuser = new AdvUserInfo(GetIdentityName());

            this.HAZA_CREATOR.Text = advuser.USER_ID;
            haza.REC_CREATOR       = advuser.USER_ID;
            var worflow   = new VERI_WORKFLOW().Static_GetWORKFLOWByCNAME("危险源修改审核");
            var node      = new VERI_WORKFLOW_NODE().Static_GetWORKFLOWNodeByid("0301");
            var haza01old = new TH_THAZA01();


            var haza02 = new TH_THAZA02().SetEditFLOW(haza, haza, node);
            var re1    = haza02.AddDB();
            var ds     = this.GridGetDataSource();

            haza.RISKLIST = ds;
            var csre = haza.Fill_RiskString();
            var re   = haza.AddNew();

            if (re.Flag)
            {
                Notify.ShowMessage("保存成功,关闭页面");
            }
            else
            {
                Notify.ShowMessage(re.Msg);
            }
        }
        protected void HAZA_Add_Click(object sender, System.EventArgs e)
        {
            TH_THAZA01 new_haza01 = new TH_THAZA01("new")
            {
                HAZA_NAME = this.HAZA_NAME.Text,
                HAZA_LOCA = this.hazaloca_tbxMyBox1.Text.Substring(0, this.hazaloca_tbxMyBox1.Text.LastIndexOf('_')),
                HAZA_LVL  = this.HAZALVL_DList.SelectedValue,
                HAZA_D    = decimal.Parse(this.HAZA_D_TEXT.Text),
                HAZA_DEPT = this.hazaloca_tbxMyBox1.Text.Split('_')[0]
            };

            new_haza01.SetStats("审核");

            var advuser = new AdvUserInfo(GetIdentityName());

            this.HAZA_CREATOR.Text = advuser.USER_ID;
            new_haza01.REC_CREATOR = advuser.USER_ID;
            var ds = this.GridGetDataSource();

            new_haza01.RISKLIST = ds;
            var csre = new_haza01.Fill_RiskString();
            var node = new VERI_WORKFLOW_NODE().Static_GetWORKFLOWNodeByid("0101");
            var tmp  = new_haza01.CheckNode(node);
            var re0  = new_haza01.AddNew();

            try
            {
                var db     = new SAFEDB();
                var haza02 = new TH_THAZA02().SetAddFLOW(new_haza01, node);
                var re     = haza02.AddDB();
            }
            catch (Exception ex)
            {
                throw new Exception("添加审核权限失败,该用户没有权利添加这个审核");
            }
            if (re0.Flag)
            {
                Notify.ShowMessage("添加成功,请关闭页面");
            }
            else
            {
                Notify.ShowMessage(re0.Msg);
            }
        }