Beispiel #1
0
        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 ;
        }
Beispiel #2
0
        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 );
        }
Beispiel #3
0
        /// <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 = "";
            老人退住管理.datCreateDate = 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);

        }
Beispiel #4
0
        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;
        }