Exemplo n.º 1
0
        private void FrmIOSQuery_Load(object sender, EventArgs e)
        {
            DateTime currentTime     = HIS.SYSTEM.PubicBaseClasses.XcDate.ServerDateTime;
            int      currentActYear  = 0;
            int      currentActMonth = 0;

            _accountQuery.GetAccountTime(currentTime, ref currentActYear, ref currentActMonth, (int)_currentDept);
            cobQueryMonth.Text         = currentActMonth.ToString();
            cobQueryYear.Text          = currentActYear.ToString();
            cobQueryType.SelectedIndex = 1;
        }
Exemplo n.º 2
0
 private void FrmOrderAccount_Load(object sender, EventArgs e)
 {
     try
     {
         dgrdOrderAccount.AutoGenerateColumns = false;
         DateTime currentTime     = HIS.SYSTEM.PubicBaseClasses.XcDate.ServerDateTime;
         int      currentActYear  = 0;
         int      currentActMonth = 0;
         _accountQuery.GetAccountTime(currentTime, ref currentActYear, ref currentActMonth, _deptId);
         cobAccountMonth.Text = currentActMonth.ToString();
         cobAccountYear.Text  = currentActYear.ToString();
         _drugInfoDt          = StoreFactory.GetQuery(_belongSystem).LoadDrugInfo(_deptId);
         txtDgCode.SetSelectionCardDataSource(_drugInfoDt);
     }
     catch (Exception error)
     {
         MessageBox.Show(error.Message);
     }
 }