void gridViewOperation_AfterAdd(PS_gjyb obj) { if (isWorkflowCall) { WF_ModleRecordWorkTaskIns mrwt = new WF_ModleRecordWorkTaskIns(); mrwt.ModleRecordID = obj.sbID; 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.WorkTaskInsId = WorkFlowData.Rows[0]["WorkTaskInsId"].ToString(); mrwt.CreatTime = DateTime.Now; mrwt.ModleTableName = obj.GetType().ToString(); MainHelper.PlatformSqlMap.Create<WF_ModleRecordWorkTaskIns>(mrwt); } }
/// <summary> /// 新建对象设置Key值 /// </summary> /// <param name="newobj"></param> void gridViewOperation_CreatingObjectEvent(PS_gjyb newobj) { if (parentID == null) return; newobj.OrgID = parentID; //newobj.OrgName = parentObj.OrgName; //newobj.CreateDate = DateTime.Now; //newobj.CreateMan = MainHelper.LoginName; try { frmLP.ReadTaskData(newobj, RecordWorkFlowData, ParentTemple, CurrRecord); } catch { } }
/// <summary> /// 新建对象设置Key值 /// </summary> /// <param name="newobj"></param> void gridViewOperation_CreatingObjectEvent(PS_gjyb newobj) { if (parentID == null) return; newobj.OrgID = parentID; //newobj.OrgName = parentObj.OrgName; //newobj.CreateDate = DateTime.Now; //newobj.CreateMan = MainHelper.LoginName; }