public WorkSync()
 {
     try
     {
         StuLibSync = SeatManage.InterfaceFactory.AssemblyFactory.CreateAssembly("IStuLibSync") as IStuLibSync; //SeatManage.InterfaceFactory.SystemTerminalFactory.CreateStuLibSync();
         StuLibSync.StuLibSyncSet = SeatManage.Bll.T_SM_SystemSet.GetStuLibSync();
         StuLibSync.Syncing      += new EventHandleSync(StuLibSync_Syncing);
         StuLibSync.Synced       += new EventHandleSync(StuLibSync_Synced);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Beispiel #2
0
        /// <summary>
        /// 连接测试
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void testsconn_Click(object sender, EventArgs e)
        {
            StuLibSyncSetting SyncSet = T_SM_SystemSet.GetStuLibSync();

            if (SyncSet != null)
            {
                IStuLibSync StuLibSync = AssemblyFactory.CreateAssembly("IStuLibSync") as IStuLibSync;// SystemTerminalFactory.CreateStuLibSync();
                StuLibSync.StuLibSyncSet = SyncSet;
                if (StuLibSync.LinkDataSourceTest())
                {
                    FineUI.Alert.Show("测试成功!");
                }
                else
                {
                    FineUI.Alert.Show("测试失败!");
                }
            }
            else
            {
                FineUI.Alert.Show("获取设置失败!");
            }
        }