예제 #1
0
 static CustomClassCache()
 {
     if (Program.EnableRemoting)
     {
         mDataTableProxy = DataTableServerProxy.GetDataTableProxy();
     }
 }
예제 #2
0
 public static void EnableRemoting(bool enable)
 {
     mEnableRemoting = enable;
     if (mEnableRemoting)
     {
         mDataTableProxy = DataTableServerProxy.GetDataTableProxy();
     }
 }
예제 #3
0
파일: Helper.cs 프로젝트: viticm/pap2
 static Helper()
 {
     if (Program.EnableRemoting)
     {
         mDataTableProxy = DataTableServerProxy.GetDataTableProxy();
     }
     mCommands = new Dictionary<int, SqlCommand>();
 }
예제 #4
0
파일: TableHelper.cs 프로젝트: viticm/pap2
 public static void EnableRemoting(bool enable)
 {
     mEnableRemoting = enable;
     if (mEnableRemoting)
     {
         mDataTableProxy = DataTableServerProxy.GetDataTableProxy();
     }
 }
예제 #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;
 }
예제 #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);
 }
예제 #7
0
파일: UniteModel.cs 프로젝트: viticm/pap2
        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();
            
        }