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; if ( !CheckBeforSave() ) return; bool bRet = BL.福利中心.老人费用退费管理.Save(_stru); if ( bRet ) FF.Ctrl.MsgBox.Show( Def.Str.Msg.Save_OK ); else FF.Ctrl.MsgBox.Show( Def.Str.Msg.Save_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.福利中心.老人费用退费管理 老人费用退费管理 = new DB.Stru.福利中心.老人费用退费管理(); this.uc = new UI.UC.福利中心.老人费用退费管理.老人费用退费管理(); this.SuspendLayout(); // // uc // this.uc.BackColor = System.Drawing.Color.White; this.uc.Location = new System.Drawing.Point(32, 50); this.uc.Name = "uc"; this.uc.Size = new System.Drawing.Size(369, 316); 老人费用退费管理.CreateDate = ""; 老人费用退费管理.Creator = ""; 老人费用退费管理.dat时间 = new System.DateTime(2015, 9, 24, 22, 12, 35, 66); 老人费用退费管理.ID = ""; 老人费用退费管理.备注 = ""; 老人费用退费管理.电费 = ""; 老人费用退费管理.伙食费 = ""; 老人费用退费管理.老人服务费 = ""; 老人费用退费管理.入住押金 = ""; 老人费用退费管理.时间 = ""; 老人费用退费管理.姓名 = ""; 老人费用退费管理.药费 = ""; 老人费用退费管理.医疗保证金 = ""; 老人费用退费管理.银行账号 = ""; this.uc.stru = 老人费用退费管理; this.uc.TabIndex = 5; // // FEdit // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(452, 421); 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; }