Пример #1
0
 void gridViewOperation_AfterAdd(PJ_21dyjcdcbkchild obj) {
     RefreshData(" where ParentID='" + ParentID + "' order by month ");
 }
Пример #2
0
        /// <summary>
        /// 新建对象设置Key值
        /// </summary>
        /// <param name="newobj"></param>
        void gridViewOperation_CreatingObjectEvent(PJ_21dyjcdcbkchild newobj) {

            if ( parentID == null) {
                return;
            }
            newobj.ParentID = ParentID;
            newobj.month = DateTime.Now.Month;
            newobj.CreateDate = DateTime.Now;
            newobj.CreateMan = MainHelper.User.UserName;

            newobj.bigshowtime = new DateTime(int.Parse(ParentObj.year.Substring(0,4)), DateTime.Now.Month, DateTime.Now.Day, DateTime.Now.Hour, DateTime.Now.Minute,DateTime.Now.Second);
            newobj.minshowtime = newobj.bigshowtime;

        }