Example #1
0
 void DictManager_OnDictionaryLoadCompleted(object sender, OnDictionaryLoadArgs e)
 {
     if (e.Error == null && e.Result)
     {
         InitFormToolBarButton();
     }
     else
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), "字典加载错误,请联系管理员",
             Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
         return;
     }
 }
Example #2
0
 void DictManager_OnDictionaryLoadCompleted(object sender, OnDictionaryLoadArgs e)
 {
     if (e.Error == null && e.Result)
     {
         InitFormToolBar();
     }
     else
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), "字典加载错误,请联系管理员",
                                        Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
         return;
     }
 }
Example #3
0
        static void DictManager_OnDictionaryLoadCompleted(object sender, OnDictionaryLoadArgs e)
        {
            if (e.Error == null)
            {
                try
                {
                    ReferencedData <OrderStatusData> .RefData = GetOrderStatus();
                    ReferencedData <PayTypeData> .RefData     = GetPayType();
                    ReferencedData <RepayTypeData> .RefData   = GetRepayTypeData();
                    ReferencedData <BorrowTypeData> .RefData  = GetBorrowTypeData();
                    //ReferencedData<BudgetAccountTypeData>.RefData = GetBudgetAccountTypeData();

                    ReferencedData <QueryData> .RefData = GetQueryList();

                    ReferencedData <LoginUserData> .RefData = new List <LoginUserData> {
                        DataCore.CurrentUser
                    };

                    ReferencedData <ControlTypeData> .RefData      = GetControlTypeData();
                    ReferencedData <BudgetChargeTypeData> .RefData = GetBudgetChargeTypeData();
                    ReferencedData <BudgetTypeData> .RefData       = GetBudgetTypeData();
                    //beyond
                    ReferencedData <BudgetSumStatesData> .RefData = GetBudgetSumStates();

                    ReferencedData <MonthItem> .RefData = GetMonthItems();

                    ReferencedData <YearItem> .RefData = GetYearItems();

                    IsInit = true;
                    if (InitDataCoreCompleted != null)
                    {
                        InitDataCoreCompleted(null, null);
                    }
                }
                catch
                {
                    if (InitDataCoreCompleted != null)
                    {
                        InitDataCoreCompleted(null, new ActionCompletedEventArgs <string>("读取个人信息异常,无法加载当前页面"));
                    }
                    IsInit = false;
                }
            }
        }
Example #4
0
 void DictManager_OnDictionaryLoadCompleted(object sender, OnDictionaryLoadArgs e)
 {
     if (e.Error == null)
     {
         this.Loaded += new RoutedEventHandler(BorrowAppForm_Loaded);
     }
 }
Example #5
0
 void dicManager_OnDictionaryLoadCompleted(object sender, OnDictionaryLoadArgs e)
 {
     ayTools.BeginRun();
 }
Example #6
0
 void DictManager_OnDictionaryLoadCompleted(object sender, OnDictionaryLoadArgs e)
 {
     if (e.Error == null && e.Result)
     {
         //InitToolBarEvent();
         
         //LoadData();
     }
     else
     {
         loadbar.Stop();
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), "字典加载错误,请联系管理员",
             Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
         return;
     }
 }
Example #7
0
 void DictManager_OnDictionaryLoadCompleted(object sender, OnDictionaryLoadArgs e)
 {
     if (e.Error == null && e.Result)
     {
         if (IsManageUse)
         {
             InitMethodForManage(action, tmpViewCompanyDoc);
         }
         else
         {
             InitMethodToEngine(action, tmpSendID);
         }
     }
     else
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), "字典加载错误,请联系管理员",
             Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
         return;
     }
 }
Example #8
0
 void dicManager_OnDictionaryLoadCompleted(object sender, OnDictionaryLoadArgs e)
 {
     ayTools.BeginRun();
 }