public DB.Stru.事务科.专项救助_意外救助 GetFirst_ByWhere( string strWhere )
        {
            DB.Stru.事务科.专项救助_意外救助 stru = new DB.Stru.事务科.专项救助_意外救助();
            List<DB.Stru.事务科.专项救助_意外救助> list = Get_ByWhere( strWhere );

            if ( list != null && list.Count > 0 )
                stru = list[ 0 ];

            return stru;
        }
        protected override void Save()
        {
            _stru = uc.stru;

            bool result = BL.事务科.专项救助_意外救助.Save(_stru);

            if (result)
                FF.Ctrl.MsgBox.Show(Def.Str.Msg.Save_OK);
            else
                FF.Ctrl.MsgBox.Show(Def.Str.Msg.Save_Err);

            _list.Find();

        }
        protected override void Delete()
        {
            _stru = uc.stru;

            if (_stru.IsNotValid())
            {
                return;
            }
            bool result = BL.事务科.专项救助_意外救助.Delete(_stru);

            if (result)
                FF.Ctrl.MsgBox.Show(Def.Str.Msg.Delete_OK);
            else
                FF.Ctrl.MsgBox.Show(Def.Str.Msg.Delete_Err);

            _list.Find();
        }
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            DB.Stru.事务科.专项救助_意外救助 专项救助_意外救助1 = new DB.Stru.事务科.专项救助_意外救助();
            this.uc = new UI.UC.事务科.专项救助.意外救助();
            this.SuspendLayout();
            // 
            // uc
            // 
            this.uc.BackColor = System.Drawing.Color.White;
            this.uc.Dock = System.Windows.Forms.DockStyle.Fill;
            this.uc.Location = new System.Drawing.Point(0, 40);
            this.uc.Name = "uc";
            this.uc.Size = new System.Drawing.Size(379, 310);
            专项救助_意外救助1.dat救助时间 = new System.DateTime(2015, 5, 11, 6, 44, 15, 883);
            专项救助_意外救助1.ID = "";
            专项救助_意外救助1.备注 = "";
            专项救助_意外救助1.姓名 = "";
            专项救助_意外救助1.性别 = "";
            专项救助_意外救助1.所属街道 = "";
            专项救助_意外救助1.救助原因 = "";
            专项救助_意外救助1.救助时间 = "";
            专项救助_意外救助1.类别 = "";
            专项救助_意外救助1.联系电话 = "";
            专项救助_意外救助1.金额 = "";
            this.uc.stru = 专项救助_意外救助1;
            this.uc.TabIndex = 0;
            // 
            // Edit
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(379, 390);
            this.Controls.Add(this.uc);
            this.Name = "Edit";
            this.Text = "编辑";
            this.Controls.SetChildIndex(this.uc, 0);
            this.ResumeLayout(false);

        }
        public static List<DB.Stru.事务科.专项救助_意外救助> Dt2List( ref DataTable dt )
        {
            List<DB.Stru.事务科.专项救助_意外救助> lst = new List<DB.Stru.事务科.专项救助_意外救助>();

            if ( SQL.IsNotValid( ref dt ) )
                return lst;

            foreach ( DataRow dr in dt.Rows )
            {
                DB.Stru.事务科.专项救助_意外救助 stru = new DB.Stru.事务科.专项救助_意外救助();
                stru.Dr2Stru( dr );
                lst.Add( stru );
            }

            return lst;
        }