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; _stru = BL.老龄办.发放老龄津贴.Save( _stru ); if ( _stru.IsValid() ) FF.Ctrl.MsgBox.Show( Def.Str.Msg.Save_OK ); else FF.Ctrl.MsgBox.Show( Def.Str.Msg.Save_Err ); }
protected override void Delete() { _stru = uc.stru; if ( _stru.IsNotValid() ) { return; } _stru = BL.老龄办.发放老龄津贴.Delete( _stru ); if ( !_stru.IsValid() ) FF.Ctrl.MsgBox.Show( Def.Str.Msg.Delete_OK ); else FF.Ctrl.MsgBox.Show( Def.Str.Msg.Delete_Err ); }
/// <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.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(437, 310); 发放老龄津贴1.CreateDate = "2015-06-29 12:38:11"; 发放老龄津贴1.Creator = ""; 发放老龄津贴1.datCreateDate = new System.DateTime(2015, 6, 29, 12, 38, 11, 0); 发放老龄津贴1.dat出生日期 = new System.DateTime(2015, 6, 29, 13, 37, 18, 160); 发放老龄津贴1.dat领取时间 = new System.DateTime(2015, 6, 29, 13, 37, 18, 160); 发放老龄津贴1.DelFlag = ""; 发放老龄津贴1.ID = ""; 发放老龄津贴1.出生日期 = ""; 发放老龄津贴1.姓名 = ""; 发放老龄津贴1.死亡 = ""; 发放老龄津贴1.状态 = ""; 发放老龄津贴1.类别 = ""; 发放老龄津贴1.街道 = ""; 发放老龄津贴1.身份证 = ""; 发放老龄津贴1.银行账号 = ""; 发放老龄津贴1.领取时间 = ""; this.uc.stru = 发放老龄津贴1; this.uc.TabIndex = 0; // // FEdit // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(437, 390); 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); }
/// <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.Location = new System.Drawing.Point(12, 47); this.uc.Name = "uc"; this.uc.Size = new System.Drawing.Size(469, 200); 发放老龄津贴1.CreateDate = ""; 发放老龄津贴1.Creator = ""; 发放老龄津贴1.datCreateDate = new System.DateTime(2015, 5, 10, 11, 23, 51, 208); 发放老龄津贴1.dat出生日期 = new System.DateTime(1800, 1, 1, 0, 0, 0, 0); 发放老龄津贴1.dat领取时间 = new System.DateTime(2015, 5, 10, 11, 23, 51, 210); 发放老龄津贴1.DelFlag = ""; 发放老龄津贴1.ID = ""; 发放老龄津贴1.出生日期 = "1800-01-01 00:00:00"; 发放老龄津贴1.姓名 = ""; 发放老龄津贴1.死亡 = ""; 发放老龄津贴1.状态 = ""; 发放老龄津贴1.类别 = ""; 发放老龄津贴1.街道 = "园岭街道办"; 发放老龄津贴1.身份证 = ""; 发放老龄津贴1.银行账号 = ""; 发放老龄津贴1.领取时间 = ""; this.uc.stru = 发放老龄津贴1; 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(486, 291); 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; }