Ejemplo n.º 1
0
 /// <summary>
 /// 新建对象设置Key值
 /// </summary>
 /// <param name="newobj"></param>
 void gridViewOperation_CreatingObjectEvent(PJ_12kgjx newobj)
 {
     if (PSObj == null || parentID == null)
     {
         return;
     }
     newobj.kgID = PSObj.kgID;
     newobj.OrgCode = parentID;
     newobj.OrgName = parentObj.OrgName;
     newobj.CreateDate = DateTime.Now;
     Ebada.Core.UserBase m_UserBase = MainHelper.ValidateLogin();
     newobj.CreateMan = m_UserBase.RealName;
     newobj.jxsj = DateTime.Now;
     
    
 }
Ejemplo n.º 2
0
 void gridViewOperation_AfterAdd(PJ_12kgjx obj)
 {
     RefreshData(" where OrgCode='" + ParentID + "'  and kgID='" + PSObj.kgID + "'  order by id desc");
 }
Ejemplo n.º 3
0
 void gridViewOperation_AfterAdd(PJ_12kgjx obj)
 {
     if (isWorkflowCall)
     {
         WF_ModleRecordWorkTaskIns mrwt = new WF_ModleRecordWorkTaskIns();
         mrwt.ModleRecordID = obj.ID;
         mrwt.RecordID = currRecord.ID;
         mrwt.WorkFlowId = WorkFlowData.Rows[0]["WorkFlowId"].ToString();
         mrwt.WorkFlowInsId = WorkFlowData.Rows[0]["WorkFlowInsId"].ToString();
         mrwt.WorkTaskId = WorkFlowData.Rows[0]["WorkTaskId"].ToString();
         mrwt.ModleTableName = obj.GetType().ToString();
         mrwt.WorkTaskInsId = WorkFlowData.Rows[0]["WorkTaskInsId"].ToString();
         mrwt.CreatTime = DateTime.Now;
         MainHelper.PlatformSqlMap.Create<WF_ModleRecordWorkTaskIns>(mrwt);
         MainHelper.PlatformSqlMap.Update<LP_Record>(currRecord);
     }
     RefreshData(" where OrgCode='" + ParentID + "'  and kgID='" + PSObj.kgID + "'  ");
 }