public TransationInstance(int id) { m_TransationInstanceId = id; F_INST_TRANSATION transation = DAL.WorkFlow.TransationInstance.Get(m_TransationInstanceId); m_Value = transation.TransationValue.ToUpper() == "TRUE" ? true : false; m_Transation = new Transation(transation.TransationID); m_ActivityInstance = new ActivityInstance(transation.ActivityInstID); }
public Condition(int id) { m_ConditionId = id; F_CONDITION condition = DAL.WorkFlow.Condition.Get(m_ConditionId); m_Sql = condition.Sql; m_ConditionId = condition.ID; m_Operator = condition.Operator; m_Value = condition.Value; m_Type = condition.Type; m_Transation = new Transation(condition.TransationID); }
public void Create(int activityInstId, int transId) { m_Transation = new Transation(transId); m_ActivityInstance = new ActivityInstance(activityInstId); //IPrimaryKeyCreater prikey = ctx["PrimaryKeyCreater"] as IPrimaryKeyCreater; m_TransationInstanceId = PrimaryKeyCreater.getIntPrimaryKey("F_INST_TRANSATION"); F_INST_TRANSATION instTrans = new F_INST_TRANSATION(); instTrans.ID = m_TransationInstanceId; instTrans.ActivityInstID = activityInstId; instTrans.TransationID = transId; instTrans.PassTime = DateTime.Now; instTrans.TransationValue = ""; DAL.WorkFlow.TransationInstance.Insert(instTrans); }