コード例 #1
0
ファイル: UCWGCLRKYSD.cs プロジェクト: s7loves/mypowerscgl
        /// <summary>
        /// 新建对象设置Key值
        /// </summary>
        /// <param name="newobj"></param>
        void gridViewOperation_CreatingObjectEvent(PJ_wgclrkysd newobj)
        {
            //if (parentID == null) return;
            //newobj.OrgCode = parentID;
            //newobj.OrgName = parentObj.OrgName;

            try { frmLP.ReadTaskData(newobj, RecordWorkFlowData, ParentTemple, CurrRecord); } catch { }
          
        }
コード例 #2
0
ファイル: UCWGCLRKYSD.cs プロジェクト: s7loves/mypowerscgl
        void gridViewOperation_AfterDelete(PJ_wgclrkysd obj)
        {

            if (isWorkflowCall)
            {

                MainHelper.PlatformSqlMap.DeleteByWhere<WF_ModleRecordWorkTaskIns>(" where ModleRecordID='" + obj.ID + "' and RecordID='" + currRecord.ID + "'"
                    + " and  WorkFlowId='" + WorkFlowData.Rows[0]["WorkFlowId"].ToString() + "'"
                    + " and  WorkFlowInsId='" + WorkFlowData.Rows[0]["WorkFlowInsId"].ToString() + "'"
                    + " and  WorkTaskId='" + WorkFlowData.Rows[0]["WorkTaskId"].ToString() + "'"
                    + " and  WorkTaskInsId='" + WorkFlowData.Rows[0]["WorkTaskInsId"].ToString() + "'");
            }

           
            
        }
コード例 #3
0
ファイル: UCWGCLRKYSD.cs プロジェクト: s7loves/mypowerscgl
 void gridViewOperation_AfterAdd(PJ_wgclrkysd newobj)
 {
     if (isWorkflowCall)
     {
         WF_ModleRecordWorkTaskIns mrwt = new WF_ModleRecordWorkTaskIns();
         mrwt.ModleRecordID = newobj.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 = newobj.GetType().ToString();
         mrwt.WorkTaskInsId = WorkFlowData.Rows[0]["WorkTaskInsId"].ToString();
         mrwt.CreatTime = DateTime.Now;
         MainHelper.PlatformSqlMap.Create<WF_ModleRecordWorkTaskIns>(mrwt);
     }
 }
コード例 #4
0
ファイル: UCWGCLRKYSD.cs プロジェクト: s7loves/mypowerscgl
        void gridViewOperation_AfterEdit(PJ_wgclrkysd obj)
        {

            RefreshData(" where     1=1");
        }