예제 #1
0
        private CLocalVersion GetVersionObject(object[] KeyValues)
        {
            //创建并获取版本号对象
            Hashtable htMod = null;

            if (!m_htModLocks.ContainsKey(m_nModID))
            {
                htMod = new Hashtable();
                m_htModLocks[m_nModID] = new Hashtable();
            }
            htMod = m_htModLocks[m_nModID] as Hashtable;

            CLocalVersion verobj = null;
            string        strkey = GetKey(KeyValues);

            if (!htMod.ContainsKey(strkey))
            {
                htMod.Add(strkey, new CLocalVersion());
            }
            verobj = htMod[strkey] as CLocalVersion;
            return(verobj);
        }
예제 #2
0
파일: RecordLock.cs 프로젝트: viticm/pap2
 public override bool Lock(object[] KeyValues)
 {
     m_verobj = GetVersionObject(KeyValues);
     return base.Lock(KeyValues);
 }
예제 #3
0
파일: RecordLock.cs 프로젝트: viticm/pap2
 public void UpdateLocalVersion(object[] KeyValues)
 {
     m_verobj = GetVersionObject(KeyValues);
     m_verobj.Version = GetServerLastVersion(KeyValues);
 }
예제 #4
0
 public override bool Lock(object[] KeyValues)
 {
     m_verobj = GetVersionObject(KeyValues);
     return(base.Lock(KeyValues));
 }
예제 #5
0
 public void UpdateLocalVersion(object[] KeyValues)
 {
     m_verobj         = GetVersionObject(KeyValues);
     m_verobj.Version = GetServerLastVersion(KeyValues);
 }