Esempio n. 1
0
 static CustomClassCache()
 {
     if (Program.EnableRemoting)
     {
         mDataTableProxy = DataTableServerProxy.GetDataTableProxy();
     }
 }
Esempio n. 2
0
 public static void EnableRemoting(bool enable)
 {
     mEnableRemoting = enable;
     if (mEnableRemoting)
     {
         mDataTableProxy = DataTableServerProxy.GetDataTableProxy();
     }
 }
Esempio n. 3
0
 static Helper()
 {
     if (Program.EnableRemoting)
     {
         mDataTableProxy = DataTableServerProxy.GetDataTableProxy();
     }
     mCommands = new Dictionary<int, SqlCommand>();
 }
Esempio n. 4
0
 public static void EnableRemoting(bool enable)
 {
     mEnableRemoting = enable;
     if (mEnableRemoting)
     {
         mDataTableProxy = DataTableServerProxy.GetDataTableProxy();
     }
 }
Esempio n. 5
0
 /// <summary>
 /// 获取数据表远程代理
 /// </summary>
 /// <returns></returns>
 public static DataTableProxy GetDataTableProxy()
 {
     if (mDataTableProxy == null)
     {
         IDataTableRemoting remoting = mRemotingSystem.GetDataTableRemoting(mNetClient.ClientKey);
         mDataTableProxy = new DataTableProxy(remoting);
     }
     return mDataTableProxy;
 }
Esempio n. 6
0
 /// <summary>
 /// 获取数据表远程代理
 /// </summary>
 /// <returns></returns>
 public static DataTableProxy GetDataTableProxy()
 {
     if (mDataTableProxy == null)
     {
         IDataTableRemoting remoting = mRemotingSystem.GetDataTableRemoting(mNetClient.ClientKey);
         mDataTableProxy = new DataTableProxy(remoting);
     }
     return(mDataTableProxy);
 }
Esempio n. 7
0
        public UniteModel(string mdlname)
        {
            InitializeComponent();
            bool bRet = false;
            if (Program.EnableRemoting)
            { 
                mDataTableProxy = DataTableServerProxy.GetDataTableProxy();
                bRet = mDataTableProxy.UTExistDatabase(Program.Database);
            }
            if (!bRet)
            {
                MessageBox.Show("本库不是主干或分技或没有连接远程数据服务");
                RunUnite = false;
                return;
            }

            mModelName = mdlname;
            InitTables();
            
        }