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;
        }
コード例 #2
0
        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();

        }
コード例 #3
0
        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(401, 255);
            低收入居民_成员信息1.ID = "";
            低收入居民_成员信息1.保障人数 = "";
            低收入居民_成员信息1.姓名 = "";
            低收入居民_成员信息1.家庭人数 = "";
            低收入居民_成员信息1.家庭月收入 = "";
            低收入居民_成员信息1.性别 = "False";
            低收入居民_成员信息1.成员类型 = "";
            低收入居民_成员信息1.父ID = "";
            低收入居民_成员信息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(401, 335);
            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;
        }