public DB.Stru.老龄办.停发老龄津贴 From发放老龄津贴( DB.Stru.老龄办.发放老龄津贴 stru发放 ) { DB.Stru.老龄办.停发老龄津贴 stru停发 = new DB.Stru.老龄办.停发老龄津贴(); stru停发.姓名 = stru发放.姓名; stru停发.身份证 = stru发放.身份证; return stru停发; }
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; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { DB.Stru.老龄办.停发老龄津贴 停发老龄津贴2 = new DB.Stru.老龄办.停发老龄津贴(); this.uc = new UI.UC.老龄办.停发老龄津贴(); this.SuspendLayout(); // // uc // this.uc.Location = new System.Drawing.Point(15, 52); this.uc.Name = "uc"; this.uc.Size = new System.Drawing.Size(440, 153); 停发老龄津贴2.CreateDate = ""; 停发老龄津贴2.Creator = ""; 停发老龄津贴2.DelFlag = ""; 停发老龄津贴2.ID = ""; 停发老龄津贴2.停发原因 = ""; 停发老龄津贴2.停发日期 = ""; 停发老龄津贴2.姓名 = ""; 停发老龄津贴2.街道 = "园岭街道办"; 停发老龄津贴2.身份证 = ""; this.uc.stru = 停发老龄津贴2; this.uc.TabIndex = 4; // // FEdit // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(471, 250); this.Controls.Add(this.uc); this.Name = "FEdit"; this.Text = "Edit"; this.Load += new System.EventHandler(this.Edit_Load); 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; }