Пример #1
0
 void gridViewOperation_AfterEdit(PJ_14aqgjsy obj) {
     if (PSObj != null) {
         _parentobj.syrq = obj.rq;
         _parentobj.syrq2 = obj.xcsyrq;
         ClientHelper.PlatformSqlMap.Update<PS_aqgj>(_parentobj);
     }
 }
Пример #2
0
 void gridViewOperation_AfterAdd(PJ_14aqgjsy obj)
 {
     RefreshData(" where OrgCode='" + parentID + "' and sbID='" + PSObj.sbID + "' order by rq");
     if (PSObj != null) {
         _parentobj.syrq = obj.rq;
         _parentobj.syrq2 = obj.xcsyrq;
         ClientHelper.PlatformSqlMap.Update<PS_aqgj>(_parentobj);
     }
 }
Пример #3
0
 /// <summary>
 /// 新建对象设置Key值
 /// </summary>
 /// <param name="newobj"></param>
 void gridViewOperation_CreatingObjectEvent(PJ_14aqgjsy newobj)
 {
     if (parentID == null||PSObj==null) return;
     newobj.OrgCode = parentID;
     newobj.OrgName = parentObj.OrgName;
     newobj.CreateDate = DateTime.Now;
     Ebada.Core.UserBase m_UserBase = MainHelper.ValidateLogin();
     newobj.CreateMan = m_UserBase.RealName;
  
     newobj.sbID = PSObj.sbID;
     newobj.rq = DateTime.Now;
     try { frmLP.ReadTaskData(newobj, RecordWorkFlowData, ParentTemple, CurrRecord); } catch { }
 }
Пример #4
0
 /// <summary>
 /// 新建对象设置Key值
 /// </summary>
 /// <param name="newobj"></param>
 void gridViewOperation_CreatingObjectEvent(PJ_14aqgjsy newobj)
 {
     if (parentID == null||PSObj==null) return;
     newobj.OrgCode = parentID;
     newobj.OrgName = parentObj.OrgName;
     newobj.CreateDate = DateTime.Now;
     Ebada.Core.UserBase m_UserBase = MainHelper.ValidateLogin();
     newobj.CreateMan = m_UserBase.RealName;
  
     newobj.sbID = PSObj.sbID;
     newobj.rq = DateTime.Now;
    
 }
Пример #5
0
 void gridViewOperation_AfterAdd(PJ_14aqgjsy 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.WorkTaskInsId = WorkFlowData.Rows[0]["WorkTaskInsId"].ToString();
         mrwt.CreatTime = DateTime.Now;
         mrwt.ModleTableName = obj.GetType().ToString();
         MainHelper.PlatformSqlMap.Create<WF_ModleRecordWorkTaskIns>(mrwt);
     }
     RefreshData(" where OrgCode='" + parentID + "' and sbID='" + PSObj.sbID+"'" );
     if (PSObj != null) {
         _parentobj.syrq = obj.rq;
         _parentobj.syrq2 = obj.xcsyrq;
         ClientHelper.PlatformSqlMap.Update<PS_aqgj>(_parentobj);
     }
 }