/// <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.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(439, 251); 监护人.地址或工作单位 = ""; 监护人.父ID = ""; 监护人.关系 = ""; 监护人.联系电话 = ""; 监护人.姓名 = ""; this.uc.stru = 监护人; this.uc.TabIndex = 5; // // Edit // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(439, 331); this.Controls.Add(this.uc); this.Name = "监护人"; this.Text = "监护人"; this.Load += new System.EventHandler(this.Edit_Load); this.Controls.SetChildIndex(this.uc, 0); this.ResumeLayout(false); }
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); }
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); }
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; }